aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/mimesh/libg3d-0.0.8
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/others/mimesh/libg3d-0.0.8/AUTHORS11
-rw-r--r--src/others/mimesh/libg3d-0.0.8/COPYING504
-rw-r--r--src/others/mimesh/libg3d-0.0.8/ChangeLog59
-rw-r--r--src/others/mimesh/libg3d-0.0.8/INSTALL229
-rw-r--r--src/others/mimesh/libg3d-0.0.8/Makefile709
-rw-r--r--src/others/mimesh/libg3d-0.0.8/Makefile.am11
-rw-r--r--src/others/mimesh/libg3d-0.0.8/Makefile.in709
-rw-r--r--src/others/mimesh/libg3d-0.0.8/NEWS0
-rw-r--r--src/others/mimesh/libg3d-0.0.8/README87
-rw-r--r--src/others/mimesh/libg3d-0.0.8/TODO4
-rw-r--r--src/others/mimesh/libg3d-0.0.8/aclocal.m41054
-rwxr-xr-xsrc/others/mimesh/libg3d-0.0.8/config/config.guess1526
-rwxr-xr-xsrc/others/mimesh/libg3d-0.0.8/config/config.sub1658
-rwxr-xr-xsrc/others/mimesh/libg3d-0.0.8/config/depcomp589
-rwxr-xr-xsrc/others/mimesh/libg3d-0.0.8/config/install-sh519
-rw-r--r--src/others/mimesh/libg3d-0.0.8/config/ltmain.sh6964
-rwxr-xr-xsrc/others/mimesh/libg3d-0.0.8/config/missing367
-rwxr-xr-xsrc/others/mimesh/libg3d-0.0.8/config/ylwrap223
-rwxr-xr-xsrc/others/mimesh/libg3d-0.0.8/configure23776
-rw-r--r--src/others/mimesh/libg3d-0.0.8/configure.in221
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/Makefile516
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/Makefile.am3
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/Makefile.in516
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/RELEASE-NOTES-0.0.7.txt15
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/RELEASE-NOTES-0.0.8.txt6
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/Makefile538
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/Makefile.am37
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/Makefile.in538
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/html/ch01.html55
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/html/ch02.html58
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/html/home.pngbin0 -> 654 bytes
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/html/index.html85
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/html/index.sgml242
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/html/left.pngbin0 -> 459 bytes
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-context.html531
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-face.html255
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-iff.html872
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-material.html174
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-matrix.html450
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-model.html438
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-object.html466
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-plugins.html727
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-primitive.html508
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-quat.html346
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-read.html373
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-stream.html1535
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-texture.html455
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-types.html109
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-vector.html266
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d.devhelp204
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d.devhelp2204
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/html/right.pngbin0 -> 472 bytes
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/html/style.css160
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/html/up.pngbin0 -> 406 bytes
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/libg3d-docs.sgml35
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/libg3d-overrides.txt0
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/libg3d-sections.txt256
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/libg3d.types2
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/context.sgml137
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/face.sgml75
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/iff.sgml242
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/libg3d-unused.sgml0
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/material.sgml50
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/matrix.sgml121
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/model.sgml139
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/object.sgml125
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/plugins.sgml187
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/primitive.sgml110
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/quat.sgml92
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/read.sgml111
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/stream.sgml391
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/texture.sgml121
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/types.sgml44
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/vector.sgml65
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/xml/context.xml321
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/xml/face.xml197
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/xml/iff.xml558
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/xml/material.xml142
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/xml/matrix.xml278
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/xml/model.xml285
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/xml/object.xml301
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/xml/plugins.xml423
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/xml/primitive.xml302
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/xml/quat.xml220
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/xml/read.xml218
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/xml/stream.xml801
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/xml/texture.xml318
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/xml/types.xml92
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/api/xml/vector.xml184
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/support_matrix/Makefile360
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/support_matrix/Makefile.am5
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/support_matrix/Makefile.in360
-rw-r--r--src/others/mimesh/libg3d-0.0.8/doc/support_matrix/matrix.html825
-rw-r--r--src/others/mimesh/libg3d-0.0.8/gtk-doc.make173
-rw-r--r--src/others/mimesh/libg3d-0.0.8/include/Makefile515
-rw-r--r--src/others/mimesh/libg3d-0.0.8/include/Makefile.am1
-rw-r--r--src/others/mimesh/libg3d-0.0.8/include/Makefile.in515
-rw-r--r--src/others/mimesh/libg3d-0.0.8/include/g3d/Makefile470
-rw-r--r--src/others/mimesh/libg3d-0.0.8/include/g3d/Makefile.am21
-rw-r--r--src/others/mimesh/libg3d-0.0.8/include/g3d/Makefile.in470
-rw-r--r--src/others/mimesh/libg3d-0.0.8/include/g3d/config.h72
-rw-r--r--src/others/mimesh/libg3d-0.0.8/include/g3d/config.h.in71
-rw-r--r--src/others/mimesh/libg3d-0.0.8/include/g3d/context.h149
-rw-r--r--src/others/mimesh/libg3d-0.0.8/include/g3d/debug.h44
-rw-r--r--src/others/mimesh/libg3d-0.0.8/include/g3d/face.h98
-rw-r--r--src/others/mimesh/libg3d-0.0.8/include/g3d/g3d.h35
-rw-r--r--src/others/mimesh/libg3d-0.0.8/include/g3d/iff.h325
-rw-r--r--src/others/mimesh/libg3d-0.0.8/include/g3d/material.h64
-rw-r--r--src/others/mimesh/libg3d-0.0.8/include/g3d/matrix.h189
-rw-r--r--src/others/mimesh/libg3d-0.0.8/include/g3d/model.h180
-rw-r--r--src/others/mimesh/libg3d-0.0.8/include/g3d/object.h151
-rw-r--r--src/others/mimesh/libg3d-0.0.8/include/g3d/plugins.h243
-rw-r--r--src/others/mimesh/libg3d-0.0.8/include/g3d/primitive.h164
-rw-r--r--src/others/mimesh/libg3d-0.0.8/include/g3d/quat.h117
-rw-r--r--src/others/mimesh/libg3d-0.0.8/include/g3d/read.h156
-rw-r--r--src/others/mimesh/libg3d-0.0.8/include/g3d/stream.h541
-rw-r--r--src/others/mimesh/libg3d-0.0.8/include/g3d/texture.h123
-rw-r--r--src/others/mimesh/libg3d-0.0.8/include/g3d/types.h478
-rw-r--r--src/others/mimesh/libg3d-0.0.8/include/g3d/vector.h125
-rw-r--r--src/others/mimesh/libg3d-0.0.8/libg3d.magic85
-rw-r--r--src/others/mimesh/libg3d-0.0.8/libg3d.pc.in12
-rw-r--r--src/others/mimesh/libg3d-0.0.8/m4/Makefile360
-rw-r--r--src/others/mimesh/libg3d-0.0.8/m4/Makefile.am3
-rw-r--r--src/others/mimesh/libg3d-0.0.8/m4/Makefile.in360
-rw-r--r--src/others/mimesh/libg3d-0.0.8/m4/acinclude.m427
-rw-r--r--src/others/mimesh/libg3d-0.0.8/m4/glib-2.0.m4215
-rw-r--r--src/others/mimesh/libg3d-0.0.8/m4/gtk-2.0.m4196
-rw-r--r--src/others/mimesh/libg3d-0.0.8/m4/gtk-doc.m439
-rw-r--r--src/others/mimesh/libg3d-0.0.8/m4/libtool.m45951
-rw-r--r--src/others/mimesh/libg3d-0.0.8/m4/libxml2.m4188
-rw-r--r--src/others/mimesh/libg3d-0.0.8/m4/win32.m427
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/Makefile515
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/Makefile.am1
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/Makefile.in515
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/image/Makefile552
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/image/Makefile.am36
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/image/Makefile.in552
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/image/img_bmp.c129
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/image/img_dds.c149
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/image/img_gdkpixbuf.c210
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/image/img_jpeg.c437
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/image/img_sgi.c181
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/Makefile554
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/Makefile.am40
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/Makefile.in554
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile517
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile.am26
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile.in517
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm.c169
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm.h31
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_callbacks.c278
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_callbacks.h34
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_chunks.h114
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object.c80
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object.h32
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object_types.h61
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_types.h64
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile512
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile.am21
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile.in512
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf.c646
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_callbacks.c23
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_callbacks.h42
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_chunks.h95
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/Makefile512
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/Makefile.am21
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/Makefile.in512
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds.c206
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds.h55
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds_callbacks.c992
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds_callbacks.h56
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds_chunks.h210
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile.am20
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile.in509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/imp_ac3d.c534
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/Makefile523
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/Makefile.am29
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/Makefile.in523
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/README15
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf.c338
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf.h39
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_airfoil.c166
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_airfoil.h44
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def.c127
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def.h39
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf603.h359
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf625.h406
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf630.h417
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf640.h449
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf651.h456
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf700.h506
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf740.h584
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_proto.h49
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_detect.c77
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_detect.h30
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_wing.c79
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_wing.h35
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile517
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile.am23
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile.in517
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar.c183
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar.h33
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_carini.c247
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_carini.h35
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_decompress.c161
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_decompress.h30
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_dof.c446
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_dof.h33
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/Makefile509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/Makefile.am20
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/Makefile.in509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/imp_ase.c257
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/Makefile519
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/Makefile.am26
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/Makefile.in519
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend.c201
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_callbacks.c237
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_callbacks.h35
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_chunks.h63
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_def.h42
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_read.c39
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_read.h30
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_sdna.c467
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_sdna.h53
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_types.h100
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/Makefile510
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/Makefile.am22
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/Makefile.in510
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/imp_c4d.c363
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile.am20
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile.in509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/imp_cob.c430
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/Makefile518
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/Makefile.am25
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/Makefile.in518
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae.c126
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_cb.c877
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_cb.h75
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_chunks.h95
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_library.c167
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_library.h38
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_xml.c257
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_xml.h44
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/Makefile510
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/Makefile.am22
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/Makefile.in510
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/imp_dpm.c156
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/Makefile523
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/Makefile.am28
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/Makefile.in523
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf.c291
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf.h53
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_callbacks.c349
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_callbacks.h36
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_chunks.h196
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_color.c130
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_color.h29
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_def.h51
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_entities.h70
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_prop.c128
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_prop.h40
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_section.c233
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_section.h34
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_types.h78
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_vars.h64
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/Makefile514
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/Makefile.am24
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/Makefile.in514
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt.c175
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt.h30
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt_callbacks.c999
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt_callbacks.h95
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt_opcodes.h136
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/Makefile509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/Makefile.am20
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/Makefile.in509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/imp_glb.c258
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/Makefile509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/Makefile.am20
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/Makefile.in509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/imp_heightfield.c115
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile512
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile.am21
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile.in512
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob.c98
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob.h33
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_callbacks.c347
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_callbacks.h37
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_chunks.h73
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/Makefile509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/Makefile.am20
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/Makefile.in509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/imp_joe.c386
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/Makefile514
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/Makefile.am26
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/Makefile.in514
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/imp_kmz.c168
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/Makefile519
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/Makefile.am24
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/Makefile.in519
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw.c112
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_color.c124
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_color.h30
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_library.c175
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_library.h32
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_misc.h36
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_mpd.c121
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_mpd.h33
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_part.c291
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_part.h31
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_types.h48
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/Makefile510
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/Makefile.am20
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/Makefile.in510
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/imp_leocad.c496
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/imp_leocad_library.c633
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/imp_leocad_library.h62
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/Makefile512
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/Makefile.am21
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/Makefile.in512
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo.c216
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo.h48
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo_callbacks.c584
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo_callbacks.h41
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo_chunks.h124
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/Makefile515
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/Makefile.am26
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/Makefile.in515
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max.c358
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max_callbacks.c696
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max_callbacks.h82
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max_chunks.h289
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/Makefile518
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/Makefile.am25
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/Makefile.in518
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya.c77
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_callbacks.c645
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_callbacks.h43
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_chunks.h130
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_obj.c110
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_obj.h41
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_var.c60
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_var.h33
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/Makefile509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/Makefile.am20
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/Makefile.in509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/imp_md2.c292
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/imp_md2_normals.h192
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/Makefile509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/Makefile.am20
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/Makefile.in509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/imp_md3.c396
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/Makefile509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/Makefile.am20
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/Makefile.in509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/imp_nff.c169
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/Makefile509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/Makefile.am20
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/Makefile.in509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/imp_obj.c403
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile511
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile.am24
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile.in511
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/imp_osm.c334
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/Makefile509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/Makefile.am20
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/Makefile.in509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/imp_q3o.c586
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/Makefile513
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/Makefile.am23
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/Makefile.in513
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4.c79
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4_callbacks.c418
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4_callbacks.h40
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4_chunks.h62
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/Makefile513
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/Makefile.am23
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/Makefile.in513
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh.c88
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh_callbacks.c116
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh_callbacks.h32
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh_chunks.h38
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/Makefile516
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/Makefile.am24
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/Makefile.in516
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp.c218
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp.h25
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_callbacks.c614
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_callbacks.h59
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_chunks.h62
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_read.c114
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_read.h35
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_types.h33
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile510
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile.am22
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile.in510
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/imp_stl.c200
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/Makefile513
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/Makefile.am23
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/Makefile.in513
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta.c77
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta_3do.c183
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta_3do.h31
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta_3do_palette.h286
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile510
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile.am22
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile.in510
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/imp_test.c164
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/Makefile524
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/Makefile.am26
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/Makefile.in524
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/imp_vrml.c122
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/imp_vrml_v1.c2788
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/imp_vrml_v1.h356
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/Makefile518
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/Makefile.am26
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/Makefile.in518
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2.c82
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2.h42
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2_nodes.h42
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2_types.c78
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2_types.h103
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml_read.c647
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml_read.h56
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml_types.h88
-rw-r--r--src/others/mimesh/libg3d-0.0.8/programs/Makefile497
-rw-r--r--src/others/mimesh/libg3d-0.0.8/programs/Makefile.am10
-rw-r--r--src/others/mimesh/libg3d-0.0.8/programs/Makefile.in497
-rw-r--r--src/others/mimesh/libg3d-0.0.8/programs/g3d-stat.c324
-rw-r--r--src/others/mimesh/libg3d-0.0.8/src/Makefile691
-rw-r--r--src/others/mimesh/libg3d-0.0.8/src/Makefile.am45
-rw-r--r--src/others/mimesh/libg3d-0.0.8/src/Makefile.in691
-rw-r--r--src/others/mimesh/libg3d-0.0.8/src/context.c119
-rw-r--r--src/others/mimesh/libg3d-0.0.8/src/face.c57
-rw-r--r--src/others/mimesh/libg3d-0.0.8/src/iff.c459
-rw-r--r--src/others/mimesh/libg3d-0.0.8/src/material.c42
-rw-r--r--src/others/mimesh/libg3d-0.0.8/src/matrix.c263
-rw-r--r--src/others/mimesh/libg3d-0.0.8/src/model.c406
-rw-r--r--src/others/mimesh/libg3d-0.0.8/src/object.c400
-rw-r--r--src/others/mimesh/libg3d-0.0.8/src/plugins.c560
-rw-r--r--src/others/mimesh/libg3d-0.0.8/src/primitive.c743
-rw-r--r--src/others/mimesh/libg3d-0.0.8/src/quat.c176
-rw-r--r--src/others/mimesh/libg3d-0.0.8/src/read.c147
-rw-r--r--src/others/mimesh/libg3d-0.0.8/src/stream.c171
-rw-r--r--src/others/mimesh/libg3d-0.0.8/src/stream_buffer.c126
-rw-r--r--src/others/mimesh/libg3d-0.0.8/src/stream_file.c117
-rw-r--r--src/others/mimesh/libg3d-0.0.8/src/stream_gsf.c355
-rw-r--r--src/others/mimesh/libg3d-0.0.8/src/stream_gsf_class.c135
-rw-r--r--src/others/mimesh/libg3d-0.0.8/src/stream_gsf_class.h53
-rw-r--r--src/others/mimesh/libg3d-0.0.8/src/stream_read.c152
-rw-r--r--src/others/mimesh/libg3d-0.0.8/src/stream_zlib.c192
-rw-r--r--src/others/mimesh/libg3d-0.0.8/src/texture.c270
-rw-r--r--src/others/mimesh/libg3d-0.0.8/src/vector.c84
-rw-r--r--src/others/mimesh/libg3d-0.0.8/tests/Makefile538
-rw-r--r--src/others/mimesh/libg3d-0.0.8/tests/Makefile.am32
-rw-r--r--src/others/mimesh/libg3d-0.0.8/tests/Makefile.in538
-rw-r--r--src/others/mimesh/libg3d-0.0.8/tests/test_buf.c59
-rw-r--r--src/others/mimesh/libg3d-0.0.8/tests/test_cxx.cxx40
-rw-r--r--src/others/mimesh/libg3d-0.0.8/tests/test_imgdump.c72
-rw-r--r--src/others/mimesh/libg3d-0.0.8/tests/test_lib.c99
462 files changed, 158340 insertions, 0 deletions
diff --git a/src/others/mimesh/libg3d-0.0.8/AUTHORS b/src/others/mimesh/libg3d-0.0.8/AUTHORS
new file mode 100644
index 0000000..d1daf22
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/AUTHORS
@@ -0,0 +1,11 @@
1AUTHOR:
2Markus Dahms <mad@automagically.de>
3
4PATCHES FROM (in alphabetical order):
5Romain Behar
6Oliver Dippel
7Sven Eckelmann
8Peter Fritzsche
9Martin Gerhardy
10Marek Lindner
11Simon Wunderlich
diff --git a/src/others/mimesh/libg3d-0.0.8/COPYING b/src/others/mimesh/libg3d-0.0.8/COPYING
new file mode 100644
index 0000000..8add30a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/COPYING
@@ -0,0 +1,504 @@
1 GNU LESSER GENERAL PUBLIC LICENSE
2 Version 2.1, February 1999
3
4 Copyright (C) 1991, 1999 Free Software Foundation, Inc.
5 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
6 Everyone is permitted to copy and distribute verbatim copies
7 of this license document, but changing it is not allowed.
8
9[This is the first released version of the Lesser GPL. It also counts
10 as the successor of the GNU Library Public License, version 2, hence
11 the version number 2.1.]
12
13 Preamble
14
15 The licenses for most software are designed to take away your
16freedom to share and change it. By contrast, the GNU General Public
17Licenses are intended to guarantee your freedom to share and change
18free software--to make sure the software is free for all its users.
19
20 This license, the Lesser General Public License, applies to some
21specially designated software packages--typically libraries--of the
22Free Software Foundation and other authors who decide to use it. You
23can use it too, but we suggest you first think carefully about whether
24this license or the ordinary General Public License is the better
25strategy to use in any particular case, based on the explanations below.
26
27 When we speak of free software, we are referring to freedom of use,
28not price. Our General Public Licenses are designed to make sure that
29you have the freedom to distribute copies of free software (and charge
30for this service if you wish); that you receive source code or can get
31it if you want it; that you can change the software and use pieces of
32it in new free programs; and that you are informed that you can do
33these things.
34
35 To protect your rights, we need to make restrictions that forbid
36distributors to deny you these rights or to ask you to surrender these
37rights. These restrictions translate to certain responsibilities for
38you if you distribute copies of the library or if you modify it.
39
40 For example, if you distribute copies of the library, whether gratis
41or for a fee, you must give the recipients all the rights that we gave
42you. You must make sure that they, too, receive or can get the source
43code. If you link other code with the library, you must provide
44complete object files to the recipients, so that they can relink them
45with the library after making changes to the library and recompiling
46it. And you must show them these terms so they know their rights.
47
48 We protect your rights with a two-step method: (1) we copyright the
49library, and (2) we offer you this license, which gives you legal
50permission to copy, distribute and/or modify the library.
51
52 To protect each distributor, we want to make it very clear that
53there is no warranty for the free library. Also, if the library is
54modified by someone else and passed on, the recipients should know
55that what they have is not the original version, so that the original
56author's reputation will not be affected by problems that might be
57introduced by others.
58
59 Finally, software patents pose a constant threat to the existence of
60any free program. We wish to make sure that a company cannot
61effectively restrict the users of a free program by obtaining a
62restrictive license from a patent holder. Therefore, we insist that
63any patent license obtained for a version of the library must be
64consistent with the full freedom of use specified in this license.
65
66 Most GNU software, including some libraries, is covered by the
67ordinary GNU General Public License. This license, the GNU Lesser
68General Public License, applies to certain designated libraries, and
69is quite different from the ordinary General Public License. We use
70this license for certain libraries in order to permit linking those
71libraries into non-free programs.
72
73 When a program is linked with a library, whether statically or using
74a shared library, the combination of the two is legally speaking a
75combined work, a derivative of the original library. The ordinary
76General Public License therefore permits such linking only if the
77entire combination fits its criteria of freedom. The Lesser General
78Public License permits more lax criteria for linking other code with
79the library.
80
81 We call this license the "Lesser" General Public License because it
82does Less to protect the user's freedom than the ordinary General
83Public License. It also provides other free software developers Less
84of an advantage over competing non-free programs. These disadvantages
85are the reason we use the ordinary General Public License for many
86libraries. However, the Lesser license provides advantages in certain
87special circumstances.
88
89 For example, on rare occasions, there may be a special need to
90encourage the widest possible use of a certain library, so that it becomes
91a de-facto standard. To achieve this, non-free programs must be
92allowed to use the library. A more frequent case is that a free
93library does the same job as widely used non-free libraries. In this
94case, there is little to gain by limiting the free library to free
95software only, so we use the Lesser General Public License.
96
97 In other cases, permission to use a particular library in non-free
98programs enables a greater number of people to use a large body of
99free software. For example, permission to use the GNU C Library in
100non-free programs enables many more people to use the whole GNU
101operating system, as well as its variant, the GNU/Linux operating
102system.
103
104 Although the Lesser General Public License is Less protective of the
105users' freedom, it does ensure that the user of a program that is
106linked with the Library has the freedom and the wherewithal to run
107that program using a modified version of the Library.
108
109 The precise terms and conditions for copying, distribution and
110modification follow. Pay close attention to the difference between a
111"work based on the library" and a "work that uses the library". The
112former contains code derived from the library, whereas the latter must
113be combined with the library in order to run.
114
115 GNU LESSER GENERAL PUBLIC LICENSE
116 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
117
118 0. This License Agreement applies to any software library or other
119program which contains a notice placed by the copyright holder or
120other authorized party saying it may be distributed under the terms of
121this Lesser General Public License (also called "this License").
122Each licensee is addressed as "you".
123
124 A "library" means a collection of software functions and/or data
125prepared so as to be conveniently linked with application programs
126(which use some of those functions and data) to form executables.
127
128 The "Library", below, refers to any such software library or work
129which has been distributed under these terms. A "work based on the
130Library" means either the Library or any derivative work under
131copyright law: that is to say, a work containing the Library or a
132portion of it, either verbatim or with modifications and/or translated
133straightforwardly into another language. (Hereinafter, translation is
134included without limitation in the term "modification".)
135
136 "Source code" for a work means the preferred form of the work for
137making modifications to it. For a library, complete source code means
138all the source code for all modules it contains, plus any associated
139interface definition files, plus the scripts used to control compilation
140and installation of the library.
141
142 Activities other than copying, distribution and modification are not
143covered by this License; they are outside its scope. The act of
144running a program using the Library is not restricted, and output from
145such a program is covered only if its contents constitute a work based
146on the Library (independent of the use of the Library in a tool for
147writing it). Whether that is true depends on what the Library does
148and what the program that uses the Library does.
149
150 1. You may copy and distribute verbatim copies of the Library's
151complete source code as you receive it, in any medium, provided that
152you conspicuously and appropriately publish on each copy an
153appropriate copyright notice and disclaimer of warranty; keep intact
154all the notices that refer to this License and to the absence of any
155warranty; and distribute a copy of this License along with the
156Library.
157
158 You may charge a fee for the physical act of transferring a copy,
159and you may at your option offer warranty protection in exchange for a
160fee.
161
162 2. You may modify your copy or copies of the Library or any portion
163of it, thus forming a work based on the Library, and copy and
164distribute such modifications or work under the terms of Section 1
165above, provided that you also meet all of these conditions:
166
167 a) The modified work must itself be a software library.
168
169 b) You must cause the files modified to carry prominent notices
170 stating that you changed the files and the date of any change.
171
172 c) You must cause the whole of the work to be licensed at no
173 charge to all third parties under the terms of this License.
174
175 d) If a facility in the modified Library refers to a function or a
176 table of data to be supplied by an application program that uses
177 the facility, other than as an argument passed when the facility
178 is invoked, then you must make a good faith effort to ensure that,
179 in the event an application does not supply such function or
180 table, the facility still operates, and performs whatever part of
181 its purpose remains meaningful.
182
183 (For example, a function in a library to compute square roots has
184 a purpose that is entirely well-defined independent of the
185 application. Therefore, Subsection 2d requires that any
186 application-supplied function or table used by this function must
187 be optional: if the application does not supply it, the square
188 root function must still compute square roots.)
189
190These requirements apply to the modified work as a whole. If
191identifiable sections of that work are not derived from the Library,
192and can be reasonably considered independent and separate works in
193themselves, then this License, and its terms, do not apply to those
194sections when you distribute them as separate works. But when you
195distribute the same sections as part of a whole which is a work based
196on the Library, the distribution of the whole must be on the terms of
197this License, whose permissions for other licensees extend to the
198entire whole, and thus to each and every part regardless of who wrote
199it.
200
201Thus, it is not the intent of this section to claim rights or contest
202your rights to work written entirely by you; rather, the intent is to
203exercise the right to control the distribution of derivative or
204collective works based on the Library.
205
206In addition, mere aggregation of another work not based on the Library
207with the Library (or with a work based on the Library) on a volume of
208a storage or distribution medium does not bring the other work under
209the scope of this License.
210
211 3. You may opt to apply the terms of the ordinary GNU General Public
212License instead of this License to a given copy of the Library. To do
213this, you must alter all the notices that refer to this License, so
214that they refer to the ordinary GNU General Public License, version 2,
215instead of to this License. (If a newer version than version 2 of the
216ordinary GNU General Public License has appeared, then you can specify
217that version instead if you wish.) Do not make any other change in
218these notices.
219
220 Once this change is made in a given copy, it is irreversible for
221that copy, so the ordinary GNU General Public License applies to all
222subsequent copies and derivative works made from that copy.
223
224 This option is useful when you wish to copy part of the code of
225the Library into a program that is not a library.
226
227 4. You may copy and distribute the Library (or a portion or
228derivative of it, under Section 2) in object code or executable form
229under the terms of Sections 1 and 2 above provided that you accompany
230it with the complete corresponding machine-readable source code, which
231must be distributed under the terms of Sections 1 and 2 above on a
232medium customarily used for software interchange.
233
234 If distribution of object code is made by offering access to copy
235from a designated place, then offering equivalent access to copy the
236source code from the same place satisfies the requirement to
237distribute the source code, even though third parties are not
238compelled to copy the source along with the object code.
239
240 5. A program that contains no derivative of any portion of the
241Library, but is designed to work with the Library by being compiled or
242linked with it, is called a "work that uses the Library". Such a
243work, in isolation, is not a derivative work of the Library, and
244therefore falls outside the scope of this License.
245
246 However, linking a "work that uses the Library" with the Library
247creates an executable that is a derivative of the Library (because it
248contains portions of the Library), rather than a "work that uses the
249library". The executable is therefore covered by this License.
250Section 6 states terms for distribution of such executables.
251
252 When a "work that uses the Library" uses material from a header file
253that is part of the Library, the object code for the work may be a
254derivative work of the Library even though the source code is not.
255Whether this is true is especially significant if the work can be
256linked without the Library, or if the work is itself a library. The
257threshold for this to be true is not precisely defined by law.
258
259 If such an object file uses only numerical parameters, data
260structure layouts and accessors, and small macros and small inline
261functions (ten lines or less in length), then the use of the object
262file is unrestricted, regardless of whether it is legally a derivative
263work. (Executables containing this object code plus portions of the
264Library will still fall under Section 6.)
265
266 Otherwise, if the work is a derivative of the Library, you may
267distribute the object code for the work under the terms of Section 6.
268Any executables containing that work also fall under Section 6,
269whether or not they are linked directly with the Library itself.
270
271 6. As an exception to the Sections above, you may also combine or
272link a "work that uses the Library" with the Library to produce a
273work containing portions of the Library, and distribute that work
274under terms of your choice, provided that the terms permit
275modification of the work for the customer's own use and reverse
276engineering for debugging such modifications.
277
278 You must give prominent notice with each copy of the work that the
279Library is used in it and that the Library and its use are covered by
280this License. You must supply a copy of this License. If the work
281during execution displays copyright notices, you must include the
282copyright notice for the Library among them, as well as a reference
283directing the user to the copy of this License. Also, you must do one
284of these things:
285
286 a) Accompany the work with the complete corresponding
287 machine-readable source code for the Library including whatever
288 changes were used in the work (which must be distributed under
289 Sections 1 and 2 above); and, if the work is an executable linked
290 with the Library, with the complete machine-readable "work that
291 uses the Library", as object code and/or source code, so that the
292 user can modify the Library and then relink to produce a modified
293 executable containing the modified Library. (It is understood
294 that the user who changes the contents of definitions files in the
295 Library will not necessarily be able to recompile the application
296 to use the modified definitions.)
297
298 b) Use a suitable shared library mechanism for linking with the
299 Library. A suitable mechanism is one that (1) uses at run time a
300 copy of the library already present on the user's computer system,
301 rather than copying library functions into the executable, and (2)
302 will operate properly with a modified version of the library, if
303 the user installs one, as long as the modified version is
304 interface-compatible with the version that the work was made with.
305
306 c) Accompany the work with a written offer, valid for at
307 least three years, to give the same user the materials
308 specified in Subsection 6a, above, for a charge no more
309 than the cost of performing this distribution.
310
311 d) If distribution of the work is made by offering access to copy
312 from a designated place, offer equivalent access to copy the above
313 specified materials from the same place.
314
315 e) Verify that the user has already received a copy of these
316 materials or that you have already sent this user a copy.
317
318 For an executable, the required form of the "work that uses the
319Library" must include any data and utility programs needed for
320reproducing the executable from it. However, as a special exception,
321the materials to be distributed need not include anything that is
322normally distributed (in either source or binary form) with the major
323components (compiler, kernel, and so on) of the operating system on
324which the executable runs, unless that component itself accompanies
325the executable.
326
327 It may happen that this requirement contradicts the license
328restrictions of other proprietary libraries that do not normally
329accompany the operating system. Such a contradiction means you cannot
330use both them and the Library together in an executable that you
331distribute.
332
333 7. You may place library facilities that are a work based on the
334Library side-by-side in a single library together with other library
335facilities not covered by this License, and distribute such a combined
336library, provided that the separate distribution of the work based on
337the Library and of the other library facilities is otherwise
338permitted, and provided that you do these two things:
339
340 a) Accompany the combined library with a copy of the same work
341 based on the Library, uncombined with any other library
342 facilities. This must be distributed under the terms of the
343 Sections above.
344
345 b) Give prominent notice with the combined library of the fact
346 that part of it is a work based on the Library, and explaining
347 where to find the accompanying uncombined form of the same work.
348
349 8. You may not copy, modify, sublicense, link with, or distribute
350the Library except as expressly provided under this License. Any
351attempt otherwise to copy, modify, sublicense, link with, or
352distribute the Library is void, and will automatically terminate your
353rights under this License. However, parties who have received copies,
354or rights, from you under this License will not have their licenses
355terminated so long as such parties remain in full compliance.
356
357 9. You are not required to accept this License, since you have not
358signed it. However, nothing else grants you permission to modify or
359distribute the Library or its derivative works. These actions are
360prohibited by law if you do not accept this License. Therefore, by
361modifying or distributing the Library (or any work based on the
362Library), you indicate your acceptance of this License to do so, and
363all its terms and conditions for copying, distributing or modifying
364the Library or works based on it.
365
366 10. Each time you redistribute the Library (or any work based on the
367Library), the recipient automatically receives a license from the
368original licensor to copy, distribute, link with or modify the Library
369subject to these terms and conditions. You may not impose any further
370restrictions on the recipients' exercise of the rights granted herein.
371You are not responsible for enforcing compliance by third parties with
372this License.
373
374 11. If, as a consequence of a court judgment or allegation of patent
375infringement or for any other reason (not limited to patent issues),
376conditions are imposed on you (whether by court order, agreement or
377otherwise) that contradict the conditions of this License, they do not
378excuse you from the conditions of this License. If you cannot
379distribute so as to satisfy simultaneously your obligations under this
380License and any other pertinent obligations, then as a consequence you
381may not distribute the Library at all. For example, if a patent
382license would not permit royalty-free redistribution of the Library by
383all those who receive copies directly or indirectly through you, then
384the only way you could satisfy both it and this License would be to
385refrain entirely from distribution of the Library.
386
387If any portion of this section is held invalid or unenforceable under any
388particular circumstance, the balance of the section is intended to apply,
389and the section as a whole is intended to apply in other circumstances.
390
391It is not the purpose of this section to induce you to infringe any
392patents or other property right claims or to contest validity of any
393such claims; this section has the sole purpose of protecting the
394integrity of the free software distribution system which is
395implemented by public license practices. Many people have made
396generous contributions to the wide range of software distributed
397through that system in reliance on consistent application of that
398system; it is up to the author/donor to decide if he or she is willing
399to distribute software through any other system and a licensee cannot
400impose that choice.
401
402This section is intended to make thoroughly clear what is believed to
403be a consequence of the rest of this License.
404
405 12. If the distribution and/or use of the Library is restricted in
406certain countries either by patents or by copyrighted interfaces, the
407original copyright holder who places the Library under this License may add
408an explicit geographical distribution limitation excluding those countries,
409so that distribution is permitted only in or among countries not thus
410excluded. In such case, this License incorporates the limitation as if
411written in the body of this License.
412
413 13. The Free Software Foundation may publish revised and/or new
414versions of the Lesser General Public License from time to time.
415Such new versions will be similar in spirit to the present version,
416but may differ in detail to address new problems or concerns.
417
418Each version is given a distinguishing version number. If the Library
419specifies a version number of this License which applies to it and
420"any later version", you have the option of following the terms and
421conditions either of that version or of any later version published by
422the Free Software Foundation. If the Library does not specify a
423license version number, you may choose any version ever published by
424the Free Software Foundation.
425
426 14. If you wish to incorporate parts of the Library into other free
427programs whose distribution conditions are incompatible with these,
428write to the author to ask for permission. For software which is
429copyrighted by the Free Software Foundation, write to the Free
430Software Foundation; we sometimes make exceptions for this. Our
431decision will be guided by the two goals of preserving the free status
432of all derivatives of our free software and of promoting the sharing
433and reuse of software generally.
434
435 NO WARRANTY
436
437 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
438WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
439EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
440OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
441KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
442IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
443PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
444LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
445THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
446
447 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
448WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
449AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
450FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
451CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
452LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
453RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
454FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
455SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
456DAMAGES.
457
458 END OF TERMS AND CONDITIONS
459
460 How to Apply These Terms to Your New Libraries
461
462 If you develop a new library, and you want it to be of the greatest
463possible use to the public, we recommend making it free software that
464everyone can redistribute and change. You can do so by permitting
465redistribution under these terms (or, alternatively, under the terms of the
466ordinary General Public License).
467
468 To apply these terms, attach the following notices to the library. It is
469safest to attach them to the start of each source file to most effectively
470convey the exclusion of warranty; and each file should have at least the
471"copyright" line and a pointer to where the full notice is found.
472
473 <one line to give the library's name and a brief idea of what it does.>
474 Copyright (C) <year> <name of author>
475
476 This library is free software; you can redistribute it and/or
477 modify it under the terms of the GNU Lesser General Public
478 License as published by the Free Software Foundation; either
479 version 2.1 of the License, or (at your option) any later version.
480
481 This library is distributed in the hope that it will be useful,
482 but WITHOUT ANY WARRANTY; without even the implied warranty of
483 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
484 Lesser General Public License for more details.
485
486 You should have received a copy of the GNU Lesser General Public
487 License along with this library; if not, write to the Free Software
488 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
489
490Also add information on how to contact you by electronic and paper mail.
491
492You should also get your employer (if you work as a programmer) or your
493school, if any, to sign a "copyright disclaimer" for the library, if
494necessary. Here is a sample; alter the names:
495
496 Yoyodyne, Inc., hereby disclaims all copyright interest in the
497 library `Frob' (a library for tweaking knobs) written by James Random Hacker.
498
499 <signature of Ty Coon>, 1 April 1990
500 Ty Coon, President of Vice
501
502That's all there is to it!
503
504
diff --git a/src/others/mimesh/libg3d-0.0.8/ChangeLog b/src/others/mimesh/libg3d-0.0.8/ChangeLog
new file mode 100644
index 0000000..aff1b17
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/ChangeLog
@@ -0,0 +1,59 @@
1Changes since version 0.0.7:
2 * imp_dae: build fix for !HAVE_LIBGSF case
3 * general: LGPL boilerplates and copyright years updated
4 * doc: API documentation updated
5
6Changes since version 0.0.6:
7 * doc: API documentation updated
8 * plugins: converted to G3DStream interface
9 * plugins: the models loaded by some plugins are rotated to fit
10 a common coordinate system (y axis pointing up)
11 * img_bmp: fixed wrong colors
12 * imp_flt: some improvements
13 * imp_ldraw: LDraw plugin, usable
14 * imp_dae: COLLADA plugin, mostly usable
15 * imp_dxf: mostly rewritten, now supports POLYLINE entries
16 * imp_kmz: G**gle Earth plugin, mostly usable
17 * imp_acf: experimental X-Plane 6/7 plugin, usable to some degree
18 * imp_blend: experimental Blender plugin, not really usable
19 * imp_3dm: experimental OpenNURBS plugin, not really usable
20 * imp_c4d: experimental Cinema 4D plugin, not usable
21 * imp_skp: experimental SketchUp plugin, not usable
22 * imp_vrml2: experimental VRML 97 plugin w/o using flex, not usable
23 * general: the usual bug fixes and minor improvements
24 * general: endianess fixes, tested on 64-bit big endian target
25 * build: no more weak linking, now works on Cygwin
26
27Changes since version 0.0.5:
28 * plugins: try to detect file type with libmagic if available
29 * general: there are some minor API changes which require the
30 reconfiguration and recompilation of programs using libg3d
31 * imp_flt: very basic model support for OpenFlight
32 * imp_r4: basic support for Reflections/Monzoom models
33 * imp_glb: texture support
34 * doc: a little bit more API documentation
35
36(Version 0.0.4 was not released)
37
38Changes since version 0.0.3:
39 * imp_3ds: reorganization
40 * imp_3ds: better texture support
41 * imp_iob: better material support
42 * general: more cleanup on exit
43 * general: usual bugfixes
44 * imp_ar: new Racer (ar, dof) plugin
45 * imp_joe: new VDrift (joe, car) plugin
46 * imp_glb: new UltimateStunts (glb) plugin
47 * API: extended G3DImage structure:
48 - introduced tex_env parameter to let texture image request
49 a special handling
50 - recompilation of existing applications is required
51 * plugins: some plugins now only compile if --enable-experimental
52 is added to ./configure
53
54Changes since version 0.0.2:
55 * plugins: support (partly) for object trees
56 * imp_ac3d: hierarchical object support
57 * bugfixes
58
59Changes before 0.0.1: see G3DViewer ChangeLog
diff --git a/src/others/mimesh/libg3d-0.0.8/INSTALL b/src/others/mimesh/libg3d-0.0.8/INSTALL
new file mode 100644
index 0000000..54caf7c
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/INSTALL
@@ -0,0 +1,229 @@
1Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free Software
2Foundation, Inc.
3
4 This file is free documentation; the Free Software Foundation gives
5unlimited permission to copy, distribute and modify it.
6
7Basic Installation
8==================
9
10 These are generic installation instructions.
11
12 The `configure' shell script attempts to guess correct values for
13various system-dependent variables used during compilation. It uses
14those values to create a `Makefile' in each directory of the package.
15It may also create one or more `.h' files containing system-dependent
16definitions. Finally, it creates a shell script `config.status' that
17you can run in the future to recreate the current configuration, and a
18file `config.log' containing compiler output (useful mainly for
19debugging `configure').
20
21 It can also use an optional file (typically called `config.cache'
22and enabled with `--cache-file=config.cache' or simply `-C') that saves
23the results of its tests to speed up reconfiguring. (Caching is
24disabled by default to prevent problems with accidental use of stale
25cache files.)
26
27 If you need to do unusual things to compile the package, please try
28to figure out how `configure' could check whether to do them, and mail
29diffs or instructions to the address given in the `README' so they can
30be considered for the next release. If you are using the cache, and at
31some point `config.cache' contains results you don't want to keep, you
32may remove or edit it.
33
34 The file `configure.ac' (or `configure.in') is used to create
35`configure' by a program called `autoconf'. You only need
36`configure.ac' if you want to change it or regenerate `configure' using
37a newer version of `autoconf'.
38
39The simplest way to compile this package is:
40
41 1. `cd' to the directory containing the package's source code and type
42 `./configure' to configure the package for your system. If you're
43 using `csh' on an old version of System V, you might need to type
44 `sh ./configure' instead to prevent `csh' from trying to execute
45 `configure' itself.
46
47 Running `configure' takes awhile. While running, it prints some
48 messages telling which features it is checking for.
49
50 2. Type `make' to compile the package.
51
52 3. Optionally, type `make check' to run any self-tests that come with
53 the package.
54
55 4. Type `make install' to install the programs and any data files and
56 documentation.
57
58 5. You can remove the program binaries and object files from the
59 source code directory by typing `make clean'. To also remove the
60 files that `configure' created (so you can compile the package for
61 a different kind of computer), type `make distclean'. There is
62 also a `make maintainer-clean' target, but that is intended mainly
63 for the package's developers. If you use it, you may have to get
64 all sorts of other programs in order to regenerate files that came
65 with the distribution.
66
67Compilers and Options
68=====================
69
70 Some systems require unusual options for compilation or linking that
71the `configure' script does not know about. Run `./configure --help'
72for details on some of the pertinent environment variables.
73
74 You can give `configure' initial values for configuration parameters
75by setting variables in the command line or in the environment. Here
76is an example:
77
78 ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
79
80 *Note Defining Variables::, for more details.
81
82Compiling For Multiple Architectures
83====================================
84
85 You can compile the package for more than one kind of computer at the
86same time, by placing the object files for each architecture in their
87own directory. To do this, you must use a version of `make' that
88supports the `VPATH' variable, such as GNU `make'. `cd' to the
89directory where you want the object files and executables to go and run
90the `configure' script. `configure' automatically checks for the
91source code in the directory that `configure' is in and in `..'.
92
93 If you have to use a `make' that does not support the `VPATH'
94variable, you have to compile the package for one architecture at a
95time in the source code directory. After you have installed the
96package for one architecture, use `make distclean' before reconfiguring
97for another architecture.
98
99Installation Names
100==================
101
102 By default, `make install' will install the package's files in
103`/usr/local/bin', `/usr/local/man', etc. You can specify an
104installation prefix other than `/usr/local' by giving `configure' the
105option `--prefix=PATH'.
106
107 You can specify separate installation prefixes for
108architecture-specific files and architecture-independent files. If you
109give `configure' the option `--exec-prefix=PATH', the package will use
110PATH as the prefix for installing programs and libraries.
111Documentation and other data files will still use the regular prefix.
112
113 In addition, if you use an unusual directory layout you can give
114options like `--bindir=PATH' to specify different values for particular
115kinds of files. Run `configure --help' for a list of the directories
116you can set and what kinds of files go in them.
117
118 If the package supports it, you can cause programs to be installed
119with an extra prefix or suffix on their names by giving `configure' the
120option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
121
122Optional Features
123=================
124
125 Some packages pay attention to `--enable-FEATURE' options to
126`configure', where FEATURE indicates an optional part of the package.
127They may also pay attention to `--with-PACKAGE' options, where PACKAGE
128is something like `gnu-as' or `x' (for the X Window System). The
129`README' should mention any `--enable-' and `--with-' options that the
130package recognizes.
131
132 For packages that use the X Window System, `configure' can usually
133find the X include and library files automatically, but if it doesn't,
134you can use the `configure' options `--x-includes=DIR' and
135`--x-libraries=DIR' to specify their locations.
136
137Specifying the System Type
138==========================
139
140 There may be some features `configure' cannot figure out
141automatically, but needs to determine by the type of machine the package
142will run on. Usually, assuming the package is built to be run on the
143_same_ architectures, `configure' can figure that out, but if it prints
144a message saying it cannot guess the machine type, give it the
145`--build=TYPE' option. TYPE can either be a short name for the system
146type, such as `sun4', or a canonical name which has the form:
147
148 CPU-COMPANY-SYSTEM
149
150where SYSTEM can have one of these forms:
151
152 OS KERNEL-OS
153
154 See the file `config.sub' for the possible values of each field. If
155`config.sub' isn't included in this package, then this package doesn't
156need to know the machine type.
157
158 If you are _building_ compiler tools for cross-compiling, you should
159use the `--target=TYPE' option to select the type of system they will
160produce code for.
161
162 If you want to _use_ a cross compiler, that generates code for a
163platform different from the build platform, you should specify the
164"host" platform (i.e., that on which the generated programs will
165eventually be run) with `--host=TYPE'.
166
167Sharing Defaults
168================
169
170 If you want to set default values for `configure' scripts to share,
171you can create a site shell script called `config.site' that gives
172default values for variables like `CC', `cache_file', and `prefix'.
173`configure' looks for `PREFIX/share/config.site' if it exists, then
174`PREFIX/etc/config.site' if it exists. Or, you can set the
175`CONFIG_SITE' environment variable to the location of the site script.
176A warning: not all `configure' scripts look for a site script.
177
178Defining Variables
179==================
180
181 Variables not defined in a site shell script can be set in the
182environment passed to `configure'. However, some packages may run
183configure again during the build, and the customized values of these
184variables may be lost. In order to avoid this problem, you should set
185them in the `configure' command line, using `VAR=value'. For example:
186
187 ./configure CC=/usr/local2/bin/gcc
188
189will cause the specified gcc to be used as the C compiler (unless it is
190overridden in the site shell script).
191
192`configure' Invocation
193======================
194
195 `configure' recognizes the following options to control how it
196operates.
197
198`--help'
199`-h'
200 Print a summary of the options to `configure', and exit.
201
202`--version'
203`-V'
204 Print the version of Autoconf used to generate the `configure'
205 script, and exit.
206
207`--cache-file=FILE'
208 Enable the cache: use and save the results of the tests in FILE,
209 traditionally `config.cache'. FILE defaults to `/dev/null' to
210 disable caching.
211
212`--config-cache'
213`-C'
214 Alias for `--cache-file=config.cache'.
215
216`--quiet'
217`--silent'
218`-q'
219 Do not print messages saying which checks are being made. To
220 suppress all normal output, redirect it to `/dev/null' (any error
221 messages will still be shown).
222
223`--srcdir=DIR'
224 Look for the package's source code in directory DIR. Usually
225 `configure' can determine that directory automatically.
226
227`configure' also accepts some other, not widely useful, options. Run
228`configure --help' for more details.
229
diff --git a/src/others/mimesh/libg3d-0.0.8/Makefile b/src/others/mimesh/libg3d-0.0.8/Makefile
new file mode 100644
index 0000000..8848b03
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/Makefile
@@ -0,0 +1,709 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = .
36DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
37 $(srcdir)/Makefile.in $(srcdir)/libg3d.pc.in \
38 $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
39 TODO config/config.guess config/config.sub config/depcomp \
40 config/install-sh config/ltmain.sh config/missing \
41 config/ylwrap
42ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
43am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
44 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
45 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
46 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
47 $(top_srcdir)/configure.in
48am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
49 $(ACLOCAL_M4)
50am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
51 configure.lineno config.status.lineno
52mkinstalldirs = $(install_sh) -d
53CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
54CONFIG_CLEAN_FILES = libg3d.pc
55SOURCES =
56DIST_SOURCES =
57RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
58 html-recursive info-recursive install-data-recursive \
59 install-dvi-recursive install-exec-recursive \
60 install-html-recursive install-info-recursive \
61 install-pdf-recursive install-ps-recursive install-recursive \
62 installcheck-recursive installdirs-recursive pdf-recursive \
63 ps-recursive uninstall-recursive
64am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
65am__vpath_adj = case $$p in \
66 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
67 *) f=$$p;; \
68 esac;
69am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
70am__installdirs = "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(pkglibdir)"
71pkgconfigDATA_INSTALL = $(INSTALL_DATA)
72pkglibDATA_INSTALL = $(INSTALL_DATA)
73DATA = $(pkgconfig_DATA) $(pkglib_DATA)
74RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
75 distclean-recursive maintainer-clean-recursive
76ETAGS = etags
77CTAGS = ctags
78DIST_SUBDIRS = $(SUBDIRS)
79DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
80distdir = $(PACKAGE)-$(VERSION)
81top_distdir = $(distdir)
82am__remove_distdir = \
83 { test ! -d $(distdir) \
84 || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
85 && rm -fr $(distdir); }; }
86DIST_ARCHIVES = $(distdir).tar.gz
87GZIP_ENV = --best
88distuninstallcheck_listfiles = find . -type f -print
89distcleancheck_listfiles = find . -type f -print
90ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
91AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
92AR = ar
93AS = as
94AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
95AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
96AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
97AWK = gawk
98CC = gcc
99CCDEPMODE = depmode=gcc3
100CFLAGS = -g -O2
101CPP = gcc -E
102CPPFLAGS =
103CXX = g++
104CXXCPP = g++ -E
105CXXDEPMODE = depmode=gcc3
106CXXFLAGS = -g -O2
107CYGPATH_W = echo
108DBG_CFLAGS = -O2
109DEBUG = 0
110DEFS = -DHAVE_CONFIG_H
111DEPDIR = .deps
112DLLTOOL = dlltool
113ECHO = echo
114ECHO_C =
115ECHO_N = -n
116ECHO_T =
117EGREP = /bin/grep -E
118EXEEXT =
119F77 =
120FFLAGS =
121GDKPIXBUF_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
122GDKPIXBUF_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
123GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
124GLIB_GENMARSHAL = glib-genmarshal
125GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
126GLIB_MKENUMS = glib-mkenums
127GOBJECT_QUERY = gobject-query
128GREP = /bin/grep
129GTKDOC_CHECK = /usr/bin/gtkdoc-check
130GTK_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
131GTK_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
132HTML_DIR = ${datadir}/gtk-doc/html
133INSTALL = /usr/bin/install -c
134INSTALL_DATA = ${INSTALL} -m 644
135INSTALL_PROGRAM = ${INSTALL}
136INSTALL_SCRIPT = ${INSTALL}
137INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
138LDFLAGS =
139LEX = flex
140LEXLIB = -lfl
141LEX_OUTPUT_ROOT = lex.yy
142LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
143LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
144LIBOBJS =
145LIBS = -lm
146LIBTOOL = $(SHELL) $(top_builddir)/libtool
147LIBXML2_CFLAGS = -I/usr/include/libxml2
148LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
149LN_S = ln -s
150LTLIBOBJS =
151LTVERSION = 0:8:0
152MAGIC_LIBS = -lmagic
153MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
154MATH_LIBS = -lm
155MKDIR_P = /bin/mkdir -p
156OBJDUMP = objdump
157OBJEXT = o
158PACKAGE = libg3d
159PACKAGE_BUGREPORT =
160PACKAGE_NAME =
161PACKAGE_STRING =
162PACKAGE_TARNAME =
163PACKAGE_VERSION =
164PATH_SEPARATOR = :
165PKG_CONFIG = /usr/bin/pkg-config
166PLUGINS_LDFLAGS = -avoid-version -export-dynamic
167RANLIB = ranlib
168SET_MAKE =
169SHELL = /bin/bash
170STRIP = strip
171VERSION = 0.0.8
172XML2_CONFIG = /usr/bin/xml2-config
173XML_CPPFLAGS = -I/usr/include/libxml2
174XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
175Z_CFLAGS =
176Z_LIBS = -lz
177abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
178abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
179abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
180abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
181ac_ct_CC = gcc
182ac_ct_CXX = g++
183ac_ct_F77 =
184am__include = include
185am__leading_dot = .
186am__quote =
187am__tar = ${AMTAR} chof - "$$tardir"
188am__untar = ${AMTAR} xf -
189bindir = ${exec_prefix}/bin
190build = x86_64-unknown-linux-gnu
191build_alias =
192build_cpu = x86_64
193build_os = linux-gnu
194build_vendor = unknown
195builddir = .
196datadir = ${datarootdir}
197datarootdir = ${prefix}/share
198docdir = ${datarootdir}/doc/${PACKAGE}
199dvidir = ${docdir}
200exec_prefix = ${prefix}
201host = x86_64-unknown-linux-gnu
202host_alias =
203host_cpu = x86_64
204host_os = linux-gnu
205host_vendor = unknown
206htmldir = ${docdir}
207includedir = ${prefix}/include
208infodir = ${datarootdir}/info
209install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
210libdir = ${exec_prefix}/lib
211libexecdir = ${exec_prefix}/libexec
212localedir = ${datarootdir}/locale
213localstatedir = ${prefix}/var
214mandir = ${datarootdir}/man
215mkdir_p = /bin/mkdir -p
216oldincludedir = /usr/include
217pdfdir = ${docdir}
218prefix = /usr/local
219program_transform_name = s,x,x,
220psdir = ${docdir}
221sbindir = ${exec_prefix}/sbin
222sharedstatedir = ${prefix}/com
223srcdir = .
224sysconfdir = ${prefix}/etc
225target_alias =
226top_builddir = .
227top_srcdir = .
228SUBDIRS = . doc m4 include src plugins programs tests
229pkgconfigdir = ${libdir}/pkgconfig
230pkgconfig_DATA = libg3d.pc
231pkglib_DATA = libg3d.magic
232EXTRA_DIST = libg3d.magic
233all: all-recursive
234
235.SUFFIXES:
236am--refresh:
237 @:
238$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
239 @for dep in $?; do \
240 case '$(am__configure_deps)' in \
241 *$$dep*) \
242 echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
243 cd $(srcdir) && $(AUTOMAKE) --gnu \
244 && exit 0; \
245 exit 1;; \
246 esac; \
247 done; \
248 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
249 cd $(top_srcdir) && \
250 $(AUTOMAKE) --gnu Makefile
251.PRECIOUS: Makefile
252Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
253 @case '$?' in \
254 *config.status*) \
255 echo ' $(SHELL) ./config.status'; \
256 $(SHELL) ./config.status;; \
257 *) \
258 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
259 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
260 esac;
261
262$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
263 $(SHELL) ./config.status --recheck
264
265$(top_srcdir)/configure: $(am__configure_deps)
266 cd $(srcdir) && $(AUTOCONF)
267$(ACLOCAL_M4): $(am__aclocal_m4_deps)
268 cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
269libg3d.pc: $(top_builddir)/config.status $(srcdir)/libg3d.pc.in
270 cd $(top_builddir) && $(SHELL) ./config.status $@
271
272mostlyclean-libtool:
273 -rm -f *.lo
274
275clean-libtool:
276 -rm -rf .libs _libs
277
278distclean-libtool:
279 -rm -f libtool
280install-pkgconfigDATA: $(pkgconfig_DATA)
281 @$(NORMAL_INSTALL)
282 test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
283 @list='$(pkgconfig_DATA)'; for p in $$list; do \
284 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
285 f=$(am__strip_dir) \
286 echo " $(pkgconfigDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
287 $(pkgconfigDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfigdir)/$$f"; \
288 done
289
290uninstall-pkgconfigDATA:
291 @$(NORMAL_UNINSTALL)
292 @list='$(pkgconfig_DATA)'; for p in $$list; do \
293 f=$(am__strip_dir) \
294 echo " rm -f '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
295 rm -f "$(DESTDIR)$(pkgconfigdir)/$$f"; \
296 done
297install-pkglibDATA: $(pkglib_DATA)
298 @$(NORMAL_INSTALL)
299 test -z "$(pkglibdir)" || $(MKDIR_P) "$(DESTDIR)$(pkglibdir)"
300 @list='$(pkglib_DATA)'; for p in $$list; do \
301 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
302 f=$(am__strip_dir) \
303 echo " $(pkglibDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkglibdir)/$$f'"; \
304 $(pkglibDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkglibdir)/$$f"; \
305 done
306
307uninstall-pkglibDATA:
308 @$(NORMAL_UNINSTALL)
309 @list='$(pkglib_DATA)'; for p in $$list; do \
310 f=$(am__strip_dir) \
311 echo " rm -f '$(DESTDIR)$(pkglibdir)/$$f'"; \
312 rm -f "$(DESTDIR)$(pkglibdir)/$$f"; \
313 done
314
315# This directory's subdirectories are mostly independent; you can cd
316# into them and run `make' without going through this Makefile.
317# To change the values of `make' variables: instead of editing Makefiles,
318# (1) if the variable is set in `config.status', edit `config.status'
319# (which will cause the Makefiles to be regenerated when you run `make');
320# (2) otherwise, pass the desired values on the `make' command line.
321$(RECURSIVE_TARGETS):
322 @failcom='exit 1'; \
323 for f in x $$MAKEFLAGS; do \
324 case $$f in \
325 *=* | --[!k]*);; \
326 *k*) failcom='fail=yes';; \
327 esac; \
328 done; \
329 dot_seen=no; \
330 target=`echo $@ | sed s/-recursive//`; \
331 list='$(SUBDIRS)'; for subdir in $$list; do \
332 echo "Making $$target in $$subdir"; \
333 if test "$$subdir" = "."; then \
334 dot_seen=yes; \
335 local_target="$$target-am"; \
336 else \
337 local_target="$$target"; \
338 fi; \
339 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
340 || eval $$failcom; \
341 done; \
342 if test "$$dot_seen" = "no"; then \
343 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
344 fi; test -z "$$fail"
345
346$(RECURSIVE_CLEAN_TARGETS):
347 @failcom='exit 1'; \
348 for f in x $$MAKEFLAGS; do \
349 case $$f in \
350 *=* | --[!k]*);; \
351 *k*) failcom='fail=yes';; \
352 esac; \
353 done; \
354 dot_seen=no; \
355 case "$@" in \
356 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
357 *) list='$(SUBDIRS)' ;; \
358 esac; \
359 rev=''; for subdir in $$list; do \
360 if test "$$subdir" = "."; then :; else \
361 rev="$$subdir $$rev"; \
362 fi; \
363 done; \
364 rev="$$rev ."; \
365 target=`echo $@ | sed s/-recursive//`; \
366 for subdir in $$rev; do \
367 echo "Making $$target in $$subdir"; \
368 if test "$$subdir" = "."; then \
369 local_target="$$target-am"; \
370 else \
371 local_target="$$target"; \
372 fi; \
373 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
374 || eval $$failcom; \
375 done && test -z "$$fail"
376tags-recursive:
377 list='$(SUBDIRS)'; for subdir in $$list; do \
378 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
379 done
380ctags-recursive:
381 list='$(SUBDIRS)'; for subdir in $$list; do \
382 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
383 done
384
385ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
386 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
387 unique=`for i in $$list; do \
388 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
389 done | \
390 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
391 END { if (nonempty) { for (i in files) print i; }; }'`; \
392 mkid -fID $$unique
393tags: TAGS
394
395TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
396 $(TAGS_FILES) $(LISP)
397 tags=; \
398 here=`pwd`; \
399 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
400 include_option=--etags-include; \
401 empty_fix=.; \
402 else \
403 include_option=--include; \
404 empty_fix=; \
405 fi; \
406 list='$(SUBDIRS)'; for subdir in $$list; do \
407 if test "$$subdir" = .; then :; else \
408 test ! -f $$subdir/TAGS || \
409 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
410 fi; \
411 done; \
412 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
413 unique=`for i in $$list; do \
414 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
415 done | \
416 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
417 END { if (nonempty) { for (i in files) print i; }; }'`; \
418 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
419 test -n "$$unique" || unique=$$empty_fix; \
420 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
421 $$tags $$unique; \
422 fi
423ctags: CTAGS
424CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
425 $(TAGS_FILES) $(LISP)
426 tags=; \
427 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
428 unique=`for i in $$list; do \
429 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
430 done | \
431 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
432 END { if (nonempty) { for (i in files) print i; }; }'`; \
433 test -z "$(CTAGS_ARGS)$$tags$$unique" \
434 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
435 $$tags $$unique
436
437GTAGS:
438 here=`$(am__cd) $(top_builddir) && pwd` \
439 && cd $(top_srcdir) \
440 && gtags -i $(GTAGS_ARGS) $$here
441
442distclean-tags:
443 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
444
445distdir: $(DISTFILES)
446 $(am__remove_distdir)
447 test -d $(distdir) || mkdir $(distdir)
448 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
449 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
450 list='$(DISTFILES)'; \
451 dist_files=`for file in $$list; do echo $$file; done | \
452 sed -e "s|^$$srcdirstrip/||;t" \
453 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
454 case $$dist_files in \
455 */*) $(MKDIR_P) `echo "$$dist_files" | \
456 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
457 sort -u` ;; \
458 esac; \
459 for file in $$dist_files; do \
460 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
461 if test -d $$d/$$file; then \
462 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
463 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
464 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
465 fi; \
466 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
467 else \
468 test -f $(distdir)/$$file \
469 || cp -p $$d/$$file $(distdir)/$$file \
470 || exit 1; \
471 fi; \
472 done
473 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
474 if test "$$subdir" = .; then :; else \
475 test -d "$(distdir)/$$subdir" \
476 || $(MKDIR_P) "$(distdir)/$$subdir" \
477 || exit 1; \
478 distdir=`$(am__cd) $(distdir) && pwd`; \
479 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
480 (cd $$subdir && \
481 $(MAKE) $(AM_MAKEFLAGS) \
482 top_distdir="$$top_distdir" \
483 distdir="$$distdir/$$subdir" \
484 am__remove_distdir=: \
485 am__skip_length_check=: \
486 distdir) \
487 || exit 1; \
488 fi; \
489 done
490 -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
491 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
492 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
493 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
494 || chmod -R a+r $(distdir)
495dist-gzip: distdir
496 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
497 $(am__remove_distdir)
498
499dist-bzip2: distdir
500 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
501 $(am__remove_distdir)
502
503dist-lzma: distdir
504 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
505 $(am__remove_distdir)
506
507dist-tarZ: distdir
508 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
509 $(am__remove_distdir)
510
511dist-shar: distdir
512 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
513 $(am__remove_distdir)
514
515dist-zip: distdir
516 -rm -f $(distdir).zip
517 zip -rq $(distdir).zip $(distdir)
518 $(am__remove_distdir)
519
520dist dist-all: distdir
521 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
522 $(am__remove_distdir)
523
524# This target untars the dist file and tries a VPATH configuration. Then
525# it guarantees that the distribution is self-contained by making another
526# tarfile.
527distcheck: dist
528 case '$(DIST_ARCHIVES)' in \
529 *.tar.gz*) \
530 GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
531 *.tar.bz2*) \
532 bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
533 *.tar.lzma*) \
534 unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
535 *.tar.Z*) \
536 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
537 *.shar.gz*) \
538 GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
539 *.zip*) \
540 unzip $(distdir).zip ;;\
541 esac
542 chmod -R a-w $(distdir); chmod a+w $(distdir)
543 mkdir $(distdir)/_build
544 mkdir $(distdir)/_inst
545 chmod a-w $(distdir)
546 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
547 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
548 && cd $(distdir)/_build \
549 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
550 $(DISTCHECK_CONFIGURE_FLAGS) \
551 && $(MAKE) $(AM_MAKEFLAGS) \
552 && $(MAKE) $(AM_MAKEFLAGS) dvi \
553 && $(MAKE) $(AM_MAKEFLAGS) check \
554 && $(MAKE) $(AM_MAKEFLAGS) install \
555 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
556 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
557 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
558 distuninstallcheck \
559 && chmod -R a-w "$$dc_install_base" \
560 && ({ \
561 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
562 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
563 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
564 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
565 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
566 } || { rm -rf "$$dc_destdir"; exit 1; }) \
567 && rm -rf "$$dc_destdir" \
568 && $(MAKE) $(AM_MAKEFLAGS) dist \
569 && rm -rf $(DIST_ARCHIVES) \
570 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
571 $(am__remove_distdir)
572 @(echo "$(distdir) archives ready for distribution: "; \
573 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
574 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
575distuninstallcheck:
576 @cd $(distuninstallcheck_dir) \
577 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
578 || { echo "ERROR: files left after uninstall:" ; \
579 if test -n "$(DESTDIR)"; then \
580 echo " (check DESTDIR support)"; \
581 fi ; \
582 $(distuninstallcheck_listfiles) ; \
583 exit 1; } >&2
584distcleancheck: distclean
585 @if test '$(srcdir)' = . ; then \
586 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
587 exit 1 ; \
588 fi
589 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
590 || { echo "ERROR: files left in build directory after distclean:" ; \
591 $(distcleancheck_listfiles) ; \
592 exit 1; } >&2
593check-am: all-am
594check: check-recursive
595all-am: Makefile $(DATA)
596installdirs: installdirs-recursive
597installdirs-am:
598 for dir in "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(pkglibdir)"; do \
599 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
600 done
601install: install-recursive
602install-exec: install-exec-recursive
603install-data: install-data-recursive
604uninstall: uninstall-recursive
605
606install-am: all-am
607 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
608
609installcheck: installcheck-recursive
610install-strip:
611 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
612 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
613 `test -z '$(STRIP)' || \
614 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
615mostlyclean-generic:
616
617clean-generic:
618
619distclean-generic:
620 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
621
622maintainer-clean-generic:
623 @echo "This command is intended for maintainers to use"
624 @echo "it deletes files that may require special tools to rebuild."
625clean: clean-recursive
626
627clean-am: clean-generic clean-libtool mostlyclean-am
628
629distclean: distclean-recursive
630 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
631 -rm -f Makefile
632distclean-am: clean-am distclean-generic distclean-libtool \
633 distclean-tags
634
635dvi: dvi-recursive
636
637dvi-am:
638
639html: html-recursive
640
641info: info-recursive
642
643info-am:
644
645install-data-am: install-pkgconfigDATA
646
647install-dvi: install-dvi-recursive
648
649install-exec-am: install-pkglibDATA
650
651install-html: install-html-recursive
652
653install-info: install-info-recursive
654
655install-man:
656
657install-pdf: install-pdf-recursive
658
659install-ps: install-ps-recursive
660
661installcheck-am:
662
663maintainer-clean: maintainer-clean-recursive
664 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
665 -rm -rf $(top_srcdir)/autom4te.cache
666 -rm -f Makefile
667maintainer-clean-am: distclean-am maintainer-clean-generic
668
669mostlyclean: mostlyclean-recursive
670
671mostlyclean-am: mostlyclean-generic mostlyclean-libtool
672
673pdf: pdf-recursive
674
675pdf-am:
676
677ps: ps-recursive
678
679ps-am:
680
681uninstall-am: uninstall-pkgconfigDATA uninstall-pkglibDATA
682
683.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
684 install-strip
685
686.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
687 all all-am am--refresh check check-am clean clean-generic \
688 clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
689 dist-gzip dist-lzma dist-shar dist-tarZ dist-zip distcheck \
690 distclean distclean-generic distclean-libtool distclean-tags \
691 distcleancheck distdir distuninstallcheck dvi dvi-am html \
692 html-am info info-am install install-am install-data \
693 install-data-am install-dvi install-dvi-am install-exec \
694 install-exec-am install-html install-html-am install-info \
695 install-info-am install-man install-pdf install-pdf-am \
696 install-pkgconfigDATA install-pkglibDATA install-ps \
697 install-ps-am install-strip installcheck installcheck-am \
698 installdirs installdirs-am maintainer-clean \
699 maintainer-clean-generic mostlyclean mostlyclean-generic \
700 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
701 uninstall uninstall-am uninstall-pkgconfigDATA \
702 uninstall-pkglibDATA
703
704
705deb:
706 fakeroot dpkg-buildpackage
707# Tell versions [3.59,3.63) of GNU make to not export all variables.
708# Otherwise a system limit (for SysV at least) may be exceeded.
709.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/Makefile.am b/src/others/mimesh/libg3d-0.0.8/Makefile.am
new file mode 100644
index 0000000..0705705
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/Makefile.am
@@ -0,0 +1,11 @@
1SUBDIRS = . doc m4 include src plugins programs tests
2
3pkgconfigdir=${libdir}/pkgconfig
4
5pkgconfig_DATA = libg3d.pc
6pkglib_DATA = libg3d.magic
7
8deb:
9 fakeroot dpkg-buildpackage
10
11EXTRA_DIST = libg3d.magic
diff --git a/src/others/mimesh/libg3d-0.0.8/Makefile.in b/src/others/mimesh/libg3d-0.0.8/Makefile.in
new file mode 100644
index 0000000..2d69003
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/Makefile.in
@@ -0,0 +1,709 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = .
36DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
37 $(srcdir)/Makefile.in $(srcdir)/libg3d.pc.in \
38 $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
39 TODO config/config.guess config/config.sub config/depcomp \
40 config/install-sh config/ltmain.sh config/missing \
41 config/ylwrap
42ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
43am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
44 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
45 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
46 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
47 $(top_srcdir)/configure.in
48am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
49 $(ACLOCAL_M4)
50am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
51 configure.lineno config.status.lineno
52mkinstalldirs = $(install_sh) -d
53CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
54CONFIG_CLEAN_FILES = libg3d.pc
55SOURCES =
56DIST_SOURCES =
57RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
58 html-recursive info-recursive install-data-recursive \
59 install-dvi-recursive install-exec-recursive \
60 install-html-recursive install-info-recursive \
61 install-pdf-recursive install-ps-recursive install-recursive \
62 installcheck-recursive installdirs-recursive pdf-recursive \
63 ps-recursive uninstall-recursive
64am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
65am__vpath_adj = case $$p in \
66 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
67 *) f=$$p;; \
68 esac;
69am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
70am__installdirs = "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(pkglibdir)"
71pkgconfigDATA_INSTALL = $(INSTALL_DATA)
72pkglibDATA_INSTALL = $(INSTALL_DATA)
73DATA = $(pkgconfig_DATA) $(pkglib_DATA)
74RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
75 distclean-recursive maintainer-clean-recursive
76ETAGS = etags
77CTAGS = ctags
78DIST_SUBDIRS = $(SUBDIRS)
79DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
80distdir = $(PACKAGE)-$(VERSION)
81top_distdir = $(distdir)
82am__remove_distdir = \
83 { test ! -d $(distdir) \
84 || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
85 && rm -fr $(distdir); }; }
86DIST_ARCHIVES = $(distdir).tar.gz
87GZIP_ENV = --best
88distuninstallcheck_listfiles = find . -type f -print
89distcleancheck_listfiles = find . -type f -print
90ACLOCAL = @ACLOCAL@
91AMTAR = @AMTAR@
92AR = @AR@
93AS = @AS@
94AUTOCONF = @AUTOCONF@
95AUTOHEADER = @AUTOHEADER@
96AUTOMAKE = @AUTOMAKE@
97AWK = @AWK@
98CC = @CC@
99CCDEPMODE = @CCDEPMODE@
100CFLAGS = @CFLAGS@
101CPP = @CPP@
102CPPFLAGS = @CPPFLAGS@
103CXX = @CXX@
104CXXCPP = @CXXCPP@
105CXXDEPMODE = @CXXDEPMODE@
106CXXFLAGS = @CXXFLAGS@
107CYGPATH_W = @CYGPATH_W@
108DBG_CFLAGS = @DBG_CFLAGS@
109DEBUG = @DEBUG@
110DEFS = @DEFS@
111DEPDIR = @DEPDIR@
112DLLTOOL = @DLLTOOL@
113ECHO = @ECHO@
114ECHO_C = @ECHO_C@
115ECHO_N = @ECHO_N@
116ECHO_T = @ECHO_T@
117EGREP = @EGREP@
118EXEEXT = @EXEEXT@
119F77 = @F77@
120FFLAGS = @FFLAGS@
121GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
122GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
123GLIB_CFLAGS = @GLIB_CFLAGS@
124GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
125GLIB_LIBS = @GLIB_LIBS@
126GLIB_MKENUMS = @GLIB_MKENUMS@
127GOBJECT_QUERY = @GOBJECT_QUERY@
128GREP = @GREP@
129GTKDOC_CHECK = @GTKDOC_CHECK@
130GTK_CFLAGS = @GTK_CFLAGS@
131GTK_LIBS = @GTK_LIBS@
132HTML_DIR = @HTML_DIR@
133INSTALL = @INSTALL@
134INSTALL_DATA = @INSTALL_DATA@
135INSTALL_PROGRAM = @INSTALL_PROGRAM@
136INSTALL_SCRIPT = @INSTALL_SCRIPT@
137INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
138LDFLAGS = @LDFLAGS@
139LEX = @LEX@
140LEXLIB = @LEXLIB@
141LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
142LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
143LIBGSF_LIBS = @LIBGSF_LIBS@
144LIBOBJS = @LIBOBJS@
145LIBS = @LIBS@
146LIBTOOL = @LIBTOOL@
147LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
148LIBXML2_LIBS = @LIBXML2_LIBS@
149LN_S = @LN_S@
150LTLIBOBJS = @LTLIBOBJS@
151LTVERSION = @LTVERSION@
152MAGIC_LIBS = @MAGIC_LIBS@
153MAKEINFO = @MAKEINFO@
154MATH_LIBS = @MATH_LIBS@
155MKDIR_P = @MKDIR_P@
156OBJDUMP = @OBJDUMP@
157OBJEXT = @OBJEXT@
158PACKAGE = @PACKAGE@
159PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
160PACKAGE_NAME = @PACKAGE_NAME@
161PACKAGE_STRING = @PACKAGE_STRING@
162PACKAGE_TARNAME = @PACKAGE_TARNAME@
163PACKAGE_VERSION = @PACKAGE_VERSION@
164PATH_SEPARATOR = @PATH_SEPARATOR@
165PKG_CONFIG = @PKG_CONFIG@
166PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
167RANLIB = @RANLIB@
168SET_MAKE = @SET_MAKE@
169SHELL = @SHELL@
170STRIP = @STRIP@
171VERSION = @VERSION@
172XML2_CONFIG = @XML2_CONFIG@
173XML_CPPFLAGS = @XML_CPPFLAGS@
174XML_LIBS = @XML_LIBS@
175Z_CFLAGS = @Z_CFLAGS@
176Z_LIBS = @Z_LIBS@
177abs_builddir = @abs_builddir@
178abs_srcdir = @abs_srcdir@
179abs_top_builddir = @abs_top_builddir@
180abs_top_srcdir = @abs_top_srcdir@
181ac_ct_CC = @ac_ct_CC@
182ac_ct_CXX = @ac_ct_CXX@
183ac_ct_F77 = @ac_ct_F77@
184am__include = @am__include@
185am__leading_dot = @am__leading_dot@
186am__quote = @am__quote@
187am__tar = @am__tar@
188am__untar = @am__untar@
189bindir = @bindir@
190build = @build@
191build_alias = @build_alias@
192build_cpu = @build_cpu@
193build_os = @build_os@
194build_vendor = @build_vendor@
195builddir = @builddir@
196datadir = @datadir@
197datarootdir = @datarootdir@
198docdir = @docdir@
199dvidir = @dvidir@
200exec_prefix = @exec_prefix@
201host = @host@
202host_alias = @host_alias@
203host_cpu = @host_cpu@
204host_os = @host_os@
205host_vendor = @host_vendor@
206htmldir = @htmldir@
207includedir = @includedir@
208infodir = @infodir@
209install_sh = @install_sh@
210libdir = @libdir@
211libexecdir = @libexecdir@
212localedir = @localedir@
213localstatedir = @localstatedir@
214mandir = @mandir@
215mkdir_p = @mkdir_p@
216oldincludedir = @oldincludedir@
217pdfdir = @pdfdir@
218prefix = @prefix@
219program_transform_name = @program_transform_name@
220psdir = @psdir@
221sbindir = @sbindir@
222sharedstatedir = @sharedstatedir@
223srcdir = @srcdir@
224sysconfdir = @sysconfdir@
225target_alias = @target_alias@
226top_builddir = @top_builddir@
227top_srcdir = @top_srcdir@
228SUBDIRS = . doc m4 include src plugins programs tests
229pkgconfigdir = ${libdir}/pkgconfig
230pkgconfig_DATA = libg3d.pc
231pkglib_DATA = libg3d.magic
232EXTRA_DIST = libg3d.magic
233all: all-recursive
234
235.SUFFIXES:
236am--refresh:
237 @:
238$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
239 @for dep in $?; do \
240 case '$(am__configure_deps)' in \
241 *$$dep*) \
242 echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
243 cd $(srcdir) && $(AUTOMAKE) --gnu \
244 && exit 0; \
245 exit 1;; \
246 esac; \
247 done; \
248 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
249 cd $(top_srcdir) && \
250 $(AUTOMAKE) --gnu Makefile
251.PRECIOUS: Makefile
252Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
253 @case '$?' in \
254 *config.status*) \
255 echo ' $(SHELL) ./config.status'; \
256 $(SHELL) ./config.status;; \
257 *) \
258 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
259 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
260 esac;
261
262$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
263 $(SHELL) ./config.status --recheck
264
265$(top_srcdir)/configure: $(am__configure_deps)
266 cd $(srcdir) && $(AUTOCONF)
267$(ACLOCAL_M4): $(am__aclocal_m4_deps)
268 cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
269libg3d.pc: $(top_builddir)/config.status $(srcdir)/libg3d.pc.in
270 cd $(top_builddir) && $(SHELL) ./config.status $@
271
272mostlyclean-libtool:
273 -rm -f *.lo
274
275clean-libtool:
276 -rm -rf .libs _libs
277
278distclean-libtool:
279 -rm -f libtool
280install-pkgconfigDATA: $(pkgconfig_DATA)
281 @$(NORMAL_INSTALL)
282 test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
283 @list='$(pkgconfig_DATA)'; for p in $$list; do \
284 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
285 f=$(am__strip_dir) \
286 echo " $(pkgconfigDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
287 $(pkgconfigDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfigdir)/$$f"; \
288 done
289
290uninstall-pkgconfigDATA:
291 @$(NORMAL_UNINSTALL)
292 @list='$(pkgconfig_DATA)'; for p in $$list; do \
293 f=$(am__strip_dir) \
294 echo " rm -f '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
295 rm -f "$(DESTDIR)$(pkgconfigdir)/$$f"; \
296 done
297install-pkglibDATA: $(pkglib_DATA)
298 @$(NORMAL_INSTALL)
299 test -z "$(pkglibdir)" || $(MKDIR_P) "$(DESTDIR)$(pkglibdir)"
300 @list='$(pkglib_DATA)'; for p in $$list; do \
301 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
302 f=$(am__strip_dir) \
303 echo " $(pkglibDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkglibdir)/$$f'"; \
304 $(pkglibDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkglibdir)/$$f"; \
305 done
306
307uninstall-pkglibDATA:
308 @$(NORMAL_UNINSTALL)
309 @list='$(pkglib_DATA)'; for p in $$list; do \
310 f=$(am__strip_dir) \
311 echo " rm -f '$(DESTDIR)$(pkglibdir)/$$f'"; \
312 rm -f "$(DESTDIR)$(pkglibdir)/$$f"; \
313 done
314
315# This directory's subdirectories are mostly independent; you can cd
316# into them and run `make' without going through this Makefile.
317# To change the values of `make' variables: instead of editing Makefiles,
318# (1) if the variable is set in `config.status', edit `config.status'
319# (which will cause the Makefiles to be regenerated when you run `make');
320# (2) otherwise, pass the desired values on the `make' command line.
321$(RECURSIVE_TARGETS):
322 @failcom='exit 1'; \
323 for f in x $$MAKEFLAGS; do \
324 case $$f in \
325 *=* | --[!k]*);; \
326 *k*) failcom='fail=yes';; \
327 esac; \
328 done; \
329 dot_seen=no; \
330 target=`echo $@ | sed s/-recursive//`; \
331 list='$(SUBDIRS)'; for subdir in $$list; do \
332 echo "Making $$target in $$subdir"; \
333 if test "$$subdir" = "."; then \
334 dot_seen=yes; \
335 local_target="$$target-am"; \
336 else \
337 local_target="$$target"; \
338 fi; \
339 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
340 || eval $$failcom; \
341 done; \
342 if test "$$dot_seen" = "no"; then \
343 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
344 fi; test -z "$$fail"
345
346$(RECURSIVE_CLEAN_TARGETS):
347 @failcom='exit 1'; \
348 for f in x $$MAKEFLAGS; do \
349 case $$f in \
350 *=* | --[!k]*);; \
351 *k*) failcom='fail=yes';; \
352 esac; \
353 done; \
354 dot_seen=no; \
355 case "$@" in \
356 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
357 *) list='$(SUBDIRS)' ;; \
358 esac; \
359 rev=''; for subdir in $$list; do \
360 if test "$$subdir" = "."; then :; else \
361 rev="$$subdir $$rev"; \
362 fi; \
363 done; \
364 rev="$$rev ."; \
365 target=`echo $@ | sed s/-recursive//`; \
366 for subdir in $$rev; do \
367 echo "Making $$target in $$subdir"; \
368 if test "$$subdir" = "."; then \
369 local_target="$$target-am"; \
370 else \
371 local_target="$$target"; \
372 fi; \
373 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
374 || eval $$failcom; \
375 done && test -z "$$fail"
376tags-recursive:
377 list='$(SUBDIRS)'; for subdir in $$list; do \
378 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
379 done
380ctags-recursive:
381 list='$(SUBDIRS)'; for subdir in $$list; do \
382 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
383 done
384
385ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
386 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
387 unique=`for i in $$list; do \
388 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
389 done | \
390 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
391 END { if (nonempty) { for (i in files) print i; }; }'`; \
392 mkid -fID $$unique
393tags: TAGS
394
395TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
396 $(TAGS_FILES) $(LISP)
397 tags=; \
398 here=`pwd`; \
399 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
400 include_option=--etags-include; \
401 empty_fix=.; \
402 else \
403 include_option=--include; \
404 empty_fix=; \
405 fi; \
406 list='$(SUBDIRS)'; for subdir in $$list; do \
407 if test "$$subdir" = .; then :; else \
408 test ! -f $$subdir/TAGS || \
409 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
410 fi; \
411 done; \
412 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
413 unique=`for i in $$list; do \
414 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
415 done | \
416 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
417 END { if (nonempty) { for (i in files) print i; }; }'`; \
418 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
419 test -n "$$unique" || unique=$$empty_fix; \
420 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
421 $$tags $$unique; \
422 fi
423ctags: CTAGS
424CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
425 $(TAGS_FILES) $(LISP)
426 tags=; \
427 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
428 unique=`for i in $$list; do \
429 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
430 done | \
431 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
432 END { if (nonempty) { for (i in files) print i; }; }'`; \
433 test -z "$(CTAGS_ARGS)$$tags$$unique" \
434 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
435 $$tags $$unique
436
437GTAGS:
438 here=`$(am__cd) $(top_builddir) && pwd` \
439 && cd $(top_srcdir) \
440 && gtags -i $(GTAGS_ARGS) $$here
441
442distclean-tags:
443 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
444
445distdir: $(DISTFILES)
446 $(am__remove_distdir)
447 test -d $(distdir) || mkdir $(distdir)
448 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
449 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
450 list='$(DISTFILES)'; \
451 dist_files=`for file in $$list; do echo $$file; done | \
452 sed -e "s|^$$srcdirstrip/||;t" \
453 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
454 case $$dist_files in \
455 */*) $(MKDIR_P) `echo "$$dist_files" | \
456 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
457 sort -u` ;; \
458 esac; \
459 for file in $$dist_files; do \
460 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
461 if test -d $$d/$$file; then \
462 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
463 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
464 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
465 fi; \
466 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
467 else \
468 test -f $(distdir)/$$file \
469 || cp -p $$d/$$file $(distdir)/$$file \
470 || exit 1; \
471 fi; \
472 done
473 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
474 if test "$$subdir" = .; then :; else \
475 test -d "$(distdir)/$$subdir" \
476 || $(MKDIR_P) "$(distdir)/$$subdir" \
477 || exit 1; \
478 distdir=`$(am__cd) $(distdir) && pwd`; \
479 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
480 (cd $$subdir && \
481 $(MAKE) $(AM_MAKEFLAGS) \
482 top_distdir="$$top_distdir" \
483 distdir="$$distdir/$$subdir" \
484 am__remove_distdir=: \
485 am__skip_length_check=: \
486 distdir) \
487 || exit 1; \
488 fi; \
489 done
490 -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
491 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
492 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
493 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
494 || chmod -R a+r $(distdir)
495dist-gzip: distdir
496 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
497 $(am__remove_distdir)
498
499dist-bzip2: distdir
500 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
501 $(am__remove_distdir)
502
503dist-lzma: distdir
504 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
505 $(am__remove_distdir)
506
507dist-tarZ: distdir
508 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
509 $(am__remove_distdir)
510
511dist-shar: distdir
512 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
513 $(am__remove_distdir)
514
515dist-zip: distdir
516 -rm -f $(distdir).zip
517 zip -rq $(distdir).zip $(distdir)
518 $(am__remove_distdir)
519
520dist dist-all: distdir
521 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
522 $(am__remove_distdir)
523
524# This target untars the dist file and tries a VPATH configuration. Then
525# it guarantees that the distribution is self-contained by making another
526# tarfile.
527distcheck: dist
528 case '$(DIST_ARCHIVES)' in \
529 *.tar.gz*) \
530 GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
531 *.tar.bz2*) \
532 bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
533 *.tar.lzma*) \
534 unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
535 *.tar.Z*) \
536 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
537 *.shar.gz*) \
538 GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
539 *.zip*) \
540 unzip $(distdir).zip ;;\
541 esac
542 chmod -R a-w $(distdir); chmod a+w $(distdir)
543 mkdir $(distdir)/_build
544 mkdir $(distdir)/_inst
545 chmod a-w $(distdir)
546 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
547 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
548 && cd $(distdir)/_build \
549 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
550 $(DISTCHECK_CONFIGURE_FLAGS) \
551 && $(MAKE) $(AM_MAKEFLAGS) \
552 && $(MAKE) $(AM_MAKEFLAGS) dvi \
553 && $(MAKE) $(AM_MAKEFLAGS) check \
554 && $(MAKE) $(AM_MAKEFLAGS) install \
555 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
556 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
557 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
558 distuninstallcheck \
559 && chmod -R a-w "$$dc_install_base" \
560 && ({ \
561 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
562 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
563 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
564 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
565 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
566 } || { rm -rf "$$dc_destdir"; exit 1; }) \
567 && rm -rf "$$dc_destdir" \
568 && $(MAKE) $(AM_MAKEFLAGS) dist \
569 && rm -rf $(DIST_ARCHIVES) \
570 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
571 $(am__remove_distdir)
572 @(echo "$(distdir) archives ready for distribution: "; \
573 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
574 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
575distuninstallcheck:
576 @cd $(distuninstallcheck_dir) \
577 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
578 || { echo "ERROR: files left after uninstall:" ; \
579 if test -n "$(DESTDIR)"; then \
580 echo " (check DESTDIR support)"; \
581 fi ; \
582 $(distuninstallcheck_listfiles) ; \
583 exit 1; } >&2
584distcleancheck: distclean
585 @if test '$(srcdir)' = . ; then \
586 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
587 exit 1 ; \
588 fi
589 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
590 || { echo "ERROR: files left in build directory after distclean:" ; \
591 $(distcleancheck_listfiles) ; \
592 exit 1; } >&2
593check-am: all-am
594check: check-recursive
595all-am: Makefile $(DATA)
596installdirs: installdirs-recursive
597installdirs-am:
598 for dir in "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(pkglibdir)"; do \
599 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
600 done
601install: install-recursive
602install-exec: install-exec-recursive
603install-data: install-data-recursive
604uninstall: uninstall-recursive
605
606install-am: all-am
607 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
608
609installcheck: installcheck-recursive
610install-strip:
611 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
612 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
613 `test -z '$(STRIP)' || \
614 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
615mostlyclean-generic:
616
617clean-generic:
618
619distclean-generic:
620 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
621
622maintainer-clean-generic:
623 @echo "This command is intended for maintainers to use"
624 @echo "it deletes files that may require special tools to rebuild."
625clean: clean-recursive
626
627clean-am: clean-generic clean-libtool mostlyclean-am
628
629distclean: distclean-recursive
630 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
631 -rm -f Makefile
632distclean-am: clean-am distclean-generic distclean-libtool \
633 distclean-tags
634
635dvi: dvi-recursive
636
637dvi-am:
638
639html: html-recursive
640
641info: info-recursive
642
643info-am:
644
645install-data-am: install-pkgconfigDATA
646
647install-dvi: install-dvi-recursive
648
649install-exec-am: install-pkglibDATA
650
651install-html: install-html-recursive
652
653install-info: install-info-recursive
654
655install-man:
656
657install-pdf: install-pdf-recursive
658
659install-ps: install-ps-recursive
660
661installcheck-am:
662
663maintainer-clean: maintainer-clean-recursive
664 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
665 -rm -rf $(top_srcdir)/autom4te.cache
666 -rm -f Makefile
667maintainer-clean-am: distclean-am maintainer-clean-generic
668
669mostlyclean: mostlyclean-recursive
670
671mostlyclean-am: mostlyclean-generic mostlyclean-libtool
672
673pdf: pdf-recursive
674
675pdf-am:
676
677ps: ps-recursive
678
679ps-am:
680
681uninstall-am: uninstall-pkgconfigDATA uninstall-pkglibDATA
682
683.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
684 install-strip
685
686.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
687 all all-am am--refresh check check-am clean clean-generic \
688 clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
689 dist-gzip dist-lzma dist-shar dist-tarZ dist-zip distcheck \
690 distclean distclean-generic distclean-libtool distclean-tags \
691 distcleancheck distdir distuninstallcheck dvi dvi-am html \
692 html-am info info-am install install-am install-data \
693 install-data-am install-dvi install-dvi-am install-exec \
694 install-exec-am install-html install-html-am install-info \
695 install-info-am install-man install-pdf install-pdf-am \
696 install-pkgconfigDATA install-pkglibDATA install-ps \
697 install-ps-am install-strip installcheck installcheck-am \
698 installdirs installdirs-am maintainer-clean \
699 maintainer-clean-generic mostlyclean mostlyclean-generic \
700 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
701 uninstall uninstall-am uninstall-pkgconfigDATA \
702 uninstall-pkglibDATA
703
704
705deb:
706 fakeroot dpkg-buildpackage
707# Tell versions [3.59,3.63) of GNU make to not export all variables.
708# Otherwise a system limit (for SysV at least) may be exceeded.
709.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/NEWS b/src/others/mimesh/libg3d-0.0.8/NEWS
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/NEWS
diff --git a/src/others/mimesh/libg3d-0.0.8/README b/src/others/mimesh/libg3d-0.0.8/README
new file mode 100644
index 0000000..ad1fd78
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/README
@@ -0,0 +1,87 @@
1LIBG3D:
2
3This library loads 3D models from various file formats. Its aim is to support
4basic import functionality for as much formats as possible. More complete
5support is better, of course, and the long time goal.
6
7To help developing plugins and for general use, too, there are a lot of
8basic 3d manipulation function, including vector and matrix math, common
9file reading stuff, transformations and 3d primitive support.
10
11SUPPORTED FILETYPES:
12+-------+---+---+---+---+---------------------------------------------+
13|\ feat.| i | c | t | n | s |
14| \ | m | o | e | o | u +-----------------------------------------+
15| \ | p | l | x | r | b | |
16| \ | o | o | t | m | o | |
17| \ | r | r | u | a | b | |
18| \ | t | s | r | l | j | |
19| type \| | | e | s | s | Program |
20+-------+---+---+---+---+---+-----------------------------------------+
21| .3mf | x | x | | | | 3D Metafile |
22| .3ds | x | x | p | | | 3D Studio |
23| .ac | x | x | x | | x | AC3D |
24| .acc | x | x | x | | x | AC3D with triangle strips (TORCS) |
25| .ar | x | | | | x | Racer container files |
26| .ase | x | | p | x | | ASCII Scene Exporter (3D Studio) |
27| .b3d | x | x | | | | ?? (3D MetaFile format) |
28| .car | x | | | | x | VDrift car description |
29| .cob | x | x | | | | Caligari TrueSpace |
30| .dof | x | x | p | x | | Racer model files |
31| .dxf | x | | | | | AutoCAD |
32| .flt | p | | | | | OpenFlight (in Progress, experimental) |
33| .glb | x | x | x | x | | UltimateStunts models |
34| .iob | x | x | | | | Impulse Turbo Silver / Imagine |
35| .iv | p | | | | | SGI Inventor (ascii only) |
36| .joe | x | | x | x | | VDrift v3 .joe car models |
37| .lcd | x | x | | | | LeoCAD |
38| .lw | x | x | | | | LightWave |
39| .lwb | x | x | | | | LightWave |
40| .lwo | x | x | | | | LightWave |
41| .mb | p | | | | x | Maya (binary) |
42| .md2 | x | | | | | id Software Quake II |
43| .md3 | x | x | x | ? | | id Software Quake III |
44| .mon | p | | | | | Monzoom (Reflections) (experimental) |
45| .nff | x | x | | x | | Neutral File Format |
46| .obj | x | x | | | | Alias Wavefront Maya |
47| .prj | x | ? | | | | 3D Studio |
48| .q3o | x | x | x | | | Quick3D Object |
49| .q3s | x | x | x | | | Quick3D Scene |
50| .r3 | p | | | | | Reflections 3 (experimental) |
51| .r4 | p | | | | | Reflections 4 (experimental) |
52| .stl | p | | | | | Standard Tessellation Language |
53| .stla | p | | | | | Standard Tessellation Language (ASCII) |
54| .stlb | p | | | | | Standard Tessellation Language (binary) |
55| .wrl | x | x | | | | VRML World (VRML 1 only and incomplete) |
56+-------+---+---+---+---+---------------------------------------------+
57
58x: implemented
59p: partly done (strange results)
60
61Wishlist:
62
63also see http://homepage.gna.org/libg3d/references.html
64
65type docs ex.avail. status
66-----------------------------------------------------------------------------
67.wrl (VRML 2.0) yes yes not started yet
68.x3d (X3D) yes yes not started yet
69.max (3D Studio MAX) no yes probably not (no docs, no clue)
70.blend (Blender) (yes) yes difficult format, low priority
71.w3d (Shockwave 3D) no yes not started yet
72.c4d (Cinema 4D) no yes not started yet
73.br4 (Brice 4) no yes not started yet
74.x (DirectX) ? yes not started yet
75.3dm (Rhino 2) ? yes not started yet
76
77other model plugins:
78* heightfield: generates a landscape from an image
79* test: some tests (primitives, transformation...)
80* rbh: experimental, maybe Discworld Noir models (or no 3D at all ;))
81
82IMAGE PLUGINS:
83
84* bmp: Windows Bitmap, uncompressed, only 8-bit tested
85* sgi: SGI RGB files, uncompressed & RLE, 8, 24, 32 bit
86* GdkPixbuf: everything GdkPixbuf can load, GTK 2.x required
87
diff --git a/src/others/mimesh/libg3d-0.0.8/TODO b/src/others/mimesh/libg3d-0.0.8/TODO
new file mode 100644
index 0000000..c59bcd8
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/TODO
@@ -0,0 +1,4 @@
1to be done for version 0.1.0 (and g3dviewer 0.3.0)
2* more or less complete API documentation
3* all plugins have to support G3DStream
4* libg3d has to build/work with G3D_DISABLE_DEPRECATED enabled
diff --git a/src/others/mimesh/libg3d-0.0.8/aclocal.m4 b/src/others/mimesh/libg3d-0.0.8/aclocal.m4
new file mode 100644
index 0000000..9e74d86
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/aclocal.m4
@@ -0,0 +1,1054 @@
1# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
2
3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4# 2005, 2006, 2007, 2008 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
14m4_ifndef([AC_AUTOCONF_VERSION],
15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16m4_if(AC_AUTOCONF_VERSION, [2.61],,
17[m4_warning([this file was generated for autoconf 2.61.
18You have another version of autoconf. It may work, but is not guaranteed to.
19If you have problems, you may need to regenerate the build system entirely.
20To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
22# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
23#
24# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
25#
26# This program is free software; you can redistribute it and/or modify
27# it under the terms of the GNU General Public License as published by
28# the Free Software Foundation; either version 2 of the License, or
29# (at your option) any later version.
30#
31# This program is distributed in the hope that it will be useful, but
32# WITHOUT ANY WARRANTY; without even the implied warranty of
33# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
34# General Public License for more details.
35#
36# You should have received a copy of the GNU General Public License
37# along with this program; if not, write to the Free Software
38# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
39#
40# As a special exception to the GNU General Public License, if you
41# distribute this file as part of a program that contains a
42# configuration script generated by Autoconf, you may include it under
43# the same distribution terms that you use for the rest of that program.
44
45# PKG_PROG_PKG_CONFIG([MIN-VERSION])
46# ----------------------------------
47AC_DEFUN([PKG_PROG_PKG_CONFIG],
48[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
49m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
50AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
51if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
52 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
53fi
54if test -n "$PKG_CONFIG"; then
55 _pkg_min_version=m4_default([$1], [0.9.0])
56 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
57 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
58 AC_MSG_RESULT([yes])
59 else
60 AC_MSG_RESULT([no])
61 PKG_CONFIG=""
62 fi
63
64fi[]dnl
65])# PKG_PROG_PKG_CONFIG
66
67# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
68#
69# Check to see whether a particular set of modules exists. Similar
70# to PKG_CHECK_MODULES(), but does not set variables or print errors.
71#
72#
73# Similar to PKG_CHECK_MODULES, make sure that the first instance of
74# this or PKG_CHECK_MODULES is called, or make sure to call
75# PKG_CHECK_EXISTS manually
76# --------------------------------------------------------------
77AC_DEFUN([PKG_CHECK_EXISTS],
78[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
79if test -n "$PKG_CONFIG" && \
80 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
81 m4_ifval([$2], [$2], [:])
82m4_ifvaln([$3], [else
83 $3])dnl
84fi])
85
86
87# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
88# ---------------------------------------------
89m4_define([_PKG_CONFIG],
90[if test -n "$PKG_CONFIG"; then
91 if test -n "$$1"; then
92 pkg_cv_[]$1="$$1"
93 else
94 PKG_CHECK_EXISTS([$3],
95 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
96 [pkg_failed=yes])
97 fi
98else
99 pkg_failed=untried
100fi[]dnl
101])# _PKG_CONFIG
102
103# _PKG_SHORT_ERRORS_SUPPORTED
104# -----------------------------
105AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
106[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
107if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
108 _pkg_short_errors_supported=yes
109else
110 _pkg_short_errors_supported=no
111fi[]dnl
112])# _PKG_SHORT_ERRORS_SUPPORTED
113
114
115# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
116# [ACTION-IF-NOT-FOUND])
117#
118#
119# Note that if there is a possibility the first call to
120# PKG_CHECK_MODULES might not happen, you should be sure to include an
121# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
122#
123#
124# --------------------------------------------------------------
125AC_DEFUN([PKG_CHECK_MODULES],
126[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
127AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
128AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
129
130pkg_failed=no
131AC_MSG_CHECKING([for $1])
132
133_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
134_PKG_CONFIG([$1][_LIBS], [libs], [$2])
135
136m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
137and $1[]_LIBS to avoid the need to call pkg-config.
138See the pkg-config man page for more details.])
139
140if test $pkg_failed = yes; then
141 _PKG_SHORT_ERRORS_SUPPORTED
142 if test $_pkg_short_errors_supported = yes; then
143 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
144 else
145 $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
146 fi
147 # Put the nasty error message in config.log where it belongs
148 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
149
150 ifelse([$4], , [AC_MSG_ERROR(dnl
151[Package requirements ($2) were not met:
152
153$$1_PKG_ERRORS
154
155Consider adjusting the PKG_CONFIG_PATH environment variable if you
156installed software in a non-standard prefix.
157
158_PKG_TEXT
159])],
160 [AC_MSG_RESULT([no])
161 $4])
162elif test $pkg_failed = untried; then
163 ifelse([$4], , [AC_MSG_FAILURE(dnl
164[The pkg-config script could not be found or is too old. Make sure it
165is in your PATH or set the PKG_CONFIG environment variable to the full
166path to pkg-config.
167
168_PKG_TEXT
169
170To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
171 [$4])
172else
173 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
174 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
175 AC_MSG_RESULT([yes])
176 ifelse([$3], , :, [$3])
177fi[]dnl
178])# PKG_CHECK_MODULES
179
180# Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
181#
182# This file is free software; the Free Software Foundation
183# gives unlimited permission to copy and/or distribute it,
184# with or without modifications, as long as this notice is preserved.
185
186# AM_AUTOMAKE_VERSION(VERSION)
187# ----------------------------
188# Automake X.Y traces this macro to ensure aclocal.m4 has been
189# generated from the m4 files accompanying Automake X.Y.
190# (This private macro should not be called outside this file.)
191AC_DEFUN([AM_AUTOMAKE_VERSION],
192[am__api_version='1.10'
193dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
194dnl require some minimum version. Point them to the right macro.
195m4_if([$1], [1.10.1], [],
196 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
197])
198
199# _AM_AUTOCONF_VERSION(VERSION)
200# -----------------------------
201# aclocal traces this macro to find the Autoconf version.
202# This is a private macro too. Using m4_define simplifies
203# the logic in aclocal, which can simply ignore this definition.
204m4_define([_AM_AUTOCONF_VERSION], [])
205
206# AM_SET_CURRENT_AUTOMAKE_VERSION
207# -------------------------------
208# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
209# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
210AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
211[AM_AUTOMAKE_VERSION([1.10.1])dnl
212m4_ifndef([AC_AUTOCONF_VERSION],
213 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
214_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
215
216# AM_AUX_DIR_EXPAND -*- Autoconf -*-
217
218# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
219#
220# This file is free software; the Free Software Foundation
221# gives unlimited permission to copy and/or distribute it,
222# with or without modifications, as long as this notice is preserved.
223
224# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
225# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
226# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
227#
228# Of course, Automake must honor this variable whenever it calls a
229# tool from the auxiliary directory. The problem is that $srcdir (and
230# therefore $ac_aux_dir as well) can be either absolute or relative,
231# depending on how configure is run. This is pretty annoying, since
232# it makes $ac_aux_dir quite unusable in subdirectories: in the top
233# source directory, any form will work fine, but in subdirectories a
234# relative path needs to be adjusted first.
235#
236# $ac_aux_dir/missing
237# fails when called from a subdirectory if $ac_aux_dir is relative
238# $top_srcdir/$ac_aux_dir/missing
239# fails if $ac_aux_dir is absolute,
240# fails when called from a subdirectory in a VPATH build with
241# a relative $ac_aux_dir
242#
243# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
244# are both prefixed by $srcdir. In an in-source build this is usually
245# harmless because $srcdir is `.', but things will broke when you
246# start a VPATH build or use an absolute $srcdir.
247#
248# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
249# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
250# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
251# and then we would define $MISSING as
252# MISSING="\${SHELL} $am_aux_dir/missing"
253# This will work as long as MISSING is not called from configure, because
254# unfortunately $(top_srcdir) has no meaning in configure.
255# However there are other variables, like CC, which are often used in
256# configure, and could therefore not use this "fixed" $ac_aux_dir.
257#
258# Another solution, used here, is to always expand $ac_aux_dir to an
259# absolute PATH. The drawback is that using absolute paths prevent a
260# configured tree to be moved without reconfiguration.
261
262AC_DEFUN([AM_AUX_DIR_EXPAND],
263[dnl Rely on autoconf to set up CDPATH properly.
264AC_PREREQ([2.50])dnl
265# expand $ac_aux_dir to an absolute path
266am_aux_dir=`cd $ac_aux_dir && pwd`
267])
268
269# AM_CONDITIONAL -*- Autoconf -*-
270
271# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
272# Free Software Foundation, Inc.
273#
274# This file is free software; the Free Software Foundation
275# gives unlimited permission to copy and/or distribute it,
276# with or without modifications, as long as this notice is preserved.
277
278# serial 8
279
280# AM_CONDITIONAL(NAME, SHELL-CONDITION)
281# -------------------------------------
282# Define a conditional.
283AC_DEFUN([AM_CONDITIONAL],
284[AC_PREREQ(2.52)dnl
285 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
286 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
287AC_SUBST([$1_TRUE])dnl
288AC_SUBST([$1_FALSE])dnl
289_AM_SUBST_NOTMAKE([$1_TRUE])dnl
290_AM_SUBST_NOTMAKE([$1_FALSE])dnl
291if $2; then
292 $1_TRUE=
293 $1_FALSE='#'
294else
295 $1_TRUE='#'
296 $1_FALSE=
297fi
298AC_CONFIG_COMMANDS_PRE(
299[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
300 AC_MSG_ERROR([[conditional "$1" was never defined.
301Usually this means the macro was only invoked conditionally.]])
302fi])])
303
304# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
305# Free Software Foundation, Inc.
306#
307# This file is free software; the Free Software Foundation
308# gives unlimited permission to copy and/or distribute it,
309# with or without modifications, as long as this notice is preserved.
310
311# serial 9
312
313# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
314# written in clear, in which case automake, when reading aclocal.m4,
315# will think it sees a *use*, and therefore will trigger all it's
316# C support machinery. Also note that it means that autoscan, seeing
317# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
318
319
320# _AM_DEPENDENCIES(NAME)
321# ----------------------
322# See how the compiler implements dependency checking.
323# NAME is "CC", "CXX", "GCJ", or "OBJC".
324# We try a few techniques and use that to set a single cache variable.
325#
326# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
327# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
328# dependency, and given that the user is not expected to run this macro,
329# just rely on AC_PROG_CC.
330AC_DEFUN([_AM_DEPENDENCIES],
331[AC_REQUIRE([AM_SET_DEPDIR])dnl
332AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
333AC_REQUIRE([AM_MAKE_INCLUDE])dnl
334AC_REQUIRE([AM_DEP_TRACK])dnl
335
336ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
337 [$1], CXX, [depcc="$CXX" am_compiler_list=],
338 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
339 [$1], UPC, [depcc="$UPC" am_compiler_list=],
340 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
341 [depcc="$$1" am_compiler_list=])
342
343AC_CACHE_CHECK([dependency style of $depcc],
344 [am_cv_$1_dependencies_compiler_type],
345[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
346 # We make a subdir and do the tests there. Otherwise we can end up
347 # making bogus files that we don't know about and never remove. For
348 # instance it was reported that on HP-UX the gcc test will end up
349 # making a dummy file named `D' -- because `-MD' means `put the output
350 # in D'.
351 mkdir conftest.dir
352 # Copy depcomp to subdir because otherwise we won't find it if we're
353 # using a relative directory.
354 cp "$am_depcomp" conftest.dir
355 cd conftest.dir
356 # We will build objects and dependencies in a subdirectory because
357 # it helps to detect inapplicable dependency modes. For instance
358 # both Tru64's cc and ICC support -MD to output dependencies as a
359 # side effect of compilation, but ICC will put the dependencies in
360 # the current directory while Tru64 will put them in the object
361 # directory.
362 mkdir sub
363
364 am_cv_$1_dependencies_compiler_type=none
365 if test "$am_compiler_list" = ""; then
366 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
367 fi
368 for depmode in $am_compiler_list; do
369 # Setup a source with many dependencies, because some compilers
370 # like to wrap large dependency lists on column 80 (with \), and
371 # we should not choose a depcomp mode which is confused by this.
372 #
373 # We need to recreate these files for each test, as the compiler may
374 # overwrite some of them when testing with obscure command lines.
375 # This happens at least with the AIX C compiler.
376 : > sub/conftest.c
377 for i in 1 2 3 4 5 6; do
378 echo '#include "conftst'$i'.h"' >> sub/conftest.c
379 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
380 # Solaris 8's {/usr,}/bin/sh.
381 touch sub/conftst$i.h
382 done
383 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
384
385 case $depmode in
386 nosideeffect)
387 # after this tag, mechanisms are not by side-effect, so they'll
388 # only be used when explicitly requested
389 if test "x$enable_dependency_tracking" = xyes; then
390 continue
391 else
392 break
393 fi
394 ;;
395 none) break ;;
396 esac
397 # We check with `-c' and `-o' for the sake of the "dashmstdout"
398 # mode. It turns out that the SunPro C++ compiler does not properly
399 # handle `-M -o', and we need to detect this.
400 if depmode=$depmode \
401 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
402 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
403 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
404 >/dev/null 2>conftest.err &&
405 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
406 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
407 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
408 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
409 # icc doesn't choke on unknown options, it will just issue warnings
410 # or remarks (even with -Werror). So we grep stderr for any message
411 # that says an option was ignored or not supported.
412 # When given -MP, icc 7.0 and 7.1 complain thusly:
413 # icc: Command line warning: ignoring option '-M'; no argument required
414 # The diagnosis changed in icc 8.0:
415 # icc: Command line remark: option '-MP' not supported
416 if (grep 'ignoring option' conftest.err ||
417 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
418 am_cv_$1_dependencies_compiler_type=$depmode
419 break
420 fi
421 fi
422 done
423
424 cd ..
425 rm -rf conftest.dir
426else
427 am_cv_$1_dependencies_compiler_type=none
428fi
429])
430AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
431AM_CONDITIONAL([am__fastdep$1], [
432 test "x$enable_dependency_tracking" != xno \
433 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
434])
435
436
437# AM_SET_DEPDIR
438# -------------
439# Choose a directory name for dependency files.
440# This macro is AC_REQUIREd in _AM_DEPENDENCIES
441AC_DEFUN([AM_SET_DEPDIR],
442[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
443AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
444])
445
446
447# AM_DEP_TRACK
448# ------------
449AC_DEFUN([AM_DEP_TRACK],
450[AC_ARG_ENABLE(dependency-tracking,
451[ --disable-dependency-tracking speeds up one-time build
452 --enable-dependency-tracking do not reject slow dependency extractors])
453if test "x$enable_dependency_tracking" != xno; then
454 am_depcomp="$ac_aux_dir/depcomp"
455 AMDEPBACKSLASH='\'
456fi
457AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
458AC_SUBST([AMDEPBACKSLASH])dnl
459_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
460])
461
462# Generate code to set up dependency tracking. -*- Autoconf -*-
463
464# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
465# Free Software Foundation, Inc.
466#
467# This file is free software; the Free Software Foundation
468# gives unlimited permission to copy and/or distribute it,
469# with or without modifications, as long as this notice is preserved.
470
471#serial 3
472
473# _AM_OUTPUT_DEPENDENCY_COMMANDS
474# ------------------------------
475AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
476[for mf in $CONFIG_FILES; do
477 # Strip MF so we end up with the name of the file.
478 mf=`echo "$mf" | sed -e 's/:.*$//'`
479 # Check whether this is an Automake generated Makefile or not.
480 # We used to match only the files named `Makefile.in', but
481 # some people rename them; so instead we look at the file content.
482 # Grep'ing the first line is not enough: some people post-process
483 # each Makefile.in and add a new line on top of each file to say so.
484 # Grep'ing the whole file is not good either: AIX grep has a line
485 # limit of 2048, but all sed's we know have understand at least 4000.
486 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
487 dirpart=`AS_DIRNAME("$mf")`
488 else
489 continue
490 fi
491 # Extract the definition of DEPDIR, am__include, and am__quote
492 # from the Makefile without running `make'.
493 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
494 test -z "$DEPDIR" && continue
495 am__include=`sed -n 's/^am__include = //p' < "$mf"`
496 test -z "am__include" && continue
497 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
498 # When using ansi2knr, U may be empty or an underscore; expand it
499 U=`sed -n 's/^U = //p' < "$mf"`
500 # Find all dependency output files, they are included files with
501 # $(DEPDIR) in their names. We invoke sed twice because it is the
502 # simplest approach to changing $(DEPDIR) to its actual value in the
503 # expansion.
504 for file in `sed -n "
505 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
506 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
507 # Make sure the directory exists.
508 test -f "$dirpart/$file" && continue
509 fdir=`AS_DIRNAME(["$file"])`
510 AS_MKDIR_P([$dirpart/$fdir])
511 # echo "creating $dirpart/$file"
512 echo '# dummy' > "$dirpart/$file"
513 done
514done
515])# _AM_OUTPUT_DEPENDENCY_COMMANDS
516
517
518# AM_OUTPUT_DEPENDENCY_COMMANDS
519# -----------------------------
520# This macro should only be invoked once -- use via AC_REQUIRE.
521#
522# This code is only required when automatic dependency tracking
523# is enabled. FIXME. This creates each `.P' file that we will
524# need in order to bootstrap the dependency handling code.
525AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
526[AC_CONFIG_COMMANDS([depfiles],
527 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
528 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
529])
530
531# Do all the work for Automake. -*- Autoconf -*-
532
533# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
534# 2005, 2006, 2008 Free Software Foundation, Inc.
535#
536# This file is free software; the Free Software Foundation
537# gives unlimited permission to copy and/or distribute it,
538# with or without modifications, as long as this notice is preserved.
539
540# serial 13
541
542# This macro actually does too much. Some checks are only needed if
543# your package does certain things. But this isn't really a big deal.
544
545# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
546# AM_INIT_AUTOMAKE([OPTIONS])
547# -----------------------------------------------
548# The call with PACKAGE and VERSION arguments is the old style
549# call (pre autoconf-2.50), which is being phased out. PACKAGE
550# and VERSION should now be passed to AC_INIT and removed from
551# the call to AM_INIT_AUTOMAKE.
552# We support both call styles for the transition. After
553# the next Automake release, Autoconf can make the AC_INIT
554# arguments mandatory, and then we can depend on a new Autoconf
555# release and drop the old call support.
556AC_DEFUN([AM_INIT_AUTOMAKE],
557[AC_PREREQ([2.60])dnl
558dnl Autoconf wants to disallow AM_ names. We explicitly allow
559dnl the ones we care about.
560m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
561AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
562AC_REQUIRE([AC_PROG_INSTALL])dnl
563if test "`cd $srcdir && pwd`" != "`pwd`"; then
564 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
565 # is not polluted with repeated "-I."
566 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
567 # test to see if srcdir already configured
568 if test -f $srcdir/config.status; then
569 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
570 fi
571fi
572
573# test whether we have cygpath
574if test -z "$CYGPATH_W"; then
575 if (cygpath --version) >/dev/null 2>/dev/null; then
576 CYGPATH_W='cygpath -w'
577 else
578 CYGPATH_W=echo
579 fi
580fi
581AC_SUBST([CYGPATH_W])
582
583# Define the identity of the package.
584dnl Distinguish between old-style and new-style calls.
585m4_ifval([$2],
586[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
587 AC_SUBST([PACKAGE], [$1])dnl
588 AC_SUBST([VERSION], [$2])],
589[_AM_SET_OPTIONS([$1])dnl
590dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
591m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
592 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
593 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
594 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
595
596_AM_IF_OPTION([no-define],,
597[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
598 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
599
600# Some tools Automake needs.
601AC_REQUIRE([AM_SANITY_CHECK])dnl
602AC_REQUIRE([AC_ARG_PROGRAM])dnl
603AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
604AM_MISSING_PROG(AUTOCONF, autoconf)
605AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
606AM_MISSING_PROG(AUTOHEADER, autoheader)
607AM_MISSING_PROG(MAKEINFO, makeinfo)
608AM_PROG_INSTALL_SH
609AM_PROG_INSTALL_STRIP
610AC_REQUIRE([AM_PROG_MKDIR_P])dnl
611# We need awk for the "check" target. The system "awk" is bad on
612# some platforms.
613AC_REQUIRE([AC_PROG_AWK])dnl
614AC_REQUIRE([AC_PROG_MAKE_SET])dnl
615AC_REQUIRE([AM_SET_LEADING_DOT])dnl
616_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
617 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
618 [_AM_PROG_TAR([v7])])])
619_AM_IF_OPTION([no-dependencies],,
620[AC_PROVIDE_IFELSE([AC_PROG_CC],
621 [_AM_DEPENDENCIES(CC)],
622 [define([AC_PROG_CC],
623 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
624AC_PROVIDE_IFELSE([AC_PROG_CXX],
625 [_AM_DEPENDENCIES(CXX)],
626 [define([AC_PROG_CXX],
627 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
628AC_PROVIDE_IFELSE([AC_PROG_OBJC],
629 [_AM_DEPENDENCIES(OBJC)],
630 [define([AC_PROG_OBJC],
631 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
632])
633])
634
635
636# When config.status generates a header, we must update the stamp-h file.
637# This file resides in the same directory as the config header
638# that is generated. The stamp files are numbered to have different names.
639
640# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
641# loop where config.status creates the headers, so we can generate
642# our stamp files there.
643AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
644[# Compute $1's index in $config_headers.
645_am_arg=$1
646_am_stamp_count=1
647for _am_header in $config_headers :; do
648 case $_am_header in
649 $_am_arg | $_am_arg:* )
650 break ;;
651 * )
652 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
653 esac
654done
655echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
656
657# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
658#
659# This file is free software; the Free Software Foundation
660# gives unlimited permission to copy and/or distribute it,
661# with or without modifications, as long as this notice is preserved.
662
663# AM_PROG_INSTALL_SH
664# ------------------
665# Define $install_sh.
666AC_DEFUN([AM_PROG_INSTALL_SH],
667[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
668install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
669AC_SUBST(install_sh)])
670
671# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
672#
673# This file is free software; the Free Software Foundation
674# gives unlimited permission to copy and/or distribute it,
675# with or without modifications, as long as this notice is preserved.
676
677# serial 2
678
679# Check whether the underlying file-system supports filenames
680# with a leading dot. For instance MS-DOS doesn't.
681AC_DEFUN([AM_SET_LEADING_DOT],
682[rm -rf .tst 2>/dev/null
683mkdir .tst 2>/dev/null
684if test -d .tst; then
685 am__leading_dot=.
686else
687 am__leading_dot=_
688fi
689rmdir .tst 2>/dev/null
690AC_SUBST([am__leading_dot])])
691
692# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005
693# Free Software Foundation, Inc.
694#
695# This file is free software; the Free Software Foundation
696# gives unlimited permission to copy and/or distribute it,
697# with or without modifications, as long as this notice is preserved.
698
699# serial 5
700
701# AM_PROG_LEX
702# -----------
703# Autoconf leaves LEX=: if lex or flex can't be found. Change that to a
704# "missing" invocation, for better error output.
705AC_DEFUN([AM_PROG_LEX],
706[AC_PREREQ(2.50)dnl
707AC_REQUIRE([AM_MISSING_HAS_RUN])dnl
708AC_REQUIRE([AC_PROG_LEX])dnl
709if test "$LEX" = :; then
710 LEX=${am_missing_run}flex
711fi])
712
713# Check to see how 'make' treats includes. -*- Autoconf -*-
714
715# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
716#
717# This file is free software; the Free Software Foundation
718# gives unlimited permission to copy and/or distribute it,
719# with or without modifications, as long as this notice is preserved.
720
721# serial 3
722
723# AM_MAKE_INCLUDE()
724# -----------------
725# Check to see how make treats includes.
726AC_DEFUN([AM_MAKE_INCLUDE],
727[am_make=${MAKE-make}
728cat > confinc << 'END'
729am__doit:
730 @echo done
731.PHONY: am__doit
732END
733# If we don't find an include directive, just comment out the code.
734AC_MSG_CHECKING([for style of include used by $am_make])
735am__include="#"
736am__quote=
737_am_result=none
738# First try GNU make style include.
739echo "include confinc" > confmf
740# We grep out `Entering directory' and `Leaving directory'
741# messages which can occur if `w' ends up in MAKEFLAGS.
742# In particular we don't look at `^make:' because GNU make might
743# be invoked under some other name (usually "gmake"), in which
744# case it prints its new name instead of `make'.
745if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
746 am__include=include
747 am__quote=
748 _am_result=GNU
749fi
750# Now try BSD make style include.
751if test "$am__include" = "#"; then
752 echo '.include "confinc"' > confmf
753 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
754 am__include=.include
755 am__quote="\""
756 _am_result=BSD
757 fi
758fi
759AC_SUBST([am__include])
760AC_SUBST([am__quote])
761AC_MSG_RESULT([$_am_result])
762rm -f confinc confmf
763])
764
765# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
766
767# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
768# Free Software Foundation, Inc.
769#
770# This file is free software; the Free Software Foundation
771# gives unlimited permission to copy and/or distribute it,
772# with or without modifications, as long as this notice is preserved.
773
774# serial 5
775
776# AM_MISSING_PROG(NAME, PROGRAM)
777# ------------------------------
778AC_DEFUN([AM_MISSING_PROG],
779[AC_REQUIRE([AM_MISSING_HAS_RUN])
780$1=${$1-"${am_missing_run}$2"}
781AC_SUBST($1)])
782
783
784# AM_MISSING_HAS_RUN
785# ------------------
786# Define MISSING if not defined so far and test if it supports --run.
787# If it does, set am_missing_run to use it, otherwise, to nothing.
788AC_DEFUN([AM_MISSING_HAS_RUN],
789[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
790AC_REQUIRE_AUX_FILE([missing])dnl
791test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
792# Use eval to expand $SHELL
793if eval "$MISSING --run true"; then
794 am_missing_run="$MISSING --run "
795else
796 am_missing_run=
797 AC_MSG_WARN([`missing' script is too old or missing])
798fi
799])
800
801# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
802#
803# This file is free software; the Free Software Foundation
804# gives unlimited permission to copy and/or distribute it,
805# with or without modifications, as long as this notice is preserved.
806
807# AM_PROG_MKDIR_P
808# ---------------
809# Check for `mkdir -p'.
810AC_DEFUN([AM_PROG_MKDIR_P],
811[AC_PREREQ([2.60])dnl
812AC_REQUIRE([AC_PROG_MKDIR_P])dnl
813dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
814dnl while keeping a definition of mkdir_p for backward compatibility.
815dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
816dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
817dnl Makefile.ins that do not define MKDIR_P, so we do our own
818dnl adjustment using top_builddir (which is defined more often than
819dnl MKDIR_P).
820AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
821case $mkdir_p in
822 [[\\/$]]* | ?:[[\\/]]*) ;;
823 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
824esac
825])
826
827# Helper functions for option handling. -*- Autoconf -*-
828
829# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
830#
831# This file is free software; the Free Software Foundation
832# gives unlimited permission to copy and/or distribute it,
833# with or without modifications, as long as this notice is preserved.
834
835# serial 3
836
837# _AM_MANGLE_OPTION(NAME)
838# -----------------------
839AC_DEFUN([_AM_MANGLE_OPTION],
840[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
841
842# _AM_SET_OPTION(NAME)
843# ------------------------------
844# Set option NAME. Presently that only means defining a flag for this option.
845AC_DEFUN([_AM_SET_OPTION],
846[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
847
848# _AM_SET_OPTIONS(OPTIONS)
849# ----------------------------------
850# OPTIONS is a space-separated list of Automake options.
851AC_DEFUN([_AM_SET_OPTIONS],
852[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
853
854# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
855# -------------------------------------------
856# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
857AC_DEFUN([_AM_IF_OPTION],
858[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
859
860# Check to make sure that the build environment is sane. -*- Autoconf -*-
861
862# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
863# Free Software Foundation, Inc.
864#
865# This file is free software; the Free Software Foundation
866# gives unlimited permission to copy and/or distribute it,
867# with or without modifications, as long as this notice is preserved.
868
869# serial 4
870
871# AM_SANITY_CHECK
872# ---------------
873AC_DEFUN([AM_SANITY_CHECK],
874[AC_MSG_CHECKING([whether build environment is sane])
875# Just in case
876sleep 1
877echo timestamp > conftest.file
878# Do `set' in a subshell so we don't clobber the current shell's
879# arguments. Must try -L first in case configure is actually a
880# symlink; some systems play weird games with the mod time of symlinks
881# (eg FreeBSD returns the mod time of the symlink's containing
882# directory).
883if (
884 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
885 if test "$[*]" = "X"; then
886 # -L didn't work.
887 set X `ls -t $srcdir/configure conftest.file`
888 fi
889 rm -f conftest.file
890 if test "$[*]" != "X $srcdir/configure conftest.file" \
891 && test "$[*]" != "X conftest.file $srcdir/configure"; then
892
893 # If neither matched, then we have a broken ls. This can happen
894 # if, for instance, CONFIG_SHELL is bash and it inherits a
895 # broken ls alias from the environment. This has actually
896 # happened. Such a system could not be considered "sane".
897 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
898alias in your environment])
899 fi
900
901 test "$[2]" = conftest.file
902 )
903then
904 # Ok.
905 :
906else
907 AC_MSG_ERROR([newly created file is older than distributed files!
908Check your system clock])
909fi
910AC_MSG_RESULT(yes)])
911
912# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
913#
914# This file is free software; the Free Software Foundation
915# gives unlimited permission to copy and/or distribute it,
916# with or without modifications, as long as this notice is preserved.
917
918# AM_PROG_INSTALL_STRIP
919# ---------------------
920# One issue with vendor `install' (even GNU) is that you can't
921# specify the program used to strip binaries. This is especially
922# annoying in cross-compiling environments, where the build's strip
923# is unlikely to handle the host's binaries.
924# Fortunately install-sh will honor a STRIPPROG variable, so we
925# always use install-sh in `make install-strip', and initialize
926# STRIPPROG with the value of the STRIP variable (set by the user).
927AC_DEFUN([AM_PROG_INSTALL_STRIP],
928[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
929# Installed binaries are usually stripped using `strip' when the user
930# run `make install-strip'. However `strip' might not be the right
931# tool to use in cross-compilation environments, therefore Automake
932# will honor the `STRIP' environment variable to overrule this program.
933dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
934if test "$cross_compiling" != no; then
935 AC_CHECK_TOOL([STRIP], [strip], :)
936fi
937INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
938AC_SUBST([INSTALL_STRIP_PROGRAM])])
939
940# Copyright (C) 2006 Free Software Foundation, Inc.
941#
942# This file is free software; the Free Software Foundation
943# gives unlimited permission to copy and/or distribute it,
944# with or without modifications, as long as this notice is preserved.
945
946# _AM_SUBST_NOTMAKE(VARIABLE)
947# ---------------------------
948# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
949# This macro is traced by Automake.
950AC_DEFUN([_AM_SUBST_NOTMAKE])
951
952# Check how to create a tarball. -*- Autoconf -*-
953
954# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
955#
956# This file is free software; the Free Software Foundation
957# gives unlimited permission to copy and/or distribute it,
958# with or without modifications, as long as this notice is preserved.
959
960# serial 2
961
962# _AM_PROG_TAR(FORMAT)
963# --------------------
964# Check how to create a tarball in format FORMAT.
965# FORMAT should be one of `v7', `ustar', or `pax'.
966#
967# Substitute a variable $(am__tar) that is a command
968# writing to stdout a FORMAT-tarball containing the directory
969# $tardir.
970# tardir=directory && $(am__tar) > result.tar
971#
972# Substitute a variable $(am__untar) that extract such
973# a tarball read from stdin.
974# $(am__untar) < result.tar
975AC_DEFUN([_AM_PROG_TAR],
976[# Always define AMTAR for backward compatibility.
977AM_MISSING_PROG([AMTAR], [tar])
978m4_if([$1], [v7],
979 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
980 [m4_case([$1], [ustar],, [pax],,
981 [m4_fatal([Unknown tar format])])
982AC_MSG_CHECKING([how to create a $1 tar archive])
983# Loop over all known methods to create a tar archive until one works.
984_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
985_am_tools=${am_cv_prog_tar_$1-$_am_tools}
986# Do not fold the above two line into one, because Tru64 sh and
987# Solaris sh will not grok spaces in the rhs of `-'.
988for _am_tool in $_am_tools
989do
990 case $_am_tool in
991 gnutar)
992 for _am_tar in tar gnutar gtar;
993 do
994 AM_RUN_LOG([$_am_tar --version]) && break
995 done
996 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
997 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
998 am__untar="$_am_tar -xf -"
999 ;;
1000 plaintar)
1001 # Must skip GNU tar: if it does not support --format= it doesn't create
1002 # ustar tarball either.
1003 (tar --version) >/dev/null 2>&1 && continue
1004 am__tar='tar chf - "$$tardir"'
1005 am__tar_='tar chf - "$tardir"'
1006 am__untar='tar xf -'
1007 ;;
1008 pax)
1009 am__tar='pax -L -x $1 -w "$$tardir"'
1010 am__tar_='pax -L -x $1 -w "$tardir"'
1011 am__untar='pax -r'
1012 ;;
1013 cpio)
1014 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1015 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1016 am__untar='cpio -i -H $1 -d'
1017 ;;
1018 none)
1019 am__tar=false
1020 am__tar_=false
1021 am__untar=false
1022 ;;
1023 esac
1024
1025 # If the value was cached, stop now. We just wanted to have am__tar
1026 # and am__untar set.
1027 test -n "${am_cv_prog_tar_$1}" && break
1028
1029 # tar/untar a dummy directory, and stop if the command works
1030 rm -rf conftest.dir
1031 mkdir conftest.dir
1032 echo GrepMe > conftest.dir/file
1033 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1034 rm -rf conftest.dir
1035 if test -s conftest.tar; then
1036 AM_RUN_LOG([$am__untar <conftest.tar])
1037 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1038 fi
1039done
1040rm -rf conftest.dir
1041
1042AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1043AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1044AC_SUBST([am__tar])
1045AC_SUBST([am__untar])
1046]) # _AM_PROG_TAR
1047
1048m4_include([m4/acinclude.m4])
1049m4_include([m4/glib-2.0.m4])
1050m4_include([m4/gtk-2.0.m4])
1051m4_include([m4/gtk-doc.m4])
1052m4_include([m4/libtool.m4])
1053m4_include([m4/libxml2.m4])
1054m4_include([m4/win32.m4])
diff --git a/src/others/mimesh/libg3d-0.0.8/config/config.guess b/src/others/mimesh/libg3d-0.0.8/config/config.guess
new file mode 100755
index 0000000..f32079a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/config/config.guess
@@ -0,0 +1,1526 @@
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, 2006, 2007, 2008
5# Free Software Foundation, Inc.
6
7timestamp='2008-01-23'
8
9# This file is free software; you can redistribute it and/or modify it
10# 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, but
15# WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17# 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., 51 Franklin Street - Fifth Floor, Boston, MA
22# 02110-1301, USA.
23#
24# As a special exception to the GNU General Public License, if you
25# distribute this file as part of a program that contains a
26# configuration script generated by Autoconf, you may include it under
27# the same distribution terms that you use for the rest of that program.
28
29
30# Originally written by Per Bothner <per@bothner.com>.
31# Please send patches to <config-patches@gnu.org>. Submit a context
32# diff and a properly formatted ChangeLog entry.
33#
34# This script attempts to guess a canonical system name similar to
35# config.sub. If it succeeds, it prints the system name on stdout, and
36# exits with 0. Otherwise, it exits with 1.
37#
38# The plan is that this can be called by configure scripts if you
39# don't specify an explicit build system type.
40
41me=`echo "$0" | sed -e 's,.*/,,'`
42
43usage="\
44Usage: $0 [OPTION]
45
46Output the configuration name of the system \`$me' is run on.
47
48Operation modes:
49 -h, --help print this help, then exit
50 -t, --time-stamp print date of last modification, then exit
51 -v, --version print version number, then exit
52
53Report bugs and patches to <config-patches@gnu.org>."
54
55version="\
56GNU config.guess ($timestamp)
57
58Originally written by Per Bothner.
59Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
602002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
61
62This is free software; see the source for copying conditions. There is NO
63warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
64
65help="
66Try \`$me --help' for more information."
67
68# Parse command line
69while test $# -gt 0 ; do
70 case $1 in
71 --time-stamp | --time* | -t )
72 echo "$timestamp" ; exit ;;
73 --version | -v )
74 echo "$version" ; exit ;;
75 --help | --h* | -h )
76 echo "$usage"; exit ;;
77 -- ) # Stop option processing
78 shift; break ;;
79 - ) # Use stdin as input.
80 break ;;
81 -* )
82 echo "$me: invalid option $1$help" >&2
83 exit 1 ;;
84 * )
85 break ;;
86 esac
87done
88
89if test $# != 0; then
90 echo "$me: too many arguments$help" >&2
91 exit 1
92fi
93
94trap 'exit 1' 1 2 15
95
96# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
97# compiler to aid in system detection is discouraged as it requires
98# temporary files to be created and, as you can see below, it is a
99# headache to deal with in a portable fashion.
100
101# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
102# use `HOST_CC' if defined, but it is deprecated.
103
104# Portable tmp directory creation inspired by the Autoconf team.
105
106set_cc_for_build='
107trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
108trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
109: ${TMPDIR=/tmp} ;
110 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
111 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
112 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
113 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
114dummy=$tmp/dummy ;
115tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
116case $CC_FOR_BUILD,$HOST_CC,$CC in
117 ,,) echo "int x;" > $dummy.c ;
118 for c in cc gcc c89 c99 ; do
119 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
120 CC_FOR_BUILD="$c"; break ;
121 fi ;
122 done ;
123 if test x"$CC_FOR_BUILD" = x ; then
124 CC_FOR_BUILD=no_compiler_found ;
125 fi
126 ;;
127 ,,*) CC_FOR_BUILD=$CC ;;
128 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
129esac ; set_cc_for_build= ;'
130
131# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
132# (ghazi@noc.rutgers.edu 1994-08-24)
133if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
134 PATH=$PATH:/.attbin ; export PATH
135fi
136
137UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
138UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
139UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
140UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
141
142# Note: order is significant - the case branches are not exclusive.
143
144case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
145 *:NetBSD:*:*)
146 # NetBSD (nbsd) targets should (where applicable) match one or
147 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
148 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
149 # switched to ELF, *-*-netbsd* would select the old
150 # object file format. This provides both forward
151 # compatibility and a consistent mechanism for selecting the
152 # object file format.
153 #
154 # Note: NetBSD doesn't particularly care about the vendor
155 # portion of the name. We always set it to "unknown".
156 sysctl="sysctl -n hw.machine_arch"
157 UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
158 /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
159 case "${UNAME_MACHINE_ARCH}" in
160 armeb) machine=armeb-unknown ;;
161 arm*) machine=arm-unknown ;;
162 sh3el) machine=shl-unknown ;;
163 sh3eb) machine=sh-unknown ;;
164 sh5el) machine=sh5le-unknown ;;
165 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
166 esac
167 # The Operating System including object format, if it has switched
168 # to ELF recently, or will in the future.
169 case "${UNAME_MACHINE_ARCH}" in
170 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
171 eval $set_cc_for_build
172 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
173 | grep __ELF__ >/dev/null
174 then
175 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
176 # Return netbsd for either. FIX?
177 os=netbsd
178 else
179 os=netbsdelf
180 fi
181 ;;
182 *)
183 os=netbsd
184 ;;
185 esac
186 # The OS release
187 # Debian GNU/NetBSD machines have a different userland, and
188 # thus, need a distinct triplet. However, they do not need
189 # kernel version information, so it can be replaced with a
190 # suitable tag, in the style of linux-gnu.
191 case "${UNAME_VERSION}" in
192 Debian*)
193 release='-gnu'
194 ;;
195 *)
196 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
197 ;;
198 esac
199 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
200 # contains redundant information, the shorter form:
201 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
202 echo "${machine}-${os}${release}"
203 exit ;;
204 *:OpenBSD:*:*)
205 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
206 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
207 exit ;;
208 *:ekkoBSD:*:*)
209 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
210 exit ;;
211 *:SolidBSD:*:*)
212 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
213 exit ;;
214 macppc:MirBSD:*:*)
215 echo powerpc-unknown-mirbsd${UNAME_RELEASE}
216 exit ;;
217 *:MirBSD:*:*)
218 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
219 exit ;;
220 alpha:OSF1:*:*)
221 case $UNAME_RELEASE in
222 *4.0)
223 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
224 ;;
225 *5.*)
226 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
227 ;;
228 esac
229 # According to Compaq, /usr/sbin/psrinfo has been available on
230 # OSF/1 and Tru64 systems produced since 1995. I hope that
231 # covers most systems running today. This code pipes the CPU
232 # types through head -n 1, so we only detect the type of CPU 0.
233 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
234 case "$ALPHA_CPU_TYPE" in
235 "EV4 (21064)")
236 UNAME_MACHINE="alpha" ;;
237 "EV4.5 (21064)")
238 UNAME_MACHINE="alpha" ;;
239 "LCA4 (21066/21068)")
240 UNAME_MACHINE="alpha" ;;
241 "EV5 (21164)")
242 UNAME_MACHINE="alphaev5" ;;
243 "EV5.6 (21164A)")
244 UNAME_MACHINE="alphaev56" ;;
245 "EV5.6 (21164PC)")
246 UNAME_MACHINE="alphapca56" ;;
247 "EV5.7 (21164PC)")
248 UNAME_MACHINE="alphapca57" ;;
249 "EV6 (21264)")
250 UNAME_MACHINE="alphaev6" ;;
251 "EV6.7 (21264A)")
252 UNAME_MACHINE="alphaev67" ;;
253 "EV6.8CB (21264C)")
254 UNAME_MACHINE="alphaev68" ;;
255 "EV6.8AL (21264B)")
256 UNAME_MACHINE="alphaev68" ;;
257 "EV6.8CX (21264D)")
258 UNAME_MACHINE="alphaev68" ;;
259 "EV6.9A (21264/EV69A)")
260 UNAME_MACHINE="alphaev69" ;;
261 "EV7 (21364)")
262 UNAME_MACHINE="alphaev7" ;;
263 "EV7.9 (21364A)")
264 UNAME_MACHINE="alphaev79" ;;
265 esac
266 # A Pn.n version is a patched version.
267 # A Vn.n version is a released version.
268 # A Tn.n version is a released field test version.
269 # A Xn.n version is an unreleased experimental baselevel.
270 # 1.2 uses "1.2" for uname -r.
271 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
272 exit ;;
273 Alpha\ *:Windows_NT*:*)
274 # How do we know it's Interix rather than the generic POSIX subsystem?
275 # Should we change UNAME_MACHINE based on the output of uname instead
276 # of the specific Alpha model?
277 echo alpha-pc-interix
278 exit ;;
279 21064:Windows_NT:50:3)
280 echo alpha-dec-winnt3.5
281 exit ;;
282 Amiga*:UNIX_System_V:4.0:*)
283 echo m68k-unknown-sysv4
284 exit ;;
285 *:[Aa]miga[Oo][Ss]:*:*)
286 echo ${UNAME_MACHINE}-unknown-amigaos
287 exit ;;
288 *:[Mm]orph[Oo][Ss]:*:*)
289 echo ${UNAME_MACHINE}-unknown-morphos
290 exit ;;
291 *:OS/390:*:*)
292 echo i370-ibm-openedition
293 exit ;;
294 *:z/VM:*:*)
295 echo s390-ibm-zvmoe
296 exit ;;
297 *:OS400:*:*)
298 echo powerpc-ibm-os400
299 exit ;;
300 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
301 echo arm-acorn-riscix${UNAME_RELEASE}
302 exit ;;
303 arm:riscos:*:*|arm:RISCOS:*:*)
304 echo arm-unknown-riscos
305 exit ;;
306 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
307 echo hppa1.1-hitachi-hiuxmpp
308 exit ;;
309 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
310 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
311 if test "`(/bin/universe) 2>/dev/null`" = att ; then
312 echo pyramid-pyramid-sysv3
313 else
314 echo pyramid-pyramid-bsd
315 fi
316 exit ;;
317 NILE*:*:*:dcosx)
318 echo pyramid-pyramid-svr4
319 exit ;;
320 DRS?6000:unix:4.0:6*)
321 echo sparc-icl-nx6
322 exit ;;
323 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
324 case `/usr/bin/uname -p` in
325 sparc) echo sparc-icl-nx7; exit ;;
326 esac ;;
327 sun4H:SunOS:5.*:*)
328 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
329 exit ;;
330 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
331 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
332 exit ;;
333 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
334 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
335 exit ;;
336 sun4*:SunOS:6*:*)
337 # According to config.sub, this is the proper way to canonicalize
338 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
339 # it's likely to be more like Solaris than SunOS4.
340 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
341 exit ;;
342 sun4*:SunOS:*:*)
343 case "`/usr/bin/arch -k`" in
344 Series*|S4*)
345 UNAME_RELEASE=`uname -v`
346 ;;
347 esac
348 # Japanese Language versions have a version number like `4.1.3-JL'.
349 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
350 exit ;;
351 sun3*:SunOS:*:*)
352 echo m68k-sun-sunos${UNAME_RELEASE}
353 exit ;;
354 sun*:*:4.2BSD:*)
355 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
356 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
357 case "`/bin/arch`" in
358 sun3)
359 echo m68k-sun-sunos${UNAME_RELEASE}
360 ;;
361 sun4)
362 echo sparc-sun-sunos${UNAME_RELEASE}
363 ;;
364 esac
365 exit ;;
366 aushp:SunOS:*:*)
367 echo sparc-auspex-sunos${UNAME_RELEASE}
368 exit ;;
369 # The situation for MiNT is a little confusing. The machine name
370 # can be virtually everything (everything which is not
371 # "atarist" or "atariste" at least should have a processor
372 # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
373 # to the lowercase version "mint" (or "freemint"). Finally
374 # the system name "TOS" denotes a system which is actually not
375 # MiNT. But MiNT is downward compatible to TOS, so this should
376 # be no problem.
377 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
378 echo m68k-atari-mint${UNAME_RELEASE}
379 exit ;;
380 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
381 echo m68k-atari-mint${UNAME_RELEASE}
382 exit ;;
383 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
384 echo m68k-atari-mint${UNAME_RELEASE}
385 exit ;;
386 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
387 echo m68k-milan-mint${UNAME_RELEASE}
388 exit ;;
389 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
390 echo m68k-hades-mint${UNAME_RELEASE}
391 exit ;;
392 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
393 echo m68k-unknown-mint${UNAME_RELEASE}
394 exit ;;
395 m68k:machten:*:*)
396 echo m68k-apple-machten${UNAME_RELEASE}
397 exit ;;
398 powerpc:machten:*:*)
399 echo powerpc-apple-machten${UNAME_RELEASE}
400 exit ;;
401 RISC*:Mach:*:*)
402 echo mips-dec-mach_bsd4.3
403 exit ;;
404 RISC*:ULTRIX:*:*)
405 echo mips-dec-ultrix${UNAME_RELEASE}
406 exit ;;
407 VAX*:ULTRIX*:*:*)
408 echo vax-dec-ultrix${UNAME_RELEASE}
409 exit ;;
410 2020:CLIX:*:* | 2430:CLIX:*:*)
411 echo clipper-intergraph-clix${UNAME_RELEASE}
412 exit ;;
413 mips:*:*:UMIPS | mips:*:*:RISCos)
414 eval $set_cc_for_build
415 sed 's/^ //' << EOF >$dummy.c
416#ifdef __cplusplus
417#include <stdio.h> /* for printf() prototype */
418 int main (int argc, char *argv[]) {
419#else
420 int main (argc, argv) int argc; char *argv[]; {
421#endif
422 #if defined (host_mips) && defined (MIPSEB)
423 #if defined (SYSTYPE_SYSV)
424 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
425 #endif
426 #if defined (SYSTYPE_SVR4)
427 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
428 #endif
429 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
430 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
431 #endif
432 #endif
433 exit (-1);
434 }
435EOF
436 $CC_FOR_BUILD -o $dummy $dummy.c &&
437 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
438 SYSTEM_NAME=`$dummy $dummyarg` &&
439 { echo "$SYSTEM_NAME"; exit; }
440 echo mips-mips-riscos${UNAME_RELEASE}
441 exit ;;
442 Motorola:PowerMAX_OS:*:*)
443 echo powerpc-motorola-powermax
444 exit ;;
445 Motorola:*:4.3:PL8-*)
446 echo powerpc-harris-powermax
447 exit ;;
448 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
449 echo powerpc-harris-powermax
450 exit ;;
451 Night_Hawk:Power_UNIX:*:*)
452 echo powerpc-harris-powerunix
453 exit ;;
454 m88k:CX/UX:7*:*)
455 echo m88k-harris-cxux7
456 exit ;;
457 m88k:*:4*:R4*)
458 echo m88k-motorola-sysv4
459 exit ;;
460 m88k:*:3*:R3*)
461 echo m88k-motorola-sysv3
462 exit ;;
463 AViiON:dgux:*:*)
464 # DG/UX returns AViiON for all architectures
465 UNAME_PROCESSOR=`/usr/bin/uname -p`
466 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
467 then
468 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
469 [ ${TARGET_BINARY_INTERFACE}x = x ]
470 then
471 echo m88k-dg-dgux${UNAME_RELEASE}
472 else
473 echo m88k-dg-dguxbcs${UNAME_RELEASE}
474 fi
475 else
476 echo i586-dg-dgux${UNAME_RELEASE}
477 fi
478 exit ;;
479 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
480 echo m88k-dolphin-sysv3
481 exit ;;
482 M88*:*:R3*:*)
483 # Delta 88k system running SVR3
484 echo m88k-motorola-sysv3
485 exit ;;
486 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
487 echo m88k-tektronix-sysv3
488 exit ;;
489 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
490 echo m68k-tektronix-bsd
491 exit ;;
492 *:IRIX*:*:*)
493 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
494 exit ;;
495 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
496 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
497 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
498 i*86:AIX:*:*)
499 echo i386-ibm-aix
500 exit ;;
501 ia64:AIX:*:*)
502 if [ -x /usr/bin/oslevel ] ; then
503 IBM_REV=`/usr/bin/oslevel`
504 else
505 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
506 fi
507 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
508 exit ;;
509 *:AIX:2:3)
510 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
511 eval $set_cc_for_build
512 sed 's/^ //' << EOF >$dummy.c
513 #include <sys/systemcfg.h>
514
515 main()
516 {
517 if (!__power_pc())
518 exit(1);
519 puts("powerpc-ibm-aix3.2.5");
520 exit(0);
521 }
522EOF
523 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
524 then
525 echo "$SYSTEM_NAME"
526 else
527 echo rs6000-ibm-aix3.2.5
528 fi
529 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
530 echo rs6000-ibm-aix3.2.4
531 else
532 echo rs6000-ibm-aix3.2
533 fi
534 exit ;;
535 *:AIX:*:[456])
536 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
537 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
538 IBM_ARCH=rs6000
539 else
540 IBM_ARCH=powerpc
541 fi
542 if [ -x /usr/bin/oslevel ] ; then
543 IBM_REV=`/usr/bin/oslevel`
544 else
545 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
546 fi
547 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
548 exit ;;
549 *:AIX:*:*)
550 echo rs6000-ibm-aix
551 exit ;;
552 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
553 echo romp-ibm-bsd4.4
554 exit ;;
555 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
556 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
557 exit ;; # report: romp-ibm BSD 4.3
558 *:BOSX:*:*)
559 echo rs6000-bull-bosx
560 exit ;;
561 DPX/2?00:B.O.S.:*:*)
562 echo m68k-bull-sysv3
563 exit ;;
564 9000/[34]??:4.3bsd:1.*:*)
565 echo m68k-hp-bsd
566 exit ;;
567 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
568 echo m68k-hp-bsd4.4
569 exit ;;
570 9000/[34678]??:HP-UX:*:*)
571 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
572 case "${UNAME_MACHINE}" in
573 9000/31? ) HP_ARCH=m68000 ;;
574 9000/[34]?? ) HP_ARCH=m68k ;;
575 9000/[678][0-9][0-9])
576 if [ -x /usr/bin/getconf ]; then
577 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
578 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
579 case "${sc_cpu_version}" in
580 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
581 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
582 532) # CPU_PA_RISC2_0
583 case "${sc_kernel_bits}" in
584 32) HP_ARCH="hppa2.0n" ;;
585 64) HP_ARCH="hppa2.0w" ;;
586 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
587 esac ;;
588 esac
589 fi
590 if [ "${HP_ARCH}" = "" ]; then
591 eval $set_cc_for_build
592 sed 's/^ //' << EOF >$dummy.c
593
594 #define _HPUX_SOURCE
595 #include <stdlib.h>
596 #include <unistd.h>
597
598 int main ()
599 {
600 #if defined(_SC_KERNEL_BITS)
601 long bits = sysconf(_SC_KERNEL_BITS);
602 #endif
603 long cpu = sysconf (_SC_CPU_VERSION);
604
605 switch (cpu)
606 {
607 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
608 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
609 case CPU_PA_RISC2_0:
610 #if defined(_SC_KERNEL_BITS)
611 switch (bits)
612 {
613 case 64: puts ("hppa2.0w"); break;
614 case 32: puts ("hppa2.0n"); break;
615 default: puts ("hppa2.0"); break;
616 } break;
617 #else /* !defined(_SC_KERNEL_BITS) */
618 puts ("hppa2.0"); break;
619 #endif
620 default: puts ("hppa1.0"); break;
621 }
622 exit (0);
623 }
624EOF
625 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
626 test -z "$HP_ARCH" && HP_ARCH=hppa
627 fi ;;
628 esac
629 if [ ${HP_ARCH} = "hppa2.0w" ]
630 then
631 eval $set_cc_for_build
632
633 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
634 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
635 # generating 64-bit code. GNU and HP use different nomenclature:
636 #
637 # $ CC_FOR_BUILD=cc ./config.guess
638 # => hppa2.0w-hp-hpux11.23
639 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
640 # => hppa64-hp-hpux11.23
641
642 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
643 grep __LP64__ >/dev/null
644 then
645 HP_ARCH="hppa2.0w"
646 else
647 HP_ARCH="hppa64"
648 fi
649 fi
650 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
651 exit ;;
652 ia64:HP-UX:*:*)
653 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
654 echo ia64-hp-hpux${HPUX_REV}
655 exit ;;
656 3050*:HI-UX:*:*)
657 eval $set_cc_for_build
658 sed 's/^ //' << EOF >$dummy.c
659 #include <unistd.h>
660 int
661 main ()
662 {
663 long cpu = sysconf (_SC_CPU_VERSION);
664 /* The order matters, because CPU_IS_HP_MC68K erroneously returns
665 true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
666 results, however. */
667 if (CPU_IS_PA_RISC (cpu))
668 {
669 switch (cpu)
670 {
671 case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
672 case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
673 case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
674 default: puts ("hppa-hitachi-hiuxwe2"); break;
675 }
676 }
677 else if (CPU_IS_HP_MC68K (cpu))
678 puts ("m68k-hitachi-hiuxwe2");
679 else puts ("unknown-hitachi-hiuxwe2");
680 exit (0);
681 }
682EOF
683 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
684 { echo "$SYSTEM_NAME"; exit; }
685 echo unknown-hitachi-hiuxwe2
686 exit ;;
687 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
688 echo hppa1.1-hp-bsd
689 exit ;;
690 9000/8??:4.3bsd:*:*)
691 echo hppa1.0-hp-bsd
692 exit ;;
693 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
694 echo hppa1.0-hp-mpeix
695 exit ;;
696 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
697 echo hppa1.1-hp-osf
698 exit ;;
699 hp8??:OSF1:*:*)
700 echo hppa1.0-hp-osf
701 exit ;;
702 i*86:OSF1:*:*)
703 if [ -x /usr/sbin/sysversion ] ; then
704 echo ${UNAME_MACHINE}-unknown-osf1mk
705 else
706 echo ${UNAME_MACHINE}-unknown-osf1
707 fi
708 exit ;;
709 parisc*:Lites*:*:*)
710 echo hppa1.1-hp-lites
711 exit ;;
712 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
713 echo c1-convex-bsd
714 exit ;;
715 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
716 if getsysinfo -f scalar_acc
717 then echo c32-convex-bsd
718 else echo c2-convex-bsd
719 fi
720 exit ;;
721 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
722 echo c34-convex-bsd
723 exit ;;
724 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
725 echo c38-convex-bsd
726 exit ;;
727 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
728 echo c4-convex-bsd
729 exit ;;
730 CRAY*Y-MP:*:*:*)
731 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
732 exit ;;
733 CRAY*[A-Z]90:*:*:*)
734 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
735 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
736 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
737 -e 's/\.[^.]*$/.X/'
738 exit ;;
739 CRAY*TS:*:*:*)
740 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
741 exit ;;
742 CRAY*T3E:*:*:*)
743 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
744 exit ;;
745 CRAY*SV1:*:*:*)
746 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
747 exit ;;
748 *:UNICOS/mp:*:*)
749 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
750 exit ;;
751 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
752 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
753 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
754 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
755 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
756 exit ;;
757 5000:UNIX_System_V:4.*:*)
758 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
759 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
760 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
761 exit ;;
762 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
763 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
764 exit ;;
765 sparc*:BSD/OS:*:*)
766 echo sparc-unknown-bsdi${UNAME_RELEASE}
767 exit ;;
768 *:BSD/OS:*:*)
769 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
770 exit ;;
771 *:FreeBSD:*:*)
772 case ${UNAME_MACHINE} in
773 pc98)
774 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
775 amd64)
776 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
777 *)
778 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
779 esac
780 exit ;;
781 i*:CYGWIN*:*)
782 echo ${UNAME_MACHINE}-pc-cygwin
783 exit ;;
784 *:MINGW*:*)
785 echo ${UNAME_MACHINE}-pc-mingw32
786 exit ;;
787 i*:windows32*:*)
788 # uname -m includes "-pc" on this system.
789 echo ${UNAME_MACHINE}-mingw32
790 exit ;;
791 i*:PW*:*)
792 echo ${UNAME_MACHINE}-pc-pw32
793 exit ;;
794 *:Interix*:[3456]*)
795 case ${UNAME_MACHINE} in
796 x86)
797 echo i586-pc-interix${UNAME_RELEASE}
798 exit ;;
799 EM64T | authenticamd)
800 echo x86_64-unknown-interix${UNAME_RELEASE}
801 exit ;;
802 IA64)
803 echo ia64-unknown-interix${UNAME_RELEASE}
804 exit ;;
805 esac ;;
806 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
807 echo i${UNAME_MACHINE}-pc-mks
808 exit ;;
809 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
810 # How do we know it's Interix rather than the generic POSIX subsystem?
811 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
812 # UNAME_MACHINE based on the output of uname instead of i386?
813 echo i586-pc-interix
814 exit ;;
815 i*:UWIN*:*)
816 echo ${UNAME_MACHINE}-pc-uwin
817 exit ;;
818 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
819 echo x86_64-unknown-cygwin
820 exit ;;
821 p*:CYGWIN*:*)
822 echo powerpcle-unknown-cygwin
823 exit ;;
824 prep*:SunOS:5.*:*)
825 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
826 exit ;;
827 *:GNU:*:*)
828 # the GNU system
829 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
830 exit ;;
831 *:GNU/*:*:*)
832 # other systems with GNU libc and userland
833 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
834 exit ;;
835 i*86:Minix:*:*)
836 echo ${UNAME_MACHINE}-pc-minix
837 exit ;;
838 arm*:Linux:*:*)
839 eval $set_cc_for_build
840 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
841 | grep -q __ARM_EABI__
842 then
843 echo ${UNAME_MACHINE}-unknown-linux-gnu
844 else
845 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
846 fi
847 exit ;;
848 avr32*:Linux:*:*)
849 echo ${UNAME_MACHINE}-unknown-linux-gnu
850 exit ;;
851 cris:Linux:*:*)
852 echo cris-axis-linux-gnu
853 exit ;;
854 crisv32:Linux:*:*)
855 echo crisv32-axis-linux-gnu
856 exit ;;
857 frv:Linux:*:*)
858 echo frv-unknown-linux-gnu
859 exit ;;
860 ia64:Linux:*:*)
861 echo ${UNAME_MACHINE}-unknown-linux-gnu
862 exit ;;
863 m32r*:Linux:*:*)
864 echo ${UNAME_MACHINE}-unknown-linux-gnu
865 exit ;;
866 m68*:Linux:*:*)
867 echo ${UNAME_MACHINE}-unknown-linux-gnu
868 exit ;;
869 mips:Linux:*:*)
870 eval $set_cc_for_build
871 sed 's/^ //' << EOF >$dummy.c
872 #undef CPU
873 #undef mips
874 #undef mipsel
875 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
876 CPU=mipsel
877 #else
878 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
879 CPU=mips
880 #else
881 CPU=
882 #endif
883 #endif
884EOF
885 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
886 /^CPU/{
887 s: ::g
888 p
889 }'`"
890 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
891 ;;
892 mips64:Linux:*:*)
893 eval $set_cc_for_build
894 sed 's/^ //' << EOF >$dummy.c
895 #undef CPU
896 #undef mips64
897 #undef mips64el
898 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
899 CPU=mips64el
900 #else
901 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
902 CPU=mips64
903 #else
904 CPU=
905 #endif
906 #endif
907EOF
908 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
909 /^CPU/{
910 s: ::g
911 p
912 }'`"
913 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
914 ;;
915 or32:Linux:*:*)
916 echo or32-unknown-linux-gnu
917 exit ;;
918 ppc:Linux:*:*)
919 echo powerpc-unknown-linux-gnu
920 exit ;;
921 ppc64:Linux:*:*)
922 echo powerpc64-unknown-linux-gnu
923 exit ;;
924 alpha:Linux:*:*)
925 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
926 EV5) UNAME_MACHINE=alphaev5 ;;
927 EV56) UNAME_MACHINE=alphaev56 ;;
928 PCA56) UNAME_MACHINE=alphapca56 ;;
929 PCA57) UNAME_MACHINE=alphapca56 ;;
930 EV6) UNAME_MACHINE=alphaev6 ;;
931 EV67) UNAME_MACHINE=alphaev67 ;;
932 EV68*) UNAME_MACHINE=alphaev68 ;;
933 esac
934 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
935 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
936 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
937 exit ;;
938 parisc:Linux:*:* | hppa:Linux:*:*)
939 # Look for CPU level
940 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
941 PA7*) echo hppa1.1-unknown-linux-gnu ;;
942 PA8*) echo hppa2.0-unknown-linux-gnu ;;
943 *) echo hppa-unknown-linux-gnu ;;
944 esac
945 exit ;;
946 parisc64:Linux:*:* | hppa64:Linux:*:*)
947 echo hppa64-unknown-linux-gnu
948 exit ;;
949 s390:Linux:*:* | s390x:Linux:*:*)
950 echo ${UNAME_MACHINE}-ibm-linux
951 exit ;;
952 sh64*:Linux:*:*)
953 echo ${UNAME_MACHINE}-unknown-linux-gnu
954 exit ;;
955 sh*:Linux:*:*)
956 echo ${UNAME_MACHINE}-unknown-linux-gnu
957 exit ;;
958 sparc:Linux:*:* | sparc64:Linux:*:*)
959 echo ${UNAME_MACHINE}-unknown-linux-gnu
960 exit ;;
961 vax:Linux:*:*)
962 echo ${UNAME_MACHINE}-dec-linux-gnu
963 exit ;;
964 x86_64:Linux:*:*)
965 echo x86_64-unknown-linux-gnu
966 exit ;;
967 xtensa*:Linux:*:*)
968 echo ${UNAME_MACHINE}-unknown-linux-gnu
969 exit ;;
970 i*86:Linux:*:*)
971 # The BFD linker knows what the default object file format is, so
972 # first see if it will tell us. cd to the root directory to prevent
973 # problems with other programs or directories called `ld' in the path.
974 # Set LC_ALL=C to ensure ld outputs messages in English.
975 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
976 | sed -ne '/supported targets:/!d
977 s/[ ][ ]*/ /g
978 s/.*supported targets: *//
979 s/ .*//
980 p'`
981 case "$ld_supported_targets" in
982 elf32-i386)
983 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
984 ;;
985 a.out-i386-linux)
986 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
987 exit ;;
988 coff-i386)
989 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
990 exit ;;
991 "")
992 # Either a pre-BFD a.out linker (linux-gnuoldld) or
993 # one that does not give us useful --help.
994 echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
995 exit ;;
996 esac
997 # Determine whether the default compiler is a.out or elf
998 eval $set_cc_for_build
999 sed 's/^ //' << EOF >$dummy.c
1000 #include <features.h>
1001 #ifdef __ELF__
1002 # ifdef __GLIBC__
1003 # if __GLIBC__ >= 2
1004 LIBC=gnu
1005 # else
1006 LIBC=gnulibc1
1007 # endif
1008 # else
1009 LIBC=gnulibc1
1010 # endif
1011 #else
1012 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
1013 LIBC=gnu
1014 #else
1015 LIBC=gnuaout
1016 #endif
1017 #endif
1018 #ifdef __dietlibc__
1019 LIBC=dietlibc
1020 #endif
1021EOF
1022 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1023 /^LIBC/{
1024 s: ::g
1025 p
1026 }'`"
1027 test x"${LIBC}" != x && {
1028 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1029 exit
1030 }
1031 test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
1032 ;;
1033 i*86:DYNIX/ptx:4*:*)
1034 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1035 # earlier versions are messed up and put the nodename in both
1036 # sysname and nodename.
1037 echo i386-sequent-sysv4
1038 exit ;;
1039 i*86:UNIX_SV:4.2MP:2.*)
1040 # Unixware is an offshoot of SVR4, but it has its own version
1041 # number series starting with 2...
1042 # I am not positive that other SVR4 systems won't match this,
1043 # I just have to hope. -- rms.
1044 # Use sysv4.2uw... so that sysv4* matches it.
1045 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1046 exit ;;
1047 i*86:OS/2:*:*)
1048 # If we were able to find `uname', then EMX Unix compatibility
1049 # is probably installed.
1050 echo ${UNAME_MACHINE}-pc-os2-emx
1051 exit ;;
1052 i*86:XTS-300:*:STOP)
1053 echo ${UNAME_MACHINE}-unknown-stop
1054 exit ;;
1055 i*86:atheos:*:*)
1056 echo ${UNAME_MACHINE}-unknown-atheos
1057 exit ;;
1058 i*86:syllable:*:*)
1059 echo ${UNAME_MACHINE}-pc-syllable
1060 exit ;;
1061 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1062 echo i386-unknown-lynxos${UNAME_RELEASE}
1063 exit ;;
1064 i*86:*DOS:*:*)
1065 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1066 exit ;;
1067 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1068 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1069 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1070 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1071 else
1072 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1073 fi
1074 exit ;;
1075 i*86:*:5:[678]*)
1076 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1077 case `/bin/uname -X | grep "^Machine"` in
1078 *486*) UNAME_MACHINE=i486 ;;
1079 *Pentium) UNAME_MACHINE=i586 ;;
1080 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1081 esac
1082 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1083 exit ;;
1084 i*86:*:3.2:*)
1085 if test -f /usr/options/cb.name; then
1086 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1087 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1088 elif /bin/uname -X 2>/dev/null >/dev/null ; then
1089 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1090 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1091 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1092 && UNAME_MACHINE=i586
1093 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1094 && UNAME_MACHINE=i686
1095 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1096 && UNAME_MACHINE=i686
1097 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1098 else
1099 echo ${UNAME_MACHINE}-pc-sysv32
1100 fi
1101 exit ;;
1102 pc:*:*:*)
1103 # Left here for compatibility:
1104 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1105 # the processor, so we play safe by assuming i386.
1106 echo i386-pc-msdosdjgpp
1107 exit ;;
1108 Intel:Mach:3*:*)
1109 echo i386-pc-mach3
1110 exit ;;
1111 paragon:*:*:*)
1112 echo i860-intel-osf1
1113 exit ;;
1114 i860:*:4.*:*) # i860-SVR4
1115 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1116 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1117 else # Add other i860-SVR4 vendors below as they are discovered.
1118 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1119 fi
1120 exit ;;
1121 mini*:CTIX:SYS*5:*)
1122 # "miniframe"
1123 echo m68010-convergent-sysv
1124 exit ;;
1125 mc68k:UNIX:SYSTEM5:3.51m)
1126 echo m68k-convergent-sysv
1127 exit ;;
1128 M680?0:D-NIX:5.3:*)
1129 echo m68k-diab-dnix
1130 exit ;;
1131 M68*:*:R3V[5678]*:*)
1132 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1133 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)
1134 OS_REL=''
1135 test -r /etc/.relid \
1136 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1137 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1138 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1139 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1140 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1141 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1142 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1143 && { echo i486-ncr-sysv4; exit; } ;;
1144 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1145 echo m68k-unknown-lynxos${UNAME_RELEASE}
1146 exit ;;
1147 mc68030:UNIX_System_V:4.*:*)
1148 echo m68k-atari-sysv4
1149 exit ;;
1150 TSUNAMI:LynxOS:2.*:*)
1151 echo sparc-unknown-lynxos${UNAME_RELEASE}
1152 exit ;;
1153 rs6000:LynxOS:2.*:*)
1154 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1155 exit ;;
1156 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
1157 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1158 exit ;;
1159 SM[BE]S:UNIX_SV:*:*)
1160 echo mips-dde-sysv${UNAME_RELEASE}
1161 exit ;;
1162 RM*:ReliantUNIX-*:*:*)
1163 echo mips-sni-sysv4
1164 exit ;;
1165 RM*:SINIX-*:*:*)
1166 echo mips-sni-sysv4
1167 exit ;;
1168 *:SINIX-*:*:*)
1169 if uname -p 2>/dev/null >/dev/null ; then
1170 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1171 echo ${UNAME_MACHINE}-sni-sysv4
1172 else
1173 echo ns32k-sni-sysv
1174 fi
1175 exit ;;
1176 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1177 # says <Richard.M.Bartel@ccMail.Census.GOV>
1178 echo i586-unisys-sysv4
1179 exit ;;
1180 *:UNIX_System_V:4*:FTX*)
1181 # From Gerald Hewes <hewes@openmarket.com>.
1182 # How about differentiating between stratus architectures? -djm
1183 echo hppa1.1-stratus-sysv4
1184 exit ;;
1185 *:*:*:FTX*)
1186 # From seanf@swdc.stratus.com.
1187 echo i860-stratus-sysv4
1188 exit ;;
1189 i*86:VOS:*:*)
1190 # From Paul.Green@stratus.com.
1191 echo ${UNAME_MACHINE}-stratus-vos
1192 exit ;;
1193 *:VOS:*:*)
1194 # From Paul.Green@stratus.com.
1195 echo hppa1.1-stratus-vos
1196 exit ;;
1197 mc68*:A/UX:*:*)
1198 echo m68k-apple-aux${UNAME_RELEASE}
1199 exit ;;
1200 news*:NEWS-OS:6*:*)
1201 echo mips-sony-newsos6
1202 exit ;;
1203 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1204 if [ -d /usr/nec ]; then
1205 echo mips-nec-sysv${UNAME_RELEASE}
1206 else
1207 echo mips-unknown-sysv${UNAME_RELEASE}
1208 fi
1209 exit ;;
1210 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1211 echo powerpc-be-beos
1212 exit ;;
1213 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1214 echo powerpc-apple-beos
1215 exit ;;
1216 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1217 echo i586-pc-beos
1218 exit ;;
1219 SX-4:SUPER-UX:*:*)
1220 echo sx4-nec-superux${UNAME_RELEASE}
1221 exit ;;
1222 SX-5:SUPER-UX:*:*)
1223 echo sx5-nec-superux${UNAME_RELEASE}
1224 exit ;;
1225 SX-6:SUPER-UX:*:*)
1226 echo sx6-nec-superux${UNAME_RELEASE}
1227 exit ;;
1228 SX-7:SUPER-UX:*:*)
1229 echo sx7-nec-superux${UNAME_RELEASE}
1230 exit ;;
1231 SX-8:SUPER-UX:*:*)
1232 echo sx8-nec-superux${UNAME_RELEASE}
1233 exit ;;
1234 SX-8R:SUPER-UX:*:*)
1235 echo sx8r-nec-superux${UNAME_RELEASE}
1236 exit ;;
1237 Power*:Rhapsody:*:*)
1238 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1239 exit ;;
1240 *:Rhapsody:*:*)
1241 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1242 exit ;;
1243 *:Darwin:*:*)
1244 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1245 case $UNAME_PROCESSOR in
1246 unknown) UNAME_PROCESSOR=powerpc ;;
1247 esac
1248 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1249 exit ;;
1250 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1251 UNAME_PROCESSOR=`uname -p`
1252 if test "$UNAME_PROCESSOR" = "x86"; then
1253 UNAME_PROCESSOR=i386
1254 UNAME_MACHINE=pc
1255 fi
1256 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1257 exit ;;
1258 *:QNX:*:4*)
1259 echo i386-pc-qnx
1260 exit ;;
1261 NSE-?:NONSTOP_KERNEL:*:*)
1262 echo nse-tandem-nsk${UNAME_RELEASE}
1263 exit ;;
1264 NSR-?:NONSTOP_KERNEL:*:*)
1265 echo nsr-tandem-nsk${UNAME_RELEASE}
1266 exit ;;
1267 *:NonStop-UX:*:*)
1268 echo mips-compaq-nonstopux
1269 exit ;;
1270 BS2000:POSIX*:*:*)
1271 echo bs2000-siemens-sysv
1272 exit ;;
1273 DS/*:UNIX_System_V:*:*)
1274 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1275 exit ;;
1276 *:Plan9:*:*)
1277 # "uname -m" is not consistent, so use $cputype instead. 386
1278 # is converted to i386 for consistency with other x86
1279 # operating systems.
1280 if test "$cputype" = "386"; then
1281 UNAME_MACHINE=i386
1282 else
1283 UNAME_MACHINE="$cputype"
1284 fi
1285 echo ${UNAME_MACHINE}-unknown-plan9
1286 exit ;;
1287 *:TOPS-10:*:*)
1288 echo pdp10-unknown-tops10
1289 exit ;;
1290 *:TENEX:*:*)
1291 echo pdp10-unknown-tenex
1292 exit ;;
1293 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1294 echo pdp10-dec-tops20
1295 exit ;;
1296 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1297 echo pdp10-xkl-tops20
1298 exit ;;
1299 *:TOPS-20:*:*)
1300 echo pdp10-unknown-tops20
1301 exit ;;
1302 *:ITS:*:*)
1303 echo pdp10-unknown-its
1304 exit ;;
1305 SEI:*:*:SEIUX)
1306 echo mips-sei-seiux${UNAME_RELEASE}
1307 exit ;;
1308 *:DragonFly:*:*)
1309 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1310 exit ;;
1311 *:*VMS:*:*)
1312 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1313 case "${UNAME_MACHINE}" in
1314 A*) echo alpha-dec-vms ; exit ;;
1315 I*) echo ia64-dec-vms ; exit ;;
1316 V*) echo vax-dec-vms ; exit ;;
1317 esac ;;
1318 *:XENIX:*:SysV)
1319 echo i386-pc-xenix
1320 exit ;;
1321 i*86:skyos:*:*)
1322 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1323 exit ;;
1324 i*86:rdos:*:*)
1325 echo ${UNAME_MACHINE}-pc-rdos
1326 exit ;;
1327esac
1328
1329#echo '(No uname command or uname output not recognized.)' 1>&2
1330#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1331
1332eval $set_cc_for_build
1333cat >$dummy.c <<EOF
1334#ifdef _SEQUENT_
1335# include <sys/types.h>
1336# include <sys/utsname.h>
1337#endif
1338main ()
1339{
1340#if defined (sony)
1341#if defined (MIPSEB)
1342 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1343 I don't know.... */
1344 printf ("mips-sony-bsd\n"); exit (0);
1345#else
1346#include <sys/param.h>
1347 printf ("m68k-sony-newsos%s\n",
1348#ifdef NEWSOS4
1349 "4"
1350#else
1351 ""
1352#endif
1353 ); exit (0);
1354#endif
1355#endif
1356
1357#if defined (__arm) && defined (__acorn) && defined (__unix)
1358 printf ("arm-acorn-riscix\n"); exit (0);
1359#endif
1360
1361#if defined (hp300) && !defined (hpux)
1362 printf ("m68k-hp-bsd\n"); exit (0);
1363#endif
1364
1365#if defined (NeXT)
1366#if !defined (__ARCHITECTURE__)
1367#define __ARCHITECTURE__ "m68k"
1368#endif
1369 int version;
1370 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1371 if (version < 4)
1372 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1373 else
1374 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1375 exit (0);
1376#endif
1377
1378#if defined (MULTIMAX) || defined (n16)
1379#if defined (UMAXV)
1380 printf ("ns32k-encore-sysv\n"); exit (0);
1381#else
1382#if defined (CMU)
1383 printf ("ns32k-encore-mach\n"); exit (0);
1384#else
1385 printf ("ns32k-encore-bsd\n"); exit (0);
1386#endif
1387#endif
1388#endif
1389
1390#if defined (__386BSD__)
1391 printf ("i386-pc-bsd\n"); exit (0);
1392#endif
1393
1394#if defined (sequent)
1395#if defined (i386)
1396 printf ("i386-sequent-dynix\n"); exit (0);
1397#endif
1398#if defined (ns32000)
1399 printf ("ns32k-sequent-dynix\n"); exit (0);
1400#endif
1401#endif
1402
1403#if defined (_SEQUENT_)
1404 struct utsname un;
1405
1406 uname(&un);
1407
1408 if (strncmp(un.version, "V2", 2) == 0) {
1409 printf ("i386-sequent-ptx2\n"); exit (0);
1410 }
1411 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1412 printf ("i386-sequent-ptx1\n"); exit (0);
1413 }
1414 printf ("i386-sequent-ptx\n"); exit (0);
1415
1416#endif
1417
1418#if defined (vax)
1419# if !defined (ultrix)
1420# include <sys/param.h>
1421# if defined (BSD)
1422# if BSD == 43
1423 printf ("vax-dec-bsd4.3\n"); exit (0);
1424# else
1425# if BSD == 199006
1426 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1427# else
1428 printf ("vax-dec-bsd\n"); exit (0);
1429# endif
1430# endif
1431# else
1432 printf ("vax-dec-bsd\n"); exit (0);
1433# endif
1434# else
1435 printf ("vax-dec-ultrix\n"); exit (0);
1436# endif
1437#endif
1438
1439#if defined (alliant) && defined (i860)
1440 printf ("i860-alliant-bsd\n"); exit (0);
1441#endif
1442
1443 exit (1);
1444}
1445EOF
1446
1447$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1448 { echo "$SYSTEM_NAME"; exit; }
1449
1450# Apollos put the system type in the environment.
1451
1452test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1453
1454# Convex versions that predate uname can use getsysinfo(1)
1455
1456if [ -x /usr/convex/getsysinfo ]
1457then
1458 case `getsysinfo -f cpu_type` in
1459 c1*)
1460 echo c1-convex-bsd
1461 exit ;;
1462 c2*)
1463 if getsysinfo -f scalar_acc
1464 then echo c32-convex-bsd
1465 else echo c2-convex-bsd
1466 fi
1467 exit ;;
1468 c34*)
1469 echo c34-convex-bsd
1470 exit ;;
1471 c38*)
1472 echo c38-convex-bsd
1473 exit ;;
1474 c4*)
1475 echo c4-convex-bsd
1476 exit ;;
1477 esac
1478fi
1479
1480cat >&2 <<EOF
1481$0: unable to guess system type
1482
1483This script, last modified $timestamp, has failed to recognize
1484the operating system you are using. It is advised that you
1485download the most up to date version of the config scripts from
1486
1487 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1488and
1489 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1490
1491If the version you run ($0) is already up to date, please
1492send the following data and any information you think might be
1493pertinent to <config-patches@gnu.org> in order to provide the needed
1494information to handle your system.
1495
1496config.guess timestamp = $timestamp
1497
1498uname -m = `(uname -m) 2>/dev/null || echo unknown`
1499uname -r = `(uname -r) 2>/dev/null || echo unknown`
1500uname -s = `(uname -s) 2>/dev/null || echo unknown`
1501uname -v = `(uname -v) 2>/dev/null || echo unknown`
1502
1503/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1504/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1505
1506hostinfo = `(hostinfo) 2>/dev/null`
1507/bin/universe = `(/bin/universe) 2>/dev/null`
1508/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1509/bin/arch = `(/bin/arch) 2>/dev/null`
1510/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
1511/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
1512
1513UNAME_MACHINE = ${UNAME_MACHINE}
1514UNAME_RELEASE = ${UNAME_RELEASE}
1515UNAME_SYSTEM = ${UNAME_SYSTEM}
1516UNAME_VERSION = ${UNAME_VERSION}
1517EOF
1518
1519exit 1
1520
1521# Local variables:
1522# eval: (add-hook 'write-file-hooks 'time-stamp)
1523# time-stamp-start: "timestamp='"
1524# time-stamp-format: "%:y-%02m-%02d"
1525# time-stamp-end: "'"
1526# End:
diff --git a/src/others/mimesh/libg3d-0.0.8/config/config.sub b/src/others/mimesh/libg3d-0.0.8/config/config.sub
new file mode 100755
index 0000000..6759825
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/config/config.sub
@@ -0,0 +1,1658 @@
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, 2006, 2007, 2008
5# Free Software Foundation, Inc.
6
7timestamp='2008-01-16'
8
9# This file is (in principle) common to ALL GNU software.
10# The presence of a machine in this file suggests that SOME GNU software
11# can handle that machine. It does not imply ALL GNU software can.
12#
13# This file is free software; you can redistribute it and/or modify
14# it under the terms of the GNU General Public License as published by
15# the Free Software Foundation; either version 2 of the License, or
16# (at your option) any later version.
17#
18# This program is distributed in the hope that it will be useful,
19# but WITHOUT ANY WARRANTY; without even the implied warranty of
20# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21# GNU General Public License for more details.
22#
23# You should have received a copy of the GNU General Public License
24# along with this program; if not, write to the Free Software
25# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
26# 02110-1301, USA.
27#
28# As a special exception to the GNU General Public License, if you
29# distribute this file as part of a program that contains a
30# configuration script generated by Autoconf, you may include it under
31# the same distribution terms that you use for the rest of that program.
32
33
34# Please send patches to <config-patches@gnu.org>. Submit a context
35# diff and a properly formatted ChangeLog entry.
36#
37# Configuration subroutine to validate and canonicalize a configuration type.
38# Supply the specified configuration type as an argument.
39# If it is invalid, we print an error message on stderr and exit with code 1.
40# Otherwise, we print the canonical config type on stdout and succeed.
41
42# This file is supposed to be the same for all GNU packages
43# and recognize all the CPU types, system types and aliases
44# that are meaningful with *any* GNU software.
45# Each package is responsible for reporting which valid configurations
46# it does not support. The user should be able to distinguish
47# a failure to support a valid configuration from a meaningless
48# configuration.
49
50# The goal of this file is to map all the various variations of a given
51# machine specification into a single specification in the form:
52# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
53# or in some cases, the newer four-part form:
54# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
55# It is wrong to echo any other type of specification.
56
57me=`echo "$0" | sed -e 's,.*/,,'`
58
59usage="\
60Usage: $0 [OPTION] CPU-MFR-OPSYS
61 $0 [OPTION] ALIAS
62
63Canonicalize a configuration name.
64
65Operation modes:
66 -h, --help print this help, then exit
67 -t, --time-stamp print date of last modification, then exit
68 -v, --version print version number, then exit
69
70Report bugs and patches to <config-patches@gnu.org>."
71
72version="\
73GNU config.sub ($timestamp)
74
75Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
762002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
77
78This is free software; see the source for copying conditions. There is NO
79warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
80
81help="
82Try \`$me --help' for more information."
83
84# Parse command line
85while test $# -gt 0 ; do
86 case $1 in
87 --time-stamp | --time* | -t )
88 echo "$timestamp" ; exit ;;
89 --version | -v )
90 echo "$version" ; exit ;;
91 --help | --h* | -h )
92 echo "$usage"; exit ;;
93 -- ) # Stop option processing
94 shift; break ;;
95 - ) # Use stdin as input.
96 break ;;
97 -* )
98 echo "$me: invalid option $1$help"
99 exit 1 ;;
100
101 *local*)
102 # First pass through any local machine types.
103 echo $1
104 exit ;;
105
106 * )
107 break ;;
108 esac
109done
110
111case $# in
112 0) echo "$me: missing argument$help" >&2
113 exit 1;;
114 1) ;;
115 *) echo "$me: too many arguments$help" >&2
116 exit 1;;
117esac
118
119# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
120# Here we must recognize all the valid KERNEL-OS combinations.
121maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
122case $maybe_os in
123 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
124 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
125 storm-chaos* | os2-emx* | rtmk-nova*)
126 os=-$maybe_os
127 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
128 ;;
129 *)
130 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
131 if [ $basic_machine != $1 ]
132 then os=`echo $1 | sed 's/.*-/-/'`
133 else os=; fi
134 ;;
135esac
136
137### Let's recognize common machines as not being operating systems so
138### that things like config.sub decstation-3100 work. We also
139### recognize some manufacturers as not being operating systems, so we
140### can provide default operating systems below.
141case $os in
142 -sun*os*)
143 # Prevent following clause from handling this invalid input.
144 ;;
145 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
146 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
147 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
148 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
149 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
150 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
151 -apple | -axis | -knuth | -cray)
152 os=
153 basic_machine=$1
154 ;;
155 -sim | -cisco | -oki | -wec | -winbond)
156 os=
157 basic_machine=$1
158 ;;
159 -scout)
160 ;;
161 -wrs)
162 os=-vxworks
163 basic_machine=$1
164 ;;
165 -chorusos*)
166 os=-chorusos
167 basic_machine=$1
168 ;;
169 -chorusrdb)
170 os=-chorusrdb
171 basic_machine=$1
172 ;;
173 -hiux*)
174 os=-hiuxwe2
175 ;;
176 -sco6)
177 os=-sco5v6
178 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
179 ;;
180 -sco5)
181 os=-sco3.2v5
182 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
183 ;;
184 -sco4)
185 os=-sco3.2v4
186 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
187 ;;
188 -sco3.2.[4-9]*)
189 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
190 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
191 ;;
192 -sco3.2v[4-9]*)
193 # Don't forget version if it is 3.2v4 or newer.
194 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
195 ;;
196 -sco5v6*)
197 # Don't forget version if it is 3.2v4 or newer.
198 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
199 ;;
200 -sco*)
201 os=-sco3.2v2
202 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
203 ;;
204 -udk*)
205 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
206 ;;
207 -isc)
208 os=-isc2.2
209 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
210 ;;
211 -clix*)
212 basic_machine=clipper-intergraph
213 ;;
214 -isc*)
215 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
216 ;;
217 -lynx*)
218 os=-lynxos
219 ;;
220 -ptx*)
221 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
222 ;;
223 -windowsnt*)
224 os=`echo $os | sed -e 's/windowsnt/winnt/'`
225 ;;
226 -psos*)
227 os=-psos
228 ;;
229 -mint | -mint[0-9]*)
230 basic_machine=m68k-atari
231 os=-mint
232 ;;
233esac
234
235# Decode aliases for certain CPU-COMPANY combinations.
236case $basic_machine in
237 # Recognize the basic CPU types without company name.
238 # Some are omitted here because they have special meanings below.
239 1750a | 580 \
240 | a29k \
241 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
242 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
243 | am33_2.0 \
244 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
245 | bfin \
246 | c4x | clipper \
247 | d10v | d30v | dlx | dsp16xx \
248 | fido | fr30 | frv \
249 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
250 | i370 | i860 | i960 | ia64 \
251 | ip2k | iq2000 \
252 | m32c | m32r | m32rle | m68000 | m68k | m88k \
253 | maxq | mb | microblaze | mcore | mep \
254 | mips | mipsbe | mipseb | mipsel | mipsle \
255 | mips16 \
256 | mips64 | mips64el \
257 | mips64vr | mips64vrel \
258 | mips64orion | mips64orionel \
259 | mips64vr4100 | mips64vr4100el \
260 | mips64vr4300 | mips64vr4300el \
261 | mips64vr5000 | mips64vr5000el \
262 | mips64vr5900 | mips64vr5900el \
263 | mipsisa32 | mipsisa32el \
264 | mipsisa32r2 | mipsisa32r2el \
265 | mipsisa64 | mipsisa64el \
266 | mipsisa64r2 | mipsisa64r2el \
267 | mipsisa64sb1 | mipsisa64sb1el \
268 | mipsisa64sr71k | mipsisa64sr71kel \
269 | mipstx39 | mipstx39el \
270 | mn10200 | mn10300 \
271 | mt \
272 | msp430 \
273 | nios | nios2 \
274 | ns16k | ns32k \
275 | or32 \
276 | pdp10 | pdp11 | pj | pjl \
277 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
278 | pyramid \
279 | score \
280 | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
281 | sh64 | sh64le \
282 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
283 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
284 | spu | strongarm \
285 | tahoe | thumb | tic4x | tic80 | tron \
286 | v850 | v850e \
287 | we32k \
288 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
289 | z8k)
290 basic_machine=$basic_machine-unknown
291 ;;
292 m6811 | m68hc11 | m6812 | m68hc12)
293 # Motorola 68HC11/12.
294 basic_machine=$basic_machine-unknown
295 os=-none
296 ;;
297 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
298 ;;
299 ms1)
300 basic_machine=mt-unknown
301 ;;
302
303 # We use `pc' rather than `unknown'
304 # because (1) that's what they normally are, and
305 # (2) the word "unknown" tends to confuse beginning users.
306 i*86 | x86_64)
307 basic_machine=$basic_machine-pc
308 ;;
309 # Object if more than one company name word.
310 *-*-*)
311 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
312 exit 1
313 ;;
314 # Recognize the basic CPU types with company name.
315 580-* \
316 | a29k-* \
317 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
318 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
319 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
320 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
321 | avr-* | avr32-* \
322 | bfin-* | bs2000-* \
323 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
324 | clipper-* | craynv-* | cydra-* \
325 | d10v-* | d30v-* | dlx-* \
326 | elxsi-* \
327 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
328 | h8300-* | h8500-* \
329 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
330 | i*86-* | i860-* | i960-* | ia64-* \
331 | ip2k-* | iq2000-* \
332 | m32c-* | m32r-* | m32rle-* \
333 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
334 | m88110-* | m88k-* | maxq-* | mcore-* \
335 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
336 | mips16-* \
337 | mips64-* | mips64el-* \
338 | mips64vr-* | mips64vrel-* \
339 | mips64orion-* | mips64orionel-* \
340 | mips64vr4100-* | mips64vr4100el-* \
341 | mips64vr4300-* | mips64vr4300el-* \
342 | mips64vr5000-* | mips64vr5000el-* \
343 | mips64vr5900-* | mips64vr5900el-* \
344 | mipsisa32-* | mipsisa32el-* \
345 | mipsisa32r2-* | mipsisa32r2el-* \
346 | mipsisa64-* | mipsisa64el-* \
347 | mipsisa64r2-* | mipsisa64r2el-* \
348 | mipsisa64sb1-* | mipsisa64sb1el-* \
349 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
350 | mipstx39-* | mipstx39el-* \
351 | mmix-* \
352 | mt-* \
353 | msp430-* \
354 | nios-* | nios2-* \
355 | none-* | np1-* | ns16k-* | ns32k-* \
356 | orion-* \
357 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
358 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
359 | pyramid-* \
360 | romp-* | rs6000-* \
361 | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
362 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
363 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
364 | sparclite-* \
365 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
366 | tahoe-* | thumb-* \
367 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
368 | tron-* \
369 | v850-* | v850e-* | vax-* \
370 | we32k-* \
371 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
372 | xstormy16-* | xtensa*-* \
373 | ymp-* \
374 | z8k-*)
375 ;;
376 # Recognize the basic CPU types without company name, with glob match.
377 xtensa*)
378 basic_machine=$basic_machine-unknown
379 ;;
380 # Recognize the various machine names and aliases which stand
381 # for a CPU type and a company and sometimes even an OS.
382 386bsd)
383 basic_machine=i386-unknown
384 os=-bsd
385 ;;
386 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
387 basic_machine=m68000-att
388 ;;
389 3b*)
390 basic_machine=we32k-att
391 ;;
392 a29khif)
393 basic_machine=a29k-amd
394 os=-udi
395 ;;
396 abacus)
397 basic_machine=abacus-unknown
398 ;;
399 adobe68k)
400 basic_machine=m68010-adobe
401 os=-scout
402 ;;
403 alliant | fx80)
404 basic_machine=fx80-alliant
405 ;;
406 altos | altos3068)
407 basic_machine=m68k-altos
408 ;;
409 am29k)
410 basic_machine=a29k-none
411 os=-bsd
412 ;;
413 amd64)
414 basic_machine=x86_64-pc
415 ;;
416 amd64-*)
417 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
418 ;;
419 amdahl)
420 basic_machine=580-amdahl
421 os=-sysv
422 ;;
423 amiga | amiga-*)
424 basic_machine=m68k-unknown
425 ;;
426 amigaos | amigados)
427 basic_machine=m68k-unknown
428 os=-amigaos
429 ;;
430 amigaunix | amix)
431 basic_machine=m68k-unknown
432 os=-sysv4
433 ;;
434 apollo68)
435 basic_machine=m68k-apollo
436 os=-sysv
437 ;;
438 apollo68bsd)
439 basic_machine=m68k-apollo
440 os=-bsd
441 ;;
442 aux)
443 basic_machine=m68k-apple
444 os=-aux
445 ;;
446 balance)
447 basic_machine=ns32k-sequent
448 os=-dynix
449 ;;
450 blackfin)
451 basic_machine=bfin-unknown
452 os=-linux
453 ;;
454 blackfin-*)
455 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
456 os=-linux
457 ;;
458 c90)
459 basic_machine=c90-cray
460 os=-unicos
461 ;;
462 convex-c1)
463 basic_machine=c1-convex
464 os=-bsd
465 ;;
466 convex-c2)
467 basic_machine=c2-convex
468 os=-bsd
469 ;;
470 convex-c32)
471 basic_machine=c32-convex
472 os=-bsd
473 ;;
474 convex-c34)
475 basic_machine=c34-convex
476 os=-bsd
477 ;;
478 convex-c38)
479 basic_machine=c38-convex
480 os=-bsd
481 ;;
482 cray | j90)
483 basic_machine=j90-cray
484 os=-unicos
485 ;;
486 craynv)
487 basic_machine=craynv-cray
488 os=-unicosmp
489 ;;
490 cr16)
491 basic_machine=cr16-unknown
492 os=-elf
493 ;;
494 crds | unos)
495 basic_machine=m68k-crds
496 ;;
497 crisv32 | crisv32-* | etraxfs*)
498 basic_machine=crisv32-axis
499 ;;
500 cris | cris-* | etrax*)
501 basic_machine=cris-axis
502 ;;
503 crx)
504 basic_machine=crx-unknown
505 os=-elf
506 ;;
507 da30 | da30-*)
508 basic_machine=m68k-da30
509 ;;
510 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
511 basic_machine=mips-dec
512 ;;
513 decsystem10* | dec10*)
514 basic_machine=pdp10-dec
515 os=-tops10
516 ;;
517 decsystem20* | dec20*)
518 basic_machine=pdp10-dec
519 os=-tops20
520 ;;
521 delta | 3300 | motorola-3300 | motorola-delta \
522 | 3300-motorola | delta-motorola)
523 basic_machine=m68k-motorola
524 ;;
525 delta88)
526 basic_machine=m88k-motorola
527 os=-sysv3
528 ;;
529 djgpp)
530 basic_machine=i586-pc
531 os=-msdosdjgpp
532 ;;
533 dpx20 | dpx20-*)
534 basic_machine=rs6000-bull
535 os=-bosx
536 ;;
537 dpx2* | dpx2*-bull)
538 basic_machine=m68k-bull
539 os=-sysv3
540 ;;
541 ebmon29k)
542 basic_machine=a29k-amd
543 os=-ebmon
544 ;;
545 elxsi)
546 basic_machine=elxsi-elxsi
547 os=-bsd
548 ;;
549 encore | umax | mmax)
550 basic_machine=ns32k-encore
551 ;;
552 es1800 | OSE68k | ose68k | ose | OSE)
553 basic_machine=m68k-ericsson
554 os=-ose
555 ;;
556 fx2800)
557 basic_machine=i860-alliant
558 ;;
559 genix)
560 basic_machine=ns32k-ns
561 ;;
562 gmicro)
563 basic_machine=tron-gmicro
564 os=-sysv
565 ;;
566 go32)
567 basic_machine=i386-pc
568 os=-go32
569 ;;
570 h3050r* | hiux*)
571 basic_machine=hppa1.1-hitachi
572 os=-hiuxwe2
573 ;;
574 h8300hms)
575 basic_machine=h8300-hitachi
576 os=-hms
577 ;;
578 h8300xray)
579 basic_machine=h8300-hitachi
580 os=-xray
581 ;;
582 h8500hms)
583 basic_machine=h8500-hitachi
584 os=-hms
585 ;;
586 harris)
587 basic_machine=m88k-harris
588 os=-sysv3
589 ;;
590 hp300-*)
591 basic_machine=m68k-hp
592 ;;
593 hp300bsd)
594 basic_machine=m68k-hp
595 os=-bsd
596 ;;
597 hp300hpux)
598 basic_machine=m68k-hp
599 os=-hpux
600 ;;
601 hp3k9[0-9][0-9] | hp9[0-9][0-9])
602 basic_machine=hppa1.0-hp
603 ;;
604 hp9k2[0-9][0-9] | hp9k31[0-9])
605 basic_machine=m68000-hp
606 ;;
607 hp9k3[2-9][0-9])
608 basic_machine=m68k-hp
609 ;;
610 hp9k6[0-9][0-9] | hp6[0-9][0-9])
611 basic_machine=hppa1.0-hp
612 ;;
613 hp9k7[0-79][0-9] | hp7[0-79][0-9])
614 basic_machine=hppa1.1-hp
615 ;;
616 hp9k78[0-9] | hp78[0-9])
617 # FIXME: really hppa2.0-hp
618 basic_machine=hppa1.1-hp
619 ;;
620 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
621 # FIXME: really hppa2.0-hp
622 basic_machine=hppa1.1-hp
623 ;;
624 hp9k8[0-9][13679] | hp8[0-9][13679])
625 basic_machine=hppa1.1-hp
626 ;;
627 hp9k8[0-9][0-9] | hp8[0-9][0-9])
628 basic_machine=hppa1.0-hp
629 ;;
630 hppa-next)
631 os=-nextstep3
632 ;;
633 hppaosf)
634 basic_machine=hppa1.1-hp
635 os=-osf
636 ;;
637 hppro)
638 basic_machine=hppa1.1-hp
639 os=-proelf
640 ;;
641 i370-ibm* | ibm*)
642 basic_machine=i370-ibm
643 ;;
644# I'm not sure what "Sysv32" means. Should this be sysv3.2?
645 i*86v32)
646 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
647 os=-sysv32
648 ;;
649 i*86v4*)
650 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
651 os=-sysv4
652 ;;
653 i*86v)
654 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
655 os=-sysv
656 ;;
657 i*86sol2)
658 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
659 os=-solaris2
660 ;;
661 i386mach)
662 basic_machine=i386-mach
663 os=-mach
664 ;;
665 i386-vsta | vsta)
666 basic_machine=i386-unknown
667 os=-vsta
668 ;;
669 iris | iris4d)
670 basic_machine=mips-sgi
671 case $os in
672 -irix*)
673 ;;
674 *)
675 os=-irix4
676 ;;
677 esac
678 ;;
679 isi68 | isi)
680 basic_machine=m68k-isi
681 os=-sysv
682 ;;
683 m68knommu)
684 basic_machine=m68k-unknown
685 os=-linux
686 ;;
687 m68knommu-*)
688 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
689 os=-linux
690 ;;
691 m88k-omron*)
692 basic_machine=m88k-omron
693 ;;
694 magnum | m3230)
695 basic_machine=mips-mips
696 os=-sysv
697 ;;
698 merlin)
699 basic_machine=ns32k-utek
700 os=-sysv
701 ;;
702 mingw32)
703 basic_machine=i386-pc
704 os=-mingw32
705 ;;
706 mingw32ce)
707 basic_machine=arm-unknown
708 os=-mingw32ce
709 ;;
710 miniframe)
711 basic_machine=m68000-convergent
712 ;;
713 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
714 basic_machine=m68k-atari
715 os=-mint
716 ;;
717 mips3*-*)
718 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
719 ;;
720 mips3*)
721 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
722 ;;
723 monitor)
724 basic_machine=m68k-rom68k
725 os=-coff
726 ;;
727 morphos)
728 basic_machine=powerpc-unknown
729 os=-morphos
730 ;;
731 msdos)
732 basic_machine=i386-pc
733 os=-msdos
734 ;;
735 ms1-*)
736 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
737 ;;
738 mvs)
739 basic_machine=i370-ibm
740 os=-mvs
741 ;;
742 ncr3000)
743 basic_machine=i486-ncr
744 os=-sysv4
745 ;;
746 netbsd386)
747 basic_machine=i386-unknown
748 os=-netbsd
749 ;;
750 netwinder)
751 basic_machine=armv4l-rebel
752 os=-linux
753 ;;
754 news | news700 | news800 | news900)
755 basic_machine=m68k-sony
756 os=-newsos
757 ;;
758 news1000)
759 basic_machine=m68030-sony
760 os=-newsos
761 ;;
762 news-3600 | risc-news)
763 basic_machine=mips-sony
764 os=-newsos
765 ;;
766 necv70)
767 basic_machine=v70-nec
768 os=-sysv
769 ;;
770 next | m*-next )
771 basic_machine=m68k-next
772 case $os in
773 -nextstep* )
774 ;;
775 -ns2*)
776 os=-nextstep2
777 ;;
778 *)
779 os=-nextstep3
780 ;;
781 esac
782 ;;
783 nh3000)
784 basic_machine=m68k-harris
785 os=-cxux
786 ;;
787 nh[45]000)
788 basic_machine=m88k-harris
789 os=-cxux
790 ;;
791 nindy960)
792 basic_machine=i960-intel
793 os=-nindy
794 ;;
795 mon960)
796 basic_machine=i960-intel
797 os=-mon960
798 ;;
799 nonstopux)
800 basic_machine=mips-compaq
801 os=-nonstopux
802 ;;
803 np1)
804 basic_machine=np1-gould
805 ;;
806 nsr-tandem)
807 basic_machine=nsr-tandem
808 ;;
809 op50n-* | op60c-*)
810 basic_machine=hppa1.1-oki
811 os=-proelf
812 ;;
813 openrisc | openrisc-*)
814 basic_machine=or32-unknown
815 ;;
816 os400)
817 basic_machine=powerpc-ibm
818 os=-os400
819 ;;
820 OSE68000 | ose68000)
821 basic_machine=m68000-ericsson
822 os=-ose
823 ;;
824 os68k)
825 basic_machine=m68k-none
826 os=-os68k
827 ;;
828 pa-hitachi)
829 basic_machine=hppa1.1-hitachi
830 os=-hiuxwe2
831 ;;
832 paragon)
833 basic_machine=i860-intel
834 os=-osf
835 ;;
836 parisc)
837 basic_machine=hppa-unknown
838 os=-linux
839 ;;
840 parisc-*)
841 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
842 os=-linux
843 ;;
844 pbd)
845 basic_machine=sparc-tti
846 ;;
847 pbb)
848 basic_machine=m68k-tti
849 ;;
850 pc532 | pc532-*)
851 basic_machine=ns32k-pc532
852 ;;
853 pc98)
854 basic_machine=i386-pc
855 ;;
856 pc98-*)
857 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
858 ;;
859 pentium | p5 | k5 | k6 | nexgen | viac3)
860 basic_machine=i586-pc
861 ;;
862 pentiumpro | p6 | 6x86 | athlon | athlon_*)
863 basic_machine=i686-pc
864 ;;
865 pentiumii | pentium2 | pentiumiii | pentium3)
866 basic_machine=i686-pc
867 ;;
868 pentium4)
869 basic_machine=i786-pc
870 ;;
871 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
872 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
873 ;;
874 pentiumpro-* | p6-* | 6x86-* | athlon-*)
875 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
876 ;;
877 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
878 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
879 ;;
880 pentium4-*)
881 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
882 ;;
883 pn)
884 basic_machine=pn-gould
885 ;;
886 power) basic_machine=power-ibm
887 ;;
888 ppc) basic_machine=powerpc-unknown
889 ;;
890 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
891 ;;
892 ppcle | powerpclittle | ppc-le | powerpc-little)
893 basic_machine=powerpcle-unknown
894 ;;
895 ppcle-* | powerpclittle-*)
896 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
897 ;;
898 ppc64) basic_machine=powerpc64-unknown
899 ;;
900 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
901 ;;
902 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
903 basic_machine=powerpc64le-unknown
904 ;;
905 ppc64le-* | powerpc64little-*)
906 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
907 ;;
908 ps2)
909 basic_machine=i386-ibm
910 ;;
911 pw32)
912 basic_machine=i586-unknown
913 os=-pw32
914 ;;
915 rdos)
916 basic_machine=i386-pc
917 os=-rdos
918 ;;
919 rom68k)
920 basic_machine=m68k-rom68k
921 os=-coff
922 ;;
923 rm[46]00)
924 basic_machine=mips-siemens
925 ;;
926 rtpc | rtpc-*)
927 basic_machine=romp-ibm
928 ;;
929 s390 | s390-*)
930 basic_machine=s390-ibm
931 ;;
932 s390x | s390x-*)
933 basic_machine=s390x-ibm
934 ;;
935 sa29200)
936 basic_machine=a29k-amd
937 os=-udi
938 ;;
939 sb1)
940 basic_machine=mipsisa64sb1-unknown
941 ;;
942 sb1el)
943 basic_machine=mipsisa64sb1el-unknown
944 ;;
945 sde)
946 basic_machine=mipsisa32-sde
947 os=-elf
948 ;;
949 sei)
950 basic_machine=mips-sei
951 os=-seiux
952 ;;
953 sequent)
954 basic_machine=i386-sequent
955 ;;
956 sh)
957 basic_machine=sh-hitachi
958 os=-hms
959 ;;
960 sh5el)
961 basic_machine=sh5le-unknown
962 ;;
963 sh64)
964 basic_machine=sh64-unknown
965 ;;
966 sparclite-wrs | simso-wrs)
967 basic_machine=sparclite-wrs
968 os=-vxworks
969 ;;
970 sps7)
971 basic_machine=m68k-bull
972 os=-sysv2
973 ;;
974 spur)
975 basic_machine=spur-unknown
976 ;;
977 st2000)
978 basic_machine=m68k-tandem
979 ;;
980 stratus)
981 basic_machine=i860-stratus
982 os=-sysv4
983 ;;
984 sun2)
985 basic_machine=m68000-sun
986 ;;
987 sun2os3)
988 basic_machine=m68000-sun
989 os=-sunos3
990 ;;
991 sun2os4)
992 basic_machine=m68000-sun
993 os=-sunos4
994 ;;
995 sun3os3)
996 basic_machine=m68k-sun
997 os=-sunos3
998 ;;
999 sun3os4)
1000 basic_machine=m68k-sun
1001 os=-sunos4
1002 ;;
1003 sun4os3)
1004 basic_machine=sparc-sun
1005 os=-sunos3
1006 ;;
1007 sun4os4)
1008 basic_machine=sparc-sun
1009 os=-sunos4
1010 ;;
1011 sun4sol2)
1012 basic_machine=sparc-sun
1013 os=-solaris2
1014 ;;
1015 sun3 | sun3-*)
1016 basic_machine=m68k-sun
1017 ;;
1018 sun4)
1019 basic_machine=sparc-sun
1020 ;;
1021 sun386 | sun386i | roadrunner)
1022 basic_machine=i386-sun
1023 ;;
1024 sv1)
1025 basic_machine=sv1-cray
1026 os=-unicos
1027 ;;
1028 symmetry)
1029 basic_machine=i386-sequent
1030 os=-dynix
1031 ;;
1032 t3e)
1033 basic_machine=alphaev5-cray
1034 os=-unicos
1035 ;;
1036 t90)
1037 basic_machine=t90-cray
1038 os=-unicos
1039 ;;
1040 tic54x | c54x*)
1041 basic_machine=tic54x-unknown
1042 os=-coff
1043 ;;
1044 tic55x | c55x*)
1045 basic_machine=tic55x-unknown
1046 os=-coff
1047 ;;
1048 tic6x | c6x*)
1049 basic_machine=tic6x-unknown
1050 os=-coff
1051 ;;
1052 tile*)
1053 basic_machine=tile-unknown
1054 os=-linux-gnu
1055 ;;
1056 tx39)
1057 basic_machine=mipstx39-unknown
1058 ;;
1059 tx39el)
1060 basic_machine=mipstx39el-unknown
1061 ;;
1062 toad1)
1063 basic_machine=pdp10-xkl
1064 os=-tops20
1065 ;;
1066 tower | tower-32)
1067 basic_machine=m68k-ncr
1068 ;;
1069 tpf)
1070 basic_machine=s390x-ibm
1071 os=-tpf
1072 ;;
1073 udi29k)
1074 basic_machine=a29k-amd
1075 os=-udi
1076 ;;
1077 ultra3)
1078 basic_machine=a29k-nyu
1079 os=-sym1
1080 ;;
1081 v810 | necv810)
1082 basic_machine=v810-nec
1083 os=-none
1084 ;;
1085 vaxv)
1086 basic_machine=vax-dec
1087 os=-sysv
1088 ;;
1089 vms)
1090 basic_machine=vax-dec
1091 os=-vms
1092 ;;
1093 vpp*|vx|vx-*)
1094 basic_machine=f301-fujitsu
1095 ;;
1096 vxworks960)
1097 basic_machine=i960-wrs
1098 os=-vxworks
1099 ;;
1100 vxworks68)
1101 basic_machine=m68k-wrs
1102 os=-vxworks
1103 ;;
1104 vxworks29k)
1105 basic_machine=a29k-wrs
1106 os=-vxworks
1107 ;;
1108 w65*)
1109 basic_machine=w65-wdc
1110 os=-none
1111 ;;
1112 w89k-*)
1113 basic_machine=hppa1.1-winbond
1114 os=-proelf
1115 ;;
1116 xbox)
1117 basic_machine=i686-pc
1118 os=-mingw32
1119 ;;
1120 xps | xps100)
1121 basic_machine=xps100-honeywell
1122 ;;
1123 ymp)
1124 basic_machine=ymp-cray
1125 os=-unicos
1126 ;;
1127 z8k-*-coff)
1128 basic_machine=z8k-unknown
1129 os=-sim
1130 ;;
1131 none)
1132 basic_machine=none-none
1133 os=-none
1134 ;;
1135
1136# Here we handle the default manufacturer of certain CPU types. It is in
1137# some cases the only manufacturer, in others, it is the most popular.
1138 w89k)
1139 basic_machine=hppa1.1-winbond
1140 ;;
1141 op50n)
1142 basic_machine=hppa1.1-oki
1143 ;;
1144 op60c)
1145 basic_machine=hppa1.1-oki
1146 ;;
1147 romp)
1148 basic_machine=romp-ibm
1149 ;;
1150 mmix)
1151 basic_machine=mmix-knuth
1152 ;;
1153 rs6000)
1154 basic_machine=rs6000-ibm
1155 ;;
1156 vax)
1157 basic_machine=vax-dec
1158 ;;
1159 pdp10)
1160 # there are many clones, so DEC is not a safe bet
1161 basic_machine=pdp10-unknown
1162 ;;
1163 pdp11)
1164 basic_machine=pdp11-dec
1165 ;;
1166 we32k)
1167 basic_machine=we32k-att
1168 ;;
1169 sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1170 basic_machine=sh-unknown
1171 ;;
1172 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1173 basic_machine=sparc-sun
1174 ;;
1175 cydra)
1176 basic_machine=cydra-cydrome
1177 ;;
1178 orion)
1179 basic_machine=orion-highlevel
1180 ;;
1181 orion105)
1182 basic_machine=clipper-highlevel
1183 ;;
1184 mac | mpw | mac-mpw)
1185 basic_machine=m68k-apple
1186 ;;
1187 pmac | pmac-mpw)
1188 basic_machine=powerpc-apple
1189 ;;
1190 *-unknown)
1191 # Make sure to match an already-canonicalized machine name.
1192 ;;
1193 *)
1194 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1195 exit 1
1196 ;;
1197esac
1198
1199# Here we canonicalize certain aliases for manufacturers.
1200case $basic_machine in
1201 *-digital*)
1202 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1203 ;;
1204 *-commodore*)
1205 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1206 ;;
1207 *)
1208 ;;
1209esac
1210
1211# Decode manufacturer-specific aliases for certain operating systems.
1212
1213if [ x"$os" != x"" ]
1214then
1215case $os in
1216 # First match some system type aliases
1217 # that might get confused with valid system types.
1218 # -solaris* is a basic system type, with this one exception.
1219 -solaris1 | -solaris1.*)
1220 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1221 ;;
1222 -solaris)
1223 os=-solaris2
1224 ;;
1225 -svr4*)
1226 os=-sysv4
1227 ;;
1228 -unixware*)
1229 os=-sysv4.2uw
1230 ;;
1231 -gnu/linux*)
1232 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1233 ;;
1234 # First accept the basic system types.
1235 # The portable systems comes first.
1236 # Each alternative MUST END IN A *, to match a version number.
1237 # -sysv* is not here because it comes later, after sysvr4.
1238 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1239 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1240 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1241 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1242 | -aos* \
1243 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1244 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1245 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1246 | -openbsd* | -solidbsd* \
1247 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1248 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1249 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1250 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1251 | -chorusos* | -chorusrdb* \
1252 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1253 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1254 | -uxpv* | -beos* | -mpeix* | -udk* \
1255 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1256 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1257 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1258 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1259 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1260 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1261 | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
1262 # Remember, each alternative MUST END IN *, to match a version number.
1263 ;;
1264 -qnx*)
1265 case $basic_machine in
1266 x86-* | i*86-*)
1267 ;;
1268 *)
1269 os=-nto$os
1270 ;;
1271 esac
1272 ;;
1273 -nto-qnx*)
1274 ;;
1275 -nto*)
1276 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1277 ;;
1278 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1279 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1280 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1281 ;;
1282 -mac*)
1283 os=`echo $os | sed -e 's|mac|macos|'`
1284 ;;
1285 -linux-dietlibc)
1286 os=-linux-dietlibc
1287 ;;
1288 -linux*)
1289 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1290 ;;
1291 -sunos5*)
1292 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1293 ;;
1294 -sunos6*)
1295 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1296 ;;
1297 -opened*)
1298 os=-openedition
1299 ;;
1300 -os400*)
1301 os=-os400
1302 ;;
1303 -wince*)
1304 os=-wince
1305 ;;
1306 -osfrose*)
1307 os=-osfrose
1308 ;;
1309 -osf*)
1310 os=-osf
1311 ;;
1312 -utek*)
1313 os=-bsd
1314 ;;
1315 -dynix*)
1316 os=-bsd
1317 ;;
1318 -acis*)
1319 os=-aos
1320 ;;
1321 -atheos*)
1322 os=-atheos
1323 ;;
1324 -syllable*)
1325 os=-syllable
1326 ;;
1327 -386bsd)
1328 os=-bsd
1329 ;;
1330 -ctix* | -uts*)
1331 os=-sysv
1332 ;;
1333 -nova*)
1334 os=-rtmk-nova
1335 ;;
1336 -ns2 )
1337 os=-nextstep2
1338 ;;
1339 -nsk*)
1340 os=-nsk
1341 ;;
1342 # Preserve the version number of sinix5.
1343 -sinix5.*)
1344 os=`echo $os | sed -e 's|sinix|sysv|'`
1345 ;;
1346 -sinix*)
1347 os=-sysv4
1348 ;;
1349 -tpf*)
1350 os=-tpf
1351 ;;
1352 -triton*)
1353 os=-sysv3
1354 ;;
1355 -oss*)
1356 os=-sysv3
1357 ;;
1358 -svr4)
1359 os=-sysv4
1360 ;;
1361 -svr3)
1362 os=-sysv3
1363 ;;
1364 -sysvr4)
1365 os=-sysv4
1366 ;;
1367 # This must come after -sysvr4.
1368 -sysv*)
1369 ;;
1370 -ose*)
1371 os=-ose
1372 ;;
1373 -es1800*)
1374 os=-ose
1375 ;;
1376 -xenix)
1377 os=-xenix
1378 ;;
1379 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1380 os=-mint
1381 ;;
1382 -aros*)
1383 os=-aros
1384 ;;
1385 -kaos*)
1386 os=-kaos
1387 ;;
1388 -zvmoe)
1389 os=-zvmoe
1390 ;;
1391 -none)
1392 ;;
1393 *)
1394 # Get rid of the `-' at the beginning of $os.
1395 os=`echo $os | sed 's/[^-]*-//'`
1396 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1397 exit 1
1398 ;;
1399esac
1400else
1401
1402# Here we handle the default operating systems that come with various machines.
1403# The value should be what the vendor currently ships out the door with their
1404# machine or put another way, the most popular os provided with the machine.
1405
1406# Note that if you're going to try to match "-MANUFACTURER" here (say,
1407# "-sun"), then you have to tell the case statement up towards the top
1408# that MANUFACTURER isn't an operating system. Otherwise, code above
1409# will signal an error saying that MANUFACTURER isn't an operating
1410# system, and we'll never get to this point.
1411
1412case $basic_machine in
1413 score-*)
1414 os=-elf
1415 ;;
1416 spu-*)
1417 os=-elf
1418 ;;
1419 *-acorn)
1420 os=-riscix1.2
1421 ;;
1422 arm*-rebel)
1423 os=-linux
1424 ;;
1425 arm*-semi)
1426 os=-aout
1427 ;;
1428 c4x-* | tic4x-*)
1429 os=-coff
1430 ;;
1431 # This must come before the *-dec entry.
1432 pdp10-*)
1433 os=-tops20
1434 ;;
1435 pdp11-*)
1436 os=-none
1437 ;;
1438 *-dec | vax-*)
1439 os=-ultrix4.2
1440 ;;
1441 m68*-apollo)
1442 os=-domain
1443 ;;
1444 i386-sun)
1445 os=-sunos4.0.2
1446 ;;
1447 m68000-sun)
1448 os=-sunos3
1449 # This also exists in the configure program, but was not the
1450 # default.
1451 # os=-sunos4
1452 ;;
1453 m68*-cisco)
1454 os=-aout
1455 ;;
1456 mep-*)
1457 os=-elf
1458 ;;
1459 mips*-cisco)
1460 os=-elf
1461 ;;
1462 mips*-*)
1463 os=-elf
1464 ;;
1465 or32-*)
1466 os=-coff
1467 ;;
1468 *-tti) # must be before sparc entry or we get the wrong os.
1469 os=-sysv3
1470 ;;
1471 sparc-* | *-sun)
1472 os=-sunos4.1.1
1473 ;;
1474 *-be)
1475 os=-beos
1476 ;;
1477 *-haiku)
1478 os=-haiku
1479 ;;
1480 *-ibm)
1481 os=-aix
1482 ;;
1483 *-knuth)
1484 os=-mmixware
1485 ;;
1486 *-wec)
1487 os=-proelf
1488 ;;
1489 *-winbond)
1490 os=-proelf
1491 ;;
1492 *-oki)
1493 os=-proelf
1494 ;;
1495 *-hp)
1496 os=-hpux
1497 ;;
1498 *-hitachi)
1499 os=-hiux
1500 ;;
1501 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1502 os=-sysv
1503 ;;
1504 *-cbm)
1505 os=-amigaos
1506 ;;
1507 *-dg)
1508 os=-dgux
1509 ;;
1510 *-dolphin)
1511 os=-sysv3
1512 ;;
1513 m68k-ccur)
1514 os=-rtu
1515 ;;
1516 m88k-omron*)
1517 os=-luna
1518 ;;
1519 *-next )
1520 os=-nextstep
1521 ;;
1522 *-sequent)
1523 os=-ptx
1524 ;;
1525 *-crds)
1526 os=-unos
1527 ;;
1528 *-ns)
1529 os=-genix
1530 ;;
1531 i370-*)
1532 os=-mvs
1533 ;;
1534 *-next)
1535 os=-nextstep3
1536 ;;
1537 *-gould)
1538 os=-sysv
1539 ;;
1540 *-highlevel)
1541 os=-bsd
1542 ;;
1543 *-encore)
1544 os=-bsd
1545 ;;
1546 *-sgi)
1547 os=-irix
1548 ;;
1549 *-siemens)
1550 os=-sysv4
1551 ;;
1552 *-masscomp)
1553 os=-rtu
1554 ;;
1555 f30[01]-fujitsu | f700-fujitsu)
1556 os=-uxpv
1557 ;;
1558 *-rom68k)
1559 os=-coff
1560 ;;
1561 *-*bug)
1562 os=-coff
1563 ;;
1564 *-apple)
1565 os=-macos
1566 ;;
1567 *-atari*)
1568 os=-mint
1569 ;;
1570 *)
1571 os=-none
1572 ;;
1573esac
1574fi
1575
1576# Here we handle the case where we know the os, and the CPU type, but not the
1577# manufacturer. We pick the logical manufacturer.
1578vendor=unknown
1579case $basic_machine in
1580 *-unknown)
1581 case $os in
1582 -riscix*)
1583 vendor=acorn
1584 ;;
1585 -sunos*)
1586 vendor=sun
1587 ;;
1588 -aix*)
1589 vendor=ibm
1590 ;;
1591 -beos*)
1592 vendor=be
1593 ;;
1594 -hpux*)
1595 vendor=hp
1596 ;;
1597 -mpeix*)
1598 vendor=hp
1599 ;;
1600 -hiux*)
1601 vendor=hitachi
1602 ;;
1603 -unos*)
1604 vendor=crds
1605 ;;
1606 -dgux*)
1607 vendor=dg
1608 ;;
1609 -luna*)
1610 vendor=omron
1611 ;;
1612 -genix*)
1613 vendor=ns
1614 ;;
1615 -mvs* | -opened*)
1616 vendor=ibm
1617 ;;
1618 -os400*)
1619 vendor=ibm
1620 ;;
1621 -ptx*)
1622 vendor=sequent
1623 ;;
1624 -tpf*)
1625 vendor=ibm
1626 ;;
1627 -vxsim* | -vxworks* | -windiss*)
1628 vendor=wrs
1629 ;;
1630 -aux*)
1631 vendor=apple
1632 ;;
1633 -hms*)
1634 vendor=hitachi
1635 ;;
1636 -mpw* | -macos*)
1637 vendor=apple
1638 ;;
1639 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1640 vendor=atari
1641 ;;
1642 -vos*)
1643 vendor=stratus
1644 ;;
1645 esac
1646 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1647 ;;
1648esac
1649
1650echo $basic_machine$os
1651exit
1652
1653# Local variables:
1654# eval: (add-hook 'write-file-hooks 'time-stamp)
1655# time-stamp-start: "timestamp='"
1656# time-stamp-format: "%:y-%02m-%02d"
1657# time-stamp-end: "'"
1658# End:
diff --git a/src/others/mimesh/libg3d-0.0.8/config/depcomp b/src/others/mimesh/libg3d-0.0.8/config/depcomp
new file mode 100755
index 0000000..e5f9736
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/config/depcomp
@@ -0,0 +1,589 @@
1#! /bin/sh
2# depcomp - compile a program generating dependencies as side-effects
3
4scriptversion=2007-03-29.01
5
6# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007 Free Software
7# Foundation, Inc.
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, or (at your option)
12# 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., 51 Franklin Street, Fifth Floor, Boston, MA
22# 02110-1301, USA.
23
24# As a special exception to the GNU General Public License, if you
25# distribute this file as part of a program that contains a
26# configuration script generated by Autoconf, you may include it under
27# the same distribution terms that you use for the rest of that program.
28
29# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
30
31case $1 in
32 '')
33 echo "$0: No command. Try \`$0 --help' for more information." 1>&2
34 exit 1;
35 ;;
36 -h | --h*)
37 cat <<\EOF
38Usage: depcomp [--help] [--version] PROGRAM [ARGS]
39
40Run PROGRAMS ARGS to compile a file, generating dependencies
41as side-effects.
42
43Environment variables:
44 depmode Dependency tracking mode.
45 source Source file read by `PROGRAMS ARGS'.
46 object Object file output by `PROGRAMS ARGS'.
47 DEPDIR directory where to store dependencies.
48 depfile Dependency file to output.
49 tmpdepfile Temporary file to use when outputing dependencies.
50 libtool Whether libtool is used (yes/no).
51
52Report bugs to <bug-automake@gnu.org>.
53EOF
54 exit $?
55 ;;
56 -v | --v*)
57 echo "depcomp $scriptversion"
58 exit $?
59 ;;
60esac
61
62if test -z "$depmode" || test -z "$source" || test -z "$object"; then
63 echo "depcomp: Variables source, object and depmode must be set" 1>&2
64 exit 1
65fi
66
67# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
68depfile=${depfile-`echo "$object" |
69 sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
70tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
71
72rm -f "$tmpdepfile"
73
74# Some modes work just like other modes, but use different flags. We
75# parameterize here, but still list the modes in the big case below,
76# to make depend.m4 easier to write. Note that we *cannot* use a case
77# here, because this file can only contain one case statement.
78if test "$depmode" = hp; then
79 # HP compiler uses -M and no extra arg.
80 gccflag=-M
81 depmode=gcc
82fi
83
84if test "$depmode" = dashXmstdout; then
85 # This is just like dashmstdout with a different argument.
86 dashmflag=-xM
87 depmode=dashmstdout
88fi
89
90case "$depmode" in
91gcc3)
92## gcc 3 implements dependency tracking that does exactly what
93## we want. Yay! Note: for some reason libtool 1.4 doesn't like
94## it if -MD -MP comes after the -MF stuff. Hmm.
95## Unfortunately, FreeBSD c89 acceptance of flags depends upon
96## the command line argument order; so add the flags where they
97## appear in depend2.am. Note that the slowdown incurred here
98## affects only configure: in makefiles, %FASTDEP% shortcuts this.
99 for arg
100 do
101 case $arg in
102 -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
103 *) set fnord "$@" "$arg" ;;
104 esac
105 shift # fnord
106 shift # $arg
107 done
108 "$@"
109 stat=$?
110 if test $stat -eq 0; then :
111 else
112 rm -f "$tmpdepfile"
113 exit $stat
114 fi
115 mv "$tmpdepfile" "$depfile"
116 ;;
117
118gcc)
119## There are various ways to get dependency output from gcc. Here's
120## why we pick this rather obscure method:
121## - Don't want to use -MD because we'd like the dependencies to end
122## up in a subdir. Having to rename by hand is ugly.
123## (We might end up doing this anyway to support other compilers.)
124## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
125## -MM, not -M (despite what the docs say).
126## - Using -M directly means running the compiler twice (even worse
127## than renaming).
128 if test -z "$gccflag"; then
129 gccflag=-MD,
130 fi
131 "$@" -Wp,"$gccflag$tmpdepfile"
132 stat=$?
133 if test $stat -eq 0; then :
134 else
135 rm -f "$tmpdepfile"
136 exit $stat
137 fi
138 rm -f "$depfile"
139 echo "$object : \\" > "$depfile"
140 alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
141## The second -e expression handles DOS-style file names with drive letters.
142 sed -e 's/^[^:]*: / /' \
143 -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
144## This next piece of magic avoids the `deleted header file' problem.
145## The problem is that when a header file which appears in a .P file
146## is deleted, the dependency causes make to die (because there is
147## typically no way to rebuild the header). We avoid this by adding
148## dummy dependencies for each header file. Too bad gcc doesn't do
149## this for us directly.
150 tr ' ' '
151' < "$tmpdepfile" |
152## Some versions of gcc put a space before the `:'. On the theory
153## that the space means something, we add a space to the output as
154## well.
155## Some versions of the HPUX 10.20 sed can't process this invocation
156## correctly. Breaking it into two sed invocations is a workaround.
157 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
158 rm -f "$tmpdepfile"
159 ;;
160
161hp)
162 # This case exists only to let depend.m4 do its work. It works by
163 # looking at the text of this script. This case will never be run,
164 # since it is checked for above.
165 exit 1
166 ;;
167
168sgi)
169 if test "$libtool" = yes; then
170 "$@" "-Wp,-MDupdate,$tmpdepfile"
171 else
172 "$@" -MDupdate "$tmpdepfile"
173 fi
174 stat=$?
175 if test $stat -eq 0; then :
176 else
177 rm -f "$tmpdepfile"
178 exit $stat
179 fi
180 rm -f "$depfile"
181
182 if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
183 echo "$object : \\" > "$depfile"
184
185 # Clip off the initial element (the dependent). Don't try to be
186 # clever and replace this with sed code, as IRIX sed won't handle
187 # lines with more than a fixed number of characters (4096 in
188 # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
189 # the IRIX cc adds comments like `#:fec' to the end of the
190 # dependency line.
191 tr ' ' '
192' < "$tmpdepfile" \
193 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
194 tr '
195' ' ' >> $depfile
196 echo >> $depfile
197
198 # The second pass generates a dummy entry for each header file.
199 tr ' ' '
200' < "$tmpdepfile" \
201 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
202 >> $depfile
203 else
204 # The sourcefile does not contain any dependencies, so just
205 # store a dummy comment line, to avoid errors with the Makefile
206 # "include basename.Plo" scheme.
207 echo "#dummy" > "$depfile"
208 fi
209 rm -f "$tmpdepfile"
210 ;;
211
212aix)
213 # The C for AIX Compiler uses -M and outputs the dependencies
214 # in a .u file. In older versions, this file always lives in the
215 # current directory. Also, the AIX compiler puts `$object:' at the
216 # start of each line; $object doesn't have directory information.
217 # Version 6 uses the directory in both cases.
218 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
219 test "x$dir" = "x$object" && dir=
220 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
221 if test "$libtool" = yes; then
222 tmpdepfile1=$dir$base.u
223 tmpdepfile2=$base.u
224 tmpdepfile3=$dir.libs/$base.u
225 "$@" -Wc,-M
226 else
227 tmpdepfile1=$dir$base.u
228 tmpdepfile2=$dir$base.u
229 tmpdepfile3=$dir$base.u
230 "$@" -M
231 fi
232 stat=$?
233
234 if test $stat -eq 0; then :
235 else
236 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
237 exit $stat
238 fi
239
240 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
241 do
242 test -f "$tmpdepfile" && break
243 done
244 if test -f "$tmpdepfile"; then
245 # Each line is of the form `foo.o: dependent.h'.
246 # Do two passes, one to just change these to
247 # `$object: dependent.h' and one to simply `dependent.h:'.
248 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
249 # That's a tab and a space in the [].
250 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
251 else
252 # The sourcefile does not contain any dependencies, so just
253 # store a dummy comment line, to avoid errors with the Makefile
254 # "include basename.Plo" scheme.
255 echo "#dummy" > "$depfile"
256 fi
257 rm -f "$tmpdepfile"
258 ;;
259
260icc)
261 # Intel's C compiler understands `-MD -MF file'. However on
262 # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
263 # ICC 7.0 will fill foo.d with something like
264 # foo.o: sub/foo.c
265 # foo.o: sub/foo.h
266 # which is wrong. We want:
267 # sub/foo.o: sub/foo.c
268 # sub/foo.o: sub/foo.h
269 # sub/foo.c:
270 # sub/foo.h:
271 # ICC 7.1 will output
272 # foo.o: sub/foo.c sub/foo.h
273 # and will wrap long lines using \ :
274 # foo.o: sub/foo.c ... \
275 # sub/foo.h ... \
276 # ...
277
278 "$@" -MD -MF "$tmpdepfile"
279 stat=$?
280 if test $stat -eq 0; then :
281 else
282 rm -f "$tmpdepfile"
283 exit $stat
284 fi
285 rm -f "$depfile"
286 # Each line is of the form `foo.o: dependent.h',
287 # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
288 # Do two passes, one to just change these to
289 # `$object: dependent.h' and one to simply `dependent.h:'.
290 sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
291 # Some versions of the HPUX 10.20 sed can't process this invocation
292 # correctly. Breaking it into two sed invocations is a workaround.
293 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
294 sed -e 's/$/ :/' >> "$depfile"
295 rm -f "$tmpdepfile"
296 ;;
297
298hp2)
299 # The "hp" stanza above does not work with aCC (C++) and HP's ia64
300 # compilers, which have integrated preprocessors. The correct option
301 # to use with these is +Maked; it writes dependencies to a file named
302 # 'foo.d', which lands next to the object file, wherever that
303 # happens to be.
304 # Much of this is similar to the tru64 case; see comments there.
305 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
306 test "x$dir" = "x$object" && dir=
307 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
308 if test "$libtool" = yes; then
309 tmpdepfile1=$dir$base.d
310 tmpdepfile2=$dir.libs/$base.d
311 "$@" -Wc,+Maked
312 else
313 tmpdepfile1=$dir$base.d
314 tmpdepfile2=$dir$base.d
315 "$@" +Maked
316 fi
317 stat=$?
318 if test $stat -eq 0; then :
319 else
320 rm -f "$tmpdepfile1" "$tmpdepfile2"
321 exit $stat
322 fi
323
324 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
325 do
326 test -f "$tmpdepfile" && break
327 done
328 if test -f "$tmpdepfile"; then
329 sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
330 # Add `dependent.h:' lines.
331 sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile"
332 else
333 echo "#dummy" > "$depfile"
334 fi
335 rm -f "$tmpdepfile" "$tmpdepfile2"
336 ;;
337
338tru64)
339 # The Tru64 compiler uses -MD to generate dependencies as a side
340 # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
341 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
342 # dependencies in `foo.d' instead, so we check for that too.
343 # Subdirectories are respected.
344 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
345 test "x$dir" = "x$object" && dir=
346 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
347
348 if test "$libtool" = yes; then
349 # With Tru64 cc, shared objects can also be used to make a
350 # static library. This mechanism is used in libtool 1.4 series to
351 # handle both shared and static libraries in a single compilation.
352 # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
353 #
354 # With libtool 1.5 this exception was removed, and libtool now
355 # generates 2 separate objects for the 2 libraries. These two
356 # compilations output dependencies in $dir.libs/$base.o.d and
357 # in $dir$base.o.d. We have to check for both files, because
358 # one of the two compilations can be disabled. We should prefer
359 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
360 # automatically cleaned when .libs/ is deleted, while ignoring
361 # the former would cause a distcleancheck panic.
362 tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
363 tmpdepfile2=$dir$base.o.d # libtool 1.5
364 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
365 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
366 "$@" -Wc,-MD
367 else
368 tmpdepfile1=$dir$base.o.d
369 tmpdepfile2=$dir$base.d
370 tmpdepfile3=$dir$base.d
371 tmpdepfile4=$dir$base.d
372 "$@" -MD
373 fi
374
375 stat=$?
376 if test $stat -eq 0; then :
377 else
378 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
379 exit $stat
380 fi
381
382 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
383 do
384 test -f "$tmpdepfile" && break
385 done
386 if test -f "$tmpdepfile"; then
387 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
388 # That's a tab and a space in the [].
389 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
390 else
391 echo "#dummy" > "$depfile"
392 fi
393 rm -f "$tmpdepfile"
394 ;;
395
396#nosideeffect)
397 # This comment above is used by automake to tell side-effect
398 # dependency tracking mechanisms from slower ones.
399
400dashmstdout)
401 # Important note: in order to support this mode, a compiler *must*
402 # always write the preprocessed file to stdout, regardless of -o.
403 "$@" || exit $?
404
405 # Remove the call to Libtool.
406 if test "$libtool" = yes; then
407 while test $1 != '--mode=compile'; do
408 shift
409 done
410 shift
411 fi
412
413 # Remove `-o $object'.
414 IFS=" "
415 for arg
416 do
417 case $arg in
418 -o)
419 shift
420 ;;
421 $object)
422 shift
423 ;;
424 *)
425 set fnord "$@" "$arg"
426 shift # fnord
427 shift # $arg
428 ;;
429 esac
430 done
431
432 test -z "$dashmflag" && dashmflag=-M
433 # Require at least two characters before searching for `:'
434 # in the target name. This is to cope with DOS-style filenames:
435 # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
436 "$@" $dashmflag |
437 sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
438 rm -f "$depfile"
439 cat < "$tmpdepfile" > "$depfile"
440 tr ' ' '
441' < "$tmpdepfile" | \
442## Some versions of the HPUX 10.20 sed can't process this invocation
443## correctly. Breaking it into two sed invocations is a workaround.
444 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
445 rm -f "$tmpdepfile"
446 ;;
447
448dashXmstdout)
449 # This case only exists to satisfy depend.m4. It is never actually
450 # run, as this mode is specially recognized in the preamble.
451 exit 1
452 ;;
453
454makedepend)
455 "$@" || exit $?
456 # Remove any Libtool call
457 if test "$libtool" = yes; then
458 while test $1 != '--mode=compile'; do
459 shift
460 done
461 shift
462 fi
463 # X makedepend
464 shift
465 cleared=no
466 for arg in "$@"; do
467 case $cleared in
468 no)
469 set ""; shift
470 cleared=yes ;;
471 esac
472 case "$arg" in
473 -D*|-I*)
474 set fnord "$@" "$arg"; shift ;;
475 # Strip any option that makedepend may not understand. Remove
476 # the object too, otherwise makedepend will parse it as a source file.
477 -*|$object)
478 ;;
479 *)
480 set fnord "$@" "$arg"; shift ;;
481 esac
482 done
483 obj_suffix="`echo $object | sed 's/^.*\././'`"
484 touch "$tmpdepfile"
485 ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
486 rm -f "$depfile"
487 cat < "$tmpdepfile" > "$depfile"
488 sed '1,2d' "$tmpdepfile" | tr ' ' '
489' | \
490## Some versions of the HPUX 10.20 sed can't process this invocation
491## correctly. Breaking it into two sed invocations is a workaround.
492 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
493 rm -f "$tmpdepfile" "$tmpdepfile".bak
494 ;;
495
496cpp)
497 # Important note: in order to support this mode, a compiler *must*
498 # always write the preprocessed file to stdout.
499 "$@" || exit $?
500
501 # Remove the call to Libtool.
502 if test "$libtool" = yes; then
503 while test $1 != '--mode=compile'; do
504 shift
505 done
506 shift
507 fi
508
509 # Remove `-o $object'.
510 IFS=" "
511 for arg
512 do
513 case $arg in
514 -o)
515 shift
516 ;;
517 $object)
518 shift
519 ;;
520 *)
521 set fnord "$@" "$arg"
522 shift # fnord
523 shift # $arg
524 ;;
525 esac
526 done
527
528 "$@" -E |
529 sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
530 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
531 sed '$ s: \\$::' > "$tmpdepfile"
532 rm -f "$depfile"
533 echo "$object : \\" > "$depfile"
534 cat < "$tmpdepfile" >> "$depfile"
535 sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
536 rm -f "$tmpdepfile"
537 ;;
538
539msvisualcpp)
540 # Important note: in order to support this mode, a compiler *must*
541 # always write the preprocessed file to stdout, regardless of -o,
542 # because we must use -o when running libtool.
543 "$@" || exit $?
544 IFS=" "
545 for arg
546 do
547 case "$arg" in
548 "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
549 set fnord "$@"
550 shift
551 shift
552 ;;
553 *)
554 set fnord "$@" "$arg"
555 shift
556 shift
557 ;;
558 esac
559 done
560 "$@" -E |
561 sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
562 rm -f "$depfile"
563 echo "$object : \\" > "$depfile"
564 . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
565 echo " " >> "$depfile"
566 . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
567 rm -f "$tmpdepfile"
568 ;;
569
570none)
571 exec "$@"
572 ;;
573
574*)
575 echo "Unknown depmode $depmode" 1>&2
576 exit 1
577 ;;
578esac
579
580exit 0
581
582# Local Variables:
583# mode: shell-script
584# sh-indentation: 2
585# eval: (add-hook 'write-file-hooks 'time-stamp)
586# time-stamp-start: "scriptversion="
587# time-stamp-format: "%:y-%02m-%02d.%02H"
588# time-stamp-end: "$"
589# End:
diff --git a/src/others/mimesh/libg3d-0.0.8/config/install-sh b/src/others/mimesh/libg3d-0.0.8/config/install-sh
new file mode 100755
index 0000000..a5897de
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/config/install-sh
@@ -0,0 +1,519 @@
1#!/bin/sh
2# install - install a program, script, or datafile
3
4scriptversion=2006-12-25.00
5
6# This originates from X11R5 (mit/util/scripts/install.sh), which was
7# later released in X11R6 (xc/config/util/install.sh) with the
8# following copyright and license.
9#
10# Copyright (C) 1994 X Consortium
11#
12# Permission is hereby granted, free of charge, to any person obtaining a copy
13# of this software and associated documentation files (the "Software"), to
14# deal in the Software without restriction, including without limitation the
15# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
16# sell copies of the Software, and to permit persons to whom the Software is
17# furnished to do so, subject to the following conditions:
18#
19# The above copyright notice and this permission notice shall be included in
20# all copies or substantial portions of the Software.
21#
22# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
26# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
27# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28#
29# Except as contained in this notice, the name of the X Consortium shall not
30# be used in advertising or otherwise to promote the sale, use or other deal-
31# ings in this Software without prior written authorization from the X Consor-
32# tium.
33#
34#
35# FSF changes to this file are in the public domain.
36#
37# Calling this script install-sh is preferred over install.sh, to prevent
38# `make' implicit rules from creating a file called install from it
39# when there is no Makefile.
40#
41# This script is compatible with the BSD install script, but was written
42# from scratch.
43
44nl='
45'
46IFS=" "" $nl"
47
48# set DOITPROG to echo to test this script
49
50# Don't use :- since 4.3BSD and earlier shells don't like it.
51doit=${DOITPROG-}
52if test -z "$doit"; then
53 doit_exec=exec
54else
55 doit_exec=$doit
56fi
57
58# Put in absolute file names if you don't have them in your path;
59# or use environment vars.
60
61chgrpprog=${CHGRPPROG-chgrp}
62chmodprog=${CHMODPROG-chmod}
63chownprog=${CHOWNPROG-chown}
64cmpprog=${CMPPROG-cmp}
65cpprog=${CPPROG-cp}
66mkdirprog=${MKDIRPROG-mkdir}
67mvprog=${MVPROG-mv}
68rmprog=${RMPROG-rm}
69stripprog=${STRIPPROG-strip}
70
71posix_glob='?'
72initialize_posix_glob='
73 test "$posix_glob" != "?" || {
74 if (set -f) 2>/dev/null; then
75 posix_glob=
76 else
77 posix_glob=:
78 fi
79 }
80'
81
82posix_mkdir=
83
84# Desired mode of installed file.
85mode=0755
86
87chgrpcmd=
88chmodcmd=$chmodprog
89chowncmd=
90mvcmd=$mvprog
91rmcmd="$rmprog -f"
92stripcmd=
93
94src=
95dst=
96dir_arg=
97dst_arg=
98
99copy_on_change=false
100no_target_directory=
101
102usage="\
103Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
104 or: $0 [OPTION]... SRCFILES... DIRECTORY
105 or: $0 [OPTION]... -t DIRECTORY SRCFILES...
106 or: $0 [OPTION]... -d DIRECTORIES...
107
108In the 1st form, copy SRCFILE to DSTFILE.
109In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
110In the 4th, create DIRECTORIES.
111
112Options:
113 --help display this help and exit.
114 --version display version info and exit.
115
116 -c (ignored)
117 -C install only if different (preserve the last data modification time)
118 -d create directories instead of installing files.
119 -g GROUP $chgrpprog installed files to GROUP.
120 -m MODE $chmodprog installed files to MODE.
121 -o USER $chownprog installed files to USER.
122 -s $stripprog installed files.
123 -t DIRECTORY install into DIRECTORY.
124 -T report an error if DSTFILE is a directory.
125
126Environment variables override the default commands:
127 CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
128 RMPROG STRIPPROG
129"
130
131while test $# -ne 0; do
132 case $1 in
133 -c) ;;
134
135 -C) copy_on_change=true;;
136
137 -d) dir_arg=true;;
138
139 -g) chgrpcmd="$chgrpprog $2"
140 shift;;
141
142 --help) echo "$usage"; exit $?;;
143
144 -m) mode=$2
145 case $mode in
146 *' '* | *' '* | *'
147'* | *'*'* | *'?'* | *'['*)
148 echo "$0: invalid mode: $mode" >&2
149 exit 1;;
150 esac
151 shift;;
152
153 -o) chowncmd="$chownprog $2"
154 shift;;
155
156 -s) stripcmd=$stripprog;;
157
158 -t) dst_arg=$2
159 shift;;
160
161 -T) no_target_directory=true;;
162
163 --version) echo "$0 $scriptversion"; exit $?;;
164
165 --) shift
166 break;;
167
168 -*) echo "$0: invalid option: $1" >&2
169 exit 1;;
170
171 *) break;;
172 esac
173 shift
174done
175
176if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
177 # When -d is used, all remaining arguments are directories to create.
178 # When -t is used, the destination is already specified.
179 # Otherwise, the last argument is the destination. Remove it from $@.
180 for arg
181 do
182 if test -n "$dst_arg"; then
183 # $@ is not empty: it contains at least $arg.
184 set fnord "$@" "$dst_arg"
185 shift # fnord
186 fi
187 shift # arg
188 dst_arg=$arg
189 done
190fi
191
192if test $# -eq 0; then
193 if test -z "$dir_arg"; then
194 echo "$0: no input file specified." >&2
195 exit 1
196 fi
197 # It's OK to call `install-sh -d' without argument.
198 # This can happen when creating conditional directories.
199 exit 0
200fi
201
202if test -z "$dir_arg"; then
203 trap '(exit $?); exit' 1 2 13 15
204
205 # Set umask so as not to create temps with too-generous modes.
206 # However, 'strip' requires both read and write access to temps.
207 case $mode in
208 # Optimize common cases.
209 *644) cp_umask=133;;
210 *755) cp_umask=22;;
211
212 *[0-7])
213 if test -z "$stripcmd"; then
214 u_plus_rw=
215 else
216 u_plus_rw='% 200'
217 fi
218 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
219 *)
220 if test -z "$stripcmd"; then
221 u_plus_rw=
222 else
223 u_plus_rw=,u+rw
224 fi
225 cp_umask=$mode$u_plus_rw;;
226 esac
227fi
228
229for src
230do
231 # Protect names starting with `-'.
232 case $src in
233 -*) src=./$src;;
234 esac
235
236 if test -n "$dir_arg"; then
237 dst=$src
238 dstdir=$dst
239 test -d "$dstdir"
240 dstdir_status=$?
241 else
242
243 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
244 # might cause directories to be created, which would be especially bad
245 # if $src (and thus $dsttmp) contains '*'.
246 if test ! -f "$src" && test ! -d "$src"; then
247 echo "$0: $src does not exist." >&2
248 exit 1
249 fi
250
251 if test -z "$dst_arg"; then
252 echo "$0: no destination specified." >&2
253 exit 1
254 fi
255
256 dst=$dst_arg
257 # Protect names starting with `-'.
258 case $dst in
259 -*) dst=./$dst;;
260 esac
261
262 # If destination is a directory, append the input filename; won't work
263 # if double slashes aren't ignored.
264 if test -d "$dst"; then
265 if test -n "$no_target_directory"; then
266 echo "$0: $dst_arg: Is a directory" >&2
267 exit 1
268 fi
269 dstdir=$dst
270 dst=$dstdir/`basename "$src"`
271 dstdir_status=0
272 else
273 # Prefer dirname, but fall back on a substitute if dirname fails.
274 dstdir=`
275 (dirname "$dst") 2>/dev/null ||
276 expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
277 X"$dst" : 'X\(//\)[^/]' \| \
278 X"$dst" : 'X\(//\)$' \| \
279 X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
280 echo X"$dst" |
281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
282 s//\1/
283 q
284 }
285 /^X\(\/\/\)[^/].*/{
286 s//\1/
287 q
288 }
289 /^X\(\/\/\)$/{
290 s//\1/
291 q
292 }
293 /^X\(\/\).*/{
294 s//\1/
295 q
296 }
297 s/.*/./; q'
298 `
299
300 test -d "$dstdir"
301 dstdir_status=$?
302 fi
303 fi
304
305 obsolete_mkdir_used=false
306
307 if test $dstdir_status != 0; then
308 case $posix_mkdir in
309 '')
310 # Create intermediate dirs using mode 755 as modified by the umask.
311 # This is like FreeBSD 'install' as of 1997-10-28.
312 umask=`umask`
313 case $stripcmd.$umask in
314 # Optimize common cases.
315 *[2367][2367]) mkdir_umask=$umask;;
316 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
317
318 *[0-7])
319 mkdir_umask=`expr $umask + 22 \
320 - $umask % 100 % 40 + $umask % 20 \
321 - $umask % 10 % 4 + $umask % 2
322 `;;
323 *) mkdir_umask=$umask,go-w;;
324 esac
325
326 # With -d, create the new directory with the user-specified mode.
327 # Otherwise, rely on $mkdir_umask.
328 if test -n "$dir_arg"; then
329 mkdir_mode=-m$mode
330 else
331 mkdir_mode=
332 fi
333
334 posix_mkdir=false
335 case $umask in
336 *[123567][0-7][0-7])
337 # POSIX mkdir -p sets u+wx bits regardless of umask, which
338 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
339 ;;
340 *)
341 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
342 trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
343
344 if (umask $mkdir_umask &&
345 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
346 then
347 if test -z "$dir_arg" || {
348 # Check for POSIX incompatibilities with -m.
349 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
350 # other-writeable bit of parent directory when it shouldn't.
351 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
352 ls_ld_tmpdir=`ls -ld "$tmpdir"`
353 case $ls_ld_tmpdir in
354 d????-?r-*) different_mode=700;;
355 d????-?--*) different_mode=755;;
356 *) false;;
357 esac &&
358 $mkdirprog -m$different_mode -p -- "$tmpdir" && {
359 ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
360 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
361 }
362 }
363 then posix_mkdir=:
364 fi
365 rmdir "$tmpdir/d" "$tmpdir"
366 else
367 # Remove any dirs left behind by ancient mkdir implementations.
368 rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
369 fi
370 trap '' 0;;
371 esac;;
372 esac
373
374 if
375 $posix_mkdir && (
376 umask $mkdir_umask &&
377 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
378 )
379 then :
380 else
381
382 # The umask is ridiculous, or mkdir does not conform to POSIX,
383 # or it failed possibly due to a race condition. Create the
384 # directory the slow way, step by step, checking for races as we go.
385
386 case $dstdir in
387 /*) prefix='/';;
388 -*) prefix='./';;
389 *) prefix='';;
390 esac
391
392 eval "$initialize_posix_glob"
393
394 oIFS=$IFS
395 IFS=/
396 $posix_glob set -f
397 set fnord $dstdir
398 shift
399 $posix_glob set +f
400 IFS=$oIFS
401
402 prefixes=
403
404 for d
405 do
406 test -z "$d" && continue
407
408 prefix=$prefix$d
409 if test -d "$prefix"; then
410 prefixes=
411 else
412 if $posix_mkdir; then
413 (umask=$mkdir_umask &&
414 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
415 # Don't fail if two instances are running concurrently.
416 test -d "$prefix" || exit 1
417 else
418 case $prefix in
419 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
420 *) qprefix=$prefix;;
421 esac
422 prefixes="$prefixes '$qprefix'"
423 fi
424 fi
425 prefix=$prefix/
426 done
427
428 if test -n "$prefixes"; then
429 # Don't fail if two instances are running concurrently.
430 (umask $mkdir_umask &&
431 eval "\$doit_exec \$mkdirprog $prefixes") ||
432 test -d "$dstdir" || exit 1
433 obsolete_mkdir_used=true
434 fi
435 fi
436 fi
437
438 if test -n "$dir_arg"; then
439 { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
440 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
441 { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
442 test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
443 else
444
445 # Make a couple of temp file names in the proper directory.
446 dsttmp=$dstdir/_inst.$$_
447 rmtmp=$dstdir/_rm.$$_
448
449 # Trap to clean up those temp files at exit.
450 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
451
452 # Copy the file name to the temp name.
453 (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
454
455 # and set any options; do chmod last to preserve setuid bits.
456 #
457 # If any of these fail, we abort the whole thing. If we want to
458 # ignore errors from any of these, just make sure not to ignore
459 # errors from the above "$doit $cpprog $src $dsttmp" command.
460 #
461 { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
462 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
463 { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
464 { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
465
466 # If -C, don't bother to copy if it wouldn't change the file.
467 if $copy_on_change &&
468 old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
469 new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
470
471 eval "$initialize_posix_glob" &&
472 $posix_glob set -f &&
473 set X $old && old=:$2:$4:$5:$6 &&
474 set X $new && new=:$2:$4:$5:$6 &&
475 $posix_glob set +f &&
476
477 test "$old" = "$new" &&
478 $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
479 then
480 rm -f "$dsttmp"
481 else
482 # Rename the file to the real destination.
483 $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
484
485 # The rename failed, perhaps because mv can't rename something else
486 # to itself, or perhaps because mv is so ancient that it does not
487 # support -f.
488 {
489 # Now remove or move aside any old file at destination location.
490 # We try this two ways since rm can't unlink itself on some
491 # systems and the destination file might be busy for other
492 # reasons. In this case, the final cleanup might fail but the new
493 # file should still install successfully.
494 {
495 test ! -f "$dst" ||
496 $doit $rmcmd -f "$dst" 2>/dev/null ||
497 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
498 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
499 } ||
500 { echo "$0: cannot unlink or rename $dst" >&2
501 (exit 1); exit 1
502 }
503 } &&
504
505 # Now rename the file to the real destination.
506 $doit $mvcmd "$dsttmp" "$dst"
507 }
508 fi || exit 1
509
510 trap '' 0
511 fi
512done
513
514# Local variables:
515# eval: (add-hook 'write-file-hooks 'time-stamp)
516# time-stamp-start: "scriptversion="
517# time-stamp-format: "%:y-%02m-%02d.%02H"
518# time-stamp-end: "$"
519# End:
diff --git a/src/others/mimesh/libg3d-0.0.8/config/ltmain.sh b/src/others/mimesh/libg3d-0.0.8/config/ltmain.sh
new file mode 100644
index 0000000..0bf3848
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/config/ltmain.sh
@@ -0,0 +1,6964 @@
1# ltmain.sh - Provide generalized library-building support services.
2# NOTE: Changing this file will not affect anything until you rerun configure.
3#
4# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
5# 2007, 2008 Free Software Foundation, Inc.
6# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
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, 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 02110-1301, 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
27basename="s,^.*/,,g"
28
29# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
30# is ksh but when the shell is invoked as "sh" and the current value of
31# the _XPG environment variable is not equal to 1 (one), the special
32# positional parameter $0, within a function call, is the name of the
33# function.
34progpath="$0"
35
36# The name of this program:
37progname=`echo "$progpath" | $SED $basename`
38modename="$progname"
39
40# Global variables:
41EXIT_SUCCESS=0
42EXIT_FAILURE=1
43
44PROGRAM=ltmain.sh
45PACKAGE=libtool
46VERSION="1.5.26 Debian 1.5.26-4"
47TIMESTAMP=" (1.1220.2.493 2008/02/01 16:58:18)"
48
49# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
50if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
51 emulate sh
52 NULLCMD=:
53 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
54 # is contrary to our usage. Disable this feature.
55 alias -g '${1+"$@"}'='"$@"'
56 setopt NO_GLOB_SUBST
57else
58 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
59fi
60BIN_SH=xpg4; export BIN_SH # for Tru64
61DUALCASE=1; export DUALCASE # for MKS sh
62
63# Check that we have a working $echo.
64if test "X$1" = X--no-reexec; then
65 # Discard the --no-reexec flag, and continue.
66 shift
67elif test "X$1" = X--fallback-echo; then
68 # Avoid inline document here, it may be left over
69 :
70elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
71 # Yippee, $echo works!
72 :
73else
74 # Restart under the correct shell, and then maybe $echo will work.
75 exec $SHELL "$progpath" --no-reexec ${1+"$@"}
76fi
77
78if test "X$1" = X--fallback-echo; then
79 # used as fallback echo
80 shift
81 cat <<EOF
82$*
83EOF
84 exit $EXIT_SUCCESS
85fi
86
87default_mode=
88help="Try \`$progname --help' for more information."
89magic="%%%MAGIC variable%%%"
90mkdir="mkdir"
91mv="mv -f"
92rm="rm -f"
93
94# Sed substitution that helps us do robust quoting. It backslashifies
95# metacharacters that are still active within double-quoted strings.
96Xsed="${SED}"' -e 1s/^X//'
97sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
98# test EBCDIC or ASCII
99case `echo X|tr X '\101'` in
100 A) # ASCII based system
101 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
102 SP2NL='tr \040 \012'
103 NL2SP='tr \015\012 \040\040'
104 ;;
105 *) # EBCDIC based system
106 SP2NL='tr \100 \n'
107 NL2SP='tr \r\n \100\100'
108 ;;
109esac
110
111# NLS nuisances.
112# Only set LANG and LC_ALL to C if already set.
113# These must not be set unconditionally because not all systems understand
114# e.g. LANG=C (notably SCO).
115# We save the old values to restore during execute mode.
116lt_env=
117for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
118do
119 eval "if test \"\${$lt_var+set}\" = set; then
120 save_$lt_var=\$$lt_var
121 lt_env=\"$lt_var=\$$lt_var \$lt_env\"
122 $lt_var=C
123 export $lt_var
124 fi"
125done
126
127if test -n "$lt_env"; then
128 lt_env="env $lt_env"
129fi
130
131# Make sure IFS has a sensible default
132lt_nl='
133'
134IFS=" $lt_nl"
135
136if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
137 $echo "$modename: not configured to build any kind of library" 1>&2
138 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
139 exit $EXIT_FAILURE
140fi
141
142# Global variables.
143mode=$default_mode
144nonopt=
145prev=
146prevopt=
147run=
148show="$echo"
149show_help=
150execute_dlfiles=
151duplicate_deps=no
152preserve_args=
153lo2o="s/\\.lo\$/.${objext}/"
154o2lo="s/\\.${objext}\$/.lo/"
155extracted_archives=
156extracted_serial=0
157
158#####################################
159# Shell function definitions:
160# This seems to be the best place for them
161
162# func_mktempdir [string]
163# Make a temporary directory that won't clash with other running
164# libtool processes, and avoids race conditions if possible. If
165# given, STRING is the basename for that directory.
166func_mktempdir ()
167{
168 my_template="${TMPDIR-/tmp}/${1-$progname}"
169
170 if test "$run" = ":"; then
171 # Return a directory name, but don't create it in dry-run mode
172 my_tmpdir="${my_template}-$$"
173 else
174
175 # If mktemp works, use that first and foremost
176 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
177
178 if test ! -d "$my_tmpdir"; then
179 # Failing that, at least try and use $RANDOM to avoid a race
180 my_tmpdir="${my_template}-${RANDOM-0}$$"
181
182 save_mktempdir_umask=`umask`
183 umask 0077
184 $mkdir "$my_tmpdir"
185 umask $save_mktempdir_umask
186 fi
187
188 # If we're not in dry-run mode, bomb out on failure
189 test -d "$my_tmpdir" || {
190 $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
191 exit $EXIT_FAILURE
192 }
193 fi
194
195 $echo "X$my_tmpdir" | $Xsed
196}
197
198
199# func_win32_libid arg
200# return the library type of file 'arg'
201#
202# Need a lot of goo to handle *both* DLLs and import libs
203# Has to be a shell function in order to 'eat' the argument
204# that is supplied when $file_magic_command is called.
205func_win32_libid ()
206{
207 win32_libid_type="unknown"
208 win32_fileres=`file -L $1 2>/dev/null`
209 case $win32_fileres in
210 *ar\ archive\ import\ library*) # definitely import
211 win32_libid_type="x86 archive import"
212 ;;
213 *ar\ archive*) # could be an import, or static
214 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
215 $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
216 win32_nmres=`eval $NM -f posix -A $1 | \
217 $SED -n -e '1,100{
218 / I /{
219 s,.*,import,
220 p
221 q
222 }
223 }'`
224 case $win32_nmres in
225 import*) win32_libid_type="x86 archive import";;
226 *) win32_libid_type="x86 archive static";;
227 esac
228 fi
229 ;;
230 *DLL*)
231 win32_libid_type="x86 DLL"
232 ;;
233 *executable*) # but shell scripts are "executable" too...
234 case $win32_fileres in
235 *MS\ Windows\ PE\ Intel*)
236 win32_libid_type="x86 DLL"
237 ;;
238 esac
239 ;;
240 esac
241 $echo $win32_libid_type
242}
243
244
245# func_infer_tag arg
246# Infer tagged configuration to use if any are available and
247# if one wasn't chosen via the "--tag" command line option.
248# Only attempt this if the compiler in the base compile
249# command doesn't match the default compiler.
250# arg is usually of the form 'gcc ...'
251func_infer_tag ()
252{
253 if test -n "$available_tags" && test -z "$tagname"; then
254 CC_quoted=
255 for arg in $CC; do
256 case $arg in
257 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
258 arg="\"$arg\""
259 ;;
260 esac
261 CC_quoted="$CC_quoted $arg"
262 done
263 case $@ in
264 # Blanks in the command may have been stripped by the calling shell,
265 # but not from the CC environment variable when configure was run.
266 " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
267 # Blanks at the start of $base_compile will cause this to fail
268 # if we don't check for them as well.
269 *)
270 for z in $available_tags; do
271 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
272 # Evaluate the configuration.
273 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
274 CC_quoted=
275 for arg in $CC; do
276 # Double-quote args containing other shell metacharacters.
277 case $arg in
278 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
279 arg="\"$arg\""
280 ;;
281 esac
282 CC_quoted="$CC_quoted $arg"
283 done
284 case "$@ " in
285 " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
286 # The compiler in the base compile command matches
287 # the one in the tagged configuration.
288 # Assume this is the tagged configuration we want.
289 tagname=$z
290 break
291 ;;
292 esac
293 fi
294 done
295 # If $tagname still isn't set, then no tagged configuration
296 # was found and let the user know that the "--tag" command
297 # line option must be used.
298 if test -z "$tagname"; then
299 $echo "$modename: unable to infer tagged configuration"
300 $echo "$modename: specify a tag with \`--tag'" 1>&2
301 exit $EXIT_FAILURE
302# else
303# $echo "$modename: using $tagname tagged configuration"
304 fi
305 ;;
306 esac
307 fi
308}
309
310
311# func_extract_an_archive dir oldlib
312func_extract_an_archive ()
313{
314 f_ex_an_ar_dir="$1"; shift
315 f_ex_an_ar_oldlib="$1"
316
317 $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
318 $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
319 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
320 :
321 else
322 $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
323 exit $EXIT_FAILURE
324 fi
325}
326
327# func_extract_archives gentop oldlib ...
328func_extract_archives ()
329{
330 my_gentop="$1"; shift
331 my_oldlibs=${1+"$@"}
332 my_oldobjs=""
333 my_xlib=""
334 my_xabs=""
335 my_xdir=""
336 my_status=""
337
338 $show "${rm}r $my_gentop"
339 $run ${rm}r "$my_gentop"
340 $show "$mkdir $my_gentop"
341 $run $mkdir "$my_gentop"
342 my_status=$?
343 if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
344 exit $my_status
345 fi
346
347 for my_xlib in $my_oldlibs; do
348 # Extract the objects.
349 case $my_xlib in
350 [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
351 *) my_xabs=`pwd`"/$my_xlib" ;;
352 esac
353 my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
354 my_xlib_u=$my_xlib
355 while :; do
356 case " $extracted_archives " in
357 *" $my_xlib_u "*)
358 extracted_serial=`expr $extracted_serial + 1`
359 my_xlib_u=lt$extracted_serial-$my_xlib ;;
360 *) break ;;
361 esac
362 done
363 extracted_archives="$extracted_archives $my_xlib_u"
364 my_xdir="$my_gentop/$my_xlib_u"
365
366 $show "${rm}r $my_xdir"
367 $run ${rm}r "$my_xdir"
368 $show "$mkdir $my_xdir"
369 $run $mkdir "$my_xdir"
370 exit_status=$?
371 if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
372 exit $exit_status
373 fi
374 case $host in
375 *-darwin*)
376 $show "Extracting $my_xabs"
377 # Do not bother doing anything if just a dry run
378 if test -z "$run"; then
379 darwin_orig_dir=`pwd`
380 cd $my_xdir || exit $?
381 darwin_archive=$my_xabs
382 darwin_curdir=`pwd`
383 darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
384 darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
385 if test -n "$darwin_arches"; then
386 darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
387 darwin_arch=
388 $show "$darwin_base_archive has multiple architectures $darwin_arches"
389 for darwin_arch in $darwin_arches ; do
390 mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
391 lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
392 cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
393 func_extract_an_archive "`pwd`" "${darwin_base_archive}"
394 cd "$darwin_curdir"
395 $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
396 done # $darwin_arches
397 ## Okay now we have a bunch of thin objects, gotta fatten them up :)
398 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
399 darwin_file=
400 darwin_files=
401 for darwin_file in $darwin_filelist; do
402 darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
403 lipo -create -output "$darwin_file" $darwin_files
404 done # $darwin_filelist
405 ${rm}r unfat-$$
406 cd "$darwin_orig_dir"
407 else
408 cd "$darwin_orig_dir"
409 func_extract_an_archive "$my_xdir" "$my_xabs"
410 fi # $darwin_arches
411 fi # $run
412 ;;
413 *)
414 func_extract_an_archive "$my_xdir" "$my_xabs"
415 ;;
416 esac
417 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
418 done
419 func_extract_archives_result="$my_oldobjs"
420}
421# End of Shell function definitions
422#####################################
423
424# Darwin sucks
425eval std_shrext=\"$shrext_cmds\"
426
427disable_libs=no
428
429# Parse our command line options once, thoroughly.
430while test "$#" -gt 0
431do
432 arg="$1"
433 shift
434
435 case $arg in
436 -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
437 *) optarg= ;;
438 esac
439
440 # If the previous option needs an argument, assign it.
441 if test -n "$prev"; then
442 case $prev in
443 execute_dlfiles)
444 execute_dlfiles="$execute_dlfiles $arg"
445 ;;
446 tag)
447 tagname="$arg"
448 preserve_args="${preserve_args}=$arg"
449
450 # Check whether tagname contains only valid characters
451 case $tagname in
452 *[!-_A-Za-z0-9,/]*)
453 $echo "$progname: invalid tag name: $tagname" 1>&2
454 exit $EXIT_FAILURE
455 ;;
456 esac
457
458 case $tagname in
459 CC)
460 # Don't test for the "default" C tag, as we know, it's there, but
461 # not specially marked.
462 ;;
463 *)
464 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
465 taglist="$taglist $tagname"
466 # Evaluate the configuration.
467 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
468 else
469 $echo "$progname: ignoring unknown tag $tagname" 1>&2
470 fi
471 ;;
472 esac
473 ;;
474 *)
475 eval "$prev=\$arg"
476 ;;
477 esac
478
479 prev=
480 prevopt=
481 continue
482 fi
483
484 # Have we seen a non-optional argument yet?
485 case $arg in
486 --help)
487 show_help=yes
488 ;;
489
490 --version)
491 echo "\
492$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
493
494Copyright (C) 2008 Free Software Foundation, Inc.
495This is free software; see the source for copying conditions. There is NO
496warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
497 exit $?
498 ;;
499
500 --config)
501 ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
502 # Now print the configurations for the tags.
503 for tagname in $taglist; do
504 ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
505 done
506 exit $?
507 ;;
508
509 --debug)
510 $echo "$progname: enabling shell trace mode"
511 set -x
512 preserve_args="$preserve_args $arg"
513 ;;
514
515 --dry-run | -n)
516 run=:
517 ;;
518
519 --features)
520 $echo "host: $host"
521 if test "$build_libtool_libs" = yes; then
522 $echo "enable shared libraries"
523 else
524 $echo "disable shared libraries"
525 fi
526 if test "$build_old_libs" = yes; then
527 $echo "enable static libraries"
528 else
529 $echo "disable static libraries"
530 fi
531 exit $?
532 ;;
533
534 --finish) mode="finish" ;;
535
536 --mode) prevopt="--mode" prev=mode ;;
537 --mode=*) mode="$optarg" ;;
538
539 --preserve-dup-deps) duplicate_deps="yes" ;;
540
541 --quiet | --silent)
542 show=:
543 preserve_args="$preserve_args $arg"
544 ;;
545
546 --tag)
547 prevopt="--tag"
548 prev=tag
549 preserve_args="$preserve_args --tag"
550 ;;
551 --tag=*)
552 set tag "$optarg" ${1+"$@"}
553 shift
554 prev=tag
555 preserve_args="$preserve_args --tag"
556 ;;
557
558 -dlopen)
559 prevopt="-dlopen"
560 prev=execute_dlfiles
561 ;;
562
563 -*)
564 $echo "$modename: unrecognized option \`$arg'" 1>&2
565 $echo "$help" 1>&2
566 exit $EXIT_FAILURE
567 ;;
568
569 *)
570 nonopt="$arg"
571 break
572 ;;
573 esac
574done
575
576if test -n "$prevopt"; then
577 $echo "$modename: option \`$prevopt' requires an argument" 1>&2
578 $echo "$help" 1>&2
579 exit $EXIT_FAILURE
580fi
581
582case $disable_libs in
583no)
584 ;;
585shared)
586 build_libtool_libs=no
587 build_old_libs=yes
588 ;;
589static)
590 build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
591 ;;
592esac
593
594# If this variable is set in any of the actions, the command in it
595# will be execed at the end. This prevents here-documents from being
596# left over by shells.
597exec_cmd=
598
599if test -z "$show_help"; then
600
601 # Infer the operation mode.
602 if test -z "$mode"; then
603 $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
604 $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
605 case $nonopt in
606 *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
607 mode=link
608 for arg
609 do
610 case $arg in
611 -c)
612 mode=compile
613 break
614 ;;
615 esac
616 done
617 ;;
618 *db | *dbx | *strace | *truss)
619 mode=execute
620 ;;
621 *install*|cp|mv)
622 mode=install
623 ;;
624 *rm)
625 mode=uninstall
626 ;;
627 *)
628 # If we have no mode, but dlfiles were specified, then do execute mode.
629 test -n "$execute_dlfiles" && mode=execute
630
631 # Just use the default operation mode.
632 if test -z "$mode"; then
633 if test -n "$nonopt"; then
634 $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
635 else
636 $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
637 fi
638 fi
639 ;;
640 esac
641 fi
642
643 # Only execute mode is allowed to have -dlopen flags.
644 if test -n "$execute_dlfiles" && test "$mode" != execute; then
645 $echo "$modename: unrecognized option \`-dlopen'" 1>&2
646 $echo "$help" 1>&2
647 exit $EXIT_FAILURE
648 fi
649
650 # Change the help message to a mode-specific one.
651 generic_help="$help"
652 help="Try \`$modename --help --mode=$mode' for more information."
653
654 # These modes are in order of execution frequency so that they run quickly.
655 case $mode in
656 # libtool compile mode
657 compile)
658 modename="$modename: compile"
659 # Get the compilation command and the source file.
660 base_compile=
661 srcfile="$nonopt" # always keep a non-empty value in "srcfile"
662 suppress_opt=yes
663 suppress_output=
664 arg_mode=normal
665 libobj=
666 later=
667
668 for arg
669 do
670 case $arg_mode in
671 arg )
672 # do not "continue". Instead, add this to base_compile
673 lastarg="$arg"
674 arg_mode=normal
675 ;;
676
677 target )
678 libobj="$arg"
679 arg_mode=normal
680 continue
681 ;;
682
683 normal )
684 # Accept any command-line options.
685 case $arg in
686 -o)
687 if test -n "$libobj" ; then
688 $echo "$modename: you cannot specify \`-o' more than once" 1>&2
689 exit $EXIT_FAILURE
690 fi
691 arg_mode=target
692 continue
693 ;;
694
695 -static | -prefer-pic | -prefer-non-pic)
696 later="$later $arg"
697 continue
698 ;;
699
700 -no-suppress)
701 suppress_opt=no
702 continue
703 ;;
704
705 -Xcompiler)
706 arg_mode=arg # the next one goes into the "base_compile" arg list
707 continue # The current "srcfile" will either be retained or
708 ;; # replaced later. I would guess that would be a bug.
709
710 -Wc,*)
711 args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
712 lastarg=
713 save_ifs="$IFS"; IFS=','
714 for arg in $args; do
715 IFS="$save_ifs"
716
717 # Double-quote args containing other shell metacharacters.
718 # Many Bourne shells cannot handle close brackets correctly
719 # in scan sets, so we specify it separately.
720 case $arg in
721 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
722 arg="\"$arg\""
723 ;;
724 esac
725 lastarg="$lastarg $arg"
726 done
727 IFS="$save_ifs"
728 lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
729
730 # Add the arguments to base_compile.
731 base_compile="$base_compile $lastarg"
732 continue
733 ;;
734
735 * )
736 # Accept the current argument as the source file.
737 # The previous "srcfile" becomes the current argument.
738 #
739 lastarg="$srcfile"
740 srcfile="$arg"
741 ;;
742 esac # case $arg
743 ;;
744 esac # case $arg_mode
745
746 # Aesthetically quote the previous argument.
747 lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
748
749 case $lastarg in
750 # Double-quote args containing other shell metacharacters.
751 # Many Bourne shells cannot handle close brackets correctly
752 # in scan sets, and some SunOS ksh mistreat backslash-escaping
753 # in scan sets (worked around with variable expansion),
754 # and furthermore cannot handle '|' '&' '(' ')' in scan sets
755 # at all, so we specify them separately.
756 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
757 lastarg="\"$lastarg\""
758 ;;
759 esac
760
761 base_compile="$base_compile $lastarg"
762 done # for arg
763
764 case $arg_mode in
765 arg)
766 $echo "$modename: you must specify an argument for -Xcompile"
767 exit $EXIT_FAILURE
768 ;;
769 target)
770 $echo "$modename: you must specify a target with \`-o'" 1>&2
771 exit $EXIT_FAILURE
772 ;;
773 *)
774 # Get the name of the library object.
775 [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
776 ;;
777 esac
778
779 # Recognize several different file suffixes.
780 # If the user specifies -o file.o, it is replaced with file.lo
781 xform='[cCFSifmso]'
782 case $libobj in
783 *.ada) xform=ada ;;
784 *.adb) xform=adb ;;
785 *.ads) xform=ads ;;
786 *.asm) xform=asm ;;
787 *.c++) xform=c++ ;;
788 *.cc) xform=cc ;;
789 *.ii) xform=ii ;;
790 *.class) xform=class ;;
791 *.cpp) xform=cpp ;;
792 *.cxx) xform=cxx ;;
793 *.[fF][09]?) xform=[fF][09]. ;;
794 *.for) xform=for ;;
795 *.java) xform=java ;;
796 *.obj) xform=obj ;;
797 *.sx) xform=sx ;;
798 esac
799
800 libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
801
802 case $libobj in
803 *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
804 *)
805 $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
806 exit $EXIT_FAILURE
807 ;;
808 esac
809
810 func_infer_tag $base_compile
811
812 for arg in $later; do
813 case $arg in
814 -static)
815 build_old_libs=yes
816 continue
817 ;;
818
819 -prefer-pic)
820 pic_mode=yes
821 continue
822 ;;
823
824 -prefer-non-pic)
825 pic_mode=no
826 continue
827 ;;
828 esac
829 done
830
831 qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
832 case $qlibobj in
833 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
834 qlibobj="\"$qlibobj\"" ;;
835 esac
836 test "X$libobj" != "X$qlibobj" \
837 && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
838 && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
839 objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
840 xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
841 if test "X$xdir" = "X$obj"; then
842 xdir=
843 else
844 xdir=$xdir/
845 fi
846 lobj=${xdir}$objdir/$objname
847
848 if test -z "$base_compile"; then
849 $echo "$modename: you must specify a compilation command" 1>&2
850 $echo "$help" 1>&2
851 exit $EXIT_FAILURE
852 fi
853
854 # Delete any leftover library objects.
855 if test "$build_old_libs" = yes; then
856 removelist="$obj $lobj $libobj ${libobj}T"
857 else
858 removelist="$lobj $libobj ${libobj}T"
859 fi
860
861 $run $rm $removelist
862 trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
863
864 # On Cygwin there's no "real" PIC flag so we must build both object types
865 case $host_os in
866 cygwin* | mingw* | pw32* | os2*)
867 pic_mode=default
868 ;;
869 esac
870 if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
871 # non-PIC code in shared libraries is not supported
872 pic_mode=default
873 fi
874
875 # Calculate the filename of the output object if compiler does
876 # not support -o with -c
877 if test "$compiler_c_o" = no; then
878 output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
879 lockfile="$output_obj.lock"
880 removelist="$removelist $output_obj $lockfile"
881 trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
882 else
883 output_obj=
884 need_locks=no
885 lockfile=
886 fi
887
888 # Lock this critical section if it is needed
889 # We use this script file to make the link, it avoids creating a new file
890 if test "$need_locks" = yes; then
891 until $run ln "$progpath" "$lockfile" 2>/dev/null; do
892 $show "Waiting for $lockfile to be removed"
893 sleep 2
894 done
895 elif test "$need_locks" = warn; then
896 if test -f "$lockfile"; then
897 $echo "\
898*** ERROR, $lockfile exists and contains:
899`cat $lockfile 2>/dev/null`
900
901This indicates that another process is trying to use the same
902temporary object file, and libtool could not work around it because
903your compiler does not support \`-c' and \`-o' together. If you
904repeat this compilation, it may succeed, by chance, but you had better
905avoid parallel builds (make -j) in this platform, or get a better
906compiler."
907
908 $run $rm $removelist
909 exit $EXIT_FAILURE
910 fi
911 $echo "$srcfile" > "$lockfile"
912 fi
913
914 if test -n "$fix_srcfile_path"; then
915 eval srcfile=\"$fix_srcfile_path\"
916 fi
917 qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
918 case $qsrcfile in
919 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
920 qsrcfile="\"$qsrcfile\"" ;;
921 esac
922
923 $run $rm "$libobj" "${libobj}T"
924
925 # Create a libtool object file (analogous to a ".la" file),
926 # but don't create it if we're doing a dry run.
927 test -z "$run" && cat > ${libobj}T <<EOF
928# $libobj - a libtool object file
929# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
930#
931# Please DO NOT delete this file!
932# It is necessary for linking the library.
933
934# Name of the PIC object.
935EOF
936
937 # Only build a PIC object if we are building libtool libraries.
938 if test "$build_libtool_libs" = yes; then
939 # Without this assignment, base_compile gets emptied.
940 fbsd_hideous_sh_bug=$base_compile
941
942 if test "$pic_mode" != no; then
943 command="$base_compile $qsrcfile $pic_flag"
944 else
945 # Don't build PIC code
946 command="$base_compile $qsrcfile"
947 fi
948
949 if test ! -d "${xdir}$objdir"; then
950 $show "$mkdir ${xdir}$objdir"
951 $run $mkdir ${xdir}$objdir
952 exit_status=$?
953 if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
954 exit $exit_status
955 fi
956 fi
957
958 if test -z "$output_obj"; then
959 # Place PIC objects in $objdir
960 command="$command -o $lobj"
961 fi
962
963 $run $rm "$lobj" "$output_obj"
964
965 $show "$command"
966 if $run eval $lt_env "$command"; then :
967 else
968 test -n "$output_obj" && $run $rm $removelist
969 exit $EXIT_FAILURE
970 fi
971
972 if test "$need_locks" = warn &&
973 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
974 $echo "\
975*** ERROR, $lockfile contains:
976`cat $lockfile 2>/dev/null`
977
978but it should contain:
979$srcfile
980
981This indicates that another process is trying to use the same
982temporary object file, and libtool could not work around it because
983your compiler does not support \`-c' and \`-o' together. If you
984repeat this compilation, it may succeed, by chance, but you had better
985avoid parallel builds (make -j) in this platform, or get a better
986compiler."
987
988 $run $rm $removelist
989 exit $EXIT_FAILURE
990 fi
991
992 # Just move the object if needed, then go on to compile the next one
993 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
994 $show "$mv $output_obj $lobj"
995 if $run $mv $output_obj $lobj; then :
996 else
997 error=$?
998 $run $rm $removelist
999 exit $error
1000 fi
1001 fi
1002
1003 # Append the name of the PIC object to the libtool object file.
1004 test -z "$run" && cat >> ${libobj}T <<EOF
1005pic_object='$objdir/$objname'
1006
1007EOF
1008
1009 # Allow error messages only from the first compilation.
1010 if test "$suppress_opt" = yes; then
1011 suppress_output=' >/dev/null 2>&1'
1012 fi
1013 else
1014 # No PIC object so indicate it doesn't exist in the libtool
1015 # object file.
1016 test -z "$run" && cat >> ${libobj}T <<EOF
1017pic_object=none
1018
1019EOF
1020 fi
1021
1022 # Only build a position-dependent object if we build old libraries.
1023 if test "$build_old_libs" = yes; then
1024 if test "$pic_mode" != yes; then
1025 # Don't build PIC code
1026 command="$base_compile $qsrcfile"
1027 else
1028 command="$base_compile $qsrcfile $pic_flag"
1029 fi
1030 if test "$compiler_c_o" = yes; then
1031 command="$command -o $obj"
1032 fi
1033
1034 # Suppress compiler output if we already did a PIC compilation.
1035 command="$command$suppress_output"
1036 $run $rm "$obj" "$output_obj"
1037 $show "$command"
1038 if $run eval $lt_env "$command"; then :
1039 else
1040 $run $rm $removelist
1041 exit $EXIT_FAILURE
1042 fi
1043
1044 if test "$need_locks" = warn &&
1045 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
1046 $echo "\
1047*** ERROR, $lockfile contains:
1048`cat $lockfile 2>/dev/null`
1049
1050but it should contain:
1051$srcfile
1052
1053This indicates that another process is trying to use the same
1054temporary object file, and libtool could not work around it because
1055your compiler does not support \`-c' and \`-o' together. If you
1056repeat this compilation, it may succeed, by chance, but you had better
1057avoid parallel builds (make -j) in this platform, or get a better
1058compiler."
1059
1060 $run $rm $removelist
1061 exit $EXIT_FAILURE
1062 fi
1063
1064 # Just move the object if needed
1065 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
1066 $show "$mv $output_obj $obj"
1067 if $run $mv $output_obj $obj; then :
1068 else
1069 error=$?
1070 $run $rm $removelist
1071 exit $error
1072 fi
1073 fi
1074
1075 # Append the name of the non-PIC object the libtool object file.
1076 # Only append if the libtool object file exists.
1077 test -z "$run" && cat >> ${libobj}T <<EOF
1078# Name of the non-PIC object.
1079non_pic_object='$objname'
1080
1081EOF
1082 else
1083 # Append the name of the non-PIC object the libtool object file.
1084 # Only append if the libtool object file exists.
1085 test -z "$run" && cat >> ${libobj}T <<EOF
1086# Name of the non-PIC object.
1087non_pic_object=none
1088
1089EOF
1090 fi
1091
1092 $run $mv "${libobj}T" "${libobj}"
1093
1094 # Unlock the critical section if it was locked
1095 if test "$need_locks" != no; then
1096 $run $rm "$lockfile"
1097 fi
1098
1099 exit $EXIT_SUCCESS
1100 ;;
1101
1102 # libtool link mode
1103 link | relink)
1104 modename="$modename: link"
1105 case $host in
1106 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
1107 # It is impossible to link a dll without this setting, and
1108 # we shouldn't force the makefile maintainer to figure out
1109 # which system we are compiling for in order to pass an extra
1110 # flag for every libtool invocation.
1111 # allow_undefined=no
1112
1113 # FIXME: Unfortunately, there are problems with the above when trying
1114 # to make a dll which has undefined symbols, in which case not
1115 # even a static library is built. For now, we need to specify
1116 # -no-undefined on the libtool link line when we can be certain
1117 # that all symbols are satisfied, otherwise we get a static library.
1118 allow_undefined=yes
1119 ;;
1120 *)
1121 allow_undefined=yes
1122 ;;
1123 esac
1124 libtool_args="$nonopt"
1125 base_compile="$nonopt $@"
1126 compile_command="$nonopt"
1127 finalize_command="$nonopt"
1128
1129 compile_rpath=
1130 finalize_rpath=
1131 compile_shlibpath=
1132 finalize_shlibpath=
1133 convenience=
1134 old_convenience=
1135 deplibs=
1136 old_deplibs=
1137 compiler_flags=
1138 linker_flags=
1139 dllsearchpath=
1140 lib_search_path=`pwd`
1141 inst_prefix_dir=
1142
1143 avoid_version=no
1144 dlfiles=
1145 dlprefiles=
1146 dlself=no
1147 export_dynamic=no
1148 export_symbols=
1149 export_symbols_regex=
1150 generated=
1151 libobjs=
1152 ltlibs=
1153 module=no
1154 no_install=no
1155 objs=
1156 non_pic_objects=
1157 notinst_path= # paths that contain not-installed libtool libraries
1158 precious_files_regex=
1159 prefer_static_libs=no
1160 preload=no
1161 prev=
1162 prevarg=
1163 release=
1164 rpath=
1165 xrpath=
1166 perm_rpath=
1167 temp_rpath=
1168 thread_safe=no
1169 vinfo=
1170 vinfo_number=no
1171 single_module="${wl}-single_module"
1172
1173 func_infer_tag $base_compile
1174
1175 # We need to know -static, to get the right output filenames.
1176 for arg
1177 do
1178 case $arg in
1179 -all-static | -static | -static-libtool-libs)
1180 case $arg in
1181 -all-static)
1182 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
1183 $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
1184 fi
1185 if test -n "$link_static_flag"; then
1186 dlopen_self=$dlopen_self_static
1187 fi
1188 prefer_static_libs=yes
1189 ;;
1190 -static)
1191 if test -z "$pic_flag" && test -n "$link_static_flag"; then
1192 dlopen_self=$dlopen_self_static
1193 fi
1194 prefer_static_libs=built
1195 ;;
1196 -static-libtool-libs)
1197 if test -z "$pic_flag" && test -n "$link_static_flag"; then
1198 dlopen_self=$dlopen_self_static
1199 fi
1200 prefer_static_libs=yes
1201 ;;
1202 esac
1203 build_libtool_libs=no
1204 build_old_libs=yes
1205 break
1206 ;;
1207 esac
1208 done
1209
1210 # See if our shared archives depend on static archives.
1211 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
1212
1213 # Go through the arguments, transforming them on the way.
1214 while test "$#" -gt 0; do
1215 arg="$1"
1216 shift
1217 case $arg in
1218 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1219 qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
1220 ;;
1221 *) qarg=$arg ;;
1222 esac
1223 libtool_args="$libtool_args $qarg"
1224
1225 # If the previous option needs an argument, assign it.
1226 if test -n "$prev"; then
1227 case $prev in
1228 output)
1229 compile_command="$compile_command @OUTPUT@"
1230 finalize_command="$finalize_command @OUTPUT@"
1231 ;;
1232 esac
1233
1234 case $prev in
1235 dlfiles|dlprefiles)
1236 if test "$preload" = no; then
1237 # Add the symbol object into the linking commands.
1238 compile_command="$compile_command @SYMFILE@"
1239 finalize_command="$finalize_command @SYMFILE@"
1240 preload=yes
1241 fi
1242 case $arg in
1243 *.la | *.lo) ;; # We handle these cases below.
1244 force)
1245 if test "$dlself" = no; then
1246 dlself=needless
1247 export_dynamic=yes
1248 fi
1249 prev=
1250 continue
1251 ;;
1252 self)
1253 if test "$prev" = dlprefiles; then
1254 dlself=yes
1255 elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
1256 dlself=yes
1257 else
1258 dlself=needless
1259 export_dynamic=yes
1260 fi
1261 prev=
1262 continue
1263 ;;
1264 *)
1265 if test "$prev" = dlfiles; then
1266 dlfiles="$dlfiles $arg"
1267 else
1268 dlprefiles="$dlprefiles $arg"
1269 fi
1270 prev=
1271 continue
1272 ;;
1273 esac
1274 ;;
1275 expsyms)
1276 export_symbols="$arg"
1277 if test ! -f "$arg"; then
1278 $echo "$modename: symbol file \`$arg' does not exist"
1279 exit $EXIT_FAILURE
1280 fi
1281 prev=
1282 continue
1283 ;;
1284 expsyms_regex)
1285 export_symbols_regex="$arg"
1286 prev=
1287 continue
1288 ;;
1289 inst_prefix)
1290 inst_prefix_dir="$arg"
1291 prev=
1292 continue
1293 ;;
1294 precious_regex)
1295 precious_files_regex="$arg"
1296 prev=
1297 continue
1298 ;;
1299 release)
1300 release="-$arg"
1301 prev=
1302 continue
1303 ;;
1304 objectlist)
1305 if test -f "$arg"; then
1306 save_arg=$arg
1307 moreargs=
1308 for fil in `cat $save_arg`
1309 do
1310# moreargs="$moreargs $fil"
1311 arg=$fil
1312 # A libtool-controlled object.
1313
1314 # Check to see that this really is a libtool object.
1315 if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
1316 pic_object=
1317 non_pic_object=
1318
1319 # Read the .lo file
1320 # If there is no directory component, then add one.
1321 case $arg in
1322 */* | *\\*) . $arg ;;
1323 *) . ./$arg ;;
1324 esac
1325
1326 if test -z "$pic_object" || \
1327 test -z "$non_pic_object" ||
1328 test "$pic_object" = none && \
1329 test "$non_pic_object" = none; then
1330 $echo "$modename: cannot find name of object for \`$arg'" 1>&2
1331 exit $EXIT_FAILURE
1332 fi
1333
1334 # Extract subdirectory from the argument.
1335 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1336 if test "X$xdir" = "X$arg"; then
1337 xdir=
1338 else
1339 xdir="$xdir/"
1340 fi
1341
1342 if test "$pic_object" != none; then
1343 # Prepend the subdirectory the object is found in.
1344 pic_object="$xdir$pic_object"
1345
1346 if test "$prev" = dlfiles; then
1347 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
1348 dlfiles="$dlfiles $pic_object"
1349 prev=
1350 continue
1351 else
1352 # If libtool objects are unsupported, then we need to preload.
1353 prev=dlprefiles
1354 fi
1355 fi
1356
1357 # CHECK ME: I think I busted this. -Ossama
1358 if test "$prev" = dlprefiles; then
1359 # Preload the old-style object.
1360 dlprefiles="$dlprefiles $pic_object"
1361 prev=
1362 fi
1363
1364 # A PIC object.
1365 libobjs="$libobjs $pic_object"
1366 arg="$pic_object"
1367 fi
1368
1369 # Non-PIC object.
1370 if test "$non_pic_object" != none; then
1371 # Prepend the subdirectory the object is found in.
1372 non_pic_object="$xdir$non_pic_object"
1373
1374 # A standard non-PIC object
1375 non_pic_objects="$non_pic_objects $non_pic_object"
1376 if test -z "$pic_object" || test "$pic_object" = none ; then
1377 arg="$non_pic_object"
1378 fi
1379 else
1380 # If the PIC object exists, use it instead.
1381 # $xdir was prepended to $pic_object above.
1382 non_pic_object="$pic_object"
1383 non_pic_objects="$non_pic_objects $non_pic_object"
1384 fi
1385 else
1386 # Only an error if not doing a dry-run.
1387 if test -z "$run"; then
1388 $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
1389 exit $EXIT_FAILURE
1390 else
1391 # Dry-run case.
1392
1393 # Extract subdirectory from the argument.
1394 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1395 if test "X$xdir" = "X$arg"; then
1396 xdir=
1397 else
1398 xdir="$xdir/"
1399 fi
1400
1401 pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
1402 non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
1403 libobjs="$libobjs $pic_object"
1404 non_pic_objects="$non_pic_objects $non_pic_object"
1405 fi
1406 fi
1407 done
1408 else
1409 $echo "$modename: link input file \`$save_arg' does not exist"
1410 exit $EXIT_FAILURE
1411 fi
1412 arg=$save_arg
1413 prev=
1414 continue
1415 ;;
1416 rpath | xrpath)
1417 # We need an absolute path.
1418 case $arg in
1419 [\\/]* | [A-Za-z]:[\\/]*) ;;
1420 *)
1421 $echo "$modename: only absolute run-paths are allowed" 1>&2
1422 exit $EXIT_FAILURE
1423 ;;
1424 esac
1425 if test "$prev" = rpath; then
1426 case "$rpath " in
1427 *" $arg "*) ;;
1428 *) rpath="$rpath $arg" ;;
1429 esac
1430 else
1431 case "$xrpath " in
1432 *" $arg "*) ;;
1433 *) xrpath="$xrpath $arg" ;;
1434 esac
1435 fi
1436 prev=
1437 continue
1438 ;;
1439 xcompiler)
1440 compiler_flags="$compiler_flags $qarg"
1441 prev=
1442 compile_command="$compile_command $qarg"
1443 finalize_command="$finalize_command $qarg"
1444 continue
1445 ;;
1446 xlinker)
1447 linker_flags="$linker_flags $qarg"
1448 compiler_flags="$compiler_flags $wl$qarg"
1449 prev=
1450 compile_command="$compile_command $wl$qarg"
1451 finalize_command="$finalize_command $wl$qarg"
1452 continue
1453 ;;
1454 xcclinker)
1455 linker_flags="$linker_flags $qarg"
1456 compiler_flags="$compiler_flags $qarg"
1457 prev=
1458 compile_command="$compile_command $qarg"
1459 finalize_command="$finalize_command $qarg"
1460 continue
1461 ;;
1462 shrext)
1463 shrext_cmds="$arg"
1464 prev=
1465 continue
1466 ;;
1467 darwin_framework|darwin_framework_skip)
1468 test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
1469 compile_command="$compile_command $arg"
1470 finalize_command="$finalize_command $arg"
1471 prev=
1472 continue
1473 ;;
1474 *)
1475 eval "$prev=\"\$arg\""
1476 prev=
1477 continue
1478 ;;
1479 esac
1480 fi # test -n "$prev"
1481
1482 prevarg="$arg"
1483
1484 case $arg in
1485 -all-static)
1486 if test -n "$link_static_flag"; then
1487 compile_command="$compile_command $link_static_flag"
1488 finalize_command="$finalize_command $link_static_flag"
1489 fi
1490 continue
1491 ;;
1492
1493 -allow-undefined)
1494 # FIXME: remove this flag sometime in the future.
1495 $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
1496 continue
1497 ;;
1498
1499 -avoid-version)
1500 avoid_version=yes
1501 continue
1502 ;;
1503
1504 -dlopen)
1505 prev=dlfiles
1506 continue
1507 ;;
1508
1509 -dlpreopen)
1510 prev=dlprefiles
1511 continue
1512 ;;
1513
1514 -export-dynamic)
1515 export_dynamic=yes
1516 continue
1517 ;;
1518
1519 -export-symbols | -export-symbols-regex)
1520 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
1521 $echo "$modename: more than one -exported-symbols argument is not allowed"
1522 exit $EXIT_FAILURE
1523 fi
1524 if test "X$arg" = "X-export-symbols"; then
1525 prev=expsyms
1526 else
1527 prev=expsyms_regex
1528 fi
1529 continue
1530 ;;
1531
1532 -framework|-arch|-isysroot)
1533 case " $CC " in
1534 *" ${arg} ${1} "* | *" ${arg} ${1} "*)
1535 prev=darwin_framework_skip ;;
1536 *) compiler_flags="$compiler_flags $arg"
1537 prev=darwin_framework ;;
1538 esac
1539 compile_command="$compile_command $arg"
1540 finalize_command="$finalize_command $arg"
1541 continue
1542 ;;
1543
1544 -inst-prefix-dir)
1545 prev=inst_prefix
1546 continue
1547 ;;
1548
1549 # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
1550 # so, if we see these flags be careful not to treat them like -L
1551 -L[A-Z][A-Z]*:*)
1552 case $with_gcc/$host in
1553 no/*-*-irix* | /*-*-irix*)
1554 compile_command="$compile_command $arg"
1555 finalize_command="$finalize_command $arg"
1556 ;;
1557 esac
1558 continue
1559 ;;
1560
1561 -L*)
1562 dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
1563 # We need an absolute path.
1564 case $dir in
1565 [\\/]* | [A-Za-z]:[\\/]*) ;;
1566 *)
1567 absdir=`cd "$dir" && pwd`
1568 if test -z "$absdir"; then
1569 $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
1570 absdir="$dir"
1571 notinst_path="$notinst_path $dir"
1572 fi
1573 dir="$absdir"
1574 ;;
1575 esac
1576 case "$deplibs " in
1577 *" -L$dir "*) ;;
1578 *)
1579 deplibs="$deplibs -L$dir"
1580 lib_search_path="$lib_search_path $dir"
1581 ;;
1582 esac
1583 case $host in
1584 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
1585 testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
1586 case :$dllsearchpath: in
1587 *":$dir:"*) ;;
1588 *) dllsearchpath="$dllsearchpath:$dir";;
1589 esac
1590 case :$dllsearchpath: in
1591 *":$testbindir:"*) ;;
1592 *) dllsearchpath="$dllsearchpath:$testbindir";;
1593 esac
1594 ;;
1595 esac
1596 continue
1597 ;;
1598
1599 -l*)
1600 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
1601 case $host in
1602 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
1603 # These systems don't actually have a C or math library (as such)
1604 continue
1605 ;;
1606 *-*-os2*)
1607 # These systems don't actually have a C library (as such)
1608 test "X$arg" = "X-lc" && continue
1609 ;;
1610 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
1611 # Do not include libc due to us having libc/libc_r.
1612 test "X$arg" = "X-lc" && continue
1613 ;;
1614 *-*-rhapsody* | *-*-darwin1.[012])
1615 # Rhapsody C and math libraries are in the System framework
1616 deplibs="$deplibs -framework System"
1617 continue
1618 ;;
1619 *-*-sco3.2v5* | *-*-sco5v6*)
1620 # Causes problems with __ctype
1621 test "X$arg" = "X-lc" && continue
1622 ;;
1623 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
1624 # Compiler inserts libc in the correct place for threads to work
1625 test "X$arg" = "X-lc" && continue
1626 ;;
1627 esac
1628 elif test "X$arg" = "X-lc_r"; then
1629 case $host in
1630 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
1631 # Do not include libc_r directly, use -pthread flag.
1632 continue
1633 ;;
1634 esac
1635 fi
1636 deplibs="$deplibs $arg"
1637 continue
1638 ;;
1639
1640 # Tru64 UNIX uses -model [arg] to determine the layout of C++
1641 # classes, name mangling, and exception handling.
1642 -model)
1643 compile_command="$compile_command $arg"
1644 compiler_flags="$compiler_flags $arg"
1645 finalize_command="$finalize_command $arg"
1646 prev=xcompiler
1647 continue
1648 ;;
1649
1650 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
1651 compiler_flags="$compiler_flags $arg"
1652 compile_command="$compile_command $arg"
1653 finalize_command="$finalize_command $arg"
1654 continue
1655 ;;
1656
1657 -multi_module)
1658 single_module="${wl}-multi_module"
1659 continue
1660 ;;
1661
1662 -module)
1663 module=yes
1664 continue
1665 ;;
1666
1667 # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
1668 # -r[0-9][0-9]* specifies the processor on the SGI compiler
1669 # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
1670 # +DA*, +DD* enable 64-bit mode on the HP compiler
1671 # -q* pass through compiler args for the IBM compiler
1672 # -m* pass through architecture-specific compiler args for GCC
1673 # -m*, -t[45]*, -txscale* pass through architecture-specific
1674 # compiler args for GCC
1675 # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
1676 # -F/path gives path to uninstalled frameworks, gcc on darwin
1677 # @file GCC response files
1678 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
1679 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
1680
1681 # Unknown arguments in both finalize_command and compile_command need
1682 # to be aesthetically quoted because they are evaled later.
1683 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1684 case $arg in
1685 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1686 arg="\"$arg\""
1687 ;;
1688 esac
1689 compile_command="$compile_command $arg"
1690 finalize_command="$finalize_command $arg"
1691 compiler_flags="$compiler_flags $arg"
1692 continue
1693 ;;
1694
1695 -shrext)
1696 prev=shrext
1697 continue
1698 ;;
1699
1700 -no-fast-install)
1701 fast_install=no
1702 continue
1703 ;;
1704
1705 -no-install)
1706 case $host in
1707 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
1708 # The PATH hackery in wrapper scripts is required on Windows
1709 # and Darwin in order for the loader to find any dlls it needs.
1710 $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
1711 $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
1712 fast_install=no
1713 ;;
1714 *) no_install=yes ;;
1715 esac
1716 continue
1717 ;;
1718
1719 -no-undefined)
1720 allow_undefined=no
1721 continue
1722 ;;
1723
1724 -objectlist)
1725 prev=objectlist
1726 continue
1727 ;;
1728
1729 -o) prev=output ;;
1730
1731 -precious-files-regex)
1732 prev=precious_regex
1733 continue
1734 ;;
1735
1736 -release)
1737 prev=release
1738 continue
1739 ;;
1740
1741 -rpath)
1742 prev=rpath
1743 continue
1744 ;;
1745
1746 -R)
1747 prev=xrpath
1748 continue
1749 ;;
1750
1751 -R*)
1752 dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
1753 # We need an absolute path.
1754 case $dir in
1755 [\\/]* | [A-Za-z]:[\\/]*) ;;
1756 *)
1757 $echo "$modename: only absolute run-paths are allowed" 1>&2
1758 exit $EXIT_FAILURE
1759 ;;
1760 esac
1761 case "$xrpath " in
1762 *" $dir "*) ;;
1763 *) xrpath="$xrpath $dir" ;;
1764 esac
1765 continue
1766 ;;
1767
1768 -static | -static-libtool-libs)
1769 # The effects of -static are defined in a previous loop.
1770 # We used to do the same as -all-static on platforms that
1771 # didn't have a PIC flag, but the assumption that the effects
1772 # would be equivalent was wrong. It would break on at least
1773 # Digital Unix and AIX.
1774 continue
1775 ;;
1776
1777 -thread-safe)
1778 thread_safe=yes
1779 continue
1780 ;;
1781
1782 -version-info)
1783 prev=vinfo
1784 continue
1785 ;;
1786 -version-number)
1787 prev=vinfo
1788 vinfo_number=yes
1789 continue
1790 ;;
1791
1792 -Wc,*)
1793 args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
1794 arg=
1795 save_ifs="$IFS"; IFS=','
1796 for flag in $args; do
1797 IFS="$save_ifs"
1798 case $flag in
1799 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1800 flag="\"$flag\""
1801 ;;
1802 esac
1803 arg="$arg $wl$flag"
1804 compiler_flags="$compiler_flags $flag"
1805 done
1806 IFS="$save_ifs"
1807 arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
1808 ;;
1809
1810 -Wl,*)
1811 args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
1812 arg=
1813 save_ifs="$IFS"; IFS=','
1814 for flag in $args; do
1815 IFS="$save_ifs"
1816 case $flag in
1817 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1818 flag="\"$flag\""
1819 ;;
1820 esac
1821 arg="$arg $wl$flag"
1822 compiler_flags="$compiler_flags $wl$flag"
1823 linker_flags="$linker_flags $flag"
1824 done
1825 IFS="$save_ifs"
1826 arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
1827 ;;
1828
1829 -Xcompiler)
1830 prev=xcompiler
1831 continue
1832 ;;
1833
1834 -Xlinker)
1835 prev=xlinker
1836 continue
1837 ;;
1838
1839 -XCClinker)
1840 prev=xcclinker
1841 continue
1842 ;;
1843
1844 # Some other compiler flag.
1845 -* | +*)
1846 # Unknown arguments in both finalize_command and compile_command need
1847 # to be aesthetically quoted because they are evaled later.
1848 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1849 case $arg in
1850 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1851 arg="\"$arg\""
1852 ;;
1853 esac
1854 ;;
1855
1856 *.$objext)
1857 # A standard object.
1858 objs="$objs $arg"
1859 ;;
1860
1861 *.lo)
1862 # A libtool-controlled object.
1863
1864 # Check to see that this really is a libtool object.
1865 if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
1866 pic_object=
1867 non_pic_object=
1868
1869 # Read the .lo file
1870 # If there is no directory component, then add one.
1871 case $arg in
1872 */* | *\\*) . $arg ;;
1873 *) . ./$arg ;;
1874 esac
1875
1876 if test -z "$pic_object" || \
1877 test -z "$non_pic_object" ||
1878 test "$pic_object" = none && \
1879 test "$non_pic_object" = none; then
1880 $echo "$modename: cannot find name of object for \`$arg'" 1>&2
1881 exit $EXIT_FAILURE
1882 fi
1883
1884 # Extract subdirectory from the argument.
1885 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1886 if test "X$xdir" = "X$arg"; then
1887 xdir=
1888 else
1889 xdir="$xdir/"
1890 fi
1891
1892 if test "$pic_object" != none; then
1893 # Prepend the subdirectory the object is found in.
1894 pic_object="$xdir$pic_object"
1895
1896 if test "$prev" = dlfiles; then
1897 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
1898 dlfiles="$dlfiles $pic_object"
1899 prev=
1900 continue
1901 else
1902 # If libtool objects are unsupported, then we need to preload.
1903 prev=dlprefiles
1904 fi
1905 fi
1906
1907 # CHECK ME: I think I busted this. -Ossama
1908 if test "$prev" = dlprefiles; then
1909 # Preload the old-style object.
1910 dlprefiles="$dlprefiles $pic_object"
1911 prev=
1912 fi
1913
1914 # A PIC object.
1915 libobjs="$libobjs $pic_object"
1916 arg="$pic_object"
1917 fi
1918
1919 # Non-PIC object.
1920 if test "$non_pic_object" != none; then
1921 # Prepend the subdirectory the object is found in.
1922 non_pic_object="$xdir$non_pic_object"
1923
1924 # A standard non-PIC object
1925 non_pic_objects="$non_pic_objects $non_pic_object"
1926 if test -z "$pic_object" || test "$pic_object" = none ; then
1927 arg="$non_pic_object"
1928 fi
1929 else
1930 # If the PIC object exists, use it instead.
1931 # $xdir was prepended to $pic_object above.
1932 non_pic_object="$pic_object"
1933 non_pic_objects="$non_pic_objects $non_pic_object"
1934 fi
1935 else
1936 # Only an error if not doing a dry-run.
1937 if test -z "$run"; then
1938 $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
1939 exit $EXIT_FAILURE
1940 else
1941 # Dry-run case.
1942
1943 # Extract subdirectory from the argument.
1944 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1945 if test "X$xdir" = "X$arg"; then
1946 xdir=
1947 else
1948 xdir="$xdir/"
1949 fi
1950
1951 pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
1952 non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
1953 libobjs="$libobjs $pic_object"
1954 non_pic_objects="$non_pic_objects $non_pic_object"
1955 fi
1956 fi
1957 ;;
1958
1959 *.$libext)
1960 # An archive.
1961 deplibs="$deplibs $arg"
1962 old_deplibs="$old_deplibs $arg"
1963 continue
1964 ;;
1965
1966 *.la)
1967 # A libtool-controlled library.
1968
1969 if test "$prev" = dlfiles; then
1970 # This library was specified with -dlopen.
1971 dlfiles="$dlfiles $arg"
1972 prev=
1973 elif test "$prev" = dlprefiles; then
1974 # The library was specified with -dlpreopen.
1975 dlprefiles="$dlprefiles $arg"
1976 prev=
1977 else
1978 deplibs="$deplibs $arg"
1979 fi
1980 continue
1981 ;;
1982
1983 # Some other compiler argument.
1984 *)
1985 # Unknown arguments in both finalize_command and compile_command need
1986 # to be aesthetically quoted because they are evaled later.
1987 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1988 case $arg in
1989 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1990 arg="\"$arg\""
1991 ;;
1992 esac
1993 ;;
1994 esac # arg
1995
1996 # Now actually substitute the argument into the commands.
1997 if test -n "$arg"; then
1998 compile_command="$compile_command $arg"
1999 finalize_command="$finalize_command $arg"
2000 fi
2001 done # argument parsing loop
2002
2003 if test -n "$prev"; then
2004 $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
2005 $echo "$help" 1>&2
2006 exit $EXIT_FAILURE
2007 fi
2008
2009 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
2010 eval arg=\"$export_dynamic_flag_spec\"
2011 compile_command="$compile_command $arg"
2012 finalize_command="$finalize_command $arg"
2013 fi
2014
2015 oldlibs=
2016 # calculate the name of the file, without its directory
2017 outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
2018 libobjs_save="$libobjs"
2019
2020 if test -n "$shlibpath_var"; then
2021 # get the directories listed in $shlibpath_var
2022 eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
2023 else
2024 shlib_search_path=
2025 fi
2026 eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
2027 eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
2028
2029 output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
2030 if test "X$output_objdir" = "X$output"; then
2031 output_objdir="$objdir"
2032 else
2033 output_objdir="$output_objdir/$objdir"
2034 fi
2035 # Create the object directory.
2036 if test ! -d "$output_objdir"; then
2037 $show "$mkdir $output_objdir"
2038 $run $mkdir $output_objdir
2039 exit_status=$?
2040 if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
2041 exit $exit_status
2042 fi
2043 fi
2044
2045 # Determine the type of output
2046 case $output in
2047 "")
2048 $echo "$modename: you must specify an output file" 1>&2
2049 $echo "$help" 1>&2
2050 exit $EXIT_FAILURE
2051 ;;
2052 *.$libext) linkmode=oldlib ;;
2053 *.lo | *.$objext) linkmode=obj ;;
2054 *.la) linkmode=lib ;;
2055 *) linkmode=prog ;; # Anything else should be a program.
2056 esac
2057
2058 case $host in
2059 *cygwin* | *mingw* | *pw32*)
2060 # don't eliminate duplications in $postdeps and $predeps
2061 duplicate_compiler_generated_deps=yes
2062 ;;
2063 *)
2064 duplicate_compiler_generated_deps=$duplicate_deps
2065 ;;
2066 esac
2067 specialdeplibs=
2068
2069 libs=
2070 # Find all interdependent deplibs by searching for libraries
2071 # that are linked more than once (e.g. -la -lb -la)
2072 for deplib in $deplibs; do
2073 if test "X$duplicate_deps" = "Xyes" ; then
2074 case "$libs " in
2075 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
2076 esac
2077 fi
2078 libs="$libs $deplib"
2079 done
2080
2081 if test "$linkmode" = lib; then
2082 libs="$predeps $libs $compiler_lib_search_path $postdeps"
2083
2084 # Compute libraries that are listed more than once in $predeps
2085 # $postdeps and mark them as special (i.e., whose duplicates are
2086 # not to be eliminated).
2087 pre_post_deps=
2088 if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
2089 for pre_post_dep in $predeps $postdeps; do
2090 case "$pre_post_deps " in
2091 *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
2092 esac
2093 pre_post_deps="$pre_post_deps $pre_post_dep"
2094 done
2095 fi
2096 pre_post_deps=
2097 fi
2098
2099 deplibs=
2100 newdependency_libs=
2101 newlib_search_path=
2102 need_relink=no # whether we're linking any uninstalled libtool libraries
2103 notinst_deplibs= # not-installed libtool libraries
2104 case $linkmode in
2105 lib)
2106 passes="conv link"
2107 for file in $dlfiles $dlprefiles; do
2108 case $file in
2109 *.la) ;;
2110 *)
2111 $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
2112 exit $EXIT_FAILURE
2113 ;;
2114 esac
2115 done
2116 ;;
2117 prog)
2118 compile_deplibs=
2119 finalize_deplibs=
2120 alldeplibs=no
2121 newdlfiles=
2122 newdlprefiles=
2123 passes="conv scan dlopen dlpreopen link"
2124 ;;
2125 *) passes="conv"
2126 ;;
2127 esac
2128 for pass in $passes; do
2129 if test "$linkmode,$pass" = "lib,link" ||
2130 test "$linkmode,$pass" = "prog,scan"; then
2131 libs="$deplibs"
2132 deplibs=
2133 fi
2134 if test "$linkmode" = prog; then
2135 case $pass in
2136 dlopen) libs="$dlfiles" ;;
2137 dlpreopen) libs="$dlprefiles" ;;
2138 link)
2139 libs="$deplibs %DEPLIBS%"
2140 test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
2141 ;;
2142 esac
2143 fi
2144 if test "$pass" = dlopen; then
2145 # Collect dlpreopened libraries
2146 save_deplibs="$deplibs"
2147 deplibs=
2148 fi
2149 for deplib in $libs; do
2150 lib=
2151 found=no
2152 case $deplib in
2153 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
2154 if test "$linkmode,$pass" = "prog,link"; then
2155 compile_deplibs="$deplib $compile_deplibs"
2156 finalize_deplibs="$deplib $finalize_deplibs"
2157 else
2158 compiler_flags="$compiler_flags $deplib"
2159 fi
2160 continue
2161 ;;
2162 -l*)
2163 if test "$linkmode" != lib && test "$linkmode" != prog; then
2164 $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
2165 continue
2166 fi
2167 name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
2168 if test "$linkmode" = lib; then
2169 searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
2170 else
2171 searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
2172 fi
2173 for searchdir in $searchdirs; do
2174 for search_ext in .la $std_shrext .so .a; do
2175 # Search the libtool library
2176 lib="$searchdir/lib${name}${search_ext}"
2177 if test -f "$lib"; then
2178 if test "$search_ext" = ".la"; then
2179 found=yes
2180 else
2181 found=no
2182 fi
2183 break 2
2184 fi
2185 done
2186 done
2187 if test "$found" != yes; then
2188 # deplib doesn't seem to be a libtool library
2189 if test "$linkmode,$pass" = "prog,link"; then
2190 compile_deplibs="$deplib $compile_deplibs"
2191 finalize_deplibs="$deplib $finalize_deplibs"
2192 else
2193 deplibs="$deplib $deplibs"
2194 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
2195 fi
2196 continue
2197 else # deplib is a libtool library
2198 # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
2199 # We need to do some special things here, and not later.
2200 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
2201 case " $predeps $postdeps " in
2202 *" $deplib "*)
2203 if (${SED} -e '2q' $lib |
2204 grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
2205 library_names=
2206 old_library=
2207 case $lib in
2208 */* | *\\*) . $lib ;;
2209 *) . ./$lib ;;
2210 esac
2211 for l in $old_library $library_names; do
2212 ll="$l"
2213 done
2214 if test "X$ll" = "X$old_library" ; then # only static version available
2215 found=no
2216 ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
2217 test "X$ladir" = "X$lib" && ladir="."
2218 lib=$ladir/$old_library
2219 if test "$linkmode,$pass" = "prog,link"; then
2220 compile_deplibs="$deplib $compile_deplibs"
2221 finalize_deplibs="$deplib $finalize_deplibs"
2222 else
2223 deplibs="$deplib $deplibs"
2224 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
2225 fi
2226 continue
2227 fi
2228 fi
2229 ;;
2230 *) ;;
2231 esac
2232 fi
2233 fi
2234 ;; # -l
2235 -L*)
2236 case $linkmode in
2237 lib)
2238 deplibs="$deplib $deplibs"
2239 test "$pass" = conv && continue
2240 newdependency_libs="$deplib $newdependency_libs"
2241 newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
2242 ;;
2243 prog)
2244 if test "$pass" = conv; then
2245 deplibs="$deplib $deplibs"
2246 continue
2247 fi
2248 if test "$pass" = scan; then
2249 deplibs="$deplib $deplibs"
2250 else
2251 compile_deplibs="$deplib $compile_deplibs"
2252 finalize_deplibs="$deplib $finalize_deplibs"
2253 fi
2254 newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
2255 ;;
2256 *)
2257 $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
2258 ;;
2259 esac # linkmode
2260 continue
2261 ;; # -L
2262 -R*)
2263 if test "$pass" = link; then
2264 dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
2265 # Make sure the xrpath contains only unique directories.
2266 case "$xrpath " in
2267 *" $dir "*) ;;
2268 *) xrpath="$xrpath $dir" ;;
2269 esac
2270 fi
2271 deplibs="$deplib $deplibs"
2272 continue
2273 ;;
2274 *.la) lib="$deplib" ;;
2275 *.$libext)
2276 if test "$pass" = conv; then
2277 deplibs="$deplib $deplibs"
2278 continue
2279 fi
2280 case $linkmode in
2281 lib)
2282 valid_a_lib=no
2283 case $deplibs_check_method in
2284 match_pattern*)
2285 set dummy $deplibs_check_method
2286 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
2287 if eval $echo \"$deplib\" 2>/dev/null \
2288 | $SED 10q \
2289 | $EGREP "$match_pattern_regex" > /dev/null; then
2290 valid_a_lib=yes
2291 fi
2292 ;;
2293 pass_all)
2294 valid_a_lib=yes
2295 ;;
2296 esac
2297 if test "$valid_a_lib" != yes; then
2298 $echo
2299 $echo "*** Warning: Trying to link with static lib archive $deplib."
2300 $echo "*** I have the capability to make that library automatically link in when"
2301 $echo "*** you link to this library. But I can only do this if you have a"
2302 $echo "*** shared version of the library, which you do not appear to have"
2303 $echo "*** because the file extensions .$libext of this argument makes me believe"
2304 $echo "*** that it is just a static archive that I should not used here."
2305 else
2306 $echo
2307 $echo "*** Warning: Linking the shared library $output against the"
2308 $echo "*** static library $deplib is not portable!"
2309 deplibs="$deplib $deplibs"
2310 fi
2311 continue
2312 ;;
2313 prog)
2314 if test "$pass" != link; then
2315 deplibs="$deplib $deplibs"
2316 else
2317 compile_deplibs="$deplib $compile_deplibs"
2318 finalize_deplibs="$deplib $finalize_deplibs"
2319 fi
2320 continue
2321 ;;
2322 esac # linkmode
2323 ;; # *.$libext
2324 *.lo | *.$objext)
2325 if test "$pass" = conv; then
2326 deplibs="$deplib $deplibs"
2327 elif test "$linkmode" = prog; then
2328 if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
2329 # If there is no dlopen support or we're linking statically,
2330 # we need to preload.
2331 newdlprefiles="$newdlprefiles $deplib"
2332 compile_deplibs="$deplib $compile_deplibs"
2333 finalize_deplibs="$deplib $finalize_deplibs"
2334 else
2335 newdlfiles="$newdlfiles $deplib"
2336 fi
2337 fi
2338 continue
2339 ;;
2340 %DEPLIBS%)
2341 alldeplibs=yes
2342 continue
2343 ;;
2344 esac # case $deplib
2345 if test "$found" = yes || test -f "$lib"; then :
2346 else
2347 $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
2348 exit $EXIT_FAILURE
2349 fi
2350
2351 # Check to see that this really is a libtool archive.
2352 if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
2353 else
2354 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
2355 exit $EXIT_FAILURE
2356 fi
2357
2358 ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
2359 test "X$ladir" = "X$lib" && ladir="."
2360
2361 dlname=
2362 dlopen=
2363 dlpreopen=
2364 libdir=
2365 library_names=
2366 old_library=
2367 # If the library was installed with an old release of libtool,
2368 # it will not redefine variables installed, or shouldnotlink
2369 installed=yes
2370 shouldnotlink=no
2371 avoidtemprpath=
2372
2373
2374 # Read the .la file
2375 case $lib in
2376 */* | *\\*) . $lib ;;
2377 *) . ./$lib ;;
2378 esac
2379
2380 if test "$linkmode,$pass" = "lib,link" ||
2381 test "$linkmode,$pass" = "prog,scan" ||
2382 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
2383 test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
2384 test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
2385 fi
2386
2387 if test "$pass" = conv; then
2388 # Only check for convenience libraries
2389 deplibs="$lib $deplibs"
2390 if test -z "$libdir"; then
2391 if test -z "$old_library"; then
2392 $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
2393 exit $EXIT_FAILURE
2394 fi
2395 # It is a libtool convenience library, so add in its objects.
2396 convenience="$convenience $ladir/$objdir/$old_library"
2397 old_convenience="$old_convenience $ladir/$objdir/$old_library"
2398 tmp_libs=
2399 for deplib in $dependency_libs; do
2400 deplibs="$deplib $deplibs"
2401 if test "X$duplicate_deps" = "Xyes" ; then
2402 case "$tmp_libs " in
2403 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
2404 esac
2405 fi
2406 tmp_libs="$tmp_libs $deplib"
2407 done
2408 elif test "$linkmode" != prog && test "$linkmode" != lib; then
2409 $echo "$modename: \`$lib' is not a convenience library" 1>&2
2410 exit $EXIT_FAILURE
2411 fi
2412 continue
2413 fi # $pass = conv
2414
2415
2416 # Get the name of the library we link against.
2417 linklib=
2418 for l in $old_library $library_names; do
2419 linklib="$l"
2420 done
2421 if test -z "$linklib"; then
2422 $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
2423 exit $EXIT_FAILURE
2424 fi
2425
2426 # This library was specified with -dlopen.
2427 if test "$pass" = dlopen; then
2428 if test -z "$libdir"; then
2429 $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
2430 exit $EXIT_FAILURE
2431 fi
2432 if test -z "$dlname" ||
2433 test "$dlopen_support" != yes ||
2434 test "$build_libtool_libs" = no; then
2435 # If there is no dlname, no dlopen support or we're linking
2436 # statically, we need to preload. We also need to preload any
2437 # dependent libraries so libltdl's deplib preloader doesn't
2438 # bomb out in the load deplibs phase.
2439 dlprefiles="$dlprefiles $lib $dependency_libs"
2440 else
2441 newdlfiles="$newdlfiles $lib"
2442 fi
2443 continue
2444 fi # $pass = dlopen
2445
2446 # We need an absolute path.
2447 case $ladir in
2448 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
2449 *)
2450 abs_ladir=`cd "$ladir" && pwd`
2451 if test -z "$abs_ladir"; then
2452 $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
2453 $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
2454 abs_ladir="$ladir"
2455 fi
2456 ;;
2457 esac
2458 laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
2459
2460 # Find the relevant object directory and library name.
2461 if test "X$installed" = Xyes; then
2462 if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
2463 $echo "$modename: warning: library \`$lib' was moved." 1>&2
2464 dir="$ladir"
2465 absdir="$abs_ladir"
2466 libdir="$abs_ladir"
2467 else
2468 dir="$libdir"
2469 absdir="$libdir"
2470 fi
2471 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
2472 else
2473 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
2474 dir="$ladir"
2475 absdir="$abs_ladir"
2476 # Remove this search path later
2477 notinst_path="$notinst_path $abs_ladir"
2478 else
2479 dir="$ladir/$objdir"
2480 absdir="$abs_ladir/$objdir"
2481 # Remove this search path later
2482 notinst_path="$notinst_path $abs_ladir"
2483 fi
2484 fi # $installed = yes
2485 name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
2486
2487 # This library was specified with -dlpreopen.
2488 if test "$pass" = dlpreopen; then
2489 if test -z "$libdir"; then
2490 $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
2491 exit $EXIT_FAILURE
2492 fi
2493 # Prefer using a static library (so that no silly _DYNAMIC symbols
2494 # are required to link).
2495 if test -n "$old_library"; then
2496 newdlprefiles="$newdlprefiles $dir/$old_library"
2497 # Otherwise, use the dlname, so that lt_dlopen finds it.
2498 elif test -n "$dlname"; then
2499 newdlprefiles="$newdlprefiles $dir/$dlname"
2500 else
2501 newdlprefiles="$newdlprefiles $dir/$linklib"
2502 fi
2503 fi # $pass = dlpreopen
2504
2505 if test -z "$libdir"; then
2506 # Link the convenience library
2507 if test "$linkmode" = lib; then
2508 deplibs="$dir/$old_library $deplibs"
2509 elif test "$linkmode,$pass" = "prog,link"; then
2510 compile_deplibs="$dir/$old_library $compile_deplibs"
2511 finalize_deplibs="$dir/$old_library $finalize_deplibs"
2512 else
2513 deplibs="$lib $deplibs" # used for prog,scan pass
2514 fi
2515 continue
2516 fi
2517
2518
2519 if test "$linkmode" = prog && test "$pass" != link; then
2520 newlib_search_path="$newlib_search_path $ladir"
2521 deplibs="$lib $deplibs"
2522
2523 linkalldeplibs=no
2524 if test "$link_all_deplibs" != no || test -z "$library_names" ||
2525 test "$build_libtool_libs" = no; then
2526 linkalldeplibs=yes
2527 fi
2528
2529 tmp_libs=
2530 for deplib in $dependency_libs; do
2531 case $deplib in
2532 -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
2533 esac
2534 # Need to link against all dependency_libs?
2535 if test "$linkalldeplibs" = yes; then
2536 deplibs="$deplib $deplibs"
2537 else
2538 # Need to hardcode shared library paths
2539 # or/and link against static libraries
2540 newdependency_libs="$deplib $newdependency_libs"
2541 fi
2542 if test "X$duplicate_deps" = "Xyes" ; then
2543 case "$tmp_libs " in
2544 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
2545 esac
2546 fi
2547 tmp_libs="$tmp_libs $deplib"
2548 done # for deplib
2549 continue
2550 fi # $linkmode = prog...
2551
2552 if test "$linkmode,$pass" = "prog,link"; then
2553 if test -n "$library_names" &&
2554 { { test "$prefer_static_libs" = no ||
2555 test "$prefer_static_libs,$installed" = "built,yes"; } ||
2556 test -z "$old_library"; }; then
2557 # We need to hardcode the library path
2558 if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
2559 # Make sure the rpath contains only unique directories.
2560 case "$temp_rpath " in
2561 *" $dir "*) ;;
2562 *" $absdir "*) ;;
2563 *) temp_rpath="$temp_rpath $absdir" ;;
2564 esac
2565 fi
2566
2567 # Hardcode the library path.
2568 # Skip directories that are in the system default run-time
2569 # search path.
2570 case " $sys_lib_dlsearch_path " in
2571 *" $absdir "*) ;;
2572 *)
2573 case "$compile_rpath " in
2574 *" $absdir "*) ;;
2575 *) compile_rpath="$compile_rpath $absdir"
2576 esac
2577 ;;
2578 esac
2579 case " $sys_lib_dlsearch_path " in
2580 *" $libdir "*) ;;
2581 *)
2582 case "$finalize_rpath " in
2583 *" $libdir "*) ;;
2584 *) finalize_rpath="$finalize_rpath $libdir"
2585 esac
2586 ;;
2587 esac
2588 fi # $linkmode,$pass = prog,link...
2589
2590 if test "$alldeplibs" = yes &&
2591 { test "$deplibs_check_method" = pass_all ||
2592 { test "$build_libtool_libs" = yes &&
2593 test -n "$library_names"; }; }; then
2594 # We only need to search for static libraries
2595 continue
2596 fi
2597 fi
2598
2599 link_static=no # Whether the deplib will be linked statically
2600 use_static_libs=$prefer_static_libs
2601 if test "$use_static_libs" = built && test "$installed" = yes ; then
2602 use_static_libs=no
2603 fi
2604 if test -n "$library_names" &&
2605 { test "$use_static_libs" = no || test -z "$old_library"; }; then
2606 if test "$installed" = no; then
2607 notinst_deplibs="$notinst_deplibs $lib"
2608 need_relink=yes
2609 fi
2610 # This is a shared library
2611
2612 # Warn about portability, can't link against -module's on
2613 # some systems (darwin)
2614 if test "$shouldnotlink" = yes && test "$pass" = link ; then
2615 $echo
2616 if test "$linkmode" = prog; then
2617 $echo "*** Warning: Linking the executable $output against the loadable module"
2618 else
2619 $echo "*** Warning: Linking the shared library $output against the loadable module"
2620 fi
2621 $echo "*** $linklib is not portable!"
2622 fi
2623 if test "$linkmode" = lib &&
2624 test "$hardcode_into_libs" = yes; then
2625 # Hardcode the library path.
2626 # Skip directories that are in the system default run-time
2627 # search path.
2628 case " $sys_lib_dlsearch_path " in
2629 *" $absdir "*) ;;
2630 *)
2631 case "$compile_rpath " in
2632 *" $absdir "*) ;;
2633 *) compile_rpath="$compile_rpath $absdir"
2634 esac
2635 ;;
2636 esac
2637 case " $sys_lib_dlsearch_path " in
2638 *" $libdir "*) ;;
2639 *)
2640 case "$finalize_rpath " in
2641 *" $libdir "*) ;;
2642 *) finalize_rpath="$finalize_rpath $libdir"
2643 esac
2644 ;;
2645 esac
2646 fi
2647
2648 if test -n "$old_archive_from_expsyms_cmds"; then
2649 # figure out the soname
2650 set dummy $library_names
2651 realname="$2"
2652 shift; shift
2653 libname=`eval \\$echo \"$libname_spec\"`
2654 # use dlname if we got it. it's perfectly good, no?
2655 if test -n "$dlname"; then
2656 soname="$dlname"
2657 elif test -n "$soname_spec"; then
2658 # bleh windows
2659 case $host in
2660 *cygwin* | mingw*)
2661 major=`expr $current - $age`
2662 versuffix="-$major"
2663 ;;
2664 esac
2665 eval soname=\"$soname_spec\"
2666 else
2667 soname="$realname"
2668 fi
2669
2670 # Make a new name for the extract_expsyms_cmds to use
2671 soroot="$soname"
2672 soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
2673 newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
2674
2675 # If the library has no export list, then create one now
2676 if test -f "$output_objdir/$soname-def"; then :
2677 else
2678 $show "extracting exported symbol list from \`$soname'"
2679 save_ifs="$IFS"; IFS='~'
2680 cmds=$extract_expsyms_cmds
2681 for cmd in $cmds; do
2682 IFS="$save_ifs"
2683 eval cmd=\"$cmd\"
2684 $show "$cmd"
2685 $run eval "$cmd" || exit $?
2686 done
2687 IFS="$save_ifs"
2688 fi
2689
2690 # Create $newlib
2691 if test -f "$output_objdir/$newlib"; then :; else
2692 $show "generating import library for \`$soname'"
2693 save_ifs="$IFS"; IFS='~'
2694 cmds=$old_archive_from_expsyms_cmds
2695 for cmd in $cmds; do
2696 IFS="$save_ifs"
2697 eval cmd=\"$cmd\"
2698 $show "$cmd"
2699 $run eval "$cmd" || exit $?
2700 done
2701 IFS="$save_ifs"
2702 fi
2703 # make sure the library variables are pointing to the new library
2704 dir=$output_objdir
2705 linklib=$newlib
2706 fi # test -n "$old_archive_from_expsyms_cmds"
2707
2708 if test "$linkmode" = prog || test "$mode" != relink; then
2709 add_shlibpath=
2710 add_dir=
2711 add=
2712 lib_linked=yes
2713 case $hardcode_action in
2714 immediate | unsupported)
2715 if test "$hardcode_direct" = no; then
2716 add="$dir/$linklib"
2717 case $host in
2718 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
2719 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
2720 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
2721 *-*-unixware7*) add_dir="-L$dir" ;;
2722 *-*-darwin* )
2723 # if the lib is a module then we can not link against
2724 # it, someone is ignoring the new warnings I added
2725 if /usr/bin/file -L $add 2> /dev/null |
2726 $EGREP ": [^:]* bundle" >/dev/null ; then
2727 $echo "** Warning, lib $linklib is a module, not a shared library"
2728 if test -z "$old_library" ; then
2729 $echo
2730 $echo "** And there doesn't seem to be a static archive available"
2731 $echo "** The link will probably fail, sorry"
2732 else
2733 add="$dir/$old_library"
2734 fi
2735 fi
2736 esac
2737 elif test "$hardcode_minus_L" = no; then
2738 case $host in
2739 *-*-sunos*) add_shlibpath="$dir" ;;
2740 esac
2741 add_dir="-L$dir"
2742 add="-l$name"
2743 elif test "$hardcode_shlibpath_var" = no; then
2744 add_shlibpath="$dir"
2745 add="-l$name"
2746 else
2747 lib_linked=no
2748 fi
2749 ;;
2750 relink)
2751 if test "$hardcode_direct" = yes; then
2752 add="$dir/$linklib"
2753 elif test "$hardcode_minus_L" = yes; then
2754 add_dir="-L$dir"
2755 # Try looking first in the location we're being installed to.
2756 if test -n "$inst_prefix_dir"; then
2757 case $libdir in
2758 [\\/]*)
2759 add_dir="$add_dir -L$inst_prefix_dir$libdir"
2760 ;;
2761 esac
2762 fi
2763 add="-l$name"
2764 elif test "$hardcode_shlibpath_var" = yes; then
2765 add_shlibpath="$dir"
2766 add="-l$name"
2767 else
2768 lib_linked=no
2769 fi
2770 ;;
2771 *) lib_linked=no ;;
2772 esac
2773
2774 if test "$lib_linked" != yes; then
2775 $echo "$modename: configuration error: unsupported hardcode properties"
2776 exit $EXIT_FAILURE
2777 fi
2778
2779 if test -n "$add_shlibpath"; then
2780 case :$compile_shlibpath: in
2781 *":$add_shlibpath:"*) ;;
2782 *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
2783 esac
2784 fi
2785 if test "$linkmode" = prog; then
2786 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
2787 test -n "$add" && compile_deplibs="$add $compile_deplibs"
2788 else
2789 test -n "$add_dir" && deplibs="$add_dir $deplibs"
2790 test -n "$add" && deplibs="$add $deplibs"
2791 if test "$hardcode_direct" != yes && \
2792 test "$hardcode_minus_L" != yes && \
2793 test "$hardcode_shlibpath_var" = yes; then
2794 case :$finalize_shlibpath: in
2795 *":$libdir:"*) ;;
2796 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
2797 esac
2798 fi
2799 fi
2800 fi
2801
2802 if test "$linkmode" = prog || test "$mode" = relink; then
2803 add_shlibpath=
2804 add_dir=
2805 add=
2806 # Finalize command for both is simple: just hardcode it.
2807 if test "$hardcode_direct" = yes; then
2808 add="$libdir/$linklib"
2809 elif test "$hardcode_minus_L" = yes; then
2810 add_dir="-L$libdir"
2811 add="-l$name"
2812 elif test "$hardcode_shlibpath_var" = yes; then
2813 case :$finalize_shlibpath: in
2814 *":$libdir:"*) ;;
2815 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
2816 esac
2817 add="-l$name"
2818 elif test "$hardcode_automatic" = yes; then
2819 if test -n "$inst_prefix_dir" &&
2820 test -f "$inst_prefix_dir$libdir/$linklib" ; then
2821 add="$inst_prefix_dir$libdir/$linklib"
2822 else
2823 add="$libdir/$linklib"
2824 fi
2825 else
2826 # We cannot seem to hardcode it, guess we'll fake it.
2827 add_dir="-L$libdir"
2828 # Try looking first in the location we're being installed to.
2829 if test -n "$inst_prefix_dir"; then
2830 case $libdir in
2831 [\\/]*)
2832 add_dir="$add_dir -L$inst_prefix_dir$libdir"
2833 ;;
2834 esac
2835 fi
2836 add="-l$name"
2837 fi
2838
2839 if test "$linkmode" = prog; then
2840 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
2841 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
2842 else
2843 test -n "$add_dir" && deplibs="$add_dir $deplibs"
2844 test -n "$add" && deplibs="$add $deplibs"
2845 fi
2846 fi
2847 elif test "$linkmode" = prog; then
2848 # Here we assume that one of hardcode_direct or hardcode_minus_L
2849 # is not unsupported. This is valid on all known static and
2850 # shared platforms.
2851 if test "$hardcode_direct" != unsupported; then
2852 test -n "$old_library" && linklib="$old_library"
2853 compile_deplibs="$dir/$linklib $compile_deplibs"
2854 finalize_deplibs="$dir/$linklib $finalize_deplibs"
2855 else
2856 compile_deplibs="-l$name -L$dir $compile_deplibs"
2857 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
2858 fi
2859 elif test "$build_libtool_libs" = yes; then
2860 # Not a shared library
2861 if test "$deplibs_check_method" != pass_all; then
2862 # We're trying link a shared library against a static one
2863 # but the system doesn't support it.
2864
2865 # Just print a warning and add the library to dependency_libs so
2866 # that the program can be linked against the static library.
2867 $echo
2868 $echo "*** Warning: This system can not link to static lib archive $lib."
2869 $echo "*** I have the capability to make that library automatically link in when"
2870 $echo "*** you link to this library. But I can only do this if you have a"
2871 $echo "*** shared version of the library, which you do not appear to have."
2872 if test "$module" = yes; then
2873 $echo "*** But as you try to build a module library, libtool will still create "
2874 $echo "*** a static module, that should work as long as the dlopening application"
2875 $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
2876 if test -z "$global_symbol_pipe"; then
2877 $echo
2878 $echo "*** However, this would only work if libtool was able to extract symbol"
2879 $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
2880 $echo "*** not find such a program. So, this module is probably useless."
2881 $echo "*** \`nm' from GNU binutils and a full rebuild may help."
2882 fi
2883 if test "$build_old_libs" = no; then
2884 build_libtool_libs=module
2885 build_old_libs=yes
2886 else
2887 build_libtool_libs=no
2888 fi
2889 fi
2890 else
2891 deplibs="$dir/$old_library $deplibs"
2892 link_static=yes
2893 fi
2894 fi # link shared/static library?
2895
2896 if test "$linkmode" = lib; then
2897 if test -n "$dependency_libs" &&
2898 { test "$hardcode_into_libs" != yes ||
2899 test "$build_old_libs" = yes ||
2900 test "$link_static" = yes; }; then
2901 # Extract -R from dependency_libs
2902 temp_deplibs=
2903 for libdir in $dependency_libs; do
2904 case $libdir in
2905 -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
2906 case " $xrpath " in
2907 *" $temp_xrpath "*) ;;
2908 *) xrpath="$xrpath $temp_xrpath";;
2909 esac;;
2910 *) temp_deplibs="$temp_deplibs $libdir";;
2911 esac
2912 done
2913 dependency_libs="$temp_deplibs"
2914 fi
2915
2916 newlib_search_path="$newlib_search_path $absdir"
2917 # Link against this library
2918 test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
2919 # ... and its dependency_libs
2920 tmp_libs=
2921 for deplib in $dependency_libs; do
2922 newdependency_libs="$deplib $newdependency_libs"
2923 if test "X$duplicate_deps" = "Xyes" ; then
2924 case "$tmp_libs " in
2925 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
2926 esac
2927 fi
2928 tmp_libs="$tmp_libs $deplib"
2929 done
2930
2931 if test "$link_all_deplibs" != no; then
2932 # Add the search paths of all dependency libraries
2933 for deplib in $dependency_libs; do
2934 case $deplib in
2935 -L*) path="$deplib" ;;
2936 *.la)
2937 dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
2938 test "X$dir" = "X$deplib" && dir="."
2939 # We need an absolute path.
2940 case $dir in
2941 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
2942 *)
2943 absdir=`cd "$dir" && pwd`
2944 if test -z "$absdir"; then
2945 $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
2946 absdir="$dir"
2947 fi
2948 ;;
2949 esac
2950 if grep "^installed=no" $deplib > /dev/null; then
2951 path="$absdir/$objdir"
2952 else
2953 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
2954 if test -z "$libdir"; then
2955 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
2956 exit $EXIT_FAILURE
2957 fi
2958 if test "$absdir" != "$libdir"; then
2959 $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
2960 fi
2961 path="$absdir"
2962 fi
2963 depdepl=
2964 case $host in
2965 *-*-darwin*)
2966 # we do not want to link against static libs,
2967 # but need to link against shared
2968 eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
2969 eval deplibdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
2970 if test -n "$deplibrary_names" ; then
2971 for tmp in $deplibrary_names ; do
2972 depdepl=$tmp
2973 done
2974 if test -f "$deplibdir/$depdepl" ; then
2975 depdepl="$deplibdir/$depdepl"
2976 elif test -f "$path/$depdepl" ; then
2977 depdepl="$path/$depdepl"
2978 else
2979 # Can't find it, oh well...
2980 depdepl=
2981 fi
2982 # do not add paths which are already there
2983 case " $newlib_search_path " in
2984 *" $path "*) ;;
2985 *) newlib_search_path="$newlib_search_path $path";;
2986 esac
2987 fi
2988 path=""
2989 ;;
2990 *)
2991 path="-L$path"
2992 ;;
2993 esac
2994 ;;
2995 -l*)
2996 case $host in
2997 *-*-darwin*)
2998 # Again, we only want to link against shared libraries
2999 eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
3000 for tmp in $newlib_search_path ; do
3001 if test -f "$tmp/lib$tmp_libs.dylib" ; then
3002 eval depdepl="$tmp/lib$tmp_libs.dylib"
3003 break
3004 fi
3005 done
3006 path=""
3007 ;;
3008 *) continue ;;
3009 esac
3010 ;;
3011 *) continue ;;
3012 esac
3013 case " $deplibs " in
3014 *" $path "*) ;;
3015 *) deplibs="$path $deplibs" ;;
3016 esac
3017 case " $deplibs " in
3018 *" $depdepl "*) ;;
3019 *) deplibs="$depdepl $deplibs" ;;
3020 esac
3021 done
3022 fi # link_all_deplibs != no
3023 fi # linkmode = lib
3024 done # for deplib in $libs
3025 dependency_libs="$newdependency_libs"
3026 if test "$pass" = dlpreopen; then
3027 # Link the dlpreopened libraries before other libraries
3028 for deplib in $save_deplibs; do
3029 deplibs="$deplib $deplibs"
3030 done
3031 fi
3032 if test "$pass" != dlopen; then
3033 if test "$pass" != conv; then
3034 # Make sure lib_search_path contains only unique directories.
3035 lib_search_path=
3036 for dir in $newlib_search_path; do
3037 case "$lib_search_path " in
3038 *" $dir "*) ;;
3039 *) lib_search_path="$lib_search_path $dir" ;;
3040 esac
3041 done
3042 newlib_search_path=
3043 fi
3044
3045 if test "$linkmode,$pass" != "prog,link"; then
3046 vars="deplibs"
3047 else
3048 vars="compile_deplibs finalize_deplibs"
3049 fi
3050 for var in $vars dependency_libs; do
3051 # Add libraries to $var in reverse order
3052 eval tmp_libs=\"\$$var\"
3053 new_libs=
3054 for deplib in $tmp_libs; do
3055 # FIXME: Pedantically, this is the right thing to do, so
3056 # that some nasty dependency loop isn't accidentally
3057 # broken:
3058 #new_libs="$deplib $new_libs"
3059 # Pragmatically, this seems to cause very few problems in
3060 # practice:
3061 case $deplib in
3062 -L*) new_libs="$deplib $new_libs" ;;
3063 -R*) ;;
3064 *)
3065 # And here is the reason: when a library appears more
3066 # than once as an explicit dependence of a library, or
3067 # is implicitly linked in more than once by the
3068 # compiler, it is considered special, and multiple
3069 # occurrences thereof are not removed. Compare this
3070 # with having the same library being listed as a
3071 # dependency of multiple other libraries: in this case,
3072 # we know (pedantically, we assume) the library does not
3073 # need to be listed more than once, so we keep only the
3074 # last copy. This is not always right, but it is rare
3075 # enough that we require users that really mean to play
3076 # such unportable linking tricks to link the library
3077 # using -Wl,-lname, so that libtool does not consider it
3078 # for duplicate removal.
3079 case " $specialdeplibs " in
3080 *" $deplib "*) new_libs="$deplib $new_libs" ;;
3081 *)
3082 case " $new_libs " in
3083 *" $deplib "*) ;;
3084 *) new_libs="$deplib $new_libs" ;;
3085 esac
3086 ;;
3087 esac
3088 ;;
3089 esac
3090 done
3091 tmp_libs=
3092 for deplib in $new_libs; do
3093 case $deplib in
3094 -L*)
3095 case " $tmp_libs " in
3096 *" $deplib "*) ;;
3097 *) tmp_libs="$tmp_libs $deplib" ;;
3098 esac
3099 ;;
3100 *) tmp_libs="$tmp_libs $deplib" ;;
3101 esac
3102 done
3103 eval $var=\"$tmp_libs\"
3104 done # for var
3105 fi
3106 # Last step: remove runtime libs from dependency_libs
3107 # (they stay in deplibs)
3108 tmp_libs=
3109 for i in $dependency_libs ; do
3110 case " $predeps $postdeps $compiler_lib_search_path " in
3111 *" $i "*)
3112 i=""
3113 ;;
3114 esac
3115 if test -n "$i" ; then
3116 tmp_libs="$tmp_libs $i"
3117 fi
3118 done
3119 dependency_libs=$tmp_libs
3120 done # for pass
3121 if test "$linkmode" = prog; then
3122 dlfiles="$newdlfiles"
3123 dlprefiles="$newdlprefiles"
3124 fi
3125
3126 case $linkmode in
3127 oldlib)
3128 case " $deplibs" in
3129 *\ -l* | *\ -L*)
3130 $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 ;;
3131 esac
3132
3133 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
3134 $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
3135 fi
3136
3137 if test -n "$rpath"; then
3138 $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
3139 fi
3140
3141 if test -n "$xrpath"; then
3142 $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
3143 fi
3144
3145 if test -n "$vinfo"; then
3146 $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
3147 fi
3148
3149 if test -n "$release"; then
3150 $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
3151 fi
3152
3153 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
3154 $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
3155 fi
3156
3157 # Now set the variables for building old libraries.
3158 build_libtool_libs=no
3159 oldlibs="$output"
3160 objs="$objs$old_deplibs"
3161 ;;
3162
3163 lib)
3164 # Make sure we only generate libraries of the form `libNAME.la'.
3165 case $outputname in
3166 lib*)
3167 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
3168 eval shared_ext=\"$shrext_cmds\"
3169 eval libname=\"$libname_spec\"
3170 ;;
3171 *)
3172 if test "$module" = no; then
3173 $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
3174 $echo "$help" 1>&2
3175 exit $EXIT_FAILURE
3176 fi
3177 if test "$need_lib_prefix" != no; then
3178 # Add the "lib" prefix for modules if required
3179 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
3180 eval shared_ext=\"$shrext_cmds\"
3181 eval libname=\"$libname_spec\"
3182 else
3183 libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
3184 fi
3185 ;;
3186 esac
3187
3188 if test -n "$objs"; then
3189 if test "$deplibs_check_method" != pass_all; then
3190 $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
3191 exit $EXIT_FAILURE
3192 else
3193 $echo
3194 $echo "*** Warning: Linking the shared library $output against the non-libtool"
3195 $echo "*** objects $objs is not portable!"
3196 libobjs="$libobjs $objs"
3197 fi
3198 fi
3199
3200 if test "$dlself" != no; then
3201 $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
3202 fi
3203
3204 set dummy $rpath
3205 if test "$#" -gt 2; then
3206 $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
3207 fi
3208 install_libdir="$2"
3209
3210 oldlibs=
3211 if test -z "$rpath"; then
3212 if test "$build_libtool_libs" = yes; then
3213 # Building a libtool convenience library.
3214 # Some compilers have problems with a `.al' extension so
3215 # convenience libraries should have the same extension an
3216 # archive normally would.
3217 oldlibs="$output_objdir/$libname.$libext $oldlibs"
3218 build_libtool_libs=convenience
3219 build_old_libs=yes
3220 fi
3221
3222 if test -n "$vinfo"; then
3223 $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
3224 fi
3225
3226 if test -n "$release"; then
3227 $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
3228 fi
3229 else
3230
3231 # Parse the version information argument.
3232 save_ifs="$IFS"; IFS=':'
3233 set dummy $vinfo 0 0 0
3234 IFS="$save_ifs"
3235
3236 if test -n "$8"; then
3237 $echo "$modename: too many parameters to \`-version-info'" 1>&2
3238 $echo "$help" 1>&2
3239 exit $EXIT_FAILURE
3240 fi
3241
3242 # convert absolute version numbers to libtool ages
3243 # this retains compatibility with .la files and attempts
3244 # to make the code below a bit more comprehensible
3245
3246 case $vinfo_number in
3247 yes)
3248 number_major="$2"
3249 number_minor="$3"
3250 number_revision="$4"
3251 #
3252 # There are really only two kinds -- those that
3253 # use the current revision as the major version
3254 # and those that subtract age and use age as
3255 # a minor version. But, then there is irix
3256 # which has an extra 1 added just for fun
3257 #
3258 case $version_type in
3259 darwin|linux|osf|windows|none)
3260 current=`expr $number_major + $number_minor`
3261 age="$number_minor"
3262 revision="$number_revision"
3263 ;;
3264 freebsd-aout|freebsd-elf|sunos)
3265 current="$number_major"
3266 revision="$number_minor"
3267 age="0"
3268 ;;
3269 irix|nonstopux)
3270 current=`expr $number_major + $number_minor`
3271 age="$number_minor"
3272 revision="$number_minor"
3273 lt_irix_increment=no
3274 ;;
3275 *)
3276 $echo "$modename: unknown library version type \`$version_type'" 1>&2
3277 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
3278 exit $EXIT_FAILURE
3279 ;;
3280 esac
3281 ;;
3282 no)
3283 current="$2"
3284 revision="$3"
3285 age="$4"
3286 ;;
3287 esac
3288
3289 # Check that each of the things are valid numbers.
3290 case $current in
3291 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
3292 *)
3293 $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
3294 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3295 exit $EXIT_FAILURE
3296 ;;
3297 esac
3298
3299 case $revision in
3300 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
3301 *)
3302 $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
3303 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3304 exit $EXIT_FAILURE
3305 ;;
3306 esac
3307
3308 case $age in
3309 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
3310 *)
3311 $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
3312 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3313 exit $EXIT_FAILURE
3314 ;;
3315 esac
3316
3317 if test "$age" -gt "$current"; then
3318 $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
3319 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3320 exit $EXIT_FAILURE
3321 fi
3322
3323 # Calculate the version variables.
3324 major=
3325 versuffix=
3326 verstring=
3327 case $version_type in
3328 none) ;;
3329
3330 darwin)
3331 # Like Linux, but with the current version available in
3332 # verstring for coding it into the library header
3333 major=.`expr $current - $age`
3334 versuffix="$major.$age.$revision"
3335 # Darwin ld doesn't like 0 for these options...
3336 minor_current=`expr $current + 1`
3337 xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
3338 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
3339 ;;
3340
3341 freebsd-aout)
3342 major=".$current"
3343 versuffix=".$current.$revision";
3344 ;;
3345
3346 freebsd-elf)
3347 major=".$current"
3348 versuffix=".$current";
3349 ;;
3350
3351 irix | nonstopux)
3352 if test "X$lt_irix_increment" = "Xno"; then
3353 major=`expr $current - $age`
3354 else
3355 major=`expr $current - $age + 1`
3356 fi
3357 case $version_type in
3358 nonstopux) verstring_prefix=nonstopux ;;
3359 *) verstring_prefix=sgi ;;
3360 esac
3361 verstring="$verstring_prefix$major.$revision"
3362
3363 # Add in all the interfaces that we are compatible with.
3364 loop=$revision
3365 while test "$loop" -ne 0; do
3366 iface=`expr $revision - $loop`
3367 loop=`expr $loop - 1`
3368 verstring="$verstring_prefix$major.$iface:$verstring"
3369 done
3370
3371 # Before this point, $major must not contain `.'.
3372 major=.$major
3373 versuffix="$major.$revision"
3374 ;;
3375
3376 linux)
3377 major=.`expr $current - $age`
3378 versuffix="$major.$age.$revision"
3379 ;;
3380
3381 osf)
3382 major=.`expr $current - $age`
3383 versuffix=".$current.$age.$revision"
3384 verstring="$current.$age.$revision"
3385
3386 # Add in all the interfaces that we are compatible with.
3387 loop=$age
3388 while test "$loop" -ne 0; do
3389 iface=`expr $current - $loop`
3390 loop=`expr $loop - 1`
3391 verstring="$verstring:${iface}.0"
3392 done
3393
3394 # Make executables depend on our current version.
3395 verstring="$verstring:${current}.0"
3396 ;;
3397
3398 sunos)
3399 major=".$current"
3400 versuffix=".$current.$revision"
3401 ;;
3402
3403 windows)
3404 # Use '-' rather than '.', since we only want one
3405 # extension on DOS 8.3 filesystems.
3406 major=`expr $current - $age`
3407 versuffix="-$major"
3408 ;;
3409
3410 *)
3411 $echo "$modename: unknown library version type \`$version_type'" 1>&2
3412 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
3413 exit $EXIT_FAILURE
3414 ;;
3415 esac
3416
3417 # Clear the version info if we defaulted, and they specified a release.
3418 if test -z "$vinfo" && test -n "$release"; then
3419 major=
3420 case $version_type in
3421 darwin)
3422 # we can't check for "0.0" in archive_cmds due to quoting
3423 # problems, so we reset it completely
3424 verstring=
3425 ;;
3426 *)
3427 verstring="0.0"
3428 ;;
3429 esac
3430 if test "$need_version" = no; then
3431 versuffix=
3432 else
3433 versuffix=".0.0"
3434 fi
3435 fi
3436
3437 # Remove version info from name if versioning should be avoided
3438 if test "$avoid_version" = yes && test "$need_version" = no; then
3439 major=
3440 versuffix=
3441 verstring=""
3442 fi
3443
3444 # Check to see if the archive will have undefined symbols.
3445 if test "$allow_undefined" = yes; then
3446 if test "$allow_undefined_flag" = unsupported; then
3447 $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
3448 build_libtool_libs=no
3449 build_old_libs=yes
3450 fi
3451 else
3452 # Don't allow undefined symbols.
3453 allow_undefined_flag="$no_undefined_flag"
3454 fi
3455 fi
3456
3457 if test "$mode" != relink; then
3458 # Remove our outputs, but don't remove object files since they
3459 # may have been created when compiling PIC objects.
3460 removelist=
3461 tempremovelist=`$echo "$output_objdir/*"`
3462 for p in $tempremovelist; do
3463 case $p in
3464 *.$objext)
3465 ;;
3466 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
3467 if test "X$precious_files_regex" != "X"; then
3468 if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
3469 then
3470 continue
3471 fi
3472 fi
3473 removelist="$removelist $p"
3474 ;;
3475 *) ;;
3476 esac
3477 done
3478 if test -n "$removelist"; then
3479 $show "${rm}r $removelist"
3480 $run ${rm}r $removelist
3481 fi
3482 fi
3483
3484 # Now set the variables for building old libraries.
3485 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
3486 oldlibs="$oldlibs $output_objdir/$libname.$libext"
3487
3488 # Transform .lo files to .o files.
3489 oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
3490 fi
3491
3492 # Eliminate all temporary directories.
3493 #for path in $notinst_path; do
3494 # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
3495 # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
3496 # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
3497 #done
3498
3499 if test -n "$xrpath"; then
3500 # If the user specified any rpath flags, then add them.
3501 temp_xrpath=
3502 for libdir in $xrpath; do
3503 temp_xrpath="$temp_xrpath -R$libdir"
3504 case "$finalize_rpath " in
3505 *" $libdir "*) ;;
3506 *) finalize_rpath="$finalize_rpath $libdir" ;;
3507 esac
3508 done
3509 if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
3510 dependency_libs="$temp_xrpath $dependency_libs"
3511 fi
3512 fi
3513
3514 # Make sure dlfiles contains only unique files that won't be dlpreopened
3515 old_dlfiles="$dlfiles"
3516 dlfiles=
3517 for lib in $old_dlfiles; do
3518 case " $dlprefiles $dlfiles " in
3519 *" $lib "*) ;;
3520 *) dlfiles="$dlfiles $lib" ;;
3521 esac
3522 done
3523
3524 # Make sure dlprefiles contains only unique files
3525 old_dlprefiles="$dlprefiles"
3526 dlprefiles=
3527 for lib in $old_dlprefiles; do
3528 case "$dlprefiles " in
3529 *" $lib "*) ;;
3530 *) dlprefiles="$dlprefiles $lib" ;;
3531 esac
3532 done
3533
3534 if test "$build_libtool_libs" = yes; then
3535 if test -n "$rpath"; then
3536 case $host in
3537 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
3538 # these systems don't actually have a c library (as such)!
3539 ;;
3540 *-*-rhapsody* | *-*-darwin1.[012])
3541 # Rhapsody C library is in the System framework
3542 deplibs="$deplibs -framework System"
3543 ;;
3544 *-*-netbsd*)
3545 # Don't link with libc until the a.out ld.so is fixed.
3546 ;;
3547 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
3548 # Do not include libc due to us having libc/libc_r.
3549 ;;
3550 *-*-sco3.2v5* | *-*-sco5v6*)
3551 # Causes problems with __ctype
3552 ;;
3553 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
3554 # Compiler inserts libc in the correct place for threads to work
3555 ;;
3556 *)
3557 # Add libc to deplibs on all other systems if necessary.
3558 if test "$build_libtool_need_lc" = "yes"; then
3559 deplibs="$deplibs -lc"
3560 fi
3561 ;;
3562 esac
3563 fi
3564
3565 # Transform deplibs into only deplibs that can be linked in shared.
3566 name_save=$name
3567 libname_save=$libname
3568 release_save=$release
3569 versuffix_save=$versuffix
3570 major_save=$major
3571 # I'm not sure if I'm treating the release correctly. I think
3572 # release should show up in the -l (ie -lgmp5) so we don't want to
3573 # add it in twice. Is that correct?
3574 release=""
3575 versuffix=""
3576 major=""
3577 newdeplibs=
3578 droppeddeps=no
3579 case $deplibs_check_method in
3580 pass_all)
3581 # Don't check for shared/static. Everything works.
3582 # This might be a little naive. We might want to check
3583 # whether the library exists or not. But this is on
3584 # osf3 & osf4 and I'm not really sure... Just
3585 # implementing what was already the behavior.
3586 newdeplibs=$deplibs
3587 ;;
3588 test_compile)
3589 # This code stresses the "libraries are programs" paradigm to its
3590 # limits. Maybe even breaks it. We compile a program, linking it
3591 # against the deplibs as a proxy for the library. Then we can check
3592 # whether they linked in statically or dynamically with ldd.
3593 $rm conftest.c
3594 cat > conftest.c <<EOF
3595 int main() { return 0; }
3596EOF
3597 $rm conftest
3598 if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
3599 ldd_output=`ldd conftest`
3600 for i in $deplibs; do
3601 name=`expr $i : '-l\(.*\)'`
3602 # If $name is empty we are operating on a -L argument.
3603 if test "$name" != "" && test "$name" != "0"; then
3604 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3605 case " $predeps $postdeps " in
3606 *" $i "*)
3607 newdeplibs="$newdeplibs $i"
3608 i=""
3609 ;;
3610 esac
3611 fi
3612 if test -n "$i" ; then
3613 libname=`eval \\$echo \"$libname_spec\"`
3614 deplib_matches=`eval \\$echo \"$library_names_spec\"`
3615 set dummy $deplib_matches
3616 deplib_match=$2
3617 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
3618 newdeplibs="$newdeplibs $i"
3619 else
3620 droppeddeps=yes
3621 $echo
3622 $echo "*** Warning: dynamic linker does not accept needed library $i."
3623 $echo "*** I have the capability to make that library automatically link in when"
3624 $echo "*** you link to this library. But I can only do this if you have a"
3625 $echo "*** shared version of the library, which I believe you do not have"
3626 $echo "*** because a test_compile did reveal that the linker did not use it for"
3627 $echo "*** its dynamic dependency list that programs get resolved with at runtime."
3628 fi
3629 fi
3630 else
3631 newdeplibs="$newdeplibs $i"
3632 fi
3633 done
3634 else
3635 # Error occurred in the first compile. Let's try to salvage
3636 # the situation: Compile a separate program for each library.
3637 for i in $deplibs; do
3638 name=`expr $i : '-l\(.*\)'`
3639 # If $name is empty we are operating on a -L argument.
3640 if test "$name" != "" && test "$name" != "0"; then
3641 $rm conftest
3642 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
3643 ldd_output=`ldd conftest`
3644 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3645 case " $predeps $postdeps " in
3646 *" $i "*)
3647 newdeplibs="$newdeplibs $i"
3648 i=""
3649 ;;
3650 esac
3651 fi
3652 if test -n "$i" ; then
3653 libname=`eval \\$echo \"$libname_spec\"`
3654 deplib_matches=`eval \\$echo \"$library_names_spec\"`
3655 set dummy $deplib_matches
3656 deplib_match=$2
3657 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
3658 newdeplibs="$newdeplibs $i"
3659 else
3660 droppeddeps=yes
3661 $echo
3662 $echo "*** Warning: dynamic linker does not accept needed library $i."
3663 $echo "*** I have the capability to make that library automatically link in when"
3664 $echo "*** you link to this library. But I can only do this if you have a"
3665 $echo "*** shared version of the library, which you do not appear to have"
3666 $echo "*** because a test_compile did reveal that the linker did not use this one"
3667 $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
3668 fi
3669 fi
3670 else
3671 droppeddeps=yes
3672 $echo
3673 $echo "*** Warning! Library $i is needed by this library but I was not able to"
3674 $echo "*** make it link in! You will probably need to install it or some"
3675 $echo "*** library that it depends on before this library will be fully"
3676 $echo "*** functional. Installing it before continuing would be even better."
3677 fi
3678 else
3679 newdeplibs="$newdeplibs $i"
3680 fi
3681 done
3682 fi
3683 ;;
3684 file_magic*)
3685 set dummy $deplibs_check_method
3686 file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
3687 for a_deplib in $deplibs; do
3688 name=`expr $a_deplib : '-l\(.*\)'`
3689 # If $name is empty we are operating on a -L argument.
3690 if test "$name" != "" && test "$name" != "0"; then
3691 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3692 case " $predeps $postdeps " in
3693 *" $a_deplib "*)
3694 newdeplibs="$newdeplibs $a_deplib"
3695 a_deplib=""
3696 ;;
3697 esac
3698 fi
3699 if test -n "$a_deplib" ; then
3700 libname=`eval \\$echo \"$libname_spec\"`
3701 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
3702 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
3703 for potent_lib in $potential_libs; do
3704 # Follow soft links.
3705 if ls -lLd "$potent_lib" 2>/dev/null \
3706 | grep " -> " >/dev/null; then
3707 continue
3708 fi
3709 # The statement above tries to avoid entering an
3710 # endless loop below, in case of cyclic links.
3711 # We might still enter an endless loop, since a link
3712 # loop can be closed while we follow links,
3713 # but so what?
3714 potlib="$potent_lib"
3715 while test -h "$potlib" 2>/dev/null; do
3716 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
3717 case $potliblink in
3718 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
3719 *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
3720 esac
3721 done
3722 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
3723 | ${SED} 10q \
3724 | $EGREP "$file_magic_regex" > /dev/null; then
3725 newdeplibs="$newdeplibs $a_deplib"
3726 a_deplib=""
3727 break 2
3728 fi
3729 done
3730 done
3731 fi
3732 if test -n "$a_deplib" ; then
3733 droppeddeps=yes
3734 $echo
3735 $echo "*** Warning: linker path does not have real file for library $a_deplib."
3736 $echo "*** I have the capability to make that library automatically link in when"
3737 $echo "*** you link to this library. But I can only do this if you have a"
3738 $echo "*** shared version of the library, which you do not appear to have"
3739 $echo "*** because I did check the linker path looking for a file starting"
3740 if test -z "$potlib" ; then
3741 $echo "*** with $libname but no candidates were found. (...for file magic test)"
3742 else
3743 $echo "*** with $libname and none of the candidates passed a file format test"
3744 $echo "*** using a file magic. Last file checked: $potlib"
3745 fi
3746 fi
3747 else
3748 # Add a -L argument.
3749 newdeplibs="$newdeplibs $a_deplib"
3750 fi
3751 done # Gone through all deplibs.
3752 ;;
3753 match_pattern*)
3754 set dummy $deplibs_check_method
3755 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
3756 for a_deplib in $deplibs; do
3757 name=`expr $a_deplib : '-l\(.*\)'`
3758 # If $name is empty we are operating on a -L argument.
3759 if test -n "$name" && test "$name" != "0"; then
3760 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3761 case " $predeps $postdeps " in
3762 *" $a_deplib "*)
3763 newdeplibs="$newdeplibs $a_deplib"
3764 a_deplib=""
3765 ;;
3766 esac
3767 fi
3768 if test -n "$a_deplib" ; then
3769 libname=`eval \\$echo \"$libname_spec\"`
3770 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
3771 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
3772 for potent_lib in $potential_libs; do
3773 potlib="$potent_lib" # see symlink-check above in file_magic test
3774 if eval $echo \"$potent_lib\" 2>/dev/null \
3775 | ${SED} 10q \
3776 | $EGREP "$match_pattern_regex" > /dev/null; then
3777 newdeplibs="$newdeplibs $a_deplib"
3778 a_deplib=""
3779 break 2
3780 fi
3781 done
3782 done
3783 fi
3784 if test -n "$a_deplib" ; then
3785 droppeddeps=yes
3786 $echo
3787 $echo "*** Warning: linker path does not have real file for library $a_deplib."
3788 $echo "*** I have the capability to make that library automatically link in when"
3789 $echo "*** you link to this library. But I can only do this if you have a"
3790 $echo "*** shared version of the library, which you do not appear to have"
3791 $echo "*** because I did check the linker path looking for a file starting"
3792 if test -z "$potlib" ; then
3793 $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
3794 else
3795 $echo "*** with $libname and none of the candidates passed a file format test"
3796 $echo "*** using a regex pattern. Last file checked: $potlib"
3797 fi
3798 fi
3799 else
3800 # Add a -L argument.
3801 newdeplibs="$newdeplibs $a_deplib"
3802 fi
3803 done # Gone through all deplibs.
3804 ;;
3805 none | unknown | *)
3806 newdeplibs=""
3807 tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
3808 -e 's/ -[LR][^ ]*//g'`
3809 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3810 for i in $predeps $postdeps ; do
3811 # can't use Xsed below, because $i might contain '/'
3812 tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
3813 done
3814 fi
3815 if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
3816 | grep . >/dev/null; then
3817 $echo
3818 if test "X$deplibs_check_method" = "Xnone"; then
3819 $echo "*** Warning: inter-library dependencies are not supported in this platform."
3820 else
3821 $echo "*** Warning: inter-library dependencies are not known to be supported."
3822 fi
3823 $echo "*** All declared inter-library dependencies are being dropped."
3824 droppeddeps=yes
3825 fi
3826 ;;
3827 esac
3828 versuffix=$versuffix_save
3829 major=$major_save
3830 release=$release_save
3831 libname=$libname_save
3832 name=$name_save
3833
3834 case $host in
3835 *-*-rhapsody* | *-*-darwin1.[012])
3836 # On Rhapsody replace the C library is the System framework
3837 newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
3838 ;;
3839 esac
3840
3841 if test "$droppeddeps" = yes; then
3842 if test "$module" = yes; then
3843 $echo
3844 $echo "*** Warning: libtool could not satisfy all declared inter-library"
3845 $echo "*** dependencies of module $libname. Therefore, libtool will create"
3846 $echo "*** a static module, that should work as long as the dlopening"
3847 $echo "*** application is linked with the -dlopen flag."
3848 if test -z "$global_symbol_pipe"; then
3849 $echo
3850 $echo "*** However, this would only work if libtool was able to extract symbol"
3851 $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
3852 $echo "*** not find such a program. So, this module is probably useless."
3853 $echo "*** \`nm' from GNU binutils and a full rebuild may help."
3854 fi
3855 if test "$build_old_libs" = no; then
3856 oldlibs="$output_objdir/$libname.$libext"
3857 build_libtool_libs=module
3858 build_old_libs=yes
3859 else
3860 build_libtool_libs=no
3861 fi
3862 else
3863 $echo "*** The inter-library dependencies that have been dropped here will be"
3864 $echo "*** automatically added whenever a program is linked with this library"
3865 $echo "*** or is declared to -dlopen it."
3866
3867 if test "$allow_undefined" = no; then
3868 $echo
3869 $echo "*** Since this library must not contain undefined symbols,"
3870 $echo "*** because either the platform does not support them or"
3871 $echo "*** it was explicitly requested with -no-undefined,"
3872 $echo "*** libtool will only create a static version of it."
3873 if test "$build_old_libs" = no; then
3874 oldlibs="$output_objdir/$libname.$libext"
3875 build_libtool_libs=module
3876 build_old_libs=yes
3877 else
3878 build_libtool_libs=no
3879 fi
3880 fi
3881 fi
3882 fi
3883 # Done checking deplibs!
3884 deplibs=$newdeplibs
3885 fi
3886
3887
3888 # move library search paths that coincide with paths to not yet
3889 # installed libraries to the beginning of the library search list
3890 new_libs=
3891 for path in $notinst_path; do
3892 case " $new_libs " in
3893 *" -L$path/$objdir "*) ;;
3894 *)
3895 case " $deplibs " in
3896 *" -L$path/$objdir "*)
3897 new_libs="$new_libs -L$path/$objdir" ;;
3898 esac
3899 ;;
3900 esac
3901 done
3902 for deplib in $deplibs; do
3903 case $deplib in
3904 -L*)
3905 case " $new_libs " in
3906 *" $deplib "*) ;;
3907 *) new_libs="$new_libs $deplib" ;;
3908 esac
3909 ;;
3910 *) new_libs="$new_libs $deplib" ;;
3911 esac
3912 done
3913 deplibs="$new_libs"
3914
3915
3916 # All the library-specific variables (install_libdir is set above).
3917 library_names=
3918 old_library=
3919 dlname=
3920
3921 # Test again, we may have decided not to build it any more
3922 if test "$build_libtool_libs" = yes; then
3923 if test "$hardcode_into_libs" = yes; then
3924 # Hardcode the library paths
3925 hardcode_libdirs=
3926 dep_rpath=
3927 rpath="$finalize_rpath"
3928 test "$mode" != relink && rpath="$compile_rpath$rpath"
3929 for libdir in $rpath; do
3930 if test -n "$hardcode_libdir_flag_spec"; then
3931 if test -n "$hardcode_libdir_separator"; then
3932 if test -z "$hardcode_libdirs"; then
3933 hardcode_libdirs="$libdir"
3934 else
3935 # Just accumulate the unique libdirs.
3936 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
3937 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
3938 ;;
3939 *)
3940 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
3941 ;;
3942 esac
3943 fi
3944 else
3945 eval flag=\"$hardcode_libdir_flag_spec\"
3946 dep_rpath="$dep_rpath $flag"
3947 fi
3948 elif test -n "$runpath_var"; then
3949 case "$perm_rpath " in
3950 *" $libdir "*) ;;
3951 *) perm_rpath="$perm_rpath $libdir" ;;
3952 esac
3953 fi
3954 done
3955 # Substitute the hardcoded libdirs into the rpath.
3956 if test -n "$hardcode_libdir_separator" &&
3957 test -n "$hardcode_libdirs"; then
3958 libdir="$hardcode_libdirs"
3959 if test -n "$hardcode_libdir_flag_spec_ld"; then
3960 case $archive_cmds in
3961 *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
3962 *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
3963 esac
3964 else
3965 eval dep_rpath=\"$hardcode_libdir_flag_spec\"
3966 fi
3967 fi
3968 if test -n "$runpath_var" && test -n "$perm_rpath"; then
3969 # We should set the runpath_var.
3970 rpath=
3971 for dir in $perm_rpath; do
3972 rpath="$rpath$dir:"
3973 done
3974 eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
3975 fi
3976 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
3977 fi
3978
3979 shlibpath="$finalize_shlibpath"
3980 test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
3981 if test -n "$shlibpath"; then
3982 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
3983 fi
3984
3985 # Get the real and link names of the library.
3986 eval shared_ext=\"$shrext_cmds\"
3987 eval library_names=\"$library_names_spec\"
3988 set dummy $library_names
3989 realname="$2"
3990 shift; shift
3991
3992 if test -n "$soname_spec"; then
3993 eval soname=\"$soname_spec\"
3994 else
3995 soname="$realname"
3996 fi
3997 if test -z "$dlname"; then
3998 dlname=$soname
3999 fi
4000
4001 lib="$output_objdir/$realname"
4002 linknames=
4003 for link
4004 do
4005 linknames="$linknames $link"
4006 done
4007
4008 # Use standard objects if they are pic
4009 test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4010
4011 # Prepare the list of exported symbols
4012 if test -z "$export_symbols"; then
4013 if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
4014 $show "generating symbol list for \`$libname.la'"
4015 export_symbols="$output_objdir/$libname.exp"
4016 $run $rm $export_symbols
4017 cmds=$export_symbols_cmds
4018 save_ifs="$IFS"; IFS='~'
4019 for cmd in $cmds; do
4020 IFS="$save_ifs"
4021 eval cmd=\"$cmd\"
4022 if len=`expr "X$cmd" : ".*"` &&
4023 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
4024 $show "$cmd"
4025 $run eval "$cmd" || exit $?
4026 skipped_export=false
4027 else
4028 # The command line is too long to execute in one step.
4029 $show "using reloadable object file for export list..."
4030 skipped_export=:
4031 # Break out early, otherwise skipped_export may be
4032 # set to false by a later but shorter cmd.
4033 break
4034 fi
4035 done
4036 IFS="$save_ifs"
4037 if test -n "$export_symbols_regex"; then
4038 $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
4039 $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
4040 $show "$mv \"${export_symbols}T\" \"$export_symbols\""
4041 $run eval '$mv "${export_symbols}T" "$export_symbols"'
4042 fi
4043 fi
4044 fi
4045
4046 if test -n "$export_symbols" && test -n "$include_expsyms"; then
4047 $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
4048 fi
4049
4050 tmp_deplibs=
4051 for test_deplib in $deplibs; do
4052 case " $convenience " in
4053 *" $test_deplib "*) ;;
4054 *)
4055 tmp_deplibs="$tmp_deplibs $test_deplib"
4056 ;;
4057 esac
4058 done
4059 deplibs="$tmp_deplibs"
4060
4061 if test -n "$convenience"; then
4062 if test -n "$whole_archive_flag_spec"; then
4063 save_libobjs=$libobjs
4064 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
4065 else
4066 gentop="$output_objdir/${outputname}x"
4067 generated="$generated $gentop"
4068
4069 func_extract_archives $gentop $convenience
4070 libobjs="$libobjs $func_extract_archives_result"
4071 fi
4072 fi
4073
4074 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
4075 eval flag=\"$thread_safe_flag_spec\"
4076 linker_flags="$linker_flags $flag"
4077 fi
4078
4079 # Make a backup of the uninstalled library when relinking
4080 if test "$mode" = relink; then
4081 $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
4082 fi
4083
4084 # Do each of the archive commands.
4085 if test "$module" = yes && test -n "$module_cmds" ; then
4086 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
4087 eval test_cmds=\"$module_expsym_cmds\"
4088 cmds=$module_expsym_cmds
4089 else
4090 eval test_cmds=\"$module_cmds\"
4091 cmds=$module_cmds
4092 fi
4093 else
4094 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
4095 eval test_cmds=\"$archive_expsym_cmds\"
4096 cmds=$archive_expsym_cmds
4097 else
4098 eval test_cmds=\"$archive_cmds\"
4099 cmds=$archive_cmds
4100 fi
4101 fi
4102
4103 if test "X$skipped_export" != "X:" &&
4104 len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
4105 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
4106 :
4107 else
4108 # The command line is too long to link in one step, link piecewise.
4109 $echo "creating reloadable object files..."
4110
4111 # Save the value of $output and $libobjs because we want to
4112 # use them later. If we have whole_archive_flag_spec, we
4113 # want to use save_libobjs as it was before
4114 # whole_archive_flag_spec was expanded, because we can't
4115 # assume the linker understands whole_archive_flag_spec.
4116 # This may have to be revisited, in case too many
4117 # convenience libraries get linked in and end up exceeding
4118 # the spec.
4119 if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
4120 save_libobjs=$libobjs
4121 fi
4122 save_output=$output
4123 output_la=`$echo "X$output" | $Xsed -e "$basename"`
4124
4125 # Clear the reloadable object creation command queue and
4126 # initialize k to one.
4127 test_cmds=
4128 concat_cmds=
4129 objlist=
4130 delfiles=
4131 last_robj=
4132 k=1
4133 output=$output_objdir/$output_la-${k}.$objext
4134 # Loop over the list of objects to be linked.
4135 for obj in $save_libobjs
4136 do
4137 eval test_cmds=\"$reload_cmds $objlist $last_robj\"
4138 if test "X$objlist" = X ||
4139 { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
4140 test "$len" -le "$max_cmd_len"; }; then
4141 objlist="$objlist $obj"
4142 else
4143 # The command $test_cmds is almost too long, add a
4144 # command to the queue.
4145 if test "$k" -eq 1 ; then
4146 # The first file doesn't have a previous command to add.
4147 eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
4148 else
4149 # All subsequent reloadable object files will link in
4150 # the last one created.
4151 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
4152 fi
4153 last_robj=$output_objdir/$output_la-${k}.$objext
4154 k=`expr $k + 1`
4155 output=$output_objdir/$output_la-${k}.$objext
4156 objlist=$obj
4157 len=1
4158 fi
4159 done
4160 # Handle the remaining objects by creating one last
4161 # reloadable object file. All subsequent reloadable object
4162 # files will link in the last one created.
4163 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
4164 eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
4165
4166 if ${skipped_export-false}; then
4167 $show "generating symbol list for \`$libname.la'"
4168 export_symbols="$output_objdir/$libname.exp"
4169 $run $rm $export_symbols
4170 libobjs=$output
4171 # Append the command to create the export file.
4172 eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
4173 fi
4174
4175 # Set up a command to remove the reloadable object files
4176 # after they are used.
4177 i=0
4178 while test "$i" -lt "$k"
4179 do
4180 i=`expr $i + 1`
4181 delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
4182 done
4183
4184 $echo "creating a temporary reloadable object file: $output"
4185
4186 # Loop through the commands generated above and execute them.
4187 save_ifs="$IFS"; IFS='~'
4188 for cmd in $concat_cmds; do
4189 IFS="$save_ifs"
4190 $show "$cmd"
4191 $run eval "$cmd" || exit $?
4192 done
4193 IFS="$save_ifs"
4194
4195 libobjs=$output
4196 # Restore the value of output.
4197 output=$save_output
4198
4199 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
4200 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
4201 fi
4202 # Expand the library linking commands again to reset the
4203 # value of $libobjs for piecewise linking.
4204
4205 # Do each of the archive commands.
4206 if test "$module" = yes && test -n "$module_cmds" ; then
4207 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
4208 cmds=$module_expsym_cmds
4209 else
4210 cmds=$module_cmds
4211 fi
4212 else
4213 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
4214 cmds=$archive_expsym_cmds
4215 else
4216 cmds=$archive_cmds
4217 fi
4218 fi
4219
4220 # Append the command to remove the reloadable object files
4221 # to the just-reset $cmds.
4222 eval cmds=\"\$cmds~\$rm $delfiles\"
4223 fi
4224 save_ifs="$IFS"; IFS='~'
4225 for cmd in $cmds; do
4226 IFS="$save_ifs"
4227 eval cmd=\"$cmd\"
4228 $show "$cmd"
4229 $run eval "$cmd" || {
4230 lt_exit=$?
4231
4232 # Restore the uninstalled library and exit
4233 if test "$mode" = relink; then
4234 $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
4235 fi
4236
4237 exit $lt_exit
4238 }
4239 done
4240 IFS="$save_ifs"
4241
4242 # Restore the uninstalled library and exit
4243 if test "$mode" = relink; then
4244 $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
4245
4246 if test -n "$convenience"; then
4247 if test -z "$whole_archive_flag_spec"; then
4248 $show "${rm}r $gentop"
4249 $run ${rm}r "$gentop"
4250 fi
4251 fi
4252
4253 exit $EXIT_SUCCESS
4254 fi
4255
4256 # Create links to the real library.
4257 for linkname in $linknames; do
4258 if test "$realname" != "$linkname"; then
4259 $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
4260 $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
4261 fi
4262 done
4263
4264 # If -module or -export-dynamic was specified, set the dlname.
4265 if test "$module" = yes || test "$export_dynamic" = yes; then
4266 # On all known operating systems, these are identical.
4267 dlname="$soname"
4268 fi
4269 fi
4270 ;;
4271
4272 obj)
4273 case " $deplibs" in
4274 *\ -l* | *\ -L*)
4275 $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 ;;
4276 esac
4277
4278 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4279 $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
4280 fi
4281
4282 if test -n "$rpath"; then
4283 $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
4284 fi
4285
4286 if test -n "$xrpath"; then
4287 $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
4288 fi
4289
4290 if test -n "$vinfo"; then
4291 $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
4292 fi
4293
4294 if test -n "$release"; then
4295 $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
4296 fi
4297
4298 case $output in
4299 *.lo)
4300 if test -n "$objs$old_deplibs"; then
4301 $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
4302 exit $EXIT_FAILURE
4303 fi
4304 libobj="$output"
4305 obj=`$echo "X$output" | $Xsed -e "$lo2o"`
4306 ;;
4307 *)
4308 libobj=
4309 obj="$output"
4310 ;;
4311 esac
4312
4313 # Delete the old objects.
4314 $run $rm $obj $libobj
4315
4316 # Objects from convenience libraries. This assumes
4317 # single-version convenience libraries. Whenever we create
4318 # different ones for PIC/non-PIC, this we'll have to duplicate
4319 # the extraction.
4320 reload_conv_objs=
4321 gentop=
4322 # reload_cmds runs $LD directly, so let us get rid of
4323 # -Wl from whole_archive_flag_spec and hope we can get by with
4324 # turning comma into space..
4325 wl=
4326
4327 if test -n "$convenience"; then
4328 if test -n "$whole_archive_flag_spec"; then
4329 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
4330 reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
4331 else
4332 gentop="$output_objdir/${obj}x"
4333 generated="$generated $gentop"
4334
4335 func_extract_archives $gentop $convenience
4336 reload_conv_objs="$reload_objs $func_extract_archives_result"
4337 fi
4338 fi
4339
4340 # Create the old-style object.
4341 reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
4342
4343 output="$obj"
4344 cmds=$reload_cmds
4345 save_ifs="$IFS"; IFS='~'
4346 for cmd in $cmds; do
4347 IFS="$save_ifs"
4348 eval cmd=\"$cmd\"
4349 $show "$cmd"
4350 $run eval "$cmd" || exit $?
4351 done
4352 IFS="$save_ifs"
4353
4354 # Exit if we aren't doing a library object file.
4355 if test -z "$libobj"; then
4356 if test -n "$gentop"; then
4357 $show "${rm}r $gentop"
4358 $run ${rm}r $gentop
4359 fi
4360
4361 exit $EXIT_SUCCESS
4362 fi
4363
4364 if test "$build_libtool_libs" != yes; then
4365 if test -n "$gentop"; then
4366 $show "${rm}r $gentop"
4367 $run ${rm}r $gentop
4368 fi
4369
4370 # Create an invalid libtool object if no PIC, so that we don't
4371 # accidentally link it into a program.
4372 # $show "echo timestamp > $libobj"
4373 # $run eval "echo timestamp > $libobj" || exit $?
4374 exit $EXIT_SUCCESS
4375 fi
4376
4377 if test -n "$pic_flag" || test "$pic_mode" != default; then
4378 # Only do commands if we really have different PIC objects.
4379 reload_objs="$libobjs $reload_conv_objs"
4380 output="$libobj"
4381 cmds=$reload_cmds
4382 save_ifs="$IFS"; IFS='~'
4383 for cmd in $cmds; do
4384 IFS="$save_ifs"
4385 eval cmd=\"$cmd\"
4386 $show "$cmd"
4387 $run eval "$cmd" || exit $?
4388 done
4389 IFS="$save_ifs"
4390 fi
4391
4392 if test -n "$gentop"; then
4393 $show "${rm}r $gentop"
4394 $run ${rm}r $gentop
4395 fi
4396
4397 exit $EXIT_SUCCESS
4398 ;;
4399
4400 prog)
4401 case $host in
4402 *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
4403 esac
4404 if test -n "$vinfo"; then
4405 $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
4406 fi
4407
4408 if test -n "$release"; then
4409 $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
4410 fi
4411
4412 if test "$preload" = yes; then
4413 if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
4414 test "$dlopen_self_static" = unknown; then
4415 $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
4416 fi
4417 fi
4418
4419 case $host in
4420 *-*-rhapsody* | *-*-darwin1.[012])
4421 # On Rhapsody replace the C library is the System framework
4422 compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
4423 finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
4424 ;;
4425 esac
4426
4427 case $host in
4428 *darwin*)
4429 # Don't allow lazy linking, it breaks C++ global constructors
4430 if test "$tagname" = CXX ; then
4431 compile_command="$compile_command ${wl}-bind_at_load"
4432 finalize_command="$finalize_command ${wl}-bind_at_load"
4433 fi
4434 ;;
4435 esac
4436
4437
4438 # move library search paths that coincide with paths to not yet
4439 # installed libraries to the beginning of the library search list
4440 new_libs=
4441 for path in $notinst_path; do
4442 case " $new_libs " in
4443 *" -L$path/$objdir "*) ;;
4444 *)
4445 case " $compile_deplibs " in
4446 *" -L$path/$objdir "*)
4447 new_libs="$new_libs -L$path/$objdir" ;;
4448 esac
4449 ;;
4450 esac
4451 done
4452 for deplib in $compile_deplibs; do
4453 case $deplib in
4454 -L*)
4455 case " $new_libs " in
4456 *" $deplib "*) ;;
4457 *) new_libs="$new_libs $deplib" ;;
4458 esac
4459 ;;
4460 *) new_libs="$new_libs $deplib" ;;
4461 esac
4462 done
4463 compile_deplibs="$new_libs"
4464
4465
4466 compile_command="$compile_command $compile_deplibs"
4467 finalize_command="$finalize_command $finalize_deplibs"
4468
4469 if test -n "$rpath$xrpath"; then
4470 # If the user specified any rpath flags, then add them.
4471 for libdir in $rpath $xrpath; do
4472 # This is the magic to use -rpath.
4473 case "$finalize_rpath " in
4474 *" $libdir "*) ;;
4475 *) finalize_rpath="$finalize_rpath $libdir" ;;
4476 esac
4477 done
4478 fi
4479
4480 # Now hardcode the library paths
4481 rpath=
4482 hardcode_libdirs=
4483 for libdir in $compile_rpath $finalize_rpath; do
4484 if test -n "$hardcode_libdir_flag_spec"; then
4485 if test -n "$hardcode_libdir_separator"; then
4486 if test -z "$hardcode_libdirs"; then
4487 hardcode_libdirs="$libdir"
4488 else
4489 # Just accumulate the unique libdirs.
4490 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
4491 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
4492 ;;
4493 *)
4494 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
4495 ;;
4496 esac
4497 fi
4498 else
4499 eval flag=\"$hardcode_libdir_flag_spec\"
4500 rpath="$rpath $flag"
4501 fi
4502 elif test -n "$runpath_var"; then
4503 case "$perm_rpath " in
4504 *" $libdir "*) ;;
4505 *) perm_rpath="$perm_rpath $libdir" ;;
4506 esac
4507 fi
4508 case $host in
4509 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
4510 testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
4511 case :$dllsearchpath: in
4512 *":$libdir:"*) ;;
4513 *) dllsearchpath="$dllsearchpath:$libdir";;
4514 esac
4515 case :$dllsearchpath: in
4516 *":$testbindir:"*) ;;
4517 *) dllsearchpath="$dllsearchpath:$testbindir";;
4518 esac
4519 ;;
4520 esac
4521 done
4522 # Substitute the hardcoded libdirs into the rpath.
4523 if test -n "$hardcode_libdir_separator" &&
4524 test -n "$hardcode_libdirs"; then
4525 libdir="$hardcode_libdirs"
4526 eval rpath=\" $hardcode_libdir_flag_spec\"
4527 fi
4528 compile_rpath="$rpath"
4529
4530 rpath=
4531 hardcode_libdirs=
4532 for libdir in $finalize_rpath; do
4533 if test -n "$hardcode_libdir_flag_spec"; then
4534 if test -n "$hardcode_libdir_separator"; then
4535 if test -z "$hardcode_libdirs"; then
4536 hardcode_libdirs="$libdir"
4537 else
4538 # Just accumulate the unique libdirs.
4539 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
4540 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
4541 ;;
4542 *)
4543 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
4544 ;;
4545 esac
4546 fi
4547 else
4548 eval flag=\"$hardcode_libdir_flag_spec\"
4549 rpath="$rpath $flag"
4550 fi
4551 elif test -n "$runpath_var"; then
4552 case "$finalize_perm_rpath " in
4553 *" $libdir "*) ;;
4554 *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
4555 esac
4556 fi
4557 done
4558 # Substitute the hardcoded libdirs into the rpath.
4559 if test -n "$hardcode_libdir_separator" &&
4560 test -n "$hardcode_libdirs"; then
4561 libdir="$hardcode_libdirs"
4562 eval rpath=\" $hardcode_libdir_flag_spec\"
4563 fi
4564 finalize_rpath="$rpath"
4565
4566 if test -n "$libobjs" && test "$build_old_libs" = yes; then
4567 # Transform all the library objects into standard objects.
4568 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4569 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4570 fi
4571
4572 dlsyms=
4573 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4574 if test -n "$NM" && test -n "$global_symbol_pipe"; then
4575 dlsyms="${outputname}S.c"
4576 else
4577 $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
4578 fi
4579 fi
4580
4581 if test -n "$dlsyms"; then
4582 case $dlsyms in
4583 "") ;;
4584 *.c)
4585 # Discover the nlist of each of the dlfiles.
4586 nlist="$output_objdir/${outputname}.nm"
4587
4588 $show "$rm $nlist ${nlist}S ${nlist}T"
4589 $run $rm "$nlist" "${nlist}S" "${nlist}T"
4590
4591 # Parse the name list into a source file.
4592 $show "creating $output_objdir/$dlsyms"
4593
4594 test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
4595/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
4596/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
4597
4598#ifdef __cplusplus
4599extern \"C\" {
4600#endif
4601
4602/* Prevent the only kind of declaration conflicts we can make. */
4603#define lt_preloaded_symbols some_other_symbol
4604
4605/* External symbol declarations for the compiler. */\
4606"
4607
4608 if test "$dlself" = yes; then
4609 $show "generating symbol list for \`$output'"
4610
4611 test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
4612
4613 # Add our own program objects to the symbol list.
4614 progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4615 for arg in $progfiles; do
4616 $show "extracting global C symbols from \`$arg'"
4617 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
4618 done
4619
4620 if test -n "$exclude_expsyms"; then
4621 $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
4622 $run eval '$mv "$nlist"T "$nlist"'
4623 fi
4624
4625 if test -n "$export_symbols_regex"; then
4626 $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
4627 $run eval '$mv "$nlist"T "$nlist"'
4628 fi
4629
4630 # Prepare the list of exported symbols
4631 if test -z "$export_symbols"; then
4632 export_symbols="$output_objdir/$outputname.exp"
4633 $run $rm $export_symbols
4634 $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4635 case $host in
4636 *cygwin* | *mingw* )
4637 $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4638 $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
4639 ;;
4640 esac
4641 else
4642 $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
4643 $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
4644 $run eval 'mv "$nlist"T "$nlist"'
4645 case $host in
4646 *cygwin* | *mingw* )
4647 $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4648 $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
4649 ;;
4650 esac
4651 fi
4652 fi
4653
4654 for arg in $dlprefiles; do
4655 $show "extracting global C symbols from \`$arg'"
4656 name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
4657 $run eval '$echo ": $name " >> "$nlist"'
4658 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
4659 done
4660
4661 if test -z "$run"; then
4662 # Make sure we have at least an empty file.
4663 test -f "$nlist" || : > "$nlist"
4664
4665 if test -n "$exclude_expsyms"; then
4666 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
4667 $mv "$nlist"T "$nlist"
4668 fi
4669
4670 # Try sorting and uniquifying the output.
4671 if grep -v "^: " < "$nlist" |
4672 if sort -k 3 </dev/null >/dev/null 2>&1; then
4673 sort -k 3
4674 else
4675 sort +2
4676 fi |
4677 uniq > "$nlist"S; then
4678 :
4679 else
4680 grep -v "^: " < "$nlist" > "$nlist"S
4681 fi
4682
4683 if test -f "$nlist"S; then
4684 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
4685 else
4686 $echo '/* NONE */' >> "$output_objdir/$dlsyms"
4687 fi
4688
4689 $echo >> "$output_objdir/$dlsyms" "\
4690
4691#undef lt_preloaded_symbols
4692
4693#if defined (__STDC__) && __STDC__
4694# define lt_ptr void *
4695#else
4696# define lt_ptr char *
4697# define const
4698#endif
4699
4700/* The mapping between symbol names and symbols. */
4701"
4702
4703 case $host in
4704 *cygwin* | *mingw* )
4705 $echo >> "$output_objdir/$dlsyms" "\
4706/* DATA imports from DLLs on WIN32 can't be const, because
4707 runtime relocations are performed -- see ld's documentation
4708 on pseudo-relocs */
4709struct {
4710"
4711 ;;
4712 * )
4713 $echo >> "$output_objdir/$dlsyms" "\
4714const struct {
4715"
4716 ;;
4717 esac
4718
4719
4720 $echo >> "$output_objdir/$dlsyms" "\
4721 const char *name;
4722 lt_ptr address;
4723}
4724lt_preloaded_symbols[] =
4725{\
4726"
4727
4728 eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
4729
4730 $echo >> "$output_objdir/$dlsyms" "\
4731 {0, (lt_ptr) 0}
4732};
4733
4734/* This works around a problem in FreeBSD linker */
4735#ifdef FREEBSD_WORKAROUND
4736static const void *lt_preloaded_setup() {
4737 return lt_preloaded_symbols;
4738}
4739#endif
4740
4741#ifdef __cplusplus
4742}
4743#endif\
4744"
4745 fi
4746
4747 pic_flag_for_symtable=
4748 case $host in
4749 # compiling the symbol table file with pic_flag works around
4750 # a FreeBSD bug that causes programs to crash when -lm is
4751 # linked before any other PIC object. But we must not use
4752 # pic_flag when linking with -static. The problem exists in
4753 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
4754 *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
4755 case "$compile_command " in
4756 *" -static "*) ;;
4757 *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
4758 esac;;
4759 *-*-hpux*)
4760 case "$compile_command " in
4761 *" -static "*) ;;
4762 *) pic_flag_for_symtable=" $pic_flag";;
4763 esac
4764 esac
4765
4766 # Now compile the dynamic symbol file.
4767 $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
4768 $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
4769
4770 # Clean up the generated files.
4771 $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
4772 $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
4773
4774 # Transform the symbol file into the correct name.
4775 case $host in
4776 *cygwin* | *mingw* )
4777 if test -f "$output_objdir/${outputname}.def" ; then
4778 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
4779 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
4780 else
4781 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4782 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4783 fi
4784 ;;
4785 * )
4786 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4787 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4788 ;;
4789 esac
4790 ;;
4791 *)
4792 $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
4793 exit $EXIT_FAILURE
4794 ;;
4795 esac
4796 else
4797 # We keep going just in case the user didn't refer to
4798 # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
4799 # really was required.
4800
4801 # Nullify the symbol file.
4802 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
4803 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
4804 fi
4805
4806 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
4807 # Replace the output file specification.
4808 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
4809 link_command="$compile_command$compile_rpath"
4810
4811 # We have no uninstalled library dependencies, so finalize right now.
4812 $show "$link_command"
4813 $run eval "$link_command"
4814 exit_status=$?
4815
4816 # Delete the generated files.
4817 if test -n "$dlsyms"; then
4818 $show "$rm $output_objdir/${outputname}S.${objext}"
4819 $run $rm "$output_objdir/${outputname}S.${objext}"
4820 fi
4821
4822 exit $exit_status
4823 fi
4824
4825 if test -n "$shlibpath_var"; then
4826 # We should set the shlibpath_var
4827 rpath=
4828 for dir in $temp_rpath; do
4829 case $dir in
4830 [\\/]* | [A-Za-z]:[\\/]*)
4831 # Absolute path.
4832 rpath="$rpath$dir:"
4833 ;;
4834 *)
4835 # Relative path: add a thisdir entry.
4836 rpath="$rpath\$thisdir/$dir:"
4837 ;;
4838 esac
4839 done
4840 temp_rpath="$rpath"
4841 fi
4842
4843 if test -n "$compile_shlibpath$finalize_shlibpath"; then
4844 compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
4845 fi
4846 if test -n "$finalize_shlibpath"; then
4847 finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
4848 fi
4849
4850 compile_var=
4851 finalize_var=
4852 if test -n "$runpath_var"; then
4853 if test -n "$perm_rpath"; then
4854 # We should set the runpath_var.
4855 rpath=
4856 for dir in $perm_rpath; do
4857 rpath="$rpath$dir:"
4858 done
4859 compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
4860 fi
4861 if test -n "$finalize_perm_rpath"; then
4862 # We should set the runpath_var.
4863 rpath=
4864 for dir in $finalize_perm_rpath; do
4865 rpath="$rpath$dir:"
4866 done
4867 finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
4868 fi
4869 fi
4870
4871 if test "$no_install" = yes; then
4872 # We don't need to create a wrapper script.
4873 link_command="$compile_var$compile_command$compile_rpath"
4874 # Replace the output file specification.
4875 link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
4876 # Delete the old output file.
4877 $run $rm $output
4878 # Link the executable and exit
4879 $show "$link_command"
4880 $run eval "$link_command" || exit $?
4881 exit $EXIT_SUCCESS
4882 fi
4883
4884 if test "$hardcode_action" = relink; then
4885 # Fast installation is not supported
4886 link_command="$compile_var$compile_command$compile_rpath"
4887 relink_command="$finalize_var$finalize_command$finalize_rpath"
4888
4889 $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
4890 $echo "$modename: \`$output' will be relinked during installation" 1>&2
4891 else
4892 if test "$fast_install" != no; then
4893 link_command="$finalize_var$compile_command$finalize_rpath"
4894 if test "$fast_install" = yes; then
4895 relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
4896 else
4897 # fast_install is set to needless
4898 relink_command=
4899 fi
4900 else
4901 link_command="$compile_var$compile_command$compile_rpath"
4902 relink_command="$finalize_var$finalize_command$finalize_rpath"
4903 fi
4904 fi
4905
4906 # Replace the output file specification.
4907 link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
4908
4909 # Delete the old output files.
4910 $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
4911
4912 $show "$link_command"
4913 $run eval "$link_command" || exit $?
4914
4915 # Now create the wrapper script.
4916 $show "creating $output"
4917
4918 # Quote the relink command for shipping.
4919 if test -n "$relink_command"; then
4920 # Preserve any variables that may affect compiler behavior
4921 for var in $variables_saved_for_relink; do
4922 if eval test -z \"\${$var+set}\"; then
4923 relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
4924 elif eval var_value=\$$var; test -z "$var_value"; then
4925 relink_command="$var=; export $var; $relink_command"
4926 else
4927 var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
4928 relink_command="$var=\"$var_value\"; export $var; $relink_command"
4929 fi
4930 done
4931 relink_command="(cd `pwd`; $relink_command)"
4932 relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
4933 fi
4934
4935 # Quote $echo for shipping.
4936 if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
4937 case $progpath in
4938 [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
4939 *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
4940 esac
4941 qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
4942 else
4943 qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
4944 fi
4945
4946 # Only actually do things if our run command is non-null.
4947 if test -z "$run"; then
4948 # win32 will think the script is a binary if it has
4949 # a .exe suffix, so we strip it off here.
4950 case $output in
4951 *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
4952 esac
4953 # test for cygwin because mv fails w/o .exe extensions
4954 case $host in
4955 *cygwin*)
4956 exeext=.exe
4957 outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
4958 *) exeext= ;;
4959 esac
4960 case $host in
4961 *cygwin* | *mingw* )
4962 output_name=`basename $output`
4963 output_path=`dirname $output`
4964 cwrappersource="$output_path/$objdir/lt-$output_name.c"
4965 cwrapper="$output_path/$output_name.exe"
4966 $rm $cwrappersource $cwrapper
4967 trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
4968
4969 cat > $cwrappersource <<EOF
4970
4971/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
4972 Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
4973
4974 The $output program cannot be directly executed until all the libtool
4975 libraries that it depends on are installed.
4976
4977 This wrapper executable should never be moved out of the build directory.
4978 If it is, it will not operate correctly.
4979
4980 Currently, it simply execs the wrapper *script* "/bin/sh $output",
4981 but could eventually absorb all of the scripts functionality and
4982 exec $objdir/$outputname directly.
4983*/
4984EOF
4985 cat >> $cwrappersource<<"EOF"
4986#include <stdio.h>
4987#include <stdlib.h>
4988#include <unistd.h>
4989#include <malloc.h>
4990#include <stdarg.h>
4991#include <assert.h>
4992#include <string.h>
4993#include <ctype.h>
4994#include <sys/stat.h>
4995
4996#if defined(PATH_MAX)
4997# define LT_PATHMAX PATH_MAX
4998#elif defined(MAXPATHLEN)
4999# define LT_PATHMAX MAXPATHLEN
5000#else
5001# define LT_PATHMAX 1024
5002#endif
5003
5004#ifndef DIR_SEPARATOR
5005# define DIR_SEPARATOR '/'
5006# define PATH_SEPARATOR ':'
5007#endif
5008
5009#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
5010 defined (__OS2__)
5011# define HAVE_DOS_BASED_FILE_SYSTEM
5012# ifndef DIR_SEPARATOR_2
5013# define DIR_SEPARATOR_2 '\\'
5014# endif
5015# ifndef PATH_SEPARATOR_2
5016# define PATH_SEPARATOR_2 ';'
5017# endif
5018#endif
5019
5020#ifndef DIR_SEPARATOR_2
5021# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
5022#else /* DIR_SEPARATOR_2 */
5023# define IS_DIR_SEPARATOR(ch) \
5024 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
5025#endif /* DIR_SEPARATOR_2 */
5026
5027#ifndef PATH_SEPARATOR_2
5028# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
5029#else /* PATH_SEPARATOR_2 */
5030# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
5031#endif /* PATH_SEPARATOR_2 */
5032
5033#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
5034#define XFREE(stale) do { \
5035 if (stale) { free ((void *) stale); stale = 0; } \
5036} while (0)
5037
5038/* -DDEBUG is fairly common in CFLAGS. */
5039#undef DEBUG
5040#if defined DEBUGWRAPPER
5041# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
5042#else
5043# define DEBUG(format, ...)
5044#endif
5045
5046const char *program_name = NULL;
5047
5048void * xmalloc (size_t num);
5049char * xstrdup (const char *string);
5050const char * base_name (const char *name);
5051char * find_executable(const char *wrapper);
5052int check_executable(const char *path);
5053char * strendzap(char *str, const char *pat);
5054void lt_fatal (const char *message, ...);
5055
5056int
5057main (int argc, char *argv[])
5058{
5059 char **newargz;
5060 int i;
5061
5062 program_name = (char *) xstrdup (base_name (argv[0]));
5063 DEBUG("(main) argv[0] : %s\n",argv[0]);
5064 DEBUG("(main) program_name : %s\n",program_name);
5065 newargz = XMALLOC(char *, argc+2);
5066EOF
5067
5068 cat >> $cwrappersource <<EOF
5069 newargz[0] = (char *) xstrdup("$SHELL");
5070EOF
5071
5072 cat >> $cwrappersource <<"EOF"
5073 newargz[1] = find_executable(argv[0]);
5074 if (newargz[1] == NULL)
5075 lt_fatal("Couldn't find %s", argv[0]);
5076 DEBUG("(main) found exe at : %s\n",newargz[1]);
5077 /* we know the script has the same name, without the .exe */
5078 /* so make sure newargz[1] doesn't end in .exe */
5079 strendzap(newargz[1],".exe");
5080 for (i = 1; i < argc; i++)
5081 newargz[i+1] = xstrdup(argv[i]);
5082 newargz[argc+1] = NULL;
5083
5084 for (i=0; i<argc+1; i++)
5085 {
5086 DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
5087 ;
5088 }
5089
5090EOF
5091
5092 case $host_os in
5093 mingw*)
5094 cat >> $cwrappersource <<EOF
5095 execv("$SHELL",(char const **)newargz);
5096EOF
5097 ;;
5098 *)
5099 cat >> $cwrappersource <<EOF
5100 execv("$SHELL",newargz);
5101EOF
5102 ;;
5103 esac
5104
5105 cat >> $cwrappersource <<"EOF"
5106 return 127;
5107}
5108
5109void *
5110xmalloc (size_t num)
5111{
5112 void * p = (void *) malloc (num);
5113 if (!p)
5114 lt_fatal ("Memory exhausted");
5115
5116 return p;
5117}
5118
5119char *
5120xstrdup (const char *string)
5121{
5122 return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
5123;
5124}
5125
5126const char *
5127base_name (const char *name)
5128{
5129 const char *base;
5130
5131#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5132 /* Skip over the disk name in MSDOS pathnames. */
5133 if (isalpha ((unsigned char)name[0]) && name[1] == ':')
5134 name += 2;
5135#endif
5136
5137 for (base = name; *name; name++)
5138 if (IS_DIR_SEPARATOR (*name))
5139 base = name + 1;
5140 return base;
5141}
5142
5143int
5144check_executable(const char * path)
5145{
5146 struct stat st;
5147
5148 DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
5149 if ((!path) || (!*path))
5150 return 0;
5151
5152 if ((stat (path, &st) >= 0) &&
5153 (
5154 /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
5155#if defined (S_IXOTH)
5156 ((st.st_mode & S_IXOTH) == S_IXOTH) ||
5157#endif
5158#if defined (S_IXGRP)
5159 ((st.st_mode & S_IXGRP) == S_IXGRP) ||
5160#endif
5161 ((st.st_mode & S_IXUSR) == S_IXUSR))
5162 )
5163 return 1;
5164 else
5165 return 0;
5166}
5167
5168/* Searches for the full path of the wrapper. Returns
5169 newly allocated full path name if found, NULL otherwise */
5170char *
5171find_executable (const char* wrapper)
5172{
5173 int has_slash = 0;
5174 const char* p;
5175 const char* p_next;
5176 /* static buffer for getcwd */
5177 char tmp[LT_PATHMAX + 1];
5178 int tmp_len;
5179 char* concat_name;
5180
5181 DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
5182
5183 if ((wrapper == NULL) || (*wrapper == '\0'))
5184 return NULL;
5185
5186 /* Absolute path? */
5187#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5188 if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
5189 {
5190 concat_name = xstrdup (wrapper);
5191 if (check_executable(concat_name))
5192 return concat_name;
5193 XFREE(concat_name);
5194 }
5195 else
5196 {
5197#endif
5198 if (IS_DIR_SEPARATOR (wrapper[0]))
5199 {
5200 concat_name = xstrdup (wrapper);
5201 if (check_executable(concat_name))
5202 return concat_name;
5203 XFREE(concat_name);
5204 }
5205#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5206 }
5207#endif
5208
5209 for (p = wrapper; *p; p++)
5210 if (*p == '/')
5211 {
5212 has_slash = 1;
5213 break;
5214 }
5215 if (!has_slash)
5216 {
5217 /* no slashes; search PATH */
5218 const char* path = getenv ("PATH");
5219 if (path != NULL)
5220 {
5221 for (p = path; *p; p = p_next)
5222 {
5223 const char* q;
5224 size_t p_len;
5225 for (q = p; *q; q++)
5226 if (IS_PATH_SEPARATOR(*q))
5227 break;
5228 p_len = q - p;
5229 p_next = (*q == '\0' ? q : q + 1);
5230 if (p_len == 0)
5231 {
5232 /* empty path: current directory */
5233 if (getcwd (tmp, LT_PATHMAX) == NULL)
5234 lt_fatal ("getcwd failed");
5235 tmp_len = strlen(tmp);
5236 concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
5237 memcpy (concat_name, tmp, tmp_len);
5238 concat_name[tmp_len] = '/';
5239 strcpy (concat_name + tmp_len + 1, wrapper);
5240 }
5241 else
5242 {
5243 concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
5244 memcpy (concat_name, p, p_len);
5245 concat_name[p_len] = '/';
5246 strcpy (concat_name + p_len + 1, wrapper);
5247 }
5248 if (check_executable(concat_name))
5249 return concat_name;
5250 XFREE(concat_name);
5251 }
5252 }
5253 /* not found in PATH; assume curdir */
5254 }
5255 /* Relative path | not found in path: prepend cwd */
5256 if (getcwd (tmp, LT_PATHMAX) == NULL)
5257 lt_fatal ("getcwd failed");
5258 tmp_len = strlen(tmp);
5259 concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
5260 memcpy (concat_name, tmp, tmp_len);
5261 concat_name[tmp_len] = '/';
5262 strcpy (concat_name + tmp_len + 1, wrapper);
5263
5264 if (check_executable(concat_name))
5265 return concat_name;
5266 XFREE(concat_name);
5267 return NULL;
5268}
5269
5270char *
5271strendzap(char *str, const char *pat)
5272{
5273 size_t len, patlen;
5274
5275 assert(str != NULL);
5276 assert(pat != NULL);
5277
5278 len = strlen(str);
5279 patlen = strlen(pat);
5280
5281 if (patlen <= len)
5282 {
5283 str += len - patlen;
5284 if (strcmp(str, pat) == 0)
5285 *str = '\0';
5286 }
5287 return str;
5288}
5289
5290static void
5291lt_error_core (int exit_status, const char * mode,
5292 const char * message, va_list ap)
5293{
5294 fprintf (stderr, "%s: %s: ", program_name, mode);
5295 vfprintf (stderr, message, ap);
5296 fprintf (stderr, ".\n");
5297
5298 if (exit_status >= 0)
5299 exit (exit_status);
5300}
5301
5302void
5303lt_fatal (const char *message, ...)
5304{
5305 va_list ap;
5306 va_start (ap, message);
5307 lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
5308 va_end (ap);
5309}
5310EOF
5311 # we should really use a build-platform specific compiler
5312 # here, but OTOH, the wrappers (shell script and this C one)
5313 # are only useful if you want to execute the "real" binary.
5314 # Since the "real" binary is built for $host, then this
5315 # wrapper might as well be built for $host, too.
5316 $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
5317 ;;
5318 esac
5319 $rm $output
5320 trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
5321
5322 $echo > $output "\
5323#! $SHELL
5324
5325# $output - temporary wrapper script for $objdir/$outputname
5326# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
5327#
5328# The $output program cannot be directly executed until all the libtool
5329# libraries that it depends on are installed.
5330#
5331# This wrapper script should never be moved out of the build directory.
5332# If it is, it will not operate correctly.
5333
5334# Sed substitution that helps us do robust quoting. It backslashifies
5335# metacharacters that are still active within double-quoted strings.
5336Xsed='${SED} -e 1s/^X//'
5337sed_quote_subst='$sed_quote_subst'
5338
5339# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
5340if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
5341 emulate sh
5342 NULLCMD=:
5343 # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
5344 # is contrary to our usage. Disable this feature.
5345 alias -g '\${1+\"\$@\"}'='\"\$@\"'
5346 setopt NO_GLOB_SUBST
5347else
5348 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
5349fi
5350BIN_SH=xpg4; export BIN_SH # for Tru64
5351DUALCASE=1; export DUALCASE # for MKS sh
5352
5353# The HP-UX ksh and POSIX shell print the target directory to stdout
5354# if CDPATH is set.
5355(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5356
5357relink_command=\"$relink_command\"
5358
5359# This environment variable determines our operation mode.
5360if test \"\$libtool_install_magic\" = \"$magic\"; then
5361 # install mode needs the following variable:
5362 notinst_deplibs='$notinst_deplibs'
5363else
5364 # When we are sourced in execute mode, \$file and \$echo are already set.
5365 if test \"\$libtool_execute_magic\" != \"$magic\"; then
5366 echo=\"$qecho\"
5367 file=\"\$0\"
5368 # Make sure echo works.
5369 if test \"X\$1\" = X--no-reexec; then
5370 # Discard the --no-reexec flag, and continue.
5371 shift
5372 elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
5373 # Yippee, \$echo works!
5374 :
5375 else
5376 # Restart under the correct shell, and then maybe \$echo will work.
5377 exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
5378 fi
5379 fi\
5380"
5381 $echo >> $output "\
5382
5383 # Find the directory that this script lives in.
5384 thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
5385 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
5386
5387 # Follow symbolic links until we get to the real thisdir.
5388 file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
5389 while test -n \"\$file\"; do
5390 destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
5391
5392 # If there was a directory component, then change thisdir.
5393 if test \"x\$destdir\" != \"x\$file\"; then
5394 case \"\$destdir\" in
5395 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
5396 *) thisdir=\"\$thisdir/\$destdir\" ;;
5397 esac
5398 fi
5399
5400 file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
5401 file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
5402 done
5403
5404 # Try to get the absolute directory name.
5405 absdir=\`cd \"\$thisdir\" && pwd\`
5406 test -n \"\$absdir\" && thisdir=\"\$absdir\"
5407"
5408
5409 if test "$fast_install" = yes; then
5410 $echo >> $output "\
5411 program=lt-'$outputname'$exeext
5412 progdir=\"\$thisdir/$objdir\"
5413
5414 if test ! -f \"\$progdir/\$program\" || \\
5415 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
5416 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
5417
5418 file=\"\$\$-\$program\"
5419
5420 if test ! -d \"\$progdir\"; then
5421 $mkdir \"\$progdir\"
5422 else
5423 $rm \"\$progdir/\$file\"
5424 fi"
5425
5426 $echo >> $output "\
5427
5428 # relink executable if necessary
5429 if test -n \"\$relink_command\"; then
5430 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
5431 else
5432 $echo \"\$relink_command_output\" >&2
5433 $rm \"\$progdir/\$file\"
5434 exit $EXIT_FAILURE
5435 fi
5436 fi
5437
5438 $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
5439 { $rm \"\$progdir/\$program\";
5440 $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
5441 $rm \"\$progdir/\$file\"
5442 fi"
5443 else
5444 $echo >> $output "\
5445 program='$outputname'
5446 progdir=\"\$thisdir/$objdir\"
5447"
5448 fi
5449
5450 $echo >> $output "\
5451
5452 if test -f \"\$progdir/\$program\"; then"
5453
5454 # Export our shlibpath_var if we have one.
5455 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
5456 $echo >> $output "\
5457 # Add our own library path to $shlibpath_var
5458 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
5459
5460 # Some systems cannot cope with colon-terminated $shlibpath_var
5461 # The second colon is a workaround for a bug in BeOS R4 sed
5462 $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
5463
5464 export $shlibpath_var
5465"
5466 fi
5467
5468 # fixup the dll searchpath if we need to.
5469 if test -n "$dllsearchpath"; then
5470 $echo >> $output "\
5471 # Add the dll search path components to the executable PATH
5472 PATH=$dllsearchpath:\$PATH
5473"
5474 fi
5475
5476 $echo >> $output "\
5477 if test \"\$libtool_execute_magic\" != \"$magic\"; then
5478 # Run the actual program with our arguments.
5479"
5480 case $host in
5481 # Backslashes separate directories on plain windows
5482 *-*-mingw | *-*-os2*)
5483 $echo >> $output "\
5484 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
5485"
5486 ;;
5487
5488 *)
5489 $echo >> $output "\
5490 exec \"\$progdir/\$program\" \${1+\"\$@\"}
5491"
5492 ;;
5493 esac
5494 $echo >> $output "\
5495 \$echo \"\$0: cannot exec \$program \$*\"
5496 exit $EXIT_FAILURE
5497 fi
5498 else
5499 # The program doesn't exist.
5500 \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
5501 \$echo \"This script is just a wrapper for \$program.\" 1>&2
5502 $echo \"See the $PACKAGE documentation for more information.\" 1>&2
5503 exit $EXIT_FAILURE
5504 fi
5505fi\
5506"
5507 chmod +x $output
5508 fi
5509 exit $EXIT_SUCCESS
5510 ;;
5511 esac
5512
5513 # See if we need to build an old-fashioned archive.
5514 for oldlib in $oldlibs; do
5515
5516 if test "$build_libtool_libs" = convenience; then
5517 oldobjs="$libobjs_save"
5518 addlibs="$convenience"
5519 build_libtool_libs=no
5520 else
5521 if test "$build_libtool_libs" = module; then
5522 oldobjs="$libobjs_save"
5523 build_libtool_libs=no
5524 else
5525 oldobjs="$old_deplibs $non_pic_objects"
5526 fi
5527 addlibs="$old_convenience"
5528 fi
5529
5530 if test -n "$addlibs"; then
5531 gentop="$output_objdir/${outputname}x"
5532 generated="$generated $gentop"
5533
5534 func_extract_archives $gentop $addlibs
5535 oldobjs="$oldobjs $func_extract_archives_result"
5536 fi
5537
5538 # Do each command in the archive commands.
5539 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
5540 cmds=$old_archive_from_new_cmds
5541 else
5542 # POSIX demands no paths to be encoded in archives. We have
5543 # to avoid creating archives with duplicate basenames if we
5544 # might have to extract them afterwards, e.g., when creating a
5545 # static archive out of a convenience library, or when linking
5546 # the entirety of a libtool archive into another (currently
5547 # not supported by libtool).
5548 if (for obj in $oldobjs
5549 do
5550 $echo "X$obj" | $Xsed -e 's%^.*/%%'
5551 done | sort | sort -uc >/dev/null 2>&1); then
5552 :
5553 else
5554 $echo "copying selected object files to avoid basename conflicts..."
5555
5556 if test -z "$gentop"; then
5557 gentop="$output_objdir/${outputname}x"
5558 generated="$generated $gentop"
5559
5560 $show "${rm}r $gentop"
5561 $run ${rm}r "$gentop"
5562 $show "$mkdir $gentop"
5563 $run $mkdir "$gentop"
5564 exit_status=$?
5565 if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
5566 exit $exit_status
5567 fi
5568 fi
5569
5570 save_oldobjs=$oldobjs
5571 oldobjs=
5572 counter=1
5573 for obj in $save_oldobjs
5574 do
5575 objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
5576 case " $oldobjs " in
5577 " ") oldobjs=$obj ;;
5578 *[\ /]"$objbase "*)
5579 while :; do
5580 # Make sure we don't pick an alternate name that also
5581 # overlaps.
5582 newobj=lt$counter-$objbase
5583 counter=`expr $counter + 1`
5584 case " $oldobjs " in
5585 *[\ /]"$newobj "*) ;;
5586 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
5587 esac
5588 done
5589 $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
5590 $run ln "$obj" "$gentop/$newobj" ||
5591 $run cp "$obj" "$gentop/$newobj"
5592 oldobjs="$oldobjs $gentop/$newobj"
5593 ;;
5594 *) oldobjs="$oldobjs $obj" ;;
5595 esac
5596 done
5597 fi
5598
5599 eval cmds=\"$old_archive_cmds\"
5600
5601 if len=`expr "X$cmds" : ".*"` &&
5602 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
5603 cmds=$old_archive_cmds
5604 else
5605 # the command line is too long to link in one step, link in parts
5606 $echo "using piecewise archive linking..."
5607 save_RANLIB=$RANLIB
5608 RANLIB=:
5609 objlist=
5610 concat_cmds=
5611 save_oldobjs=$oldobjs
5612
5613 # Is there a better way of finding the last object in the list?
5614 for obj in $save_oldobjs
5615 do
5616 last_oldobj=$obj
5617 done
5618 for obj in $save_oldobjs
5619 do
5620 oldobjs="$objlist $obj"
5621 objlist="$objlist $obj"
5622 eval test_cmds=\"$old_archive_cmds\"
5623 if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
5624 test "$len" -le "$max_cmd_len"; then
5625 :
5626 else
5627 # the above command should be used before it gets too long
5628 oldobjs=$objlist
5629 if test "$obj" = "$last_oldobj" ; then
5630 RANLIB=$save_RANLIB
5631 fi
5632 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
5633 eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
5634 objlist=
5635 fi
5636 done
5637 RANLIB=$save_RANLIB
5638 oldobjs=$objlist
5639 if test "X$oldobjs" = "X" ; then
5640 eval cmds=\"\$concat_cmds\"
5641 else
5642 eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
5643 fi
5644 fi
5645 fi
5646 save_ifs="$IFS"; IFS='~'
5647 for cmd in $cmds; do
5648 eval cmd=\"$cmd\"
5649 IFS="$save_ifs"
5650 $show "$cmd"
5651 $run eval "$cmd" || exit $?
5652 done
5653 IFS="$save_ifs"
5654 done
5655
5656 if test -n "$generated"; then
5657 $show "${rm}r$generated"
5658 $run ${rm}r$generated
5659 fi
5660
5661 # Now create the libtool archive.
5662 case $output in
5663 *.la)
5664 old_library=
5665 test "$build_old_libs" = yes && old_library="$libname.$libext"
5666 $show "creating $output"
5667
5668 # Preserve any variables that may affect compiler behavior
5669 for var in $variables_saved_for_relink; do
5670 if eval test -z \"\${$var+set}\"; then
5671 relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
5672 elif eval var_value=\$$var; test -z "$var_value"; then
5673 relink_command="$var=; export $var; $relink_command"
5674 else
5675 var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
5676 relink_command="$var=\"$var_value\"; export $var; $relink_command"
5677 fi
5678 done
5679 # Quote the link command for shipping.
5680 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
5681 relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
5682 if test "$hardcode_automatic" = yes ; then
5683 relink_command=
5684 fi
5685
5686
5687 # Only create the output if not a dry run.
5688 if test -z "$run"; then
5689 for installed in no yes; do
5690 if test "$installed" = yes; then
5691 if test -z "$install_libdir"; then
5692 break
5693 fi
5694 output="$output_objdir/$outputname"i
5695 # Replace all uninstalled libtool libraries with the installed ones
5696 newdependency_libs=
5697 for deplib in $dependency_libs; do
5698 case $deplib in
5699 *.la)
5700 name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
5701 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
5702 if test -z "$libdir"; then
5703 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
5704 exit $EXIT_FAILURE
5705 fi
5706 newdependency_libs="$newdependency_libs $libdir/$name"
5707 ;;
5708 *) newdependency_libs="$newdependency_libs $deplib" ;;
5709 esac
5710 done
5711 dependency_libs="$newdependency_libs"
5712 newdlfiles=
5713 for lib in $dlfiles; do
5714 name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
5715 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
5716 if test -z "$libdir"; then
5717 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
5718 exit $EXIT_FAILURE
5719 fi
5720 newdlfiles="$newdlfiles $libdir/$name"
5721 done
5722 dlfiles="$newdlfiles"
5723 newdlprefiles=
5724 for lib in $dlprefiles; do
5725 name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
5726 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
5727 if test -z "$libdir"; then
5728 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
5729 exit $EXIT_FAILURE
5730 fi
5731 newdlprefiles="$newdlprefiles $libdir/$name"
5732 done
5733 dlprefiles="$newdlprefiles"
5734 else
5735 newdlfiles=
5736 for lib in $dlfiles; do
5737 case $lib in
5738 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
5739 *) abs=`pwd`"/$lib" ;;
5740 esac
5741 newdlfiles="$newdlfiles $abs"
5742 done
5743 dlfiles="$newdlfiles"
5744 newdlprefiles=
5745 for lib in $dlprefiles; do
5746 case $lib in
5747 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
5748 *) abs=`pwd`"/$lib" ;;
5749 esac
5750 newdlprefiles="$newdlprefiles $abs"
5751 done
5752 dlprefiles="$newdlprefiles"
5753 fi
5754 $rm $output
5755 # place dlname in correct position for cygwin
5756 tdlname=$dlname
5757 case $host,$output,$installed,$module,$dlname in
5758 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
5759 esac
5760 $echo > $output "\
5761# $outputname - a libtool library file
5762# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
5763#
5764# Please DO NOT delete this file!
5765# It is necessary for linking the library.
5766
5767# The name that we can dlopen(3).
5768dlname='$tdlname'
5769
5770# Names of this library.
5771library_names='$library_names'
5772
5773# The name of the static archive.
5774old_library='$old_library'
5775
5776# Libraries that this one depends upon.
5777dependency_libs='$dependency_libs'
5778
5779# Version information for $libname.
5780current=$current
5781age=$age
5782revision=$revision
5783
5784# Is this an already installed library?
5785installed=$installed
5786
5787# Should we warn about portability when linking against -modules?
5788shouldnotlink=$module
5789
5790# Files to dlopen/dlpreopen
5791dlopen='$dlfiles'
5792dlpreopen='$dlprefiles'
5793
5794# Directory that this library needs to be installed in:
5795libdir='$install_libdir'"
5796 if test "$installed" = no && test "$need_relink" = yes; then
5797 $echo >> $output "\
5798relink_command=\"$relink_command\""
5799 fi
5800 done
5801 fi
5802
5803 # Do a symbolic link so that the libtool archive can be found in
5804 # LD_LIBRARY_PATH before the program is installed.
5805 $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
5806 $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
5807 ;;
5808 esac
5809 exit $EXIT_SUCCESS
5810 ;;
5811
5812 # libtool install mode
5813 install)
5814 modename="$modename: install"
5815
5816 # There may be an optional sh(1) argument at the beginning of
5817 # install_prog (especially on Windows NT).
5818 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
5819 # Allow the use of GNU shtool's install command.
5820 $echo "X$nonopt" | grep shtool > /dev/null; then
5821 # Aesthetically quote it.
5822 arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
5823 case $arg in
5824 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5825 arg="\"$arg\""
5826 ;;
5827 esac
5828 install_prog="$arg "
5829 arg="$1"
5830 shift
5831 else
5832 install_prog=
5833 arg=$nonopt
5834 fi
5835
5836 # The real first argument should be the name of the installation program.
5837 # Aesthetically quote it.
5838 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5839 case $arg in
5840 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5841 arg="\"$arg\""
5842 ;;
5843 esac
5844 install_prog="$install_prog$arg"
5845
5846 # We need to accept at least all the BSD install flags.
5847 dest=
5848 files=
5849 opts=
5850 prev=
5851 install_type=
5852 isdir=no
5853 stripme=
5854 for arg
5855 do
5856 if test -n "$dest"; then
5857 files="$files $dest"
5858 dest=$arg
5859 continue
5860 fi
5861
5862 case $arg in
5863 -d) isdir=yes ;;
5864 -f)
5865 case " $install_prog " in
5866 *[\\\ /]cp\ *) ;;
5867 *) prev=$arg ;;
5868 esac
5869 ;;
5870 -g | -m | -o) prev=$arg ;;
5871 -s)
5872 stripme=" -s"
5873 continue
5874 ;;
5875 -*)
5876 ;;
5877 *)
5878 # If the previous option needed an argument, then skip it.
5879 if test -n "$prev"; then
5880 prev=
5881 else
5882 dest=$arg
5883 continue
5884 fi
5885 ;;
5886 esac
5887
5888 # Aesthetically quote the argument.
5889 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5890 case $arg in
5891 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5892 arg="\"$arg\""
5893 ;;
5894 esac
5895 install_prog="$install_prog $arg"
5896 done
5897
5898 if test -z "$install_prog"; then
5899 $echo "$modename: you must specify an install program" 1>&2
5900 $echo "$help" 1>&2
5901 exit $EXIT_FAILURE
5902 fi
5903
5904 if test -n "$prev"; then
5905 $echo "$modename: the \`$prev' option requires an argument" 1>&2
5906 $echo "$help" 1>&2
5907 exit $EXIT_FAILURE
5908 fi
5909
5910 if test -z "$files"; then
5911 if test -z "$dest"; then
5912 $echo "$modename: no file or destination specified" 1>&2
5913 else
5914 $echo "$modename: you must specify a destination" 1>&2
5915 fi
5916 $echo "$help" 1>&2
5917 exit $EXIT_FAILURE
5918 fi
5919
5920 # Strip any trailing slash from the destination.
5921 dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
5922
5923 # Check to see that the destination is a directory.
5924 test -d "$dest" && isdir=yes
5925 if test "$isdir" = yes; then
5926 destdir="$dest"
5927 destname=
5928 else
5929 destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
5930 test "X$destdir" = "X$dest" && destdir=.
5931 destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
5932
5933 # Not a directory, so check to see that there is only one file specified.
5934 set dummy $files
5935 if test "$#" -gt 2; then
5936 $echo "$modename: \`$dest' is not a directory" 1>&2
5937 $echo "$help" 1>&2
5938 exit $EXIT_FAILURE
5939 fi
5940 fi
5941 case $destdir in
5942 [\\/]* | [A-Za-z]:[\\/]*) ;;
5943 *)
5944 for file in $files; do
5945 case $file in
5946 *.lo) ;;
5947 *)
5948 $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
5949 $echo "$help" 1>&2
5950 exit $EXIT_FAILURE
5951 ;;
5952 esac
5953 done
5954 ;;
5955 esac
5956
5957 # This variable tells wrapper scripts just to set variables rather
5958 # than running their programs.
5959 libtool_install_magic="$magic"
5960
5961 staticlibs=
5962 future_libdirs=
5963 current_libdirs=
5964 for file in $files; do
5965
5966 # Do each installation.
5967 case $file in
5968 *.$libext)
5969 # Do the static libraries later.
5970 staticlibs="$staticlibs $file"
5971 ;;
5972
5973 *.la)
5974 # Check to see that this really is a libtool archive.
5975 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
5976 else
5977 $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
5978 $echo "$help" 1>&2
5979 exit $EXIT_FAILURE
5980 fi
5981
5982 library_names=
5983 old_library=
5984 relink_command=
5985 # If there is no directory component, then add one.
5986 case $file in
5987 */* | *\\*) . $file ;;
5988 *) . ./$file ;;
5989 esac
5990
5991 # Add the libdir to current_libdirs if it is the destination.
5992 if test "X$destdir" = "X$libdir"; then
5993 case "$current_libdirs " in
5994 *" $libdir "*) ;;
5995 *) current_libdirs="$current_libdirs $libdir" ;;
5996 esac
5997 else
5998 # Note the libdir as a future libdir.
5999 case "$future_libdirs " in
6000 *" $libdir "*) ;;
6001 *) future_libdirs="$future_libdirs $libdir" ;;
6002 esac
6003 fi
6004
6005 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
6006 test "X$dir" = "X$file/" && dir=
6007 dir="$dir$objdir"
6008
6009 if test -n "$relink_command"; then
6010 # Determine the prefix the user has applied to our future dir.
6011 inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
6012
6013 # Don't allow the user to place us outside of our expected
6014 # location b/c this prevents finding dependent libraries that
6015 # are installed to the same prefix.
6016 # At present, this check doesn't affect windows .dll's that
6017 # are installed into $libdir/../bin (currently, that works fine)
6018 # but it's something to keep an eye on.
6019 if test "$inst_prefix_dir" = "$destdir"; then
6020 $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
6021 exit $EXIT_FAILURE
6022 fi
6023
6024 if test -n "$inst_prefix_dir"; then
6025 # Stick the inst_prefix_dir data into the link command.
6026 relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
6027 else
6028 relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
6029 fi
6030
6031 $echo "$modename: warning: relinking \`$file'" 1>&2
6032 $show "$relink_command"
6033 if $run eval "$relink_command"; then :
6034 else
6035 $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
6036 exit $EXIT_FAILURE
6037 fi
6038 fi
6039
6040 # See the names of the shared library.
6041 set dummy $library_names
6042 if test -n "$2"; then
6043 realname="$2"
6044 shift
6045 shift
6046
6047 srcname="$realname"
6048 test -n "$relink_command" && srcname="$realname"T
6049
6050 # Install the shared library and build the symlinks.
6051 $show "$install_prog $dir/$srcname $destdir/$realname"
6052 $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
6053 if test -n "$stripme" && test -n "$striplib"; then
6054 $show "$striplib $destdir/$realname"
6055 $run eval "$striplib $destdir/$realname" || exit $?
6056 fi
6057
6058 if test "$#" -gt 0; then
6059 # Delete the old symlinks, and create new ones.
6060 # Try `ln -sf' first, because the `ln' binary might depend on
6061 # the symlink we replace! Solaris /bin/ln does not understand -f,
6062 # so we also need to try rm && ln -s.
6063 for linkname
6064 do
6065 if test "$linkname" != "$realname"; then
6066 $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
6067 $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
6068 fi
6069 done
6070 fi
6071
6072 # Do each command in the postinstall commands.
6073 lib="$destdir/$realname"
6074 cmds=$postinstall_cmds
6075 save_ifs="$IFS"; IFS='~'
6076 for cmd in $cmds; do
6077 IFS="$save_ifs"
6078 eval cmd=\"$cmd\"
6079 $show "$cmd"
6080 $run eval "$cmd" || {
6081 lt_exit=$?
6082
6083 # Restore the uninstalled library and exit
6084 if test "$mode" = relink; then
6085 $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
6086 fi
6087
6088 exit $lt_exit
6089 }
6090 done
6091 IFS="$save_ifs"
6092 fi
6093
6094 # Install the pseudo-library for information purposes.
6095 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6096 instname="$dir/$name"i
6097 $show "$install_prog $instname $destdir/$name"
6098 $run eval "$install_prog $instname $destdir/$name" || exit $?
6099
6100 # Maybe install the static library, too.
6101 test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
6102 ;;
6103
6104 *.lo)
6105 # Install (i.e. copy) a libtool object.
6106
6107 # Figure out destination file name, if it wasn't already specified.
6108 if test -n "$destname"; then
6109 destfile="$destdir/$destname"
6110 else
6111 destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6112 destfile="$destdir/$destfile"
6113 fi
6114
6115 # Deduce the name of the destination old-style object file.
6116 case $destfile in
6117 *.lo)
6118 staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
6119 ;;
6120 *.$objext)
6121 staticdest="$destfile"
6122 destfile=
6123 ;;
6124 *)
6125 $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
6126 $echo "$help" 1>&2
6127 exit $EXIT_FAILURE
6128 ;;
6129 esac
6130
6131 # Install the libtool object if requested.
6132 if test -n "$destfile"; then
6133 $show "$install_prog $file $destfile"
6134 $run eval "$install_prog $file $destfile" || exit $?
6135 fi
6136
6137 # Install the old object if enabled.
6138 if test "$build_old_libs" = yes; then
6139 # Deduce the name of the old-style object file.
6140 staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
6141
6142 $show "$install_prog $staticobj $staticdest"
6143 $run eval "$install_prog \$staticobj \$staticdest" || exit $?
6144 fi
6145 exit $EXIT_SUCCESS
6146 ;;
6147
6148 *)
6149 # Figure out destination file name, if it wasn't already specified.
6150 if test -n "$destname"; then
6151 destfile="$destdir/$destname"
6152 else
6153 destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6154 destfile="$destdir/$destfile"
6155 fi
6156
6157 # If the file is missing, and there is a .exe on the end, strip it
6158 # because it is most likely a libtool script we actually want to
6159 # install
6160 stripped_ext=""
6161 case $file in
6162 *.exe)
6163 if test ! -f "$file"; then
6164 file=`$echo $file|${SED} 's,.exe$,,'`
6165 stripped_ext=".exe"
6166 fi
6167 ;;
6168 esac
6169
6170 # Do a test to see if this is really a libtool program.
6171 case $host in
6172 *cygwin*|*mingw*)
6173 wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
6174 ;;
6175 *)
6176 wrapper=$file
6177 ;;
6178 esac
6179 if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
6180 notinst_deplibs=
6181 relink_command=
6182
6183 # Note that it is not necessary on cygwin/mingw to append a dot to
6184 # foo even if both foo and FILE.exe exist: automatic-append-.exe
6185 # behavior happens only for exec(3), not for open(2)! Also, sourcing
6186 # `FILE.' does not work on cygwin managed mounts.
6187 #
6188 # If there is no directory component, then add one.
6189 case $wrapper in
6190 */* | *\\*) . ${wrapper} ;;
6191 *) . ./${wrapper} ;;
6192 esac
6193
6194 # Check the variables that should have been set.
6195 if test -z "$notinst_deplibs"; then
6196 $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
6197 exit $EXIT_FAILURE
6198 fi
6199
6200 finalize=yes
6201 for lib in $notinst_deplibs; do
6202 # Check to see that each library is installed.
6203 libdir=
6204 if test -f "$lib"; then
6205 # If there is no directory component, then add one.
6206 case $lib in
6207 */* | *\\*) . $lib ;;
6208 *) . ./$lib ;;
6209 esac
6210 fi
6211 libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
6212 if test -n "$libdir" && test ! -f "$libfile"; then
6213 $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
6214 finalize=no
6215 fi
6216 done
6217
6218 relink_command=
6219 # Note that it is not necessary on cygwin/mingw to append a dot to
6220 # foo even if both foo and FILE.exe exist: automatic-append-.exe
6221 # behavior happens only for exec(3), not for open(2)! Also, sourcing
6222 # `FILE.' does not work on cygwin managed mounts.
6223 #
6224 # If there is no directory component, then add one.
6225 case $wrapper in
6226 */* | *\\*) . ${wrapper} ;;
6227 *) . ./${wrapper} ;;
6228 esac
6229
6230 outputname=
6231 if test "$fast_install" = no && test -n "$relink_command"; then
6232 if test "$finalize" = yes && test -z "$run"; then
6233 tmpdir=`func_mktempdir`
6234 file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
6235 outputname="$tmpdir/$file"
6236 # Replace the output file specification.
6237 relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
6238
6239 $show "$relink_command"
6240 if $run eval "$relink_command"; then :
6241 else
6242 $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
6243 ${rm}r "$tmpdir"
6244 continue
6245 fi
6246 file="$outputname"
6247 else
6248 $echo "$modename: warning: cannot relink \`$file'" 1>&2
6249 fi
6250 else
6251 # Install the binary that we compiled earlier.
6252 file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
6253 fi
6254 fi
6255
6256 # remove .exe since cygwin /usr/bin/install will append another
6257 # one anyway
6258 case $install_prog,$host in
6259 */usr/bin/install*,*cygwin*)
6260 case $file:$destfile in
6261 *.exe:*.exe)
6262 # this is ok
6263 ;;
6264 *.exe:*)
6265 destfile=$destfile.exe
6266 ;;
6267 *:*.exe)
6268 destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
6269 ;;
6270 esac
6271 ;;
6272 esac
6273 $show "$install_prog$stripme $file $destfile"
6274 $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
6275 test -n "$outputname" && ${rm}r "$tmpdir"
6276 ;;
6277 esac
6278 done
6279
6280 for file in $staticlibs; do
6281 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6282
6283 # Set up the ranlib parameters.
6284 oldlib="$destdir/$name"
6285
6286 $show "$install_prog $file $oldlib"
6287 $run eval "$install_prog \$file \$oldlib" || exit $?
6288
6289 if test -n "$stripme" && test -n "$old_striplib"; then
6290 $show "$old_striplib $oldlib"
6291 $run eval "$old_striplib $oldlib" || exit $?
6292 fi
6293
6294 # Do each command in the postinstall commands.
6295 cmds=$old_postinstall_cmds
6296 save_ifs="$IFS"; IFS='~'
6297 for cmd in $cmds; do
6298 IFS="$save_ifs"
6299 eval cmd=\"$cmd\"
6300 $show "$cmd"
6301 $run eval "$cmd" || exit $?
6302 done
6303 IFS="$save_ifs"
6304 done
6305
6306 if test -n "$future_libdirs"; then
6307 $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
6308 fi
6309
6310 if test -n "$current_libdirs"; then
6311 # Maybe just do a dry run.
6312 test -n "$run" && current_libdirs=" -n$current_libdirs"
6313 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
6314 else
6315 exit $EXIT_SUCCESS
6316 fi
6317 ;;
6318
6319 # libtool finish mode
6320 finish)
6321 modename="$modename: finish"
6322 libdirs="$nonopt"
6323 admincmds=
6324
6325 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
6326 for dir
6327 do
6328 libdirs="$libdirs $dir"
6329 done
6330
6331 for libdir in $libdirs; do
6332 if test -n "$finish_cmds"; then
6333 # Do each command in the finish commands.
6334 cmds=$finish_cmds
6335 save_ifs="$IFS"; IFS='~'
6336 for cmd in $cmds; do
6337 IFS="$save_ifs"
6338 eval cmd=\"$cmd\"
6339 $show "$cmd"
6340 $run eval "$cmd" || admincmds="$admincmds
6341 $cmd"
6342 done
6343 IFS="$save_ifs"
6344 fi
6345 if test -n "$finish_eval"; then
6346 # Do the single finish_eval.
6347 eval cmds=\"$finish_eval\"
6348 $run eval "$cmds" || admincmds="$admincmds
6349 $cmds"
6350 fi
6351 done
6352 fi
6353
6354 # Exit here if they wanted silent mode.
6355 test "$show" = : && exit $EXIT_SUCCESS
6356
6357 $echo "X----------------------------------------------------------------------" | $Xsed
6358 $echo "Libraries have been installed in:"
6359 for libdir in $libdirs; do
6360 $echo " $libdir"
6361 done
6362 $echo
6363 $echo "If you ever happen to want to link against installed libraries"
6364 $echo "in a given directory, LIBDIR, you must either use libtool, and"
6365 $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
6366 $echo "flag during linking and do at least one of the following:"
6367 if test -n "$shlibpath_var"; then
6368 $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
6369 $echo " during execution"
6370 fi
6371 if test -n "$runpath_var"; then
6372 $echo " - add LIBDIR to the \`$runpath_var' environment variable"
6373 $echo " during linking"
6374 fi
6375 if test -n "$hardcode_libdir_flag_spec"; then
6376 libdir=LIBDIR
6377 eval flag=\"$hardcode_libdir_flag_spec\"
6378
6379 $echo " - use the \`$flag' linker flag"
6380 fi
6381 if test -n "$admincmds"; then
6382 $echo " - have your system administrator run these commands:$admincmds"
6383 fi
6384 if test -f /etc/ld.so.conf; then
6385 $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
6386 fi
6387 $echo
6388 $echo "See any operating system documentation about shared libraries for"
6389 $echo "more information, such as the ld(1) and ld.so(8) manual pages."
6390 $echo "X----------------------------------------------------------------------" | $Xsed
6391 exit $EXIT_SUCCESS
6392 ;;
6393
6394 # libtool execute mode
6395 execute)
6396 modename="$modename: execute"
6397
6398 # The first argument is the command name.
6399 cmd="$nonopt"
6400 if test -z "$cmd"; then
6401 $echo "$modename: you must specify a COMMAND" 1>&2
6402 $echo "$help"
6403 exit $EXIT_FAILURE
6404 fi
6405
6406 # Handle -dlopen flags immediately.
6407 for file in $execute_dlfiles; do
6408 if test ! -f "$file"; then
6409 $echo "$modename: \`$file' is not a file" 1>&2
6410 $echo "$help" 1>&2
6411 exit $EXIT_FAILURE
6412 fi
6413
6414 dir=
6415 case $file in
6416 *.la)
6417 # Check to see that this really is a libtool archive.
6418 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
6419 else
6420 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
6421 $echo "$help" 1>&2
6422 exit $EXIT_FAILURE
6423 fi
6424
6425 # Read the libtool library.
6426 dlname=
6427 library_names=
6428
6429 # If there is no directory component, then add one.
6430 case $file in
6431 */* | *\\*) . $file ;;
6432 *) . ./$file ;;
6433 esac
6434
6435 # Skip this library if it cannot be dlopened.
6436 if test -z "$dlname"; then
6437 # Warn if it was a shared library.
6438 test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
6439 continue
6440 fi
6441
6442 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
6443 test "X$dir" = "X$file" && dir=.
6444
6445 if test -f "$dir/$objdir/$dlname"; then
6446 dir="$dir/$objdir"
6447 else
6448 if test ! -f "$dir/$dlname"; then
6449 $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
6450 exit $EXIT_FAILURE
6451 fi
6452 fi
6453 ;;
6454
6455 *.lo)
6456 # Just add the directory containing the .lo file.
6457 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
6458 test "X$dir" = "X$file" && dir=.
6459 ;;
6460
6461 *)
6462 $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
6463 continue
6464 ;;
6465 esac
6466
6467 # Get the absolute pathname.
6468 absdir=`cd "$dir" && pwd`
6469 test -n "$absdir" && dir="$absdir"
6470
6471 # Now add the directory to shlibpath_var.
6472 if eval "test -z \"\$$shlibpath_var\""; then
6473 eval "$shlibpath_var=\"\$dir\""
6474 else
6475 eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
6476 fi
6477 done
6478
6479 # This variable tells wrapper scripts just to set shlibpath_var
6480 # rather than running their programs.
6481 libtool_execute_magic="$magic"
6482
6483 # Check if any of the arguments is a wrapper script.
6484 args=
6485 for file
6486 do
6487 case $file in
6488 -*) ;;
6489 *)
6490 # Do a test to see if this is really a libtool program.
6491 if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6492 # If there is no directory component, then add one.
6493 case $file in
6494 */* | *\\*) . $file ;;
6495 *) . ./$file ;;
6496 esac
6497
6498 # Transform arg to wrapped name.
6499 file="$progdir/$program"
6500 fi
6501 ;;
6502 esac
6503 # Quote arguments (to preserve shell metacharacters).
6504 file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
6505 args="$args \"$file\""
6506 done
6507
6508 if test -z "$run"; then
6509 if test -n "$shlibpath_var"; then
6510 # Export the shlibpath_var.
6511 eval "export $shlibpath_var"
6512 fi
6513
6514 # Restore saved environment variables
6515 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
6516 do
6517 eval "if test \"\${save_$lt_var+set}\" = set; then
6518 $lt_var=\$save_$lt_var; export $lt_var
6519 fi"
6520 done
6521
6522 # Now prepare to actually exec the command.
6523 exec_cmd="\$cmd$args"
6524 else
6525 # Display what would be done.
6526 if test -n "$shlibpath_var"; then
6527 eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
6528 $echo "export $shlibpath_var"
6529 fi
6530 $echo "$cmd$args"
6531 exit $EXIT_SUCCESS
6532 fi
6533 ;;
6534
6535 # libtool clean and uninstall mode
6536 clean | uninstall)
6537 modename="$modename: $mode"
6538 rm="$nonopt"
6539 files=
6540 rmforce=
6541 exit_status=0
6542
6543 # This variable tells wrapper scripts just to set variables rather
6544 # than running their programs.
6545 libtool_install_magic="$magic"
6546
6547 for arg
6548 do
6549 case $arg in
6550 -f) rm="$rm $arg"; rmforce=yes ;;
6551 -*) rm="$rm $arg" ;;
6552 *) files="$files $arg" ;;
6553 esac
6554 done
6555
6556 if test -z "$rm"; then
6557 $echo "$modename: you must specify an RM program" 1>&2
6558 $echo "$help" 1>&2
6559 exit $EXIT_FAILURE
6560 fi
6561
6562 rmdirs=
6563
6564 origobjdir="$objdir"
6565 for file in $files; do
6566 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
6567 if test "X$dir" = "X$file"; then
6568 dir=.
6569 objdir="$origobjdir"
6570 else
6571 objdir="$dir/$origobjdir"
6572 fi
6573 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6574 test "$mode" = uninstall && objdir="$dir"
6575
6576 # Remember objdir for removal later, being careful to avoid duplicates
6577 if test "$mode" = clean; then
6578 case " $rmdirs " in
6579 *" $objdir "*) ;;
6580 *) rmdirs="$rmdirs $objdir" ;;
6581 esac
6582 fi
6583
6584 # Don't error if the file doesn't exist and rm -f was used.
6585 if (test -L "$file") >/dev/null 2>&1 \
6586 || (test -h "$file") >/dev/null 2>&1 \
6587 || test -f "$file"; then
6588 :
6589 elif test -d "$file"; then
6590 exit_status=1
6591 continue
6592 elif test "$rmforce" = yes; then
6593 continue
6594 fi
6595
6596 rmfiles="$file"
6597
6598 case $name in
6599 *.la)
6600 # Possibly a libtool archive, so verify it.
6601 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6602 . $dir/$name
6603
6604 # Delete the libtool libraries and symlinks.
6605 for n in $library_names; do
6606 rmfiles="$rmfiles $objdir/$n"
6607 done
6608 test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
6609
6610 case "$mode" in
6611 clean)
6612 case " $library_names " in
6613 # " " in the beginning catches empty $dlname
6614 *" $dlname "*) ;;
6615 *) rmfiles="$rmfiles $objdir/$dlname" ;;
6616 esac
6617 test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
6618 ;;
6619 uninstall)
6620 if test -n "$library_names"; then
6621 # Do each command in the postuninstall commands.
6622 cmds=$postuninstall_cmds
6623 save_ifs="$IFS"; IFS='~'
6624 for cmd in $cmds; do
6625 IFS="$save_ifs"
6626 eval cmd=\"$cmd\"
6627 $show "$cmd"
6628 $run eval "$cmd"
6629 if test "$?" -ne 0 && test "$rmforce" != yes; then
6630 exit_status=1
6631 fi
6632 done
6633 IFS="$save_ifs"
6634 fi
6635
6636 if test -n "$old_library"; then
6637 # Do each command in the old_postuninstall commands.
6638 cmds=$old_postuninstall_cmds
6639 save_ifs="$IFS"; IFS='~'
6640 for cmd in $cmds; do
6641 IFS="$save_ifs"
6642 eval cmd=\"$cmd\"
6643 $show "$cmd"
6644 $run eval "$cmd"
6645 if test "$?" -ne 0 && test "$rmforce" != yes; then
6646 exit_status=1
6647 fi
6648 done
6649 IFS="$save_ifs"
6650 fi
6651 # FIXME: should reinstall the best remaining shared library.
6652 ;;
6653 esac
6654 fi
6655 ;;
6656
6657 *.lo)
6658 # Possibly a libtool object, so verify it.
6659 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6660
6661 # Read the .lo file
6662 . $dir/$name
6663
6664 # Add PIC object to the list of files to remove.
6665 if test -n "$pic_object" \
6666 && test "$pic_object" != none; then
6667 rmfiles="$rmfiles $dir/$pic_object"
6668 fi
6669
6670 # Add non-PIC object to the list of files to remove.
6671 if test -n "$non_pic_object" \
6672 && test "$non_pic_object" != none; then
6673 rmfiles="$rmfiles $dir/$non_pic_object"
6674 fi
6675 fi
6676 ;;
6677
6678 *)
6679 if test "$mode" = clean ; then
6680 noexename=$name
6681 case $file in
6682 *.exe)
6683 file=`$echo $file|${SED} 's,.exe$,,'`
6684 noexename=`$echo $name|${SED} 's,.exe$,,'`
6685 # $file with .exe has already been added to rmfiles,
6686 # add $file without .exe
6687 rmfiles="$rmfiles $file"
6688 ;;
6689 esac
6690 # Do a test to see if this is a libtool program.
6691 if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6692 relink_command=
6693 . $dir/$noexename
6694
6695 # note $name still contains .exe if it was in $file originally
6696 # as does the version of $file that was added into $rmfiles
6697 rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
6698 if test "$fast_install" = yes && test -n "$relink_command"; then
6699 rmfiles="$rmfiles $objdir/lt-$name"
6700 fi
6701 if test "X$noexename" != "X$name" ; then
6702 rmfiles="$rmfiles $objdir/lt-${noexename}.c"
6703 fi
6704 fi
6705 fi
6706 ;;
6707 esac
6708 $show "$rm $rmfiles"
6709 $run $rm $rmfiles || exit_status=1
6710 done
6711 objdir="$origobjdir"
6712
6713 # Try to remove the ${objdir}s in the directories where we deleted files
6714 for dir in $rmdirs; do
6715 if test -d "$dir"; then
6716 $show "rmdir $dir"
6717 $run rmdir $dir >/dev/null 2>&1
6718 fi
6719 done
6720
6721 exit $exit_status
6722 ;;
6723
6724 "")
6725 $echo "$modename: you must specify a MODE" 1>&2
6726 $echo "$generic_help" 1>&2
6727 exit $EXIT_FAILURE
6728 ;;
6729 esac
6730
6731 if test -z "$exec_cmd"; then
6732 $echo "$modename: invalid operation mode \`$mode'" 1>&2
6733 $echo "$generic_help" 1>&2
6734 exit $EXIT_FAILURE
6735 fi
6736fi # test -z "$show_help"
6737
6738if test -n "$exec_cmd"; then
6739 eval exec $exec_cmd
6740 exit $EXIT_FAILURE
6741fi
6742
6743# We need to display help for each of the modes.
6744case $mode in
6745"") $echo \
6746"Usage: $modename [OPTION]... [MODE-ARG]...
6747
6748Provide generalized library-building support services.
6749
6750 --config show all configuration variables
6751 --debug enable verbose shell tracing
6752-n, --dry-run display commands without modifying any files
6753 --features display basic configuration information and exit
6754 --finish same as \`--mode=finish'
6755 --help display this help message and exit
6756 --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
6757 --quiet same as \`--silent'
6758 --silent don't print informational messages
6759 --tag=TAG use configuration variables from tag TAG
6760 --version print version information
6761
6762MODE must be one of the following:
6763
6764 clean remove files from the build directory
6765 compile compile a source file into a libtool object
6766 execute automatically set library path, then run a program
6767 finish complete the installation of libtool libraries
6768 install install libraries or executables
6769 link create a library or an executable
6770 uninstall remove libraries from an installed directory
6771
6772MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
6773a more detailed description of MODE.
6774
6775Report bugs to <bug-libtool@gnu.org>."
6776 exit $EXIT_SUCCESS
6777 ;;
6778
6779clean)
6780 $echo \
6781"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
6782
6783Remove files from the build directory.
6784
6785RM is the name of the program to use to delete files associated with each FILE
6786(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
6787to RM.
6788
6789If FILE is a libtool library, object or program, all the files associated
6790with it are deleted. Otherwise, only FILE itself is deleted using RM."
6791 ;;
6792
6793compile)
6794 $echo \
6795"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
6796
6797Compile a source file into a libtool library object.
6798
6799This mode accepts the following additional options:
6800
6801 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
6802 -prefer-pic try to building PIC objects only
6803 -prefer-non-pic try to building non-PIC objects only
6804 -static always build a \`.o' file suitable for static linking
6805
6806COMPILE-COMMAND is a command to be used in creating a \`standard' object file
6807from the given SOURCEFILE.
6808
6809The output file name is determined by removing the directory component from
6810SOURCEFILE, then substituting the C source code suffix \`.c' with the
6811library object suffix, \`.lo'."
6812 ;;
6813
6814execute)
6815 $echo \
6816"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
6817
6818Automatically set library path, then run a program.
6819
6820This mode accepts the following additional options:
6821
6822 -dlopen FILE add the directory containing FILE to the library path
6823
6824This mode sets the library path environment variable according to \`-dlopen'
6825flags.
6826
6827If any of the ARGS are libtool executable wrappers, then they are translated
6828into their corresponding uninstalled binary, and any of their required library
6829directories are added to the library path.
6830
6831Then, COMMAND is executed, with ARGS as arguments."
6832 ;;
6833
6834finish)
6835 $echo \
6836"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
6837
6838Complete the installation of libtool libraries.
6839
6840Each LIBDIR is a directory that contains libtool libraries.
6841
6842The commands that this mode executes may require superuser privileges. Use
6843the \`--dry-run' option if you just want to see what would be executed."
6844 ;;
6845
6846install)
6847 $echo \
6848"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
6849
6850Install executables or libraries.
6851
6852INSTALL-COMMAND is the installation command. The first component should be
6853either the \`install' or \`cp' program.
6854
6855The rest of the components are interpreted as arguments to that command (only
6856BSD-compatible install options are recognized)."
6857 ;;
6858
6859link)
6860 $echo \
6861"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
6862
6863Link object files or libraries together to form another library, or to
6864create an executable program.
6865
6866LINK-COMMAND is a command using the C compiler that you would use to create
6867a program from several object files.
6868
6869The following components of LINK-COMMAND are treated specially:
6870
6871 -all-static do not do any dynamic linking at all
6872 -avoid-version do not add a version suffix if possible
6873 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
6874 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
6875 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
6876 -export-symbols SYMFILE
6877 try to export only the symbols listed in SYMFILE
6878 -export-symbols-regex REGEX
6879 try to export only the symbols matching REGEX
6880 -LLIBDIR search LIBDIR for required installed libraries
6881 -lNAME OUTPUT-FILE requires the installed library libNAME
6882 -module build a library that can dlopened
6883 -no-fast-install disable the fast-install mode
6884 -no-install link a not-installable executable
6885 -no-undefined declare that a library does not refer to external symbols
6886 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
6887 -objectlist FILE Use a list of object files found in FILE to specify objects
6888 -precious-files-regex REGEX
6889 don't remove output files matching REGEX
6890 -release RELEASE specify package release information
6891 -rpath LIBDIR the created library will eventually be installed in LIBDIR
6892 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
6893 -static do not do any dynamic linking of uninstalled libtool libraries
6894 -static-libtool-libs
6895 do not do any dynamic linking of libtool libraries
6896 -version-info CURRENT[:REVISION[:AGE]]
6897 specify library version info [each variable defaults to 0]
6898
6899All other options (arguments beginning with \`-') are ignored.
6900
6901Every other argument is treated as a filename. Files ending in \`.la' are
6902treated as uninstalled libtool libraries, other files are standard or library
6903object files.
6904
6905If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
6906only library objects (\`.lo' files) may be specified, and \`-rpath' is
6907required, except when creating a convenience library.
6908
6909If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
6910using \`ar' and \`ranlib', or on Windows using \`lib'.
6911
6912If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
6913is created, otherwise an executable program is created."
6914 ;;
6915
6916uninstall)
6917 $echo \
6918"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
6919
6920Remove libraries from an installation directory.
6921
6922RM is the name of the program to use to delete files associated with each FILE
6923(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
6924to RM.
6925
6926If FILE is a libtool library, all the files associated with it are deleted.
6927Otherwise, only FILE itself is deleted using RM."
6928 ;;
6929
6930*)
6931 $echo "$modename: invalid operation mode \`$mode'" 1>&2
6932 $echo "$help" 1>&2
6933 exit $EXIT_FAILURE
6934 ;;
6935esac
6936
6937$echo
6938$echo "Try \`$modename --help' for more information about other modes."
6939
6940exit $?
6941
6942# The TAGs below are defined such that we never get into a situation
6943# in which we disable both kinds of libraries. Given conflicting
6944# choices, we go for a static library, that is the most portable,
6945# since we can't tell whether shared libraries were disabled because
6946# the user asked for that or because the platform doesn't support
6947# them. This is particularly important on AIX, because we don't
6948# support having both static and shared libraries enabled at the same
6949# time on that platform, so we default to a shared-only configuration.
6950# If a disable-shared tag is given, we'll fallback to a static-only
6951# configuration. But we'll never go from static-only to shared-only.
6952
6953# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
6954disable_libs=shared
6955# ### END LIBTOOL TAG CONFIG: disable-shared
6956
6957# ### BEGIN LIBTOOL TAG CONFIG: disable-static
6958disable_libs=static
6959# ### END LIBTOOL TAG CONFIG: disable-static
6960
6961# Local Variables:
6962# mode:shell-script
6963# sh-indentation:2
6964# End:
diff --git a/src/others/mimesh/libg3d-0.0.8/config/missing b/src/others/mimesh/libg3d-0.0.8/config/missing
new file mode 100755
index 0000000..1c8ff70
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/config/missing
@@ -0,0 +1,367 @@
1#! /bin/sh
2# Common stub for a few missing GNU programs while installing.
3
4scriptversion=2006-05-10.23
5
6# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
7# Free Software Foundation, Inc.
8# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
9
10# This program is free software; you can redistribute it and/or modify
11# it under the terms of the GNU General Public License as published by
12# the Free Software Foundation; either version 2, or (at your option)
13# any later version.
14
15# This program is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18# GNU General Public License for more details.
19
20# You should have received a copy of the GNU General Public License
21# along with this program; if not, write to the Free Software
22# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23# 02110-1301, USA.
24
25# As a special exception to the GNU General Public License, if you
26# distribute this file as part of a program that contains a
27# configuration script generated by Autoconf, you may include it under
28# the same distribution terms that you use for the rest of that program.
29
30if test $# -eq 0; then
31 echo 1>&2 "Try \`$0 --help' for more information"
32 exit 1
33fi
34
35run=:
36sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
37sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
38
39# In the cases where this matters, `missing' is being run in the
40# srcdir already.
41if test -f configure.ac; then
42 configure_ac=configure.ac
43else
44 configure_ac=configure.in
45fi
46
47msg="missing on your system"
48
49case $1 in
50--run)
51 # Try to run requested program, and just exit if it succeeds.
52 run=
53 shift
54 "$@" && exit 0
55 # Exit code 63 means version mismatch. This often happens
56 # when the user try to use an ancient version of a tool on
57 # a file that requires a minimum version. In this case we
58 # we should proceed has if the program had been absent, or
59 # if --run hadn't been passed.
60 if test $? = 63; then
61 run=:
62 msg="probably too old"
63 fi
64 ;;
65
66 -h|--h|--he|--hel|--help)
67 echo "\
68$0 [OPTION]... PROGRAM [ARGUMENT]...
69
70Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
71error status if there is no known handling for PROGRAM.
72
73Options:
74 -h, --help display this help and exit
75 -v, --version output version information and exit
76 --run try to run the given command, and emulate it if it fails
77
78Supported PROGRAM values:
79 aclocal touch file \`aclocal.m4'
80 autoconf touch file \`configure'
81 autoheader touch file \`config.h.in'
82 autom4te touch the output file, or create a stub one
83 automake touch all \`Makefile.in' files
84 bison create \`y.tab.[ch]', if possible, from existing .[ch]
85 flex create \`lex.yy.c', if possible, from existing .c
86 help2man touch the output file
87 lex create \`lex.yy.c', if possible, from existing .c
88 makeinfo touch the output file
89 tar try tar, gnutar, gtar, then tar without non-portable flags
90 yacc create \`y.tab.[ch]', if possible, from existing .[ch]
91
92Send bug reports to <bug-automake@gnu.org>."
93 exit $?
94 ;;
95
96 -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
97 echo "missing $scriptversion (GNU Automake)"
98 exit $?
99 ;;
100
101 -*)
102 echo 1>&2 "$0: Unknown \`$1' option"
103 echo 1>&2 "Try \`$0 --help' for more information"
104 exit 1
105 ;;
106
107esac
108
109# Now exit if we have it, but it failed. Also exit now if we
110# don't have it and --version was passed (most likely to detect
111# the program).
112case $1 in
113 lex|yacc)
114 # Not GNU programs, they don't have --version.
115 ;;
116
117 tar)
118 if test -n "$run"; then
119 echo 1>&2 "ERROR: \`tar' requires --run"
120 exit 1
121 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
122 exit 1
123 fi
124 ;;
125
126 *)
127 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
128 # We have it, but it failed.
129 exit 1
130 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
131 # Could not run --version or --help. This is probably someone
132 # running `$TOOL --version' or `$TOOL --help' to check whether
133 # $TOOL exists and not knowing $TOOL uses missing.
134 exit 1
135 fi
136 ;;
137esac
138
139# If it does not exist, or fails to run (possibly an outdated version),
140# try to emulate it.
141case $1 in
142 aclocal*)
143 echo 1>&2 "\
144WARNING: \`$1' is $msg. You should only need it if
145 you modified \`acinclude.m4' or \`${configure_ac}'. You might want
146 to install the \`Automake' and \`Perl' packages. Grab them from
147 any GNU archive site."
148 touch aclocal.m4
149 ;;
150
151 autoconf)
152 echo 1>&2 "\
153WARNING: \`$1' is $msg. You should only need it if
154 you modified \`${configure_ac}'. You might want to install the
155 \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
156 archive site."
157 touch configure
158 ;;
159
160 autoheader)
161 echo 1>&2 "\
162WARNING: \`$1' is $msg. You should only need it if
163 you modified \`acconfig.h' or \`${configure_ac}'. You might want
164 to install the \`Autoconf' and \`GNU m4' packages. Grab them
165 from any GNU archive site."
166 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
167 test -z "$files" && files="config.h"
168 touch_files=
169 for f in $files; do
170 case $f in
171 *:*) touch_files="$touch_files "`echo "$f" |
172 sed -e 's/^[^:]*://' -e 's/:.*//'`;;
173 *) touch_files="$touch_files $f.in";;
174 esac
175 done
176 touch $touch_files
177 ;;
178
179 automake*)
180 echo 1>&2 "\
181WARNING: \`$1' is $msg. You should only need it if
182 you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
183 You might want to install the \`Automake' and \`Perl' packages.
184 Grab them from any GNU archive site."
185 find . -type f -name Makefile.am -print |
186 sed 's/\.am$/.in/' |
187 while read f; do touch "$f"; done
188 ;;
189
190 autom4te)
191 echo 1>&2 "\
192WARNING: \`$1' is needed, but is $msg.
193 You might have modified some files without having the
194 proper tools for further handling them.
195 You can get \`$1' as part of \`Autoconf' from any GNU
196 archive site."
197
198 file=`echo "$*" | sed -n "$sed_output"`
199 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
200 if test -f "$file"; then
201 touch $file
202 else
203 test -z "$file" || exec >$file
204 echo "#! /bin/sh"
205 echo "# Created by GNU Automake missing as a replacement of"
206 echo "# $ $@"
207 echo "exit 0"
208 chmod +x $file
209 exit 1
210 fi
211 ;;
212
213 bison|yacc)
214 echo 1>&2 "\
215WARNING: \`$1' $msg. You should only need it if
216 you modified a \`.y' file. You may need the \`Bison' package
217 in order for those modifications to take effect. You can get
218 \`Bison' from any GNU archive site."
219 rm -f y.tab.c y.tab.h
220 if test $# -ne 1; then
221 eval LASTARG="\${$#}"
222 case $LASTARG in
223 *.y)
224 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
225 if test -f "$SRCFILE"; then
226 cp "$SRCFILE" y.tab.c
227 fi
228 SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
229 if test -f "$SRCFILE"; then
230 cp "$SRCFILE" y.tab.h
231 fi
232 ;;
233 esac
234 fi
235 if test ! -f y.tab.h; then
236 echo >y.tab.h
237 fi
238 if test ! -f y.tab.c; then
239 echo 'main() { return 0; }' >y.tab.c
240 fi
241 ;;
242
243 lex|flex)
244 echo 1>&2 "\
245WARNING: \`$1' is $msg. You should only need it if
246 you modified a \`.l' file. You may need the \`Flex' package
247 in order for those modifications to take effect. You can get
248 \`Flex' from any GNU archive site."
249 rm -f lex.yy.c
250 if test $# -ne 1; then
251 eval LASTARG="\${$#}"
252 case $LASTARG in
253 *.l)
254 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
255 if test -f "$SRCFILE"; then
256 cp "$SRCFILE" lex.yy.c
257 fi
258 ;;
259 esac
260 fi
261 if test ! -f lex.yy.c; then
262 echo 'main() { return 0; }' >lex.yy.c
263 fi
264 ;;
265
266 help2man)
267 echo 1>&2 "\
268WARNING: \`$1' is $msg. You should only need it if
269 you modified a dependency of a manual page. You may need the
270 \`Help2man' package in order for those modifications to take
271 effect. You can get \`Help2man' from any GNU archive site."
272
273 file=`echo "$*" | sed -n "$sed_output"`
274 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
275 if test -f "$file"; then
276 touch $file
277 else
278 test -z "$file" || exec >$file
279 echo ".ab help2man is required to generate this page"
280 exit 1
281 fi
282 ;;
283
284 makeinfo)
285 echo 1>&2 "\
286WARNING: \`$1' is $msg. You should only need it if
287 you modified a \`.texi' or \`.texinfo' file, or any other file
288 indirectly affecting the aspect of the manual. The spurious
289 call might also be the consequence of using a buggy \`make' (AIX,
290 DU, IRIX). You might want to install the \`Texinfo' package or
291 the \`GNU make' package. Grab either from any GNU archive site."
292 # The file to touch is that specified with -o ...
293 file=`echo "$*" | sed -n "$sed_output"`
294 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
295 if test -z "$file"; then
296 # ... or it is the one specified with @setfilename ...
297 infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
298 file=`sed -n '
299 /^@setfilename/{
300 s/.* \([^ ]*\) *$/\1/
301 p
302 q
303 }' $infile`
304 # ... or it is derived from the source name (dir/f.texi becomes f.info)
305 test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
306 fi
307 # If the file does not exist, the user really needs makeinfo;
308 # let's fail without touching anything.
309 test -f $file || exit 1
310 touch $file
311 ;;
312
313 tar)
314 shift
315
316 # We have already tried tar in the generic part.
317 # Look for gnutar/gtar before invocation to avoid ugly error
318 # messages.
319 if (gnutar --version > /dev/null 2>&1); then
320 gnutar "$@" && exit 0
321 fi
322 if (gtar --version > /dev/null 2>&1); then
323 gtar "$@" && exit 0
324 fi
325 firstarg="$1"
326 if shift; then
327 case $firstarg in
328 *o*)
329 firstarg=`echo "$firstarg" | sed s/o//`
330 tar "$firstarg" "$@" && exit 0
331 ;;
332 esac
333 case $firstarg in
334 *h*)
335 firstarg=`echo "$firstarg" | sed s/h//`
336 tar "$firstarg" "$@" && exit 0
337 ;;
338 esac
339 fi
340
341 echo 1>&2 "\
342WARNING: I can't seem to be able to run \`tar' with the given arguments.
343 You may want to install GNU tar or Free paxutils, or check the
344 command line arguments."
345 exit 1
346 ;;
347
348 *)
349 echo 1>&2 "\
350WARNING: \`$1' is needed, and is $msg.
351 You might have modified some files without having the
352 proper tools for further handling them. Check the \`README' file,
353 it often tells you about the needed prerequisites for installing
354 this package. You may also peek at any GNU archive site, in case
355 some other package would contain this missing \`$1' program."
356 exit 1
357 ;;
358esac
359
360exit 0
361
362# Local variables:
363# eval: (add-hook 'write-file-hooks 'time-stamp)
364# time-stamp-start: "scriptversion="
365# time-stamp-format: "%:y-%02m-%02d.%02H"
366# time-stamp-end: "$"
367# End:
diff --git a/src/others/mimesh/libg3d-0.0.8/config/ylwrap b/src/others/mimesh/libg3d-0.0.8/config/ylwrap
new file mode 100755
index 0000000..7278b6a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/config/ylwrap
@@ -0,0 +1,223 @@
1#! /bin/sh
2# ylwrap - wrapper for lex/yacc invocations.
3
4scriptversion=2007-11-22.22
5
6# Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2005,
7# 2007 Free Software Foundation, Inc.
8#
9# Written by Tom Tromey <tromey@cygnus.com>.
10#
11# This program is free software; you can redistribute it and/or modify
12# it under the terms of the GNU General Public License as published by
13# the Free Software Foundation; either version 2, or (at your option)
14# any later version.
15#
16# This program is distributed in the hope that it will be useful,
17# but WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19# GNU General Public License for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with this program; if not, write to the Free Software
23# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24# 02110-1301, USA.
25
26# As a special exception to the GNU General Public License, if you
27# distribute this file as part of a program that contains a
28# configuration script generated by Autoconf, you may include it under
29# the same distribution terms that you use for the rest of that program.
30
31# This file is maintained in Automake, please report
32# bugs to <bug-automake@gnu.org> or send patches to
33# <automake-patches@gnu.org>.
34
35case "$1" in
36 '')
37 echo "$0: No files given. Try \`$0 --help' for more information." 1>&2
38 exit 1
39 ;;
40 --basedir)
41 basedir=$2
42 shift 2
43 ;;
44 -h|--h*)
45 cat <<\EOF
46Usage: ylwrap [--help|--version] INPUT [OUTPUT DESIRED]... -- PROGRAM [ARGS]...
47
48Wrapper for lex/yacc invocations, renaming files as desired.
49
50 INPUT is the input file
51 OUTPUT is one file PROG generates
52 DESIRED is the file we actually want instead of OUTPUT
53 PROGRAM is program to run
54 ARGS are passed to PROG
55
56Any number of OUTPUT,DESIRED pairs may be used.
57
58Report bugs to <bug-automake@gnu.org>.
59EOF
60 exit $?
61 ;;
62 -v|--v*)
63 echo "ylwrap $scriptversion"
64 exit $?
65 ;;
66esac
67
68
69# The input.
70input="$1"
71shift
72case "$input" in
73 [\\/]* | ?:[\\/]*)
74 # Absolute path; do nothing.
75 ;;
76 *)
77 # Relative path. Make it absolute.
78 input="`pwd`/$input"
79 ;;
80esac
81
82pairlist=
83while test "$#" -ne 0; do
84 if test "$1" = "--"; then
85 shift
86 break
87 fi
88 pairlist="$pairlist $1"
89 shift
90done
91
92# The program to run.
93prog="$1"
94shift
95# Make any relative path in $prog absolute.
96case "$prog" in
97 [\\/]* | ?:[\\/]*) ;;
98 *[\\/]*) prog="`pwd`/$prog" ;;
99esac
100
101# FIXME: add hostname here for parallel makes that run commands on
102# other machines. But that might take us over the 14-char limit.
103dirname=ylwrap$$
104trap "cd '`pwd`'; rm -rf $dirname > /dev/null 2>&1" 1 2 3 15
105mkdir $dirname || exit 1
106
107cd $dirname
108
109case $# in
110 0) "$prog" "$input" ;;
111 *) "$prog" "$@" "$input" ;;
112esac
113ret=$?
114
115if test $ret -eq 0; then
116 set X $pairlist
117 shift
118 first=yes
119 # Since DOS filename conventions don't allow two dots,
120 # the DOS version of Bison writes out y_tab.c instead of y.tab.c
121 # and y_tab.h instead of y.tab.h. Test to see if this is the case.
122 y_tab_nodot="no"
123 if test -f y_tab.c || test -f y_tab.h; then
124 y_tab_nodot="yes"
125 fi
126
127 # The directory holding the input.
128 input_dir=`echo "$input" | sed -e 's,\([\\/]\)[^\\/]*$,\1,'`
129 # Quote $INPUT_DIR so we can use it in a regexp.
130 # FIXME: really we should care about more than `.' and `\'.
131 input_rx=`echo "$input_dir" | sed 's,\\\\,\\\\\\\\,g;s,\\.,\\\\.,g'`
132
133 while test "$#" -ne 0; do
134 from="$1"
135 # Handle y_tab.c and y_tab.h output by DOS
136 if test $y_tab_nodot = "yes"; then
137 if test $from = "y.tab.c"; then
138 from="y_tab.c"
139 else
140 if test $from = "y.tab.h"; then
141 from="y_tab.h"
142 fi
143 fi
144 fi
145 if test -f "$from"; then
146 # If $2 is an absolute path name, then just use that,
147 # otherwise prepend `../'.
148 case "$2" in
149 [\\/]* | ?:[\\/]*) target="$2";;
150 *) target="../$2";;
151 esac
152
153 # We do not want to overwrite a header file if it hasn't
154 # changed. This avoid useless recompilations. However the
155 # parser itself (the first file) should always be updated,
156 # because it is the destination of the .y.c rule in the
157 # Makefile. Divert the output of all other files to a temporary
158 # file so we can compare them to existing versions.
159 if test $first = no; then
160 realtarget="$target"
161 target="tmp-`echo $target | sed s/.*[\\/]//g`"
162 fi
163 # Edit out `#line' or `#' directives.
164 #
165 # We don't want the resulting debug information to point at
166 # an absolute srcdir; it is better for it to just mention the
167 # .y file with no path.
168 #
169 # We want to use the real output file name, not yy.lex.c for
170 # instance.
171 #
172 # We want the include guards to be adjusted too.
173 FROM=`echo "$from" | sed \
174 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'\
175 -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g'`
176 TARGET=`echo "$2" | sed \
177 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'\
178 -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g'`
179
180 sed -e "/^#/!b" -e "s,$input_rx,," -e "s,$from,$2," \
181 -e "s,$FROM,$TARGET," "$from" >"$target" || ret=$?
182
183 # Check whether header files must be updated.
184 if test $first = no; then
185 if test -f "$realtarget" && cmp -s "$realtarget" "$target"; then
186 echo "$2" is unchanged
187 rm -f "$target"
188 else
189 echo updating "$2"
190 mv -f "$target" "$realtarget"
191 fi
192 fi
193 else
194 # A missing file is only an error for the first file. This
195 # is a blatant hack to let us support using "yacc -d". If -d
196 # is not specified, we don't want an error when the header
197 # file is "missing".
198 if test $first = yes; then
199 ret=1
200 fi
201 fi
202 shift
203 shift
204 first=no
205 done
206else
207 ret=$?
208fi
209
210# Remove the directory.
211cd ..
212rm -rf $dirname
213
214exit $ret
215
216# Local Variables:
217# mode: shell-script
218# sh-indentation: 2
219# eval: (add-hook 'write-file-hooks 'time-stamp)
220# time-stamp-start: "scriptversion="
221# time-stamp-format: "%:y-%02m-%02d.%02H"
222# time-stamp-end: "$"
223# End:
diff --git a/src/others/mimesh/libg3d-0.0.8/configure b/src/others/mimesh/libg3d-0.0.8/configure
new file mode 100755
index 0000000..9265598
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/configure
@@ -0,0 +1,23776 @@
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61.
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 more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463}
464
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
481esac
482
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508else
509 as_ln_s='cp -p'
510fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
513
514if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519fi
520
521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541fi
542as_executable_p=$as_test_x
543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553# Check that we are running under the correct shell.
554SHELL=${CONFIG_SHELL-/bin/sh}
555
556case X$ECHO in
557X*--fallback-echo)
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560 ;;
561esac
562
563echo=${ECHO-echo}
564if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
566 shift
567elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
569 :
570elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
572 :
573else
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
576fi
577
578if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
580 shift
581 cat <<EOF
582$*
583EOF
584 exit 0
585fi
586
587# The HP-UX ksh and POSIX shell print the target directory to stdout
588# if CDPATH is set.
589if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
590
591if test -z "$ECHO"; then
592if test "X${echo_test_string+set}" != Xset; then
593# find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
597 echo_test_string="`eval $cmd`" &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599 then
600 break
601 fi
602 done
603fi
604
605if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 :
609else
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
613 #
614 # So, first we look for a working echo in the user's PATH.
615
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
618 IFS="$lt_save_ifs"
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 echo="$dir/echo"
624 break
625 fi
626 done
627 IFS="$lt_save_ifs"
628
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
635 echo='print -r'
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
642 export CONFIG_SHELL
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644 else
645 # Try using printf.
646 echo='printf %s\n'
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 # Cool, printf works
651 :
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 export CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
659 export SHELL
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
666 else
667 # maybe with a smaller string...
668 prev=:
669
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672 then
673 break
674 fi
675 prev="$cmd"
676 done
677
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 else
683 # Oops. We lost completely, so just stick with echo.
684 echo=echo
685 fi
686 fi
687 fi
688 fi
689fi
690fi
691
692# Copy echo and quote the copy suitably for passing to libtool from
693# the Makefile, instead of quoting the original, which is used later.
694ECHO=$echo
695if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697fi
698
699
700
701
702tagnames=${tagnames+${tagnames},}CXX
703
704tagnames=${tagnames+${tagnames},}F77
705
706exec 7<&0 </dev/null 6>&1
707
708# Name of the host.
709# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710# so uname gets run too.
711ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713#
714# Initializations.
715#
716ac_default_prefix=/usr/local
717ac_clean_files=
718ac_config_libobj_dir=.
719LIBOBJS=
720cross_compiling=no
721subdirs=
722MFLAGS=
723MAKEFLAGS=
724SHELL=${CONFIG_SHELL-/bin/sh}
725
726# Identity of this package.
727PACKAGE_NAME=
728PACKAGE_TARNAME=
729PACKAGE_VERSION=
730PACKAGE_STRING=
731PACKAGE_BUGREPORT=
732
733ac_unique_file="configure.in"
734# Factoring default headers for most tests.
735ac_includes_default="\
736#include <stdio.h>
737#ifdef HAVE_SYS_TYPES_H
738# include <sys/types.h>
739#endif
740#ifdef HAVE_SYS_STAT_H
741# include <sys/stat.h>
742#endif
743#ifdef STDC_HEADERS
744# include <stdlib.h>
745# include <stddef.h>
746#else
747# ifdef HAVE_STDLIB_H
748# include <stdlib.h>
749# endif
750#endif
751#ifdef HAVE_STRING_H
752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753# include <memory.h>
754# endif
755# include <string.h>
756#endif
757#ifdef HAVE_STRINGS_H
758# include <strings.h>
759#endif
760#ifdef HAVE_INTTYPES_H
761# include <inttypes.h>
762#endif
763#ifdef HAVE_STDINT_H
764# include <stdint.h>
765#endif
766#ifdef HAVE_UNISTD_H
767# include <unistd.h>
768#endif"
769
770ac_subst_vars='SHELL
771PATH_SEPARATOR
772PACKAGE_NAME
773PACKAGE_TARNAME
774PACKAGE_VERSION
775PACKAGE_STRING
776PACKAGE_BUGREPORT
777exec_prefix
778prefix
779program_transform_name
780bindir
781sbindir
782libexecdir
783datarootdir
784datadir
785sysconfdir
786sharedstatedir
787localstatedir
788includedir
789oldincludedir
790docdir
791infodir
792htmldir
793dvidir
794pdfdir
795psdir
796libdir
797localedir
798mandir
799DEFS
800ECHO_C
801ECHO_N
802ECHO_T
803LIBS
804build_alias
805host_alias
806target_alias
807INSTALL_PROGRAM
808INSTALL_SCRIPT
809INSTALL_DATA
810am__isrc
811CYGPATH_W
812PACKAGE
813VERSION
814ACLOCAL
815AUTOCONF
816AUTOMAKE
817AUTOHEADER
818MAKEINFO
819install_sh
820STRIP
821INSTALL_STRIP_PROGRAM
822mkdir_p
823AWK
824SET_MAKE
825am__leading_dot
826AMTAR
827am__tar
828am__untar
829LTVERSION
830CC
831CFLAGS
832LDFLAGS
833CPPFLAGS
834ac_ct_CC
835EXEEXT
836OBJEXT
837DEPDIR
838am__include
839am__quote
840AMDEP_TRUE
841AMDEP_FALSE
842AMDEPBACKSLASH
843CCDEPMODE
844am__fastdepCC_TRUE
845am__fastdepCC_FALSE
846LEX
847LEX_OUTPUT_ROOT
848LEXLIB
849CPP
850GREP
851EGREP
852OS_WIN32_TRUE
853OS_WIN32_FALSE
854build
855build_cpu
856build_vendor
857build_os
858host
859host_cpu
860host_vendor
861host_os
862LN_S
863ECHO
864AR
865RANLIB
866DLLTOOL
867AS
868OBJDUMP
869CXX
870CXXFLAGS
871ac_ct_CXX
872CXXDEPMODE
873am__fastdepCXX_TRUE
874am__fastdepCXX_FALSE
875CXXCPP
876F77
877FFLAGS
878ac_ct_F77
879LIBTOOL
880HTML_DIR
881PKG_CONFIG
882GTKDOC_CHECK
883ENABLE_GTK_DOC_TRUE
884ENABLE_GTK_DOC_FALSE
885GTK_DOC_USE_LIBTOOL_TRUE
886GTK_DOC_USE_LIBTOOL_FALSE
887GLIB_CFLAGS
888GLIB_LIBS
889GLIB_GENMARSHAL
890GOBJECT_QUERY
891GLIB_MKENUMS
892GTK_CFLAGS
893GTK_LIBS
894GDKPIXBUF_CFLAGS
895GDKPIXBUF_LIBS
896HAVE_GDKPIXBUF_TRUE
897HAVE_GDKPIXBUF_FALSE
898XML2_CONFIG
899XML_CPPFLAGS
900XML_LIBS
901LIBXML2_CFLAGS
902LIBXML2_LIBS
903HAVE_LIBXML2_TRUE
904HAVE_LIBXML2_FALSE
905LIBGSF_CFLAGS
906LIBGSF_LIBS
907HAVE_LIBGSF_TRUE
908HAVE_LIBGSF_FALSE
909MAGIC_LIBS
910MATH_LIBS
911Z_CFLAGS
912Z_LIBS
913HAVE_ZLIB_TRUE
914HAVE_ZLIB_FALSE
915DEBUG
916EXPERIMENTAL_TRUE
917EXPERIMENTAL_FALSE
918HAVE_CXX_TRUE
919HAVE_CXX_FALSE
920DBG_CFLAGS
921PLUGINS_LDFLAGS
922LIBOBJS
923LTLIBOBJS'
924ac_subst_files=''
925 ac_precious_vars='build_alias
926host_alias
927target_alias
928CC
929CFLAGS
930LDFLAGS
931LIBS
932CPPFLAGS
933CPP
934CXX
935CXXFLAGS
936CCC
937CXXCPP
938F77
939FFLAGS
940PKG_CONFIG
941LIBGSF_CFLAGS
942LIBGSF_LIBS'
943
944
945# Initialize some variables set by options.
946ac_init_help=
947ac_init_version=false
948# The variables have the same names as the options, with
949# dashes changed to underlines.
950cache_file=/dev/null
951exec_prefix=NONE
952no_create=
953no_recursion=
954prefix=NONE
955program_prefix=NONE
956program_suffix=NONE
957program_transform_name=s,x,x,
958silent=
959site=
960srcdir=
961verbose=
962x_includes=NONE
963x_libraries=NONE
964
965# Installation directory options.
966# These are left unexpanded so users can "make install exec_prefix=/foo"
967# and all the variables that are supposed to be based on exec_prefix
968# by default will actually change.
969# Use braces instead of parens because sh, perl, etc. also accept them.
970# (The list follows the same order as the GNU Coding Standards.)
971bindir='${exec_prefix}/bin'
972sbindir='${exec_prefix}/sbin'
973libexecdir='${exec_prefix}/libexec'
974datarootdir='${prefix}/share'
975datadir='${datarootdir}'
976sysconfdir='${prefix}/etc'
977sharedstatedir='${prefix}/com'
978localstatedir='${prefix}/var'
979includedir='${prefix}/include'
980oldincludedir='/usr/include'
981docdir='${datarootdir}/doc/${PACKAGE}'
982infodir='${datarootdir}/info'
983htmldir='${docdir}'
984dvidir='${docdir}'
985pdfdir='${docdir}'
986psdir='${docdir}'
987libdir='${exec_prefix}/lib'
988localedir='${datarootdir}/locale'
989mandir='${datarootdir}/man'
990
991ac_prev=
992ac_dashdash=
993for ac_option
994do
995 # If the previous option needs an argument, assign it.
996 if test -n "$ac_prev"; then
997 eval $ac_prev=\$ac_option
998 ac_prev=
999 continue
1000 fi
1001
1002 case $ac_option in
1003 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1004 *) ac_optarg=yes ;;
1005 esac
1006
1007 # Accept the important Cygnus configure options, so we can diagnose typos.
1008
1009 case $ac_dashdash$ac_option in
1010 --)
1011 ac_dashdash=yes ;;
1012
1013 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1014 ac_prev=bindir ;;
1015 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1016 bindir=$ac_optarg ;;
1017
1018 -build | --build | --buil | --bui | --bu)
1019 ac_prev=build_alias ;;
1020 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1021 build_alias=$ac_optarg ;;
1022
1023 -cache-file | --cache-file | --cache-fil | --cache-fi \
1024 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1025 ac_prev=cache_file ;;
1026 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1027 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1028 cache_file=$ac_optarg ;;
1029
1030 --config-cache | -C)
1031 cache_file=config.cache ;;
1032
1033 -datadir | --datadir | --datadi | --datad)
1034 ac_prev=datadir ;;
1035 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1036 datadir=$ac_optarg ;;
1037
1038 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1039 | --dataroo | --dataro | --datar)
1040 ac_prev=datarootdir ;;
1041 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1042 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1043 datarootdir=$ac_optarg ;;
1044
1045 -disable-* | --disable-*)
1046 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1049 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1050 { (exit 1); exit 1; }; }
1051 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1052 eval enable_$ac_feature=no ;;
1053
1054 -docdir | --docdir | --docdi | --doc | --do)
1055 ac_prev=docdir ;;
1056 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1057 docdir=$ac_optarg ;;
1058
1059 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1060 ac_prev=dvidir ;;
1061 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1062 dvidir=$ac_optarg ;;
1063
1064 -enable-* | --enable-*)
1065 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1068 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1069 { (exit 1); exit 1; }; }
1070 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1071 eval enable_$ac_feature=\$ac_optarg ;;
1072
1073 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1074 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1075 | --exec | --exe | --ex)
1076 ac_prev=exec_prefix ;;
1077 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1078 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1079 | --exec=* | --exe=* | --ex=*)
1080 exec_prefix=$ac_optarg ;;
1081
1082 -gas | --gas | --ga | --g)
1083 # Obsolete; use --with-gas.
1084 with_gas=yes ;;
1085
1086 -help | --help | --hel | --he | -h)
1087 ac_init_help=long ;;
1088 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1089 ac_init_help=recursive ;;
1090 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1091 ac_init_help=short ;;
1092
1093 -host | --host | --hos | --ho)
1094 ac_prev=host_alias ;;
1095 -host=* | --host=* | --hos=* | --ho=*)
1096 host_alias=$ac_optarg ;;
1097
1098 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1099 ac_prev=htmldir ;;
1100 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1101 | --ht=*)
1102 htmldir=$ac_optarg ;;
1103
1104 -includedir | --includedir | --includedi | --included | --include \
1105 | --includ | --inclu | --incl | --inc)
1106 ac_prev=includedir ;;
1107 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1108 | --includ=* | --inclu=* | --incl=* | --inc=*)
1109 includedir=$ac_optarg ;;
1110
1111 -infodir | --infodir | --infodi | --infod | --info | --inf)
1112 ac_prev=infodir ;;
1113 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1114 infodir=$ac_optarg ;;
1115
1116 -libdir | --libdir | --libdi | --libd)
1117 ac_prev=libdir ;;
1118 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1119 libdir=$ac_optarg ;;
1120
1121 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1122 | --libexe | --libex | --libe)
1123 ac_prev=libexecdir ;;
1124 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1125 | --libexe=* | --libex=* | --libe=*)
1126 libexecdir=$ac_optarg ;;
1127
1128 -localedir | --localedir | --localedi | --localed | --locale)
1129 ac_prev=localedir ;;
1130 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1131 localedir=$ac_optarg ;;
1132
1133 -localstatedir | --localstatedir | --localstatedi | --localstated \
1134 | --localstate | --localstat | --localsta | --localst | --locals)
1135 ac_prev=localstatedir ;;
1136 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1137 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1138 localstatedir=$ac_optarg ;;
1139
1140 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1141 ac_prev=mandir ;;
1142 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1143 mandir=$ac_optarg ;;
1144
1145 -nfp | --nfp | --nf)
1146 # Obsolete; use --without-fp.
1147 with_fp=no ;;
1148
1149 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1150 | --no-cr | --no-c | -n)
1151 no_create=yes ;;
1152
1153 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1154 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1155 no_recursion=yes ;;
1156
1157 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1158 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1159 | --oldin | --oldi | --old | --ol | --o)
1160 ac_prev=oldincludedir ;;
1161 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1162 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1163 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1164 oldincludedir=$ac_optarg ;;
1165
1166 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1167 ac_prev=prefix ;;
1168 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1169 prefix=$ac_optarg ;;
1170
1171 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1172 | --program-pre | --program-pr | --program-p)
1173 ac_prev=program_prefix ;;
1174 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1175 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1176 program_prefix=$ac_optarg ;;
1177
1178 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1179 | --program-suf | --program-su | --program-s)
1180 ac_prev=program_suffix ;;
1181 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1182 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1183 program_suffix=$ac_optarg ;;
1184
1185 -program-transform-name | --program-transform-name \
1186 | --program-transform-nam | --program-transform-na \
1187 | --program-transform-n | --program-transform- \
1188 | --program-transform | --program-transfor \
1189 | --program-transfo | --program-transf \
1190 | --program-trans | --program-tran \
1191 | --progr-tra | --program-tr | --program-t)
1192 ac_prev=program_transform_name ;;
1193 -program-transform-name=* | --program-transform-name=* \
1194 | --program-transform-nam=* | --program-transform-na=* \
1195 | --program-transform-n=* | --program-transform-=* \
1196 | --program-transform=* | --program-transfor=* \
1197 | --program-transfo=* | --program-transf=* \
1198 | --program-trans=* | --program-tran=* \
1199 | --progr-tra=* | --program-tr=* | --program-t=*)
1200 program_transform_name=$ac_optarg ;;
1201
1202 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1203 ac_prev=pdfdir ;;
1204 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1205 pdfdir=$ac_optarg ;;
1206
1207 -psdir | --psdir | --psdi | --psd | --ps)
1208 ac_prev=psdir ;;
1209 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1210 psdir=$ac_optarg ;;
1211
1212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1213 | -silent | --silent | --silen | --sile | --sil)
1214 silent=yes ;;
1215
1216 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1217 ac_prev=sbindir ;;
1218 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1219 | --sbi=* | --sb=*)
1220 sbindir=$ac_optarg ;;
1221
1222 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1223 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1224 | --sharedst | --shareds | --shared | --share | --shar \
1225 | --sha | --sh)
1226 ac_prev=sharedstatedir ;;
1227 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1228 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1229 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1230 | --sha=* | --sh=*)
1231 sharedstatedir=$ac_optarg ;;
1232
1233 -site | --site | --sit)
1234 ac_prev=site ;;
1235 -site=* | --site=* | --sit=*)
1236 site=$ac_optarg ;;
1237
1238 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1239 ac_prev=srcdir ;;
1240 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1241 srcdir=$ac_optarg ;;
1242
1243 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1244 | --syscon | --sysco | --sysc | --sys | --sy)
1245 ac_prev=sysconfdir ;;
1246 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1247 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1248 sysconfdir=$ac_optarg ;;
1249
1250 -target | --target | --targe | --targ | --tar | --ta | --t)
1251 ac_prev=target_alias ;;
1252 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1253 target_alias=$ac_optarg ;;
1254
1255 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1256 verbose=yes ;;
1257
1258 -version | --version | --versio | --versi | --vers | -V)
1259 ac_init_version=: ;;
1260
1261 -with-* | --with-*)
1262 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1263 # Reject names that are not valid shell variable names.
1264 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265 { echo "$as_me: error: invalid package name: $ac_package" >&2
1266 { (exit 1); exit 1; }; }
1267 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1268 eval with_$ac_package=\$ac_optarg ;;
1269
1270 -without-* | --without-*)
1271 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274 { echo "$as_me: error: invalid package name: $ac_package" >&2
1275 { (exit 1); exit 1; }; }
1276 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1277 eval with_$ac_package=no ;;
1278
1279 --x)
1280 # Obsolete; use --with-x.
1281 with_x=yes ;;
1282
1283 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1284 | --x-incl | --x-inc | --x-in | --x-i)
1285 ac_prev=x_includes ;;
1286 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1287 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1288 x_includes=$ac_optarg ;;
1289
1290 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1291 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1292 ac_prev=x_libraries ;;
1293 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1294 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1295 x_libraries=$ac_optarg ;;
1296
1297 -*) { echo "$as_me: error: unrecognized option: $ac_option
1298Try \`$0 --help' for more information." >&2
1299 { (exit 1); exit 1; }; }
1300 ;;
1301
1302 *=*)
1303 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1304 # Reject names that are not valid shell variable names.
1305 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1306 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1307 { (exit 1); exit 1; }; }
1308 eval $ac_envvar=\$ac_optarg
1309 export $ac_envvar ;;
1310
1311 *)
1312 # FIXME: should be removed in autoconf 3.0.
1313 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1314 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1315 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1316 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1317 ;;
1318
1319 esac
1320done
1321
1322if test -n "$ac_prev"; then
1323 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1324 { echo "$as_me: error: missing argument to $ac_option" >&2
1325 { (exit 1); exit 1; }; }
1326fi
1327
1328# Be sure to have absolute directory names.
1329for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1330 datadir sysconfdir sharedstatedir localstatedir includedir \
1331 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1332 libdir localedir mandir
1333do
1334 eval ac_val=\$$ac_var
1335 case $ac_val in
1336 [\\/$]* | ?:[\\/]* ) continue;;
1337 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1338 esac
1339 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1340 { (exit 1); exit 1; }; }
1341done
1342
1343# There might be people who depend on the old broken behavior: `$host'
1344# used to hold the argument of --host etc.
1345# FIXME: To remove some day.
1346build=$build_alias
1347host=$host_alias
1348target=$target_alias
1349
1350# FIXME: To remove some day.
1351if test "x$host_alias" != x; then
1352 if test "x$build_alias" = x; then
1353 cross_compiling=maybe
1354 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1355 If a cross compiler is detected then cross compile mode will be used." >&2
1356 elif test "x$build_alias" != "x$host_alias"; then
1357 cross_compiling=yes
1358 fi
1359fi
1360
1361ac_tool_prefix=
1362test -n "$host_alias" && ac_tool_prefix=$host_alias-
1363
1364test "$silent" = yes && exec 6>/dev/null
1365
1366
1367ac_pwd=`pwd` && test -n "$ac_pwd" &&
1368ac_ls_di=`ls -di .` &&
1369ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1370 { echo "$as_me: error: Working directory cannot be determined" >&2
1371 { (exit 1); exit 1; }; }
1372test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1373 { echo "$as_me: error: pwd does not report name of working directory" >&2
1374 { (exit 1); exit 1; }; }
1375
1376
1377# Find the source files, if location was not specified.
1378if test -z "$srcdir"; then
1379 ac_srcdir_defaulted=yes
1380 # Try the directory containing this script, then the parent directory.
1381 ac_confdir=`$as_dirname -- "$0" ||
1382$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1383 X"$0" : 'X\(//\)[^/]' \| \
1384 X"$0" : 'X\(//\)$' \| \
1385 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1386echo X"$0" |
1387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\/\)[^/].*/{
1392 s//\1/
1393 q
1394 }
1395 /^X\(\/\/\)$/{
1396 s//\1/
1397 q
1398 }
1399 /^X\(\/\).*/{
1400 s//\1/
1401 q
1402 }
1403 s/.*/./; q'`
1404 srcdir=$ac_confdir
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1406 srcdir=..
1407 fi
1408else
1409 ac_srcdir_defaulted=no
1410fi
1411if test ! -r "$srcdir/$ac_unique_file"; then
1412 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1413 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1414 { (exit 1); exit 1; }; }
1415fi
1416ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1417ac_abs_confdir=`(
1418 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1419 { (exit 1); exit 1; }; }
1420 pwd)`
1421# When building in place, set srcdir=.
1422if test "$ac_abs_confdir" = "$ac_pwd"; then
1423 srcdir=.
1424fi
1425# Remove unnecessary trailing slashes from srcdir.
1426# Double slashes in file names in object file debugging info
1427# mess up M-x gdb in Emacs.
1428case $srcdir in
1429*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1430esac
1431for ac_var in $ac_precious_vars; do
1432 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1433 eval ac_env_${ac_var}_value=\$${ac_var}
1434 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1435 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1436done
1437
1438#
1439# Report the --help message.
1440#
1441if test "$ac_init_help" = "long"; then
1442 # Omit some internal or obsolete options to make the list less imposing.
1443 # This message is too long to be a string in the A/UX 3.1 sh.
1444 cat <<_ACEOF
1445\`configure' configures this package to adapt to many kinds of systems.
1446
1447Usage: $0 [OPTION]... [VAR=VALUE]...
1448
1449To assign environment variables (e.g., CC, CFLAGS...), specify them as
1450VAR=VALUE. See below for descriptions of some of the useful variables.
1451
1452Defaults for the options are specified in brackets.
1453
1454Configuration:
1455 -h, --help display this help and exit
1456 --help=short display options specific to this package
1457 --help=recursive display the short help of all the included packages
1458 -V, --version display version information and exit
1459 -q, --quiet, --silent do not print \`checking...' messages
1460 --cache-file=FILE cache test results in FILE [disabled]
1461 -C, --config-cache alias for \`--cache-file=config.cache'
1462 -n, --no-create do not create output files
1463 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1464
1465Installation directories:
1466 --prefix=PREFIX install architecture-independent files in PREFIX
1467 [$ac_default_prefix]
1468 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1469 [PREFIX]
1470
1471By default, \`make install' will install all the files in
1472\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1473an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1474for instance \`--prefix=\$HOME'.
1475
1476For better control, use the options below.
1477
1478Fine tuning of the installation directories:
1479 --bindir=DIR user executables [EPREFIX/bin]
1480 --sbindir=DIR system admin executables [EPREFIX/sbin]
1481 --libexecdir=DIR program executables [EPREFIX/libexec]
1482 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1483 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1484 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1485 --libdir=DIR object code libraries [EPREFIX/lib]
1486 --includedir=DIR C header files [PREFIX/include]
1487 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1488 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1489 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1490 --infodir=DIR info documentation [DATAROOTDIR/info]
1491 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1492 --mandir=DIR man documentation [DATAROOTDIR/man]
1493 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1494 --htmldir=DIR html documentation [DOCDIR]
1495 --dvidir=DIR dvi documentation [DOCDIR]
1496 --pdfdir=DIR pdf documentation [DOCDIR]
1497 --psdir=DIR ps documentation [DOCDIR]
1498_ACEOF
1499
1500 cat <<\_ACEOF
1501
1502Program names:
1503 --program-prefix=PREFIX prepend PREFIX to installed program names
1504 --program-suffix=SUFFIX append SUFFIX to installed program names
1505 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1506
1507System types:
1508 --build=BUILD configure for building on BUILD [guessed]
1509 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1510_ACEOF
1511fi
1512
1513if test -n "$ac_init_help"; then
1514
1515 cat <<\_ACEOF
1516
1517Optional Features:
1518 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1519 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1520 --disable-dependency-tracking speeds up one-time build
1521 --enable-dependency-tracking do not reject slow dependency extractors
1522 --enable-static[=PKGS] build static libraries [default=no]
1523 --enable-shared[=PKGS] build shared libraries [default=yes]
1524 --enable-fast-install[=PKGS]
1525 optimize for fast installation [default=yes]
1526 --disable-libtool-lock avoid locking (might break parallel builds)
1527 --enable-gtk-doc use gtk-doc to build documentation [default=no]
1528 --disable-glibtest do not try to compile and run a test GLIB program
1529 --disable-gtktest do not try to compile and run a test GTK+ program
1530 --disable-xmltest Do not try to compile and run a test LIBXML program
1531 --disable-libmagic disable file type detection using libmagic
1532 --enable-debug[=LVL] enable debug level LVL or 1 (default is 0)
1533 --enable-experimental enable experimental and unfinished plugins
1534 --enable-cxxtest enable C++ test
1535 --enable-profile enable gprof profiling
1536
1537Optional Packages:
1538 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1539 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1540 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1541 --with-pic try to use only PIC/non-PIC objects [default=use
1542 both]
1543 --with-tags[=TAGS] include additional configurations [automatic]
1544 --with-html-dir=PATH path to installed docs
1545 --with-xml-prefix=PFX Prefix where libxml is installed (optional)
1546 --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
1547 --with-zlib=DIR use libz in DIR
1548
1549Some influential environment variables:
1550 CC C compiler command
1551 CFLAGS C compiler flags
1552 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1553 nonstandard directory <lib dir>
1554 LIBS libraries to pass to the linker, e.g. -l<library>
1555 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1556 you have headers in a nonstandard directory <include dir>
1557 CPP C preprocessor
1558 CXX C++ compiler command
1559 CXXFLAGS C++ compiler flags
1560 CXXCPP C++ preprocessor
1561 F77 Fortran 77 compiler command
1562 FFLAGS Fortran 77 compiler flags
1563 PKG_CONFIG path to pkg-config utility
1564 LIBGSF_CFLAGS
1565 C compiler flags for LIBGSF, overriding pkg-config
1566 LIBGSF_LIBS linker flags for LIBGSF, overriding pkg-config
1567
1568Use these variables to override the choices made by `configure' or to help
1569it to find libraries and programs with nonstandard names/locations.
1570
1571_ACEOF
1572ac_status=$?
1573fi
1574
1575if test "$ac_init_help" = "recursive"; then
1576 # If there are subdirs, report their specific --help.
1577 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1578 test -d "$ac_dir" || continue
1579 ac_builddir=.
1580
1581case "$ac_dir" in
1582.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583*)
1584 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1585 # A ".." for each directory in $ac_dir_suffix.
1586 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1587 case $ac_top_builddir_sub in
1588 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1590 esac ;;
1591esac
1592ac_abs_top_builddir=$ac_pwd
1593ac_abs_builddir=$ac_pwd$ac_dir_suffix
1594# for backward compatibility:
1595ac_top_builddir=$ac_top_build_prefix
1596
1597case $srcdir in
1598 .) # We are building in place.
1599 ac_srcdir=.
1600 ac_top_srcdir=$ac_top_builddir_sub
1601 ac_abs_top_srcdir=$ac_pwd ;;
1602 [\\/]* | ?:[\\/]* ) # Absolute name.
1603 ac_srcdir=$srcdir$ac_dir_suffix;
1604 ac_top_srcdir=$srcdir
1605 ac_abs_top_srcdir=$srcdir ;;
1606 *) # Relative name.
1607 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1608 ac_top_srcdir=$ac_top_build_prefix$srcdir
1609 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1610esac
1611ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1612
1613 cd "$ac_dir" || { ac_status=$?; continue; }
1614 # Check for guested configure.
1615 if test -f "$ac_srcdir/configure.gnu"; then
1616 echo &&
1617 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1618 elif test -f "$ac_srcdir/configure"; then
1619 echo &&
1620 $SHELL "$ac_srcdir/configure" --help=recursive
1621 else
1622 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1623 fi || ac_status=$?
1624 cd "$ac_pwd" || { ac_status=$?; break; }
1625 done
1626fi
1627
1628test -n "$ac_init_help" && exit $ac_status
1629if $ac_init_version; then
1630 cat <<\_ACEOF
1631configure
1632generated by GNU Autoconf 2.61
1633
1634Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16352002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1636This configure script is free software; the Free Software Foundation
1637gives unlimited permission to copy, distribute and modify it.
1638_ACEOF
1639 exit
1640fi
1641cat >config.log <<_ACEOF
1642This file contains any messages produced by compilers while
1643running configure, to aid debugging if configure makes a mistake.
1644
1645It was created by $as_me, which was
1646generated by GNU Autoconf 2.61. Invocation command line was
1647
1648 $ $0 $@
1649
1650_ACEOF
1651exec 5>>config.log
1652{
1653cat <<_ASUNAME
1654## --------- ##
1655## Platform. ##
1656## --------- ##
1657
1658hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1659uname -m = `(uname -m) 2>/dev/null || echo unknown`
1660uname -r = `(uname -r) 2>/dev/null || echo unknown`
1661uname -s = `(uname -s) 2>/dev/null || echo unknown`
1662uname -v = `(uname -v) 2>/dev/null || echo unknown`
1663
1664/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1665/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1666
1667/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1668/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1669/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1670/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1671/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1672/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1673/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1674
1675_ASUNAME
1676
1677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1678for as_dir in $PATH
1679do
1680 IFS=$as_save_IFS
1681 test -z "$as_dir" && as_dir=.
1682 echo "PATH: $as_dir"
1683done
1684IFS=$as_save_IFS
1685
1686} >&5
1687
1688cat >&5 <<_ACEOF
1689
1690
1691## ----------- ##
1692## Core tests. ##
1693## ----------- ##
1694
1695_ACEOF
1696
1697
1698# Keep a trace of the command line.
1699# Strip out --no-create and --no-recursion so they do not pile up.
1700# Strip out --silent because we don't want to record it for future runs.
1701# Also quote any args containing shell meta-characters.
1702# Make two passes to allow for proper duplicate-argument suppression.
1703ac_configure_args=
1704ac_configure_args0=
1705ac_configure_args1=
1706ac_must_keep_next=false
1707for ac_pass in 1 2
1708do
1709 for ac_arg
1710 do
1711 case $ac_arg in
1712 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1713 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1714 | -silent | --silent | --silen | --sile | --sil)
1715 continue ;;
1716 *\'*)
1717 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1718 esac
1719 case $ac_pass in
1720 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1721 2)
1722 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1723 if test $ac_must_keep_next = true; then
1724 ac_must_keep_next=false # Got value, back to normal.
1725 else
1726 case $ac_arg in
1727 *=* | --config-cache | -C | -disable-* | --disable-* \
1728 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1729 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1730 | -with-* | --with-* | -without-* | --without-* | --x)
1731 case "$ac_configure_args0 " in
1732 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1733 esac
1734 ;;
1735 -* ) ac_must_keep_next=true ;;
1736 esac
1737 fi
1738 ac_configure_args="$ac_configure_args '$ac_arg'"
1739 ;;
1740 esac
1741 done
1742done
1743$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1744$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1745
1746# When interrupted or exit'd, cleanup temporary files, and complete
1747# config.log. We remove comments because anyway the quotes in there
1748# would cause problems or look ugly.
1749# WARNING: Use '\'' to represent an apostrophe within the trap.
1750# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1751trap 'exit_status=$?
1752 # Save into config.log some information that might help in debugging.
1753 {
1754 echo
1755
1756 cat <<\_ASBOX
1757## ---------------- ##
1758## Cache variables. ##
1759## ---------------- ##
1760_ASBOX
1761 echo
1762 # The following way of writing the cache mishandles newlines in values,
1763(
1764 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1765 eval ac_val=\$$ac_var
1766 case $ac_val in #(
1767 *${as_nl}*)
1768 case $ac_var in #(
1769 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1770echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1771 esac
1772 case $ac_var in #(
1773 _ | IFS | as_nl) ;; #(
1774 *) $as_unset $ac_var ;;
1775 esac ;;
1776 esac
1777 done
1778 (set) 2>&1 |
1779 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1780 *${as_nl}ac_space=\ *)
1781 sed -n \
1782 "s/'\''/'\''\\\\'\'''\''/g;
1783 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1784 ;; #(
1785 *)
1786 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1787 ;;
1788 esac |
1789 sort
1790)
1791 echo
1792
1793 cat <<\_ASBOX
1794## ----------------- ##
1795## Output variables. ##
1796## ----------------- ##
1797_ASBOX
1798 echo
1799 for ac_var in $ac_subst_vars
1800 do
1801 eval ac_val=\$$ac_var
1802 case $ac_val in
1803 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1804 esac
1805 echo "$ac_var='\''$ac_val'\''"
1806 done | sort
1807 echo
1808
1809 if test -n "$ac_subst_files"; then
1810 cat <<\_ASBOX
1811## ------------------- ##
1812## File substitutions. ##
1813## ------------------- ##
1814_ASBOX
1815 echo
1816 for ac_var in $ac_subst_files
1817 do
1818 eval ac_val=\$$ac_var
1819 case $ac_val in
1820 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1821 esac
1822 echo "$ac_var='\''$ac_val'\''"
1823 done | sort
1824 echo
1825 fi
1826
1827 if test -s confdefs.h; then
1828 cat <<\_ASBOX
1829## ----------- ##
1830## confdefs.h. ##
1831## ----------- ##
1832_ASBOX
1833 echo
1834 cat confdefs.h
1835 echo
1836 fi
1837 test "$ac_signal" != 0 &&
1838 echo "$as_me: caught signal $ac_signal"
1839 echo "$as_me: exit $exit_status"
1840 } >&5
1841 rm -f core *.core core.conftest.* &&
1842 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1843 exit $exit_status
1844' 0
1845for ac_signal in 1 2 13 15; do
1846 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1847done
1848ac_signal=0
1849
1850# confdefs.h avoids OS command line length limits that DEFS can exceed.
1851rm -f -r conftest* confdefs.h
1852
1853# Predefined preprocessor variables.
1854
1855cat >>confdefs.h <<_ACEOF
1856#define PACKAGE_NAME "$PACKAGE_NAME"
1857_ACEOF
1858
1859
1860cat >>confdefs.h <<_ACEOF
1861#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1862_ACEOF
1863
1864
1865cat >>confdefs.h <<_ACEOF
1866#define PACKAGE_VERSION "$PACKAGE_VERSION"
1867_ACEOF
1868
1869
1870cat >>confdefs.h <<_ACEOF
1871#define PACKAGE_STRING "$PACKAGE_STRING"
1872_ACEOF
1873
1874
1875cat >>confdefs.h <<_ACEOF
1876#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1877_ACEOF
1878
1879
1880# Let the site file select an alternate cache file if it wants to.
1881# Prefer explicitly selected file to automatically selected ones.
1882if test -n "$CONFIG_SITE"; then
1883 set x "$CONFIG_SITE"
1884elif test "x$prefix" != xNONE; then
1885 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1886else
1887 set x "$ac_default_prefix/share/config.site" \
1888 "$ac_default_prefix/etc/config.site"
1889fi
1890shift
1891for ac_site_file
1892do
1893 if test -r "$ac_site_file"; then
1894 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1895echo "$as_me: loading site script $ac_site_file" >&6;}
1896 sed 's/^/| /' "$ac_site_file" >&5
1897 . "$ac_site_file"
1898 fi
1899done
1900
1901if test -r "$cache_file"; then
1902 # Some versions of bash will fail to source /dev/null (special
1903 # files actually), so we avoid doing that.
1904 if test -f "$cache_file"; then
1905 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1906echo "$as_me: loading cache $cache_file" >&6;}
1907 case $cache_file in
1908 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1909 *) . "./$cache_file";;
1910 esac
1911 fi
1912else
1913 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1914echo "$as_me: creating cache $cache_file" >&6;}
1915 >$cache_file
1916fi
1917
1918# Check that the precious variables saved in the cache have kept the same
1919# value.
1920ac_cache_corrupted=false
1921for ac_var in $ac_precious_vars; do
1922 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1923 eval ac_new_set=\$ac_env_${ac_var}_set
1924 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1925 eval ac_new_val=\$ac_env_${ac_var}_value
1926 case $ac_old_set,$ac_new_set in
1927 set,)
1928 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1929echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1930 ac_cache_corrupted=: ;;
1931 ,set)
1932 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1933echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1934 ac_cache_corrupted=: ;;
1935 ,);;
1936 *)
1937 if test "x$ac_old_val" != "x$ac_new_val"; then
1938 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1939echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1940 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1941echo "$as_me: former value: $ac_old_val" >&2;}
1942 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1943echo "$as_me: current value: $ac_new_val" >&2;}
1944 ac_cache_corrupted=:
1945 fi;;
1946 esac
1947 # Pass precious variables to config.status.
1948 if test "$ac_new_set" = set; then
1949 case $ac_new_val in
1950 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1951 *) ac_arg=$ac_var=$ac_new_val ;;
1952 esac
1953 case " $ac_configure_args " in
1954 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1955 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1956 esac
1957 fi
1958done
1959if $ac_cache_corrupted; then
1960 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1961echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1962 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1963echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1964 { (exit 1); exit 1; }; }
1965fi
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983ac_ext=c
1984ac_cpp='$CPP $CPPFLAGS'
1985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1987ac_compiler_gnu=$ac_cv_c_compiler_gnu
1988
1989
1990ac_aux_dir=
1991for ac_dir in config "$srcdir"/config; do
1992 if test -f "$ac_dir/install-sh"; then
1993 ac_aux_dir=$ac_dir
1994 ac_install_sh="$ac_aux_dir/install-sh -c"
1995 break
1996 elif test -f "$ac_dir/install.sh"; then
1997 ac_aux_dir=$ac_dir
1998 ac_install_sh="$ac_aux_dir/install.sh -c"
1999 break
2000 elif test -f "$ac_dir/shtool"; then
2001 ac_aux_dir=$ac_dir
2002 ac_install_sh="$ac_aux_dir/shtool install -c"
2003 break
2004 fi
2005done
2006if test -z "$ac_aux_dir"; then
2007 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2008echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2009 { (exit 1); exit 1; }; }
2010fi
2011
2012# These three variables are undocumented and unsupported,
2013# and are intended to be withdrawn in a future Autoconf release.
2014# They can cause serious problems if a builder's source tree is in a directory
2015# whose full name contains unusual characters.
2016ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2017ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2018ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2019
2020
2021
2022# versioning stuff
2023
2024
2025
2026
2027
2028
2029VERSION=0.0.8
2030
2031
2032
2033
2034LTVERSION="0:8:0"
2035
2036PACKAGE=libg3d
2037
2038am__api_version='1.10'
2039
2040# Find a good install program. We prefer a C program (faster),
2041# so one script is as good as another. But avoid the broken or
2042# incompatible versions:
2043# SysV /etc/install, /usr/sbin/install
2044# SunOS /usr/etc/install
2045# IRIX /sbin/install
2046# AIX /bin/install
2047# AmigaOS /C/install, which installs bootblocks on floppy discs
2048# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2049# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2050# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2051# OS/2's system install, which has a completely different semantic
2052# ./install, which can be erroneously created by make from ./install.sh.
2053{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2054echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2055if test -z "$INSTALL"; then
2056if test "${ac_cv_path_install+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2058else
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060for as_dir in $PATH
2061do
2062 IFS=$as_save_IFS
2063 test -z "$as_dir" && as_dir=.
2064 # Account for people who put trailing slashes in PATH elements.
2065case $as_dir/ in
2066 ./ | .// | /cC/* | \
2067 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2068 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2069 /usr/ucb/* ) ;;
2070 *)
2071 # OSF1 and SCO ODT 3.0 have their own names for install.
2072 # Don't use installbsd from OSF since it installs stuff as root
2073 # by default.
2074 for ac_prog in ginstall scoinst install; do
2075 for ac_exec_ext in '' $ac_executable_extensions; do
2076 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2077 if test $ac_prog = install &&
2078 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2079 # AIX install. It has an incompatible calling convention.
2080 :
2081 elif test $ac_prog = install &&
2082 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2083 # program-specific install script used by HP pwplus--don't use.
2084 :
2085 else
2086 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2087 break 3
2088 fi
2089 fi
2090 done
2091 done
2092 ;;
2093esac
2094done
2095IFS=$as_save_IFS
2096
2097
2098fi
2099 if test "${ac_cv_path_install+set}" = set; then
2100 INSTALL=$ac_cv_path_install
2101 else
2102 # As a last resort, use the slow shell script. Don't cache a
2103 # value for INSTALL within a source directory, because that will
2104 # break other packages using the cache if that directory is
2105 # removed, or if the value is a relative name.
2106 INSTALL=$ac_install_sh
2107 fi
2108fi
2109{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2110echo "${ECHO_T}$INSTALL" >&6; }
2111
2112# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2113# It thinks the first close brace ends the variable substitution.
2114test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2115
2116test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2117
2118test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2119
2120{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2121echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2122# Just in case
2123sleep 1
2124echo timestamp > conftest.file
2125# Do `set' in a subshell so we don't clobber the current shell's
2126# arguments. Must try -L first in case configure is actually a
2127# symlink; some systems play weird games with the mod time of symlinks
2128# (eg FreeBSD returns the mod time of the symlink's containing
2129# directory).
2130if (
2131 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2132 if test "$*" = "X"; then
2133 # -L didn't work.
2134 set X `ls -t $srcdir/configure conftest.file`
2135 fi
2136 rm -f conftest.file
2137 if test "$*" != "X $srcdir/configure conftest.file" \
2138 && test "$*" != "X conftest.file $srcdir/configure"; then
2139
2140 # If neither matched, then we have a broken ls. This can happen
2141 # if, for instance, CONFIG_SHELL is bash and it inherits a
2142 # broken ls alias from the environment. This has actually
2143 # happened. Such a system could not be considered "sane".
2144 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2145alias in your environment" >&5
2146echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2147alias in your environment" >&2;}
2148 { (exit 1); exit 1; }; }
2149 fi
2150
2151 test "$2" = conftest.file
2152 )
2153then
2154 # Ok.
2155 :
2156else
2157 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2158Check your system clock" >&5
2159echo "$as_me: error: newly created file is older than distributed files!
2160Check your system clock" >&2;}
2161 { (exit 1); exit 1; }; }
2162fi
2163{ echo "$as_me:$LINENO: result: yes" >&5
2164echo "${ECHO_T}yes" >&6; }
2165test "$program_prefix" != NONE &&
2166 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2167# Use a double $ so make ignores it.
2168test "$program_suffix" != NONE &&
2169 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2170# Double any \ or $. echo might interpret backslashes.
2171# By default was `s,x,x', remove it if useless.
2172cat <<\_ACEOF >conftest.sed
2173s/[\\$]/&&/g;s/;s,x,x,$//
2174_ACEOF
2175program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2176rm -f conftest.sed
2177
2178# expand $ac_aux_dir to an absolute path
2179am_aux_dir=`cd $ac_aux_dir && pwd`
2180
2181test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2182# Use eval to expand $SHELL
2183if eval "$MISSING --run true"; then
2184 am_missing_run="$MISSING --run "
2185else
2186 am_missing_run=
2187 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2188echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2189fi
2190
2191{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2192echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2193if test -z "$MKDIR_P"; then
2194 if test "${ac_cv_path_mkdir+set}" = set; then
2195 echo $ECHO_N "(cached) $ECHO_C" >&6
2196else
2197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2198for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2199do
2200 IFS=$as_save_IFS
2201 test -z "$as_dir" && as_dir=.
2202 for ac_prog in mkdir gmkdir; do
2203 for ac_exec_ext in '' $ac_executable_extensions; do
2204 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2205 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2206 'mkdir (GNU coreutils) '* | \
2207 'mkdir (coreutils) '* | \
2208 'mkdir (fileutils) '4.1*)
2209 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2210 break 3;;
2211 esac
2212 done
2213 done
2214done
2215IFS=$as_save_IFS
2216
2217fi
2218
2219 if test "${ac_cv_path_mkdir+set}" = set; then
2220 MKDIR_P="$ac_cv_path_mkdir -p"
2221 else
2222 # As a last resort, use the slow shell script. Don't cache a
2223 # value for MKDIR_P within a source directory, because that will
2224 # break other packages using the cache if that directory is
2225 # removed, or if the value is a relative name.
2226 test -d ./--version && rmdir ./--version
2227 MKDIR_P="$ac_install_sh -d"
2228 fi
2229fi
2230{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2231echo "${ECHO_T}$MKDIR_P" >&6; }
2232
2233mkdir_p="$MKDIR_P"
2234case $mkdir_p in
2235 [\\/$]* | ?:[\\/]*) ;;
2236 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2237esac
2238
2239for ac_prog in gawk mawk nawk awk
2240do
2241 # Extract the first word of "$ac_prog", so it can be a program name with args.
2242set dummy $ac_prog; ac_word=$2
2243{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2245if test "${ac_cv_prog_AWK+set}" = set; then
2246 echo $ECHO_N "(cached) $ECHO_C" >&6
2247else
2248 if test -n "$AWK"; then
2249 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2250else
2251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252for as_dir in $PATH
2253do
2254 IFS=$as_save_IFS
2255 test -z "$as_dir" && as_dir=.
2256 for ac_exec_ext in '' $ac_executable_extensions; do
2257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2258 ac_cv_prog_AWK="$ac_prog"
2259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2260 break 2
2261 fi
2262done
2263done
2264IFS=$as_save_IFS
2265
2266fi
2267fi
2268AWK=$ac_cv_prog_AWK
2269if test -n "$AWK"; then
2270 { echo "$as_me:$LINENO: result: $AWK" >&5
2271echo "${ECHO_T}$AWK" >&6; }
2272else
2273 { echo "$as_me:$LINENO: result: no" >&5
2274echo "${ECHO_T}no" >&6; }
2275fi
2276
2277
2278 test -n "$AWK" && break
2279done
2280
2281{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2282echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2283set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2284if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2286else
2287 cat >conftest.make <<\_ACEOF
2288SHELL = /bin/sh
2289all:
2290 @echo '@@@%%%=$(MAKE)=@@@%%%'
2291_ACEOF
2292# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2293case `${MAKE-make} -f conftest.make 2>/dev/null` in
2294 *@@@%%%=?*=@@@%%%*)
2295 eval ac_cv_prog_make_${ac_make}_set=yes;;
2296 *)
2297 eval ac_cv_prog_make_${ac_make}_set=no;;
2298esac
2299rm -f conftest.make
2300fi
2301if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2302 { echo "$as_me:$LINENO: result: yes" >&5
2303echo "${ECHO_T}yes" >&6; }
2304 SET_MAKE=
2305else
2306 { echo "$as_me:$LINENO: result: no" >&5
2307echo "${ECHO_T}no" >&6; }
2308 SET_MAKE="MAKE=${MAKE-make}"
2309fi
2310
2311rm -rf .tst 2>/dev/null
2312mkdir .tst 2>/dev/null
2313if test -d .tst; then
2314 am__leading_dot=.
2315else
2316 am__leading_dot=_
2317fi
2318rmdir .tst 2>/dev/null
2319
2320if test "`cd $srcdir && pwd`" != "`pwd`"; then
2321 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2322 # is not polluted with repeated "-I."
2323 am__isrc=' -I$(srcdir)'
2324 # test to see if srcdir already configured
2325 if test -f $srcdir/config.status; then
2326 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2327echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2328 { (exit 1); exit 1; }; }
2329 fi
2330fi
2331
2332# test whether we have cygpath
2333if test -z "$CYGPATH_W"; then
2334 if (cygpath --version) >/dev/null 2>/dev/null; then
2335 CYGPATH_W='cygpath -w'
2336 else
2337 CYGPATH_W=echo
2338 fi
2339fi
2340
2341
2342# Define the identity of the package.
2343 PACKAGE=$PACKAGE
2344 VERSION=$VERSION
2345
2346
2347# Some tools Automake needs.
2348
2349ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2350
2351
2352AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2353
2354
2355AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2356
2357
2358AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2359
2360
2361MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2362
2363install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2364
2365# Installed binaries are usually stripped using `strip' when the user
2366# run `make install-strip'. However `strip' might not be the right
2367# tool to use in cross-compilation environments, therefore Automake
2368# will honor the `STRIP' environment variable to overrule this program.
2369if test "$cross_compiling" != no; then
2370 if test -n "$ac_tool_prefix"; then
2371 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2372set dummy ${ac_tool_prefix}strip; ac_word=$2
2373{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2375if test "${ac_cv_prog_STRIP+set}" = set; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2377else
2378 if test -n "$STRIP"; then
2379 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2380else
2381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382for as_dir in $PATH
2383do
2384 IFS=$as_save_IFS
2385 test -z "$as_dir" && as_dir=.
2386 for ac_exec_ext in '' $ac_executable_extensions; do
2387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2388 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2390 break 2
2391 fi
2392done
2393done
2394IFS=$as_save_IFS
2395
2396fi
2397fi
2398STRIP=$ac_cv_prog_STRIP
2399if test -n "$STRIP"; then
2400 { echo "$as_me:$LINENO: result: $STRIP" >&5
2401echo "${ECHO_T}$STRIP" >&6; }
2402else
2403 { echo "$as_me:$LINENO: result: no" >&5
2404echo "${ECHO_T}no" >&6; }
2405fi
2406
2407
2408fi
2409if test -z "$ac_cv_prog_STRIP"; then
2410 ac_ct_STRIP=$STRIP
2411 # Extract the first word of "strip", so it can be a program name with args.
2412set dummy strip; ac_word=$2
2413{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2415if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2416 echo $ECHO_N "(cached) $ECHO_C" >&6
2417else
2418 if test -n "$ac_ct_STRIP"; then
2419 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2420else
2421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422for as_dir in $PATH
2423do
2424 IFS=$as_save_IFS
2425 test -z "$as_dir" && as_dir=.
2426 for ac_exec_ext in '' $ac_executable_extensions; do
2427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2428 ac_cv_prog_ac_ct_STRIP="strip"
2429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2430 break 2
2431 fi
2432done
2433done
2434IFS=$as_save_IFS
2435
2436fi
2437fi
2438ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2439if test -n "$ac_ct_STRIP"; then
2440 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2441echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2442else
2443 { echo "$as_me:$LINENO: result: no" >&5
2444echo "${ECHO_T}no" >&6; }
2445fi
2446
2447 if test "x$ac_ct_STRIP" = x; then
2448 STRIP=":"
2449 else
2450 case $cross_compiling:$ac_tool_warned in
2451yes:)
2452{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2453whose name does not start with the host triplet. If you think this
2454configuration is useful to you, please write to autoconf@gnu.org." >&5
2455echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2456whose name does not start with the host triplet. If you think this
2457configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2458ac_tool_warned=yes ;;
2459esac
2460 STRIP=$ac_ct_STRIP
2461 fi
2462else
2463 STRIP="$ac_cv_prog_STRIP"
2464fi
2465
2466fi
2467INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2468
2469# We need awk for the "check" target. The system "awk" is bad on
2470# some platforms.
2471# Always define AMTAR for backward compatibility.
2472
2473AMTAR=${AMTAR-"${am_missing_run}tar"}
2474
2475am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2476
2477
2478
2479
2480
2481
2482
2483
2484ac_config_headers="$ac_config_headers include/g3d/config.h"
2485
2486
2487ac_ext=c
2488ac_cpp='$CPP $CPPFLAGS'
2489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2491ac_compiler_gnu=$ac_cv_c_compiler_gnu
2492if test -n "$ac_tool_prefix"; then
2493 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2494set dummy ${ac_tool_prefix}gcc; ac_word=$2
2495{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2497if test "${ac_cv_prog_CC+set}" = set; then
2498 echo $ECHO_N "(cached) $ECHO_C" >&6
2499else
2500 if test -n "$CC"; then
2501 ac_cv_prog_CC="$CC" # Let the user override the test.
2502else
2503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504for as_dir in $PATH
2505do
2506 IFS=$as_save_IFS
2507 test -z "$as_dir" && as_dir=.
2508 for ac_exec_ext in '' $ac_executable_extensions; do
2509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2510 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2512 break 2
2513 fi
2514done
2515done
2516IFS=$as_save_IFS
2517
2518fi
2519fi
2520CC=$ac_cv_prog_CC
2521if test -n "$CC"; then
2522 { echo "$as_me:$LINENO: result: $CC" >&5
2523echo "${ECHO_T}$CC" >&6; }
2524else
2525 { echo "$as_me:$LINENO: result: no" >&5
2526echo "${ECHO_T}no" >&6; }
2527fi
2528
2529
2530fi
2531if test -z "$ac_cv_prog_CC"; then
2532 ac_ct_CC=$CC
2533 # Extract the first word of "gcc", so it can be a program name with args.
2534set dummy gcc; ac_word=$2
2535{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2537if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2539else
2540 if test -n "$ac_ct_CC"; then
2541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2542else
2543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544for as_dir in $PATH
2545do
2546 IFS=$as_save_IFS
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2550 ac_cv_prog_ac_ct_CC="gcc"
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2552 break 2
2553 fi
2554done
2555done
2556IFS=$as_save_IFS
2557
2558fi
2559fi
2560ac_ct_CC=$ac_cv_prog_ac_ct_CC
2561if test -n "$ac_ct_CC"; then
2562 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2563echo "${ECHO_T}$ac_ct_CC" >&6; }
2564else
2565 { echo "$as_me:$LINENO: result: no" >&5
2566echo "${ECHO_T}no" >&6; }
2567fi
2568
2569 if test "x$ac_ct_CC" = x; then
2570 CC=""
2571 else
2572 case $cross_compiling:$ac_tool_warned in
2573yes:)
2574{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2575whose name does not start with the host triplet. If you think this
2576configuration is useful to you, please write to autoconf@gnu.org." >&5
2577echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2578whose name does not start with the host triplet. If you think this
2579configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2580ac_tool_warned=yes ;;
2581esac
2582 CC=$ac_ct_CC
2583 fi
2584else
2585 CC="$ac_cv_prog_CC"
2586fi
2587
2588if test -z "$CC"; then
2589 if test -n "$ac_tool_prefix"; then
2590 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2591set dummy ${ac_tool_prefix}cc; ac_word=$2
2592{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2594if test "${ac_cv_prog_CC+set}" = set; then
2595 echo $ECHO_N "(cached) $ECHO_C" >&6
2596else
2597 if test -n "$CC"; then
2598 ac_cv_prog_CC="$CC" # Let the user override the test.
2599else
2600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601for as_dir in $PATH
2602do
2603 IFS=$as_save_IFS
2604 test -z "$as_dir" && as_dir=.
2605 for ac_exec_ext in '' $ac_executable_extensions; do
2606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2607 ac_cv_prog_CC="${ac_tool_prefix}cc"
2608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2609 break 2
2610 fi
2611done
2612done
2613IFS=$as_save_IFS
2614
2615fi
2616fi
2617CC=$ac_cv_prog_CC
2618if test -n "$CC"; then
2619 { echo "$as_me:$LINENO: result: $CC" >&5
2620echo "${ECHO_T}$CC" >&6; }
2621else
2622 { echo "$as_me:$LINENO: result: no" >&5
2623echo "${ECHO_T}no" >&6; }
2624fi
2625
2626
2627 fi
2628fi
2629if test -z "$CC"; then
2630 # Extract the first word of "cc", so it can be a program name with args.
2631set dummy cc; ac_word=$2
2632{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2634if test "${ac_cv_prog_CC+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2636else
2637 if test -n "$CC"; then
2638 ac_cv_prog_CC="$CC" # Let the user override the test.
2639else
2640 ac_prog_rejected=no
2641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642for as_dir in $PATH
2643do
2644 IFS=$as_save_IFS
2645 test -z "$as_dir" && as_dir=.
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2648 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2649 ac_prog_rejected=yes
2650 continue
2651 fi
2652 ac_cv_prog_CC="cc"
2653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2654 break 2
2655 fi
2656done
2657done
2658IFS=$as_save_IFS
2659
2660if test $ac_prog_rejected = yes; then
2661 # We found a bogon in the path, so make sure we never use it.
2662 set dummy $ac_cv_prog_CC
2663 shift
2664 if test $# != 0; then
2665 # We chose a different compiler from the bogus one.
2666 # However, it has the same basename, so the bogon will be chosen
2667 # first if we set CC to just the basename; use the full file name.
2668 shift
2669 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2670 fi
2671fi
2672fi
2673fi
2674CC=$ac_cv_prog_CC
2675if test -n "$CC"; then
2676 { echo "$as_me:$LINENO: result: $CC" >&5
2677echo "${ECHO_T}$CC" >&6; }
2678else
2679 { echo "$as_me:$LINENO: result: no" >&5
2680echo "${ECHO_T}no" >&6; }
2681fi
2682
2683
2684fi
2685if test -z "$CC"; then
2686 if test -n "$ac_tool_prefix"; then
2687 for ac_prog in cl.exe
2688 do
2689 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2690set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2691{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2693if test "${ac_cv_prog_CC+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
2695else
2696 if test -n "$CC"; then
2697 ac_cv_prog_CC="$CC" # Let the user override the test.
2698else
2699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700for as_dir in $PATH
2701do
2702 IFS=$as_save_IFS
2703 test -z "$as_dir" && as_dir=.
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2706 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 break 2
2709 fi
2710done
2711done
2712IFS=$as_save_IFS
2713
2714fi
2715fi
2716CC=$ac_cv_prog_CC
2717if test -n "$CC"; then
2718 { echo "$as_me:$LINENO: result: $CC" >&5
2719echo "${ECHO_T}$CC" >&6; }
2720else
2721 { echo "$as_me:$LINENO: result: no" >&5
2722echo "${ECHO_T}no" >&6; }
2723fi
2724
2725
2726 test -n "$CC" && break
2727 done
2728fi
2729if test -z "$CC"; then
2730 ac_ct_CC=$CC
2731 for ac_prog in cl.exe
2732do
2733 # Extract the first word of "$ac_prog", so it can be a program name with args.
2734set dummy $ac_prog; ac_word=$2
2735{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2737if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2738 echo $ECHO_N "(cached) $ECHO_C" >&6
2739else
2740 if test -n "$ac_ct_CC"; then
2741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2742else
2743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744for as_dir in $PATH
2745do
2746 IFS=$as_save_IFS
2747 test -z "$as_dir" && as_dir=.
2748 for ac_exec_ext in '' $ac_executable_extensions; do
2749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2750 ac_cv_prog_ac_ct_CC="$ac_prog"
2751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2752 break 2
2753 fi
2754done
2755done
2756IFS=$as_save_IFS
2757
2758fi
2759fi
2760ac_ct_CC=$ac_cv_prog_ac_ct_CC
2761if test -n "$ac_ct_CC"; then
2762 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2763echo "${ECHO_T}$ac_ct_CC" >&6; }
2764else
2765 { echo "$as_me:$LINENO: result: no" >&5
2766echo "${ECHO_T}no" >&6; }
2767fi
2768
2769
2770 test -n "$ac_ct_CC" && break
2771done
2772
2773 if test "x$ac_ct_CC" = x; then
2774 CC=""
2775 else
2776 case $cross_compiling:$ac_tool_warned in
2777yes:)
2778{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2779whose name does not start with the host triplet. If you think this
2780configuration is useful to you, please write to autoconf@gnu.org." >&5
2781echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2782whose name does not start with the host triplet. If you think this
2783configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2784ac_tool_warned=yes ;;
2785esac
2786 CC=$ac_ct_CC
2787 fi
2788fi
2789
2790fi
2791
2792
2793test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2794See \`config.log' for more details." >&5
2795echo "$as_me: error: no acceptable C compiler found in \$PATH
2796See \`config.log' for more details." >&2;}
2797 { (exit 1); exit 1; }; }
2798
2799# Provide some information about the compiler.
2800echo "$as_me:$LINENO: checking for C compiler version" >&5
2801ac_compiler=`set X $ac_compile; echo $2`
2802{ (ac_try="$ac_compiler --version >&5"
2803case "(($ac_try" in
2804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805 *) ac_try_echo=$ac_try;;
2806esac
2807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2808 (eval "$ac_compiler --version >&5") 2>&5
2809 ac_status=$?
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); }
2812{ (ac_try="$ac_compiler -v >&5"
2813case "(($ac_try" in
2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815 *) ac_try_echo=$ac_try;;
2816esac
2817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818 (eval "$ac_compiler -v >&5") 2>&5
2819 ac_status=$?
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }
2822{ (ac_try="$ac_compiler -V >&5"
2823case "(($ac_try" in
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2826esac
2827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2828 (eval "$ac_compiler -V >&5") 2>&5
2829 ac_status=$?
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }
2832
2833cat >conftest.$ac_ext <<_ACEOF
2834/* confdefs.h. */
2835_ACEOF
2836cat confdefs.h >>conftest.$ac_ext
2837cat >>conftest.$ac_ext <<_ACEOF
2838/* end confdefs.h. */
2839
2840int
2841main ()
2842{
2843
2844 ;
2845 return 0;
2846}
2847_ACEOF
2848ac_clean_files_save=$ac_clean_files
2849ac_clean_files="$ac_clean_files a.out a.exe b.out"
2850# Try to create an executable without -o first, disregard a.out.
2851# It will help us diagnose broken compilers, and finding out an intuition
2852# of exeext.
2853{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2854echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2855ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2856#
2857# List of possible output files, starting from the most likely.
2858# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2859# only as a last resort. b.out is created by i960 compilers.
2860ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2861#
2862# The IRIX 6 linker writes into existing files which may not be
2863# executable, retaining their permissions. Remove them first so a
2864# subsequent execution test works.
2865ac_rmfiles=
2866for ac_file in $ac_files
2867do
2868 case $ac_file in
2869 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2870 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2871 esac
2872done
2873rm -f $ac_rmfiles
2874
2875if { (ac_try="$ac_link_default"
2876case "(($ac_try" in
2877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878 *) ac_try_echo=$ac_try;;
2879esac
2880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2881 (eval "$ac_link_default") 2>&5
2882 ac_status=$?
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); }; then
2885 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2886# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2887# in a Makefile. We should not override ac_cv_exeext if it was cached,
2888# so that the user can short-circuit this test for compilers unknown to
2889# Autoconf.
2890for ac_file in $ac_files ''
2891do
2892 test -f "$ac_file" || continue
2893 case $ac_file in
2894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2895 ;;
2896 [ab].out )
2897 # We found the default executable, but exeext='' is most
2898 # certainly right.
2899 break;;
2900 *.* )
2901 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2902 then :; else
2903 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2904 fi
2905 # We set ac_cv_exeext here because the later test for it is not
2906 # safe: cross compilers may not add the suffix if given an `-o'
2907 # argument, so we may need to know it at that point already.
2908 # Even if this section looks crufty: it has the advantage of
2909 # actually working.
2910 break;;
2911 * )
2912 break;;
2913 esac
2914done
2915test "$ac_cv_exeext" = no && ac_cv_exeext=
2916
2917else
2918 ac_file=''
2919fi
2920
2921{ echo "$as_me:$LINENO: result: $ac_file" >&5
2922echo "${ECHO_T}$ac_file" >&6; }
2923if test -z "$ac_file"; then
2924 echo "$as_me: failed program was:" >&5
2925sed 's/^/| /' conftest.$ac_ext >&5
2926
2927{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2928See \`config.log' for more details." >&5
2929echo "$as_me: error: C compiler cannot create executables
2930See \`config.log' for more details." >&2;}
2931 { (exit 77); exit 77; }; }
2932fi
2933
2934ac_exeext=$ac_cv_exeext
2935
2936# Check that the compiler produces executables we can run. If not, either
2937# the compiler is broken, or we cross compile.
2938{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2939echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2940# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2941# If not cross compiling, check that we can run a simple program.
2942if test "$cross_compiling" != yes; then
2943 if { ac_try='./$ac_file'
2944 { (case "(($ac_try" in
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2947esac
2948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949 (eval "$ac_try") 2>&5
2950 ac_status=$?
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); }; }; then
2953 cross_compiling=no
2954 else
2955 if test "$cross_compiling" = maybe; then
2956 cross_compiling=yes
2957 else
2958 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2959If you meant to cross compile, use \`--host'.
2960See \`config.log' for more details." >&5
2961echo "$as_me: error: cannot run C compiled programs.
2962If you meant to cross compile, use \`--host'.
2963See \`config.log' for more details." >&2;}
2964 { (exit 1); exit 1; }; }
2965 fi
2966 fi
2967fi
2968{ echo "$as_me:$LINENO: result: yes" >&5
2969echo "${ECHO_T}yes" >&6; }
2970
2971rm -f a.out a.exe conftest$ac_cv_exeext b.out
2972ac_clean_files=$ac_clean_files_save
2973# Check that the compiler produces executables we can run. If not, either
2974# the compiler is broken, or we cross compile.
2975{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2976echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2977{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2978echo "${ECHO_T}$cross_compiling" >&6; }
2979
2980{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2981echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2982if { (ac_try="$ac_link"
2983case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986esac
2987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988 (eval "$ac_link") 2>&5
2989 ac_status=$?
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }; then
2992 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2993# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2994# work properly (i.e., refer to `conftest.exe'), while it won't with
2995# `rm'.
2996for ac_file in conftest.exe conftest conftest.*; do
2997 test -f "$ac_file" || continue
2998 case $ac_file in
2999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3000 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3001 break;;
3002 * ) break;;
3003 esac
3004done
3005else
3006 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3007See \`config.log' for more details." >&5
3008echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3009See \`config.log' for more details." >&2;}
3010 { (exit 1); exit 1; }; }
3011fi
3012
3013rm -f conftest$ac_cv_exeext
3014{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3015echo "${ECHO_T}$ac_cv_exeext" >&6; }
3016
3017rm -f conftest.$ac_ext
3018EXEEXT=$ac_cv_exeext
3019ac_exeext=$EXEEXT
3020{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3021echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3022if test "${ac_cv_objext+set}" = set; then
3023 echo $ECHO_N "(cached) $ECHO_C" >&6
3024else
3025 cat >conftest.$ac_ext <<_ACEOF
3026/* confdefs.h. */
3027_ACEOF
3028cat confdefs.h >>conftest.$ac_ext
3029cat >>conftest.$ac_ext <<_ACEOF
3030/* end confdefs.h. */
3031
3032int
3033main ()
3034{
3035
3036 ;
3037 return 0;
3038}
3039_ACEOF
3040rm -f conftest.o conftest.obj
3041if { (ac_try="$ac_compile"
3042case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045esac
3046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_compile") 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; then
3051 for ac_file in conftest.o conftest.obj conftest.*; do
3052 test -f "$ac_file" || continue;
3053 case $ac_file in
3054 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3055 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3056 break;;
3057 esac
3058done
3059else
3060 echo "$as_me: failed program was:" >&5
3061sed 's/^/| /' conftest.$ac_ext >&5
3062
3063{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3064See \`config.log' for more details." >&5
3065echo "$as_me: error: cannot compute suffix of object files: cannot compile
3066See \`config.log' for more details." >&2;}
3067 { (exit 1); exit 1; }; }
3068fi
3069
3070rm -f conftest.$ac_cv_objext conftest.$ac_ext
3071fi
3072{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3073echo "${ECHO_T}$ac_cv_objext" >&6; }
3074OBJEXT=$ac_cv_objext
3075ac_objext=$OBJEXT
3076{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3077echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3078if test "${ac_cv_c_compiler_gnu+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3080else
3081 cat >conftest.$ac_ext <<_ACEOF
3082/* confdefs.h. */
3083_ACEOF
3084cat confdefs.h >>conftest.$ac_ext
3085cat >>conftest.$ac_ext <<_ACEOF
3086/* end confdefs.h. */
3087
3088int
3089main ()
3090{
3091#ifndef __GNUC__
3092 choke me
3093#endif
3094
3095 ;
3096 return 0;
3097}
3098_ACEOF
3099rm -f conftest.$ac_objext
3100if { (ac_try="$ac_compile"
3101case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3104esac
3105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_compile") 2>conftest.er1
3107 ac_status=$?
3108 grep -v '^ *+' conftest.er1 >conftest.err
3109 rm -f conftest.er1
3110 cat conftest.err >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } && {
3113 test -z "$ac_c_werror_flag" ||
3114 test ! -s conftest.err
3115 } && test -s conftest.$ac_objext; then
3116 ac_compiler_gnu=yes
3117else
3118 echo "$as_me: failed program was:" >&5
3119sed 's/^/| /' conftest.$ac_ext >&5
3120
3121 ac_compiler_gnu=no
3122fi
3123
3124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3125ac_cv_c_compiler_gnu=$ac_compiler_gnu
3126
3127fi
3128{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3129echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3130GCC=`test $ac_compiler_gnu = yes && echo yes`
3131ac_test_CFLAGS=${CFLAGS+set}
3132ac_save_CFLAGS=$CFLAGS
3133{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3134echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3135if test "${ac_cv_prog_cc_g+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3137else
3138 ac_save_c_werror_flag=$ac_c_werror_flag
3139 ac_c_werror_flag=yes
3140 ac_cv_prog_cc_g=no
3141 CFLAGS="-g"
3142 cat >conftest.$ac_ext <<_ACEOF
3143/* confdefs.h. */
3144_ACEOF
3145cat confdefs.h >>conftest.$ac_ext
3146cat >>conftest.$ac_ext <<_ACEOF
3147/* end confdefs.h. */
3148
3149int
3150main ()
3151{
3152
3153 ;
3154 return 0;
3155}
3156_ACEOF
3157rm -f conftest.$ac_objext
3158if { (ac_try="$ac_compile"
3159case "(($ac_try" in
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3162esac
3163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164 (eval "$ac_compile") 2>conftest.er1
3165 ac_status=$?
3166 grep -v '^ *+' conftest.er1 >conftest.err
3167 rm -f conftest.er1
3168 cat conftest.err >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } && {
3171 test -z "$ac_c_werror_flag" ||
3172 test ! -s conftest.err
3173 } && test -s conftest.$ac_objext; then
3174 ac_cv_prog_cc_g=yes
3175else
3176 echo "$as_me: failed program was:" >&5
3177sed 's/^/| /' conftest.$ac_ext >&5
3178
3179 CFLAGS=""
3180 cat >conftest.$ac_ext <<_ACEOF
3181/* confdefs.h. */
3182_ACEOF
3183cat confdefs.h >>conftest.$ac_ext
3184cat >>conftest.$ac_ext <<_ACEOF
3185/* end confdefs.h. */
3186
3187int
3188main ()
3189{
3190
3191 ;
3192 return 0;
3193}
3194_ACEOF
3195rm -f conftest.$ac_objext
3196if { (ac_try="$ac_compile"
3197case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200esac
3201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_compile") 2>conftest.er1
3203 ac_status=$?
3204 grep -v '^ *+' conftest.er1 >conftest.err
3205 rm -f conftest.er1
3206 cat conftest.err >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } && {
3209 test -z "$ac_c_werror_flag" ||
3210 test ! -s conftest.err
3211 } && test -s conftest.$ac_objext; then
3212 :
3213else
3214 echo "$as_me: failed program was:" >&5
3215sed 's/^/| /' conftest.$ac_ext >&5
3216
3217 ac_c_werror_flag=$ac_save_c_werror_flag
3218 CFLAGS="-g"
3219 cat >conftest.$ac_ext <<_ACEOF
3220/* confdefs.h. */
3221_ACEOF
3222cat confdefs.h >>conftest.$ac_ext
3223cat >>conftest.$ac_ext <<_ACEOF
3224/* end confdefs.h. */
3225
3226int
3227main ()
3228{
3229
3230 ;
3231 return 0;
3232}
3233_ACEOF
3234rm -f conftest.$ac_objext
3235if { (ac_try="$ac_compile"
3236case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3239esac
3240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241 (eval "$ac_compile") 2>conftest.er1
3242 ac_status=$?
3243 grep -v '^ *+' conftest.er1 >conftest.err
3244 rm -f conftest.er1
3245 cat conftest.err >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } && {
3248 test -z "$ac_c_werror_flag" ||
3249 test ! -s conftest.err
3250 } && test -s conftest.$ac_objext; then
3251 ac_cv_prog_cc_g=yes
3252else
3253 echo "$as_me: failed program was:" >&5
3254sed 's/^/| /' conftest.$ac_ext >&5
3255
3256
3257fi
3258
3259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260fi
3261
3262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3263fi
3264
3265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266 ac_c_werror_flag=$ac_save_c_werror_flag
3267fi
3268{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3269echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3270if test "$ac_test_CFLAGS" = set; then
3271 CFLAGS=$ac_save_CFLAGS
3272elif test $ac_cv_prog_cc_g = yes; then
3273 if test "$GCC" = yes; then
3274 CFLAGS="-g -O2"
3275 else
3276 CFLAGS="-g"
3277 fi
3278else
3279 if test "$GCC" = yes; then
3280 CFLAGS="-O2"
3281 else
3282 CFLAGS=
3283 fi
3284fi
3285{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3286echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3287if test "${ac_cv_prog_cc_c89+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3289else
3290 ac_cv_prog_cc_c89=no
3291ac_save_CC=$CC
3292cat >conftest.$ac_ext <<_ACEOF
3293/* confdefs.h. */
3294_ACEOF
3295cat confdefs.h >>conftest.$ac_ext
3296cat >>conftest.$ac_ext <<_ACEOF
3297/* end confdefs.h. */
3298#include <stdarg.h>
3299#include <stdio.h>
3300#include <sys/types.h>
3301#include <sys/stat.h>
3302/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3303struct buf { int x; };
3304FILE * (*rcsopen) (struct buf *, struct stat *, int);
3305static char *e (p, i)
3306 char **p;
3307 int i;
3308{
3309 return p[i];
3310}
3311static char *f (char * (*g) (char **, int), char **p, ...)
3312{
3313 char *s;
3314 va_list v;
3315 va_start (v,p);
3316 s = g (p, va_arg (v,int));
3317 va_end (v);
3318 return s;
3319}
3320
3321/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3322 function prototypes and stuff, but not '\xHH' hex character constants.
3323 These don't provoke an error unfortunately, instead are silently treated
3324 as 'x'. The following induces an error, until -std is added to get
3325 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3326 array size at least. It's necessary to write '\x00'==0 to get something
3327 that's true only with -std. */
3328int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3329
3330/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3331 inside strings and character constants. */
3332#define FOO(x) 'x'
3333int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3334
3335int test (int i, double x);
3336struct s1 {int (*f) (int a);};
3337struct s2 {int (*f) (double a);};
3338int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3339int argc;
3340char **argv;
3341int
3342main ()
3343{
3344return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3345 ;
3346 return 0;
3347}
3348_ACEOF
3349for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3350 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3351do
3352 CC="$ac_save_CC $ac_arg"
3353 rm -f conftest.$ac_objext
3354if { (ac_try="$ac_compile"
3355case "(($ac_try" in
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3358esac
3359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3360 (eval "$ac_compile") 2>conftest.er1
3361 ac_status=$?
3362 grep -v '^ *+' conftest.er1 >conftest.err
3363 rm -f conftest.er1
3364 cat conftest.err >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } && {
3367 test -z "$ac_c_werror_flag" ||
3368 test ! -s conftest.err
3369 } && test -s conftest.$ac_objext; then
3370 ac_cv_prog_cc_c89=$ac_arg
3371else
3372 echo "$as_me: failed program was:" >&5
3373sed 's/^/| /' conftest.$ac_ext >&5
3374
3375
3376fi
3377
3378rm -f core conftest.err conftest.$ac_objext
3379 test "x$ac_cv_prog_cc_c89" != "xno" && break
3380done
3381rm -f conftest.$ac_ext
3382CC=$ac_save_CC
3383
3384fi
3385# AC_CACHE_VAL
3386case "x$ac_cv_prog_cc_c89" in
3387 x)
3388 { echo "$as_me:$LINENO: result: none needed" >&5
3389echo "${ECHO_T}none needed" >&6; } ;;
3390 xno)
3391 { echo "$as_me:$LINENO: result: unsupported" >&5
3392echo "${ECHO_T}unsupported" >&6; } ;;
3393 *)
3394 CC="$CC $ac_cv_prog_cc_c89"
3395 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3396echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3397esac
3398
3399
3400ac_ext=c
3401ac_cpp='$CPP $CPPFLAGS'
3402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405DEPDIR="${am__leading_dot}deps"
3406
3407ac_config_commands="$ac_config_commands depfiles"
3408
3409
3410am_make=${MAKE-make}
3411cat > confinc << 'END'
3412am__doit:
3413 @echo done
3414.PHONY: am__doit
3415END
3416# If we don't find an include directive, just comment out the code.
3417{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3418echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3419am__include="#"
3420am__quote=
3421_am_result=none
3422# First try GNU make style include.
3423echo "include confinc" > confmf
3424# We grep out `Entering directory' and `Leaving directory'
3425# messages which can occur if `w' ends up in MAKEFLAGS.
3426# In particular we don't look at `^make:' because GNU make might
3427# be invoked under some other name (usually "gmake"), in which
3428# case it prints its new name instead of `make'.
3429if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3430 am__include=include
3431 am__quote=
3432 _am_result=GNU
3433fi
3434# Now try BSD make style include.
3435if test "$am__include" = "#"; then
3436 echo '.include "confinc"' > confmf
3437 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3438 am__include=.include
3439 am__quote="\""
3440 _am_result=BSD
3441 fi
3442fi
3443
3444
3445{ echo "$as_me:$LINENO: result: $_am_result" >&5
3446echo "${ECHO_T}$_am_result" >&6; }
3447rm -f confinc confmf
3448
3449# Check whether --enable-dependency-tracking was given.
3450if test "${enable_dependency_tracking+set}" = set; then
3451 enableval=$enable_dependency_tracking;
3452fi
3453
3454if test "x$enable_dependency_tracking" != xno; then
3455 am_depcomp="$ac_aux_dir/depcomp"
3456 AMDEPBACKSLASH='\'
3457fi
3458 if test "x$enable_dependency_tracking" != xno; then
3459 AMDEP_TRUE=
3460 AMDEP_FALSE='#'
3461else
3462 AMDEP_TRUE='#'
3463 AMDEP_FALSE=
3464fi
3465
3466
3467
3468depcc="$CC" am_compiler_list=
3469
3470{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3471echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3472if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3473 echo $ECHO_N "(cached) $ECHO_C" >&6
3474else
3475 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3476 # We make a subdir and do the tests there. Otherwise we can end up
3477 # making bogus files that we don't know about and never remove. For
3478 # instance it was reported that on HP-UX the gcc test will end up
3479 # making a dummy file named `D' -- because `-MD' means `put the output
3480 # in D'.
3481 mkdir conftest.dir
3482 # Copy depcomp to subdir because otherwise we won't find it if we're
3483 # using a relative directory.
3484 cp "$am_depcomp" conftest.dir
3485 cd conftest.dir
3486 # We will build objects and dependencies in a subdirectory because
3487 # it helps to detect inapplicable dependency modes. For instance
3488 # both Tru64's cc and ICC support -MD to output dependencies as a
3489 # side effect of compilation, but ICC will put the dependencies in
3490 # the current directory while Tru64 will put them in the object
3491 # directory.
3492 mkdir sub
3493
3494 am_cv_CC_dependencies_compiler_type=none
3495 if test "$am_compiler_list" = ""; then
3496 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3497 fi
3498 for depmode in $am_compiler_list; do
3499 # Setup a source with many dependencies, because some compilers
3500 # like to wrap large dependency lists on column 80 (with \), and
3501 # we should not choose a depcomp mode which is confused by this.
3502 #
3503 # We need to recreate these files for each test, as the compiler may
3504 # overwrite some of them when testing with obscure command lines.
3505 # This happens at least with the AIX C compiler.
3506 : > sub/conftest.c
3507 for i in 1 2 3 4 5 6; do
3508 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3509 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3510 # Solaris 8's {/usr,}/bin/sh.
3511 touch sub/conftst$i.h
3512 done
3513 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3514
3515 case $depmode in
3516 nosideeffect)
3517 # after this tag, mechanisms are not by side-effect, so they'll
3518 # only be used when explicitly requested
3519 if test "x$enable_dependency_tracking" = xyes; then
3520 continue
3521 else
3522 break
3523 fi
3524 ;;
3525 none) break ;;
3526 esac
3527 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3528 # mode. It turns out that the SunPro C++ compiler does not properly
3529 # handle `-M -o', and we need to detect this.
3530 if depmode=$depmode \
3531 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3532 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3533 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3534 >/dev/null 2>conftest.err &&
3535 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3536 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3537 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3538 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3539 # icc doesn't choke on unknown options, it will just issue warnings
3540 # or remarks (even with -Werror). So we grep stderr for any message
3541 # that says an option was ignored or not supported.
3542 # When given -MP, icc 7.0 and 7.1 complain thusly:
3543 # icc: Command line warning: ignoring option '-M'; no argument required
3544 # The diagnosis changed in icc 8.0:
3545 # icc: Command line remark: option '-MP' not supported
3546 if (grep 'ignoring option' conftest.err ||
3547 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3548 am_cv_CC_dependencies_compiler_type=$depmode
3549 break
3550 fi
3551 fi
3552 done
3553
3554 cd ..
3555 rm -rf conftest.dir
3556else
3557 am_cv_CC_dependencies_compiler_type=none
3558fi
3559
3560fi
3561{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3562echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3563CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3564
3565 if
3566 test "x$enable_dependency_tracking" != xno \
3567 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3568 am__fastdepCC_TRUE=
3569 am__fastdepCC_FALSE='#'
3570else
3571 am__fastdepCC_TRUE='#'
3572 am__fastdepCC_FALSE=
3573fi
3574
3575
3576
3577for ac_prog in flex lex
3578do
3579 # Extract the first word of "$ac_prog", so it can be a program name with args.
3580set dummy $ac_prog; ac_word=$2
3581{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3583if test "${ac_cv_prog_LEX+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3585else
3586 if test -n "$LEX"; then
3587 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3588else
3589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590for as_dir in $PATH
3591do
3592 IFS=$as_save_IFS
3593 test -z "$as_dir" && as_dir=.
3594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3596 ac_cv_prog_LEX="$ac_prog"
3597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3598 break 2
3599 fi
3600done
3601done
3602IFS=$as_save_IFS
3603
3604fi
3605fi
3606LEX=$ac_cv_prog_LEX
3607if test -n "$LEX"; then
3608 { echo "$as_me:$LINENO: result: $LEX" >&5
3609echo "${ECHO_T}$LEX" >&6; }
3610else
3611 { echo "$as_me:$LINENO: result: no" >&5
3612echo "${ECHO_T}no" >&6; }
3613fi
3614
3615
3616 test -n "$LEX" && break
3617done
3618test -n "$LEX" || LEX=":"
3619
3620if test "x$LEX" != "x:"; then
3621 cat >conftest.l <<_ACEOF
3622%%
3623a { ECHO; }
3624b { REJECT; }
3625c { yymore (); }
3626d { yyless (1); }
3627e { yyless (input () != 0); }
3628f { unput (yytext[0]); }
3629. { BEGIN INITIAL; }
3630%%
3631#ifdef YYTEXT_POINTER
3632extern char *yytext;
3633#endif
3634int
3635main (void)
3636{
3637 return ! yylex () + ! yywrap ();
3638}
3639_ACEOF
3640{ (ac_try="$LEX conftest.l"
3641case "(($ac_try" in
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3644esac
3645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3646 (eval "$LEX conftest.l") 2>&5
3647 ac_status=$?
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }
3650{ echo "$as_me:$LINENO: checking lex output file root" >&5
3651echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
3652if test "${ac_cv_prog_lex_root+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3654else
3655
3656if test -f lex.yy.c; then
3657 ac_cv_prog_lex_root=lex.yy
3658elif test -f lexyy.c; then
3659 ac_cv_prog_lex_root=lexyy
3660else
3661 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3662echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3663 { (exit 1); exit 1; }; }
3664fi
3665fi
3666{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3667echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
3668LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3669
3670if test -z "${LEXLIB+set}"; then
3671 { echo "$as_me:$LINENO: checking lex library" >&5
3672echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
3673if test "${ac_cv_lib_lex+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3675else
3676
3677 ac_save_LIBS=$LIBS
3678 ac_cv_lib_lex='none needed'
3679 for ac_lib in '' -lfl -ll; do
3680 LIBS="$ac_lib $ac_save_LIBS"
3681 cat >conftest.$ac_ext <<_ACEOF
3682`cat $LEX_OUTPUT_ROOT.c`
3683_ACEOF
3684rm -f conftest.$ac_objext conftest$ac_exeext
3685if { (ac_try="$ac_link"
3686case "(($ac_try" in
3687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688 *) ac_try_echo=$ac_try;;
3689esac
3690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3691 (eval "$ac_link") 2>conftest.er1
3692 ac_status=$?
3693 grep -v '^ *+' conftest.er1 >conftest.err
3694 rm -f conftest.er1
3695 cat conftest.err >&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); } && {
3698 test -z "$ac_c_werror_flag" ||
3699 test ! -s conftest.err
3700 } && test -s conftest$ac_exeext &&
3701 $as_test_x conftest$ac_exeext; then
3702 ac_cv_lib_lex=$ac_lib
3703else
3704 echo "$as_me: failed program was:" >&5
3705sed 's/^/| /' conftest.$ac_ext >&5
3706
3707
3708fi
3709
3710rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3711 conftest$ac_exeext conftest.$ac_ext
3712 test "$ac_cv_lib_lex" != 'none needed' && break
3713 done
3714 LIBS=$ac_save_LIBS
3715
3716fi
3717{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
3718echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
3719 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3720fi
3721
3722
3723{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3724echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
3725if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3727else
3728 # POSIX says lex can declare yytext either as a pointer or an array; the
3729# default is implementation-dependent. Figure out which it is, since
3730# not all implementations provide the %pointer and %array declarations.
3731ac_cv_prog_lex_yytext_pointer=no
3732ac_save_LIBS=$LIBS
3733LIBS="$LEXLIB $ac_save_LIBS"
3734cat >conftest.$ac_ext <<_ACEOF
3735#define YYTEXT_POINTER 1
3736`cat $LEX_OUTPUT_ROOT.c`
3737_ACEOF
3738rm -f conftest.$ac_objext conftest$ac_exeext
3739if { (ac_try="$ac_link"
3740case "(($ac_try" in
3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742 *) ac_try_echo=$ac_try;;
3743esac
3744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3745 (eval "$ac_link") 2>conftest.er1
3746 ac_status=$?
3747 grep -v '^ *+' conftest.er1 >conftest.err
3748 rm -f conftest.er1
3749 cat conftest.err >&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); } && {
3752 test -z "$ac_c_werror_flag" ||
3753 test ! -s conftest.err
3754 } && test -s conftest$ac_exeext &&
3755 $as_test_x conftest$ac_exeext; then
3756 ac_cv_prog_lex_yytext_pointer=yes
3757else
3758 echo "$as_me: failed program was:" >&5
3759sed 's/^/| /' conftest.$ac_ext >&5
3760
3761
3762fi
3763
3764rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3765 conftest$ac_exeext conftest.$ac_ext
3766LIBS=$ac_save_LIBS
3767
3768fi
3769{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3770echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
3771if test $ac_cv_prog_lex_yytext_pointer = yes; then
3772
3773cat >>confdefs.h <<\_ACEOF
3774#define YYTEXT_POINTER 1
3775_ACEOF
3776
3777fi
3778rm -f conftest.l $LEX_OUTPUT_ROOT.c
3779
3780fi
3781if test "$LEX" = :; then
3782 LEX=${am_missing_run}flex
3783fi
3784ac_ext=c
3785ac_cpp='$CPP $CPPFLAGS'
3786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3788ac_compiler_gnu=$ac_cv_c_compiler_gnu
3789{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3790echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3791# On Suns, sometimes $CPP names a directory.
3792if test -n "$CPP" && test -d "$CPP"; then
3793 CPP=
3794fi
3795if test -z "$CPP"; then
3796 if test "${ac_cv_prog_CPP+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3798else
3799 # Double quotes because CPP needs to be expanded
3800 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3801 do
3802 ac_preproc_ok=false
3803for ac_c_preproc_warn_flag in '' yes
3804do
3805 # Use a header file that comes with gcc, so configuring glibc
3806 # with a fresh cross-compiler works.
3807 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3808 # <limits.h> exists even on freestanding compilers.
3809 # On the NeXT, cc -E runs the code through the compiler's parser,
3810 # not just through cpp. "Syntax error" is here to catch this case.
3811 cat >conftest.$ac_ext <<_ACEOF
3812/* confdefs.h. */
3813_ACEOF
3814cat confdefs.h >>conftest.$ac_ext
3815cat >>conftest.$ac_ext <<_ACEOF
3816/* end confdefs.h. */
3817#ifdef __STDC__
3818# include <limits.h>
3819#else
3820# include <assert.h>
3821#endif
3822 Syntax error
3823_ACEOF
3824if { (ac_try="$ac_cpp conftest.$ac_ext"
3825case "(($ac_try" in
3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827 *) ac_try_echo=$ac_try;;
3828esac
3829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3831 ac_status=$?
3832 grep -v '^ *+' conftest.er1 >conftest.err
3833 rm -f conftest.er1
3834 cat conftest.err >&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } >/dev/null && {
3837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3838 test ! -s conftest.err
3839 }; then
3840 :
3841else
3842 echo "$as_me: failed program was:" >&5
3843sed 's/^/| /' conftest.$ac_ext >&5
3844
3845 # Broken: fails on valid input.
3846continue
3847fi
3848
3849rm -f conftest.err conftest.$ac_ext
3850
3851 # OK, works on sane cases. Now check whether nonexistent headers
3852 # can be detected and how.
3853 cat >conftest.$ac_ext <<_ACEOF
3854/* confdefs.h. */
3855_ACEOF
3856cat confdefs.h >>conftest.$ac_ext
3857cat >>conftest.$ac_ext <<_ACEOF
3858/* end confdefs.h. */
3859#include <ac_nonexistent.h>
3860_ACEOF
3861if { (ac_try="$ac_cpp conftest.$ac_ext"
3862case "(($ac_try" in
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3865esac
3866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3868 ac_status=$?
3869 grep -v '^ *+' conftest.er1 >conftest.err
3870 rm -f conftest.er1
3871 cat conftest.err >&5
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); } >/dev/null && {
3874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3875 test ! -s conftest.err
3876 }; then
3877 # Broken: success on invalid input.
3878continue
3879else
3880 echo "$as_me: failed program was:" >&5
3881sed 's/^/| /' conftest.$ac_ext >&5
3882
3883 # Passes both tests.
3884ac_preproc_ok=:
3885break
3886fi
3887
3888rm -f conftest.err conftest.$ac_ext
3889
3890done
3891# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3892rm -f conftest.err conftest.$ac_ext
3893if $ac_preproc_ok; then
3894 break
3895fi
3896
3897 done
3898 ac_cv_prog_CPP=$CPP
3899
3900fi
3901 CPP=$ac_cv_prog_CPP
3902else
3903 ac_cv_prog_CPP=$CPP
3904fi
3905{ echo "$as_me:$LINENO: result: $CPP" >&5
3906echo "${ECHO_T}$CPP" >&6; }
3907ac_preproc_ok=false
3908for ac_c_preproc_warn_flag in '' yes
3909do
3910 # Use a header file that comes with gcc, so configuring glibc
3911 # with a fresh cross-compiler works.
3912 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3913 # <limits.h> exists even on freestanding compilers.
3914 # On the NeXT, cc -E runs the code through the compiler's parser,
3915 # not just through cpp. "Syntax error" is here to catch this case.
3916 cat >conftest.$ac_ext <<_ACEOF
3917/* confdefs.h. */
3918_ACEOF
3919cat confdefs.h >>conftest.$ac_ext
3920cat >>conftest.$ac_ext <<_ACEOF
3921/* end confdefs.h. */
3922#ifdef __STDC__
3923# include <limits.h>
3924#else
3925# include <assert.h>
3926#endif
3927 Syntax error
3928_ACEOF
3929if { (ac_try="$ac_cpp conftest.$ac_ext"
3930case "(($ac_try" in
3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932 *) ac_try_echo=$ac_try;;
3933esac
3934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3936 ac_status=$?
3937 grep -v '^ *+' conftest.er1 >conftest.err
3938 rm -f conftest.er1
3939 cat conftest.err >&5
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); } >/dev/null && {
3942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3943 test ! -s conftest.err
3944 }; then
3945 :
3946else
3947 echo "$as_me: failed program was:" >&5
3948sed 's/^/| /' conftest.$ac_ext >&5
3949
3950 # Broken: fails on valid input.
3951continue
3952fi
3953
3954rm -f conftest.err conftest.$ac_ext
3955
3956 # OK, works on sane cases. Now check whether nonexistent headers
3957 # can be detected and how.
3958 cat >conftest.$ac_ext <<_ACEOF
3959/* confdefs.h. */
3960_ACEOF
3961cat confdefs.h >>conftest.$ac_ext
3962cat >>conftest.$ac_ext <<_ACEOF
3963/* end confdefs.h. */
3964#include <ac_nonexistent.h>
3965_ACEOF
3966if { (ac_try="$ac_cpp conftest.$ac_ext"
3967case "(($ac_try" in
3968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3969 *) ac_try_echo=$ac_try;;
3970esac
3971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3973 ac_status=$?
3974 grep -v '^ *+' conftest.er1 >conftest.err
3975 rm -f conftest.er1
3976 cat conftest.err >&5
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); } >/dev/null && {
3979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3980 test ! -s conftest.err
3981 }; then
3982 # Broken: success on invalid input.
3983continue
3984else
3985 echo "$as_me: failed program was:" >&5
3986sed 's/^/| /' conftest.$ac_ext >&5
3987
3988 # Passes both tests.
3989ac_preproc_ok=:
3990break
3991fi
3992
3993rm -f conftest.err conftest.$ac_ext
3994
3995done
3996# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3997rm -f conftest.err conftest.$ac_ext
3998if $ac_preproc_ok; then
3999 :
4000else
4001 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4002See \`config.log' for more details." >&5
4003echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4004See \`config.log' for more details." >&2;}
4005 { (exit 1); exit 1; }; }
4006fi
4007
4008ac_ext=c
4009ac_cpp='$CPP $CPPFLAGS'
4010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4012ac_compiler_gnu=$ac_cv_c_compiler_gnu
4013
4014
4015{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4016echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4017if test "${ac_cv_path_GREP+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4019else
4020 # Extract the first word of "grep ggrep" to use in msg output
4021if test -z "$GREP"; then
4022set dummy grep ggrep; ac_prog_name=$2
4023if test "${ac_cv_path_GREP+set}" = set; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4025else
4026 ac_path_GREP_found=false
4027# Loop through the user's path and test for each of PROGNAME-LIST
4028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4030do
4031 IFS=$as_save_IFS
4032 test -z "$as_dir" && as_dir=.
4033 for ac_prog in grep ggrep; do
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4036 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4037 # Check for GNU ac_path_GREP and select it if it is found.
4038 # Check for GNU $ac_path_GREP
4039case `"$ac_path_GREP" --version 2>&1` in
4040*GNU*)
4041 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4042*)
4043 ac_count=0
4044 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4045 while :
4046 do
4047 cat "conftest.in" "conftest.in" >"conftest.tmp"
4048 mv "conftest.tmp" "conftest.in"
4049 cp "conftest.in" "conftest.nl"
4050 echo 'GREP' >> "conftest.nl"
4051 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4052 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4053 ac_count=`expr $ac_count + 1`
4054 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4055 # Best one so far, save it but keep looking for a better one
4056 ac_cv_path_GREP="$ac_path_GREP"
4057 ac_path_GREP_max=$ac_count
4058 fi
4059 # 10*(2^10) chars as input seems more than enough
4060 test $ac_count -gt 10 && break
4061 done
4062 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4063esac
4064
4065
4066 $ac_path_GREP_found && break 3
4067 done
4068done
4069
4070done
4071IFS=$as_save_IFS
4072
4073
4074fi
4075
4076GREP="$ac_cv_path_GREP"
4077if test -z "$GREP"; then
4078 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4079echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4080 { (exit 1); exit 1; }; }
4081fi
4082
4083else
4084 ac_cv_path_GREP=$GREP
4085fi
4086
4087
4088fi
4089{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4090echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4091 GREP="$ac_cv_path_GREP"
4092
4093
4094{ echo "$as_me:$LINENO: checking for egrep" >&5
4095echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4096if test "${ac_cv_path_EGREP+set}" = set; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4098else
4099 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4100 then ac_cv_path_EGREP="$GREP -E"
4101 else
4102 # Extract the first word of "egrep" to use in msg output
4103if test -z "$EGREP"; then
4104set dummy egrep; ac_prog_name=$2
4105if test "${ac_cv_path_EGREP+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4107else
4108 ac_path_EGREP_found=false
4109# Loop through the user's path and test for each of PROGNAME-LIST
4110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4112do
4113 IFS=$as_save_IFS
4114 test -z "$as_dir" && as_dir=.
4115 for ac_prog in egrep; do
4116 for ac_exec_ext in '' $ac_executable_extensions; do
4117 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4118 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4119 # Check for GNU ac_path_EGREP and select it if it is found.
4120 # Check for GNU $ac_path_EGREP
4121case `"$ac_path_EGREP" --version 2>&1` in
4122*GNU*)
4123 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4124*)
4125 ac_count=0
4126 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4127 while :
4128 do
4129 cat "conftest.in" "conftest.in" >"conftest.tmp"
4130 mv "conftest.tmp" "conftest.in"
4131 cp "conftest.in" "conftest.nl"
4132 echo 'EGREP' >> "conftest.nl"
4133 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4134 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4135 ac_count=`expr $ac_count + 1`
4136 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4137 # Best one so far, save it but keep looking for a better one
4138 ac_cv_path_EGREP="$ac_path_EGREP"
4139 ac_path_EGREP_max=$ac_count
4140 fi
4141 # 10*(2^10) chars as input seems more than enough
4142 test $ac_count -gt 10 && break
4143 done
4144 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4145esac
4146
4147
4148 $ac_path_EGREP_found && break 3
4149 done
4150done
4151
4152done
4153IFS=$as_save_IFS
4154
4155
4156fi
4157
4158EGREP="$ac_cv_path_EGREP"
4159if test -z "$EGREP"; then
4160 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4161echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4162 { (exit 1); exit 1; }; }
4163fi
4164
4165else
4166 ac_cv_path_EGREP=$EGREP
4167fi
4168
4169
4170 fi
4171fi
4172{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4173echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4174 EGREP="$ac_cv_path_EGREP"
4175
4176
4177{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4178echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4179if test "${ac_cv_header_stdc+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4181else
4182 cat >conftest.$ac_ext <<_ACEOF
4183/* confdefs.h. */
4184_ACEOF
4185cat confdefs.h >>conftest.$ac_ext
4186cat >>conftest.$ac_ext <<_ACEOF
4187/* end confdefs.h. */
4188#include <stdlib.h>
4189#include <stdarg.h>
4190#include <string.h>
4191#include <float.h>
4192
4193int
4194main ()
4195{
4196
4197 ;
4198 return 0;
4199}
4200_ACEOF
4201rm -f conftest.$ac_objext
4202if { (ac_try="$ac_compile"
4203case "(($ac_try" in
4204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205 *) ac_try_echo=$ac_try;;
4206esac
4207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4208 (eval "$ac_compile") 2>conftest.er1
4209 ac_status=$?
4210 grep -v '^ *+' conftest.er1 >conftest.err
4211 rm -f conftest.er1
4212 cat conftest.err >&5
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); } && {
4215 test -z "$ac_c_werror_flag" ||
4216 test ! -s conftest.err
4217 } && test -s conftest.$ac_objext; then
4218 ac_cv_header_stdc=yes
4219else
4220 echo "$as_me: failed program was:" >&5
4221sed 's/^/| /' conftest.$ac_ext >&5
4222
4223 ac_cv_header_stdc=no
4224fi
4225
4226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227
4228if test $ac_cv_header_stdc = yes; then
4229 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4230 cat >conftest.$ac_ext <<_ACEOF
4231/* confdefs.h. */
4232_ACEOF
4233cat confdefs.h >>conftest.$ac_ext
4234cat >>conftest.$ac_ext <<_ACEOF
4235/* end confdefs.h. */
4236#include <string.h>
4237
4238_ACEOF
4239if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4240 $EGREP "memchr" >/dev/null 2>&1; then
4241 :
4242else
4243 ac_cv_header_stdc=no
4244fi
4245rm -f conftest*
4246
4247fi
4248
4249if test $ac_cv_header_stdc = yes; then
4250 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4251 cat >conftest.$ac_ext <<_ACEOF
4252/* confdefs.h. */
4253_ACEOF
4254cat confdefs.h >>conftest.$ac_ext
4255cat >>conftest.$ac_ext <<_ACEOF
4256/* end confdefs.h. */
4257#include <stdlib.h>
4258
4259_ACEOF
4260if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4261 $EGREP "free" >/dev/null 2>&1; then
4262 :
4263else
4264 ac_cv_header_stdc=no
4265fi
4266rm -f conftest*
4267
4268fi
4269
4270if test $ac_cv_header_stdc = yes; then
4271 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4272 if test "$cross_compiling" = yes; then
4273 :
4274else
4275 cat >conftest.$ac_ext <<_ACEOF
4276/* confdefs.h. */
4277_ACEOF
4278cat confdefs.h >>conftest.$ac_ext
4279cat >>conftest.$ac_ext <<_ACEOF
4280/* end confdefs.h. */
4281#include <ctype.h>
4282#include <stdlib.h>
4283#if ((' ' & 0x0FF) == 0x020)
4284# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4285# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4286#else
4287# define ISLOWER(c) \
4288 (('a' <= (c) && (c) <= 'i') \
4289 || ('j' <= (c) && (c) <= 'r') \
4290 || ('s' <= (c) && (c) <= 'z'))
4291# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4292#endif
4293
4294#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4295int
4296main ()
4297{
4298 int i;
4299 for (i = 0; i < 256; i++)
4300 if (XOR (islower (i), ISLOWER (i))
4301 || toupper (i) != TOUPPER (i))
4302 return 2;
4303 return 0;
4304}
4305_ACEOF
4306rm -f conftest$ac_exeext
4307if { (ac_try="$ac_link"
4308case "(($ac_try" in
4309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310 *) ac_try_echo=$ac_try;;
4311esac
4312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313 (eval "$ac_link") 2>&5
4314 ac_status=$?
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4317 { (case "(($ac_try" in
4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4320esac
4321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322 (eval "$ac_try") 2>&5
4323 ac_status=$?
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); }; }; then
4326 :
4327else
4328 echo "$as_me: program exited with status $ac_status" >&5
4329echo "$as_me: failed program was:" >&5
4330sed 's/^/| /' conftest.$ac_ext >&5
4331
4332( exit $ac_status )
4333ac_cv_header_stdc=no
4334fi
4335rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4336fi
4337
4338
4339fi
4340fi
4341{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4342echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4343if test $ac_cv_header_stdc = yes; then
4344
4345cat >>confdefs.h <<\_ACEOF
4346#define STDC_HEADERS 1
4347_ACEOF
4348
4349fi
4350
4351
4352# Check whether --enable-static was given.
4353if test "${enable_static+set}" = set; then
4354 enableval=$enable_static; p=${PACKAGE-default}
4355 case $enableval in
4356 yes) enable_static=yes ;;
4357 no) enable_static=no ;;
4358 *)
4359 enable_static=no
4360 # Look at the argument we got. We use all the common list separators.
4361 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4362 for pkg in $enableval; do
4363 IFS="$lt_save_ifs"
4364 if test "X$pkg" = "X$p"; then
4365 enable_static=yes
4366 fi
4367 done
4368 IFS="$lt_save_ifs"
4369 ;;
4370 esac
4371else
4372 enable_static=no
4373fi
4374
4375
4376
4377
4378
4379 { echo "$as_me:$LINENO: checking for Win32" >&5
4380echo $ECHO_N "checking for Win32... $ECHO_C" >&6; }
4381 case "$host" in
4382 *-mingw*)
4383 os_win32=yes
4384 ;;
4385 *)
4386 os_win32=no
4387 ;;
4388 esac
4389 { echo "$as_me:$LINENO: result: $os_win32" >&5
4390echo "${ECHO_T}$os_win32" >&6; }
4391 if test "$os_win32" = "yes"; then
4392 if test x$enable_static = xyes -o x$enable_static = x; then
4393 { echo "$as_me:$LINENO: WARNING: Disabling static library build, must build as DLL on Windows." >&5
4394echo "$as_me: WARNING: Disabling static library build, must build as DLL on Windows." >&2;}
4395 fi
4396 if test x$enable_shared = xno; then
4397 { echo "$as_me:$LINENO: WARNING: Enabling shared library build, must build as DLL on Windows." >&5
4398echo "$as_me: WARNING: Enabling shared library build, must build as DLL on Windows." >&2;}
4399 fi
4400 enable_static=no
4401 enable_shared=yes
4402 fi
4403
4404 if test "$os_win32" = yes; then
4405 OS_WIN32_TRUE=
4406 OS_WIN32_FALSE='#'
4407else
4408 OS_WIN32_TRUE='#'
4409 OS_WIN32_FALSE=
4410fi
4411
4412
4413
4414
4415# Check whether --enable-shared was given.
4416if test "${enable_shared+set}" = set; then
4417 enableval=$enable_shared; p=${PACKAGE-default}
4418 case $enableval in
4419 yes) enable_shared=yes ;;
4420 no) enable_shared=no ;;
4421 *)
4422 enable_shared=no
4423 # Look at the argument we got. We use all the common list separators.
4424 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4425 for pkg in $enableval; do
4426 IFS="$lt_save_ifs"
4427 if test "X$pkg" = "X$p"; then
4428 enable_shared=yes
4429 fi
4430 done
4431 IFS="$lt_save_ifs"
4432 ;;
4433 esac
4434else
4435 enable_shared=yes
4436fi
4437
4438
4439# Check whether --enable-fast-install was given.
4440if test "${enable_fast_install+set}" = set; then
4441 enableval=$enable_fast_install; p=${PACKAGE-default}
4442 case $enableval in
4443 yes) enable_fast_install=yes ;;
4444 no) enable_fast_install=no ;;
4445 *)
4446 enable_fast_install=no
4447 # Look at the argument we got. We use all the common list separators.
4448 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4449 for pkg in $enableval; do
4450 IFS="$lt_save_ifs"
4451 if test "X$pkg" = "X$p"; then
4452 enable_fast_install=yes
4453 fi
4454 done
4455 IFS="$lt_save_ifs"
4456 ;;
4457 esac
4458else
4459 enable_fast_install=yes
4460fi
4461
4462
4463# Make sure we can run config.sub.
4464$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4465 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4466echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4467 { (exit 1); exit 1; }; }
4468
4469{ echo "$as_me:$LINENO: checking build system type" >&5
4470echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4471if test "${ac_cv_build+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4473else
4474 ac_build_alias=$build_alias
4475test "x$ac_build_alias" = x &&
4476 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4477test "x$ac_build_alias" = x &&
4478 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4479echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4480 { (exit 1); exit 1; }; }
4481ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4482 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4483echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4484 { (exit 1); exit 1; }; }
4485
4486fi
4487{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4488echo "${ECHO_T}$ac_cv_build" >&6; }
4489case $ac_cv_build in
4490*-*-*) ;;
4491*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4492echo "$as_me: error: invalid value of canonical build" >&2;}
4493 { (exit 1); exit 1; }; };;
4494esac
4495build=$ac_cv_build
4496ac_save_IFS=$IFS; IFS='-'
4497set x $ac_cv_build
4498shift
4499build_cpu=$1
4500build_vendor=$2
4501shift; shift
4502# Remember, the first character of IFS is used to create $*,
4503# except with old shells:
4504build_os=$*
4505IFS=$ac_save_IFS
4506case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4507
4508
4509{ echo "$as_me:$LINENO: checking host system type" >&5
4510echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4511if test "${ac_cv_host+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4513else
4514 if test "x$host_alias" = x; then
4515 ac_cv_host=$ac_cv_build
4516else
4517 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4518 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4519echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4520 { (exit 1); exit 1; }; }
4521fi
4522
4523fi
4524{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4525echo "${ECHO_T}$ac_cv_host" >&6; }
4526case $ac_cv_host in
4527*-*-*) ;;
4528*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4529echo "$as_me: error: invalid value of canonical host" >&2;}
4530 { (exit 1); exit 1; }; };;
4531esac
4532host=$ac_cv_host
4533ac_save_IFS=$IFS; IFS='-'
4534set x $ac_cv_host
4535shift
4536host_cpu=$1
4537host_vendor=$2
4538shift; shift
4539# Remember, the first character of IFS is used to create $*,
4540# except with old shells:
4541host_os=$*
4542IFS=$ac_save_IFS
4543case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4544
4545
4546{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4547echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4548if test "${lt_cv_path_SED+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4550else
4551 # Loop through the user's path and test for sed and gsed.
4552# Then use that list of sed's as ones to test for truncation.
4553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554for as_dir in $PATH
4555do
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
4558 for lt_ac_prog in sed gsed; do
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4561 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4562 fi
4563 done
4564 done
4565done
4566lt_ac_max=0
4567lt_ac_count=0
4568# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4569# along with /bin/sed that truncates output.
4570for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4571 test ! -f $lt_ac_sed && break
4572 cat /dev/null > conftest.in
4573 lt_ac_count=0
4574 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4575 # Check for GNU sed and select it if it is found.
4576 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4577 lt_cv_path_SED=$lt_ac_sed
4578 break
4579 fi
4580 while true; do
4581 cat conftest.in conftest.in >conftest.tmp
4582 mv conftest.tmp conftest.in
4583 cp conftest.in conftest.nl
4584 echo >>conftest.nl
4585 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4586 cmp -s conftest.out conftest.nl || break
4587 # 10000 chars as input seems more than enough
4588 test $lt_ac_count -gt 10 && break
4589 lt_ac_count=`expr $lt_ac_count + 1`
4590 if test $lt_ac_count -gt $lt_ac_max; then
4591 lt_ac_max=$lt_ac_count
4592 lt_cv_path_SED=$lt_ac_sed
4593 fi
4594 done
4595done
4596SED=$lt_cv_path_SED
4597
4598fi
4599
4600{ echo "$as_me:$LINENO: result: $SED" >&5
4601echo "${ECHO_T}$SED" >&6; }
4602
4603
4604# Check whether --with-gnu-ld was given.
4605if test "${with_gnu_ld+set}" = set; then
4606 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4607else
4608 with_gnu_ld=no
4609fi
4610
4611ac_prog=ld
4612if test "$GCC" = yes; then
4613 # Check if gcc -print-prog-name=ld gives a path.
4614 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4615echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4616 case $host in
4617 *-*-mingw*)
4618 # gcc leaves a trailing carriage return which upsets mingw
4619 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4620 *)
4621 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4622 esac
4623 case $ac_prog in
4624 # Accept absolute paths.
4625 [\\/]* | ?:[\\/]*)
4626 re_direlt='/[^/][^/]*/\.\./'
4627 # Canonicalize the pathname of ld
4628 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4629 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4630 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4631 done
4632 test -z "$LD" && LD="$ac_prog"
4633 ;;
4634 "")
4635 # If it fails, then pretend we aren't using GCC.
4636 ac_prog=ld
4637 ;;
4638 *)
4639 # If it is relative, then search for the first ld in PATH.
4640 with_gnu_ld=unknown
4641 ;;
4642 esac
4643elif test "$with_gnu_ld" = yes; then
4644 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4645echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4646else
4647 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4648echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4649fi
4650if test "${lt_cv_path_LD+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4652else
4653 if test -z "$LD"; then
4654 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4655 for ac_dir in $PATH; do
4656 IFS="$lt_save_ifs"
4657 test -z "$ac_dir" && ac_dir=.
4658 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4659 lt_cv_path_LD="$ac_dir/$ac_prog"
4660 # Check to see if the program is GNU ld. I'd rather use --version,
4661 # but apparently some GNU ld's only accept -v.
4662 # Break only if it was the GNU/non-GNU ld that we prefer.
4663 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4664 *GNU* | *'with BFD'*)
4665 test "$with_gnu_ld" != no && break
4666 ;;
4667 *)
4668 test "$with_gnu_ld" != yes && break
4669 ;;
4670 esac
4671 fi
4672 done
4673 IFS="$lt_save_ifs"
4674else
4675 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4676fi
4677fi
4678
4679LD="$lt_cv_path_LD"
4680if test -n "$LD"; then
4681 { echo "$as_me:$LINENO: result: $LD" >&5
4682echo "${ECHO_T}$LD" >&6; }
4683else
4684 { echo "$as_me:$LINENO: result: no" >&5
4685echo "${ECHO_T}no" >&6; }
4686fi
4687test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4688echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4689 { (exit 1); exit 1; }; }
4690{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4691echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4692if test "${lt_cv_prog_gnu_ld+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694else
4695 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4696case `$LD -v 2>&1 </dev/null` in
4697*GNU* | *'with BFD'*)
4698 lt_cv_prog_gnu_ld=yes
4699 ;;
4700*)
4701 lt_cv_prog_gnu_ld=no
4702 ;;
4703esac
4704fi
4705{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4706echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4707with_gnu_ld=$lt_cv_prog_gnu_ld
4708
4709
4710{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4711echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4712if test "${lt_cv_ld_reload_flag+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4714else
4715 lt_cv_ld_reload_flag='-r'
4716fi
4717{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4718echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4719reload_flag=$lt_cv_ld_reload_flag
4720case $reload_flag in
4721"" | " "*) ;;
4722*) reload_flag=" $reload_flag" ;;
4723esac
4724reload_cmds='$LD$reload_flag -o $output$reload_objs'
4725
4726{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4727echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4728if test "${lt_cv_path_NM+set}" = set; then
4729 echo $ECHO_N "(cached) $ECHO_C" >&6
4730else
4731 if test -n "$NM"; then
4732 # Let the user override the test.
4733 lt_cv_path_NM="$NM"
4734else
4735 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4736 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4737 IFS="$lt_save_ifs"
4738 test -z "$ac_dir" && ac_dir=.
4739 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4740 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4741 # Check to see if the nm accepts a BSD-compat flag.
4742 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4743 # nm: unknown option "B" ignored
4744 # Tru64's nm complains that /dev/null is an invalid object file
4745 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4746 */dev/null* | *'Invalid file or object type'*)
4747 lt_cv_path_NM="$tmp_nm -B"
4748 break
4749 ;;
4750 *)
4751 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4752 */dev/null*)
4753 lt_cv_path_NM="$tmp_nm -p"
4754 break
4755 ;;
4756 *)
4757 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4758 continue # so that we can try to find one that supports BSD flags
4759 ;;
4760 esac
4761 esac
4762 fi
4763 done
4764 IFS="$lt_save_ifs"
4765 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4766fi
4767fi
4768{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4769echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4770NM="$lt_cv_path_NM"
4771
4772{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4773echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4774LN_S=$as_ln_s
4775if test "$LN_S" = "ln -s"; then
4776 { echo "$as_me:$LINENO: result: yes" >&5
4777echo "${ECHO_T}yes" >&6; }
4778else
4779 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4780echo "${ECHO_T}no, using $LN_S" >&6; }
4781fi
4782
4783{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4784echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4785if test "${lt_cv_deplibs_check_method+set}" = set; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4787else
4788 lt_cv_file_magic_cmd='$MAGIC_CMD'
4789lt_cv_file_magic_test_file=
4790lt_cv_deplibs_check_method='unknown'
4791# Need to set the preceding variable on all platforms that support
4792# interlibrary dependencies.
4793# 'none' -- dependencies not supported.
4794# `unknown' -- same as none, but documents that we really don't know.
4795# 'pass_all' -- all dependencies passed with no checks.
4796# 'test_compile' -- check by making test program.
4797# 'file_magic [[regex]]' -- check by looking for files in library path
4798# which responds to the $file_magic_cmd with a given extended regex.
4799# If you have `file' or equivalent on your system and you're not sure
4800# whether `pass_all' will *always* work, you probably want this one.
4801
4802case $host_os in
4803aix4* | aix5*)
4804 lt_cv_deplibs_check_method=pass_all
4805 ;;
4806
4807beos*)
4808 lt_cv_deplibs_check_method=pass_all
4809 ;;
4810
4811bsdi4*)
4812 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4813 lt_cv_file_magic_cmd='/usr/bin/file -L'
4814 lt_cv_file_magic_test_file=/shlib/libc.so
4815 ;;
4816
4817cygwin*)
4818 # func_win32_libid is a shell function defined in ltmain.sh
4819 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4820 lt_cv_file_magic_cmd='func_win32_libid'
4821 ;;
4822
4823mingw* | pw32*)
4824 # Base MSYS/MinGW do not provide the 'file' command needed by
4825 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4826 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4827 lt_cv_file_magic_cmd='$OBJDUMP -f'
4828 ;;
4829
4830darwin* | rhapsody*)
4831 lt_cv_deplibs_check_method=pass_all
4832 ;;
4833
4834freebsd* | kfreebsd*-gnu)
4835 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4836 case $host_cpu in
4837 i*86 )
4838 # Not sure whether the presence of OpenBSD here was a mistake.
4839 # Let's accept both of them until this is cleared up.
4840 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4841 lt_cv_file_magic_cmd=/usr/bin/file
4842 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4843 ;;
4844 esac
4845 else
4846 lt_cv_deplibs_check_method=pass_all
4847 fi
4848 ;;
4849
4850gnu*)
4851 lt_cv_deplibs_check_method=pass_all
4852 ;;
4853
4854hpux10.20* | hpux11*)
4855 lt_cv_file_magic_cmd=/usr/bin/file
4856 case "$host_cpu" in
4857 ia64*)
4858 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4859 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4860 ;;
4861 hppa*64*)
4862 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4863 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4864 ;;
4865 *)
4866 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4867 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4868 ;;
4869 esac
4870 ;;
4871
4872irix5* | irix6* | nonstopux*)
4873 case $LD in
4874 *-32|*"-32 ") libmagic=32-bit;;
4875 *-n32|*"-n32 ") libmagic=N32;;
4876 *-64|*"-64 ") libmagic=64-bit;;
4877 *) libmagic=never-match;;
4878 esac
4879 lt_cv_deplibs_check_method=pass_all
4880 ;;
4881
4882# This must be Linux ELF.
4883linux*)
4884 lt_cv_deplibs_check_method=pass_all
4885 ;;
4886
4887netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4888 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4889 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4890 else
4891 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4892 fi
4893 ;;
4894
4895newos6*)
4896 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4897 lt_cv_file_magic_cmd=/usr/bin/file
4898 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4899 ;;
4900
4901nto-qnx*)
4902 lt_cv_deplibs_check_method=unknown
4903 ;;
4904
4905openbsd*)
4906 lt_cv_file_magic_cmd=/usr/bin/file
4907 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4908 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4909 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4910 else
4911 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4912 fi
4913 ;;
4914
4915osf3* | osf4* | osf5*)
4916 lt_cv_deplibs_check_method=pass_all
4917 ;;
4918
4919sco3.2v5*)
4920 lt_cv_deplibs_check_method=pass_all
4921 ;;
4922
4923solaris*)
4924 lt_cv_deplibs_check_method=pass_all
4925 ;;
4926
4927sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4928 case $host_vendor in
4929 motorola)
4930 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4931 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4932 ;;
4933 ncr)
4934 lt_cv_deplibs_check_method=pass_all
4935 ;;
4936 sequent)
4937 lt_cv_file_magic_cmd='/bin/file'
4938 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4939 ;;
4940 sni)
4941 lt_cv_file_magic_cmd='/bin/file'
4942 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4943 lt_cv_file_magic_test_file=/lib/libc.so
4944 ;;
4945 siemens)
4946 lt_cv_deplibs_check_method=pass_all
4947 ;;
4948 esac
4949 ;;
4950
4951sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4952 lt_cv_deplibs_check_method=pass_all
4953 ;;
4954esac
4955
4956fi
4957{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4958echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4959file_magic_cmd=$lt_cv_file_magic_cmd
4960deplibs_check_method=$lt_cv_deplibs_check_method
4961test -z "$deplibs_check_method" && deplibs_check_method=unknown
4962
4963
4964
4965
4966# If no C compiler was specified, use CC.
4967LTCC=${LTCC-"$CC"}
4968
4969# Allow CC to be a program name with arguments.
4970compiler=$CC
4971
4972# Check whether --enable-libtool-lock was given.
4973if test "${enable_libtool_lock+set}" = set; then
4974 enableval=$enable_libtool_lock;
4975fi
4976
4977test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4978
4979# Some flags need to be propagated to the compiler or linker for good
4980# libtool support.
4981case $host in
4982ia64-*-hpux*)
4983 # Find out which ABI we are using.
4984 echo 'int i;' > conftest.$ac_ext
4985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4986 (eval $ac_compile) 2>&5
4987 ac_status=$?
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; then
4990 case `/usr/bin/file conftest.$ac_objext` in
4991 *ELF-32*)
4992 HPUX_IA64_MODE="32"
4993 ;;
4994 *ELF-64*)
4995 HPUX_IA64_MODE="64"
4996 ;;
4997 esac
4998 fi
4999 rm -rf conftest*
5000 ;;
5001*-*-irix6*)
5002 # Find out which ABI we are using.
5003 echo '#line 5003 "configure"' > conftest.$ac_ext
5004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5005 (eval $ac_compile) 2>&5
5006 ac_status=$?
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); }; then
5009 if test "$lt_cv_prog_gnu_ld" = yes; then
5010 case `/usr/bin/file conftest.$ac_objext` in
5011 *32-bit*)
5012 LD="${LD-ld} -melf32bsmip"
5013 ;;
5014 *N32*)
5015 LD="${LD-ld} -melf32bmipn32"
5016 ;;
5017 *64-bit*)
5018 LD="${LD-ld} -melf64bmip"
5019 ;;
5020 esac
5021 else
5022 case `/usr/bin/file conftest.$ac_objext` in
5023 *32-bit*)
5024 LD="${LD-ld} -32"
5025 ;;
5026 *N32*)
5027 LD="${LD-ld} -n32"
5028 ;;
5029 *64-bit*)
5030 LD="${LD-ld} -64"
5031 ;;
5032 esac
5033 fi
5034 fi
5035 rm -rf conftest*
5036 ;;
5037
5038x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5039 # Find out which ABI we are using.
5040 echo 'int i;' > conftest.$ac_ext
5041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5042 (eval $ac_compile) 2>&5
5043 ac_status=$?
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }; then
5046 case "`/usr/bin/file conftest.o`" in
5047 *32-bit*)
5048 case $host in
5049 x86_64-*linux*)
5050 LD="${LD-ld} -m elf_i386"
5051 ;;
5052 ppc64-*linux*|powerpc64-*linux*)
5053 LD="${LD-ld} -m elf32ppclinux"
5054 ;;
5055 s390x-*linux*)
5056 LD="${LD-ld} -m elf_s390"
5057 ;;
5058 sparc64-*linux*)
5059 LD="${LD-ld} -m elf32_sparc"
5060 ;;
5061 esac
5062 ;;
5063 *64-bit*)
5064 case $host in
5065 x86_64-*linux*)
5066 LD="${LD-ld} -m elf_x86_64"
5067 ;;
5068 ppc*-*linux*|powerpc*-*linux*)
5069 LD="${LD-ld} -m elf64ppc"
5070 ;;
5071 s390*-*linux*)
5072 LD="${LD-ld} -m elf64_s390"
5073 ;;
5074 sparc*-*linux*)
5075 LD="${LD-ld} -m elf64_sparc"
5076 ;;
5077 esac
5078 ;;
5079 esac
5080 fi
5081 rm -rf conftest*
5082 ;;
5083
5084*-*-sco3.2v5*)
5085 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5086 SAVE_CFLAGS="$CFLAGS"
5087 CFLAGS="$CFLAGS -belf"
5088 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5089echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5090if test "${lt_cv_cc_needs_belf+set}" = set; then
5091 echo $ECHO_N "(cached) $ECHO_C" >&6
5092else
5093 ac_ext=c
5094ac_cpp='$CPP $CPPFLAGS'
5095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5097ac_compiler_gnu=$ac_cv_c_compiler_gnu
5098
5099 cat >conftest.$ac_ext <<_ACEOF
5100/* confdefs.h. */
5101_ACEOF
5102cat confdefs.h >>conftest.$ac_ext
5103cat >>conftest.$ac_ext <<_ACEOF
5104/* end confdefs.h. */
5105
5106int
5107main ()
5108{
5109
5110 ;
5111 return 0;
5112}
5113_ACEOF
5114rm -f conftest.$ac_objext conftest$ac_exeext
5115if { (ac_try="$ac_link"
5116case "(($ac_try" in
5117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5118 *) ac_try_echo=$ac_try;;
5119esac
5120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5121 (eval "$ac_link") 2>conftest.er1
5122 ac_status=$?
5123 grep -v '^ *+' conftest.er1 >conftest.err
5124 rm -f conftest.er1
5125 cat conftest.err >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } && {
5128 test -z "$ac_c_werror_flag" ||
5129 test ! -s conftest.err
5130 } && test -s conftest$ac_exeext &&
5131 $as_test_x conftest$ac_exeext; then
5132 lt_cv_cc_needs_belf=yes
5133else
5134 echo "$as_me: failed program was:" >&5
5135sed 's/^/| /' conftest.$ac_ext >&5
5136
5137 lt_cv_cc_needs_belf=no
5138fi
5139
5140rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5141 conftest$ac_exeext conftest.$ac_ext
5142 ac_ext=c
5143ac_cpp='$CPP $CPPFLAGS'
5144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5146ac_compiler_gnu=$ac_cv_c_compiler_gnu
5147
5148fi
5149{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5150echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5151 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5152 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5153 CFLAGS="$SAVE_CFLAGS"
5154 fi
5155 ;;
5156*-*-cygwin* | *-*-mingw* | *-*-pw32*)
5157 if test -n "$ac_tool_prefix"; then
5158 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5159set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5160{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5162if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164else
5165 if test -n "$DLLTOOL"; then
5166 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5167else
5168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169for as_dir in $PATH
5170do
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5175 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 break 2
5178 fi
5179done
5180done
5181IFS=$as_save_IFS
5182
5183fi
5184fi
5185DLLTOOL=$ac_cv_prog_DLLTOOL
5186if test -n "$DLLTOOL"; then
5187 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5188echo "${ECHO_T}$DLLTOOL" >&6; }
5189else
5190 { echo "$as_me:$LINENO: result: no" >&5
5191echo "${ECHO_T}no" >&6; }
5192fi
5193
5194
5195fi
5196if test -z "$ac_cv_prog_DLLTOOL"; then
5197 ac_ct_DLLTOOL=$DLLTOOL
5198 # Extract the first word of "dlltool", so it can be a program name with args.
5199set dummy dlltool; ac_word=$2
5200{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5202if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5204else
5205 if test -n "$ac_ct_DLLTOOL"; then
5206 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5207else
5208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209for as_dir in $PATH
5210do
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5215 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 break 2
5218 fi
5219done
5220done
5221IFS=$as_save_IFS
5222
5223fi
5224fi
5225ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5226if test -n "$ac_ct_DLLTOOL"; then
5227 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5228echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
5229else
5230 { echo "$as_me:$LINENO: result: no" >&5
5231echo "${ECHO_T}no" >&6; }
5232fi
5233
5234 if test "x$ac_ct_DLLTOOL" = x; then
5235 DLLTOOL="false"
5236 else
5237 case $cross_compiling:$ac_tool_warned in
5238yes:)
5239{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5240whose name does not start with the host triplet. If you think this
5241configuration is useful to you, please write to autoconf@gnu.org." >&5
5242echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5243whose name does not start with the host triplet. If you think this
5244configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5245ac_tool_warned=yes ;;
5246esac
5247 DLLTOOL=$ac_ct_DLLTOOL
5248 fi
5249else
5250 DLLTOOL="$ac_cv_prog_DLLTOOL"
5251fi
5252
5253 if test -n "$ac_tool_prefix"; then
5254 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5255set dummy ${ac_tool_prefix}as; ac_word=$2
5256{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5258if test "${ac_cv_prog_AS+set}" = set; then
5259 echo $ECHO_N "(cached) $ECHO_C" >&6
5260else
5261 if test -n "$AS"; then
5262 ac_cv_prog_AS="$AS" # Let the user override the test.
5263else
5264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265for as_dir in $PATH
5266do
5267 IFS=$as_save_IFS
5268 test -z "$as_dir" && as_dir=.
5269 for ac_exec_ext in '' $ac_executable_extensions; do
5270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5271 ac_cv_prog_AS="${ac_tool_prefix}as"
5272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5273 break 2
5274 fi
5275done
5276done
5277IFS=$as_save_IFS
5278
5279fi
5280fi
5281AS=$ac_cv_prog_AS
5282if test -n "$AS"; then
5283 { echo "$as_me:$LINENO: result: $AS" >&5
5284echo "${ECHO_T}$AS" >&6; }
5285else
5286 { echo "$as_me:$LINENO: result: no" >&5
5287echo "${ECHO_T}no" >&6; }
5288fi
5289
5290
5291fi
5292if test -z "$ac_cv_prog_AS"; then
5293 ac_ct_AS=$AS
5294 # Extract the first word of "as", so it can be a program name with args.
5295set dummy as; ac_word=$2
5296{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5298if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5300else
5301 if test -n "$ac_ct_AS"; then
5302 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5303else
5304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305for as_dir in $PATH
5306do
5307 IFS=$as_save_IFS
5308 test -z "$as_dir" && as_dir=.
5309 for ac_exec_ext in '' $ac_executable_extensions; do
5310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5311 ac_cv_prog_ac_ct_AS="as"
5312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5313 break 2
5314 fi
5315done
5316done
5317IFS=$as_save_IFS
5318
5319fi
5320fi
5321ac_ct_AS=$ac_cv_prog_ac_ct_AS
5322if test -n "$ac_ct_AS"; then
5323 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5324echo "${ECHO_T}$ac_ct_AS" >&6; }
5325else
5326 { echo "$as_me:$LINENO: result: no" >&5
5327echo "${ECHO_T}no" >&6; }
5328fi
5329
5330 if test "x$ac_ct_AS" = x; then
5331 AS="false"
5332 else
5333 case $cross_compiling:$ac_tool_warned in
5334yes:)
5335{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5336whose name does not start with the host triplet. If you think this
5337configuration is useful to you, please write to autoconf@gnu.org." >&5
5338echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5339whose name does not start with the host triplet. If you think this
5340configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5341ac_tool_warned=yes ;;
5342esac
5343 AS=$ac_ct_AS
5344 fi
5345else
5346 AS="$ac_cv_prog_AS"
5347fi
5348
5349 if test -n "$ac_tool_prefix"; then
5350 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5351set dummy ${ac_tool_prefix}objdump; ac_word=$2
5352{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5354if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5355 echo $ECHO_N "(cached) $ECHO_C" >&6
5356else
5357 if test -n "$OBJDUMP"; then
5358 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5359else
5360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361for as_dir in $PATH
5362do
5363 IFS=$as_save_IFS
5364 test -z "$as_dir" && as_dir=.
5365 for ac_exec_ext in '' $ac_executable_extensions; do
5366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5367 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5369 break 2
5370 fi
5371done
5372done
5373IFS=$as_save_IFS
5374
5375fi
5376fi
5377OBJDUMP=$ac_cv_prog_OBJDUMP
5378if test -n "$OBJDUMP"; then
5379 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5380echo "${ECHO_T}$OBJDUMP" >&6; }
5381else
5382 { echo "$as_me:$LINENO: result: no" >&5
5383echo "${ECHO_T}no" >&6; }
5384fi
5385
5386
5387fi
5388if test -z "$ac_cv_prog_OBJDUMP"; then
5389 ac_ct_OBJDUMP=$OBJDUMP
5390 # Extract the first word of "objdump", so it can be a program name with args.
5391set dummy objdump; ac_word=$2
5392{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5394if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5395 echo $ECHO_N "(cached) $ECHO_C" >&6
5396else
5397 if test -n "$ac_ct_OBJDUMP"; then
5398 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5399else
5400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401for as_dir in $PATH
5402do
5403 IFS=$as_save_IFS
5404 test -z "$as_dir" && as_dir=.
5405 for ac_exec_ext in '' $ac_executable_extensions; do
5406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5407 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5409 break 2
5410 fi
5411done
5412done
5413IFS=$as_save_IFS
5414
5415fi
5416fi
5417ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5418if test -n "$ac_ct_OBJDUMP"; then
5419 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5420echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5421else
5422 { echo "$as_me:$LINENO: result: no" >&5
5423echo "${ECHO_T}no" >&6; }
5424fi
5425
5426 if test "x$ac_ct_OBJDUMP" = x; then
5427 OBJDUMP="false"
5428 else
5429 case $cross_compiling:$ac_tool_warned in
5430yes:)
5431{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5432whose name does not start with the host triplet. If you think this
5433configuration is useful to you, please write to autoconf@gnu.org." >&5
5434echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5435whose name does not start with the host triplet. If you think this
5436configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5437ac_tool_warned=yes ;;
5438esac
5439 OBJDUMP=$ac_ct_OBJDUMP
5440 fi
5441else
5442 OBJDUMP="$ac_cv_prog_OBJDUMP"
5443fi
5444
5445 ;;
5446
5447esac
5448
5449need_locks="$enable_libtool_lock"
5450
5451
5452# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5463 inttypes.h stdint.h unistd.h
5464do
5465as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5466{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5468if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5469 echo $ECHO_N "(cached) $ECHO_C" >&6
5470else
5471 cat >conftest.$ac_ext <<_ACEOF
5472/* confdefs.h. */
5473_ACEOF
5474cat confdefs.h >>conftest.$ac_ext
5475cat >>conftest.$ac_ext <<_ACEOF
5476/* end confdefs.h. */
5477$ac_includes_default
5478
5479#include <$ac_header>
5480_ACEOF
5481rm -f conftest.$ac_objext
5482if { (ac_try="$ac_compile"
5483case "(($ac_try" in
5484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5485 *) ac_try_echo=$ac_try;;
5486esac
5487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5488 (eval "$ac_compile") 2>conftest.er1
5489 ac_status=$?
5490 grep -v '^ *+' conftest.er1 >conftest.err
5491 rm -f conftest.er1
5492 cat conftest.err >&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); } && {
5495 test -z "$ac_c_werror_flag" ||
5496 test ! -s conftest.err
5497 } && test -s conftest.$ac_objext; then
5498 eval "$as_ac_Header=yes"
5499else
5500 echo "$as_me: failed program was:" >&5
5501sed 's/^/| /' conftest.$ac_ext >&5
5502
5503 eval "$as_ac_Header=no"
5504fi
5505
5506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5507fi
5508ac_res=`eval echo '${'$as_ac_Header'}'`
5509 { echo "$as_me:$LINENO: result: $ac_res" >&5
5510echo "${ECHO_T}$ac_res" >&6; }
5511if test `eval echo '${'$as_ac_Header'}'` = yes; then
5512 cat >>confdefs.h <<_ACEOF
5513#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5514_ACEOF
5515
5516fi
5517
5518done
5519
5520
5521
5522for ac_header in dlfcn.h
5523do
5524as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5525if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5526 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5527echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5528if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5529 echo $ECHO_N "(cached) $ECHO_C" >&6
5530fi
5531ac_res=`eval echo '${'$as_ac_Header'}'`
5532 { echo "$as_me:$LINENO: result: $ac_res" >&5
5533echo "${ECHO_T}$ac_res" >&6; }
5534else
5535 # Is the header compilable?
5536{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5537echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5538cat >conftest.$ac_ext <<_ACEOF
5539/* confdefs.h. */
5540_ACEOF
5541cat confdefs.h >>conftest.$ac_ext
5542cat >>conftest.$ac_ext <<_ACEOF
5543/* end confdefs.h. */
5544$ac_includes_default
5545#include <$ac_header>
5546_ACEOF
5547rm -f conftest.$ac_objext
5548if { (ac_try="$ac_compile"
5549case "(($ac_try" in
5550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551 *) ac_try_echo=$ac_try;;
5552esac
5553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554 (eval "$ac_compile") 2>conftest.er1
5555 ac_status=$?
5556 grep -v '^ *+' conftest.er1 >conftest.err
5557 rm -f conftest.er1
5558 cat conftest.err >&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); } && {
5561 test -z "$ac_c_werror_flag" ||
5562 test ! -s conftest.err
5563 } && test -s conftest.$ac_objext; then
5564 ac_header_compiler=yes
5565else
5566 echo "$as_me: failed program was:" >&5
5567sed 's/^/| /' conftest.$ac_ext >&5
5568
5569 ac_header_compiler=no
5570fi
5571
5572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5574echo "${ECHO_T}$ac_header_compiler" >&6; }
5575
5576# Is the header present?
5577{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5578echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5579cat >conftest.$ac_ext <<_ACEOF
5580/* confdefs.h. */
5581_ACEOF
5582cat confdefs.h >>conftest.$ac_ext
5583cat >>conftest.$ac_ext <<_ACEOF
5584/* end confdefs.h. */
5585#include <$ac_header>
5586_ACEOF
5587if { (ac_try="$ac_cpp conftest.$ac_ext"
5588case "(($ac_try" in
5589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590 *) ac_try_echo=$ac_try;;
5591esac
5592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5594 ac_status=$?
5595 grep -v '^ *+' conftest.er1 >conftest.err
5596 rm -f conftest.er1
5597 cat conftest.err >&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } >/dev/null && {
5600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5601 test ! -s conftest.err
5602 }; then
5603 ac_header_preproc=yes
5604else
5605 echo "$as_me: failed program was:" >&5
5606sed 's/^/| /' conftest.$ac_ext >&5
5607
5608 ac_header_preproc=no
5609fi
5610
5611rm -f conftest.err conftest.$ac_ext
5612{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5613echo "${ECHO_T}$ac_header_preproc" >&6; }
5614
5615# So? What about this header?
5616case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5617 yes:no: )
5618 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5619echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5621echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5622 ac_header_preproc=yes
5623 ;;
5624 no:yes:* )
5625 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5626echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5627 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5628echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5629 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5630echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5631 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5632echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5634echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5635 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5636echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5637
5638 ;;
5639esac
5640{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5641echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5642if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5644else
5645 eval "$as_ac_Header=\$ac_header_preproc"
5646fi
5647ac_res=`eval echo '${'$as_ac_Header'}'`
5648 { echo "$as_me:$LINENO: result: $ac_res" >&5
5649echo "${ECHO_T}$ac_res" >&6; }
5650
5651fi
5652if test `eval echo '${'$as_ac_Header'}'` = yes; then
5653 cat >>confdefs.h <<_ACEOF
5654#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5655_ACEOF
5656
5657fi
5658
5659done
5660
5661ac_ext=cpp
5662ac_cpp='$CXXCPP $CPPFLAGS'
5663ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5664ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5665ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5666if test -z "$CXX"; then
5667 if test -n "$CCC"; then
5668 CXX=$CCC
5669 else
5670 if test -n "$ac_tool_prefix"; then
5671 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5672 do
5673 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5674set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5675{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5677if test "${ac_cv_prog_CXX+set}" = set; then
5678 echo $ECHO_N "(cached) $ECHO_C" >&6
5679else
5680 if test -n "$CXX"; then
5681 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5682else
5683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684for as_dir in $PATH
5685do
5686 IFS=$as_save_IFS
5687 test -z "$as_dir" && as_dir=.
5688 for ac_exec_ext in '' $ac_executable_extensions; do
5689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5690 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5692 break 2
5693 fi
5694done
5695done
5696IFS=$as_save_IFS
5697
5698fi
5699fi
5700CXX=$ac_cv_prog_CXX
5701if test -n "$CXX"; then
5702 { echo "$as_me:$LINENO: result: $CXX" >&5
5703echo "${ECHO_T}$CXX" >&6; }
5704else
5705 { echo "$as_me:$LINENO: result: no" >&5
5706echo "${ECHO_T}no" >&6; }
5707fi
5708
5709
5710 test -n "$CXX" && break
5711 done
5712fi
5713if test -z "$CXX"; then
5714 ac_ct_CXX=$CXX
5715 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5716do
5717 # Extract the first word of "$ac_prog", so it can be a program name with args.
5718set dummy $ac_prog; ac_word=$2
5719{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5721if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5723else
5724 if test -n "$ac_ct_CXX"; then
5725 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5726else
5727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728for as_dir in $PATH
5729do
5730 IFS=$as_save_IFS
5731 test -z "$as_dir" && as_dir=.
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5734 ac_cv_prog_ac_ct_CXX="$ac_prog"
5735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 break 2
5737 fi
5738done
5739done
5740IFS=$as_save_IFS
5741
5742fi
5743fi
5744ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5745if test -n "$ac_ct_CXX"; then
5746 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5747echo "${ECHO_T}$ac_ct_CXX" >&6; }
5748else
5749 { echo "$as_me:$LINENO: result: no" >&5
5750echo "${ECHO_T}no" >&6; }
5751fi
5752
5753
5754 test -n "$ac_ct_CXX" && break
5755done
5756
5757 if test "x$ac_ct_CXX" = x; then
5758 CXX="g++"
5759 else
5760 case $cross_compiling:$ac_tool_warned in
5761yes:)
5762{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5763whose name does not start with the host triplet. If you think this
5764configuration is useful to you, please write to autoconf@gnu.org." >&5
5765echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5766whose name does not start with the host triplet. If you think this
5767configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5768ac_tool_warned=yes ;;
5769esac
5770 CXX=$ac_ct_CXX
5771 fi
5772fi
5773
5774 fi
5775fi
5776# Provide some information about the compiler.
5777echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5778ac_compiler=`set X $ac_compile; echo $2`
5779{ (ac_try="$ac_compiler --version >&5"
5780case "(($ac_try" in
5781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782 *) ac_try_echo=$ac_try;;
5783esac
5784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5785 (eval "$ac_compiler --version >&5") 2>&5
5786 ac_status=$?
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }
5789{ (ac_try="$ac_compiler -v >&5"
5790case "(($ac_try" in
5791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5793esac
5794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795 (eval "$ac_compiler -v >&5") 2>&5
5796 ac_status=$?
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }
5799{ (ac_try="$ac_compiler -V >&5"
5800case "(($ac_try" in
5801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802 *) ac_try_echo=$ac_try;;
5803esac
5804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805 (eval "$ac_compiler -V >&5") 2>&5
5806 ac_status=$?
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }
5809
5810{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5811echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5812if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5814else
5815 cat >conftest.$ac_ext <<_ACEOF
5816/* confdefs.h. */
5817_ACEOF
5818cat confdefs.h >>conftest.$ac_ext
5819cat >>conftest.$ac_ext <<_ACEOF
5820/* end confdefs.h. */
5821
5822int
5823main ()
5824{
5825#ifndef __GNUC__
5826 choke me
5827#endif
5828
5829 ;
5830 return 0;
5831}
5832_ACEOF
5833rm -f conftest.$ac_objext
5834if { (ac_try="$ac_compile"
5835case "(($ac_try" in
5836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5837 *) ac_try_echo=$ac_try;;
5838esac
5839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5840 (eval "$ac_compile") 2>conftest.er1
5841 ac_status=$?
5842 grep -v '^ *+' conftest.er1 >conftest.err
5843 rm -f conftest.er1
5844 cat conftest.err >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); } && {
5847 test -z "$ac_cxx_werror_flag" ||
5848 test ! -s conftest.err
5849 } && test -s conftest.$ac_objext; then
5850 ac_compiler_gnu=yes
5851else
5852 echo "$as_me: failed program was:" >&5
5853sed 's/^/| /' conftest.$ac_ext >&5
5854
5855 ac_compiler_gnu=no
5856fi
5857
5858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5859ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5860
5861fi
5862{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5863echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5864GXX=`test $ac_compiler_gnu = yes && echo yes`
5865ac_test_CXXFLAGS=${CXXFLAGS+set}
5866ac_save_CXXFLAGS=$CXXFLAGS
5867{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5868echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5869if test "${ac_cv_prog_cxx_g+set}" = set; then
5870 echo $ECHO_N "(cached) $ECHO_C" >&6
5871else
5872 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5873 ac_cxx_werror_flag=yes
5874 ac_cv_prog_cxx_g=no
5875 CXXFLAGS="-g"
5876 cat >conftest.$ac_ext <<_ACEOF
5877/* confdefs.h. */
5878_ACEOF
5879cat confdefs.h >>conftest.$ac_ext
5880cat >>conftest.$ac_ext <<_ACEOF
5881/* end confdefs.h. */
5882
5883int
5884main ()
5885{
5886
5887 ;
5888 return 0;
5889}
5890_ACEOF
5891rm -f conftest.$ac_objext
5892if { (ac_try="$ac_compile"
5893case "(($ac_try" in
5894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895 *) ac_try_echo=$ac_try;;
5896esac
5897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898 (eval "$ac_compile") 2>conftest.er1
5899 ac_status=$?
5900 grep -v '^ *+' conftest.er1 >conftest.err
5901 rm -f conftest.er1
5902 cat conftest.err >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } && {
5905 test -z "$ac_cxx_werror_flag" ||
5906 test ! -s conftest.err
5907 } && test -s conftest.$ac_objext; then
5908 ac_cv_prog_cxx_g=yes
5909else
5910 echo "$as_me: failed program was:" >&5
5911sed 's/^/| /' conftest.$ac_ext >&5
5912
5913 CXXFLAGS=""
5914 cat >conftest.$ac_ext <<_ACEOF
5915/* confdefs.h. */
5916_ACEOF
5917cat confdefs.h >>conftest.$ac_ext
5918cat >>conftest.$ac_ext <<_ACEOF
5919/* end confdefs.h. */
5920
5921int
5922main ()
5923{
5924
5925 ;
5926 return 0;
5927}
5928_ACEOF
5929rm -f conftest.$ac_objext
5930if { (ac_try="$ac_compile"
5931case "(($ac_try" in
5932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933 *) ac_try_echo=$ac_try;;
5934esac
5935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5936 (eval "$ac_compile") 2>conftest.er1
5937 ac_status=$?
5938 grep -v '^ *+' conftest.er1 >conftest.err
5939 rm -f conftest.er1
5940 cat conftest.err >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); } && {
5943 test -z "$ac_cxx_werror_flag" ||
5944 test ! -s conftest.err
5945 } && test -s conftest.$ac_objext; then
5946 :
5947else
5948 echo "$as_me: failed program was:" >&5
5949sed 's/^/| /' conftest.$ac_ext >&5
5950
5951 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5952 CXXFLAGS="-g"
5953 cat >conftest.$ac_ext <<_ACEOF
5954/* confdefs.h. */
5955_ACEOF
5956cat confdefs.h >>conftest.$ac_ext
5957cat >>conftest.$ac_ext <<_ACEOF
5958/* end confdefs.h. */
5959
5960int
5961main ()
5962{
5963
5964 ;
5965 return 0;
5966}
5967_ACEOF
5968rm -f conftest.$ac_objext
5969if { (ac_try="$ac_compile"
5970case "(($ac_try" in
5971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5972 *) ac_try_echo=$ac_try;;
5973esac
5974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5975 (eval "$ac_compile") 2>conftest.er1
5976 ac_status=$?
5977 grep -v '^ *+' conftest.er1 >conftest.err
5978 rm -f conftest.er1
5979 cat conftest.err >&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } && {
5982 test -z "$ac_cxx_werror_flag" ||
5983 test ! -s conftest.err
5984 } && test -s conftest.$ac_objext; then
5985 ac_cv_prog_cxx_g=yes
5986else
5987 echo "$as_me: failed program was:" >&5
5988sed 's/^/| /' conftest.$ac_ext >&5
5989
5990
5991fi
5992
5993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5994fi
5995
5996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5997fi
5998
5999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6000 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6001fi
6002{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6003echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6004if test "$ac_test_CXXFLAGS" = set; then
6005 CXXFLAGS=$ac_save_CXXFLAGS
6006elif test $ac_cv_prog_cxx_g = yes; then
6007 if test "$GXX" = yes; then
6008 CXXFLAGS="-g -O2"
6009 else
6010 CXXFLAGS="-g"
6011 fi
6012else
6013 if test "$GXX" = yes; then
6014 CXXFLAGS="-O2"
6015 else
6016 CXXFLAGS=
6017 fi
6018fi
6019ac_ext=cpp
6020ac_cpp='$CXXCPP $CPPFLAGS'
6021ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6022ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6023ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6024
6025depcc="$CXX" am_compiler_list=
6026
6027{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6028echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6029if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6031else
6032 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6033 # We make a subdir and do the tests there. Otherwise we can end up
6034 # making bogus files that we don't know about and never remove. For
6035 # instance it was reported that on HP-UX the gcc test will end up
6036 # making a dummy file named `D' -- because `-MD' means `put the output
6037 # in D'.
6038 mkdir conftest.dir
6039 # Copy depcomp to subdir because otherwise we won't find it if we're
6040 # using a relative directory.
6041 cp "$am_depcomp" conftest.dir
6042 cd conftest.dir
6043 # We will build objects and dependencies in a subdirectory because
6044 # it helps to detect inapplicable dependency modes. For instance
6045 # both Tru64's cc and ICC support -MD to output dependencies as a
6046 # side effect of compilation, but ICC will put the dependencies in
6047 # the current directory while Tru64 will put them in the object
6048 # directory.
6049 mkdir sub
6050
6051 am_cv_CXX_dependencies_compiler_type=none
6052 if test "$am_compiler_list" = ""; then
6053 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6054 fi
6055 for depmode in $am_compiler_list; do
6056 # Setup a source with many dependencies, because some compilers
6057 # like to wrap large dependency lists on column 80 (with \), and
6058 # we should not choose a depcomp mode which is confused by this.
6059 #
6060 # We need to recreate these files for each test, as the compiler may
6061 # overwrite some of them when testing with obscure command lines.
6062 # This happens at least with the AIX C compiler.
6063 : > sub/conftest.c
6064 for i in 1 2 3 4 5 6; do
6065 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6066 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6067 # Solaris 8's {/usr,}/bin/sh.
6068 touch sub/conftst$i.h
6069 done
6070 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6071
6072 case $depmode in
6073 nosideeffect)
6074 # after this tag, mechanisms are not by side-effect, so they'll
6075 # only be used when explicitly requested
6076 if test "x$enable_dependency_tracking" = xyes; then
6077 continue
6078 else
6079 break
6080 fi
6081 ;;
6082 none) break ;;
6083 esac
6084 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6085 # mode. It turns out that the SunPro C++ compiler does not properly
6086 # handle `-M -o', and we need to detect this.
6087 if depmode=$depmode \
6088 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6089 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6090 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6091 >/dev/null 2>conftest.err &&
6092 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6093 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6094 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6095 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6096 # icc doesn't choke on unknown options, it will just issue warnings
6097 # or remarks (even with -Werror). So we grep stderr for any message
6098 # that says an option was ignored or not supported.
6099 # When given -MP, icc 7.0 and 7.1 complain thusly:
6100 # icc: Command line warning: ignoring option '-M'; no argument required
6101 # The diagnosis changed in icc 8.0:
6102 # icc: Command line remark: option '-MP' not supported
6103 if (grep 'ignoring option' conftest.err ||
6104 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6105 am_cv_CXX_dependencies_compiler_type=$depmode
6106 break
6107 fi
6108 fi
6109 done
6110
6111 cd ..
6112 rm -rf conftest.dir
6113else
6114 am_cv_CXX_dependencies_compiler_type=none
6115fi
6116
6117fi
6118{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6119echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6120CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6121
6122 if
6123 test "x$enable_dependency_tracking" != xno \
6124 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6125 am__fastdepCXX_TRUE=
6126 am__fastdepCXX_FALSE='#'
6127else
6128 am__fastdepCXX_TRUE='#'
6129 am__fastdepCXX_FALSE=
6130fi
6131
6132
6133ac_ext=cpp
6134ac_cpp='$CXXCPP $CPPFLAGS'
6135ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6136ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6137ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6138{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6139echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6140if test -z "$CXXCPP"; then
6141 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
6143else
6144 # Double quotes because CXXCPP needs to be expanded
6145 for CXXCPP in "$CXX -E" "/lib/cpp"
6146 do
6147 ac_preproc_ok=false
6148for ac_cxx_preproc_warn_flag in '' yes
6149do
6150 # Use a header file that comes with gcc, so configuring glibc
6151 # with a fresh cross-compiler works.
6152 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6153 # <limits.h> exists even on freestanding compilers.
6154 # On the NeXT, cc -E runs the code through the compiler's parser,
6155 # not just through cpp. "Syntax error" is here to catch this case.
6156 cat >conftest.$ac_ext <<_ACEOF
6157/* confdefs.h. */
6158_ACEOF
6159cat confdefs.h >>conftest.$ac_ext
6160cat >>conftest.$ac_ext <<_ACEOF
6161/* end confdefs.h. */
6162#ifdef __STDC__
6163# include <limits.h>
6164#else
6165# include <assert.h>
6166#endif
6167 Syntax error
6168_ACEOF
6169if { (ac_try="$ac_cpp conftest.$ac_ext"
6170case "(($ac_try" in
6171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172 *) ac_try_echo=$ac_try;;
6173esac
6174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6176 ac_status=$?
6177 grep -v '^ *+' conftest.er1 >conftest.err
6178 rm -f conftest.er1
6179 cat conftest.err >&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); } >/dev/null && {
6182 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6183 test ! -s conftest.err
6184 }; then
6185 :
6186else
6187 echo "$as_me: failed program was:" >&5
6188sed 's/^/| /' conftest.$ac_ext >&5
6189
6190 # Broken: fails on valid input.
6191continue
6192fi
6193
6194rm -f conftest.err conftest.$ac_ext
6195
6196 # OK, works on sane cases. Now check whether nonexistent headers
6197 # can be detected and how.
6198 cat >conftest.$ac_ext <<_ACEOF
6199/* confdefs.h. */
6200_ACEOF
6201cat confdefs.h >>conftest.$ac_ext
6202cat >>conftest.$ac_ext <<_ACEOF
6203/* end confdefs.h. */
6204#include <ac_nonexistent.h>
6205_ACEOF
6206if { (ac_try="$ac_cpp conftest.$ac_ext"
6207case "(($ac_try" in
6208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6209 *) ac_try_echo=$ac_try;;
6210esac
6211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6213 ac_status=$?
6214 grep -v '^ *+' conftest.er1 >conftest.err
6215 rm -f conftest.er1
6216 cat conftest.err >&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } >/dev/null && {
6219 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6220 test ! -s conftest.err
6221 }; then
6222 # Broken: success on invalid input.
6223continue
6224else
6225 echo "$as_me: failed program was:" >&5
6226sed 's/^/| /' conftest.$ac_ext >&5
6227
6228 # Passes both tests.
6229ac_preproc_ok=:
6230break
6231fi
6232
6233rm -f conftest.err conftest.$ac_ext
6234
6235done
6236# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6237rm -f conftest.err conftest.$ac_ext
6238if $ac_preproc_ok; then
6239 break
6240fi
6241
6242 done
6243 ac_cv_prog_CXXCPP=$CXXCPP
6244
6245fi
6246 CXXCPP=$ac_cv_prog_CXXCPP
6247else
6248 ac_cv_prog_CXXCPP=$CXXCPP
6249fi
6250{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6251echo "${ECHO_T}$CXXCPP" >&6; }
6252ac_preproc_ok=false
6253for ac_cxx_preproc_warn_flag in '' yes
6254do
6255 # Use a header file that comes with gcc, so configuring glibc
6256 # with a fresh cross-compiler works.
6257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6258 # <limits.h> exists even on freestanding compilers.
6259 # On the NeXT, cc -E runs the code through the compiler's parser,
6260 # not just through cpp. "Syntax error" is here to catch this case.
6261 cat >conftest.$ac_ext <<_ACEOF
6262/* confdefs.h. */
6263_ACEOF
6264cat confdefs.h >>conftest.$ac_ext
6265cat >>conftest.$ac_ext <<_ACEOF
6266/* end confdefs.h. */
6267#ifdef __STDC__
6268# include <limits.h>
6269#else
6270# include <assert.h>
6271#endif
6272 Syntax error
6273_ACEOF
6274if { (ac_try="$ac_cpp conftest.$ac_ext"
6275case "(($ac_try" in
6276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6277 *) ac_try_echo=$ac_try;;
6278esac
6279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6281 ac_status=$?
6282 grep -v '^ *+' conftest.er1 >conftest.err
6283 rm -f conftest.er1
6284 cat conftest.err >&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); } >/dev/null && {
6287 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6288 test ! -s conftest.err
6289 }; then
6290 :
6291else
6292 echo "$as_me: failed program was:" >&5
6293sed 's/^/| /' conftest.$ac_ext >&5
6294
6295 # Broken: fails on valid input.
6296continue
6297fi
6298
6299rm -f conftest.err conftest.$ac_ext
6300
6301 # OK, works on sane cases. Now check whether nonexistent headers
6302 # can be detected and how.
6303 cat >conftest.$ac_ext <<_ACEOF
6304/* confdefs.h. */
6305_ACEOF
6306cat confdefs.h >>conftest.$ac_ext
6307cat >>conftest.$ac_ext <<_ACEOF
6308/* end confdefs.h. */
6309#include <ac_nonexistent.h>
6310_ACEOF
6311if { (ac_try="$ac_cpp conftest.$ac_ext"
6312case "(($ac_try" in
6313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6314 *) ac_try_echo=$ac_try;;
6315esac
6316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6318 ac_status=$?
6319 grep -v '^ *+' conftest.er1 >conftest.err
6320 rm -f conftest.er1
6321 cat conftest.err >&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } >/dev/null && {
6324 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6325 test ! -s conftest.err
6326 }; then
6327 # Broken: success on invalid input.
6328continue
6329else
6330 echo "$as_me: failed program was:" >&5
6331sed 's/^/| /' conftest.$ac_ext >&5
6332
6333 # Passes both tests.
6334ac_preproc_ok=:
6335break
6336fi
6337
6338rm -f conftest.err conftest.$ac_ext
6339
6340done
6341# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6342rm -f conftest.err conftest.$ac_ext
6343if $ac_preproc_ok; then
6344 :
6345else
6346 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6347See \`config.log' for more details." >&5
6348echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6349See \`config.log' for more details." >&2;}
6350 { (exit 1); exit 1; }; }
6351fi
6352
6353ac_ext=cpp
6354ac_cpp='$CXXCPP $CPPFLAGS'
6355ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6356ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6357ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6358
6359
6360ac_ext=f
6361ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6362ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6363ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6364if test -n "$ac_tool_prefix"; then
6365 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6366 do
6367 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6368set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6369{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6371if test "${ac_cv_prog_F77+set}" = set; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6373else
6374 if test -n "$F77"; then
6375 ac_cv_prog_F77="$F77" # Let the user override the test.
6376else
6377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378for as_dir in $PATH
6379do
6380 IFS=$as_save_IFS
6381 test -z "$as_dir" && as_dir=.
6382 for ac_exec_ext in '' $ac_executable_extensions; do
6383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6384 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6386 break 2
6387 fi
6388done
6389done
6390IFS=$as_save_IFS
6391
6392fi
6393fi
6394F77=$ac_cv_prog_F77
6395if test -n "$F77"; then
6396 { echo "$as_me:$LINENO: result: $F77" >&5
6397echo "${ECHO_T}$F77" >&6; }
6398else
6399 { echo "$as_me:$LINENO: result: no" >&5
6400echo "${ECHO_T}no" >&6; }
6401fi
6402
6403
6404 test -n "$F77" && break
6405 done
6406fi
6407if test -z "$F77"; then
6408 ac_ct_F77=$F77
6409 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6410do
6411 # Extract the first word of "$ac_prog", so it can be a program name with args.
6412set dummy $ac_prog; ac_word=$2
6413{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6415if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6416 echo $ECHO_N "(cached) $ECHO_C" >&6
6417else
6418 if test -n "$ac_ct_F77"; then
6419 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6420else
6421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422for as_dir in $PATH
6423do
6424 IFS=$as_save_IFS
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6428 ac_cv_prog_ac_ct_F77="$ac_prog"
6429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 break 2
6431 fi
6432done
6433done
6434IFS=$as_save_IFS
6435
6436fi
6437fi
6438ac_ct_F77=$ac_cv_prog_ac_ct_F77
6439if test -n "$ac_ct_F77"; then
6440 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6441echo "${ECHO_T}$ac_ct_F77" >&6; }
6442else
6443 { echo "$as_me:$LINENO: result: no" >&5
6444echo "${ECHO_T}no" >&6; }
6445fi
6446
6447
6448 test -n "$ac_ct_F77" && break
6449done
6450
6451 if test "x$ac_ct_F77" = x; then
6452 F77=""
6453 else
6454 case $cross_compiling:$ac_tool_warned in
6455yes:)
6456{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6457whose name does not start with the host triplet. If you think this
6458configuration is useful to you, please write to autoconf@gnu.org." >&5
6459echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6460whose name does not start with the host triplet. If you think this
6461configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6462ac_tool_warned=yes ;;
6463esac
6464 F77=$ac_ct_F77
6465 fi
6466fi
6467
6468
6469# Provide some information about the compiler.
6470echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6471ac_compiler=`set X $ac_compile; echo $2`
6472{ (ac_try="$ac_compiler --version >&5"
6473case "(($ac_try" in
6474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6475 *) ac_try_echo=$ac_try;;
6476esac
6477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6478 (eval "$ac_compiler --version >&5") 2>&5
6479 ac_status=$?
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }
6482{ (ac_try="$ac_compiler -v >&5"
6483case "(($ac_try" in
6484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6485 *) ac_try_echo=$ac_try;;
6486esac
6487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6488 (eval "$ac_compiler -v >&5") 2>&5
6489 ac_status=$?
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); }
6492{ (ac_try="$ac_compiler -V >&5"
6493case "(($ac_try" in
6494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6495 *) ac_try_echo=$ac_try;;
6496esac
6497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6498 (eval "$ac_compiler -V >&5") 2>&5
6499 ac_status=$?
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); }
6502rm -f a.out
6503
6504# If we don't use `.F' as extension, the preprocessor is not run on the
6505# input file. (Note that this only needs to work for GNU compilers.)
6506ac_save_ext=$ac_ext
6507ac_ext=F
6508{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6509echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6510if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6512else
6513 cat >conftest.$ac_ext <<_ACEOF
6514 program main
6515#ifndef __GNUC__
6516 choke me
6517#endif
6518
6519 end
6520_ACEOF
6521rm -f conftest.$ac_objext
6522if { (ac_try="$ac_compile"
6523case "(($ac_try" in
6524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6525 *) ac_try_echo=$ac_try;;
6526esac
6527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6528 (eval "$ac_compile") 2>conftest.er1
6529 ac_status=$?
6530 grep -v '^ *+' conftest.er1 >conftest.err
6531 rm -f conftest.er1
6532 cat conftest.err >&5
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); } && {
6535 test -z "$ac_f77_werror_flag" ||
6536 test ! -s conftest.err
6537 } && test -s conftest.$ac_objext; then
6538 ac_compiler_gnu=yes
6539else
6540 echo "$as_me: failed program was:" >&5
6541sed 's/^/| /' conftest.$ac_ext >&5
6542
6543 ac_compiler_gnu=no
6544fi
6545
6546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6547ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6548
6549fi
6550{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6551echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6552ac_ext=$ac_save_ext
6553ac_test_FFLAGS=${FFLAGS+set}
6554ac_save_FFLAGS=$FFLAGS
6555FFLAGS=
6556{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6557echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6558if test "${ac_cv_prog_f77_g+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6560else
6561 FFLAGS=-g
6562cat >conftest.$ac_ext <<_ACEOF
6563 program main
6564
6565 end
6566_ACEOF
6567rm -f conftest.$ac_objext
6568if { (ac_try="$ac_compile"
6569case "(($ac_try" in
6570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6571 *) ac_try_echo=$ac_try;;
6572esac
6573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6574 (eval "$ac_compile") 2>conftest.er1
6575 ac_status=$?
6576 grep -v '^ *+' conftest.er1 >conftest.err
6577 rm -f conftest.er1
6578 cat conftest.err >&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); } && {
6581 test -z "$ac_f77_werror_flag" ||
6582 test ! -s conftest.err
6583 } && test -s conftest.$ac_objext; then
6584 ac_cv_prog_f77_g=yes
6585else
6586 echo "$as_me: failed program was:" >&5
6587sed 's/^/| /' conftest.$ac_ext >&5
6588
6589 ac_cv_prog_f77_g=no
6590fi
6591
6592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6593
6594fi
6595{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6596echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6597if test "$ac_test_FFLAGS" = set; then
6598 FFLAGS=$ac_save_FFLAGS
6599elif test $ac_cv_prog_f77_g = yes; then
6600 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6601 FFLAGS="-g -O2"
6602 else
6603 FFLAGS="-g"
6604 fi
6605else
6606 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6607 FFLAGS="-O2"
6608 else
6609 FFLAGS=
6610 fi
6611fi
6612
6613G77=`test $ac_compiler_gnu = yes && echo yes`
6614ac_ext=c
6615ac_cpp='$CPP $CPPFLAGS'
6616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6618ac_compiler_gnu=$ac_cv_c_compiler_gnu
6619
6620
6621
6622# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6623
6624# find the maximum length of command line arguments
6625{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6626echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6627if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6629else
6630 i=0
6631 teststring="ABCD"
6632
6633 case $build_os in
6634 msdosdjgpp*)
6635 # On DJGPP, this test can blow up pretty badly due to problems in libc
6636 # (any single argument exceeding 2000 bytes causes a buffer overrun
6637 # during glob expansion). Even if it were fixed, the result of this
6638 # check would be larger than it should be.
6639 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6640 ;;
6641
6642 gnu*)
6643 # Under GNU Hurd, this test is not required because there is
6644 # no limit to the length of command line arguments.
6645 # Libtool will interpret -1 as no limit whatsoever
6646 lt_cv_sys_max_cmd_len=-1;
6647 ;;
6648
6649 cygwin* | mingw*)
6650 # On Win9x/ME, this test blows up -- it succeeds, but takes
6651 # about 5 minutes as the teststring grows exponentially.
6652 # Worse, since 9x/ME are not pre-emptively multitasking,
6653 # you end up with a "frozen" computer, even though with patience
6654 # the test eventually succeeds (with a max line length of 256k).
6655 # Instead, let's just punt: use the minimum linelength reported by
6656 # all of the supported platforms: 8192 (on NT/2K/XP).
6657 lt_cv_sys_max_cmd_len=8192;
6658 ;;
6659
6660 amigaos*)
6661 # On AmigaOS with pdksh, this test takes hours, literally.
6662 # So we just punt and use a minimum line length of 8192.
6663 lt_cv_sys_max_cmd_len=8192;
6664 ;;
6665
6666 *)
6667 # If test is not a shell built-in, we'll probably end up computing a
6668 # maximum length that is only half of the actual maximum length, but
6669 # we can't tell.
6670 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6671 = "XX$teststring") >/dev/null 2>&1 &&
6672 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6673 lt_cv_sys_max_cmd_len=$new_result &&
6674 test $i != 17 # 1/2 MB should be enough
6675 do
6676 i=`expr $i + 1`
6677 teststring=$teststring$teststring
6678 done
6679 teststring=
6680 # Add a significant safety factor because C++ compilers can tack on massive
6681 # amounts of additional arguments before passing them to the linker.
6682 # It appears as though 1/2 is a usable value.
6683 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6684 ;;
6685 esac
6686
6687fi
6688
6689if test -n $lt_cv_sys_max_cmd_len ; then
6690 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6691echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6692else
6693 { echo "$as_me:$LINENO: result: none" >&5
6694echo "${ECHO_T}none" >&6; }
6695fi
6696
6697
6698
6699
6700# Check for command to grab the raw symbol name followed by C symbol from nm.
6701{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6702echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6703if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6704 echo $ECHO_N "(cached) $ECHO_C" >&6
6705else
6706
6707# These are sane defaults that work on at least a few old systems.
6708# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6709
6710# Character class describing NM global symbol codes.
6711symcode='[BCDEGRST]'
6712
6713# Regexp to match symbols that can be accessed directly from C.
6714sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6715
6716# Transform the above into a raw symbol and a C symbol.
6717symxfrm='\1 \2\3 \3'
6718
6719# Transform an extracted symbol line into a proper C declaration
6720lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6721
6722# Transform an extracted symbol line into symbol name and symbol address
6723lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6724
6725# Define system-specific variables.
6726case $host_os in
6727aix*)
6728 symcode='[BCDT]'
6729 ;;
6730cygwin* | mingw* | pw32*)
6731 symcode='[ABCDGISTW]'
6732 ;;
6733hpux*) # Its linker distinguishes data from code symbols
6734 if test "$host_cpu" = ia64; then
6735 symcode='[ABCDEGRST]'
6736 fi
6737 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6738 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6739 ;;
6740irix* | nonstopux*)
6741 symcode='[BCDEGRST]'
6742 ;;
6743osf*)
6744 symcode='[BCDEGQRST]'
6745 ;;
6746solaris* | sysv5*)
6747 symcode='[BDRT]'
6748 ;;
6749sysv4)
6750 symcode='[DFNSTU]'
6751 ;;
6752esac
6753
6754# Handle CRLF in mingw tool chain
6755opt_cr=
6756case $build_os in
6757mingw*)
6758 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6759 ;;
6760esac
6761
6762# If we're using GNU nm, then use its standard symbol codes.
6763case `$NM -V 2>&1` in
6764*GNU* | *'with BFD'*)
6765 symcode='[ABCDGIRSTW]' ;;
6766esac
6767
6768# Try without a prefix undercore, then with it.
6769for ac_symprfx in "" "_"; do
6770
6771 # Write the raw and C identifiers.
6772 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6773
6774 # Check to see that the pipe works correctly.
6775 pipe_works=no
6776
6777 rm -f conftest*
6778 cat > conftest.$ac_ext <<EOF
6779#ifdef __cplusplus
6780extern "C" {
6781#endif
6782char nm_test_var;
6783void nm_test_func(){}
6784#ifdef __cplusplus
6785}
6786#endif
6787int main(){nm_test_var='a';nm_test_func();return(0);}
6788EOF
6789
6790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6791 (eval $ac_compile) 2>&5
6792 ac_status=$?
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); }; then
6795 # Now try to grab the symbols.
6796 nlist=conftest.nm
6797 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6798 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6799 ac_status=$?
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); } && test -s "$nlist"; then
6802 # Try sorting and uniquifying the output.
6803 if sort "$nlist" | uniq > "$nlist"T; then
6804 mv -f "$nlist"T "$nlist"
6805 else
6806 rm -f "$nlist"T
6807 fi
6808
6809 # Make sure that we snagged all the symbols we need.
6810 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6811 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6812 cat <<EOF > conftest.$ac_ext
6813#ifdef __cplusplus
6814extern "C" {
6815#endif
6816
6817EOF
6818 # Now generate the symbol file.
6819 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6820
6821 cat <<EOF >> conftest.$ac_ext
6822#if defined (__STDC__) && __STDC__
6823# define lt_ptr_t void *
6824#else
6825# define lt_ptr_t char *
6826# define const
6827#endif
6828
6829/* The mapping between symbol names and symbols. */
6830const struct {
6831 const char *name;
6832 lt_ptr_t address;
6833}
6834lt_preloaded_symbols[] =
6835{
6836EOF
6837 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6838 cat <<\EOF >> conftest.$ac_ext
6839 {0, (lt_ptr_t) 0}
6840};
6841
6842#ifdef __cplusplus
6843}
6844#endif
6845EOF
6846 # Now try linking the two files.
6847 mv conftest.$ac_objext conftstm.$ac_objext
6848 lt_save_LIBS="$LIBS"
6849 lt_save_CFLAGS="$CFLAGS"
6850 LIBS="conftstm.$ac_objext"
6851 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6853 (eval $ac_link) 2>&5
6854 ac_status=$?
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6857 pipe_works=yes
6858 fi
6859 LIBS="$lt_save_LIBS"
6860 CFLAGS="$lt_save_CFLAGS"
6861 else
6862 echo "cannot find nm_test_func in $nlist" >&5
6863 fi
6864 else
6865 echo "cannot find nm_test_var in $nlist" >&5
6866 fi
6867 else
6868 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6869 fi
6870 else
6871 echo "$progname: failed program was:" >&5
6872 cat conftest.$ac_ext >&5
6873 fi
6874 rm -f conftest* conftst*
6875
6876 # Do not use the global_symbol_pipe unless it works.
6877 if test "$pipe_works" = yes; then
6878 break
6879 else
6880 lt_cv_sys_global_symbol_pipe=
6881 fi
6882done
6883
6884fi
6885
6886if test -z "$lt_cv_sys_global_symbol_pipe"; then
6887 lt_cv_sys_global_symbol_to_cdecl=
6888fi
6889if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6890 { echo "$as_me:$LINENO: result: failed" >&5
6891echo "${ECHO_T}failed" >&6; }
6892else
6893 { echo "$as_me:$LINENO: result: ok" >&5
6894echo "${ECHO_T}ok" >&6; }
6895fi
6896
6897{ echo "$as_me:$LINENO: checking for objdir" >&5
6898echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6899if test "${lt_cv_objdir+set}" = set; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6901else
6902 rm -f .libs 2>/dev/null
6903mkdir .libs 2>/dev/null
6904if test -d .libs; then
6905 lt_cv_objdir=.libs
6906else
6907 # MS-DOS does not allow filenames that begin with a dot.
6908 lt_cv_objdir=_libs
6909fi
6910rmdir .libs 2>/dev/null
6911fi
6912{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6913echo "${ECHO_T}$lt_cv_objdir" >&6; }
6914objdir=$lt_cv_objdir
6915
6916
6917
6918
6919
6920case $host_os in
6921aix3*)
6922 # AIX sometimes has problems with the GCC collect2 program. For some
6923 # reason, if we set the COLLECT_NAMES environment variable, the problems
6924 # vanish in a puff of smoke.
6925 if test "X${COLLECT_NAMES+set}" != Xset; then
6926 COLLECT_NAMES=
6927 export COLLECT_NAMES
6928 fi
6929 ;;
6930esac
6931
6932# Sed substitution that helps us do robust quoting. It backslashifies
6933# metacharacters that are still active within double-quoted strings.
6934Xsed='sed -e s/^X//'
6935sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6936
6937# Same as above, but do not quote variable references.
6938double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6939
6940# Sed substitution to delay expansion of an escaped shell variable in a
6941# double_quote_subst'ed string.
6942delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6943
6944# Sed substitution to avoid accidental globbing in evaled expressions
6945no_glob_subst='s/\*/\\\*/g'
6946
6947# Constants:
6948rm="rm -f"
6949
6950# Global variables:
6951default_ofile=libtool
6952can_build_shared=yes
6953
6954# All known linkers require a `.a' archive for static linking (except M$VC,
6955# which needs '.lib').
6956libext=a
6957ltmain="$ac_aux_dir/ltmain.sh"
6958ofile="$default_ofile"
6959with_gnu_ld="$lt_cv_prog_gnu_ld"
6960
6961if test -n "$ac_tool_prefix"; then
6962 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6963set dummy ${ac_tool_prefix}ar; ac_word=$2
6964{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6966if test "${ac_cv_prog_AR+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6968else
6969 if test -n "$AR"; then
6970 ac_cv_prog_AR="$AR" # Let the user override the test.
6971else
6972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973for as_dir in $PATH
6974do
6975 IFS=$as_save_IFS
6976 test -z "$as_dir" && as_dir=.
6977 for ac_exec_ext in '' $ac_executable_extensions; do
6978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6979 ac_cv_prog_AR="${ac_tool_prefix}ar"
6980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6981 break 2
6982 fi
6983done
6984done
6985IFS=$as_save_IFS
6986
6987fi
6988fi
6989AR=$ac_cv_prog_AR
6990if test -n "$AR"; then
6991 { echo "$as_me:$LINENO: result: $AR" >&5
6992echo "${ECHO_T}$AR" >&6; }
6993else
6994 { echo "$as_me:$LINENO: result: no" >&5
6995echo "${ECHO_T}no" >&6; }
6996fi
6997
6998
6999fi
7000if test -z "$ac_cv_prog_AR"; then
7001 ac_ct_AR=$AR
7002 # Extract the first word of "ar", so it can be a program name with args.
7003set dummy ar; ac_word=$2
7004{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7006if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7007 echo $ECHO_N "(cached) $ECHO_C" >&6
7008else
7009 if test -n "$ac_ct_AR"; then
7010 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7011else
7012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013for as_dir in $PATH
7014do
7015 IFS=$as_save_IFS
7016 test -z "$as_dir" && as_dir=.
7017 for ac_exec_ext in '' $ac_executable_extensions; do
7018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7019 ac_cv_prog_ac_ct_AR="ar"
7020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7021 break 2
7022 fi
7023done
7024done
7025IFS=$as_save_IFS
7026
7027fi
7028fi
7029ac_ct_AR=$ac_cv_prog_ac_ct_AR
7030if test -n "$ac_ct_AR"; then
7031 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7032echo "${ECHO_T}$ac_ct_AR" >&6; }
7033else
7034 { echo "$as_me:$LINENO: result: no" >&5
7035echo "${ECHO_T}no" >&6; }
7036fi
7037
7038 if test "x$ac_ct_AR" = x; then
7039 AR="false"
7040 else
7041 case $cross_compiling:$ac_tool_warned in
7042yes:)
7043{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7044whose name does not start with the host triplet. If you think this
7045configuration is useful to you, please write to autoconf@gnu.org." >&5
7046echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7047whose name does not start with the host triplet. If you think this
7048configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7049ac_tool_warned=yes ;;
7050esac
7051 AR=$ac_ct_AR
7052 fi
7053else
7054 AR="$ac_cv_prog_AR"
7055fi
7056
7057if test -n "$ac_tool_prefix"; then
7058 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7059set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7060{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7062if test "${ac_cv_prog_RANLIB+set}" = set; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7064else
7065 if test -n "$RANLIB"; then
7066 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7067else
7068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069for as_dir in $PATH
7070do
7071 IFS=$as_save_IFS
7072 test -z "$as_dir" && as_dir=.
7073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7075 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7077 break 2
7078 fi
7079done
7080done
7081IFS=$as_save_IFS
7082
7083fi
7084fi
7085RANLIB=$ac_cv_prog_RANLIB
7086if test -n "$RANLIB"; then
7087 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7088echo "${ECHO_T}$RANLIB" >&6; }
7089else
7090 { echo "$as_me:$LINENO: result: no" >&5
7091echo "${ECHO_T}no" >&6; }
7092fi
7093
7094
7095fi
7096if test -z "$ac_cv_prog_RANLIB"; then
7097 ac_ct_RANLIB=$RANLIB
7098 # Extract the first word of "ranlib", so it can be a program name with args.
7099set dummy ranlib; ac_word=$2
7100{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7102if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7104else
7105 if test -n "$ac_ct_RANLIB"; then
7106 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7107else
7108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109for as_dir in $PATH
7110do
7111 IFS=$as_save_IFS
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7115 ac_cv_prog_ac_ct_RANLIB="ranlib"
7116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 break 2
7118 fi
7119done
7120done
7121IFS=$as_save_IFS
7122
7123fi
7124fi
7125ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7126if test -n "$ac_ct_RANLIB"; then
7127 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7128echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7129else
7130 { echo "$as_me:$LINENO: result: no" >&5
7131echo "${ECHO_T}no" >&6; }
7132fi
7133
7134 if test "x$ac_ct_RANLIB" = x; then
7135 RANLIB=":"
7136 else
7137 case $cross_compiling:$ac_tool_warned in
7138yes:)
7139{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7140whose name does not start with the host triplet. If you think this
7141configuration is useful to you, please write to autoconf@gnu.org." >&5
7142echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7143whose name does not start with the host triplet. If you think this
7144configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7145ac_tool_warned=yes ;;
7146esac
7147 RANLIB=$ac_ct_RANLIB
7148 fi
7149else
7150 RANLIB="$ac_cv_prog_RANLIB"
7151fi
7152
7153if test -n "$ac_tool_prefix"; then
7154 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7155set dummy ${ac_tool_prefix}strip; ac_word=$2
7156{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7158if test "${ac_cv_prog_STRIP+set}" = set; then
7159 echo $ECHO_N "(cached) $ECHO_C" >&6
7160else
7161 if test -n "$STRIP"; then
7162 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7163else
7164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165for as_dir in $PATH
7166do
7167 IFS=$as_save_IFS
7168 test -z "$as_dir" && as_dir=.
7169 for ac_exec_ext in '' $ac_executable_extensions; do
7170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7171 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7173 break 2
7174 fi
7175done
7176done
7177IFS=$as_save_IFS
7178
7179fi
7180fi
7181STRIP=$ac_cv_prog_STRIP
7182if test -n "$STRIP"; then
7183 { echo "$as_me:$LINENO: result: $STRIP" >&5
7184echo "${ECHO_T}$STRIP" >&6; }
7185else
7186 { echo "$as_me:$LINENO: result: no" >&5
7187echo "${ECHO_T}no" >&6; }
7188fi
7189
7190
7191fi
7192if test -z "$ac_cv_prog_STRIP"; then
7193 ac_ct_STRIP=$STRIP
7194 # Extract the first word of "strip", so it can be a program name with args.
7195set dummy strip; ac_word=$2
7196{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7198if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7199 echo $ECHO_N "(cached) $ECHO_C" >&6
7200else
7201 if test -n "$ac_ct_STRIP"; then
7202 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7203else
7204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205for as_dir in $PATH
7206do
7207 IFS=$as_save_IFS
7208 test -z "$as_dir" && as_dir=.
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7211 ac_cv_prog_ac_ct_STRIP="strip"
7212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7213 break 2
7214 fi
7215done
7216done
7217IFS=$as_save_IFS
7218
7219fi
7220fi
7221ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7222if test -n "$ac_ct_STRIP"; then
7223 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7224echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7225else
7226 { echo "$as_me:$LINENO: result: no" >&5
7227echo "${ECHO_T}no" >&6; }
7228fi
7229
7230 if test "x$ac_ct_STRIP" = x; then
7231 STRIP=":"
7232 else
7233 case $cross_compiling:$ac_tool_warned in
7234yes:)
7235{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7236whose name does not start with the host triplet. If you think this
7237configuration is useful to you, please write to autoconf@gnu.org." >&5
7238echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7239whose name does not start with the host triplet. If you think this
7240configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7241ac_tool_warned=yes ;;
7242esac
7243 STRIP=$ac_ct_STRIP
7244 fi
7245else
7246 STRIP="$ac_cv_prog_STRIP"
7247fi
7248
7249
7250old_CC="$CC"
7251old_CFLAGS="$CFLAGS"
7252
7253# Set sane defaults for various variables
7254test -z "$AR" && AR=ar
7255test -z "$AR_FLAGS" && AR_FLAGS=cru
7256test -z "$AS" && AS=as
7257test -z "$CC" && CC=cc
7258test -z "$LTCC" && LTCC=$CC
7259test -z "$DLLTOOL" && DLLTOOL=dlltool
7260test -z "$LD" && LD=ld
7261test -z "$LN_S" && LN_S="ln -s"
7262test -z "$MAGIC_CMD" && MAGIC_CMD=file
7263test -z "$NM" && NM=nm
7264test -z "$SED" && SED=sed
7265test -z "$OBJDUMP" && OBJDUMP=objdump
7266test -z "$RANLIB" && RANLIB=:
7267test -z "$STRIP" && STRIP=:
7268test -z "$ac_objext" && ac_objext=o
7269
7270# Determine commands to create old-style static archives.
7271old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7272old_postinstall_cmds='chmod 644 $oldlib'
7273old_postuninstall_cmds=
7274
7275if test -n "$RANLIB"; then
7276 case $host_os in
7277 openbsd*)
7278 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7279 ;;
7280 *)
7281 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7282 ;;
7283 esac
7284 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7285fi
7286
7287# Only perform the check for file, if the check method requires it
7288case $deplibs_check_method in
7289file_magic*)
7290 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7291 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7292echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7293if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7295else
7296 case $MAGIC_CMD in
7297[\\/*] | ?:[\\/]*)
7298 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7299 ;;
7300*)
7301 lt_save_MAGIC_CMD="$MAGIC_CMD"
7302 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7303 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7304 for ac_dir in $ac_dummy; do
7305 IFS="$lt_save_ifs"
7306 test -z "$ac_dir" && ac_dir=.
7307 if test -f $ac_dir/${ac_tool_prefix}file; then
7308 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7309 if test -n "$file_magic_test_file"; then
7310 case $deplibs_check_method in
7311 "file_magic "*)
7312 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7313 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7314 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7315 $EGREP "$file_magic_regex" > /dev/null; then
7316 :
7317 else
7318 cat <<EOF 1>&2
7319
7320*** Warning: the command libtool uses to detect shared libraries,
7321*** $file_magic_cmd, produces output that libtool cannot recognize.
7322*** The result is that libtool may fail to recognize shared libraries
7323*** as such. This will affect the creation of libtool libraries that
7324*** depend on shared libraries, but programs linked with such libtool
7325*** libraries will work regardless of this problem. Nevertheless, you
7326*** may want to report the problem to your system manager and/or to
7327*** bug-libtool@gnu.org
7328
7329EOF
7330 fi ;;
7331 esac
7332 fi
7333 break
7334 fi
7335 done
7336 IFS="$lt_save_ifs"
7337 MAGIC_CMD="$lt_save_MAGIC_CMD"
7338 ;;
7339esac
7340fi
7341
7342MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7343if test -n "$MAGIC_CMD"; then
7344 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7345echo "${ECHO_T}$MAGIC_CMD" >&6; }
7346else
7347 { echo "$as_me:$LINENO: result: no" >&5
7348echo "${ECHO_T}no" >&6; }
7349fi
7350
7351if test -z "$lt_cv_path_MAGIC_CMD"; then
7352 if test -n "$ac_tool_prefix"; then
7353 { echo "$as_me:$LINENO: checking for file" >&5
7354echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7355if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7356 echo $ECHO_N "(cached) $ECHO_C" >&6
7357else
7358 case $MAGIC_CMD in
7359[\\/*] | ?:[\\/]*)
7360 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7361 ;;
7362*)
7363 lt_save_MAGIC_CMD="$MAGIC_CMD"
7364 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7365 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7366 for ac_dir in $ac_dummy; do
7367 IFS="$lt_save_ifs"
7368 test -z "$ac_dir" && ac_dir=.
7369 if test -f $ac_dir/file; then
7370 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7371 if test -n "$file_magic_test_file"; then
7372 case $deplibs_check_method in
7373 "file_magic "*)
7374 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7375 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7376 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7377 $EGREP "$file_magic_regex" > /dev/null; then
7378 :
7379 else
7380 cat <<EOF 1>&2
7381
7382*** Warning: the command libtool uses to detect shared libraries,
7383*** $file_magic_cmd, produces output that libtool cannot recognize.
7384*** The result is that libtool may fail to recognize shared libraries
7385*** as such. This will affect the creation of libtool libraries that
7386*** depend on shared libraries, but programs linked with such libtool
7387*** libraries will work regardless of this problem. Nevertheless, you
7388*** may want to report the problem to your system manager and/or to
7389*** bug-libtool@gnu.org
7390
7391EOF
7392 fi ;;
7393 esac
7394 fi
7395 break
7396 fi
7397 done
7398 IFS="$lt_save_ifs"
7399 MAGIC_CMD="$lt_save_MAGIC_CMD"
7400 ;;
7401esac
7402fi
7403
7404MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7405if test -n "$MAGIC_CMD"; then
7406 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7407echo "${ECHO_T}$MAGIC_CMD" >&6; }
7408else
7409 { echo "$as_me:$LINENO: result: no" >&5
7410echo "${ECHO_T}no" >&6; }
7411fi
7412
7413 else
7414 MAGIC_CMD=:
7415 fi
7416fi
7417
7418 fi
7419 ;;
7420esac
7421
7422enable_dlopen=no
7423enable_win32_dll=yes
7424
7425# Check whether --enable-libtool-lock was given.
7426if test "${enable_libtool_lock+set}" = set; then
7427 enableval=$enable_libtool_lock;
7428fi
7429
7430test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7431
7432
7433# Check whether --with-pic was given.
7434if test "${with_pic+set}" = set; then
7435 withval=$with_pic; pic_mode="$withval"
7436else
7437 pic_mode=default
7438fi
7439
7440test -z "$pic_mode" && pic_mode=default
7441
7442# Use C for the default configuration in the libtool script
7443tagname=
7444lt_save_CC="$CC"
7445ac_ext=c
7446ac_cpp='$CPP $CPPFLAGS'
7447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7449ac_compiler_gnu=$ac_cv_c_compiler_gnu
7450
7451
7452# Source file extension for C test sources.
7453ac_ext=c
7454
7455# Object file extension for compiled C test sources.
7456objext=o
7457objext=$objext
7458
7459# Code to be used in simple compile tests
7460lt_simple_compile_test_code="int some_variable = 0;\n"
7461
7462# Code to be used in simple link tests
7463lt_simple_link_test_code='int main(){return(0);}\n'
7464
7465
7466# If no C compiler was specified, use CC.
7467LTCC=${LTCC-"$CC"}
7468
7469# Allow CC to be a program name with arguments.
7470compiler=$CC
7471
7472
7473#
7474# Check for any special shared library compilation flags.
7475#
7476lt_prog_cc_shlib=
7477if test "$GCC" = no; then
7478 case $host_os in
7479 sco3.2v5*)
7480 lt_prog_cc_shlib='-belf'
7481 ;;
7482 esac
7483fi
7484if test -n "$lt_prog_cc_shlib"; then
7485 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7486echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7487 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7488 else
7489 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7490echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7491 lt_cv_prog_cc_can_build_shared=no
7492 fi
7493fi
7494
7495
7496#
7497# Check to make sure the static flag actually works.
7498#
7499{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7500echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
7501if test "${lt_prog_compiler_static_works+set}" = set; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7503else
7504 lt_prog_compiler_static_works=no
7505 save_LDFLAGS="$LDFLAGS"
7506 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7507 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7508 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7509 # The compiler can only warn and ignore the option if not recognized
7510 # So say no if there are warnings
7511 if test -s conftest.err; then
7512 # Append any errors to the config.log.
7513 cat conftest.err 1>&5
7514 else
7515 lt_prog_compiler_static_works=yes
7516 fi
7517 fi
7518 $rm conftest*
7519 LDFLAGS="$save_LDFLAGS"
7520
7521fi
7522{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7523echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7524
7525if test x"$lt_prog_compiler_static_works" = xyes; then
7526 :
7527else
7528 lt_prog_compiler_static=
7529fi
7530
7531
7532
7533## CAVEAT EMPTOR:
7534## There is no encapsulation within the following macros, do not change
7535## the running order or otherwise move them around unless you know exactly
7536## what you are doing...
7537
7538lt_prog_compiler_no_builtin_flag=
7539
7540if test "$GCC" = yes; then
7541 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7542
7543
7544{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7545echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7546if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7547 echo $ECHO_N "(cached) $ECHO_C" >&6
7548else
7549 lt_cv_prog_compiler_rtti_exceptions=no
7550 ac_outfile=conftest.$ac_objext
7551 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7552 lt_compiler_flag="-fno-rtti -fno-exceptions"
7553 # Insert the option either (1) after the last *FLAGS variable, or
7554 # (2) before a word containing "conftest.", or (3) at the end.
7555 # Note that $ac_compile itself does not contain backslashes and begins
7556 # with a dollar sign (not a hyphen), so the echo should work correctly.
7557 # The option is referenced via a variable to avoid confusing sed.
7558 lt_compile=`echo "$ac_compile" | $SED \
7559 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7561 -e 's:$: $lt_compiler_flag:'`
7562 (eval echo "\"\$as_me:7562: $lt_compile\"" >&5)
7563 (eval "$lt_compile" 2>conftest.err)
7564 ac_status=$?
7565 cat conftest.err >&5
7566 echo "$as_me:7566: \$? = $ac_status" >&5
7567 if (exit $ac_status) && test -s "$ac_outfile"; then
7568 # The compiler can only warn and ignore the option if not recognized
7569 # So say no if there are warnings
7570 if test ! -s conftest.err; then
7571 lt_cv_prog_compiler_rtti_exceptions=yes
7572 fi
7573 fi
7574 $rm conftest*
7575
7576fi
7577{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7578echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7579
7580if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7581 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7582else
7583 :
7584fi
7585
7586fi
7587
7588lt_prog_compiler_wl=
7589lt_prog_compiler_pic=
7590lt_prog_compiler_static=
7591
7592{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7593echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7594
7595 if test "$GCC" = yes; then
7596 lt_prog_compiler_wl='-Wl,'
7597 lt_prog_compiler_static='-static'
7598
7599 case $host_os in
7600 aix*)
7601 # All AIX code is PIC.
7602 if test "$host_cpu" = ia64; then
7603 # AIX 5 now supports IA64 processor
7604 lt_prog_compiler_static='-Bstatic'
7605 fi
7606 ;;
7607
7608 amigaos*)
7609 # FIXME: we need at least 68020 code to build shared libraries, but
7610 # adding the `-m68020' flag to GCC prevents building anything better,
7611 # like `-m68040'.
7612 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7613 ;;
7614
7615 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7616 # PIC is the default for these OSes.
7617 ;;
7618
7619 mingw* | pw32* | os2*)
7620 # This hack is so that the source file can tell whether it is being
7621 # built for inclusion in a dll (and should export symbols for example).
7622 lt_prog_compiler_pic='-DDLL_EXPORT'
7623 ;;
7624
7625 darwin* | rhapsody*)
7626 # PIC is the default on this platform
7627 # Common symbols not allowed in MH_DYLIB files
7628 lt_prog_compiler_pic='-fno-common'
7629 ;;
7630
7631 msdosdjgpp*)
7632 # Just because we use GCC doesn't mean we suddenly get shared libraries
7633 # on systems that don't support them.
7634 lt_prog_compiler_can_build_shared=no
7635 enable_shared=no
7636 ;;
7637
7638 sysv4*MP*)
7639 if test -d /usr/nec; then
7640 lt_prog_compiler_pic=-Kconform_pic
7641 fi
7642 ;;
7643
7644 hpux*)
7645 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7646 # not for PA HP-UX.
7647 case "$host_cpu" in
7648 hppa*64*|ia64*)
7649 # +Z the default
7650 ;;
7651 *)
7652 lt_prog_compiler_pic='-fPIC'
7653 ;;
7654 esac
7655 ;;
7656
7657 *)
7658 lt_prog_compiler_pic='-fPIC'
7659 ;;
7660 esac
7661 else
7662 # PORTME Check for flag to pass linker flags through the system compiler.
7663 case $host_os in
7664 aix*)
7665 lt_prog_compiler_wl='-Wl,'
7666 if test "$host_cpu" = ia64; then
7667 # AIX 5 now supports IA64 processor
7668 lt_prog_compiler_static='-Bstatic'
7669 else
7670 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7671 fi
7672 ;;
7673
7674 mingw* | pw32* | os2*)
7675 # This hack is so that the source file can tell whether it is being
7676 # built for inclusion in a dll (and should export symbols for example).
7677 lt_prog_compiler_pic='-DDLL_EXPORT'
7678 ;;
7679
7680 hpux9* | hpux10* | hpux11*)
7681 lt_prog_compiler_wl='-Wl,'
7682 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7683 # not for PA HP-UX.
7684 case "$host_cpu" in
7685 hppa*64*|ia64*)
7686 # +Z the default
7687 ;;
7688 *)
7689 lt_prog_compiler_pic='+Z'
7690 ;;
7691 esac
7692 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7693 lt_prog_compiler_static='${wl}-a ${wl}archive'
7694 ;;
7695
7696 irix5* | irix6* | nonstopux*)
7697 lt_prog_compiler_wl='-Wl,'
7698 # PIC (with -KPIC) is the default.
7699 lt_prog_compiler_static='-non_shared'
7700 ;;
7701
7702 newsos6)
7703 lt_prog_compiler_pic='-KPIC'
7704 lt_prog_compiler_static='-Bstatic'
7705 ;;
7706
7707 linux*)
7708 case $CC in
7709 icc* | ecc*)
7710 lt_prog_compiler_wl='-Wl,'
7711 lt_prog_compiler_pic='-KPIC'
7712 lt_prog_compiler_static='-static'
7713 ;;
7714 ccc*)
7715 lt_prog_compiler_wl='-Wl,'
7716 # All Alpha code is PIC.
7717 lt_prog_compiler_static='-non_shared'
7718 ;;
7719 esac
7720 ;;
7721
7722 osf3* | osf4* | osf5*)
7723 lt_prog_compiler_wl='-Wl,'
7724 # All OSF/1 code is PIC.
7725 lt_prog_compiler_static='-non_shared'
7726 ;;
7727
7728 sco3.2v5*)
7729 lt_prog_compiler_pic='-Kpic'
7730 lt_prog_compiler_static='-dn'
7731 ;;
7732
7733 solaris*)
7734 lt_prog_compiler_wl='-Wl,'
7735 lt_prog_compiler_pic='-KPIC'
7736 lt_prog_compiler_static='-Bstatic'
7737 ;;
7738
7739 sunos4*)
7740 lt_prog_compiler_wl='-Qoption ld '
7741 lt_prog_compiler_pic='-PIC'
7742 lt_prog_compiler_static='-Bstatic'
7743 ;;
7744
7745 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7746 lt_prog_compiler_wl='-Wl,'
7747 lt_prog_compiler_pic='-KPIC'
7748 lt_prog_compiler_static='-Bstatic'
7749 ;;
7750
7751 sysv4*MP*)
7752 if test -d /usr/nec ;then
7753 lt_prog_compiler_pic='-Kconform_pic'
7754 lt_prog_compiler_static='-Bstatic'
7755 fi
7756 ;;
7757
7758 uts4*)
7759 lt_prog_compiler_pic='-pic'
7760 lt_prog_compiler_static='-Bstatic'
7761 ;;
7762
7763 *)
7764 lt_prog_compiler_can_build_shared=no
7765 ;;
7766 esac
7767 fi
7768
7769{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7770echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7771
7772#
7773# Check to make sure the PIC flag actually works.
7774#
7775if test -n "$lt_prog_compiler_pic"; then
7776
7777{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7778echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7779if test "${lt_prog_compiler_pic_works+set}" = set; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
7781else
7782 lt_prog_compiler_pic_works=no
7783 ac_outfile=conftest.$ac_objext
7784 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7785 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7786 # Insert the option either (1) after the last *FLAGS variable, or
7787 # (2) before a word containing "conftest.", or (3) at the end.
7788 # Note that $ac_compile itself does not contain backslashes and begins
7789 # with a dollar sign (not a hyphen), so the echo should work correctly.
7790 # The option is referenced via a variable to avoid confusing sed.
7791 lt_compile=`echo "$ac_compile" | $SED \
7792 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7794 -e 's:$: $lt_compiler_flag:'`
7795 (eval echo "\"\$as_me:7795: $lt_compile\"" >&5)
7796 (eval "$lt_compile" 2>conftest.err)
7797 ac_status=$?
7798 cat conftest.err >&5
7799 echo "$as_me:7799: \$? = $ac_status" >&5
7800 if (exit $ac_status) && test -s "$ac_outfile"; then
7801 # The compiler can only warn and ignore the option if not recognized
7802 # So say no if there are warnings
7803 if test ! -s conftest.err; then
7804 lt_prog_compiler_pic_works=yes
7805 fi
7806 fi
7807 $rm conftest*
7808
7809fi
7810{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7811echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7812
7813if test x"$lt_prog_compiler_pic_works" = xyes; then
7814 case $lt_prog_compiler_pic in
7815 "" | " "*) ;;
7816 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7817 esac
7818else
7819 lt_prog_compiler_pic=
7820 lt_prog_compiler_can_build_shared=no
7821fi
7822
7823fi
7824case "$host_os" in
7825 # For platforms which do not support PIC, -DPIC is meaningless:
7826 *djgpp*)
7827 lt_prog_compiler_pic=
7828 ;;
7829 *)
7830 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7831 ;;
7832esac
7833
7834{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7835echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7836if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7838else
7839 lt_cv_prog_compiler_c_o=no
7840 $rm -r conftest 2>/dev/null
7841 mkdir conftest
7842 cd conftest
7843 mkdir out
7844 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7845
7846 lt_compiler_flag="-o out/conftest2.$ac_objext"
7847 # Insert the option either (1) after the last *FLAGS variable, or
7848 # (2) before a word containing "conftest.", or (3) at the end.
7849 # Note that $ac_compile itself does not contain backslashes and begins
7850 # with a dollar sign (not a hyphen), so the echo should work correctly.
7851 lt_compile=`echo "$ac_compile" | $SED \
7852 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7853 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7854 -e 's:$: $lt_compiler_flag:'`
7855 (eval echo "\"\$as_me:7855: $lt_compile\"" >&5)
7856 (eval "$lt_compile" 2>out/conftest.err)
7857 ac_status=$?
7858 cat out/conftest.err >&5
7859 echo "$as_me:7859: \$? = $ac_status" >&5
7860 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7861 then
7862 # The compiler can only warn and ignore the option if not recognized
7863 # So say no if there are warnings
7864 if test ! -s out/conftest.err; then
7865 lt_cv_prog_compiler_c_o=yes
7866 fi
7867 fi
7868 chmod u+w .
7869 $rm conftest*
7870 # SGI C++ compiler will create directory out/ii_files/ for
7871 # template instantiation
7872 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7873 $rm out/* && rmdir out
7874 cd ..
7875 rmdir conftest
7876 $rm conftest*
7877
7878fi
7879{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7880echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7881
7882
7883hard_links="nottested"
7884if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7885 # do not overwrite the value of need_locks provided by the user
7886 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7887echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7888 hard_links=yes
7889 $rm conftest*
7890 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7891 touch conftest.a
7892 ln conftest.a conftest.b 2>&5 || hard_links=no
7893 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7894 { echo "$as_me:$LINENO: result: $hard_links" >&5
7895echo "${ECHO_T}$hard_links" >&6; }
7896 if test "$hard_links" = no; then
7897 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7898echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7899 need_locks=warn
7900 fi
7901else
7902 need_locks=no
7903fi
7904
7905{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7906echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7907
7908 runpath_var=
7909 allow_undefined_flag=
7910 enable_shared_with_static_runtimes=no
7911 archive_cmds=
7912 archive_expsym_cmds=
7913 old_archive_From_new_cmds=
7914 old_archive_from_expsyms_cmds=
7915 export_dynamic_flag_spec=
7916 whole_archive_flag_spec=
7917 thread_safe_flag_spec=
7918 hardcode_libdir_flag_spec=
7919 hardcode_libdir_flag_spec_ld=
7920 hardcode_libdir_separator=
7921 hardcode_direct=no
7922 hardcode_minus_L=no
7923 hardcode_shlibpath_var=unsupported
7924 link_all_deplibs=unknown
7925 hardcode_automatic=no
7926 module_cmds=
7927 module_expsym_cmds=
7928 always_export_symbols=no
7929 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7930 # include_expsyms should be a list of space-separated symbols to be *always*
7931 # included in the symbol list
7932 include_expsyms=
7933 # exclude_expsyms can be an extended regexp of symbols to exclude
7934 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7935 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7936 # as well as any symbol that contains `d'.
7937 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7938 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7939 # platforms (ab)use it in PIC code, but their linkers get confused if
7940 # the symbol is explicitly referenced. Since portable code cannot
7941 # rely on this symbol name, it's probably fine to never include it in
7942 # preloaded symbol tables.
7943 extract_expsyms_cmds=
7944
7945 case $host_os in
7946 cygwin* | mingw* | pw32*)
7947 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7948 # When not using gcc, we currently assume that we are using
7949 # Microsoft Visual C++.
7950 if test "$GCC" != yes; then
7951 with_gnu_ld=no
7952 fi
7953 ;;
7954 openbsd*)
7955 with_gnu_ld=no
7956 ;;
7957 esac
7958
7959 ld_shlibs=yes
7960 if test "$with_gnu_ld" = yes; then
7961 # If archive_cmds runs LD, not CC, wlarc should be empty
7962 wlarc='${wl}'
7963
7964 # See if GNU ld supports shared libraries.
7965 case $host_os in
7966 aix3* | aix4* | aix5*)
7967 # On AIX/PPC, the GNU linker is very broken
7968 if test "$host_cpu" != ia64; then
7969 ld_shlibs=no
7970 cat <<EOF 1>&2
7971
7972*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7973*** to be unable to reliably create shared libraries on AIX.
7974*** Therefore, libtool is disabling shared libraries support. If you
7975*** really care for shared libraries, you may want to modify your PATH
7976*** so that a non-GNU linker is found, and then restart.
7977
7978EOF
7979 fi
7980 ;;
7981
7982 amigaos*)
7983 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7984 hardcode_libdir_flag_spec='-L$libdir'
7985 hardcode_minus_L=yes
7986
7987 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7988 # that the semantics of dynamic libraries on AmigaOS, at least up
7989 # to version 4, is to share data among multiple programs linked
7990 # with the same dynamic library. Since this doesn't match the
7991 # behavior of shared libraries on other platforms, we can't use
7992 # them.
7993 ld_shlibs=no
7994 ;;
7995
7996 beos*)
7997 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7998 allow_undefined_flag=unsupported
7999 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8000 # support --undefined. This deserves some investigation. FIXME
8001 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8002 else
8003 ld_shlibs=no
8004 fi
8005 ;;
8006
8007 cygwin* | mingw* | pw32*)
8008 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8009 # as there is no search path for DLLs.
8010 hardcode_libdir_flag_spec='-L$libdir'
8011 allow_undefined_flag=unsupported
8012 always_export_symbols=no
8013 enable_shared_with_static_runtimes=yes
8014 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8015
8016 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8018 # If the export-symbols file already is a .def file (1st line
8019 # is EXPORTS), use it as is; otherwise, prepend...
8020 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8021 cp $export_symbols $output_objdir/$soname.def;
8022 else
8023 echo EXPORTS > $output_objdir/$soname.def;
8024 cat $export_symbols >> $output_objdir/$soname.def;
8025 fi~
8026 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8027 else
8028 ld_shlibs=no
8029 fi
8030 ;;
8031
8032 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8033 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8034 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8035 wlarc=
8036 else
8037 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8038 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8039 fi
8040 ;;
8041
8042 solaris* | sysv5*)
8043 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8044 ld_shlibs=no
8045 cat <<EOF 1>&2
8046
8047*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8048*** create shared libraries on Solaris systems. Therefore, libtool
8049*** is disabling shared libraries support. We urge you to upgrade GNU
8050*** binutils to release 2.9.1 or newer. Another option is to modify
8051*** your PATH or compiler configuration so that the native linker is
8052*** used, and then restart.
8053
8054EOF
8055 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8057 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8058 else
8059 ld_shlibs=no
8060 fi
8061 ;;
8062
8063 sunos4*)
8064 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8065 wlarc=
8066 hardcode_direct=yes
8067 hardcode_shlibpath_var=no
8068 ;;
8069
8070 linux*)
8071 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8072 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8073 archive_cmds="$tmp_archive_cmds"
8074 supports_anon_versioning=no
8075 case `$LD -v 2>/dev/null` in
8076 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8077 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8078 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8079 *\ 2.11.*) ;; # other 2.11 versions
8080 *) supports_anon_versioning=yes ;;
8081 esac
8082 if test $supports_anon_versioning = yes; then
8083 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8084cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8085$echo "local: *; };" >> $output_objdir/$libname.ver~
8086 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8087 else
8088 archive_expsym_cmds="$tmp_archive_cmds"
8089 fi
8090 link_all_deplibs=no
8091 else
8092 ld_shlibs=no
8093 fi
8094 ;;
8095
8096 *)
8097 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8098 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8099 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8100 else
8101 ld_shlibs=no
8102 fi
8103 ;;
8104 esac
8105
8106 if test "$ld_shlibs" = yes; then
8107 runpath_var=LD_RUN_PATH
8108 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8109 export_dynamic_flag_spec='${wl}--export-dynamic'
8110 # ancient GNU ld didn't support --whole-archive et. al.
8111 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8112 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8113 else
8114 whole_archive_flag_spec=
8115 fi
8116 fi
8117 else
8118 # PORTME fill in a description of your system's linker (not GNU ld)
8119 case $host_os in
8120 aix3*)
8121 allow_undefined_flag=unsupported
8122 always_export_symbols=yes
8123 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8124 # Note: this linker hardcodes the directories in LIBPATH if there
8125 # are no directories specified by -L.
8126 hardcode_minus_L=yes
8127 if test "$GCC" = yes && test -z "$link_static_flag"; then
8128 # Neither direct hardcoding nor static linking is supported with a
8129 # broken collect2.
8130 hardcode_direct=unsupported
8131 fi
8132 ;;
8133
8134 aix4* | aix5*)
8135 if test "$host_cpu" = ia64; then
8136 # On IA64, the linker does run time linking by default, so we don't
8137 # have to do anything special.
8138 aix_use_runtimelinking=no
8139 exp_sym_flag='-Bexport'
8140 no_entry_flag=""
8141 else
8142 # If we're using GNU nm, then we don't want the "-C" option.
8143 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8144 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8145 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8146 else
8147 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8148 fi
8149 aix_use_runtimelinking=no
8150
8151 # Test if we are trying to use run time linking or normal
8152 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8153 # need to do runtime linking.
8154 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8155 for ld_flag in $LDFLAGS; do
8156 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8157 aix_use_runtimelinking=yes
8158 break
8159 fi
8160 done
8161 esac
8162
8163 exp_sym_flag='-bexport'
8164 no_entry_flag='-bnoentry'
8165 fi
8166
8167 # When large executables or shared objects are built, AIX ld can
8168 # have problems creating the table of contents. If linking a library
8169 # or program results in "error TOC overflow" add -mminimal-toc to
8170 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8171 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8172
8173 archive_cmds=''
8174 hardcode_direct=yes
8175 hardcode_libdir_separator=':'
8176 link_all_deplibs=yes
8177
8178 if test "$GCC" = yes; then
8179 case $host_os in aix4.012|aix4.012.*)
8180 # We only want to do this on AIX 4.2 and lower, the check
8181 # below for broken collect2 doesn't work under 4.3+
8182 collect2name=`${CC} -print-prog-name=collect2`
8183 if test -f "$collect2name" && \
8184 strings "$collect2name" | grep resolve_lib_name >/dev/null
8185 then
8186 # We have reworked collect2
8187 hardcode_direct=yes
8188 else
8189 # We have old collect2
8190 hardcode_direct=unsupported
8191 # It fails to find uninstalled libraries when the uninstalled
8192 # path is not listed in the libpath. Setting hardcode_minus_L
8193 # to unsupported forces relinking
8194 hardcode_minus_L=yes
8195 hardcode_libdir_flag_spec='-L$libdir'
8196 hardcode_libdir_separator=
8197 fi
8198 esac
8199 shared_flag='-shared'
8200 else
8201 # not using gcc
8202 if test "$host_cpu" = ia64; then
8203 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8204 # chokes on -Wl,-G. The following line is correct:
8205 shared_flag='-G'
8206 else
8207 if test "$aix_use_runtimelinking" = yes; then
8208 shared_flag='${wl}-G'
8209 else
8210 shared_flag='${wl}-bM:SRE'
8211 fi
8212 fi
8213 fi
8214
8215 # It seems that -bexpall does not export symbols beginning with
8216 # underscore (_), so it is better to generate a list of symbols to export.
8217 always_export_symbols=yes
8218 if test "$aix_use_runtimelinking" = yes; then
8219 # Warning - without using the other runtime loading flags (-brtl),
8220 # -berok will link without error, but may produce a broken library.
8221 allow_undefined_flag='-berok'
8222 # Determine the default libpath from the value encoded in an empty executable.
8223 cat >conftest.$ac_ext <<_ACEOF
8224/* confdefs.h. */
8225_ACEOF
8226cat confdefs.h >>conftest.$ac_ext
8227cat >>conftest.$ac_ext <<_ACEOF
8228/* end confdefs.h. */
8229
8230int
8231main ()
8232{
8233
8234 ;
8235 return 0;
8236}
8237_ACEOF
8238rm -f conftest.$ac_objext conftest$ac_exeext
8239if { (ac_try="$ac_link"
8240case "(($ac_try" in
8241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8242 *) ac_try_echo=$ac_try;;
8243esac
8244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8245 (eval "$ac_link") 2>conftest.er1
8246 ac_status=$?
8247 grep -v '^ *+' conftest.er1 >conftest.err
8248 rm -f conftest.er1
8249 cat conftest.err >&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } && {
8252 test -z "$ac_c_werror_flag" ||
8253 test ! -s conftest.err
8254 } && test -s conftest$ac_exeext &&
8255 $as_test_x conftest$ac_exeext; then
8256
8257aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8258}'`
8259# Check for a 64-bit object if we didn't find anything.
8260if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8261}'`; fi
8262else
8263 echo "$as_me: failed program was:" >&5
8264sed 's/^/| /' conftest.$ac_ext >&5
8265
8266
8267fi
8268
8269rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8270 conftest$ac_exeext conftest.$ac_ext
8271if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8272
8273 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8274 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8275 else
8276 if test "$host_cpu" = ia64; then
8277 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8278 allow_undefined_flag="-z nodefs"
8279 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8280 else
8281 # Determine the default libpath from the value encoded in an empty executable.
8282 cat >conftest.$ac_ext <<_ACEOF
8283/* confdefs.h. */
8284_ACEOF
8285cat confdefs.h >>conftest.$ac_ext
8286cat >>conftest.$ac_ext <<_ACEOF
8287/* end confdefs.h. */
8288
8289int
8290main ()
8291{
8292
8293 ;
8294 return 0;
8295}
8296_ACEOF
8297rm -f conftest.$ac_objext conftest$ac_exeext
8298if { (ac_try="$ac_link"
8299case "(($ac_try" in
8300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301 *) ac_try_echo=$ac_try;;
8302esac
8303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304 (eval "$ac_link") 2>conftest.er1
8305 ac_status=$?
8306 grep -v '^ *+' conftest.er1 >conftest.err
8307 rm -f conftest.er1
8308 cat conftest.err >&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); } && {
8311 test -z "$ac_c_werror_flag" ||
8312 test ! -s conftest.err
8313 } && test -s conftest$ac_exeext &&
8314 $as_test_x conftest$ac_exeext; then
8315
8316aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8317}'`
8318# Check for a 64-bit object if we didn't find anything.
8319if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8320}'`; fi
8321else
8322 echo "$as_me: failed program was:" >&5
8323sed 's/^/| /' conftest.$ac_ext >&5
8324
8325
8326fi
8327
8328rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8329 conftest$ac_exeext conftest.$ac_ext
8330if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8331
8332 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8333 # Warning - without using the other run time loading flags,
8334 # -berok will link without error, but may produce a broken library.
8335 no_undefined_flag=' ${wl}-bernotok'
8336 allow_undefined_flag=' ${wl}-berok'
8337 # -bexpall does not export symbols beginning with underscore (_)
8338 always_export_symbols=yes
8339 # Exported symbols can be pulled into shared objects from archives
8340 whole_archive_flag_spec=' '
8341 archive_cmds_need_lc=yes
8342 # This is similar to how AIX traditionally builds it's shared libraries.
8343 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8344 fi
8345 fi
8346 ;;
8347
8348 amigaos*)
8349 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8350 hardcode_libdir_flag_spec='-L$libdir'
8351 hardcode_minus_L=yes
8352 # see comment about different semantics on the GNU ld section
8353 ld_shlibs=no
8354 ;;
8355
8356 bsdi4*)
8357 export_dynamic_flag_spec=-rdynamic
8358 ;;
8359
8360 cygwin* | mingw* | pw32*)
8361 # When not using gcc, we currently assume that we are using
8362 # Microsoft Visual C++.
8363 # hardcode_libdir_flag_spec is actually meaningless, as there is
8364 # no search path for DLLs.
8365 hardcode_libdir_flag_spec=' '
8366 allow_undefined_flag=unsupported
8367 # Tell ltmain to make .lib files, not .a files.
8368 libext=lib
8369 # Tell ltmain to make .dll files, not .so files.
8370 shrext_cmds=".dll"
8371 # FIXME: Setting linknames here is a bad hack.
8372 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8373 # The linker will automatically build a .lib file if we build a DLL.
8374 old_archive_From_new_cmds='true'
8375 # FIXME: Should let the user specify the lib program.
8376 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8377 fix_srcfile_path='`cygpath -w "$srcfile"`'
8378 enable_shared_with_static_runtimes=yes
8379 ;;
8380
8381 darwin* | rhapsody*)
8382 if test "$GXX" = yes ; then
8383 archive_cmds_need_lc=no
8384 case "$host_os" in
8385 rhapsody* | darwin1.[012])
8386 allow_undefined_flag='-undefined suppress'
8387 ;;
8388 *) # Darwin 1.3 on
8389 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8390 allow_undefined_flag='-flat_namespace -undefined suppress'
8391 else
8392 case ${MACOSX_DEPLOYMENT_TARGET} in
8393 10.[012])
8394 allow_undefined_flag='-flat_namespace -undefined suppress'
8395 ;;
8396 10.*)
8397 allow_undefined_flag='-undefined dynamic_lookup'
8398 ;;
8399 esac
8400 fi
8401 ;;
8402 esac
8403 lt_int_apple_cc_single_mod=no
8404 output_verbose_link_cmd='echo'
8405 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
8406 lt_int_apple_cc_single_mod=yes
8407 fi
8408 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8409 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8410 else
8411 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8412 fi
8413 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8414 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8415 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8416 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8417 else
8418 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8419 fi
8420 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8421 hardcode_direct=no
8422 hardcode_automatic=yes
8423 hardcode_shlibpath_var=unsupported
8424 whole_archive_flag_spec='-all_load $convenience'
8425 link_all_deplibs=yes
8426 else
8427 ld_shlibs=no
8428 fi
8429 ;;
8430
8431 dgux*)
8432 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8433 hardcode_libdir_flag_spec='-L$libdir'
8434 hardcode_shlibpath_var=no
8435 ;;
8436
8437 freebsd1*)
8438 ld_shlibs=no
8439 ;;
8440
8441 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8442 # support. Future versions do this automatically, but an explicit c++rt0.o
8443 # does not break anything, and helps significantly (at the cost of a little
8444 # extra space).
8445 freebsd2.2*)
8446 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8447 hardcode_libdir_flag_spec='-R$libdir'
8448 hardcode_direct=yes
8449 hardcode_shlibpath_var=no
8450 ;;
8451
8452 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8453 freebsd2*)
8454 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8455 hardcode_direct=yes
8456 hardcode_minus_L=yes
8457 hardcode_shlibpath_var=no
8458 ;;
8459
8460 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8461 freebsd* | kfreebsd*-gnu)
8462 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8463 hardcode_libdir_flag_spec='-R$libdir'
8464 hardcode_direct=yes
8465 hardcode_shlibpath_var=no
8466 ;;
8467
8468 hpux9*)
8469 if test "$GCC" = yes; then
8470 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8471 else
8472 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8473 fi
8474 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8475 hardcode_libdir_separator=:
8476 hardcode_direct=yes
8477
8478 # hardcode_minus_L: Not really in the search PATH,
8479 # but as the default location of the library.
8480 hardcode_minus_L=yes
8481 export_dynamic_flag_spec='${wl}-E'
8482 ;;
8483
8484 hpux10* | hpux11*)
8485 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8486 case "$host_cpu" in
8487 hppa*64*|ia64*)
8488 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8489 ;;
8490 *)
8491 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8492 ;;
8493 esac
8494 else
8495 case "$host_cpu" in
8496 hppa*64*|ia64*)
8497 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8498 ;;
8499 *)
8500 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8501 ;;
8502 esac
8503 fi
8504 if test "$with_gnu_ld" = no; then
8505 case "$host_cpu" in
8506 hppa*64*)
8507 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8508 hardcode_libdir_flag_spec_ld='+b $libdir'
8509 hardcode_libdir_separator=:
8510 hardcode_direct=no
8511 hardcode_shlibpath_var=no
8512 ;;
8513 ia64*)
8514 hardcode_libdir_flag_spec='-L$libdir'
8515 hardcode_direct=no
8516 hardcode_shlibpath_var=no
8517
8518 # hardcode_minus_L: Not really in the search PATH,
8519 # but as the default location of the library.
8520 hardcode_minus_L=yes
8521 ;;
8522 *)
8523 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8524 hardcode_libdir_separator=:
8525 hardcode_direct=yes
8526 export_dynamic_flag_spec='${wl}-E'
8527
8528 # hardcode_minus_L: Not really in the search PATH,
8529 # but as the default location of the library.
8530 hardcode_minus_L=yes
8531 ;;
8532 esac
8533 fi
8534 ;;
8535
8536 irix5* | irix6* | nonstopux*)
8537 if test "$GCC" = yes; then
8538 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8539 else
8540 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8541 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8542 fi
8543 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8544 hardcode_libdir_separator=:
8545 link_all_deplibs=yes
8546 ;;
8547
8548 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8549 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8550 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8551 else
8552 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8553 fi
8554 hardcode_libdir_flag_spec='-R$libdir'
8555 hardcode_direct=yes
8556 hardcode_shlibpath_var=no
8557 ;;
8558
8559 newsos6)
8560 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8561 hardcode_direct=yes
8562 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8563 hardcode_libdir_separator=:
8564 hardcode_shlibpath_var=no
8565 ;;
8566
8567 openbsd*)
8568 hardcode_direct=yes
8569 hardcode_shlibpath_var=no
8570 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8571 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8572 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8573 export_dynamic_flag_spec='${wl}-E'
8574 else
8575 case $host_os in
8576 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8577 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8578 hardcode_libdir_flag_spec='-R$libdir'
8579 ;;
8580 *)
8581 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8582 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8583 ;;
8584 esac
8585 fi
8586 ;;
8587
8588 os2*)
8589 hardcode_libdir_flag_spec='-L$libdir'
8590 hardcode_minus_L=yes
8591 allow_undefined_flag=unsupported
8592 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8593 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8594 ;;
8595
8596 osf3*)
8597 if test "$GCC" = yes; then
8598 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8599 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8600 else
8601 allow_undefined_flag=' -expect_unresolved \*'
8602 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8603 fi
8604 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8605 hardcode_libdir_separator=:
8606 ;;
8607
8608 osf4* | osf5*) # as osf3* with the addition of -msym flag
8609 if test "$GCC" = yes; then
8610 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8611 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8612 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8613 else
8614 allow_undefined_flag=' -expect_unresolved \*'
8615 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8616 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8617 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
8618
8619 # Both c and cxx compiler support -rpath directly
8620 hardcode_libdir_flag_spec='-rpath $libdir'
8621 fi
8622 hardcode_libdir_separator=:
8623 ;;
8624
8625 sco3.2v5*)
8626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8627 hardcode_shlibpath_var=no
8628 export_dynamic_flag_spec='${wl}-Bexport'
8629 runpath_var=LD_RUN_PATH
8630 hardcode_runpath_var=yes
8631 ;;
8632
8633 solaris*)
8634 no_undefined_flag=' -z text'
8635 if test "$GCC" = yes; then
8636 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8637 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8638 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8639 else
8640 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8641 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8642 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8643 fi
8644 hardcode_libdir_flag_spec='-R$libdir'
8645 hardcode_shlibpath_var=no
8646 case $host_os in
8647 solaris2.[0-5] | solaris2.[0-5].*) ;;
8648 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8649 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8650 esac
8651 link_all_deplibs=yes
8652 ;;
8653
8654 sunos4*)
8655 if test "x$host_vendor" = xsequent; then
8656 # Use $CC to link under sequent, because it throws in some extra .o
8657 # files that make .init and .fini sections work.
8658 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8659 else
8660 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8661 fi
8662 hardcode_libdir_flag_spec='-L$libdir'
8663 hardcode_direct=yes
8664 hardcode_minus_L=yes
8665 hardcode_shlibpath_var=no
8666 ;;
8667
8668 sysv4)
8669 case $host_vendor in
8670 sni)
8671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8672 hardcode_direct=yes # is this really true???
8673 ;;
8674 siemens)
8675 ## LD is ld it makes a PLAMLIB
8676 ## CC just makes a GrossModule.
8677 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8678 reload_cmds='$CC -r -o $output$reload_objs'
8679 hardcode_direct=no
8680 ;;
8681 motorola)
8682 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8683 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8684 ;;
8685 esac
8686 runpath_var='LD_RUN_PATH'
8687 hardcode_shlibpath_var=no
8688 ;;
8689
8690 sysv4.3*)
8691 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8692 hardcode_shlibpath_var=no
8693 export_dynamic_flag_spec='-Bexport'
8694 ;;
8695
8696 sysv4*MP*)
8697 if test -d /usr/nec; then
8698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8699 hardcode_shlibpath_var=no
8700 runpath_var=LD_RUN_PATH
8701 hardcode_runpath_var=yes
8702 ld_shlibs=yes
8703 fi
8704 ;;
8705
8706 sysv4.2uw2*)
8707 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8708 hardcode_direct=yes
8709 hardcode_minus_L=no
8710 hardcode_shlibpath_var=no
8711 hardcode_runpath_var=yes
8712 runpath_var=LD_RUN_PATH
8713 ;;
8714
8715 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8716 no_undefined_flag='${wl}-z ${wl}text'
8717 if test "$GCC" = yes; then
8718 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8719 else
8720 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8721 fi
8722 runpath_var='LD_RUN_PATH'
8723 hardcode_shlibpath_var=no
8724 ;;
8725
8726 sysv5*)
8727 no_undefined_flag=' -z text'
8728 # $CC -shared without GNU ld will not create a library from C++
8729 # object files and a static libstdc++, better avoid it by now
8730 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8731 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8732 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8733 hardcode_libdir_flag_spec=
8734 hardcode_shlibpath_var=no
8735 runpath_var='LD_RUN_PATH'
8736 ;;
8737
8738 uts4*)
8739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8740 hardcode_libdir_flag_spec='-L$libdir'
8741 hardcode_shlibpath_var=no
8742 ;;
8743
8744 *)
8745 ld_shlibs=no
8746 ;;
8747 esac
8748 fi
8749
8750{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8751echo "${ECHO_T}$ld_shlibs" >&6; }
8752test "$ld_shlibs" = no && can_build_shared=no
8753
8754variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8755if test "$GCC" = yes; then
8756 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8757fi
8758
8759#
8760# Do we need to explicitly link libc?
8761#
8762case "x$archive_cmds_need_lc" in
8763x|xyes)
8764 # Assume -lc should be added
8765 archive_cmds_need_lc=yes
8766
8767 if test "$enable_shared" = yes && test "$GCC" = yes; then
8768 case $archive_cmds in
8769 *'~'*)
8770 # FIXME: we may have to deal with multi-command sequences.
8771 ;;
8772 '$CC '*)
8773 # Test whether the compiler implicitly links with -lc since on some
8774 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8775 # to ld, don't add -lc before -lgcc.
8776 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8777echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8778 $rm conftest*
8779 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8780
8781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8782 (eval $ac_compile) 2>&5
8783 ac_status=$?
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); } 2>conftest.err; then
8786 soname=conftest
8787 lib=conftest
8788 libobjs=conftest.$ac_objext
8789 deplibs=
8790 wl=$lt_prog_compiler_wl
8791 compiler_flags=-v
8792 linker_flags=-v
8793 verstring=
8794 output_objdir=.
8795 libname=conftest
8796 lt_save_allow_undefined_flag=$allow_undefined_flag
8797 allow_undefined_flag=
8798 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8799 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8800 ac_status=$?
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); }
8803 then
8804 archive_cmds_need_lc=no
8805 else
8806 archive_cmds_need_lc=yes
8807 fi
8808 allow_undefined_flag=$lt_save_allow_undefined_flag
8809 else
8810 cat conftest.err 1>&5
8811 fi
8812 $rm conftest*
8813 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8814echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8815 ;;
8816 esac
8817 fi
8818 ;;
8819esac
8820
8821{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8822echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8823library_names_spec=
8824libname_spec='lib$name'
8825soname_spec=
8826shrext_cmds=".so"
8827postinstall_cmds=
8828postuninstall_cmds=
8829finish_cmds=
8830finish_eval=
8831shlibpath_var=
8832shlibpath_overrides_runpath=unknown
8833version_type=none
8834dynamic_linker="$host_os ld.so"
8835sys_lib_dlsearch_path_spec="/lib /usr/lib"
8836if test "$GCC" = yes; then
8837 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8838 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8839 # if the path contains ";" then we assume it to be the separator
8840 # otherwise default to the standard path separator (i.e. ":") - it is
8841 # assumed that no part of a normal pathname contains ";" but that should
8842 # okay in the real world where ";" in dirpaths is itself problematic.
8843 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8844 else
8845 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8846 fi
8847else
8848 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8849fi
8850need_lib_prefix=unknown
8851hardcode_into_libs=no
8852
8853# when you set need_version to no, make sure it does not cause -set_version
8854# flags to be left without arguments
8855need_version=unknown
8856
8857case $host_os in
8858aix3*)
8859 version_type=linux
8860 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8861 shlibpath_var=LIBPATH
8862
8863 # AIX 3 has no versioning support, so we append a major version to the name.
8864 soname_spec='${libname}${release}${shared_ext}$major'
8865 ;;
8866
8867aix4* | aix5*)
8868 version_type=linux
8869 need_lib_prefix=no
8870 need_version=no
8871 hardcode_into_libs=yes
8872 if test "$host_cpu" = ia64; then
8873 # AIX 5 supports IA64
8874 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8875 shlibpath_var=LD_LIBRARY_PATH
8876 else
8877 # With GCC up to 2.95.x, collect2 would create an import file
8878 # for dependence libraries. The import file would start with
8879 # the line `#! .'. This would cause the generated library to
8880 # depend on `.', always an invalid library. This was fixed in
8881 # development snapshots of GCC prior to 3.0.
8882 case $host_os in
8883 aix4 | aix4.[01] | aix4.[01].*)
8884 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8885 echo ' yes '
8886 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8887 :
8888 else
8889 can_build_shared=no
8890 fi
8891 ;;
8892 esac
8893 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8894 # soname into executable. Probably we can add versioning support to
8895 # collect2, so additional links can be useful in future.
8896 if test "$aix_use_runtimelinking" = yes; then
8897 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8898 # instead of lib<name>.a to let people know that these are not
8899 # typical AIX shared libraries.
8900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8901 else
8902 # We preserve .a as extension for shared libraries through AIX4.2
8903 # and later when we are not doing run time linking.
8904 library_names_spec='${libname}${release}.a $libname.a'
8905 soname_spec='${libname}${release}${shared_ext}$major'
8906 fi
8907 shlibpath_var=LIBPATH
8908 fi
8909 ;;
8910
8911amigaos*)
8912 library_names_spec='$libname.ixlibrary $libname.a'
8913 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8914 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8915 ;;
8916
8917beos*)
8918 library_names_spec='${libname}${shared_ext}'
8919 dynamic_linker="$host_os ld.so"
8920 shlibpath_var=LIBRARY_PATH
8921 ;;
8922
8923bsdi4*)
8924 version_type=linux
8925 need_version=no
8926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8927 soname_spec='${libname}${release}${shared_ext}$major'
8928 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8929 shlibpath_var=LD_LIBRARY_PATH
8930 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8931 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8932 # the default ld.so.conf also contains /usr/contrib/lib and
8933 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8934 # libtool to hard-code these into programs
8935 ;;
8936
8937cygwin* | mingw* | pw32*)
8938 version_type=windows
8939 shrext_cmds=".dll"
8940 need_version=no
8941 need_lib_prefix=no
8942
8943 case $GCC,$host_os in
8944 yes,cygwin* | yes,mingw* | yes,pw32*)
8945 library_names_spec='$libname.dll.a'
8946 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8947 postinstall_cmds='base_file=`basename \${file}`~
8948 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8949 dldir=$destdir/`dirname \$dlpath`~
8950 test -d \$dldir || mkdir -p \$dldir~
8951 $install_prog $dir/$dlname \$dldir/$dlname'
8952 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8953 dlpath=$dir/\$dldll~
8954 $rm \$dlpath'
8955 shlibpath_overrides_runpath=yes
8956
8957 case $host_os in
8958 cygwin*)
8959 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8960 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8961 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8962 ;;
8963 mingw*)
8964 # MinGW DLLs use traditional 'lib' prefix
8965 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8966 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8967 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8968 # It is most probably a Windows format PATH printed by
8969 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8970 # path with ; separators, and with drive letters. We can handle the
8971 # drive letters (cygwin fileutils understands them), so leave them,
8972 # especially as we might pass files found there to a mingw objdump,
8973 # which wouldn't understand a cygwinified path. Ahh.
8974 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8975 else
8976 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8977 fi
8978 ;;
8979 pw32*)
8980 # pw32 DLLs use 'pw' prefix rather than 'lib'
8981 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8982 ;;
8983 esac
8984 ;;
8985
8986 *)
8987 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8988 ;;
8989 esac
8990 dynamic_linker='Win32 ld.exe'
8991 # FIXME: first we should search . and the directory the executable is in
8992 shlibpath_var=PATH
8993 ;;
8994
8995darwin* | rhapsody*)
8996 dynamic_linker="$host_os dyld"
8997 version_type=darwin
8998 need_lib_prefix=no
8999 need_version=no
9000 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9001 soname_spec='${libname}${release}${major}$shared_ext'
9002 shlibpath_overrides_runpath=yes
9003 shlibpath_var=DYLD_LIBRARY_PATH
9004 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9005 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9006 if test "$GCC" = yes; then
9007 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9008 else
9009 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9010 fi
9011 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9012 ;;
9013
9014dgux*)
9015 version_type=linux
9016 need_lib_prefix=no
9017 need_version=no
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9019 soname_spec='${libname}${release}${shared_ext}$major'
9020 shlibpath_var=LD_LIBRARY_PATH
9021 ;;
9022
9023freebsd1*)
9024 dynamic_linker=no
9025 ;;
9026
9027kfreebsd*-gnu)
9028 version_type=linux
9029 need_lib_prefix=no
9030 need_version=no
9031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9032 soname_spec='${libname}${release}${shared_ext}$major'
9033 shlibpath_var=LD_LIBRARY_PATH
9034 shlibpath_overrides_runpath=no
9035 hardcode_into_libs=yes
9036 dynamic_linker='GNU ld.so'
9037 ;;
9038
9039freebsd*)
9040 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9041 version_type=freebsd-$objformat
9042 case $version_type in
9043 freebsd-elf*)
9044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9045 need_version=no
9046 need_lib_prefix=no
9047 ;;
9048 freebsd-*)
9049 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9050 need_version=yes
9051 ;;
9052 esac
9053 shlibpath_var=LD_LIBRARY_PATH
9054 case $host_os in
9055 freebsd2*)
9056 shlibpath_overrides_runpath=yes
9057 ;;
9058 freebsd3.01* | freebsdelf3.01*)
9059 shlibpath_overrides_runpath=yes
9060 hardcode_into_libs=yes
9061 ;;
9062 *) # from 3.2 on
9063 shlibpath_overrides_runpath=no
9064 hardcode_into_libs=yes
9065 ;;
9066 esac
9067 ;;
9068
9069gnu*)
9070 version_type=linux
9071 need_lib_prefix=no
9072 need_version=no
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9074 soname_spec='${libname}${release}${shared_ext}$major'
9075 shlibpath_var=LD_LIBRARY_PATH
9076 hardcode_into_libs=yes
9077 ;;
9078
9079hpux9* | hpux10* | hpux11*)
9080 # Give a soname corresponding to the major version so that dld.sl refuses to
9081 # link against other versions.
9082 version_type=sunos
9083 need_lib_prefix=no
9084 need_version=no
9085 case "$host_cpu" in
9086 ia64*)
9087 shrext_cmds='.so'
9088 hardcode_into_libs=yes
9089 dynamic_linker="$host_os dld.so"
9090 shlibpath_var=LD_LIBRARY_PATH
9091 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9093 soname_spec='${libname}${release}${shared_ext}$major'
9094 if test "X$HPUX_IA64_MODE" = X32; then
9095 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9096 else
9097 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9098 fi
9099 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9100 ;;
9101 hppa*64*)
9102 shrext_cmds='.sl'
9103 hardcode_into_libs=yes
9104 dynamic_linker="$host_os dld.sl"
9105 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9106 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9108 soname_spec='${libname}${release}${shared_ext}$major'
9109 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9110 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9111 ;;
9112 *)
9113 shrext_cmds='.sl'
9114 dynamic_linker="$host_os dld.sl"
9115 shlibpath_var=SHLIB_PATH
9116 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9118 soname_spec='${libname}${release}${shared_ext}$major'
9119 ;;
9120 esac
9121 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9122 postinstall_cmds='chmod 555 $lib'
9123 ;;
9124
9125irix5* | irix6* | nonstopux*)
9126 case $host_os in
9127 nonstopux*) version_type=nonstopux ;;
9128 *)
9129 if test "$lt_cv_prog_gnu_ld" = yes; then
9130 version_type=linux
9131 else
9132 version_type=irix
9133 fi ;;
9134 esac
9135 need_lib_prefix=no
9136 need_version=no
9137 soname_spec='${libname}${release}${shared_ext}$major'
9138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9139 case $host_os in
9140 irix5* | nonstopux*)
9141 libsuff= shlibsuff=
9142 ;;
9143 *)
9144 case $LD in # libtool.m4 will add one of these switches to LD
9145 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9146 libsuff= shlibsuff= libmagic=32-bit;;
9147 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9148 libsuff=32 shlibsuff=N32 libmagic=N32;;
9149 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9150 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9151 *) libsuff= shlibsuff= libmagic=never-match;;
9152 esac
9153 ;;
9154 esac
9155 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9156 shlibpath_overrides_runpath=no
9157 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9158 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9159 hardcode_into_libs=yes
9160 ;;
9161
9162# No shared lib support for Linux oldld, aout, or coff.
9163linux*oldld* | linux*aout* | linux*coff*)
9164 dynamic_linker=no
9165 ;;
9166
9167# This must be Linux ELF.
9168linux*)
9169 version_type=linux
9170 need_lib_prefix=no
9171 need_version=no
9172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9173 soname_spec='${libname}${release}${shared_ext}$major'
9174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9175 shlibpath_var=LD_LIBRARY_PATH
9176 shlibpath_overrides_runpath=no
9177 # This implies no fast_install, which is unacceptable.
9178 # Some rework will be needed to allow for fast_install
9179 # before this can be enabled.
9180 hardcode_into_libs=yes
9181
9182 # Append ld.so.conf contents to the search path
9183 if test -f /etc/ld.so.conf; then
9184 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
9185 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9186 fi
9187
9188 # We used to test for /lib/ld.so.1 and disable shared libraries on
9189 # powerpc, because MkLinux only supported shared libraries with the
9190 # GNU dynamic linker. Since this was broken with cross compilers,
9191 # most powerpc-linux boxes support dynamic linking these days and
9192 # people can always --disable-shared, the test was removed, and we
9193 # assume the GNU/Linux dynamic linker is in use.
9194 dynamic_linker='GNU/Linux ld.so'
9195 ;;
9196
9197netbsdelf*-gnu)
9198 version_type=linux
9199 need_lib_prefix=no
9200 need_version=no
9201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9202 soname_spec='${libname}${release}${shared_ext}$major'
9203 shlibpath_var=LD_LIBRARY_PATH
9204 shlibpath_overrides_runpath=no
9205 hardcode_into_libs=yes
9206 dynamic_linker='NetBSD ld.elf_so'
9207 ;;
9208
9209knetbsd*-gnu)
9210 version_type=linux
9211 need_lib_prefix=no
9212 need_version=no
9213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9214 soname_spec='${libname}${release}${shared_ext}$major'
9215 shlibpath_var=LD_LIBRARY_PATH
9216 shlibpath_overrides_runpath=no
9217 hardcode_into_libs=yes
9218 dynamic_linker='GNU ld.so'
9219 ;;
9220
9221netbsd*)
9222 version_type=sunos
9223 need_lib_prefix=no
9224 need_version=no
9225 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9227 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9228 dynamic_linker='NetBSD (a.out) ld.so'
9229 else
9230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9231 soname_spec='${libname}${release}${shared_ext}$major'
9232 dynamic_linker='NetBSD ld.elf_so'
9233 fi
9234 shlibpath_var=LD_LIBRARY_PATH
9235 shlibpath_overrides_runpath=yes
9236 hardcode_into_libs=yes
9237 ;;
9238
9239newsos6)
9240 version_type=linux
9241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9242 shlibpath_var=LD_LIBRARY_PATH
9243 shlibpath_overrides_runpath=yes
9244 ;;
9245
9246nto-qnx*)
9247 version_type=linux
9248 need_lib_prefix=no
9249 need_version=no
9250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9251 soname_spec='${libname}${release}${shared_ext}$major'
9252 shlibpath_var=LD_LIBRARY_PATH
9253 shlibpath_overrides_runpath=yes
9254 ;;
9255
9256openbsd*)
9257 version_type=sunos
9258 need_lib_prefix=no
9259 need_version=yes
9260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9262 shlibpath_var=LD_LIBRARY_PATH
9263 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9264 case $host_os in
9265 openbsd2.[89] | openbsd2.[89].*)
9266 shlibpath_overrides_runpath=no
9267 ;;
9268 *)
9269 shlibpath_overrides_runpath=yes
9270 ;;
9271 esac
9272 else
9273 shlibpath_overrides_runpath=yes
9274 fi
9275 ;;
9276
9277os2*)
9278 libname_spec='$name'
9279 shrext_cmds=".dll"
9280 need_lib_prefix=no
9281 library_names_spec='$libname${shared_ext} $libname.a'
9282 dynamic_linker='OS/2 ld.exe'
9283 shlibpath_var=LIBPATH
9284 ;;
9285
9286osf3* | osf4* | osf5*)
9287 version_type=osf
9288 need_lib_prefix=no
9289 need_version=no
9290 soname_spec='${libname}${release}${shared_ext}$major'
9291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9292 shlibpath_var=LD_LIBRARY_PATH
9293 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9294 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9295 ;;
9296
9297sco3.2v5*)
9298 version_type=osf
9299 soname_spec='${libname}${release}${shared_ext}$major'
9300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9301 shlibpath_var=LD_LIBRARY_PATH
9302 ;;
9303
9304solaris*)
9305 version_type=linux
9306 need_lib_prefix=no
9307 need_version=no
9308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9309 soname_spec='${libname}${release}${shared_ext}$major'
9310 shlibpath_var=LD_LIBRARY_PATH
9311 shlibpath_overrides_runpath=yes
9312 hardcode_into_libs=yes
9313 # ldd complains unless libraries are executable
9314 postinstall_cmds='chmod +x $lib'
9315 ;;
9316
9317sunos4*)
9318 version_type=sunos
9319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9320 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9321 shlibpath_var=LD_LIBRARY_PATH
9322 shlibpath_overrides_runpath=yes
9323 if test "$with_gnu_ld" = yes; then
9324 need_lib_prefix=no
9325 fi
9326 need_version=yes
9327 ;;
9328
9329sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9330 version_type=linux
9331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9332 soname_spec='${libname}${release}${shared_ext}$major'
9333 shlibpath_var=LD_LIBRARY_PATH
9334 case $host_vendor in
9335 sni)
9336 shlibpath_overrides_runpath=no
9337 need_lib_prefix=no
9338 export_dynamic_flag_spec='${wl}-Blargedynsym'
9339 runpath_var=LD_RUN_PATH
9340 ;;
9341 siemens)
9342 need_lib_prefix=no
9343 ;;
9344 motorola)
9345 need_lib_prefix=no
9346 need_version=no
9347 shlibpath_overrides_runpath=no
9348 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9349 ;;
9350 esac
9351 ;;
9352
9353sysv4*MP*)
9354 if test -d /usr/nec ;then
9355 version_type=linux
9356 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9357 soname_spec='$libname${shared_ext}.$major'
9358 shlibpath_var=LD_LIBRARY_PATH
9359 fi
9360 ;;
9361
9362uts4*)
9363 version_type=linux
9364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9365 soname_spec='${libname}${release}${shared_ext}$major'
9366 shlibpath_var=LD_LIBRARY_PATH
9367 ;;
9368
9369*)
9370 dynamic_linker=no
9371 ;;
9372esac
9373{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9374echo "${ECHO_T}$dynamic_linker" >&6; }
9375test "$dynamic_linker" = no && can_build_shared=no
9376
9377{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9378echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9379hardcode_action=
9380if test -n "$hardcode_libdir_flag_spec" || \
9381 test -n "$runpath_var " || \
9382 test "X$hardcode_automatic"="Xyes" ; then
9383
9384 # We can hardcode non-existant directories.
9385 if test "$hardcode_direct" != no &&
9386 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9387 # have to relink, otherwise we might link with an installed library
9388 # when we should be linking with a yet-to-be-installed one
9389 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9390 test "$hardcode_minus_L" != no; then
9391 # Linking always hardcodes the temporary library directory.
9392 hardcode_action=relink
9393 else
9394 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9395 hardcode_action=immediate
9396 fi
9397else
9398 # We cannot hardcode anything, or else we can only hardcode existing
9399 # directories.
9400 hardcode_action=unsupported
9401fi
9402{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9403echo "${ECHO_T}$hardcode_action" >&6; }
9404
9405if test "$hardcode_action" = relink; then
9406 # Fast installation is not supported
9407 enable_fast_install=no
9408elif test "$shlibpath_overrides_runpath" = yes ||
9409 test "$enable_shared" = no; then
9410 # Fast installation is not necessary
9411 enable_fast_install=needless
9412fi
9413
9414striplib=
9415old_striplib=
9416{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9417echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9418if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9419 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9420 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9421 { echo "$as_me:$LINENO: result: yes" >&5
9422echo "${ECHO_T}yes" >&6; }
9423else
9424# FIXME - insert some real tests, host_os isn't really good enough
9425 case $host_os in
9426 darwin*)
9427 if test -n "$STRIP" ; then
9428 striplib="$STRIP -x"
9429 { echo "$as_me:$LINENO: result: yes" >&5
9430echo "${ECHO_T}yes" >&6; }
9431 else
9432 { echo "$as_me:$LINENO: result: no" >&5
9433echo "${ECHO_T}no" >&6; }
9434fi
9435 ;;
9436 *)
9437 { echo "$as_me:$LINENO: result: no" >&5
9438echo "${ECHO_T}no" >&6; }
9439 ;;
9440 esac
9441fi
9442
9443if test "x$enable_dlopen" != xyes; then
9444 enable_dlopen=unknown
9445 enable_dlopen_self=unknown
9446 enable_dlopen_self_static=unknown
9447else
9448 lt_cv_dlopen=no
9449 lt_cv_dlopen_libs=
9450
9451 case $host_os in
9452 beos*)
9453 lt_cv_dlopen="load_add_on"
9454 lt_cv_dlopen_libs=
9455 lt_cv_dlopen_self=yes
9456 ;;
9457
9458 mingw* | pw32*)
9459 lt_cv_dlopen="LoadLibrary"
9460 lt_cv_dlopen_libs=
9461 ;;
9462
9463 cygwin*)
9464 lt_cv_dlopen="dlopen"
9465 lt_cv_dlopen_libs=
9466 ;;
9467
9468 darwin*)
9469 # if libdl is installed we need to link against it
9470 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9471echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9472if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9474else
9475 ac_check_lib_save_LIBS=$LIBS
9476LIBS="-ldl $LIBS"
9477cat >conftest.$ac_ext <<_ACEOF
9478/* confdefs.h. */
9479_ACEOF
9480cat confdefs.h >>conftest.$ac_ext
9481cat >>conftest.$ac_ext <<_ACEOF
9482/* end confdefs.h. */
9483
9484/* Override any GCC internal prototype to avoid an error.
9485 Use char because int might match the return type of a GCC
9486 builtin and then its argument prototype would still apply. */
9487#ifdef __cplusplus
9488extern "C"
9489#endif
9490char dlopen ();
9491int
9492main ()
9493{
9494return dlopen ();
9495 ;
9496 return 0;
9497}
9498_ACEOF
9499rm -f conftest.$ac_objext conftest$ac_exeext
9500if { (ac_try="$ac_link"
9501case "(($ac_try" in
9502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9503 *) ac_try_echo=$ac_try;;
9504esac
9505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9506 (eval "$ac_link") 2>conftest.er1
9507 ac_status=$?
9508 grep -v '^ *+' conftest.er1 >conftest.err
9509 rm -f conftest.er1
9510 cat conftest.err >&5
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); } && {
9513 test -z "$ac_c_werror_flag" ||
9514 test ! -s conftest.err
9515 } && test -s conftest$ac_exeext &&
9516 $as_test_x conftest$ac_exeext; then
9517 ac_cv_lib_dl_dlopen=yes
9518else
9519 echo "$as_me: failed program was:" >&5
9520sed 's/^/| /' conftest.$ac_ext >&5
9521
9522 ac_cv_lib_dl_dlopen=no
9523fi
9524
9525rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9526 conftest$ac_exeext conftest.$ac_ext
9527LIBS=$ac_check_lib_save_LIBS
9528fi
9529{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9530echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9531if test $ac_cv_lib_dl_dlopen = yes; then
9532 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9533else
9534
9535 lt_cv_dlopen="dyld"
9536 lt_cv_dlopen_libs=
9537 lt_cv_dlopen_self=yes
9538
9539fi
9540
9541 ;;
9542
9543 *)
9544 { echo "$as_me:$LINENO: checking for shl_load" >&5
9545echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9546if test "${ac_cv_func_shl_load+set}" = set; then
9547 echo $ECHO_N "(cached) $ECHO_C" >&6
9548else
9549 cat >conftest.$ac_ext <<_ACEOF
9550/* confdefs.h. */
9551_ACEOF
9552cat confdefs.h >>conftest.$ac_ext
9553cat >>conftest.$ac_ext <<_ACEOF
9554/* end confdefs.h. */
9555/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9557#define shl_load innocuous_shl_load
9558
9559/* System header to define __stub macros and hopefully few prototypes,
9560 which can conflict with char shl_load (); below.
9561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9562 <limits.h> exists even on freestanding compilers. */
9563
9564#ifdef __STDC__
9565# include <limits.h>
9566#else
9567# include <assert.h>
9568#endif
9569
9570#undef shl_load
9571
9572/* Override any GCC internal prototype to avoid an error.
9573 Use char because int might match the return type of a GCC
9574 builtin and then its argument prototype would still apply. */
9575#ifdef __cplusplus
9576extern "C"
9577#endif
9578char shl_load ();
9579/* The GNU C library defines this for functions which it implements
9580 to always fail with ENOSYS. Some functions are actually named
9581 something starting with __ and the normal name is an alias. */
9582#if defined __stub_shl_load || defined __stub___shl_load
9583choke me
9584#endif
9585
9586int
9587main ()
9588{
9589return shl_load ();
9590 ;
9591 return 0;
9592}
9593_ACEOF
9594rm -f conftest.$ac_objext conftest$ac_exeext
9595if { (ac_try="$ac_link"
9596case "(($ac_try" in
9597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9598 *) ac_try_echo=$ac_try;;
9599esac
9600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9601 (eval "$ac_link") 2>conftest.er1
9602 ac_status=$?
9603 grep -v '^ *+' conftest.er1 >conftest.err
9604 rm -f conftest.er1
9605 cat conftest.err >&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); } && {
9608 test -z "$ac_c_werror_flag" ||
9609 test ! -s conftest.err
9610 } && test -s conftest$ac_exeext &&
9611 $as_test_x conftest$ac_exeext; then
9612 ac_cv_func_shl_load=yes
9613else
9614 echo "$as_me: failed program was:" >&5
9615sed 's/^/| /' conftest.$ac_ext >&5
9616
9617 ac_cv_func_shl_load=no
9618fi
9619
9620rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9621 conftest$ac_exeext conftest.$ac_ext
9622fi
9623{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9624echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9625if test $ac_cv_func_shl_load = yes; then
9626 lt_cv_dlopen="shl_load"
9627else
9628 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9629echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9630if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9631 echo $ECHO_N "(cached) $ECHO_C" >&6
9632else
9633 ac_check_lib_save_LIBS=$LIBS
9634LIBS="-ldld $LIBS"
9635cat >conftest.$ac_ext <<_ACEOF
9636/* confdefs.h. */
9637_ACEOF
9638cat confdefs.h >>conftest.$ac_ext
9639cat >>conftest.$ac_ext <<_ACEOF
9640/* end confdefs.h. */
9641
9642/* Override any GCC internal prototype to avoid an error.
9643 Use char because int might match the return type of a GCC
9644 builtin and then its argument prototype would still apply. */
9645#ifdef __cplusplus
9646extern "C"
9647#endif
9648char shl_load ();
9649int
9650main ()
9651{
9652return shl_load ();
9653 ;
9654 return 0;
9655}
9656_ACEOF
9657rm -f conftest.$ac_objext conftest$ac_exeext
9658if { (ac_try="$ac_link"
9659case "(($ac_try" in
9660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661 *) ac_try_echo=$ac_try;;
9662esac
9663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664 (eval "$ac_link") 2>conftest.er1
9665 ac_status=$?
9666 grep -v '^ *+' conftest.er1 >conftest.err
9667 rm -f conftest.er1
9668 cat conftest.err >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); } && {
9671 test -z "$ac_c_werror_flag" ||
9672 test ! -s conftest.err
9673 } && test -s conftest$ac_exeext &&
9674 $as_test_x conftest$ac_exeext; then
9675 ac_cv_lib_dld_shl_load=yes
9676else
9677 echo "$as_me: failed program was:" >&5
9678sed 's/^/| /' conftest.$ac_ext >&5
9679
9680 ac_cv_lib_dld_shl_load=no
9681fi
9682
9683rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9684 conftest$ac_exeext conftest.$ac_ext
9685LIBS=$ac_check_lib_save_LIBS
9686fi
9687{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9688echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9689if test $ac_cv_lib_dld_shl_load = yes; then
9690 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9691else
9692 { echo "$as_me:$LINENO: checking for dlopen" >&5
9693echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9694if test "${ac_cv_func_dlopen+set}" = set; then
9695 echo $ECHO_N "(cached) $ECHO_C" >&6
9696else
9697 cat >conftest.$ac_ext <<_ACEOF
9698/* confdefs.h. */
9699_ACEOF
9700cat confdefs.h >>conftest.$ac_ext
9701cat >>conftest.$ac_ext <<_ACEOF
9702/* end confdefs.h. */
9703/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9705#define dlopen innocuous_dlopen
9706
9707/* System header to define __stub macros and hopefully few prototypes,
9708 which can conflict with char dlopen (); below.
9709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9710 <limits.h> exists even on freestanding compilers. */
9711
9712#ifdef __STDC__
9713# include <limits.h>
9714#else
9715# include <assert.h>
9716#endif
9717
9718#undef dlopen
9719
9720/* Override any GCC internal prototype to avoid an error.
9721 Use char because int might match the return type of a GCC
9722 builtin and then its argument prototype would still apply. */
9723#ifdef __cplusplus
9724extern "C"
9725#endif
9726char dlopen ();
9727/* The GNU C library defines this for functions which it implements
9728 to always fail with ENOSYS. Some functions are actually named
9729 something starting with __ and the normal name is an alias. */
9730#if defined __stub_dlopen || defined __stub___dlopen
9731choke me
9732#endif
9733
9734int
9735main ()
9736{
9737return dlopen ();
9738 ;
9739 return 0;
9740}
9741_ACEOF
9742rm -f conftest.$ac_objext conftest$ac_exeext
9743if { (ac_try="$ac_link"
9744case "(($ac_try" in
9745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9746 *) ac_try_echo=$ac_try;;
9747esac
9748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9749 (eval "$ac_link") 2>conftest.er1
9750 ac_status=$?
9751 grep -v '^ *+' conftest.er1 >conftest.err
9752 rm -f conftest.er1
9753 cat conftest.err >&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } && {
9756 test -z "$ac_c_werror_flag" ||
9757 test ! -s conftest.err
9758 } && test -s conftest$ac_exeext &&
9759 $as_test_x conftest$ac_exeext; then
9760 ac_cv_func_dlopen=yes
9761else
9762 echo "$as_me: failed program was:" >&5
9763sed 's/^/| /' conftest.$ac_ext >&5
9764
9765 ac_cv_func_dlopen=no
9766fi
9767
9768rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9769 conftest$ac_exeext conftest.$ac_ext
9770fi
9771{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9772echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9773if test $ac_cv_func_dlopen = yes; then
9774 lt_cv_dlopen="dlopen"
9775else
9776 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9777echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9778if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9779 echo $ECHO_N "(cached) $ECHO_C" >&6
9780else
9781 ac_check_lib_save_LIBS=$LIBS
9782LIBS="-ldl $LIBS"
9783cat >conftest.$ac_ext <<_ACEOF
9784/* confdefs.h. */
9785_ACEOF
9786cat confdefs.h >>conftest.$ac_ext
9787cat >>conftest.$ac_ext <<_ACEOF
9788/* end confdefs.h. */
9789
9790/* Override any GCC internal prototype to avoid an error.
9791 Use char because int might match the return type of a GCC
9792 builtin and then its argument prototype would still apply. */
9793#ifdef __cplusplus
9794extern "C"
9795#endif
9796char dlopen ();
9797int
9798main ()
9799{
9800return dlopen ();
9801 ;
9802 return 0;
9803}
9804_ACEOF
9805rm -f conftest.$ac_objext conftest$ac_exeext
9806if { (ac_try="$ac_link"
9807case "(($ac_try" in
9808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809 *) ac_try_echo=$ac_try;;
9810esac
9811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812 (eval "$ac_link") 2>conftest.er1
9813 ac_status=$?
9814 grep -v '^ *+' conftest.er1 >conftest.err
9815 rm -f conftest.er1
9816 cat conftest.err >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } && {
9819 test -z "$ac_c_werror_flag" ||
9820 test ! -s conftest.err
9821 } && test -s conftest$ac_exeext &&
9822 $as_test_x conftest$ac_exeext; then
9823 ac_cv_lib_dl_dlopen=yes
9824else
9825 echo "$as_me: failed program was:" >&5
9826sed 's/^/| /' conftest.$ac_ext >&5
9827
9828 ac_cv_lib_dl_dlopen=no
9829fi
9830
9831rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9832 conftest$ac_exeext conftest.$ac_ext
9833LIBS=$ac_check_lib_save_LIBS
9834fi
9835{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9836echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9837if test $ac_cv_lib_dl_dlopen = yes; then
9838 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9839else
9840 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9841echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9842if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9843 echo $ECHO_N "(cached) $ECHO_C" >&6
9844else
9845 ac_check_lib_save_LIBS=$LIBS
9846LIBS="-lsvld $LIBS"
9847cat >conftest.$ac_ext <<_ACEOF
9848/* confdefs.h. */
9849_ACEOF
9850cat confdefs.h >>conftest.$ac_ext
9851cat >>conftest.$ac_ext <<_ACEOF
9852/* end confdefs.h. */
9853
9854/* Override any GCC internal prototype to avoid an error.
9855 Use char because int might match the return type of a GCC
9856 builtin and then its argument prototype would still apply. */
9857#ifdef __cplusplus
9858extern "C"
9859#endif
9860char dlopen ();
9861int
9862main ()
9863{
9864return dlopen ();
9865 ;
9866 return 0;
9867}
9868_ACEOF
9869rm -f conftest.$ac_objext conftest$ac_exeext
9870if { (ac_try="$ac_link"
9871case "(($ac_try" in
9872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9873 *) ac_try_echo=$ac_try;;
9874esac
9875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9876 (eval "$ac_link") 2>conftest.er1
9877 ac_status=$?
9878 grep -v '^ *+' conftest.er1 >conftest.err
9879 rm -f conftest.er1
9880 cat conftest.err >&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); } && {
9883 test -z "$ac_c_werror_flag" ||
9884 test ! -s conftest.err
9885 } && test -s conftest$ac_exeext &&
9886 $as_test_x conftest$ac_exeext; then
9887 ac_cv_lib_svld_dlopen=yes
9888else
9889 echo "$as_me: failed program was:" >&5
9890sed 's/^/| /' conftest.$ac_ext >&5
9891
9892 ac_cv_lib_svld_dlopen=no
9893fi
9894
9895rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9896 conftest$ac_exeext conftest.$ac_ext
9897LIBS=$ac_check_lib_save_LIBS
9898fi
9899{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9900echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9901if test $ac_cv_lib_svld_dlopen = yes; then
9902 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9903else
9904 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9905echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9906if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9907 echo $ECHO_N "(cached) $ECHO_C" >&6
9908else
9909 ac_check_lib_save_LIBS=$LIBS
9910LIBS="-ldld $LIBS"
9911cat >conftest.$ac_ext <<_ACEOF
9912/* confdefs.h. */
9913_ACEOF
9914cat confdefs.h >>conftest.$ac_ext
9915cat >>conftest.$ac_ext <<_ACEOF
9916/* end confdefs.h. */
9917
9918/* Override any GCC internal prototype to avoid an error.
9919 Use char because int might match the return type of a GCC
9920 builtin and then its argument prototype would still apply. */
9921#ifdef __cplusplus
9922extern "C"
9923#endif
9924char dld_link ();
9925int
9926main ()
9927{
9928return dld_link ();
9929 ;
9930 return 0;
9931}
9932_ACEOF
9933rm -f conftest.$ac_objext conftest$ac_exeext
9934if { (ac_try="$ac_link"
9935case "(($ac_try" in
9936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9937 *) ac_try_echo=$ac_try;;
9938esac
9939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9940 (eval "$ac_link") 2>conftest.er1
9941 ac_status=$?
9942 grep -v '^ *+' conftest.er1 >conftest.err
9943 rm -f conftest.er1
9944 cat conftest.err >&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); } && {
9947 test -z "$ac_c_werror_flag" ||
9948 test ! -s conftest.err
9949 } && test -s conftest$ac_exeext &&
9950 $as_test_x conftest$ac_exeext; then
9951 ac_cv_lib_dld_dld_link=yes
9952else
9953 echo "$as_me: failed program was:" >&5
9954sed 's/^/| /' conftest.$ac_ext >&5
9955
9956 ac_cv_lib_dld_dld_link=no
9957fi
9958
9959rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9960 conftest$ac_exeext conftest.$ac_ext
9961LIBS=$ac_check_lib_save_LIBS
9962fi
9963{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9964echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9965if test $ac_cv_lib_dld_dld_link = yes; then
9966 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9967fi
9968
9969
9970fi
9971
9972
9973fi
9974
9975
9976fi
9977
9978
9979fi
9980
9981
9982fi
9983
9984 ;;
9985 esac
9986
9987 if test "x$lt_cv_dlopen" != xno; then
9988 enable_dlopen=yes
9989 else
9990 enable_dlopen=no
9991 fi
9992
9993 case $lt_cv_dlopen in
9994 dlopen)
9995 save_CPPFLAGS="$CPPFLAGS"
9996 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9997
9998 save_LDFLAGS="$LDFLAGS"
9999 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10000
10001 save_LIBS="$LIBS"
10002 LIBS="$lt_cv_dlopen_libs $LIBS"
10003
10004 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10005echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10006if test "${lt_cv_dlopen_self+set}" = set; then
10007 echo $ECHO_N "(cached) $ECHO_C" >&6
10008else
10009 if test "$cross_compiling" = yes; then :
10010 lt_cv_dlopen_self=cross
10011else
10012 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10013 lt_status=$lt_dlunknown
10014 cat > conftest.$ac_ext <<EOF
10015#line 10015 "configure"
10016#include "confdefs.h"
10017
10018#if HAVE_DLFCN_H
10019#include <dlfcn.h>
10020#endif
10021
10022#include <stdio.h>
10023
10024#ifdef RTLD_GLOBAL
10025# define LT_DLGLOBAL RTLD_GLOBAL
10026#else
10027# ifdef DL_GLOBAL
10028# define LT_DLGLOBAL DL_GLOBAL
10029# else
10030# define LT_DLGLOBAL 0
10031# endif
10032#endif
10033
10034/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10035 find out it does not work in some platform. */
10036#ifndef LT_DLLAZY_OR_NOW
10037# ifdef RTLD_LAZY
10038# define LT_DLLAZY_OR_NOW RTLD_LAZY
10039# else
10040# ifdef DL_LAZY
10041# define LT_DLLAZY_OR_NOW DL_LAZY
10042# else
10043# ifdef RTLD_NOW
10044# define LT_DLLAZY_OR_NOW RTLD_NOW
10045# else
10046# ifdef DL_NOW
10047# define LT_DLLAZY_OR_NOW DL_NOW
10048# else
10049# define LT_DLLAZY_OR_NOW 0
10050# endif
10051# endif
10052# endif
10053# endif
10054#endif
10055
10056#ifdef __cplusplus
10057extern "C" void exit (int);
10058#endif
10059
10060void fnord() { int i=42;}
10061int main ()
10062{
10063 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10064 int status = $lt_dlunknown;
10065
10066 if (self)
10067 {
10068 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10069 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10070 /* dlclose (self); */
10071 }
10072
10073 exit (status);
10074}
10075EOF
10076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10077 (eval $ac_link) 2>&5
10078 ac_status=$?
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10081 (./conftest; exit; ) 2>/dev/null
10082 lt_status=$?
10083 case x$lt_status in
10084 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10085 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10086 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10087 esac
10088 else :
10089 # compilation failed
10090 lt_cv_dlopen_self=no
10091 fi
10092fi
10093rm -fr conftest*
10094
10095
10096fi
10097{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10098echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10099
10100 if test "x$lt_cv_dlopen_self" = xyes; then
10101 LDFLAGS="$LDFLAGS $link_static_flag"
10102 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10103echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10104if test "${lt_cv_dlopen_self_static+set}" = set; then
10105 echo $ECHO_N "(cached) $ECHO_C" >&6
10106else
10107 if test "$cross_compiling" = yes; then :
10108 lt_cv_dlopen_self_static=cross
10109else
10110 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10111 lt_status=$lt_dlunknown
10112 cat > conftest.$ac_ext <<EOF
10113#line 10113 "configure"
10114#include "confdefs.h"
10115
10116#if HAVE_DLFCN_H
10117#include <dlfcn.h>
10118#endif
10119
10120#include <stdio.h>
10121
10122#ifdef RTLD_GLOBAL
10123# define LT_DLGLOBAL RTLD_GLOBAL
10124#else
10125# ifdef DL_GLOBAL
10126# define LT_DLGLOBAL DL_GLOBAL
10127# else
10128# define LT_DLGLOBAL 0
10129# endif
10130#endif
10131
10132/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10133 find out it does not work in some platform. */
10134#ifndef LT_DLLAZY_OR_NOW
10135# ifdef RTLD_LAZY
10136# define LT_DLLAZY_OR_NOW RTLD_LAZY
10137# else
10138# ifdef DL_LAZY
10139# define LT_DLLAZY_OR_NOW DL_LAZY
10140# else
10141# ifdef RTLD_NOW
10142# define LT_DLLAZY_OR_NOW RTLD_NOW
10143# else
10144# ifdef DL_NOW
10145# define LT_DLLAZY_OR_NOW DL_NOW
10146# else
10147# define LT_DLLAZY_OR_NOW 0
10148# endif
10149# endif
10150# endif
10151# endif
10152#endif
10153
10154#ifdef __cplusplus
10155extern "C" void exit (int);
10156#endif
10157
10158void fnord() { int i=42;}
10159int main ()
10160{
10161 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10162 int status = $lt_dlunknown;
10163
10164 if (self)
10165 {
10166 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10167 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10168 /* dlclose (self); */
10169 }
10170
10171 exit (status);
10172}
10173EOF
10174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10175 (eval $ac_link) 2>&5
10176 ac_status=$?
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10179 (./conftest; exit; ) 2>/dev/null
10180 lt_status=$?
10181 case x$lt_status in
10182 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10183 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10184 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10185 esac
10186 else :
10187 # compilation failed
10188 lt_cv_dlopen_self_static=no
10189 fi
10190fi
10191rm -fr conftest*
10192
10193
10194fi
10195{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10196echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10197 fi
10198
10199 CPPFLAGS="$save_CPPFLAGS"
10200 LDFLAGS="$save_LDFLAGS"
10201 LIBS="$save_LIBS"
10202 ;;
10203 esac
10204
10205 case $lt_cv_dlopen_self in
10206 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10207 *) enable_dlopen_self=unknown ;;
10208 esac
10209
10210 case $lt_cv_dlopen_self_static in
10211 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10212 *) enable_dlopen_self_static=unknown ;;
10213 esac
10214fi
10215
10216
10217# Report which librarie types wil actually be built
10218{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10219echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10220{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10221echo "${ECHO_T}$can_build_shared" >&6; }
10222
10223{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10224echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10225test "$can_build_shared" = "no" && enable_shared=no
10226
10227# On AIX, shared libraries and static libraries use the same namespace, and
10228# are all built from PIC.
10229case "$host_os" in
10230aix3*)
10231 test "$enable_shared" = yes && enable_static=no
10232 if test -n "$RANLIB"; then
10233 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10234 postinstall_cmds='$RANLIB $lib'
10235 fi
10236 ;;
10237
10238aix4* | aix5*)
10239 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10240 test "$enable_shared" = yes && enable_static=no
10241 fi
10242 ;;
10243 darwin* | rhapsody*)
10244 if test "$GCC" = yes; then
10245 archive_cmds_need_lc=no
10246 case "$host_os" in
10247 rhapsody* | darwin1.[012])
10248 allow_undefined_flag='-undefined suppress'
10249 ;;
10250 *) # Darwin 1.3 on
10251 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10252 allow_undefined_flag='-flat_namespace -undefined suppress'
10253 else
10254 case ${MACOSX_DEPLOYMENT_TARGET} in
10255 10.[012])
10256 allow_undefined_flag='-flat_namespace -undefined suppress'
10257 ;;
10258 10.*)
10259 allow_undefined_flag='-undefined dynamic_lookup'
10260 ;;
10261 esac
10262 fi
10263 ;;
10264 esac
10265 output_verbose_link_cmd='echo'
10266 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
10267 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10268 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10269 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10270 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10271 hardcode_direct=no
10272 hardcode_automatic=yes
10273 hardcode_shlibpath_var=unsupported
10274 whole_archive_flag_spec='-all_load $convenience'
10275 link_all_deplibs=yes
10276 else
10277 ld_shlibs=no
10278 fi
10279 ;;
10280esac
10281{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10282echo "${ECHO_T}$enable_shared" >&6; }
10283
10284{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10285echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10286# Make sure either enable_shared or enable_static is yes.
10287test "$enable_shared" = yes || enable_static=yes
10288{ echo "$as_me:$LINENO: result: $enable_static" >&5
10289echo "${ECHO_T}$enable_static" >&6; }
10290
10291# The else clause should only fire when bootstrapping the
10292# libtool distribution, otherwise you forgot to ship ltmain.sh
10293# with your package, and you will get complaints that there are
10294# no rules to generate ltmain.sh.
10295if test -f "$ltmain"; then
10296 # See if we are running on zsh, and set the options which allow our commands through
10297 # without removal of \ escapes.
10298 if test -n "${ZSH_VERSION+set}" ; then
10299 setopt NO_GLOB_SUBST
10300 fi
10301 # Now quote all the things that may contain metacharacters while being
10302 # careful not to overquote the AC_SUBSTed values. We take copies of the
10303 # variables and quote the copies for generation of the libtool script.
10304 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10305 SED SHELL STRIP \
10306 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10307 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10308 deplibs_check_method reload_flag reload_cmds need_locks \
10309 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10310 lt_cv_sys_global_symbol_to_c_name_address \
10311 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10312 old_postinstall_cmds old_postuninstall_cmds \
10313 compiler \
10314 CC \
10315 LD \
10316 lt_prog_compiler_wl \
10317 lt_prog_compiler_pic \
10318 lt_prog_compiler_static \
10319 lt_prog_compiler_no_builtin_flag \
10320 export_dynamic_flag_spec \
10321 thread_safe_flag_spec \
10322 whole_archive_flag_spec \
10323 enable_shared_with_static_runtimes \
10324 old_archive_cmds \
10325 old_archive_from_new_cmds \
10326 predep_objects \
10327 postdep_objects \
10328 predeps \
10329 postdeps \
10330 compiler_lib_search_path \
10331 archive_cmds \
10332 archive_expsym_cmds \
10333 postinstall_cmds \
10334 postuninstall_cmds \
10335 old_archive_from_expsyms_cmds \
10336 allow_undefined_flag \
10337 no_undefined_flag \
10338 export_symbols_cmds \
10339 hardcode_libdir_flag_spec \
10340 hardcode_libdir_flag_spec_ld \
10341 hardcode_libdir_separator \
10342 hardcode_automatic \
10343 module_cmds \
10344 module_expsym_cmds \
10345 lt_cv_prog_compiler_c_o \
10346 exclude_expsyms \
10347 include_expsyms; do
10348
10349 case $var in
10350 old_archive_cmds | \
10351 old_archive_from_new_cmds | \
10352 archive_cmds | \
10353 archive_expsym_cmds | \
10354 module_cmds | \
10355 module_expsym_cmds | \
10356 old_archive_from_expsyms_cmds | \
10357 export_symbols_cmds | \
10358 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10359 postinstall_cmds | postuninstall_cmds | \
10360 old_postinstall_cmds | old_postuninstall_cmds | \
10361 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10362 # Double-quote double-evaled strings.
10363 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10364 ;;
10365 *)
10366 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10367 ;;
10368 esac
10369 done
10370
10371 case $lt_echo in
10372 *'\$0 --fallback-echo"')
10373 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10374 ;;
10375 esac
10376
10377cfgfile="${ofile}T"
10378 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10379 $rm -f "$cfgfile"
10380 { echo "$as_me:$LINENO: creating $ofile" >&5
10381echo "$as_me: creating $ofile" >&6;}
10382
10383 cat <<__EOF__ >> "$cfgfile"
10384#! $SHELL
10385
10386# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10387# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10388# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10389#
10390# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10391# Free Software Foundation, Inc.
10392#
10393# This file is part of GNU Libtool:
10394# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10395#
10396# This program is free software; you can redistribute it and/or modify
10397# it under the terms of the GNU General Public License as published by
10398# the Free Software Foundation; either version 2 of the License, or
10399# (at your option) any later version.
10400#
10401# This program is distributed in the hope that it will be useful, but
10402# WITHOUT ANY WARRANTY; without even the implied warranty of
10403# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10404# General Public License for more details.
10405#
10406# You should have received a copy of the GNU General Public License
10407# along with this program; if not, write to the Free Software
10408# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10409#
10410# As a special exception to the GNU General Public License, if you
10411# distribute this file as part of a program that contains a
10412# configuration script generated by Autoconf, you may include it under
10413# the same distribution terms that you use for the rest of that program.
10414
10415# A sed program that does not truncate output.
10416SED=$lt_SED
10417
10418# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10419Xsed="$SED -e s/^X//"
10420
10421# The HP-UX ksh and POSIX shell print the target directory to stdout
10422# if CDPATH is set.
10423if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
10424
10425# The names of the tagged configurations supported by this script.
10426available_tags=
10427
10428# ### BEGIN LIBTOOL CONFIG
10429
10430# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10431
10432# Shell to use when invoking shell scripts.
10433SHELL=$lt_SHELL
10434
10435# Whether or not to build shared libraries.
10436build_libtool_libs=$enable_shared
10437
10438# Whether or not to build static libraries.
10439build_old_libs=$enable_static
10440
10441# Whether or not to add -lc for building shared libraries.
10442build_libtool_need_lc=$archive_cmds_need_lc
10443
10444# Whether or not to disallow shared libs when runtime libs are static
10445allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10446
10447# Whether or not to optimize for fast installation.
10448fast_install=$enable_fast_install
10449
10450# The host system.
10451host_alias=$host_alias
10452host=$host
10453
10454# An echo program that does not interpret backslashes.
10455echo=$lt_echo
10456
10457# The archiver.
10458AR=$lt_AR
10459AR_FLAGS=$lt_AR_FLAGS
10460
10461# A C compiler.
10462LTCC=$lt_LTCC
10463
10464# A language-specific compiler.
10465CC=$lt_compiler
10466
10467# Is the compiler the GNU C compiler?
10468with_gcc=$GCC
10469
10470# An ERE matcher.
10471EGREP=$lt_EGREP
10472
10473# The linker used to build libraries.
10474LD=$lt_LD
10475
10476# Whether we need hard or soft links.
10477LN_S=$lt_LN_S
10478
10479# A BSD-compatible nm program.
10480NM=$lt_NM
10481
10482# A symbol stripping program
10483STRIP=$lt_STRIP
10484
10485# Used to examine libraries when file_magic_cmd begins "file"
10486MAGIC_CMD=$MAGIC_CMD
10487
10488# Used on cygwin: DLL creation program.
10489DLLTOOL="$DLLTOOL"
10490
10491# Used on cygwin: object dumper.
10492OBJDUMP="$OBJDUMP"
10493
10494# Used on cygwin: assembler.
10495AS="$AS"
10496
10497# The name of the directory that contains temporary libtool files.
10498objdir=$objdir
10499
10500# How to create reloadable object files.
10501reload_flag=$lt_reload_flag
10502reload_cmds=$lt_reload_cmds
10503
10504# How to pass a linker flag through the compiler.
10505wl=$lt_lt_prog_compiler_wl
10506
10507# Object file suffix (normally "o").
10508objext="$ac_objext"
10509
10510# Old archive suffix (normally "a").
10511libext="$libext"
10512
10513# Shared library suffix (normally ".so").
10514shrext_cmds='$shrext_cmds'
10515
10516# Executable file suffix (normally "").
10517exeext="$exeext"
10518
10519# Additional compiler flags for building library objects.
10520pic_flag=$lt_lt_prog_compiler_pic
10521pic_mode=$pic_mode
10522
10523# What is the maximum length of a command?
10524max_cmd_len=$lt_cv_sys_max_cmd_len
10525
10526# Does compiler simultaneously support -c and -o options?
10527compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10528
10529# Must we lock files when doing compilation ?
10530need_locks=$lt_need_locks
10531
10532# Do we need the lib prefix for modules?
10533need_lib_prefix=$need_lib_prefix
10534
10535# Do we need a version for libraries?
10536need_version=$need_version
10537
10538# Whether dlopen is supported.
10539dlopen_support=$enable_dlopen
10540
10541# Whether dlopen of programs is supported.
10542dlopen_self=$enable_dlopen_self
10543
10544# Whether dlopen of statically linked programs is supported.
10545dlopen_self_static=$enable_dlopen_self_static
10546
10547# Compiler flag to prevent dynamic linking.
10548link_static_flag=$lt_lt_prog_compiler_static
10549
10550# Compiler flag to turn off builtin functions.
10551no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10552
10553# Compiler flag to allow reflexive dlopens.
10554export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10555
10556# Compiler flag to generate shared objects directly from archives.
10557whole_archive_flag_spec=$lt_whole_archive_flag_spec
10558
10559# Compiler flag to generate thread-safe objects.
10560thread_safe_flag_spec=$lt_thread_safe_flag_spec
10561
10562# Library versioning type.
10563version_type=$version_type
10564
10565# Format of library name prefix.
10566libname_spec=$lt_libname_spec
10567
10568# List of archive names. First name is the real one, the rest are links.
10569# The last name is the one that the linker finds with -lNAME.
10570library_names_spec=$lt_library_names_spec
10571
10572# The coded name of the library, if different from the real name.
10573soname_spec=$lt_soname_spec
10574
10575# Commands used to build and install an old-style archive.
10576RANLIB=$lt_RANLIB
10577old_archive_cmds=$lt_old_archive_cmds
10578old_postinstall_cmds=$lt_old_postinstall_cmds
10579old_postuninstall_cmds=$lt_old_postuninstall_cmds
10580
10581# Create an old-style archive from a shared archive.
10582old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10583
10584# Create a temporary old-style archive to link instead of a shared archive.
10585old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10586
10587# Commands used to build and install a shared archive.
10588archive_cmds=$lt_archive_cmds
10589archive_expsym_cmds=$lt_archive_expsym_cmds
10590postinstall_cmds=$lt_postinstall_cmds
10591postuninstall_cmds=$lt_postuninstall_cmds
10592
10593# Commands used to build a loadable module (assumed same as above if empty)
10594module_cmds=$lt_module_cmds
10595module_expsym_cmds=$lt_module_expsym_cmds
10596
10597# Commands to strip libraries.
10598old_striplib=$lt_old_striplib
10599striplib=$lt_striplib
10600
10601# Dependencies to place before the objects being linked to create a
10602# shared library.
10603predep_objects=$lt_predep_objects
10604
10605# Dependencies to place after the objects being linked to create a
10606# shared library.
10607postdep_objects=$lt_postdep_objects
10608
10609# Dependencies to place before the objects being linked to create a
10610# shared library.
10611predeps=$lt_predeps
10612
10613# Dependencies to place after the objects being linked to create a
10614# shared library.
10615postdeps=$lt_postdeps
10616
10617# The library search path used internally by the compiler when linking
10618# a shared library.
10619compiler_lib_search_path=$lt_compiler_lib_search_path
10620
10621# Method to check whether dependent libraries are shared objects.
10622deplibs_check_method=$lt_deplibs_check_method
10623
10624# Command to use when deplibs_check_method == file_magic.
10625file_magic_cmd=$lt_file_magic_cmd
10626
10627# Flag that allows shared libraries with undefined symbols to be built.
10628allow_undefined_flag=$lt_allow_undefined_flag
10629
10630# Flag that forces no undefined symbols.
10631no_undefined_flag=$lt_no_undefined_flag
10632
10633# Commands used to finish a libtool library installation in a directory.
10634finish_cmds=$lt_finish_cmds
10635
10636# Same as above, but a single script fragment to be evaled but not shown.
10637finish_eval=$lt_finish_eval
10638
10639# Take the output of nm and produce a listing of raw symbols and C names.
10640global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10641
10642# Transform the output of nm in a proper C declaration
10643global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10644
10645# Transform the output of nm in a C name address pair
10646global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10647
10648# This is the shared library runtime path variable.
10649runpath_var=$runpath_var
10650
10651# This is the shared library path variable.
10652shlibpath_var=$shlibpath_var
10653
10654# Is shlibpath searched before the hard-coded library search path?
10655shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10656
10657# How to hardcode a shared library path into an executable.
10658hardcode_action=$hardcode_action
10659
10660# Whether we should hardcode library paths into libraries.
10661hardcode_into_libs=$hardcode_into_libs
10662
10663# Flag to hardcode \$libdir into a binary during linking.
10664# This must work even if \$libdir does not exist.
10665hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10666
10667# If ld is used when linking, flag to hardcode \$libdir into
10668# a binary during linking. This must work even if \$libdir does
10669# not exist.
10670hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10671
10672# Whether we need a single -rpath flag with a separated argument.
10673hardcode_libdir_separator=$lt_hardcode_libdir_separator
10674
10675# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10676# resulting binary.
10677hardcode_direct=$hardcode_direct
10678
10679# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10680# resulting binary.
10681hardcode_minus_L=$hardcode_minus_L
10682
10683# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10684# the resulting binary.
10685hardcode_shlibpath_var=$hardcode_shlibpath_var
10686
10687# Set to yes if building a shared library automatically hardcodes DIR into the library
10688# and all subsequent libraries and executables linked against it.
10689hardcode_automatic=$hardcode_automatic
10690
10691# Variables whose values should be saved in libtool wrapper scripts and
10692# restored at relink time.
10693variables_saved_for_relink="$variables_saved_for_relink"
10694
10695# Whether libtool must link a program against all its dependency libraries.
10696link_all_deplibs=$link_all_deplibs
10697
10698# Compile-time system search path for libraries
10699sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10700
10701# Run-time system search path for libraries
10702sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10703
10704# Fix the shell variable \$srcfile for the compiler.
10705fix_srcfile_path="$fix_srcfile_path"
10706
10707# Set to yes if exported symbols are required.
10708always_export_symbols=$always_export_symbols
10709
10710# The commands to list exported symbols.
10711export_symbols_cmds=$lt_export_symbols_cmds
10712
10713# The commands to extract the exported symbol list from a shared archive.
10714extract_expsyms_cmds=$lt_extract_expsyms_cmds
10715
10716# Symbols that should not be listed in the preloaded symbols.
10717exclude_expsyms=$lt_exclude_expsyms
10718
10719# Symbols that must always be exported.
10720include_expsyms=$lt_include_expsyms
10721
10722# ### END LIBTOOL CONFIG
10723
10724__EOF__
10725
10726
10727 case $host_os in
10728 aix3*)
10729 cat <<\EOF >> "$cfgfile"
10730
10731# AIX sometimes has problems with the GCC collect2 program. For some
10732# reason, if we set the COLLECT_NAMES environment variable, the problems
10733# vanish in a puff of smoke.
10734if test "X${COLLECT_NAMES+set}" != Xset; then
10735 COLLECT_NAMES=
10736 export COLLECT_NAMES
10737fi
10738EOF
10739 ;;
10740 esac
10741
10742 # We use sed instead of cat because bash on DJGPP gets confused if
10743 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10744 # text mode, it properly converts lines to CR/LF. This bash problem
10745 # is reportedly fixed, but why not run on old versions too?
10746 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10747
10748 mv -f "$cfgfile" "$ofile" || \
10749 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10750 chmod +x "$ofile"
10751
10752else
10753 # If there is no Makefile yet, we rely on a make rule to execute
10754 # `config.status --recheck' to rerun these tests and create the
10755 # libtool script then.
10756 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10757 if test -f "$ltmain_in"; then
10758 test -f Makefile && make "$ltmain"
10759 fi
10760fi
10761
10762
10763ac_ext=c
10764ac_cpp='$CPP $CPPFLAGS'
10765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10767ac_compiler_gnu=$ac_cv_c_compiler_gnu
10768
10769CC="$lt_save_CC"
10770
10771
10772# Check whether --with-tags was given.
10773if test "${with_tags+set}" = set; then
10774 withval=$with_tags; tagnames="$withval"
10775fi
10776
10777
10778if test -f "$ltmain" && test -n "$tagnames"; then
10779 if test ! -f "${ofile}"; then
10780 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10781echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10782 fi
10783
10784 if test -z "$LTCC"; then
10785 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10786 if test -z "$LTCC"; then
10787 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10788echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10789 else
10790 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10791echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10792 fi
10793 fi
10794
10795 # Extract list of available tagged configurations in $ofile.
10796 # Note that this assumes the entire list is on one line.
10797 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10798
10799 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10800 for tagname in $tagnames; do
10801 IFS="$lt_save_ifs"
10802 # Check whether tagname contains only valid characters
10803 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10804 "") ;;
10805 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10806echo "$as_me: error: invalid tag name: $tagname" >&2;}
10807 { (exit 1); exit 1; }; }
10808 ;;
10809 esac
10810
10811 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10812 then
10813 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10814echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10815 { (exit 1); exit 1; }; }
10816 fi
10817
10818 # Update the list of available tags.
10819 if test -n "$tagname"; then
10820 echo appending configuration tag \"$tagname\" to $ofile
10821
10822 case $tagname in
10823 CXX)
10824 if test -n "$CXX" && test "X$CXX" != "Xno"; then
10825 ac_ext=cpp
10826ac_cpp='$CXXCPP $CPPFLAGS'
10827ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10828ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10829ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10830
10831
10832
10833
10834archive_cmds_need_lc_CXX=no
10835allow_undefined_flag_CXX=
10836always_export_symbols_CXX=no
10837archive_expsym_cmds_CXX=
10838export_dynamic_flag_spec_CXX=
10839hardcode_direct_CXX=no
10840hardcode_libdir_flag_spec_CXX=
10841hardcode_libdir_flag_spec_ld_CXX=
10842hardcode_libdir_separator_CXX=
10843hardcode_minus_L_CXX=no
10844hardcode_automatic_CXX=no
10845module_cmds_CXX=
10846module_expsym_cmds_CXX=
10847link_all_deplibs_CXX=unknown
10848old_archive_cmds_CXX=$old_archive_cmds
10849no_undefined_flag_CXX=
10850whole_archive_flag_spec_CXX=
10851enable_shared_with_static_runtimes_CXX=no
10852
10853# Dependencies to place before and after the object being linked:
10854predep_objects_CXX=
10855postdep_objects_CXX=
10856predeps_CXX=
10857postdeps_CXX=
10858compiler_lib_search_path_CXX=
10859
10860# Source file extension for C++ test sources.
10861ac_ext=cc
10862
10863# Object file extension for compiled C++ test sources.
10864objext=o
10865objext_CXX=$objext
10866
10867# Code to be used in simple compile tests
10868lt_simple_compile_test_code="int some_variable = 0;\n"
10869
10870# Code to be used in simple link tests
10871lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10872
10873# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10874
10875# If no C compiler was specified, use CC.
10876LTCC=${LTCC-"$CC"}
10877
10878# Allow CC to be a program name with arguments.
10879compiler=$CC
10880
10881
10882# Allow CC to be a program name with arguments.
10883lt_save_CC=$CC
10884lt_save_LD=$LD
10885lt_save_GCC=$GCC
10886GCC=$GXX
10887lt_save_with_gnu_ld=$with_gnu_ld
10888lt_save_path_LD=$lt_cv_path_LD
10889if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10890 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10891else
10892 unset lt_cv_prog_gnu_ld
10893fi
10894if test -n "${lt_cv_path_LDCXX+set}"; then
10895 lt_cv_path_LD=$lt_cv_path_LDCXX
10896else
10897 unset lt_cv_path_LD
10898fi
10899test -z "${LDCXX+set}" || LD=$LDCXX
10900CC=${CXX-"c++"}
10901compiler=$CC
10902compiler_CXX=$CC
10903cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10904
10905# We don't want -fno-exception wen compiling C++ code, so set the
10906# no_builtin_flag separately
10907if test "$GXX" = yes; then
10908 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10909else
10910 lt_prog_compiler_no_builtin_flag_CXX=
10911fi
10912
10913if test "$GXX" = yes; then
10914 # Set up default GNU C++ configuration
10915
10916
10917# Check whether --with-gnu-ld was given.
10918if test "${with_gnu_ld+set}" = set; then
10919 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10920else
10921 with_gnu_ld=no
10922fi
10923
10924ac_prog=ld
10925if test "$GCC" = yes; then
10926 # Check if gcc -print-prog-name=ld gives a path.
10927 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10928echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10929 case $host in
10930 *-*-mingw*)
10931 # gcc leaves a trailing carriage return which upsets mingw
10932 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10933 *)
10934 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10935 esac
10936 case $ac_prog in
10937 # Accept absolute paths.
10938 [\\/]* | ?:[\\/]*)
10939 re_direlt='/[^/][^/]*/\.\./'
10940 # Canonicalize the pathname of ld
10941 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10942 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10943 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10944 done
10945 test -z "$LD" && LD="$ac_prog"
10946 ;;
10947 "")
10948 # If it fails, then pretend we aren't using GCC.
10949 ac_prog=ld
10950 ;;
10951 *)
10952 # If it is relative, then search for the first ld in PATH.
10953 with_gnu_ld=unknown
10954 ;;
10955 esac
10956elif test "$with_gnu_ld" = yes; then
10957 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10958echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10959else
10960 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10961echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10962fi
10963if test "${lt_cv_path_LD+set}" = set; then
10964 echo $ECHO_N "(cached) $ECHO_C" >&6
10965else
10966 if test -z "$LD"; then
10967 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10968 for ac_dir in $PATH; do
10969 IFS="$lt_save_ifs"
10970 test -z "$ac_dir" && ac_dir=.
10971 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10972 lt_cv_path_LD="$ac_dir/$ac_prog"
10973 # Check to see if the program is GNU ld. I'd rather use --version,
10974 # but apparently some GNU ld's only accept -v.
10975 # Break only if it was the GNU/non-GNU ld that we prefer.
10976 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10977 *GNU* | *'with BFD'*)
10978 test "$with_gnu_ld" != no && break
10979 ;;
10980 *)
10981 test "$with_gnu_ld" != yes && break
10982 ;;
10983 esac
10984 fi
10985 done
10986 IFS="$lt_save_ifs"
10987else
10988 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10989fi
10990fi
10991
10992LD="$lt_cv_path_LD"
10993if test -n "$LD"; then
10994 { echo "$as_me:$LINENO: result: $LD" >&5
10995echo "${ECHO_T}$LD" >&6; }
10996else
10997 { echo "$as_me:$LINENO: result: no" >&5
10998echo "${ECHO_T}no" >&6; }
10999fi
11000test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11001echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11002 { (exit 1); exit 1; }; }
11003{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11004echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11005if test "${lt_cv_prog_gnu_ld+set}" = set; then
11006 echo $ECHO_N "(cached) $ECHO_C" >&6
11007else
11008 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11009case `$LD -v 2>&1 </dev/null` in
11010*GNU* | *'with BFD'*)
11011 lt_cv_prog_gnu_ld=yes
11012 ;;
11013*)
11014 lt_cv_prog_gnu_ld=no
11015 ;;
11016esac
11017fi
11018{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11019echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11020with_gnu_ld=$lt_cv_prog_gnu_ld
11021
11022
11023
11024 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11025 # archiving commands below assume that GNU ld is being used.
11026 if test "$with_gnu_ld" = yes; then
11027 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11028 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11029
11030 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11031 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11032
11033 # If archive_cmds runs LD, not CC, wlarc should be empty
11034 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11035 # investigate it a little bit more. (MM)
11036 wlarc='${wl}'
11037
11038 # ancient GNU ld didn't support --whole-archive et. al.
11039 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11040 grep 'no-whole-archive' > /dev/null; then
11041 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11042 else
11043 whole_archive_flag_spec_CXX=
11044 fi
11045 else
11046 with_gnu_ld=no
11047 wlarc=
11048
11049 # A generic and very simple default shared library creation
11050 # command for GNU C++ for the case where it uses the native
11051 # linker, instead of GNU ld. If possible, this setting should
11052 # overridden to take advantage of the native linker features on
11053 # the platform it is being used on.
11054 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11055 fi
11056
11057 # Commands to make compiler produce verbose output that lists
11058 # what "hidden" libraries, object files and flags are used when
11059 # linking a shared library.
11060 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11061
11062else
11063 GXX=no
11064 with_gnu_ld=no
11065 wlarc=
11066fi
11067
11068# PORTME: fill in a description of your system's C++ link characteristics
11069{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11070echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11071ld_shlibs_CXX=yes
11072case $host_os in
11073 aix3*)
11074 # FIXME: insert proper C++ library support
11075 ld_shlibs_CXX=no
11076 ;;
11077 aix4* | aix5*)
11078 if test "$host_cpu" = ia64; then
11079 # On IA64, the linker does run time linking by default, so we don't
11080 # have to do anything special.
11081 aix_use_runtimelinking=no
11082 exp_sym_flag='-Bexport'
11083 no_entry_flag=""
11084 else
11085 aix_use_runtimelinking=no
11086
11087 # Test if we are trying to use run time linking or normal
11088 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11089 # need to do runtime linking.
11090 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11091 for ld_flag in $LDFLAGS; do
11092 case $ld_flag in
11093 *-brtl*)
11094 aix_use_runtimelinking=yes
11095 break
11096 ;;
11097 esac
11098 done
11099 esac
11100
11101 exp_sym_flag='-bexport'
11102 no_entry_flag='-bnoentry'
11103 fi
11104
11105 # When large executables or shared objects are built, AIX ld can
11106 # have problems creating the table of contents. If linking a library
11107 # or program results in "error TOC overflow" add -mminimal-toc to
11108 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11109 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11110
11111 archive_cmds_CXX=''
11112 hardcode_direct_CXX=yes
11113 hardcode_libdir_separator_CXX=':'
11114 link_all_deplibs_CXX=yes
11115
11116 if test "$GXX" = yes; then
11117 case $host_os in aix4.012|aix4.012.*)
11118 # We only want to do this on AIX 4.2 and lower, the check
11119 # below for broken collect2 doesn't work under 4.3+
11120 collect2name=`${CC} -print-prog-name=collect2`
11121 if test -f "$collect2name" && \
11122 strings "$collect2name" | grep resolve_lib_name >/dev/null
11123 then
11124 # We have reworked collect2
11125 hardcode_direct_CXX=yes
11126 else
11127 # We have old collect2
11128 hardcode_direct_CXX=unsupported
11129 # It fails to find uninstalled libraries when the uninstalled
11130 # path is not listed in the libpath. Setting hardcode_minus_L
11131 # to unsupported forces relinking
11132 hardcode_minus_L_CXX=yes
11133 hardcode_libdir_flag_spec_CXX='-L$libdir'
11134 hardcode_libdir_separator_CXX=
11135 fi
11136 esac
11137 shared_flag='-shared'
11138 else
11139 # not using gcc
11140 if test "$host_cpu" = ia64; then
11141 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11142 # chokes on -Wl,-G. The following line is correct:
11143 shared_flag='-G'
11144 else
11145 if test "$aix_use_runtimelinking" = yes; then
11146 shared_flag='${wl}-G'
11147 else
11148 shared_flag='${wl}-bM:SRE'
11149 fi
11150 fi
11151 fi
11152
11153 # It seems that -bexpall does not export symbols beginning with
11154 # underscore (_), so it is better to generate a list of symbols to export.
11155 always_export_symbols_CXX=yes
11156 if test "$aix_use_runtimelinking" = yes; then
11157 # Warning - without using the other runtime loading flags (-brtl),
11158 # -berok will link without error, but may produce a broken library.
11159 allow_undefined_flag_CXX='-berok'
11160 # Determine the default libpath from the value encoded in an empty executable.
11161 cat >conftest.$ac_ext <<_ACEOF
11162/* confdefs.h. */
11163_ACEOF
11164cat confdefs.h >>conftest.$ac_ext
11165cat >>conftest.$ac_ext <<_ACEOF
11166/* end confdefs.h. */
11167
11168int
11169main ()
11170{
11171
11172 ;
11173 return 0;
11174}
11175_ACEOF
11176rm -f conftest.$ac_objext conftest$ac_exeext
11177if { (ac_try="$ac_link"
11178case "(($ac_try" in
11179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11180 *) ac_try_echo=$ac_try;;
11181esac
11182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183 (eval "$ac_link") 2>conftest.er1
11184 ac_status=$?
11185 grep -v '^ *+' conftest.er1 >conftest.err
11186 rm -f conftest.er1
11187 cat conftest.err >&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } && {
11190 test -z "$ac_cxx_werror_flag" ||
11191 test ! -s conftest.err
11192 } && test -s conftest$ac_exeext &&
11193 $as_test_x conftest$ac_exeext; then
11194
11195aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11196}'`
11197# Check for a 64-bit object if we didn't find anything.
11198if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11199}'`; fi
11200else
11201 echo "$as_me: failed program was:" >&5
11202sed 's/^/| /' conftest.$ac_ext >&5
11203
11204
11205fi
11206
11207rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11208 conftest$ac_exeext conftest.$ac_ext
11209if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11210
11211 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11212
11213 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11214 else
11215 if test "$host_cpu" = ia64; then
11216 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11217 allow_undefined_flag_CXX="-z nodefs"
11218 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11219 else
11220 # Determine the default libpath from the value encoded in an empty executable.
11221 cat >conftest.$ac_ext <<_ACEOF
11222/* confdefs.h. */
11223_ACEOF
11224cat confdefs.h >>conftest.$ac_ext
11225cat >>conftest.$ac_ext <<_ACEOF
11226/* end confdefs.h. */
11227
11228int
11229main ()
11230{
11231
11232 ;
11233 return 0;
11234}
11235_ACEOF
11236rm -f conftest.$ac_objext conftest$ac_exeext
11237if { (ac_try="$ac_link"
11238case "(($ac_try" in
11239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11240 *) ac_try_echo=$ac_try;;
11241esac
11242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11243 (eval "$ac_link") 2>conftest.er1
11244 ac_status=$?
11245 grep -v '^ *+' conftest.er1 >conftest.err
11246 rm -f conftest.er1
11247 cat conftest.err >&5
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); } && {
11250 test -z "$ac_cxx_werror_flag" ||
11251 test ! -s conftest.err
11252 } && test -s conftest$ac_exeext &&
11253 $as_test_x conftest$ac_exeext; then
11254
11255aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11256}'`
11257# Check for a 64-bit object if we didn't find anything.
11258if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11259}'`; fi
11260else
11261 echo "$as_me: failed program was:" >&5
11262sed 's/^/| /' conftest.$ac_ext >&5
11263
11264
11265fi
11266
11267rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11268 conftest$ac_exeext conftest.$ac_ext
11269if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11270
11271 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11272 # Warning - without using the other run time loading flags,
11273 # -berok will link without error, but may produce a broken library.
11274 no_undefined_flag_CXX=' ${wl}-bernotok'
11275 allow_undefined_flag_CXX=' ${wl}-berok'
11276 # -bexpall does not export symbols beginning with underscore (_)
11277 always_export_symbols_CXX=yes
11278 # Exported symbols can be pulled into shared objects from archives
11279 whole_archive_flag_spec_CXX=' '
11280 archive_cmds_need_lc_CXX=yes
11281 # This is similar to how AIX traditionally builds it's shared libraries.
11282 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11283 fi
11284 fi
11285 ;;
11286 chorus*)
11287 case $cc_basename in
11288 *)
11289 # FIXME: insert proper C++ library support
11290 ld_shlibs_CXX=no
11291 ;;
11292 esac
11293 ;;
11294
11295 cygwin* | mingw* | pw32*)
11296 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11297 # as there is no search path for DLLs.
11298 hardcode_libdir_flag_spec_CXX='-L$libdir'
11299 allow_undefined_flag_CXX=unsupported
11300 always_export_symbols_CXX=no
11301 enable_shared_with_static_runtimes_CXX=yes
11302
11303 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11304 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11305 # If the export-symbols file already is a .def file (1st line
11306 # is EXPORTS), use it as is; otherwise, prepend...
11307 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11308 cp $export_symbols $output_objdir/$soname.def;
11309 else
11310 echo EXPORTS > $output_objdir/$soname.def;
11311 cat $export_symbols >> $output_objdir/$soname.def;
11312 fi~
11313 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11314 else
11315 ld_shlibs_CXX=no
11316 fi
11317 ;;
11318
11319 darwin* | rhapsody*)
11320 if test "$GXX" = yes; then
11321 archive_cmds_need_lc_CXX=no
11322 case "$host_os" in
11323 rhapsody* | darwin1.[012])
11324 allow_undefined_flag_CXX='-undefined suppress'
11325 ;;
11326 *) # Darwin 1.3 on
11327 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11328 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11329 else
11330 case ${MACOSX_DEPLOYMENT_TARGET} in
11331 10.[012])
11332 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11333 ;;
11334 10.*)
11335 allow_undefined_flag_CXX='-undefined dynamic_lookup'
11336 ;;
11337 esac
11338 fi
11339 ;;
11340 esac
11341 lt_int_apple_cc_single_mod=no
11342 output_verbose_link_cmd='echo'
11343 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
11344 lt_int_apple_cc_single_mod=yes
11345 fi
11346 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11347 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11348 else
11349 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11350 fi
11351 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11352
11353 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11354 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11355 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11356 else
11357 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11358 fi
11359 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11360 hardcode_direct_CXX=no
11361 hardcode_automatic_CXX=yes
11362 hardcode_shlibpath_var_CXX=unsupported
11363 whole_archive_flag_spec_CXX='-all_load $convenience'
11364 link_all_deplibs_CXX=yes
11365 else
11366 ld_shlibs_CXX=no
11367 fi
11368 ;;
11369
11370 dgux*)
11371 case $cc_basename in
11372 ec++)
11373 # FIXME: insert proper C++ library support
11374 ld_shlibs_CXX=no
11375 ;;
11376 ghcx)
11377 # Green Hills C++ Compiler
11378 # FIXME: insert proper C++ library support
11379 ld_shlibs_CXX=no
11380 ;;
11381 *)
11382 # FIXME: insert proper C++ library support
11383 ld_shlibs_CXX=no
11384 ;;
11385 esac
11386 ;;
11387 freebsd12*)
11388 # C++ shared libraries reported to be fairly broken before switch to ELF
11389 ld_shlibs_CXX=no
11390 ;;
11391 freebsd-elf*)
11392 archive_cmds_need_lc_CXX=no
11393 ;;
11394 freebsd* | kfreebsd*-gnu)
11395 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11396 # conventions
11397 ld_shlibs_CXX=yes
11398 ;;
11399 gnu*)
11400 ;;
11401 hpux9*)
11402 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11403 hardcode_libdir_separator_CXX=:
11404 export_dynamic_flag_spec_CXX='${wl}-E'
11405 hardcode_direct_CXX=yes
11406 hardcode_minus_L_CXX=yes # Not in the search PATH,
11407 # but as the default
11408 # location of the library.
11409
11410 case $cc_basename in
11411 CC)
11412 # FIXME: insert proper C++ library support
11413 ld_shlibs_CXX=no
11414 ;;
11415 aCC)
11416 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11417 # Commands to make compiler produce verbose output that lists
11418 # what "hidden" libraries, object files and flags are used when
11419 # linking a shared library.
11420 #
11421 # There doesn't appear to be a way to prevent this compiler from
11422 # explicitly linking system object files so we need to strip them
11423 # from the output so that they don't get included in the library
11424 # dependencies.
11425 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11426 ;;
11427 *)
11428 if test "$GXX" = yes; then
11429 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11430 else
11431 # FIXME: insert proper C++ library support
11432 ld_shlibs_CXX=no
11433 fi
11434 ;;
11435 esac
11436 ;;
11437 hpux10*|hpux11*)
11438 if test $with_gnu_ld = no; then
11439 case "$host_cpu" in
11440 hppa*64*)
11441 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11442 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11443 hardcode_libdir_separator_CXX=:
11444 ;;
11445 ia64*)
11446 hardcode_libdir_flag_spec_CXX='-L$libdir'
11447 ;;
11448 *)
11449 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11450 hardcode_libdir_separator_CXX=:
11451 export_dynamic_flag_spec_CXX='${wl}-E'
11452 ;;
11453 esac
11454 fi
11455 case "$host_cpu" in
11456 hppa*64*)
11457 hardcode_direct_CXX=no
11458 hardcode_shlibpath_var_CXX=no
11459 ;;
11460 ia64*)
11461 hardcode_direct_CXX=no
11462 hardcode_shlibpath_var_CXX=no
11463 hardcode_minus_L_CXX=yes # Not in the search PATH,
11464 # but as the default
11465 # location of the library.
11466 ;;
11467 *)
11468 hardcode_direct_CXX=yes
11469 hardcode_minus_L_CXX=yes # Not in the search PATH,
11470 # but as the default
11471 # location of the library.
11472 ;;
11473 esac
11474
11475 case $cc_basename in
11476 CC)
11477 # FIXME: insert proper C++ library support
11478 ld_shlibs_CXX=no
11479 ;;
11480 aCC)
11481 case "$host_cpu" in
11482 hppa*64*|ia64*)
11483 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11484 ;;
11485 *)
11486 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11487 ;;
11488 esac
11489 # Commands to make compiler produce verbose output that lists
11490 # what "hidden" libraries, object files and flags are used when
11491 # linking a shared library.
11492 #
11493 # There doesn't appear to be a way to prevent this compiler from
11494 # explicitly linking system object files so we need to strip them
11495 # from the output so that they don't get included in the library
11496 # dependencies.
11497 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11498 ;;
11499 *)
11500 if test "$GXX" = yes; then
11501 if test $with_gnu_ld = no; then
11502 case "$host_cpu" in
11503 ia64*|hppa*64*)
11504 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11505 ;;
11506 *)
11507 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11508 ;;
11509 esac
11510 fi
11511 else
11512 # FIXME: insert proper C++ library support
11513 ld_shlibs_CXX=no
11514 fi
11515 ;;
11516 esac
11517 ;;
11518 irix5* | irix6*)
11519 case $cc_basename in
11520 CC)
11521 # SGI C++
11522 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11523
11524 # Archives containing C++ object files must be created using
11525 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11526 # necessary to make sure instantiated templates are included
11527 # in the archive.
11528 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11529 ;;
11530 *)
11531 if test "$GXX" = yes; then
11532 if test "$with_gnu_ld" = no; then
11533 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11534 else
11535 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11536 fi
11537 fi
11538 link_all_deplibs_CXX=yes
11539 ;;
11540 esac
11541 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11542 hardcode_libdir_separator_CXX=:
11543 ;;
11544 linux*)
11545 case $cc_basename in
11546 KCC)
11547 # Kuck and Associates, Inc. (KAI) C++ Compiler
11548
11549 # KCC will only create a shared library if the output file
11550 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11551 # to its proper name (with version) after linking.
11552 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11553 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11554 # Commands to make compiler produce verbose output that lists
11555 # what "hidden" libraries, object files and flags are used when
11556 # linking a shared library.
11557 #
11558 # There doesn't appear to be a way to prevent this compiler from
11559 # explicitly linking system object files so we need to strip them
11560 # from the output so that they don't get included in the library
11561 # dependencies.
11562 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11563
11564 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11565 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11566
11567 # Archives containing C++ object files must be created using
11568 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11569 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11570 ;;
11571 icpc)
11572 # Intel C++
11573 with_gnu_ld=yes
11574 archive_cmds_need_lc_CXX=no
11575 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11576 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11577 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11578 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11579 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11580 ;;
11581 cxx)
11582 # Compaq C++
11583 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11584 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11585
11586 runpath_var=LD_RUN_PATH
11587 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11588 hardcode_libdir_separator_CXX=:
11589
11590 # Commands to make compiler produce verbose output that lists
11591 # what "hidden" libraries, object files and flags are used when
11592 # linking a shared library.
11593 #
11594 # There doesn't appear to be a way to prevent this compiler from
11595 # explicitly linking system object files so we need to strip them
11596 # from the output so that they don't get included in the library
11597 # dependencies.
11598 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11599 ;;
11600 esac
11601 ;;
11602 lynxos*)
11603 # FIXME: insert proper C++ library support
11604 ld_shlibs_CXX=no
11605 ;;
11606 m88k*)
11607 # FIXME: insert proper C++ library support
11608 ld_shlibs_CXX=no
11609 ;;
11610 mvs*)
11611 case $cc_basename in
11612 cxx)
11613 # FIXME: insert proper C++ library support
11614 ld_shlibs_CXX=no
11615 ;;
11616 *)
11617 # FIXME: insert proper C++ library support
11618 ld_shlibs_CXX=no
11619 ;;
11620 esac
11621 ;;
11622 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11623 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11624 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11625 wlarc=
11626 hardcode_libdir_flag_spec_CXX='-R$libdir'
11627 hardcode_direct_CXX=yes
11628 hardcode_shlibpath_var_CXX=no
11629 fi
11630 # Workaround some broken pre-1.5 toolchains
11631 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11632 ;;
11633 osf3*)
11634 case $cc_basename in
11635 KCC)
11636 # Kuck and Associates, Inc. (KAI) C++ Compiler
11637
11638 # KCC will only create a shared library if the output file
11639 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11640 # to its proper name (with version) after linking.
11641 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11642
11643 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11644 hardcode_libdir_separator_CXX=:
11645
11646 # Archives containing C++ object files must be created using
11647 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11648 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11649
11650 ;;
11651 RCC)
11652 # Rational C++ 2.4.1
11653 # FIXME: insert proper C++ library support
11654 ld_shlibs_CXX=no
11655 ;;
11656 cxx)
11657 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11658 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11659
11660 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11661 hardcode_libdir_separator_CXX=:
11662
11663 # Commands to make compiler produce verbose output that lists
11664 # what "hidden" libraries, object files and flags are used when
11665 # linking a shared library.
11666 #
11667 # There doesn't appear to be a way to prevent this compiler from
11668 # explicitly linking system object files so we need to strip them
11669 # from the output so that they don't get included in the library
11670 # dependencies.
11671 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11672 ;;
11673 *)
11674 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11675 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11676 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11677
11678 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11679 hardcode_libdir_separator_CXX=:
11680
11681 # Commands to make compiler produce verbose output that lists
11682 # what "hidden" libraries, object files and flags are used when
11683 # linking a shared library.
11684 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11685
11686 else
11687 # FIXME: insert proper C++ library support
11688 ld_shlibs_CXX=no
11689 fi
11690 ;;
11691 esac
11692 ;;
11693 osf4* | osf5*)
11694 case $cc_basename in
11695 KCC)
11696 # Kuck and Associates, Inc. (KAI) C++ Compiler
11697
11698 # KCC will only create a shared library if the output file
11699 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11700 # to its proper name (with version) after linking.
11701 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11702
11703 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11704 hardcode_libdir_separator_CXX=:
11705
11706 # Archives containing C++ object files must be created using
11707 # the KAI C++ compiler.
11708 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11709 ;;
11710 RCC)
11711 # Rational C++ 2.4.1
11712 # FIXME: insert proper C++ library support
11713 ld_shlibs_CXX=no
11714 ;;
11715 cxx)
11716 allow_undefined_flag_CXX=' -expect_unresolved \*'
11717 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11718 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11719 echo "-hidden">> $lib.exp~
11720 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
11721 $rm $lib.exp'
11722
11723 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11724 hardcode_libdir_separator_CXX=:
11725
11726 # Commands to make compiler produce verbose output that lists
11727 # what "hidden" libraries, object files and flags are used when
11728 # linking a shared library.
11729 #
11730 # There doesn't appear to be a way to prevent this compiler from
11731 # explicitly linking system object files so we need to strip them
11732 # from the output so that they don't get included in the library
11733 # dependencies.
11734 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11735 ;;
11736 *)
11737 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11738 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11739 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11740
11741 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11742 hardcode_libdir_separator_CXX=:
11743
11744 # Commands to make compiler produce verbose output that lists
11745 # what "hidden" libraries, object files and flags are used when
11746 # linking a shared library.
11747 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11748
11749 else
11750 # FIXME: insert proper C++ library support
11751 ld_shlibs_CXX=no
11752 fi
11753 ;;
11754 esac
11755 ;;
11756 psos*)
11757 # FIXME: insert proper C++ library support
11758 ld_shlibs_CXX=no
11759 ;;
11760 sco*)
11761 archive_cmds_need_lc_CXX=no
11762 case $cc_basename in
11763 CC)
11764 # FIXME: insert proper C++ library support
11765 ld_shlibs_CXX=no
11766 ;;
11767 *)
11768 # FIXME: insert proper C++ library support
11769 ld_shlibs_CXX=no
11770 ;;
11771 esac
11772 ;;
11773 sunos4*)
11774 case $cc_basename in
11775 CC)
11776 # Sun C++ 4.x
11777 # FIXME: insert proper C++ library support
11778 ld_shlibs_CXX=no
11779 ;;
11780 lcc)
11781 # Lucid
11782 # FIXME: insert proper C++ library support
11783 ld_shlibs_CXX=no
11784 ;;
11785 *)
11786 # FIXME: insert proper C++ library support
11787 ld_shlibs_CXX=no
11788 ;;
11789 esac
11790 ;;
11791 solaris*)
11792 case $cc_basename in
11793 CC)
11794 # Sun C++ 4.2, 5.x and Centerline C++
11795 no_undefined_flag_CXX=' -zdefs'
11796 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11797 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11798 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11799
11800 hardcode_libdir_flag_spec_CXX='-R$libdir'
11801 hardcode_shlibpath_var_CXX=no
11802 case $host_os in
11803 solaris2.0-5 | solaris2.0-5.*) ;;
11804 *)
11805 # The C++ compiler is used as linker so we must use $wl
11806 # flag to pass the commands to the underlying system
11807 # linker.
11808 # Supported since Solaris 2.6 (maybe 2.5.1?)
11809 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11810 ;;
11811 esac
11812 link_all_deplibs_CXX=yes
11813
11814 # Commands to make compiler produce verbose output that lists
11815 # what "hidden" libraries, object files and flags are used when
11816 # linking a shared library.
11817 #
11818 # There doesn't appear to be a way to prevent this compiler from
11819 # explicitly linking system object files so we need to strip them
11820 # from the output so that they don't get included in the library
11821 # dependencies.
11822 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11823
11824 # Archives containing C++ object files must be created using
11825 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11826 # necessary to make sure instantiated templates are included
11827 # in the archive.
11828 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11829 ;;
11830 gcx)
11831 # Green Hills C++ Compiler
11832 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11833
11834 # The C++ compiler must be used to create the archive.
11835 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11836 ;;
11837 *)
11838 # GNU C++ compiler with Solaris linker
11839 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11840 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11841 if $CC --version | grep -v '^2\.7' > /dev/null; then
11842 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11843 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11844 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11845
11846 # Commands to make compiler produce verbose output that lists
11847 # what "hidden" libraries, object files and flags are used when
11848 # linking a shared library.
11849 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11850 else
11851 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11852 # platform.
11853 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11854 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11855 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11856
11857 # Commands to make compiler produce verbose output that lists
11858 # what "hidden" libraries, object files and flags are used when
11859 # linking a shared library.
11860 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11861 fi
11862
11863 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11864 fi
11865 ;;
11866 esac
11867 ;;
11868 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11869 archive_cmds_need_lc_CXX=no
11870 ;;
11871 tandem*)
11872 case $cc_basename in
11873 NCC)
11874 # NonStop-UX NCC 3.20
11875 # FIXME: insert proper C++ library support
11876 ld_shlibs_CXX=no
11877 ;;
11878 *)
11879 # FIXME: insert proper C++ library support
11880 ld_shlibs_CXX=no
11881 ;;
11882 esac
11883 ;;
11884 vxworks*)
11885 # FIXME: insert proper C++ library support
11886 ld_shlibs_CXX=no
11887 ;;
11888 *)
11889 # FIXME: insert proper C++ library support
11890 ld_shlibs_CXX=no
11891 ;;
11892esac
11893{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11894echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11895test "$ld_shlibs_CXX" = no && can_build_shared=no
11896
11897GCC_CXX="$GXX"
11898LD_CXX="$LD"
11899
11900## CAVEAT EMPTOR:
11901## There is no encapsulation within the following macros, do not change
11902## the running order or otherwise move them around unless you know exactly
11903## what you are doing...
11904
11905cat > conftest.$ac_ext <<EOF
11906class Foo
11907{
11908public:
11909 Foo (void) { a = 0; }
11910private:
11911 int a;
11912};
11913EOF
11914
11915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11916 (eval $ac_compile) 2>&5
11917 ac_status=$?
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; then
11920 # Parse the compiler output and extract the necessary
11921 # objects, libraries and library flags.
11922
11923 # Sentinel used to keep track of whether or not we are before
11924 # the conftest object file.
11925 pre_test_object_deps_done=no
11926
11927 # The `*' in the case matches for architectures that use `case' in
11928 # $output_verbose_cmd can trigger glob expansion during the loop
11929 # eval without this substitution.
11930 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11931
11932 for p in `eval $output_verbose_link_cmd`; do
11933 case $p in
11934
11935 -L* | -R* | -l*)
11936 # Some compilers place space between "-{L,R}" and the path.
11937 # Remove the space.
11938 if test $p = "-L" \
11939 || test $p = "-R"; then
11940 prev=$p
11941 continue
11942 else
11943 prev=
11944 fi
11945
11946 if test "$pre_test_object_deps_done" = no; then
11947 case $p in
11948 -L* | -R*)
11949 # Internal compiler library paths should come after those
11950 # provided the user. The postdeps already come after the
11951 # user supplied libs so there is no need to process them.
11952 if test -z "$compiler_lib_search_path_CXX"; then
11953 compiler_lib_search_path_CXX="${prev}${p}"
11954 else
11955 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11956 fi
11957 ;;
11958 # The "-l" case would never come before the object being
11959 # linked, so don't bother handling this case.
11960 esac
11961 else
11962 if test -z "$postdeps_CXX"; then
11963 postdeps_CXX="${prev}${p}"
11964 else
11965 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11966 fi
11967 fi
11968 ;;
11969
11970 *.$objext)
11971 # This assumes that the test object file only shows up
11972 # once in the compiler output.
11973 if test "$p" = "conftest.$objext"; then
11974 pre_test_object_deps_done=yes
11975 continue
11976 fi
11977
11978 if test "$pre_test_object_deps_done" = no; then
11979 if test -z "$predep_objects_CXX"; then
11980 predep_objects_CXX="$p"
11981 else
11982 predep_objects_CXX="$predep_objects_CXX $p"
11983 fi
11984 else
11985 if test -z "$postdep_objects_CXX"; then
11986 postdep_objects_CXX="$p"
11987 else
11988 postdep_objects_CXX="$postdep_objects_CXX $p"
11989 fi
11990 fi
11991 ;;
11992
11993 *) ;; # Ignore the rest.
11994
11995 esac
11996 done
11997
11998 # Clean up.
11999 rm -f a.out a.exe
12000else
12001 echo "libtool.m4: error: problem compiling CXX test program"
12002fi
12003
12004$rm -f confest.$objext
12005
12006case " $postdeps_CXX " in
12007*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12008esac
12009
12010lt_prog_compiler_wl_CXX=
12011lt_prog_compiler_pic_CXX=
12012lt_prog_compiler_static_CXX=
12013
12014{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12015echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12016
12017 # C++ specific cases for pic, static, wl, etc.
12018 if test "$GXX" = yes; then
12019 lt_prog_compiler_wl_CXX='-Wl,'
12020 lt_prog_compiler_static_CXX='-static'
12021
12022 case $host_os in
12023 aix*)
12024 # All AIX code is PIC.
12025 if test "$host_cpu" = ia64; then
12026 # AIX 5 now supports IA64 processor
12027 lt_prog_compiler_static_CXX='-Bstatic'
12028 fi
12029 ;;
12030 amigaos*)
12031 # FIXME: we need at least 68020 code to build shared libraries, but
12032 # adding the `-m68020' flag to GCC prevents building anything better,
12033 # like `-m68040'.
12034 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12035 ;;
12036 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12037 # PIC is the default for these OSes.
12038 ;;
12039 mingw* | os2* | pw32*)
12040 # This hack is so that the source file can tell whether it is being
12041 # built for inclusion in a dll (and should export symbols for example).
12042 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12043 ;;
12044 darwin* | rhapsody*)
12045 # PIC is the default on this platform
12046 # Common symbols not allowed in MH_DYLIB files
12047 lt_prog_compiler_pic_CXX='-fno-common'
12048 ;;
12049 *djgpp*)
12050 # DJGPP does not support shared libraries at all
12051 lt_prog_compiler_pic_CXX=
12052 ;;
12053 sysv4*MP*)
12054 if test -d /usr/nec; then
12055 lt_prog_compiler_pic_CXX=-Kconform_pic
12056 fi
12057 ;;
12058 hpux*)
12059 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12060 # not for PA HP-UX.
12061 case "$host_cpu" in
12062 hppa*64*|ia64*)
12063 ;;
12064 *)
12065 lt_prog_compiler_pic_CXX='-fPIC'
12066 ;;
12067 esac
12068 ;;
12069 *)
12070 lt_prog_compiler_pic_CXX='-fPIC'
12071 ;;
12072 esac
12073 else
12074 case $host_os in
12075 aix4* | aix5*)
12076 # All AIX code is PIC.
12077 if test "$host_cpu" = ia64; then
12078 # AIX 5 now supports IA64 processor
12079 lt_prog_compiler_static_CXX='-Bstatic'
12080 else
12081 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12082 fi
12083 ;;
12084 chorus*)
12085 case $cc_basename in
12086 cxch68)
12087 # Green Hills C++ Compiler
12088 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12089 ;;
12090 esac
12091 ;;
12092 dgux*)
12093 case $cc_basename in
12094 ec++)
12095 lt_prog_compiler_pic_CXX='-KPIC'
12096 ;;
12097 ghcx)
12098 # Green Hills C++ Compiler
12099 lt_prog_compiler_pic_CXX='-pic'
12100 ;;
12101 *)
12102 ;;
12103 esac
12104 ;;
12105 freebsd* | kfreebsd*-gnu)
12106 # FreeBSD uses GNU C++
12107 ;;
12108 hpux9* | hpux10* | hpux11*)
12109 case $cc_basename in
12110 CC)
12111 lt_prog_compiler_wl_CXX='-Wl,'
12112 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12113 if test "$host_cpu" != ia64; then
12114 lt_prog_compiler_pic_CXX='+Z'
12115 fi
12116 ;;
12117 aCC)
12118 lt_prog_compiler_wl_CXX='-Wl,'
12119 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12120 case "$host_cpu" in
12121 hppa*64*|ia64*)
12122 # +Z the default
12123 ;;
12124 *)
12125 lt_prog_compiler_pic_CXX='+Z'
12126 ;;
12127 esac
12128 ;;
12129 *)
12130 ;;
12131 esac
12132 ;;
12133 irix5* | irix6* | nonstopux*)
12134 case $cc_basename in
12135 CC)
12136 lt_prog_compiler_wl_CXX='-Wl,'
12137 lt_prog_compiler_static_CXX='-non_shared'
12138 # CC pic flag -KPIC is the default.
12139 ;;
12140 *)
12141 ;;
12142 esac
12143 ;;
12144 linux*)
12145 case $cc_basename in
12146 KCC)
12147 # KAI C++ Compiler
12148 lt_prog_compiler_wl_CXX='--backend -Wl,'
12149 lt_prog_compiler_pic_CXX='-fPIC'
12150 ;;
12151 icpc)
12152 # Intel C++
12153 lt_prog_compiler_wl_CXX='-Wl,'
12154 lt_prog_compiler_pic_CXX='-KPIC'
12155 lt_prog_compiler_static_CXX='-static'
12156 ;;
12157 cxx)
12158 # Compaq C++
12159 # Make sure the PIC flag is empty. It appears that all Alpha
12160 # Linux and Compaq Tru64 Unix objects are PIC.
12161 lt_prog_compiler_pic_CXX=
12162 lt_prog_compiler_static_CXX='-non_shared'
12163 ;;
12164 *)
12165 ;;
12166 esac
12167 ;;
12168 lynxos*)
12169 ;;
12170 m88k*)
12171 ;;
12172 mvs*)
12173 case $cc_basename in
12174 cxx)
12175 lt_prog_compiler_pic_CXX='-W c,exportall'
12176 ;;
12177 *)
12178 ;;
12179 esac
12180 ;;
12181 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
12182 ;;
12183 osf3* | osf4* | osf5*)
12184 case $cc_basename in
12185 KCC)
12186 lt_prog_compiler_wl_CXX='--backend -Wl,'
12187 ;;
12188 RCC)
12189 # Rational C++ 2.4.1
12190 lt_prog_compiler_pic_CXX='-pic'
12191 ;;
12192 cxx)
12193 # Digital/Compaq C++
12194 lt_prog_compiler_wl_CXX='-Wl,'
12195 # Make sure the PIC flag is empty. It appears that all Alpha
12196 # Linux and Compaq Tru64 Unix objects are PIC.
12197 lt_prog_compiler_pic_CXX=
12198 lt_prog_compiler_static_CXX='-non_shared'
12199 ;;
12200 *)
12201 ;;
12202 esac
12203 ;;
12204 psos*)
12205 ;;
12206 sco*)
12207 case $cc_basename in
12208 CC)
12209 lt_prog_compiler_pic_CXX='-fPIC'
12210 ;;
12211 *)
12212 ;;
12213 esac
12214 ;;
12215 solaris*)
12216 case $cc_basename in
12217 CC)
12218 # Sun C++ 4.2, 5.x and Centerline C++
12219 lt_prog_compiler_pic_CXX='-KPIC'
12220 lt_prog_compiler_static_CXX='-Bstatic'
12221 lt_prog_compiler_wl_CXX='-Qoption ld '
12222 ;;
12223 gcx)
12224 # Green Hills C++ Compiler
12225 lt_prog_compiler_pic_CXX='-PIC'
12226 ;;
12227 *)
12228 ;;
12229 esac
12230 ;;
12231 sunos4*)
12232 case $cc_basename in
12233 CC)
12234 # Sun C++ 4.x
12235 lt_prog_compiler_pic_CXX='-pic'
12236 lt_prog_compiler_static_CXX='-Bstatic'
12237 ;;
12238 lcc)
12239 # Lucid
12240 lt_prog_compiler_pic_CXX='-pic'
12241 ;;
12242 *)
12243 ;;
12244 esac
12245 ;;
12246 tandem*)
12247 case $cc_basename in
12248 NCC)
12249 # NonStop-UX NCC 3.20
12250 lt_prog_compiler_pic_CXX='-KPIC'
12251 ;;
12252 *)
12253 ;;
12254 esac
12255 ;;
12256 unixware*)
12257 ;;
12258 vxworks*)
12259 ;;
12260 *)
12261 lt_prog_compiler_can_build_shared_CXX=no
12262 ;;
12263 esac
12264 fi
12265
12266{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12267echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12268
12269#
12270# Check to make sure the PIC flag actually works.
12271#
12272if test -n "$lt_prog_compiler_pic_CXX"; then
12273
12274{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12275echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12276if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12277 echo $ECHO_N "(cached) $ECHO_C" >&6
12278else
12279 lt_prog_compiler_pic_works_CXX=no
12280 ac_outfile=conftest.$ac_objext
12281 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12282 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12283 # Insert the option either (1) after the last *FLAGS variable, or
12284 # (2) before a word containing "conftest.", or (3) at the end.
12285 # Note that $ac_compile itself does not contain backslashes and begins
12286 # with a dollar sign (not a hyphen), so the echo should work correctly.
12287 # The option is referenced via a variable to avoid confusing sed.
12288 lt_compile=`echo "$ac_compile" | $SED \
12289 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12291 -e 's:$: $lt_compiler_flag:'`
12292 (eval echo "\"\$as_me:12292: $lt_compile\"" >&5)
12293 (eval "$lt_compile" 2>conftest.err)
12294 ac_status=$?
12295 cat conftest.err >&5
12296 echo "$as_me:12296: \$? = $ac_status" >&5
12297 if (exit $ac_status) && test -s "$ac_outfile"; then
12298 # The compiler can only warn and ignore the option if not recognized
12299 # So say no if there are warnings
12300 if test ! -s conftest.err; then
12301 lt_prog_compiler_pic_works_CXX=yes
12302 fi
12303 fi
12304 $rm conftest*
12305
12306fi
12307{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12308echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12309
12310if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12311 case $lt_prog_compiler_pic_CXX in
12312 "" | " "*) ;;
12313 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12314 esac
12315else
12316 lt_prog_compiler_pic_CXX=
12317 lt_prog_compiler_can_build_shared_CXX=no
12318fi
12319
12320fi
12321case "$host_os" in
12322 # For platforms which do not support PIC, -DPIC is meaningless:
12323 *djgpp*)
12324 lt_prog_compiler_pic_CXX=
12325 ;;
12326 *)
12327 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12328 ;;
12329esac
12330
12331{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12332echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12333if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12335else
12336 lt_cv_prog_compiler_c_o_CXX=no
12337 $rm -r conftest 2>/dev/null
12338 mkdir conftest
12339 cd conftest
12340 mkdir out
12341 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12342
12343 lt_compiler_flag="-o out/conftest2.$ac_objext"
12344 # Insert the option either (1) after the last *FLAGS variable, or
12345 # (2) before a word containing "conftest.", or (3) at the end.
12346 # Note that $ac_compile itself does not contain backslashes and begins
12347 # with a dollar sign (not a hyphen), so the echo should work correctly.
12348 lt_compile=`echo "$ac_compile" | $SED \
12349 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12350 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12351 -e 's:$: $lt_compiler_flag:'`
12352 (eval echo "\"\$as_me:12352: $lt_compile\"" >&5)
12353 (eval "$lt_compile" 2>out/conftest.err)
12354 ac_status=$?
12355 cat out/conftest.err >&5
12356 echo "$as_me:12356: \$? = $ac_status" >&5
12357 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12358 then
12359 # The compiler can only warn and ignore the option if not recognized
12360 # So say no if there are warnings
12361 if test ! -s out/conftest.err; then
12362 lt_cv_prog_compiler_c_o_CXX=yes
12363 fi
12364 fi
12365 chmod u+w .
12366 $rm conftest*
12367 # SGI C++ compiler will create directory out/ii_files/ for
12368 # template instantiation
12369 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12370 $rm out/* && rmdir out
12371 cd ..
12372 rmdir conftest
12373 $rm conftest*
12374
12375fi
12376{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12377echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12378
12379
12380hard_links="nottested"
12381if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12382 # do not overwrite the value of need_locks provided by the user
12383 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12384echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12385 hard_links=yes
12386 $rm conftest*
12387 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12388 touch conftest.a
12389 ln conftest.a conftest.b 2>&5 || hard_links=no
12390 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12391 { echo "$as_me:$LINENO: result: $hard_links" >&5
12392echo "${ECHO_T}$hard_links" >&6; }
12393 if test "$hard_links" = no; then
12394 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12395echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12396 need_locks=warn
12397 fi
12398else
12399 need_locks=no
12400fi
12401
12402{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12403echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12404
12405 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12406 case $host_os in
12407 aix4* | aix5*)
12408 # If we're using GNU nm, then we don't want the "-C" option.
12409 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12410 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12411 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12412 else
12413 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12414 fi
12415 ;;
12416 pw32*)
12417 export_symbols_cmds_CXX="$ltdll_cmds"
12418 ;;
12419 cygwin* | mingw*)
12420 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12421 ;;
12422 linux*)
12423 link_all_deplibs_CXX=no
12424 ;;
12425 *)
12426 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12427 ;;
12428 esac
12429
12430{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12431echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12432test "$ld_shlibs_CXX" = no && can_build_shared=no
12433
12434variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12435if test "$GCC" = yes; then
12436 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12437fi
12438
12439#
12440# Do we need to explicitly link libc?
12441#
12442case "x$archive_cmds_need_lc_CXX" in
12443x|xyes)
12444 # Assume -lc should be added
12445 archive_cmds_need_lc_CXX=yes
12446
12447 if test "$enable_shared" = yes && test "$GCC" = yes; then
12448 case $archive_cmds_CXX in
12449 *'~'*)
12450 # FIXME: we may have to deal with multi-command sequences.
12451 ;;
12452 '$CC '*)
12453 # Test whether the compiler implicitly links with -lc since on some
12454 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12455 # to ld, don't add -lc before -lgcc.
12456 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12457echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12458 $rm conftest*
12459 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12460
12461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12462 (eval $ac_compile) 2>&5
12463 ac_status=$?
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } 2>conftest.err; then
12466 soname=conftest
12467 lib=conftest
12468 libobjs=conftest.$ac_objext
12469 deplibs=
12470 wl=$lt_prog_compiler_wl_CXX
12471 compiler_flags=-v
12472 linker_flags=-v
12473 verstring=
12474 output_objdir=.
12475 libname=conftest
12476 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12477 allow_undefined_flag_CXX=
12478 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12479 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12480 ac_status=$?
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }
12483 then
12484 archive_cmds_need_lc_CXX=no
12485 else
12486 archive_cmds_need_lc_CXX=yes
12487 fi
12488 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12489 else
12490 cat conftest.err 1>&5
12491 fi
12492 $rm conftest*
12493 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12494echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12495 ;;
12496 esac
12497 fi
12498 ;;
12499esac
12500
12501{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12502echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12503library_names_spec=
12504libname_spec='lib$name'
12505soname_spec=
12506shrext_cmds=".so"
12507postinstall_cmds=
12508postuninstall_cmds=
12509finish_cmds=
12510finish_eval=
12511shlibpath_var=
12512shlibpath_overrides_runpath=unknown
12513version_type=none
12514dynamic_linker="$host_os ld.so"
12515sys_lib_dlsearch_path_spec="/lib /usr/lib"
12516if test "$GCC" = yes; then
12517 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12518 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12519 # if the path contains ";" then we assume it to be the separator
12520 # otherwise default to the standard path separator (i.e. ":") - it is
12521 # assumed that no part of a normal pathname contains ";" but that should
12522 # okay in the real world where ";" in dirpaths is itself problematic.
12523 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12524 else
12525 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12526 fi
12527else
12528 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12529fi
12530need_lib_prefix=unknown
12531hardcode_into_libs=no
12532
12533# when you set need_version to no, make sure it does not cause -set_version
12534# flags to be left without arguments
12535need_version=unknown
12536
12537case $host_os in
12538aix3*)
12539 version_type=linux
12540 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12541 shlibpath_var=LIBPATH
12542
12543 # AIX 3 has no versioning support, so we append a major version to the name.
12544 soname_spec='${libname}${release}${shared_ext}$major'
12545 ;;
12546
12547aix4* | aix5*)
12548 version_type=linux
12549 need_lib_prefix=no
12550 need_version=no
12551 hardcode_into_libs=yes
12552 if test "$host_cpu" = ia64; then
12553 # AIX 5 supports IA64
12554 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12555 shlibpath_var=LD_LIBRARY_PATH
12556 else
12557 # With GCC up to 2.95.x, collect2 would create an import file
12558 # for dependence libraries. The import file would start with
12559 # the line `#! .'. This would cause the generated library to
12560 # depend on `.', always an invalid library. This was fixed in
12561 # development snapshots of GCC prior to 3.0.
12562 case $host_os in
12563 aix4 | aix4.[01] | aix4.[01].*)
12564 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12565 echo ' yes '
12566 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12567 :
12568 else
12569 can_build_shared=no
12570 fi
12571 ;;
12572 esac
12573 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12574 # soname into executable. Probably we can add versioning support to
12575 # collect2, so additional links can be useful in future.
12576 if test "$aix_use_runtimelinking" = yes; then
12577 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12578 # instead of lib<name>.a to let people know that these are not
12579 # typical AIX shared libraries.
12580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12581 else
12582 # We preserve .a as extension for shared libraries through AIX4.2
12583 # and later when we are not doing run time linking.
12584 library_names_spec='${libname}${release}.a $libname.a'
12585 soname_spec='${libname}${release}${shared_ext}$major'
12586 fi
12587 shlibpath_var=LIBPATH
12588 fi
12589 ;;
12590
12591amigaos*)
12592 library_names_spec='$libname.ixlibrary $libname.a'
12593 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12594 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12595 ;;
12596
12597beos*)
12598 library_names_spec='${libname}${shared_ext}'
12599 dynamic_linker="$host_os ld.so"
12600 shlibpath_var=LIBRARY_PATH
12601 ;;
12602
12603bsdi4*)
12604 version_type=linux
12605 need_version=no
12606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12607 soname_spec='${libname}${release}${shared_ext}$major'
12608 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12609 shlibpath_var=LD_LIBRARY_PATH
12610 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12611 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12612 # the default ld.so.conf also contains /usr/contrib/lib and
12613 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12614 # libtool to hard-code these into programs
12615 ;;
12616
12617cygwin* | mingw* | pw32*)
12618 version_type=windows
12619 shrext_cmds=".dll"
12620 need_version=no
12621 need_lib_prefix=no
12622
12623 case $GCC,$host_os in
12624 yes,cygwin* | yes,mingw* | yes,pw32*)
12625 library_names_spec='$libname.dll.a'
12626 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12627 postinstall_cmds='base_file=`basename \${file}`~
12628 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12629 dldir=$destdir/`dirname \$dlpath`~
12630 test -d \$dldir || mkdir -p \$dldir~
12631 $install_prog $dir/$dlname \$dldir/$dlname'
12632 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12633 dlpath=$dir/\$dldll~
12634 $rm \$dlpath'
12635 shlibpath_overrides_runpath=yes
12636
12637 case $host_os in
12638 cygwin*)
12639 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12640 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12641 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12642 ;;
12643 mingw*)
12644 # MinGW DLLs use traditional 'lib' prefix
12645 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12646 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12647 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12648 # It is most probably a Windows format PATH printed by
12649 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12650 # path with ; separators, and with drive letters. We can handle the
12651 # drive letters (cygwin fileutils understands them), so leave them,
12652 # especially as we might pass files found there to a mingw objdump,
12653 # which wouldn't understand a cygwinified path. Ahh.
12654 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12655 else
12656 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12657 fi
12658 ;;
12659 pw32*)
12660 # pw32 DLLs use 'pw' prefix rather than 'lib'
12661 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12662 ;;
12663 esac
12664 ;;
12665
12666 *)
12667 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12668 ;;
12669 esac
12670 dynamic_linker='Win32 ld.exe'
12671 # FIXME: first we should search . and the directory the executable is in
12672 shlibpath_var=PATH
12673 ;;
12674
12675darwin* | rhapsody*)
12676 dynamic_linker="$host_os dyld"
12677 version_type=darwin
12678 need_lib_prefix=no
12679 need_version=no
12680 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12681 soname_spec='${libname}${release}${major}$shared_ext'
12682 shlibpath_overrides_runpath=yes
12683 shlibpath_var=DYLD_LIBRARY_PATH
12684 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12685 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12686 if test "$GCC" = yes; then
12687 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12688 else
12689 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12690 fi
12691 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12692 ;;
12693
12694dgux*)
12695 version_type=linux
12696 need_lib_prefix=no
12697 need_version=no
12698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12699 soname_spec='${libname}${release}${shared_ext}$major'
12700 shlibpath_var=LD_LIBRARY_PATH
12701 ;;
12702
12703freebsd1*)
12704 dynamic_linker=no
12705 ;;
12706
12707kfreebsd*-gnu)
12708 version_type=linux
12709 need_lib_prefix=no
12710 need_version=no
12711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12712 soname_spec='${libname}${release}${shared_ext}$major'
12713 shlibpath_var=LD_LIBRARY_PATH
12714 shlibpath_overrides_runpath=no
12715 hardcode_into_libs=yes
12716 dynamic_linker='GNU ld.so'
12717 ;;
12718
12719freebsd*)
12720 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12721 version_type=freebsd-$objformat
12722 case $version_type in
12723 freebsd-elf*)
12724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12725 need_version=no
12726 need_lib_prefix=no
12727 ;;
12728 freebsd-*)
12729 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12730 need_version=yes
12731 ;;
12732 esac
12733 shlibpath_var=LD_LIBRARY_PATH
12734 case $host_os in
12735 freebsd2*)
12736 shlibpath_overrides_runpath=yes
12737 ;;
12738 freebsd3.01* | freebsdelf3.01*)
12739 shlibpath_overrides_runpath=yes
12740 hardcode_into_libs=yes
12741 ;;
12742 *) # from 3.2 on
12743 shlibpath_overrides_runpath=no
12744 hardcode_into_libs=yes
12745 ;;
12746 esac
12747 ;;
12748
12749gnu*)
12750 version_type=linux
12751 need_lib_prefix=no
12752 need_version=no
12753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12754 soname_spec='${libname}${release}${shared_ext}$major'
12755 shlibpath_var=LD_LIBRARY_PATH
12756 hardcode_into_libs=yes
12757 ;;
12758
12759hpux9* | hpux10* | hpux11*)
12760 # Give a soname corresponding to the major version so that dld.sl refuses to
12761 # link against other versions.
12762 version_type=sunos
12763 need_lib_prefix=no
12764 need_version=no
12765 case "$host_cpu" in
12766 ia64*)
12767 shrext_cmds='.so'
12768 hardcode_into_libs=yes
12769 dynamic_linker="$host_os dld.so"
12770 shlibpath_var=LD_LIBRARY_PATH
12771 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12773 soname_spec='${libname}${release}${shared_ext}$major'
12774 if test "X$HPUX_IA64_MODE" = X32; then
12775 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12776 else
12777 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12778 fi
12779 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12780 ;;
12781 hppa*64*)
12782 shrext_cmds='.sl'
12783 hardcode_into_libs=yes
12784 dynamic_linker="$host_os dld.sl"
12785 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12786 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12788 soname_spec='${libname}${release}${shared_ext}$major'
12789 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12790 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12791 ;;
12792 *)
12793 shrext_cmds='.sl'
12794 dynamic_linker="$host_os dld.sl"
12795 shlibpath_var=SHLIB_PATH
12796 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12798 soname_spec='${libname}${release}${shared_ext}$major'
12799 ;;
12800 esac
12801 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12802 postinstall_cmds='chmod 555 $lib'
12803 ;;
12804
12805irix5* | irix6* | nonstopux*)
12806 case $host_os in
12807 nonstopux*) version_type=nonstopux ;;
12808 *)
12809 if test "$lt_cv_prog_gnu_ld" = yes; then
12810 version_type=linux
12811 else
12812 version_type=irix
12813 fi ;;
12814 esac
12815 need_lib_prefix=no
12816 need_version=no
12817 soname_spec='${libname}${release}${shared_ext}$major'
12818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12819 case $host_os in
12820 irix5* | nonstopux*)
12821 libsuff= shlibsuff=
12822 ;;
12823 *)
12824 case $LD in # libtool.m4 will add one of these switches to LD
12825 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12826 libsuff= shlibsuff= libmagic=32-bit;;
12827 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12828 libsuff=32 shlibsuff=N32 libmagic=N32;;
12829 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12830 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12831 *) libsuff= shlibsuff= libmagic=never-match;;
12832 esac
12833 ;;
12834 esac
12835 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12836 shlibpath_overrides_runpath=no
12837 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12838 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12839 hardcode_into_libs=yes
12840 ;;
12841
12842# No shared lib support for Linux oldld, aout, or coff.
12843linux*oldld* | linux*aout* | linux*coff*)
12844 dynamic_linker=no
12845 ;;
12846
12847# This must be Linux ELF.
12848linux*)
12849 version_type=linux
12850 need_lib_prefix=no
12851 need_version=no
12852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12853 soname_spec='${libname}${release}${shared_ext}$major'
12854 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12855 shlibpath_var=LD_LIBRARY_PATH
12856 shlibpath_overrides_runpath=no
12857 # This implies no fast_install, which is unacceptable.
12858 # Some rework will be needed to allow for fast_install
12859 # before this can be enabled.
12860 hardcode_into_libs=yes
12861
12862 # Append ld.so.conf contents to the search path
12863 if test -f /etc/ld.so.conf; then
12864 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12865 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12866 fi
12867
12868 # We used to test for /lib/ld.so.1 and disable shared libraries on
12869 # powerpc, because MkLinux only supported shared libraries with the
12870 # GNU dynamic linker. Since this was broken with cross compilers,
12871 # most powerpc-linux boxes support dynamic linking these days and
12872 # people can always --disable-shared, the test was removed, and we
12873 # assume the GNU/Linux dynamic linker is in use.
12874 dynamic_linker='GNU/Linux ld.so'
12875 ;;
12876
12877netbsdelf*-gnu)
12878 version_type=linux
12879 need_lib_prefix=no
12880 need_version=no
12881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12882 soname_spec='${libname}${release}${shared_ext}$major'
12883 shlibpath_var=LD_LIBRARY_PATH
12884 shlibpath_overrides_runpath=no
12885 hardcode_into_libs=yes
12886 dynamic_linker='NetBSD ld.elf_so'
12887 ;;
12888
12889knetbsd*-gnu)
12890 version_type=linux
12891 need_lib_prefix=no
12892 need_version=no
12893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12894 soname_spec='${libname}${release}${shared_ext}$major'
12895 shlibpath_var=LD_LIBRARY_PATH
12896 shlibpath_overrides_runpath=no
12897 hardcode_into_libs=yes
12898 dynamic_linker='GNU ld.so'
12899 ;;
12900
12901netbsd*)
12902 version_type=sunos
12903 need_lib_prefix=no
12904 need_version=no
12905 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12907 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12908 dynamic_linker='NetBSD (a.out) ld.so'
12909 else
12910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12911 soname_spec='${libname}${release}${shared_ext}$major'
12912 dynamic_linker='NetBSD ld.elf_so'
12913 fi
12914 shlibpath_var=LD_LIBRARY_PATH
12915 shlibpath_overrides_runpath=yes
12916 hardcode_into_libs=yes
12917 ;;
12918
12919newsos6)
12920 version_type=linux
12921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12922 shlibpath_var=LD_LIBRARY_PATH
12923 shlibpath_overrides_runpath=yes
12924 ;;
12925
12926nto-qnx*)
12927 version_type=linux
12928 need_lib_prefix=no
12929 need_version=no
12930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12931 soname_spec='${libname}${release}${shared_ext}$major'
12932 shlibpath_var=LD_LIBRARY_PATH
12933 shlibpath_overrides_runpath=yes
12934 ;;
12935
12936openbsd*)
12937 version_type=sunos
12938 need_lib_prefix=no
12939 need_version=yes
12940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12942 shlibpath_var=LD_LIBRARY_PATH
12943 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12944 case $host_os in
12945 openbsd2.[89] | openbsd2.[89].*)
12946 shlibpath_overrides_runpath=no
12947 ;;
12948 *)
12949 shlibpath_overrides_runpath=yes
12950 ;;
12951 esac
12952 else
12953 shlibpath_overrides_runpath=yes
12954 fi
12955 ;;
12956
12957os2*)
12958 libname_spec='$name'
12959 shrext_cmds=".dll"
12960 need_lib_prefix=no
12961 library_names_spec='$libname${shared_ext} $libname.a'
12962 dynamic_linker='OS/2 ld.exe'
12963 shlibpath_var=LIBPATH
12964 ;;
12965
12966osf3* | osf4* | osf5*)
12967 version_type=osf
12968 need_lib_prefix=no
12969 need_version=no
12970 soname_spec='${libname}${release}${shared_ext}$major'
12971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12972 shlibpath_var=LD_LIBRARY_PATH
12973 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12974 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12975 ;;
12976
12977sco3.2v5*)
12978 version_type=osf
12979 soname_spec='${libname}${release}${shared_ext}$major'
12980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12981 shlibpath_var=LD_LIBRARY_PATH
12982 ;;
12983
12984solaris*)
12985 version_type=linux
12986 need_lib_prefix=no
12987 need_version=no
12988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12989 soname_spec='${libname}${release}${shared_ext}$major'
12990 shlibpath_var=LD_LIBRARY_PATH
12991 shlibpath_overrides_runpath=yes
12992 hardcode_into_libs=yes
12993 # ldd complains unless libraries are executable
12994 postinstall_cmds='chmod +x $lib'
12995 ;;
12996
12997sunos4*)
12998 version_type=sunos
12999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13000 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13001 shlibpath_var=LD_LIBRARY_PATH
13002 shlibpath_overrides_runpath=yes
13003 if test "$with_gnu_ld" = yes; then
13004 need_lib_prefix=no
13005 fi
13006 need_version=yes
13007 ;;
13008
13009sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13010 version_type=linux
13011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13012 soname_spec='${libname}${release}${shared_ext}$major'
13013 shlibpath_var=LD_LIBRARY_PATH
13014 case $host_vendor in
13015 sni)
13016 shlibpath_overrides_runpath=no
13017 need_lib_prefix=no
13018 export_dynamic_flag_spec='${wl}-Blargedynsym'
13019 runpath_var=LD_RUN_PATH
13020 ;;
13021 siemens)
13022 need_lib_prefix=no
13023 ;;
13024 motorola)
13025 need_lib_prefix=no
13026 need_version=no
13027 shlibpath_overrides_runpath=no
13028 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13029 ;;
13030 esac
13031 ;;
13032
13033sysv4*MP*)
13034 if test -d /usr/nec ;then
13035 version_type=linux
13036 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13037 soname_spec='$libname${shared_ext}.$major'
13038 shlibpath_var=LD_LIBRARY_PATH
13039 fi
13040 ;;
13041
13042uts4*)
13043 version_type=linux
13044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13045 soname_spec='${libname}${release}${shared_ext}$major'
13046 shlibpath_var=LD_LIBRARY_PATH
13047 ;;
13048
13049*)
13050 dynamic_linker=no
13051 ;;
13052esac
13053{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13054echo "${ECHO_T}$dynamic_linker" >&6; }
13055test "$dynamic_linker" = no && can_build_shared=no
13056
13057{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13058echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13059hardcode_action_CXX=
13060if test -n "$hardcode_libdir_flag_spec_CXX" || \
13061 test -n "$runpath_var CXX" || \
13062 test "X$hardcode_automatic_CXX"="Xyes" ; then
13063
13064 # We can hardcode non-existant directories.
13065 if test "$hardcode_direct_CXX" != no &&
13066 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13067 # have to relink, otherwise we might link with an installed library
13068 # when we should be linking with a yet-to-be-installed one
13069 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13070 test "$hardcode_minus_L_CXX" != no; then
13071 # Linking always hardcodes the temporary library directory.
13072 hardcode_action_CXX=relink
13073 else
13074 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13075 hardcode_action_CXX=immediate
13076 fi
13077else
13078 # We cannot hardcode anything, or else we can only hardcode existing
13079 # directories.
13080 hardcode_action_CXX=unsupported
13081fi
13082{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13083echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13084
13085if test "$hardcode_action_CXX" = relink; then
13086 # Fast installation is not supported
13087 enable_fast_install=no
13088elif test "$shlibpath_overrides_runpath" = yes ||
13089 test "$enable_shared" = no; then
13090 # Fast installation is not necessary
13091 enable_fast_install=needless
13092fi
13093
13094striplib=
13095old_striplib=
13096{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13097echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
13098if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13099 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13100 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13101 { echo "$as_me:$LINENO: result: yes" >&5
13102echo "${ECHO_T}yes" >&6; }
13103else
13104# FIXME - insert some real tests, host_os isn't really good enough
13105 case $host_os in
13106 darwin*)
13107 if test -n "$STRIP" ; then
13108 striplib="$STRIP -x"
13109 { echo "$as_me:$LINENO: result: yes" >&5
13110echo "${ECHO_T}yes" >&6; }
13111 else
13112 { echo "$as_me:$LINENO: result: no" >&5
13113echo "${ECHO_T}no" >&6; }
13114fi
13115 ;;
13116 *)
13117 { echo "$as_me:$LINENO: result: no" >&5
13118echo "${ECHO_T}no" >&6; }
13119 ;;
13120 esac
13121fi
13122
13123if test "x$enable_dlopen" != xyes; then
13124 enable_dlopen=unknown
13125 enable_dlopen_self=unknown
13126 enable_dlopen_self_static=unknown
13127else
13128 lt_cv_dlopen=no
13129 lt_cv_dlopen_libs=
13130
13131 case $host_os in
13132 beos*)
13133 lt_cv_dlopen="load_add_on"
13134 lt_cv_dlopen_libs=
13135 lt_cv_dlopen_self=yes
13136 ;;
13137
13138 mingw* | pw32*)
13139 lt_cv_dlopen="LoadLibrary"
13140 lt_cv_dlopen_libs=
13141 ;;
13142
13143 cygwin*)
13144 lt_cv_dlopen="dlopen"
13145 lt_cv_dlopen_libs=
13146 ;;
13147
13148 darwin*)
13149 # if libdl is installed we need to link against it
13150 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13151echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13152if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13153 echo $ECHO_N "(cached) $ECHO_C" >&6
13154else
13155 ac_check_lib_save_LIBS=$LIBS
13156LIBS="-ldl $LIBS"
13157cat >conftest.$ac_ext <<_ACEOF
13158/* confdefs.h. */
13159_ACEOF
13160cat confdefs.h >>conftest.$ac_ext
13161cat >>conftest.$ac_ext <<_ACEOF
13162/* end confdefs.h. */
13163
13164/* Override any GCC internal prototype to avoid an error.
13165 Use char because int might match the return type of a GCC
13166 builtin and then its argument prototype would still apply. */
13167#ifdef __cplusplus
13168extern "C"
13169#endif
13170char dlopen ();
13171int
13172main ()
13173{
13174return dlopen ();
13175 ;
13176 return 0;
13177}
13178_ACEOF
13179rm -f conftest.$ac_objext conftest$ac_exeext
13180if { (ac_try="$ac_link"
13181case "(($ac_try" in
13182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13183 *) ac_try_echo=$ac_try;;
13184esac
13185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13186 (eval "$ac_link") 2>conftest.er1
13187 ac_status=$?
13188 grep -v '^ *+' conftest.er1 >conftest.err
13189 rm -f conftest.er1
13190 cat conftest.err >&5
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); } && {
13193 test -z "$ac_cxx_werror_flag" ||
13194 test ! -s conftest.err
13195 } && test -s conftest$ac_exeext &&
13196 $as_test_x conftest$ac_exeext; then
13197 ac_cv_lib_dl_dlopen=yes
13198else
13199 echo "$as_me: failed program was:" >&5
13200sed 's/^/| /' conftest.$ac_ext >&5
13201
13202 ac_cv_lib_dl_dlopen=no
13203fi
13204
13205rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13206 conftest$ac_exeext conftest.$ac_ext
13207LIBS=$ac_check_lib_save_LIBS
13208fi
13209{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13210echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13211if test $ac_cv_lib_dl_dlopen = yes; then
13212 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13213else
13214
13215 lt_cv_dlopen="dyld"
13216 lt_cv_dlopen_libs=
13217 lt_cv_dlopen_self=yes
13218
13219fi
13220
13221 ;;
13222
13223 *)
13224 { echo "$as_me:$LINENO: checking for shl_load" >&5
13225echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
13226if test "${ac_cv_func_shl_load+set}" = set; then
13227 echo $ECHO_N "(cached) $ECHO_C" >&6
13228else
13229 cat >conftest.$ac_ext <<_ACEOF
13230/* confdefs.h. */
13231_ACEOF
13232cat confdefs.h >>conftest.$ac_ext
13233cat >>conftest.$ac_ext <<_ACEOF
13234/* end confdefs.h. */
13235/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13237#define shl_load innocuous_shl_load
13238
13239/* System header to define __stub macros and hopefully few prototypes,
13240 which can conflict with char shl_load (); below.
13241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13242 <limits.h> exists even on freestanding compilers. */
13243
13244#ifdef __STDC__
13245# include <limits.h>
13246#else
13247# include <assert.h>
13248#endif
13249
13250#undef shl_load
13251
13252/* Override any GCC internal prototype to avoid an error.
13253 Use char because int might match the return type of a GCC
13254 builtin and then its argument prototype would still apply. */
13255#ifdef __cplusplus
13256extern "C"
13257#endif
13258char shl_load ();
13259/* The GNU C library defines this for functions which it implements
13260 to always fail with ENOSYS. Some functions are actually named
13261 something starting with __ and the normal name is an alias. */
13262#if defined __stub_shl_load || defined __stub___shl_load
13263choke me
13264#endif
13265
13266int
13267main ()
13268{
13269return shl_load ();
13270 ;
13271 return 0;
13272}
13273_ACEOF
13274rm -f conftest.$ac_objext conftest$ac_exeext
13275if { (ac_try="$ac_link"
13276case "(($ac_try" in
13277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13278 *) ac_try_echo=$ac_try;;
13279esac
13280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13281 (eval "$ac_link") 2>conftest.er1
13282 ac_status=$?
13283 grep -v '^ *+' conftest.er1 >conftest.err
13284 rm -f conftest.er1
13285 cat conftest.err >&5
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); } && {
13288 test -z "$ac_cxx_werror_flag" ||
13289 test ! -s conftest.err
13290 } && test -s conftest$ac_exeext &&
13291 $as_test_x conftest$ac_exeext; then
13292 ac_cv_func_shl_load=yes
13293else
13294 echo "$as_me: failed program was:" >&5
13295sed 's/^/| /' conftest.$ac_ext >&5
13296
13297 ac_cv_func_shl_load=no
13298fi
13299
13300rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13301 conftest$ac_exeext conftest.$ac_ext
13302fi
13303{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13304echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
13305if test $ac_cv_func_shl_load = yes; then
13306 lt_cv_dlopen="shl_load"
13307else
13308 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13309echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13310if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13311 echo $ECHO_N "(cached) $ECHO_C" >&6
13312else
13313 ac_check_lib_save_LIBS=$LIBS
13314LIBS="-ldld $LIBS"
13315cat >conftest.$ac_ext <<_ACEOF
13316/* confdefs.h. */
13317_ACEOF
13318cat confdefs.h >>conftest.$ac_ext
13319cat >>conftest.$ac_ext <<_ACEOF
13320/* end confdefs.h. */
13321
13322/* Override any GCC internal prototype to avoid an error.
13323 Use char because int might match the return type of a GCC
13324 builtin and then its argument prototype would still apply. */
13325#ifdef __cplusplus
13326extern "C"
13327#endif
13328char shl_load ();
13329int
13330main ()
13331{
13332return shl_load ();
13333 ;
13334 return 0;
13335}
13336_ACEOF
13337rm -f conftest.$ac_objext conftest$ac_exeext
13338if { (ac_try="$ac_link"
13339case "(($ac_try" in
13340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13341 *) ac_try_echo=$ac_try;;
13342esac
13343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13344 (eval "$ac_link") 2>conftest.er1
13345 ac_status=$?
13346 grep -v '^ *+' conftest.er1 >conftest.err
13347 rm -f conftest.er1
13348 cat conftest.err >&5
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); } && {
13351 test -z "$ac_cxx_werror_flag" ||
13352 test ! -s conftest.err
13353 } && test -s conftest$ac_exeext &&
13354 $as_test_x conftest$ac_exeext; then
13355 ac_cv_lib_dld_shl_load=yes
13356else
13357 echo "$as_me: failed program was:" >&5
13358sed 's/^/| /' conftest.$ac_ext >&5
13359
13360 ac_cv_lib_dld_shl_load=no
13361fi
13362
13363rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13364 conftest$ac_exeext conftest.$ac_ext
13365LIBS=$ac_check_lib_save_LIBS
13366fi
13367{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13368echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13369if test $ac_cv_lib_dld_shl_load = yes; then
13370 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13371else
13372 { echo "$as_me:$LINENO: checking for dlopen" >&5
13373echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
13374if test "${ac_cv_func_dlopen+set}" = set; then
13375 echo $ECHO_N "(cached) $ECHO_C" >&6
13376else
13377 cat >conftest.$ac_ext <<_ACEOF
13378/* confdefs.h. */
13379_ACEOF
13380cat confdefs.h >>conftest.$ac_ext
13381cat >>conftest.$ac_ext <<_ACEOF
13382/* end confdefs.h. */
13383/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13385#define dlopen innocuous_dlopen
13386
13387/* System header to define __stub macros and hopefully few prototypes,
13388 which can conflict with char dlopen (); below.
13389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13390 <limits.h> exists even on freestanding compilers. */
13391
13392#ifdef __STDC__
13393# include <limits.h>
13394#else
13395# include <assert.h>
13396#endif
13397
13398#undef dlopen
13399
13400/* Override any GCC internal prototype to avoid an error.
13401 Use char because int might match the return type of a GCC
13402 builtin and then its argument prototype would still apply. */
13403#ifdef __cplusplus
13404extern "C"
13405#endif
13406char dlopen ();
13407/* The GNU C library defines this for functions which it implements
13408 to always fail with ENOSYS. Some functions are actually named
13409 something starting with __ and the normal name is an alias. */
13410#if defined __stub_dlopen || defined __stub___dlopen
13411choke me
13412#endif
13413
13414int
13415main ()
13416{
13417return dlopen ();
13418 ;
13419 return 0;
13420}
13421_ACEOF
13422rm -f conftest.$ac_objext conftest$ac_exeext
13423if { (ac_try="$ac_link"
13424case "(($ac_try" in
13425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13426 *) ac_try_echo=$ac_try;;
13427esac
13428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13429 (eval "$ac_link") 2>conftest.er1
13430 ac_status=$?
13431 grep -v '^ *+' conftest.er1 >conftest.err
13432 rm -f conftest.er1
13433 cat conftest.err >&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); } && {
13436 test -z "$ac_cxx_werror_flag" ||
13437 test ! -s conftest.err
13438 } && test -s conftest$ac_exeext &&
13439 $as_test_x conftest$ac_exeext; then
13440 ac_cv_func_dlopen=yes
13441else
13442 echo "$as_me: failed program was:" >&5
13443sed 's/^/| /' conftest.$ac_ext >&5
13444
13445 ac_cv_func_dlopen=no
13446fi
13447
13448rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13449 conftest$ac_exeext conftest.$ac_ext
13450fi
13451{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13452echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
13453if test $ac_cv_func_dlopen = yes; then
13454 lt_cv_dlopen="dlopen"
13455else
13456 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13457echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13458if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13460else
13461 ac_check_lib_save_LIBS=$LIBS
13462LIBS="-ldl $LIBS"
13463cat >conftest.$ac_ext <<_ACEOF
13464/* confdefs.h. */
13465_ACEOF
13466cat confdefs.h >>conftest.$ac_ext
13467cat >>conftest.$ac_ext <<_ACEOF
13468/* end confdefs.h. */
13469
13470/* Override any GCC internal prototype to avoid an error.
13471 Use char because int might match the return type of a GCC
13472 builtin and then its argument prototype would still apply. */
13473#ifdef __cplusplus
13474extern "C"
13475#endif
13476char dlopen ();
13477int
13478main ()
13479{
13480return dlopen ();
13481 ;
13482 return 0;
13483}
13484_ACEOF
13485rm -f conftest.$ac_objext conftest$ac_exeext
13486if { (ac_try="$ac_link"
13487case "(($ac_try" in
13488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13489 *) ac_try_echo=$ac_try;;
13490esac
13491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13492 (eval "$ac_link") 2>conftest.er1
13493 ac_status=$?
13494 grep -v '^ *+' conftest.er1 >conftest.err
13495 rm -f conftest.er1
13496 cat conftest.err >&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); } && {
13499 test -z "$ac_cxx_werror_flag" ||
13500 test ! -s conftest.err
13501 } && test -s conftest$ac_exeext &&
13502 $as_test_x conftest$ac_exeext; then
13503 ac_cv_lib_dl_dlopen=yes
13504else
13505 echo "$as_me: failed program was:" >&5
13506sed 's/^/| /' conftest.$ac_ext >&5
13507
13508 ac_cv_lib_dl_dlopen=no
13509fi
13510
13511rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13512 conftest$ac_exeext conftest.$ac_ext
13513LIBS=$ac_check_lib_save_LIBS
13514fi
13515{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13516echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13517if test $ac_cv_lib_dl_dlopen = yes; then
13518 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13519else
13520 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13521echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
13522if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13523 echo $ECHO_N "(cached) $ECHO_C" >&6
13524else
13525 ac_check_lib_save_LIBS=$LIBS
13526LIBS="-lsvld $LIBS"
13527cat >conftest.$ac_ext <<_ACEOF
13528/* confdefs.h. */
13529_ACEOF
13530cat confdefs.h >>conftest.$ac_ext
13531cat >>conftest.$ac_ext <<_ACEOF
13532/* end confdefs.h. */
13533
13534/* Override any GCC internal prototype to avoid an error.
13535 Use char because int might match the return type of a GCC
13536 builtin and then its argument prototype would still apply. */
13537#ifdef __cplusplus
13538extern "C"
13539#endif
13540char dlopen ();
13541int
13542main ()
13543{
13544return dlopen ();
13545 ;
13546 return 0;
13547}
13548_ACEOF
13549rm -f conftest.$ac_objext conftest$ac_exeext
13550if { (ac_try="$ac_link"
13551case "(($ac_try" in
13552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13553 *) ac_try_echo=$ac_try;;
13554esac
13555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13556 (eval "$ac_link") 2>conftest.er1
13557 ac_status=$?
13558 grep -v '^ *+' conftest.er1 >conftest.err
13559 rm -f conftest.er1
13560 cat conftest.err >&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); } && {
13563 test -z "$ac_cxx_werror_flag" ||
13564 test ! -s conftest.err
13565 } && test -s conftest$ac_exeext &&
13566 $as_test_x conftest$ac_exeext; then
13567 ac_cv_lib_svld_dlopen=yes
13568else
13569 echo "$as_me: failed program was:" >&5
13570sed 's/^/| /' conftest.$ac_ext >&5
13571
13572 ac_cv_lib_svld_dlopen=no
13573fi
13574
13575rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13576 conftest$ac_exeext conftest.$ac_ext
13577LIBS=$ac_check_lib_save_LIBS
13578fi
13579{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13580echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
13581if test $ac_cv_lib_svld_dlopen = yes; then
13582 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13583else
13584 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13585echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
13586if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13587 echo $ECHO_N "(cached) $ECHO_C" >&6
13588else
13589 ac_check_lib_save_LIBS=$LIBS
13590LIBS="-ldld $LIBS"
13591cat >conftest.$ac_ext <<_ACEOF
13592/* confdefs.h. */
13593_ACEOF
13594cat confdefs.h >>conftest.$ac_ext
13595cat >>conftest.$ac_ext <<_ACEOF
13596/* end confdefs.h. */
13597
13598/* Override any GCC internal prototype to avoid an error.
13599 Use char because int might match the return type of a GCC
13600 builtin and then its argument prototype would still apply. */
13601#ifdef __cplusplus
13602extern "C"
13603#endif
13604char dld_link ();
13605int
13606main ()
13607{
13608return dld_link ();
13609 ;
13610 return 0;
13611}
13612_ACEOF
13613rm -f conftest.$ac_objext conftest$ac_exeext
13614if { (ac_try="$ac_link"
13615case "(($ac_try" in
13616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13617 *) ac_try_echo=$ac_try;;
13618esac
13619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13620 (eval "$ac_link") 2>conftest.er1
13621 ac_status=$?
13622 grep -v '^ *+' conftest.er1 >conftest.err
13623 rm -f conftest.er1
13624 cat conftest.err >&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); } && {
13627 test -z "$ac_cxx_werror_flag" ||
13628 test ! -s conftest.err
13629 } && test -s conftest$ac_exeext &&
13630 $as_test_x conftest$ac_exeext; then
13631 ac_cv_lib_dld_dld_link=yes
13632else
13633 echo "$as_me: failed program was:" >&5
13634sed 's/^/| /' conftest.$ac_ext >&5
13635
13636 ac_cv_lib_dld_dld_link=no
13637fi
13638
13639rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13640 conftest$ac_exeext conftest.$ac_ext
13641LIBS=$ac_check_lib_save_LIBS
13642fi
13643{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13644echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
13645if test $ac_cv_lib_dld_dld_link = yes; then
13646 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13647fi
13648
13649
13650fi
13651
13652
13653fi
13654
13655
13656fi
13657
13658
13659fi
13660
13661
13662fi
13663
13664 ;;
13665 esac
13666
13667 if test "x$lt_cv_dlopen" != xno; then
13668 enable_dlopen=yes
13669 else
13670 enable_dlopen=no
13671 fi
13672
13673 case $lt_cv_dlopen in
13674 dlopen)
13675 save_CPPFLAGS="$CPPFLAGS"
13676 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13677
13678 save_LDFLAGS="$LDFLAGS"
13679 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13680
13681 save_LIBS="$LIBS"
13682 LIBS="$lt_cv_dlopen_libs $LIBS"
13683
13684 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13685echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
13686if test "${lt_cv_dlopen_self+set}" = set; then
13687 echo $ECHO_N "(cached) $ECHO_C" >&6
13688else
13689 if test "$cross_compiling" = yes; then :
13690 lt_cv_dlopen_self=cross
13691else
13692 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13693 lt_status=$lt_dlunknown
13694 cat > conftest.$ac_ext <<EOF
13695#line 13695 "configure"
13696#include "confdefs.h"
13697
13698#if HAVE_DLFCN_H
13699#include <dlfcn.h>
13700#endif
13701
13702#include <stdio.h>
13703
13704#ifdef RTLD_GLOBAL
13705# define LT_DLGLOBAL RTLD_GLOBAL
13706#else
13707# ifdef DL_GLOBAL
13708# define LT_DLGLOBAL DL_GLOBAL
13709# else
13710# define LT_DLGLOBAL 0
13711# endif
13712#endif
13713
13714/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13715 find out it does not work in some platform. */
13716#ifndef LT_DLLAZY_OR_NOW
13717# ifdef RTLD_LAZY
13718# define LT_DLLAZY_OR_NOW RTLD_LAZY
13719# else
13720# ifdef DL_LAZY
13721# define LT_DLLAZY_OR_NOW DL_LAZY
13722# else
13723# ifdef RTLD_NOW
13724# define LT_DLLAZY_OR_NOW RTLD_NOW
13725# else
13726# ifdef DL_NOW
13727# define LT_DLLAZY_OR_NOW DL_NOW
13728# else
13729# define LT_DLLAZY_OR_NOW 0
13730# endif
13731# endif
13732# endif
13733# endif
13734#endif
13735
13736#ifdef __cplusplus
13737extern "C" void exit (int);
13738#endif
13739
13740void fnord() { int i=42;}
13741int main ()
13742{
13743 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13744 int status = $lt_dlunknown;
13745
13746 if (self)
13747 {
13748 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13749 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13750 /* dlclose (self); */
13751 }
13752
13753 exit (status);
13754}
13755EOF
13756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13757 (eval $ac_link) 2>&5
13758 ac_status=$?
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13761 (./conftest; exit; ) 2>/dev/null
13762 lt_status=$?
13763 case x$lt_status in
13764 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13765 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13766 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13767 esac
13768 else :
13769 # compilation failed
13770 lt_cv_dlopen_self=no
13771 fi
13772fi
13773rm -fr conftest*
13774
13775
13776fi
13777{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13778echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
13779
13780 if test "x$lt_cv_dlopen_self" = xyes; then
13781 LDFLAGS="$LDFLAGS $link_static_flag"
13782 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13783echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
13784if test "${lt_cv_dlopen_self_static+set}" = set; then
13785 echo $ECHO_N "(cached) $ECHO_C" >&6
13786else
13787 if test "$cross_compiling" = yes; then :
13788 lt_cv_dlopen_self_static=cross
13789else
13790 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13791 lt_status=$lt_dlunknown
13792 cat > conftest.$ac_ext <<EOF
13793#line 13793 "configure"
13794#include "confdefs.h"
13795
13796#if HAVE_DLFCN_H
13797#include <dlfcn.h>
13798#endif
13799
13800#include <stdio.h>
13801
13802#ifdef RTLD_GLOBAL
13803# define LT_DLGLOBAL RTLD_GLOBAL
13804#else
13805# ifdef DL_GLOBAL
13806# define LT_DLGLOBAL DL_GLOBAL
13807# else
13808# define LT_DLGLOBAL 0
13809# endif
13810#endif
13811
13812/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13813 find out it does not work in some platform. */
13814#ifndef LT_DLLAZY_OR_NOW
13815# ifdef RTLD_LAZY
13816# define LT_DLLAZY_OR_NOW RTLD_LAZY
13817# else
13818# ifdef DL_LAZY
13819# define LT_DLLAZY_OR_NOW DL_LAZY
13820# else
13821# ifdef RTLD_NOW
13822# define LT_DLLAZY_OR_NOW RTLD_NOW
13823# else
13824# ifdef DL_NOW
13825# define LT_DLLAZY_OR_NOW DL_NOW
13826# else
13827# define LT_DLLAZY_OR_NOW 0
13828# endif
13829# endif
13830# endif
13831# endif
13832#endif
13833
13834#ifdef __cplusplus
13835extern "C" void exit (int);
13836#endif
13837
13838void fnord() { int i=42;}
13839int main ()
13840{
13841 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13842 int status = $lt_dlunknown;
13843
13844 if (self)
13845 {
13846 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13847 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13848 /* dlclose (self); */
13849 }
13850
13851 exit (status);
13852}
13853EOF
13854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13855 (eval $ac_link) 2>&5
13856 ac_status=$?
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13859 (./conftest; exit; ) 2>/dev/null
13860 lt_status=$?
13861 case x$lt_status in
13862 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13863 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13864 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13865 esac
13866 else :
13867 # compilation failed
13868 lt_cv_dlopen_self_static=no
13869 fi
13870fi
13871rm -fr conftest*
13872
13873
13874fi
13875{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13876echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13877 fi
13878
13879 CPPFLAGS="$save_CPPFLAGS"
13880 LDFLAGS="$save_LDFLAGS"
13881 LIBS="$save_LIBS"
13882 ;;
13883 esac
13884
13885 case $lt_cv_dlopen_self in
13886 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13887 *) enable_dlopen_self=unknown ;;
13888 esac
13889
13890 case $lt_cv_dlopen_self_static in
13891 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13892 *) enable_dlopen_self_static=unknown ;;
13893 esac
13894fi
13895
13896
13897# The else clause should only fire when bootstrapping the
13898# libtool distribution, otherwise you forgot to ship ltmain.sh
13899# with your package, and you will get complaints that there are
13900# no rules to generate ltmain.sh.
13901if test -f "$ltmain"; then
13902 # See if we are running on zsh, and set the options which allow our commands through
13903 # without removal of \ escapes.
13904 if test -n "${ZSH_VERSION+set}" ; then
13905 setopt NO_GLOB_SUBST
13906 fi
13907 # Now quote all the things that may contain metacharacters while being
13908 # careful not to overquote the AC_SUBSTed values. We take copies of the
13909 # variables and quote the copies for generation of the libtool script.
13910 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13911 SED SHELL STRIP \
13912 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13913 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13914 deplibs_check_method reload_flag reload_cmds need_locks \
13915 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13916 lt_cv_sys_global_symbol_to_c_name_address \
13917 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13918 old_postinstall_cmds old_postuninstall_cmds \
13919 compiler_CXX \
13920 CC_CXX \
13921 LD_CXX \
13922 lt_prog_compiler_wl_CXX \
13923 lt_prog_compiler_pic_CXX \
13924 lt_prog_compiler_static_CXX \
13925 lt_prog_compiler_no_builtin_flag_CXX \
13926 export_dynamic_flag_spec_CXX \
13927 thread_safe_flag_spec_CXX \
13928 whole_archive_flag_spec_CXX \
13929 enable_shared_with_static_runtimes_CXX \
13930 old_archive_cmds_CXX \
13931 old_archive_from_new_cmds_CXX \
13932 predep_objects_CXX \
13933 postdep_objects_CXX \
13934 predeps_CXX \
13935 postdeps_CXX \
13936 compiler_lib_search_path_CXX \
13937 archive_cmds_CXX \
13938 archive_expsym_cmds_CXX \
13939 postinstall_cmds_CXX \
13940 postuninstall_cmds_CXX \
13941 old_archive_from_expsyms_cmds_CXX \
13942 allow_undefined_flag_CXX \
13943 no_undefined_flag_CXX \
13944 export_symbols_cmds_CXX \
13945 hardcode_libdir_flag_spec_CXX \
13946 hardcode_libdir_flag_spec_ld_CXX \
13947 hardcode_libdir_separator_CXX \
13948 hardcode_automatic_CXX \
13949 module_cmds_CXX \
13950 module_expsym_cmds_CXX \
13951 lt_cv_prog_compiler_c_o_CXX \
13952 exclude_expsyms_CXX \
13953 include_expsyms_CXX; do
13954
13955 case $var in
13956 old_archive_cmds_CXX | \
13957 old_archive_from_new_cmds_CXX | \
13958 archive_cmds_CXX | \
13959 archive_expsym_cmds_CXX | \
13960 module_cmds_CXX | \
13961 module_expsym_cmds_CXX | \
13962 old_archive_from_expsyms_cmds_CXX | \
13963 export_symbols_cmds_CXX | \
13964 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13965 postinstall_cmds | postuninstall_cmds | \
13966 old_postinstall_cmds | old_postuninstall_cmds | \
13967 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13968 # Double-quote double-evaled strings.
13969 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13970 ;;
13971 *)
13972 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13973 ;;
13974 esac
13975 done
13976
13977 case $lt_echo in
13978 *'\$0 --fallback-echo"')
13979 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13980 ;;
13981 esac
13982
13983cfgfile="$ofile"
13984
13985 cat <<__EOF__ >> "$cfgfile"
13986# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13987
13988# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13989
13990# Shell to use when invoking shell scripts.
13991SHELL=$lt_SHELL
13992
13993# Whether or not to build shared libraries.
13994build_libtool_libs=$enable_shared
13995
13996# Whether or not to build static libraries.
13997build_old_libs=$enable_static
13998
13999# Whether or not to add -lc for building shared libraries.
14000build_libtool_need_lc=$archive_cmds_need_lc_CXX
14001
14002# Whether or not to disallow shared libs when runtime libs are static
14003allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14004
14005# Whether or not to optimize for fast installation.
14006fast_install=$enable_fast_install
14007
14008# The host system.
14009host_alias=$host_alias
14010host=$host
14011
14012# An echo program that does not interpret backslashes.
14013echo=$lt_echo
14014
14015# The archiver.
14016AR=$lt_AR
14017AR_FLAGS=$lt_AR_FLAGS
14018
14019# A C compiler.
14020LTCC=$lt_LTCC
14021
14022# A language-specific compiler.
14023CC=$lt_compiler_CXX
14024
14025# Is the compiler the GNU C compiler?
14026with_gcc=$GCC_CXX
14027
14028# An ERE matcher.
14029EGREP=$lt_EGREP
14030
14031# The linker used to build libraries.
14032LD=$lt_LD_CXX
14033
14034# Whether we need hard or soft links.
14035LN_S=$lt_LN_S
14036
14037# A BSD-compatible nm program.
14038NM=$lt_NM
14039
14040# A symbol stripping program
14041STRIP=$lt_STRIP
14042
14043# Used to examine libraries when file_magic_cmd begins "file"
14044MAGIC_CMD=$MAGIC_CMD
14045
14046# Used on cygwin: DLL creation program.
14047DLLTOOL="$DLLTOOL"
14048
14049# Used on cygwin: object dumper.
14050OBJDUMP="$OBJDUMP"
14051
14052# Used on cygwin: assembler.
14053AS="$AS"
14054
14055# The name of the directory that contains temporary libtool files.
14056objdir=$objdir
14057
14058# How to create reloadable object files.
14059reload_flag=$lt_reload_flag
14060reload_cmds=$lt_reload_cmds
14061
14062# How to pass a linker flag through the compiler.
14063wl=$lt_lt_prog_compiler_wl_CXX
14064
14065# Object file suffix (normally "o").
14066objext="$ac_objext"
14067
14068# Old archive suffix (normally "a").
14069libext="$libext"
14070
14071# Shared library suffix (normally ".so").
14072shrext_cmds='$shrext_cmds'
14073
14074# Executable file suffix (normally "").
14075exeext="$exeext"
14076
14077# Additional compiler flags for building library objects.
14078pic_flag=$lt_lt_prog_compiler_pic_CXX
14079pic_mode=$pic_mode
14080
14081# What is the maximum length of a command?
14082max_cmd_len=$lt_cv_sys_max_cmd_len
14083
14084# Does compiler simultaneously support -c and -o options?
14085compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14086
14087# Must we lock files when doing compilation ?
14088need_locks=$lt_need_locks
14089
14090# Do we need the lib prefix for modules?
14091need_lib_prefix=$need_lib_prefix
14092
14093# Do we need a version for libraries?
14094need_version=$need_version
14095
14096# Whether dlopen is supported.
14097dlopen_support=$enable_dlopen
14098
14099# Whether dlopen of programs is supported.
14100dlopen_self=$enable_dlopen_self
14101
14102# Whether dlopen of statically linked programs is supported.
14103dlopen_self_static=$enable_dlopen_self_static
14104
14105# Compiler flag to prevent dynamic linking.
14106link_static_flag=$lt_lt_prog_compiler_static_CXX
14107
14108# Compiler flag to turn off builtin functions.
14109no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14110
14111# Compiler flag to allow reflexive dlopens.
14112export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14113
14114# Compiler flag to generate shared objects directly from archives.
14115whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14116
14117# Compiler flag to generate thread-safe objects.
14118thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14119
14120# Library versioning type.
14121version_type=$version_type
14122
14123# Format of library name prefix.
14124libname_spec=$lt_libname_spec
14125
14126# List of archive names. First name is the real one, the rest are links.
14127# The last name is the one that the linker finds with -lNAME.
14128library_names_spec=$lt_library_names_spec
14129
14130# The coded name of the library, if different from the real name.
14131soname_spec=$lt_soname_spec
14132
14133# Commands used to build and install an old-style archive.
14134RANLIB=$lt_RANLIB
14135old_archive_cmds=$lt_old_archive_cmds_CXX
14136old_postinstall_cmds=$lt_old_postinstall_cmds
14137old_postuninstall_cmds=$lt_old_postuninstall_cmds
14138
14139# Create an old-style archive from a shared archive.
14140old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14141
14142# Create a temporary old-style archive to link instead of a shared archive.
14143old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14144
14145# Commands used to build and install a shared archive.
14146archive_cmds=$lt_archive_cmds_CXX
14147archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14148postinstall_cmds=$lt_postinstall_cmds
14149postuninstall_cmds=$lt_postuninstall_cmds
14150
14151# Commands used to build a loadable module (assumed same as above if empty)
14152module_cmds=$lt_module_cmds_CXX
14153module_expsym_cmds=$lt_module_expsym_cmds_CXX
14154
14155# Commands to strip libraries.
14156old_striplib=$lt_old_striplib
14157striplib=$lt_striplib
14158
14159# Dependencies to place before the objects being linked to create a
14160# shared library.
14161predep_objects=$lt_predep_objects_CXX
14162
14163# Dependencies to place after the objects being linked to create a
14164# shared library.
14165postdep_objects=$lt_postdep_objects_CXX
14166
14167# Dependencies to place before the objects being linked to create a
14168# shared library.
14169predeps=$lt_predeps_CXX
14170
14171# Dependencies to place after the objects being linked to create a
14172# shared library.
14173postdeps=$lt_postdeps_CXX
14174
14175# The library search path used internally by the compiler when linking
14176# a shared library.
14177compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14178
14179# Method to check whether dependent libraries are shared objects.
14180deplibs_check_method=$lt_deplibs_check_method
14181
14182# Command to use when deplibs_check_method == file_magic.
14183file_magic_cmd=$lt_file_magic_cmd
14184
14185# Flag that allows shared libraries with undefined symbols to be built.
14186allow_undefined_flag=$lt_allow_undefined_flag_CXX
14187
14188# Flag that forces no undefined symbols.
14189no_undefined_flag=$lt_no_undefined_flag_CXX
14190
14191# Commands used to finish a libtool library installation in a directory.
14192finish_cmds=$lt_finish_cmds
14193
14194# Same as above, but a single script fragment to be evaled but not shown.
14195finish_eval=$lt_finish_eval
14196
14197# Take the output of nm and produce a listing of raw symbols and C names.
14198global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14199
14200# Transform the output of nm in a proper C declaration
14201global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14202
14203# Transform the output of nm in a C name address pair
14204global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14205
14206# This is the shared library runtime path variable.
14207runpath_var=$runpath_var
14208
14209# This is the shared library path variable.
14210shlibpath_var=$shlibpath_var
14211
14212# Is shlibpath searched before the hard-coded library search path?
14213shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14214
14215# How to hardcode a shared library path into an executable.
14216hardcode_action=$hardcode_action_CXX
14217
14218# Whether we should hardcode library paths into libraries.
14219hardcode_into_libs=$hardcode_into_libs
14220
14221# Flag to hardcode \$libdir into a binary during linking.
14222# This must work even if \$libdir does not exist.
14223hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14224
14225# If ld is used when linking, flag to hardcode \$libdir into
14226# a binary during linking. This must work even if \$libdir does
14227# not exist.
14228hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14229
14230# Whether we need a single -rpath flag with a separated argument.
14231hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14232
14233# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14234# resulting binary.
14235hardcode_direct=$hardcode_direct_CXX
14236
14237# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14238# resulting binary.
14239hardcode_minus_L=$hardcode_minus_L_CXX
14240
14241# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14242# the resulting binary.
14243hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14244
14245# Set to yes if building a shared library automatically hardcodes DIR into the library
14246# and all subsequent libraries and executables linked against it.
14247hardcode_automatic=$hardcode_automatic_CXX
14248
14249# Variables whose values should be saved in libtool wrapper scripts and
14250# restored at relink time.
14251variables_saved_for_relink="$variables_saved_for_relink"
14252
14253# Whether libtool must link a program against all its dependency libraries.
14254link_all_deplibs=$link_all_deplibs_CXX
14255
14256# Compile-time system search path for libraries
14257sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14258
14259# Run-time system search path for libraries
14260sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14261
14262# Fix the shell variable \$srcfile for the compiler.
14263fix_srcfile_path="$fix_srcfile_path_CXX"
14264
14265# Set to yes if exported symbols are required.
14266always_export_symbols=$always_export_symbols_CXX
14267
14268# The commands to list exported symbols.
14269export_symbols_cmds=$lt_export_symbols_cmds_CXX
14270
14271# The commands to extract the exported symbol list from a shared archive.
14272extract_expsyms_cmds=$lt_extract_expsyms_cmds
14273
14274# Symbols that should not be listed in the preloaded symbols.
14275exclude_expsyms=$lt_exclude_expsyms_CXX
14276
14277# Symbols that must always be exported.
14278include_expsyms=$lt_include_expsyms_CXX
14279
14280# ### END LIBTOOL TAG CONFIG: $tagname
14281
14282__EOF__
14283
14284
14285else
14286 # If there is no Makefile yet, we rely on a make rule to execute
14287 # `config.status --recheck' to rerun these tests and create the
14288 # libtool script then.
14289 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14290 if test -f "$ltmain_in"; then
14291 test -f Makefile && make "$ltmain"
14292 fi
14293fi
14294
14295
14296ac_ext=c
14297ac_cpp='$CPP $CPPFLAGS'
14298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14300ac_compiler_gnu=$ac_cv_c_compiler_gnu
14301
14302CC=$lt_save_CC
14303LDCXX=$LD
14304LD=$lt_save_LD
14305GCC=$lt_save_GCC
14306with_gnu_ldcxx=$with_gnu_ld
14307with_gnu_ld=$lt_save_with_gnu_ld
14308lt_cv_path_LDCXX=$lt_cv_path_LD
14309lt_cv_path_LD=$lt_save_path_LD
14310lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14311lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14312
14313 else
14314 tagname=""
14315 fi
14316 ;;
14317
14318 F77)
14319 if test -n "$F77" && test "X$F77" != "Xno"; then
14320
14321ac_ext=f
14322ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14323ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14324ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14325
14326
14327archive_cmds_need_lc_F77=no
14328allow_undefined_flag_F77=
14329always_export_symbols_F77=no
14330archive_expsym_cmds_F77=
14331export_dynamic_flag_spec_F77=
14332hardcode_direct_F77=no
14333hardcode_libdir_flag_spec_F77=
14334hardcode_libdir_flag_spec_ld_F77=
14335hardcode_libdir_separator_F77=
14336hardcode_minus_L_F77=no
14337hardcode_automatic_F77=no
14338module_cmds_F77=
14339module_expsym_cmds_F77=
14340link_all_deplibs_F77=unknown
14341old_archive_cmds_F77=$old_archive_cmds
14342no_undefined_flag_F77=
14343whole_archive_flag_spec_F77=
14344enable_shared_with_static_runtimes_F77=no
14345
14346# Source file extension for f77 test sources.
14347ac_ext=f
14348
14349# Object file extension for compiled f77 test sources.
14350objext=o
14351objext_F77=$objext
14352
14353# Code to be used in simple compile tests
14354lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14355
14356# Code to be used in simple link tests
14357lt_simple_link_test_code=" program t\n end\n"
14358
14359# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14360
14361# If no C compiler was specified, use CC.
14362LTCC=${LTCC-"$CC"}
14363
14364# Allow CC to be a program name with arguments.
14365compiler=$CC
14366
14367
14368# Allow CC to be a program name with arguments.
14369lt_save_CC="$CC"
14370CC=${F77-"f77"}
14371compiler=$CC
14372compiler_F77=$CC
14373cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14374
14375{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14376echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14377{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14378echo "${ECHO_T}$can_build_shared" >&6; }
14379
14380{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14381echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14382test "$can_build_shared" = "no" && enable_shared=no
14383
14384# On AIX, shared libraries and static libraries use the same namespace, and
14385# are all built from PIC.
14386case "$host_os" in
14387aix3*)
14388 test "$enable_shared" = yes && enable_static=no
14389 if test -n "$RANLIB"; then
14390 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14391 postinstall_cmds='$RANLIB $lib'
14392 fi
14393 ;;
14394aix4* | aix5*)
14395 test "$enable_shared" = yes && enable_static=no
14396 ;;
14397esac
14398{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14399echo "${ECHO_T}$enable_shared" >&6; }
14400
14401{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14402echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14403# Make sure either enable_shared or enable_static is yes.
14404test "$enable_shared" = yes || enable_static=yes
14405{ echo "$as_me:$LINENO: result: $enable_static" >&5
14406echo "${ECHO_T}$enable_static" >&6; }
14407
14408test "$ld_shlibs_F77" = no && can_build_shared=no
14409
14410GCC_F77="$G77"
14411LD_F77="$LD"
14412
14413lt_prog_compiler_wl_F77=
14414lt_prog_compiler_pic_F77=
14415lt_prog_compiler_static_F77=
14416
14417{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14418echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14419
14420 if test "$GCC" = yes; then
14421 lt_prog_compiler_wl_F77='-Wl,'
14422 lt_prog_compiler_static_F77='-static'
14423
14424 case $host_os in
14425 aix*)
14426 # All AIX code is PIC.
14427 if test "$host_cpu" = ia64; then
14428 # AIX 5 now supports IA64 processor
14429 lt_prog_compiler_static_F77='-Bstatic'
14430 fi
14431 ;;
14432
14433 amigaos*)
14434 # FIXME: we need at least 68020 code to build shared libraries, but
14435 # adding the `-m68020' flag to GCC prevents building anything better,
14436 # like `-m68040'.
14437 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14438 ;;
14439
14440 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14441 # PIC is the default for these OSes.
14442 ;;
14443
14444 mingw* | pw32* | os2*)
14445 # This hack is so that the source file can tell whether it is being
14446 # built for inclusion in a dll (and should export symbols for example).
14447 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14448 ;;
14449
14450 darwin* | rhapsody*)
14451 # PIC is the default on this platform
14452 # Common symbols not allowed in MH_DYLIB files
14453 lt_prog_compiler_pic_F77='-fno-common'
14454 ;;
14455
14456 msdosdjgpp*)
14457 # Just because we use GCC doesn't mean we suddenly get shared libraries
14458 # on systems that don't support them.
14459 lt_prog_compiler_can_build_shared_F77=no
14460 enable_shared=no
14461 ;;
14462
14463 sysv4*MP*)
14464 if test -d /usr/nec; then
14465 lt_prog_compiler_pic_F77=-Kconform_pic
14466 fi
14467 ;;
14468
14469 hpux*)
14470 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14471 # not for PA HP-UX.
14472 case "$host_cpu" in
14473 hppa*64*|ia64*)
14474 # +Z the default
14475 ;;
14476 *)
14477 lt_prog_compiler_pic_F77='-fPIC'
14478 ;;
14479 esac
14480 ;;
14481
14482 *)
14483 lt_prog_compiler_pic_F77='-fPIC'
14484 ;;
14485 esac
14486 else
14487 # PORTME Check for flag to pass linker flags through the system compiler.
14488 case $host_os in
14489 aix*)
14490 lt_prog_compiler_wl_F77='-Wl,'
14491 if test "$host_cpu" = ia64; then
14492 # AIX 5 now supports IA64 processor
14493 lt_prog_compiler_static_F77='-Bstatic'
14494 else
14495 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14496 fi
14497 ;;
14498
14499 mingw* | pw32* | os2*)
14500 # This hack is so that the source file can tell whether it is being
14501 # built for inclusion in a dll (and should export symbols for example).
14502 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14503 ;;
14504
14505 hpux9* | hpux10* | hpux11*)
14506 lt_prog_compiler_wl_F77='-Wl,'
14507 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14508 # not for PA HP-UX.
14509 case "$host_cpu" in
14510 hppa*64*|ia64*)
14511 # +Z the default
14512 ;;
14513 *)
14514 lt_prog_compiler_pic_F77='+Z'
14515 ;;
14516 esac
14517 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14518 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14519 ;;
14520
14521 irix5* | irix6* | nonstopux*)
14522 lt_prog_compiler_wl_F77='-Wl,'
14523 # PIC (with -KPIC) is the default.
14524 lt_prog_compiler_static_F77='-non_shared'
14525 ;;
14526
14527 newsos6)
14528 lt_prog_compiler_pic_F77='-KPIC'
14529 lt_prog_compiler_static_F77='-Bstatic'
14530 ;;
14531
14532 linux*)
14533 case $CC in
14534 icc* | ecc*)
14535 lt_prog_compiler_wl_F77='-Wl,'
14536 lt_prog_compiler_pic_F77='-KPIC'
14537 lt_prog_compiler_static_F77='-static'
14538 ;;
14539 ccc*)
14540 lt_prog_compiler_wl_F77='-Wl,'
14541 # All Alpha code is PIC.
14542 lt_prog_compiler_static_F77='-non_shared'
14543 ;;
14544 esac
14545 ;;
14546
14547 osf3* | osf4* | osf5*)
14548 lt_prog_compiler_wl_F77='-Wl,'
14549 # All OSF/1 code is PIC.
14550 lt_prog_compiler_static_F77='-non_shared'
14551 ;;
14552
14553 sco3.2v5*)
14554 lt_prog_compiler_pic_F77='-Kpic'
14555 lt_prog_compiler_static_F77='-dn'
14556 ;;
14557
14558 solaris*)
14559 lt_prog_compiler_wl_F77='-Wl,'
14560 lt_prog_compiler_pic_F77='-KPIC'
14561 lt_prog_compiler_static_F77='-Bstatic'
14562 ;;
14563
14564 sunos4*)
14565 lt_prog_compiler_wl_F77='-Qoption ld '
14566 lt_prog_compiler_pic_F77='-PIC'
14567 lt_prog_compiler_static_F77='-Bstatic'
14568 ;;
14569
14570 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14571 lt_prog_compiler_wl_F77='-Wl,'
14572 lt_prog_compiler_pic_F77='-KPIC'
14573 lt_prog_compiler_static_F77='-Bstatic'
14574 ;;
14575
14576 sysv4*MP*)
14577 if test -d /usr/nec ;then
14578 lt_prog_compiler_pic_F77='-Kconform_pic'
14579 lt_prog_compiler_static_F77='-Bstatic'
14580 fi
14581 ;;
14582
14583 uts4*)
14584 lt_prog_compiler_pic_F77='-pic'
14585 lt_prog_compiler_static_F77='-Bstatic'
14586 ;;
14587
14588 *)
14589 lt_prog_compiler_can_build_shared_F77=no
14590 ;;
14591 esac
14592 fi
14593
14594{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14595echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14596
14597#
14598# Check to make sure the PIC flag actually works.
14599#
14600if test -n "$lt_prog_compiler_pic_F77"; then
14601
14602{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14603echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14604if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14605 echo $ECHO_N "(cached) $ECHO_C" >&6
14606else
14607 lt_prog_compiler_pic_works_F77=no
14608 ac_outfile=conftest.$ac_objext
14609 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14610 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14611 # Insert the option either (1) after the last *FLAGS variable, or
14612 # (2) before a word containing "conftest.", or (3) at the end.
14613 # Note that $ac_compile itself does not contain backslashes and begins
14614 # with a dollar sign (not a hyphen), so the echo should work correctly.
14615 # The option is referenced via a variable to avoid confusing sed.
14616 lt_compile=`echo "$ac_compile" | $SED \
14617 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14618 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14619 -e 's:$: $lt_compiler_flag:'`
14620 (eval echo "\"\$as_me:14620: $lt_compile\"" >&5)
14621 (eval "$lt_compile" 2>conftest.err)
14622 ac_status=$?
14623 cat conftest.err >&5
14624 echo "$as_me:14624: \$? = $ac_status" >&5
14625 if (exit $ac_status) && test -s "$ac_outfile"; then
14626 # The compiler can only warn and ignore the option if not recognized
14627 # So say no if there are warnings
14628 if test ! -s conftest.err; then
14629 lt_prog_compiler_pic_works_F77=yes
14630 fi
14631 fi
14632 $rm conftest*
14633
14634fi
14635{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14636echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14637
14638if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14639 case $lt_prog_compiler_pic_F77 in
14640 "" | " "*) ;;
14641 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14642 esac
14643else
14644 lt_prog_compiler_pic_F77=
14645 lt_prog_compiler_can_build_shared_F77=no
14646fi
14647
14648fi
14649case "$host_os" in
14650 # For platforms which do not support PIC, -DPIC is meaningless:
14651 *djgpp*)
14652 lt_prog_compiler_pic_F77=
14653 ;;
14654 *)
14655 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14656 ;;
14657esac
14658
14659{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14660echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14661if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14662 echo $ECHO_N "(cached) $ECHO_C" >&6
14663else
14664 lt_cv_prog_compiler_c_o_F77=no
14665 $rm -r conftest 2>/dev/null
14666 mkdir conftest
14667 cd conftest
14668 mkdir out
14669 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14670
14671 lt_compiler_flag="-o out/conftest2.$ac_objext"
14672 # Insert the option either (1) after the last *FLAGS variable, or
14673 # (2) before a word containing "conftest.", or (3) at the end.
14674 # Note that $ac_compile itself does not contain backslashes and begins
14675 # with a dollar sign (not a hyphen), so the echo should work correctly.
14676 lt_compile=`echo "$ac_compile" | $SED \
14677 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14678 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14679 -e 's:$: $lt_compiler_flag:'`
14680 (eval echo "\"\$as_me:14680: $lt_compile\"" >&5)
14681 (eval "$lt_compile" 2>out/conftest.err)
14682 ac_status=$?
14683 cat out/conftest.err >&5
14684 echo "$as_me:14684: \$? = $ac_status" >&5
14685 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14686 then
14687 # The compiler can only warn and ignore the option if not recognized
14688 # So say no if there are warnings
14689 if test ! -s out/conftest.err; then
14690 lt_cv_prog_compiler_c_o_F77=yes
14691 fi
14692 fi
14693 chmod u+w .
14694 $rm conftest*
14695 # SGI C++ compiler will create directory out/ii_files/ for
14696 # template instantiation
14697 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14698 $rm out/* && rmdir out
14699 cd ..
14700 rmdir conftest
14701 $rm conftest*
14702
14703fi
14704{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14705echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14706
14707
14708hard_links="nottested"
14709if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14710 # do not overwrite the value of need_locks provided by the user
14711 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14712echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14713 hard_links=yes
14714 $rm conftest*
14715 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14716 touch conftest.a
14717 ln conftest.a conftest.b 2>&5 || hard_links=no
14718 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14719 { echo "$as_me:$LINENO: result: $hard_links" >&5
14720echo "${ECHO_T}$hard_links" >&6; }
14721 if test "$hard_links" = no; then
14722 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14723echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14724 need_locks=warn
14725 fi
14726else
14727 need_locks=no
14728fi
14729
14730{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14731echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14732
14733 runpath_var=
14734 allow_undefined_flag_F77=
14735 enable_shared_with_static_runtimes_F77=no
14736 archive_cmds_F77=
14737 archive_expsym_cmds_F77=
14738 old_archive_From_new_cmds_F77=
14739 old_archive_from_expsyms_cmds_F77=
14740 export_dynamic_flag_spec_F77=
14741 whole_archive_flag_spec_F77=
14742 thread_safe_flag_spec_F77=
14743 hardcode_libdir_flag_spec_F77=
14744 hardcode_libdir_flag_spec_ld_F77=
14745 hardcode_libdir_separator_F77=
14746 hardcode_direct_F77=no
14747 hardcode_minus_L_F77=no
14748 hardcode_shlibpath_var_F77=unsupported
14749 link_all_deplibs_F77=unknown
14750 hardcode_automatic_F77=no
14751 module_cmds_F77=
14752 module_expsym_cmds_F77=
14753 always_export_symbols_F77=no
14754 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14755 # include_expsyms should be a list of space-separated symbols to be *always*
14756 # included in the symbol list
14757 include_expsyms_F77=
14758 # exclude_expsyms can be an extended regexp of symbols to exclude
14759 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14760 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14761 # as well as any symbol that contains `d'.
14762 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14763 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14764 # platforms (ab)use it in PIC code, but their linkers get confused if
14765 # the symbol is explicitly referenced. Since portable code cannot
14766 # rely on this symbol name, it's probably fine to never include it in
14767 # preloaded symbol tables.
14768 extract_expsyms_cmds=
14769
14770 case $host_os in
14771 cygwin* | mingw* | pw32*)
14772 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14773 # When not using gcc, we currently assume that we are using
14774 # Microsoft Visual C++.
14775 if test "$GCC" != yes; then
14776 with_gnu_ld=no
14777 fi
14778 ;;
14779 openbsd*)
14780 with_gnu_ld=no
14781 ;;
14782 esac
14783
14784 ld_shlibs_F77=yes
14785 if test "$with_gnu_ld" = yes; then
14786 # If archive_cmds runs LD, not CC, wlarc should be empty
14787 wlarc='${wl}'
14788
14789 # See if GNU ld supports shared libraries.
14790 case $host_os in
14791 aix3* | aix4* | aix5*)
14792 # On AIX/PPC, the GNU linker is very broken
14793 if test "$host_cpu" != ia64; then
14794 ld_shlibs_F77=no
14795 cat <<EOF 1>&2
14796
14797*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14798*** to be unable to reliably create shared libraries on AIX.
14799*** Therefore, libtool is disabling shared libraries support. If you
14800*** really care for shared libraries, you may want to modify your PATH
14801*** so that a non-GNU linker is found, and then restart.
14802
14803EOF
14804 fi
14805 ;;
14806
14807 amigaos*)
14808 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14809 hardcode_libdir_flag_spec_F77='-L$libdir'
14810 hardcode_minus_L_F77=yes
14811
14812 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14813 # that the semantics of dynamic libraries on AmigaOS, at least up
14814 # to version 4, is to share data among multiple programs linked
14815 # with the same dynamic library. Since this doesn't match the
14816 # behavior of shared libraries on other platforms, we can't use
14817 # them.
14818 ld_shlibs_F77=no
14819 ;;
14820
14821 beos*)
14822 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14823 allow_undefined_flag_F77=unsupported
14824 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14825 # support --undefined. This deserves some investigation. FIXME
14826 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14827 else
14828 ld_shlibs_F77=no
14829 fi
14830 ;;
14831
14832 cygwin* | mingw* | pw32*)
14833 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14834 # as there is no search path for DLLs.
14835 hardcode_libdir_flag_spec_F77='-L$libdir'
14836 allow_undefined_flag_F77=unsupported
14837 always_export_symbols_F77=no
14838 enable_shared_with_static_runtimes_F77=yes
14839 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14840
14841 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14842 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14843 # If the export-symbols file already is a .def file (1st line
14844 # is EXPORTS), use it as is; otherwise, prepend...
14845 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14846 cp $export_symbols $output_objdir/$soname.def;
14847 else
14848 echo EXPORTS > $output_objdir/$soname.def;
14849 cat $export_symbols >> $output_objdir/$soname.def;
14850 fi~
14851 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14852 else
14853 ld_shlibs=no
14854 fi
14855 ;;
14856
14857 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14858 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14859 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14860 wlarc=
14861 else
14862 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14863 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14864 fi
14865 ;;
14866
14867 solaris* | sysv5*)
14868 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14869 ld_shlibs_F77=no
14870 cat <<EOF 1>&2
14871
14872*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14873*** create shared libraries on Solaris systems. Therefore, libtool
14874*** is disabling shared libraries support. We urge you to upgrade GNU
14875*** binutils to release 2.9.1 or newer. Another option is to modify
14876*** your PATH or compiler configuration so that the native linker is
14877*** used, and then restart.
14878
14879EOF
14880 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14881 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14882 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14883 else
14884 ld_shlibs_F77=no
14885 fi
14886 ;;
14887
14888 sunos4*)
14889 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14890 wlarc=
14891 hardcode_direct_F77=yes
14892 hardcode_shlibpath_var_F77=no
14893 ;;
14894
14895 linux*)
14896 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14897 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14898 archive_cmds_F77="$tmp_archive_cmds"
14899 supports_anon_versioning=no
14900 case `$LD -v 2>/dev/null` in
14901 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14902 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14903 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14904 *\ 2.11.*) ;; # other 2.11 versions
14905 *) supports_anon_versioning=yes ;;
14906 esac
14907 if test $supports_anon_versioning = yes; then
14908 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14909cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14910$echo "local: *; };" >> $output_objdir/$libname.ver~
14911 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14912 else
14913 archive_expsym_cmds_F77="$tmp_archive_cmds"
14914 fi
14915 link_all_deplibs_F77=no
14916 else
14917 ld_shlibs_F77=no
14918 fi
14919 ;;
14920
14921 *)
14922 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14923 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14924 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14925 else
14926 ld_shlibs_F77=no
14927 fi
14928 ;;
14929 esac
14930
14931 if test "$ld_shlibs_F77" = yes; then
14932 runpath_var=LD_RUN_PATH
14933 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14934 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14935 # ancient GNU ld didn't support --whole-archive et. al.
14936 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14937 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14938 else
14939 whole_archive_flag_spec_F77=
14940 fi
14941 fi
14942 else
14943 # PORTME fill in a description of your system's linker (not GNU ld)
14944 case $host_os in
14945 aix3*)
14946 allow_undefined_flag_F77=unsupported
14947 always_export_symbols_F77=yes
14948 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14949 # Note: this linker hardcodes the directories in LIBPATH if there
14950 # are no directories specified by -L.
14951 hardcode_minus_L_F77=yes
14952 if test "$GCC" = yes && test -z "$link_static_flag"; then
14953 # Neither direct hardcoding nor static linking is supported with a
14954 # broken collect2.
14955 hardcode_direct_F77=unsupported
14956 fi
14957 ;;
14958
14959 aix4* | aix5*)
14960 if test "$host_cpu" = ia64; then
14961 # On IA64, the linker does run time linking by default, so we don't
14962 # have to do anything special.
14963 aix_use_runtimelinking=no
14964 exp_sym_flag='-Bexport'
14965 no_entry_flag=""
14966 else
14967 # If we're using GNU nm, then we don't want the "-C" option.
14968 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14969 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14970 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14971 else
14972 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14973 fi
14974 aix_use_runtimelinking=no
14975
14976 # Test if we are trying to use run time linking or normal
14977 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14978 # need to do runtime linking.
14979 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14980 for ld_flag in $LDFLAGS; do
14981 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14982 aix_use_runtimelinking=yes
14983 break
14984 fi
14985 done
14986 esac
14987
14988 exp_sym_flag='-bexport'
14989 no_entry_flag='-bnoentry'
14990 fi
14991
14992 # When large executables or shared objects are built, AIX ld can
14993 # have problems creating the table of contents. If linking a library
14994 # or program results in "error TOC overflow" add -mminimal-toc to
14995 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14996 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14997
14998 archive_cmds_F77=''
14999 hardcode_direct_F77=yes
15000 hardcode_libdir_separator_F77=':'
15001 link_all_deplibs_F77=yes
15002
15003 if test "$GCC" = yes; then
15004 case $host_os in aix4.012|aix4.012.*)
15005 # We only want to do this on AIX 4.2 and lower, the check
15006 # below for broken collect2 doesn't work under 4.3+
15007 collect2name=`${CC} -print-prog-name=collect2`
15008 if test -f "$collect2name" && \
15009 strings "$collect2name" | grep resolve_lib_name >/dev/null
15010 then
15011 # We have reworked collect2
15012 hardcode_direct_F77=yes
15013 else
15014 # We have old collect2
15015 hardcode_direct_F77=unsupported
15016 # It fails to find uninstalled libraries when the uninstalled
15017 # path is not listed in the libpath. Setting hardcode_minus_L
15018 # to unsupported forces relinking
15019 hardcode_minus_L_F77=yes
15020 hardcode_libdir_flag_spec_F77='-L$libdir'
15021 hardcode_libdir_separator_F77=
15022 fi
15023 esac
15024 shared_flag='-shared'
15025 else
15026 # not using gcc
15027 if test "$host_cpu" = ia64; then
15028 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15029 # chokes on -Wl,-G. The following line is correct:
15030 shared_flag='-G'
15031 else
15032 if test "$aix_use_runtimelinking" = yes; then
15033 shared_flag='${wl}-G'
15034 else
15035 shared_flag='${wl}-bM:SRE'
15036 fi
15037 fi
15038 fi
15039
15040 # It seems that -bexpall does not export symbols beginning with
15041 # underscore (_), so it is better to generate a list of symbols to export.
15042 always_export_symbols_F77=yes
15043 if test "$aix_use_runtimelinking" = yes; then
15044 # Warning - without using the other runtime loading flags (-brtl),
15045 # -berok will link without error, but may produce a broken library.
15046 allow_undefined_flag_F77='-berok'
15047 # Determine the default libpath from the value encoded in an empty executable.
15048 cat >conftest.$ac_ext <<_ACEOF
15049 program main
15050
15051 end
15052_ACEOF
15053rm -f conftest.$ac_objext conftest$ac_exeext
15054if { (ac_try="$ac_link"
15055case "(($ac_try" in
15056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15057 *) ac_try_echo=$ac_try;;
15058esac
15059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15060 (eval "$ac_link") 2>conftest.er1
15061 ac_status=$?
15062 grep -v '^ *+' conftest.er1 >conftest.err
15063 rm -f conftest.er1
15064 cat conftest.err >&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); } && {
15067 test -z "$ac_f77_werror_flag" ||
15068 test ! -s conftest.err
15069 } && test -s conftest$ac_exeext &&
15070 $as_test_x conftest$ac_exeext; then
15071
15072aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15073}'`
15074# Check for a 64-bit object if we didn't find anything.
15075if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15076}'`; fi
15077else
15078 echo "$as_me: failed program was:" >&5
15079sed 's/^/| /' conftest.$ac_ext >&5
15080
15081
15082fi
15083
15084rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15085 conftest$ac_exeext conftest.$ac_ext
15086if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15087
15088 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15089 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15090 else
15091 if test "$host_cpu" = ia64; then
15092 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15093 allow_undefined_flag_F77="-z nodefs"
15094 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15095 else
15096 # Determine the default libpath from the value encoded in an empty executable.
15097 cat >conftest.$ac_ext <<_ACEOF
15098 program main
15099
15100 end
15101_ACEOF
15102rm -f conftest.$ac_objext conftest$ac_exeext
15103if { (ac_try="$ac_link"
15104case "(($ac_try" in
15105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15106 *) ac_try_echo=$ac_try;;
15107esac
15108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15109 (eval "$ac_link") 2>conftest.er1
15110 ac_status=$?
15111 grep -v '^ *+' conftest.er1 >conftest.err
15112 rm -f conftest.er1
15113 cat conftest.err >&5
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); } && {
15116 test -z "$ac_f77_werror_flag" ||
15117 test ! -s conftest.err
15118 } && test -s conftest$ac_exeext &&
15119 $as_test_x conftest$ac_exeext; then
15120
15121aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15122}'`
15123# Check for a 64-bit object if we didn't find anything.
15124if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15125}'`; fi
15126else
15127 echo "$as_me: failed program was:" >&5
15128sed 's/^/| /' conftest.$ac_ext >&5
15129
15130
15131fi
15132
15133rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15134 conftest$ac_exeext conftest.$ac_ext
15135if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15136
15137 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15138 # Warning - without using the other run time loading flags,
15139 # -berok will link without error, but may produce a broken library.
15140 no_undefined_flag_F77=' ${wl}-bernotok'
15141 allow_undefined_flag_F77=' ${wl}-berok'
15142 # -bexpall does not export symbols beginning with underscore (_)
15143 always_export_symbols_F77=yes
15144 # Exported symbols can be pulled into shared objects from archives
15145 whole_archive_flag_spec_F77=' '
15146 archive_cmds_need_lc_F77=yes
15147 # This is similar to how AIX traditionally builds it's shared libraries.
15148 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15149 fi
15150 fi
15151 ;;
15152
15153 amigaos*)
15154 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15155 hardcode_libdir_flag_spec_F77='-L$libdir'
15156 hardcode_minus_L_F77=yes
15157 # see comment about different semantics on the GNU ld section
15158 ld_shlibs_F77=no
15159 ;;
15160
15161 bsdi4*)
15162 export_dynamic_flag_spec_F77=-rdynamic
15163 ;;
15164
15165 cygwin* | mingw* | pw32*)
15166 # When not using gcc, we currently assume that we are using
15167 # Microsoft Visual C++.
15168 # hardcode_libdir_flag_spec is actually meaningless, as there is
15169 # no search path for DLLs.
15170 hardcode_libdir_flag_spec_F77=' '
15171 allow_undefined_flag_F77=unsupported
15172 # Tell ltmain to make .lib files, not .a files.
15173 libext=lib
15174 # Tell ltmain to make .dll files, not .so files.
15175 shrext_cmds=".dll"
15176 # FIXME: Setting linknames here is a bad hack.
15177 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15178 # The linker will automatically build a .lib file if we build a DLL.
15179 old_archive_From_new_cmds_F77='true'
15180 # FIXME: Should let the user specify the lib program.
15181 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15182 fix_srcfile_path='`cygpath -w "$srcfile"`'
15183 enable_shared_with_static_runtimes_F77=yes
15184 ;;
15185
15186 darwin* | rhapsody*)
15187 if test "$GXX" = yes ; then
15188 archive_cmds_need_lc_F77=no
15189 case "$host_os" in
15190 rhapsody* | darwin1.[012])
15191 allow_undefined_flag_F77='-undefined suppress'
15192 ;;
15193 *) # Darwin 1.3 on
15194 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15195 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15196 else
15197 case ${MACOSX_DEPLOYMENT_TARGET} in
15198 10.[012])
15199 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15200 ;;
15201 10.*)
15202 allow_undefined_flag_F77='-undefined dynamic_lookup'
15203 ;;
15204 esac
15205 fi
15206 ;;
15207 esac
15208 lt_int_apple_cc_single_mod=no
15209 output_verbose_link_cmd='echo'
15210 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15211 lt_int_apple_cc_single_mod=yes
15212 fi
15213 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15214 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15215 else
15216 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15217 fi
15218 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15219 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15220 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15221 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15222 else
15223 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15224 fi
15225 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15226 hardcode_direct_F77=no
15227 hardcode_automatic_F77=yes
15228 hardcode_shlibpath_var_F77=unsupported
15229 whole_archive_flag_spec_F77='-all_load $convenience'
15230 link_all_deplibs_F77=yes
15231 else
15232 ld_shlibs_F77=no
15233 fi
15234 ;;
15235
15236 dgux*)
15237 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15238 hardcode_libdir_flag_spec_F77='-L$libdir'
15239 hardcode_shlibpath_var_F77=no
15240 ;;
15241
15242 freebsd1*)
15243 ld_shlibs_F77=no
15244 ;;
15245
15246 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15247 # support. Future versions do this automatically, but an explicit c++rt0.o
15248 # does not break anything, and helps significantly (at the cost of a little
15249 # extra space).
15250 freebsd2.2*)
15251 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15252 hardcode_libdir_flag_spec_F77='-R$libdir'
15253 hardcode_direct_F77=yes
15254 hardcode_shlibpath_var_F77=no
15255 ;;
15256
15257 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15258 freebsd2*)
15259 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15260 hardcode_direct_F77=yes
15261 hardcode_minus_L_F77=yes
15262 hardcode_shlibpath_var_F77=no
15263 ;;
15264
15265 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15266 freebsd* | kfreebsd*-gnu)
15267 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15268 hardcode_libdir_flag_spec_F77='-R$libdir'
15269 hardcode_direct_F77=yes
15270 hardcode_shlibpath_var_F77=no
15271 ;;
15272
15273 hpux9*)
15274 if test "$GCC" = yes; then
15275 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15276 else
15277 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15278 fi
15279 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15280 hardcode_libdir_separator_F77=:
15281 hardcode_direct_F77=yes
15282
15283 # hardcode_minus_L: Not really in the search PATH,
15284 # but as the default location of the library.
15285 hardcode_minus_L_F77=yes
15286 export_dynamic_flag_spec_F77='${wl}-E'
15287 ;;
15288
15289 hpux10* | hpux11*)
15290 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15291 case "$host_cpu" in
15292 hppa*64*|ia64*)
15293 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15294 ;;
15295 *)
15296 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15297 ;;
15298 esac
15299 else
15300 case "$host_cpu" in
15301 hppa*64*|ia64*)
15302 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15303 ;;
15304 *)
15305 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15306 ;;
15307 esac
15308 fi
15309 if test "$with_gnu_ld" = no; then
15310 case "$host_cpu" in
15311 hppa*64*)
15312 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15313 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15314 hardcode_libdir_separator_F77=:
15315 hardcode_direct_F77=no
15316 hardcode_shlibpath_var_F77=no
15317 ;;
15318 ia64*)
15319 hardcode_libdir_flag_spec_F77='-L$libdir'
15320 hardcode_direct_F77=no
15321 hardcode_shlibpath_var_F77=no
15322
15323 # hardcode_minus_L: Not really in the search PATH,
15324 # but as the default location of the library.
15325 hardcode_minus_L_F77=yes
15326 ;;
15327 *)
15328 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15329 hardcode_libdir_separator_F77=:
15330 hardcode_direct_F77=yes
15331 export_dynamic_flag_spec_F77='${wl}-E'
15332
15333 # hardcode_minus_L: Not really in the search PATH,
15334 # but as the default location of the library.
15335 hardcode_minus_L_F77=yes
15336 ;;
15337 esac
15338 fi
15339 ;;
15340
15341 irix5* | irix6* | nonstopux*)
15342 if test "$GCC" = yes; then
15343 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15344 else
15345 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15346 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15347 fi
15348 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15349 hardcode_libdir_separator_F77=:
15350 link_all_deplibs_F77=yes
15351 ;;
15352
15353 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15354 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15355 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15356 else
15357 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15358 fi
15359 hardcode_libdir_flag_spec_F77='-R$libdir'
15360 hardcode_direct_F77=yes
15361 hardcode_shlibpath_var_F77=no
15362 ;;
15363
15364 newsos6)
15365 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15366 hardcode_direct_F77=yes
15367 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15368 hardcode_libdir_separator_F77=:
15369 hardcode_shlibpath_var_F77=no
15370 ;;
15371
15372 openbsd*)
15373 hardcode_direct_F77=yes
15374 hardcode_shlibpath_var_F77=no
15375 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15376 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15377 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15378 export_dynamic_flag_spec_F77='${wl}-E'
15379 else
15380 case $host_os in
15381 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15382 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15383 hardcode_libdir_flag_spec_F77='-R$libdir'
15384 ;;
15385 *)
15386 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15387 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15388 ;;
15389 esac
15390 fi
15391 ;;
15392
15393 os2*)
15394 hardcode_libdir_flag_spec_F77='-L$libdir'
15395 hardcode_minus_L_F77=yes
15396 allow_undefined_flag_F77=unsupported
15397 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15398 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15399 ;;
15400
15401 osf3*)
15402 if test "$GCC" = yes; then
15403 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15404 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15405 else
15406 allow_undefined_flag_F77=' -expect_unresolved \*'
15407 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15408 fi
15409 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15410 hardcode_libdir_separator_F77=:
15411 ;;
15412
15413 osf4* | osf5*) # as osf3* with the addition of -msym flag
15414 if test "$GCC" = yes; then
15415 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15416 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15417 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15418 else
15419 allow_undefined_flag_F77=' -expect_unresolved \*'
15420 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15421 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15422 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15423
15424 # Both c and cxx compiler support -rpath directly
15425 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15426 fi
15427 hardcode_libdir_separator_F77=:
15428 ;;
15429
15430 sco3.2v5*)
15431 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15432 hardcode_shlibpath_var_F77=no
15433 export_dynamic_flag_spec_F77='${wl}-Bexport'
15434 runpath_var=LD_RUN_PATH
15435 hardcode_runpath_var=yes
15436 ;;
15437
15438 solaris*)
15439 no_undefined_flag_F77=' -z text'
15440 if test "$GCC" = yes; then
15441 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15442 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15443 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15444 else
15445 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15446 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15447 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15448 fi
15449 hardcode_libdir_flag_spec_F77='-R$libdir'
15450 hardcode_shlibpath_var_F77=no
15451 case $host_os in
15452 solaris2.[0-5] | solaris2.[0-5].*) ;;
15453 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15454 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15455 esac
15456 link_all_deplibs_F77=yes
15457 ;;
15458
15459 sunos4*)
15460 if test "x$host_vendor" = xsequent; then
15461 # Use $CC to link under sequent, because it throws in some extra .o
15462 # files that make .init and .fini sections work.
15463 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15464 else
15465 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15466 fi
15467 hardcode_libdir_flag_spec_F77='-L$libdir'
15468 hardcode_direct_F77=yes
15469 hardcode_minus_L_F77=yes
15470 hardcode_shlibpath_var_F77=no
15471 ;;
15472
15473 sysv4)
15474 case $host_vendor in
15475 sni)
15476 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15477 hardcode_direct_F77=yes # is this really true???
15478 ;;
15479 siemens)
15480 ## LD is ld it makes a PLAMLIB
15481 ## CC just makes a GrossModule.
15482 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15483 reload_cmds_F77='$CC -r -o $output$reload_objs'
15484 hardcode_direct_F77=no
15485 ;;
15486 motorola)
15487 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15488 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15489 ;;
15490 esac
15491 runpath_var='LD_RUN_PATH'
15492 hardcode_shlibpath_var_F77=no
15493 ;;
15494
15495 sysv4.3*)
15496 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15497 hardcode_shlibpath_var_F77=no
15498 export_dynamic_flag_spec_F77='-Bexport'
15499 ;;
15500
15501 sysv4*MP*)
15502 if test -d /usr/nec; then
15503 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15504 hardcode_shlibpath_var_F77=no
15505 runpath_var=LD_RUN_PATH
15506 hardcode_runpath_var=yes
15507 ld_shlibs_F77=yes
15508 fi
15509 ;;
15510
15511 sysv4.2uw2*)
15512 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15513 hardcode_direct_F77=yes
15514 hardcode_minus_L_F77=no
15515 hardcode_shlibpath_var_F77=no
15516 hardcode_runpath_var=yes
15517 runpath_var=LD_RUN_PATH
15518 ;;
15519
15520 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15521 no_undefined_flag_F77='${wl}-z ${wl}text'
15522 if test "$GCC" = yes; then
15523 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15524 else
15525 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15526 fi
15527 runpath_var='LD_RUN_PATH'
15528 hardcode_shlibpath_var_F77=no
15529 ;;
15530
15531 sysv5*)
15532 no_undefined_flag_F77=' -z text'
15533 # $CC -shared without GNU ld will not create a library from C++
15534 # object files and a static libstdc++, better avoid it by now
15535 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15536 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15537 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15538 hardcode_libdir_flag_spec_F77=
15539 hardcode_shlibpath_var_F77=no
15540 runpath_var='LD_RUN_PATH'
15541 ;;
15542
15543 uts4*)
15544 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15545 hardcode_libdir_flag_spec_F77='-L$libdir'
15546 hardcode_shlibpath_var_F77=no
15547 ;;
15548
15549 *)
15550 ld_shlibs_F77=no
15551 ;;
15552 esac
15553 fi
15554
15555{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15556echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15557test "$ld_shlibs_F77" = no && can_build_shared=no
15558
15559variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15560if test "$GCC" = yes; then
15561 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15562fi
15563
15564#
15565# Do we need to explicitly link libc?
15566#
15567case "x$archive_cmds_need_lc_F77" in
15568x|xyes)
15569 # Assume -lc should be added
15570 archive_cmds_need_lc_F77=yes
15571
15572 if test "$enable_shared" = yes && test "$GCC" = yes; then
15573 case $archive_cmds_F77 in
15574 *'~'*)
15575 # FIXME: we may have to deal with multi-command sequences.
15576 ;;
15577 '$CC '*)
15578 # Test whether the compiler implicitly links with -lc since on some
15579 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15580 # to ld, don't add -lc before -lgcc.
15581 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15582echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15583 $rm conftest*
15584 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15585
15586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15587 (eval $ac_compile) 2>&5
15588 ac_status=$?
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); } 2>conftest.err; then
15591 soname=conftest
15592 lib=conftest
15593 libobjs=conftest.$ac_objext
15594 deplibs=
15595 wl=$lt_prog_compiler_wl_F77
15596 compiler_flags=-v
15597 linker_flags=-v
15598 verstring=
15599 output_objdir=.
15600 libname=conftest
15601 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15602 allow_undefined_flag_F77=
15603 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15604 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15605 ac_status=$?
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }
15608 then
15609 archive_cmds_need_lc_F77=no
15610 else
15611 archive_cmds_need_lc_F77=yes
15612 fi
15613 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15614 else
15615 cat conftest.err 1>&5
15616 fi
15617 $rm conftest*
15618 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15619echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15620 ;;
15621 esac
15622 fi
15623 ;;
15624esac
15625
15626{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15627echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15628library_names_spec=
15629libname_spec='lib$name'
15630soname_spec=
15631shrext_cmds=".so"
15632postinstall_cmds=
15633postuninstall_cmds=
15634finish_cmds=
15635finish_eval=
15636shlibpath_var=
15637shlibpath_overrides_runpath=unknown
15638version_type=none
15639dynamic_linker="$host_os ld.so"
15640sys_lib_dlsearch_path_spec="/lib /usr/lib"
15641if test "$GCC" = yes; then
15642 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15643 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15644 # if the path contains ";" then we assume it to be the separator
15645 # otherwise default to the standard path separator (i.e. ":") - it is
15646 # assumed that no part of a normal pathname contains ";" but that should
15647 # okay in the real world where ";" in dirpaths is itself problematic.
15648 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15649 else
15650 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15651 fi
15652else
15653 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15654fi
15655need_lib_prefix=unknown
15656hardcode_into_libs=no
15657
15658# when you set need_version to no, make sure it does not cause -set_version
15659# flags to be left without arguments
15660need_version=unknown
15661
15662case $host_os in
15663aix3*)
15664 version_type=linux
15665 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15666 shlibpath_var=LIBPATH
15667
15668 # AIX 3 has no versioning support, so we append a major version to the name.
15669 soname_spec='${libname}${release}${shared_ext}$major'
15670 ;;
15671
15672aix4* | aix5*)
15673 version_type=linux
15674 need_lib_prefix=no
15675 need_version=no
15676 hardcode_into_libs=yes
15677 if test "$host_cpu" = ia64; then
15678 # AIX 5 supports IA64
15679 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15680 shlibpath_var=LD_LIBRARY_PATH
15681 else
15682 # With GCC up to 2.95.x, collect2 would create an import file
15683 # for dependence libraries. The import file would start with
15684 # the line `#! .'. This would cause the generated library to
15685 # depend on `.', always an invalid library. This was fixed in
15686 # development snapshots of GCC prior to 3.0.
15687 case $host_os in
15688 aix4 | aix4.[01] | aix4.[01].*)
15689 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15690 echo ' yes '
15691 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15692 :
15693 else
15694 can_build_shared=no
15695 fi
15696 ;;
15697 esac
15698 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15699 # soname into executable. Probably we can add versioning support to
15700 # collect2, so additional links can be useful in future.
15701 if test "$aix_use_runtimelinking" = yes; then
15702 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15703 # instead of lib<name>.a to let people know that these are not
15704 # typical AIX shared libraries.
15705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15706 else
15707 # We preserve .a as extension for shared libraries through AIX4.2
15708 # and later when we are not doing run time linking.
15709 library_names_spec='${libname}${release}.a $libname.a'
15710 soname_spec='${libname}${release}${shared_ext}$major'
15711 fi
15712 shlibpath_var=LIBPATH
15713 fi
15714 ;;
15715
15716amigaos*)
15717 library_names_spec='$libname.ixlibrary $libname.a'
15718 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15719 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15720 ;;
15721
15722beos*)
15723 library_names_spec='${libname}${shared_ext}'
15724 dynamic_linker="$host_os ld.so"
15725 shlibpath_var=LIBRARY_PATH
15726 ;;
15727
15728bsdi4*)
15729 version_type=linux
15730 need_version=no
15731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15732 soname_spec='${libname}${release}${shared_ext}$major'
15733 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15734 shlibpath_var=LD_LIBRARY_PATH
15735 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15736 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15737 # the default ld.so.conf also contains /usr/contrib/lib and
15738 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15739 # libtool to hard-code these into programs
15740 ;;
15741
15742cygwin* | mingw* | pw32*)
15743 version_type=windows
15744 shrext_cmds=".dll"
15745 need_version=no
15746 need_lib_prefix=no
15747
15748 case $GCC,$host_os in
15749 yes,cygwin* | yes,mingw* | yes,pw32*)
15750 library_names_spec='$libname.dll.a'
15751 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15752 postinstall_cmds='base_file=`basename \${file}`~
15753 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15754 dldir=$destdir/`dirname \$dlpath`~
15755 test -d \$dldir || mkdir -p \$dldir~
15756 $install_prog $dir/$dlname \$dldir/$dlname'
15757 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15758 dlpath=$dir/\$dldll~
15759 $rm \$dlpath'
15760 shlibpath_overrides_runpath=yes
15761
15762 case $host_os in
15763 cygwin*)
15764 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15765 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15766 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15767 ;;
15768 mingw*)
15769 # MinGW DLLs use traditional 'lib' prefix
15770 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15771 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15772 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15773 # It is most probably a Windows format PATH printed by
15774 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15775 # path with ; separators, and with drive letters. We can handle the
15776 # drive letters (cygwin fileutils understands them), so leave them,
15777 # especially as we might pass files found there to a mingw objdump,
15778 # which wouldn't understand a cygwinified path. Ahh.
15779 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15780 else
15781 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15782 fi
15783 ;;
15784 pw32*)
15785 # pw32 DLLs use 'pw' prefix rather than 'lib'
15786 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15787 ;;
15788 esac
15789 ;;
15790
15791 *)
15792 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15793 ;;
15794 esac
15795 dynamic_linker='Win32 ld.exe'
15796 # FIXME: first we should search . and the directory the executable is in
15797 shlibpath_var=PATH
15798 ;;
15799
15800darwin* | rhapsody*)
15801 dynamic_linker="$host_os dyld"
15802 version_type=darwin
15803 need_lib_prefix=no
15804 need_version=no
15805 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15806 soname_spec='${libname}${release}${major}$shared_ext'
15807 shlibpath_overrides_runpath=yes
15808 shlibpath_var=DYLD_LIBRARY_PATH
15809 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15810 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15811 if test "$GCC" = yes; then
15812 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15813 else
15814 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15815 fi
15816 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15817 ;;
15818
15819dgux*)
15820 version_type=linux
15821 need_lib_prefix=no
15822 need_version=no
15823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15824 soname_spec='${libname}${release}${shared_ext}$major'
15825 shlibpath_var=LD_LIBRARY_PATH
15826 ;;
15827
15828freebsd1*)
15829 dynamic_linker=no
15830 ;;
15831
15832kfreebsd*-gnu)
15833 version_type=linux
15834 need_lib_prefix=no
15835 need_version=no
15836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15837 soname_spec='${libname}${release}${shared_ext}$major'
15838 shlibpath_var=LD_LIBRARY_PATH
15839 shlibpath_overrides_runpath=no
15840 hardcode_into_libs=yes
15841 dynamic_linker='GNU ld.so'
15842 ;;
15843
15844freebsd*)
15845 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15846 version_type=freebsd-$objformat
15847 case $version_type in
15848 freebsd-elf*)
15849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15850 need_version=no
15851 need_lib_prefix=no
15852 ;;
15853 freebsd-*)
15854 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15855 need_version=yes
15856 ;;
15857 esac
15858 shlibpath_var=LD_LIBRARY_PATH
15859 case $host_os in
15860 freebsd2*)
15861 shlibpath_overrides_runpath=yes
15862 ;;
15863 freebsd3.01* | freebsdelf3.01*)
15864 shlibpath_overrides_runpath=yes
15865 hardcode_into_libs=yes
15866 ;;
15867 *) # from 3.2 on
15868 shlibpath_overrides_runpath=no
15869 hardcode_into_libs=yes
15870 ;;
15871 esac
15872 ;;
15873
15874gnu*)
15875 version_type=linux
15876 need_lib_prefix=no
15877 need_version=no
15878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15879 soname_spec='${libname}${release}${shared_ext}$major'
15880 shlibpath_var=LD_LIBRARY_PATH
15881 hardcode_into_libs=yes
15882 ;;
15883
15884hpux9* | hpux10* | hpux11*)
15885 # Give a soname corresponding to the major version so that dld.sl refuses to
15886 # link against other versions.
15887 version_type=sunos
15888 need_lib_prefix=no
15889 need_version=no
15890 case "$host_cpu" in
15891 ia64*)
15892 shrext_cmds='.so'
15893 hardcode_into_libs=yes
15894 dynamic_linker="$host_os dld.so"
15895 shlibpath_var=LD_LIBRARY_PATH
15896 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15898 soname_spec='${libname}${release}${shared_ext}$major'
15899 if test "X$HPUX_IA64_MODE" = X32; then
15900 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15901 else
15902 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15903 fi
15904 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15905 ;;
15906 hppa*64*)
15907 shrext_cmds='.sl'
15908 hardcode_into_libs=yes
15909 dynamic_linker="$host_os dld.sl"
15910 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15911 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15913 soname_spec='${libname}${release}${shared_ext}$major'
15914 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15915 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15916 ;;
15917 *)
15918 shrext_cmds='.sl'
15919 dynamic_linker="$host_os dld.sl"
15920 shlibpath_var=SHLIB_PATH
15921 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15923 soname_spec='${libname}${release}${shared_ext}$major'
15924 ;;
15925 esac
15926 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15927 postinstall_cmds='chmod 555 $lib'
15928 ;;
15929
15930irix5* | irix6* | nonstopux*)
15931 case $host_os in
15932 nonstopux*) version_type=nonstopux ;;
15933 *)
15934 if test "$lt_cv_prog_gnu_ld" = yes; then
15935 version_type=linux
15936 else
15937 version_type=irix
15938 fi ;;
15939 esac
15940 need_lib_prefix=no
15941 need_version=no
15942 soname_spec='${libname}${release}${shared_ext}$major'
15943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15944 case $host_os in
15945 irix5* | nonstopux*)
15946 libsuff= shlibsuff=
15947 ;;
15948 *)
15949 case $LD in # libtool.m4 will add one of these switches to LD
15950 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15951 libsuff= shlibsuff= libmagic=32-bit;;
15952 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15953 libsuff=32 shlibsuff=N32 libmagic=N32;;
15954 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15955 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15956 *) libsuff= shlibsuff= libmagic=never-match;;
15957 esac
15958 ;;
15959 esac
15960 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15961 shlibpath_overrides_runpath=no
15962 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15963 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15964 hardcode_into_libs=yes
15965 ;;
15966
15967# No shared lib support for Linux oldld, aout, or coff.
15968linux*oldld* | linux*aout* | linux*coff*)
15969 dynamic_linker=no
15970 ;;
15971
15972# This must be Linux ELF.
15973linux*)
15974 version_type=linux
15975 need_lib_prefix=no
15976 need_version=no
15977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15978 soname_spec='${libname}${release}${shared_ext}$major'
15979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15980 shlibpath_var=LD_LIBRARY_PATH
15981 shlibpath_overrides_runpath=no
15982 # This implies no fast_install, which is unacceptable.
15983 # Some rework will be needed to allow for fast_install
15984 # before this can be enabled.
15985 hardcode_into_libs=yes
15986
15987 # Append ld.so.conf contents to the search path
15988 if test -f /etc/ld.so.conf; then
15989 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15990 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15991 fi
15992
15993 # We used to test for /lib/ld.so.1 and disable shared libraries on
15994 # powerpc, because MkLinux only supported shared libraries with the
15995 # GNU dynamic linker. Since this was broken with cross compilers,
15996 # most powerpc-linux boxes support dynamic linking these days and
15997 # people can always --disable-shared, the test was removed, and we
15998 # assume the GNU/Linux dynamic linker is in use.
15999 dynamic_linker='GNU/Linux ld.so'
16000 ;;
16001
16002netbsdelf*-gnu)
16003 version_type=linux
16004 need_lib_prefix=no
16005 need_version=no
16006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16007 soname_spec='${libname}${release}${shared_ext}$major'
16008 shlibpath_var=LD_LIBRARY_PATH
16009 shlibpath_overrides_runpath=no
16010 hardcode_into_libs=yes
16011 dynamic_linker='NetBSD ld.elf_so'
16012 ;;
16013
16014knetbsd*-gnu)
16015 version_type=linux
16016 need_lib_prefix=no
16017 need_version=no
16018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16019 soname_spec='${libname}${release}${shared_ext}$major'
16020 shlibpath_var=LD_LIBRARY_PATH
16021 shlibpath_overrides_runpath=no
16022 hardcode_into_libs=yes
16023 dynamic_linker='GNU ld.so'
16024 ;;
16025
16026netbsd*)
16027 version_type=sunos
16028 need_lib_prefix=no
16029 need_version=no
16030 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16032 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16033 dynamic_linker='NetBSD (a.out) ld.so'
16034 else
16035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16036 soname_spec='${libname}${release}${shared_ext}$major'
16037 dynamic_linker='NetBSD ld.elf_so'
16038 fi
16039 shlibpath_var=LD_LIBRARY_PATH
16040 shlibpath_overrides_runpath=yes
16041 hardcode_into_libs=yes
16042 ;;
16043
16044newsos6)
16045 version_type=linux
16046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16047 shlibpath_var=LD_LIBRARY_PATH
16048 shlibpath_overrides_runpath=yes
16049 ;;
16050
16051nto-qnx*)
16052 version_type=linux
16053 need_lib_prefix=no
16054 need_version=no
16055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16056 soname_spec='${libname}${release}${shared_ext}$major'
16057 shlibpath_var=LD_LIBRARY_PATH
16058 shlibpath_overrides_runpath=yes
16059 ;;
16060
16061openbsd*)
16062 version_type=sunos
16063 need_lib_prefix=no
16064 need_version=yes
16065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16066 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16067 shlibpath_var=LD_LIBRARY_PATH
16068 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16069 case $host_os in
16070 openbsd2.[89] | openbsd2.[89].*)
16071 shlibpath_overrides_runpath=no
16072 ;;
16073 *)
16074 shlibpath_overrides_runpath=yes
16075 ;;
16076 esac
16077 else
16078 shlibpath_overrides_runpath=yes
16079 fi
16080 ;;
16081
16082os2*)
16083 libname_spec='$name'
16084 shrext_cmds=".dll"
16085 need_lib_prefix=no
16086 library_names_spec='$libname${shared_ext} $libname.a'
16087 dynamic_linker='OS/2 ld.exe'
16088 shlibpath_var=LIBPATH
16089 ;;
16090
16091osf3* | osf4* | osf5*)
16092 version_type=osf
16093 need_lib_prefix=no
16094 need_version=no
16095 soname_spec='${libname}${release}${shared_ext}$major'
16096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16097 shlibpath_var=LD_LIBRARY_PATH
16098 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16099 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16100 ;;
16101
16102sco3.2v5*)
16103 version_type=osf
16104 soname_spec='${libname}${release}${shared_ext}$major'
16105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16106 shlibpath_var=LD_LIBRARY_PATH
16107 ;;
16108
16109solaris*)
16110 version_type=linux
16111 need_lib_prefix=no
16112 need_version=no
16113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16114 soname_spec='${libname}${release}${shared_ext}$major'
16115 shlibpath_var=LD_LIBRARY_PATH
16116 shlibpath_overrides_runpath=yes
16117 hardcode_into_libs=yes
16118 # ldd complains unless libraries are executable
16119 postinstall_cmds='chmod +x $lib'
16120 ;;
16121
16122sunos4*)
16123 version_type=sunos
16124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16125 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16126 shlibpath_var=LD_LIBRARY_PATH
16127 shlibpath_overrides_runpath=yes
16128 if test "$with_gnu_ld" = yes; then
16129 need_lib_prefix=no
16130 fi
16131 need_version=yes
16132 ;;
16133
16134sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16135 version_type=linux
16136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16137 soname_spec='${libname}${release}${shared_ext}$major'
16138 shlibpath_var=LD_LIBRARY_PATH
16139 case $host_vendor in
16140 sni)
16141 shlibpath_overrides_runpath=no
16142 need_lib_prefix=no
16143 export_dynamic_flag_spec='${wl}-Blargedynsym'
16144 runpath_var=LD_RUN_PATH
16145 ;;
16146 siemens)
16147 need_lib_prefix=no
16148 ;;
16149 motorola)
16150 need_lib_prefix=no
16151 need_version=no
16152 shlibpath_overrides_runpath=no
16153 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16154 ;;
16155 esac
16156 ;;
16157
16158sysv4*MP*)
16159 if test -d /usr/nec ;then
16160 version_type=linux
16161 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16162 soname_spec='$libname${shared_ext}.$major'
16163 shlibpath_var=LD_LIBRARY_PATH
16164 fi
16165 ;;
16166
16167uts4*)
16168 version_type=linux
16169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16170 soname_spec='${libname}${release}${shared_ext}$major'
16171 shlibpath_var=LD_LIBRARY_PATH
16172 ;;
16173
16174*)
16175 dynamic_linker=no
16176 ;;
16177esac
16178{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16179echo "${ECHO_T}$dynamic_linker" >&6; }
16180test "$dynamic_linker" = no && can_build_shared=no
16181
16182{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16183echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16184hardcode_action_F77=
16185if test -n "$hardcode_libdir_flag_spec_F77" || \
16186 test -n "$runpath_var F77" || \
16187 test "X$hardcode_automatic_F77"="Xyes" ; then
16188
16189 # We can hardcode non-existant directories.
16190 if test "$hardcode_direct_F77" != no &&
16191 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16192 # have to relink, otherwise we might link with an installed library
16193 # when we should be linking with a yet-to-be-installed one
16194 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16195 test "$hardcode_minus_L_F77" != no; then
16196 # Linking always hardcodes the temporary library directory.
16197 hardcode_action_F77=relink
16198 else
16199 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16200 hardcode_action_F77=immediate
16201 fi
16202else
16203 # We cannot hardcode anything, or else we can only hardcode existing
16204 # directories.
16205 hardcode_action_F77=unsupported
16206fi
16207{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16208echo "${ECHO_T}$hardcode_action_F77" >&6; }
16209
16210if test "$hardcode_action_F77" = relink; then
16211 # Fast installation is not supported
16212 enable_fast_install=no
16213elif test "$shlibpath_overrides_runpath" = yes ||
16214 test "$enable_shared" = no; then
16215 # Fast installation is not necessary
16216 enable_fast_install=needless
16217fi
16218
16219striplib=
16220old_striplib=
16221{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16222echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16223if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16224 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16225 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16226 { echo "$as_me:$LINENO: result: yes" >&5
16227echo "${ECHO_T}yes" >&6; }
16228else
16229# FIXME - insert some real tests, host_os isn't really good enough
16230 case $host_os in
16231 darwin*)
16232 if test -n "$STRIP" ; then
16233 striplib="$STRIP -x"
16234 { echo "$as_me:$LINENO: result: yes" >&5
16235echo "${ECHO_T}yes" >&6; }
16236 else
16237 { echo "$as_me:$LINENO: result: no" >&5
16238echo "${ECHO_T}no" >&6; }
16239fi
16240 ;;
16241 *)
16242 { echo "$as_me:$LINENO: result: no" >&5
16243echo "${ECHO_T}no" >&6; }
16244 ;;
16245 esac
16246fi
16247
16248
16249
16250# The else clause should only fire when bootstrapping the
16251# libtool distribution, otherwise you forgot to ship ltmain.sh
16252# with your package, and you will get complaints that there are
16253# no rules to generate ltmain.sh.
16254if test -f "$ltmain"; then
16255 # See if we are running on zsh, and set the options which allow our commands through
16256 # without removal of \ escapes.
16257 if test -n "${ZSH_VERSION+set}" ; then
16258 setopt NO_GLOB_SUBST
16259 fi
16260 # Now quote all the things that may contain metacharacters while being
16261 # careful not to overquote the AC_SUBSTed values. We take copies of the
16262 # variables and quote the copies for generation of the libtool script.
16263 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16264 SED SHELL STRIP \
16265 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16266 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16267 deplibs_check_method reload_flag reload_cmds need_locks \
16268 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16269 lt_cv_sys_global_symbol_to_c_name_address \
16270 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16271 old_postinstall_cmds old_postuninstall_cmds \
16272 compiler_F77 \
16273 CC_F77 \
16274 LD_F77 \
16275 lt_prog_compiler_wl_F77 \
16276 lt_prog_compiler_pic_F77 \
16277 lt_prog_compiler_static_F77 \
16278 lt_prog_compiler_no_builtin_flag_F77 \
16279 export_dynamic_flag_spec_F77 \
16280 thread_safe_flag_spec_F77 \
16281 whole_archive_flag_spec_F77 \
16282 enable_shared_with_static_runtimes_F77 \
16283 old_archive_cmds_F77 \
16284 old_archive_from_new_cmds_F77 \
16285 predep_objects_F77 \
16286 postdep_objects_F77 \
16287 predeps_F77 \
16288 postdeps_F77 \
16289 compiler_lib_search_path_F77 \
16290 archive_cmds_F77 \
16291 archive_expsym_cmds_F77 \
16292 postinstall_cmds_F77 \
16293 postuninstall_cmds_F77 \
16294 old_archive_from_expsyms_cmds_F77 \
16295 allow_undefined_flag_F77 \
16296 no_undefined_flag_F77 \
16297 export_symbols_cmds_F77 \
16298 hardcode_libdir_flag_spec_F77 \
16299 hardcode_libdir_flag_spec_ld_F77 \
16300 hardcode_libdir_separator_F77 \
16301 hardcode_automatic_F77 \
16302 module_cmds_F77 \
16303 module_expsym_cmds_F77 \
16304 lt_cv_prog_compiler_c_o_F77 \
16305 exclude_expsyms_F77 \
16306 include_expsyms_F77; do
16307
16308 case $var in
16309 old_archive_cmds_F77 | \
16310 old_archive_from_new_cmds_F77 | \
16311 archive_cmds_F77 | \
16312 archive_expsym_cmds_F77 | \
16313 module_cmds_F77 | \
16314 module_expsym_cmds_F77 | \
16315 old_archive_from_expsyms_cmds_F77 | \
16316 export_symbols_cmds_F77 | \
16317 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16318 postinstall_cmds | postuninstall_cmds | \
16319 old_postinstall_cmds | old_postuninstall_cmds | \
16320 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16321 # Double-quote double-evaled strings.
16322 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16323 ;;
16324 *)
16325 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16326 ;;
16327 esac
16328 done
16329
16330 case $lt_echo in
16331 *'\$0 --fallback-echo"')
16332 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16333 ;;
16334 esac
16335
16336cfgfile="$ofile"
16337
16338 cat <<__EOF__ >> "$cfgfile"
16339# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16340
16341# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16342
16343# Shell to use when invoking shell scripts.
16344SHELL=$lt_SHELL
16345
16346# Whether or not to build shared libraries.
16347build_libtool_libs=$enable_shared
16348
16349# Whether or not to build static libraries.
16350build_old_libs=$enable_static
16351
16352# Whether or not to add -lc for building shared libraries.
16353build_libtool_need_lc=$archive_cmds_need_lc_F77
16354
16355# Whether or not to disallow shared libs when runtime libs are static
16356allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16357
16358# Whether or not to optimize for fast installation.
16359fast_install=$enable_fast_install
16360
16361# The host system.
16362host_alias=$host_alias
16363host=$host
16364
16365# An echo program that does not interpret backslashes.
16366echo=$lt_echo
16367
16368# The archiver.
16369AR=$lt_AR
16370AR_FLAGS=$lt_AR_FLAGS
16371
16372# A C compiler.
16373LTCC=$lt_LTCC
16374
16375# A language-specific compiler.
16376CC=$lt_compiler_F77
16377
16378# Is the compiler the GNU C compiler?
16379with_gcc=$GCC_F77
16380
16381# An ERE matcher.
16382EGREP=$lt_EGREP
16383
16384# The linker used to build libraries.
16385LD=$lt_LD_F77
16386
16387# Whether we need hard or soft links.
16388LN_S=$lt_LN_S
16389
16390# A BSD-compatible nm program.
16391NM=$lt_NM
16392
16393# A symbol stripping program
16394STRIP=$lt_STRIP
16395
16396# Used to examine libraries when file_magic_cmd begins "file"
16397MAGIC_CMD=$MAGIC_CMD
16398
16399# Used on cygwin: DLL creation program.
16400DLLTOOL="$DLLTOOL"
16401
16402# Used on cygwin: object dumper.
16403OBJDUMP="$OBJDUMP"
16404
16405# Used on cygwin: assembler.
16406AS="$AS"
16407
16408# The name of the directory that contains temporary libtool files.
16409objdir=$objdir
16410
16411# How to create reloadable object files.
16412reload_flag=$lt_reload_flag
16413reload_cmds=$lt_reload_cmds
16414
16415# How to pass a linker flag through the compiler.
16416wl=$lt_lt_prog_compiler_wl_F77
16417
16418# Object file suffix (normally "o").
16419objext="$ac_objext"
16420
16421# Old archive suffix (normally "a").
16422libext="$libext"
16423
16424# Shared library suffix (normally ".so").
16425shrext_cmds='$shrext_cmds'
16426
16427# Executable file suffix (normally "").
16428exeext="$exeext"
16429
16430# Additional compiler flags for building library objects.
16431pic_flag=$lt_lt_prog_compiler_pic_F77
16432pic_mode=$pic_mode
16433
16434# What is the maximum length of a command?
16435max_cmd_len=$lt_cv_sys_max_cmd_len
16436
16437# Does compiler simultaneously support -c and -o options?
16438compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16439
16440# Must we lock files when doing compilation ?
16441need_locks=$lt_need_locks
16442
16443# Do we need the lib prefix for modules?
16444need_lib_prefix=$need_lib_prefix
16445
16446# Do we need a version for libraries?
16447need_version=$need_version
16448
16449# Whether dlopen is supported.
16450dlopen_support=$enable_dlopen
16451
16452# Whether dlopen of programs is supported.
16453dlopen_self=$enable_dlopen_self
16454
16455# Whether dlopen of statically linked programs is supported.
16456dlopen_self_static=$enable_dlopen_self_static
16457
16458# Compiler flag to prevent dynamic linking.
16459link_static_flag=$lt_lt_prog_compiler_static_F77
16460
16461# Compiler flag to turn off builtin functions.
16462no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16463
16464# Compiler flag to allow reflexive dlopens.
16465export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16466
16467# Compiler flag to generate shared objects directly from archives.
16468whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16469
16470# Compiler flag to generate thread-safe objects.
16471thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16472
16473# Library versioning type.
16474version_type=$version_type
16475
16476# Format of library name prefix.
16477libname_spec=$lt_libname_spec
16478
16479# List of archive names. First name is the real one, the rest are links.
16480# The last name is the one that the linker finds with -lNAME.
16481library_names_spec=$lt_library_names_spec
16482
16483# The coded name of the library, if different from the real name.
16484soname_spec=$lt_soname_spec
16485
16486# Commands used to build and install an old-style archive.
16487RANLIB=$lt_RANLIB
16488old_archive_cmds=$lt_old_archive_cmds_F77
16489old_postinstall_cmds=$lt_old_postinstall_cmds
16490old_postuninstall_cmds=$lt_old_postuninstall_cmds
16491
16492# Create an old-style archive from a shared archive.
16493old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16494
16495# Create a temporary old-style archive to link instead of a shared archive.
16496old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16497
16498# Commands used to build and install a shared archive.
16499archive_cmds=$lt_archive_cmds_F77
16500archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16501postinstall_cmds=$lt_postinstall_cmds
16502postuninstall_cmds=$lt_postuninstall_cmds
16503
16504# Commands used to build a loadable module (assumed same as above if empty)
16505module_cmds=$lt_module_cmds_F77
16506module_expsym_cmds=$lt_module_expsym_cmds_F77
16507
16508# Commands to strip libraries.
16509old_striplib=$lt_old_striplib
16510striplib=$lt_striplib
16511
16512# Dependencies to place before the objects being linked to create a
16513# shared library.
16514predep_objects=$lt_predep_objects_F77
16515
16516# Dependencies to place after the objects being linked to create a
16517# shared library.
16518postdep_objects=$lt_postdep_objects_F77
16519
16520# Dependencies to place before the objects being linked to create a
16521# shared library.
16522predeps=$lt_predeps_F77
16523
16524# Dependencies to place after the objects being linked to create a
16525# shared library.
16526postdeps=$lt_postdeps_F77
16527
16528# The library search path used internally by the compiler when linking
16529# a shared library.
16530compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16531
16532# Method to check whether dependent libraries are shared objects.
16533deplibs_check_method=$lt_deplibs_check_method
16534
16535# Command to use when deplibs_check_method == file_magic.
16536file_magic_cmd=$lt_file_magic_cmd
16537
16538# Flag that allows shared libraries with undefined symbols to be built.
16539allow_undefined_flag=$lt_allow_undefined_flag_F77
16540
16541# Flag that forces no undefined symbols.
16542no_undefined_flag=$lt_no_undefined_flag_F77
16543
16544# Commands used to finish a libtool library installation in a directory.
16545finish_cmds=$lt_finish_cmds
16546
16547# Same as above, but a single script fragment to be evaled but not shown.
16548finish_eval=$lt_finish_eval
16549
16550# Take the output of nm and produce a listing of raw symbols and C names.
16551global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16552
16553# Transform the output of nm in a proper C declaration
16554global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16555
16556# Transform the output of nm in a C name address pair
16557global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16558
16559# This is the shared library runtime path variable.
16560runpath_var=$runpath_var
16561
16562# This is the shared library path variable.
16563shlibpath_var=$shlibpath_var
16564
16565# Is shlibpath searched before the hard-coded library search path?
16566shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16567
16568# How to hardcode a shared library path into an executable.
16569hardcode_action=$hardcode_action_F77
16570
16571# Whether we should hardcode library paths into libraries.
16572hardcode_into_libs=$hardcode_into_libs
16573
16574# Flag to hardcode \$libdir into a binary during linking.
16575# This must work even if \$libdir does not exist.
16576hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16577
16578# If ld is used when linking, flag to hardcode \$libdir into
16579# a binary during linking. This must work even if \$libdir does
16580# not exist.
16581hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16582
16583# Whether we need a single -rpath flag with a separated argument.
16584hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16585
16586# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16587# resulting binary.
16588hardcode_direct=$hardcode_direct_F77
16589
16590# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16591# resulting binary.
16592hardcode_minus_L=$hardcode_minus_L_F77
16593
16594# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16595# the resulting binary.
16596hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16597
16598# Set to yes if building a shared library automatically hardcodes DIR into the library
16599# and all subsequent libraries and executables linked against it.
16600hardcode_automatic=$hardcode_automatic_F77
16601
16602# Variables whose values should be saved in libtool wrapper scripts and
16603# restored at relink time.
16604variables_saved_for_relink="$variables_saved_for_relink"
16605
16606# Whether libtool must link a program against all its dependency libraries.
16607link_all_deplibs=$link_all_deplibs_F77
16608
16609# Compile-time system search path for libraries
16610sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16611
16612# Run-time system search path for libraries
16613sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16614
16615# Fix the shell variable \$srcfile for the compiler.
16616fix_srcfile_path="$fix_srcfile_path_F77"
16617
16618# Set to yes if exported symbols are required.
16619always_export_symbols=$always_export_symbols_F77
16620
16621# The commands to list exported symbols.
16622export_symbols_cmds=$lt_export_symbols_cmds_F77
16623
16624# The commands to extract the exported symbol list from a shared archive.
16625extract_expsyms_cmds=$lt_extract_expsyms_cmds
16626
16627# Symbols that should not be listed in the preloaded symbols.
16628exclude_expsyms=$lt_exclude_expsyms_F77
16629
16630# Symbols that must always be exported.
16631include_expsyms=$lt_include_expsyms_F77
16632
16633# ### END LIBTOOL TAG CONFIG: $tagname
16634
16635__EOF__
16636
16637
16638else
16639 # If there is no Makefile yet, we rely on a make rule to execute
16640 # `config.status --recheck' to rerun these tests and create the
16641 # libtool script then.
16642 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16643 if test -f "$ltmain_in"; then
16644 test -f Makefile && make "$ltmain"
16645 fi
16646fi
16647
16648
16649ac_ext=c
16650ac_cpp='$CPP $CPPFLAGS'
16651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16653ac_compiler_gnu=$ac_cv_c_compiler_gnu
16654
16655CC="$lt_save_CC"
16656
16657 else
16658 tagname=""
16659 fi
16660 ;;
16661
16662 GCJ)
16663 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16664
16665
16666# Source file extension for Java test sources.
16667ac_ext=java
16668
16669# Object file extension for compiled Java test sources.
16670objext=o
16671objext_GCJ=$objext
16672
16673# Code to be used in simple compile tests
16674lt_simple_compile_test_code="class foo {}\n"
16675
16676# Code to be used in simple link tests
16677lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16678
16679# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16680
16681# If no C compiler was specified, use CC.
16682LTCC=${LTCC-"$CC"}
16683
16684# Allow CC to be a program name with arguments.
16685compiler=$CC
16686
16687
16688# Allow CC to be a program name with arguments.
16689lt_save_CC="$CC"
16690CC=${GCJ-"gcj"}
16691compiler=$CC
16692compiler_GCJ=$CC
16693
16694# GCJ did not exist at the time GCC didn't implicitly link libc in.
16695archive_cmds_need_lc_GCJ=no
16696
16697## CAVEAT EMPTOR:
16698## There is no encapsulation within the following macros, do not change
16699## the running order or otherwise move them around unless you know exactly
16700## what you are doing...
16701
16702lt_prog_compiler_no_builtin_flag_GCJ=
16703
16704if test "$GCC" = yes; then
16705 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16706
16707
16708{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16709echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16710if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16711 echo $ECHO_N "(cached) $ECHO_C" >&6
16712else
16713 lt_cv_prog_compiler_rtti_exceptions=no
16714 ac_outfile=conftest.$ac_objext
16715 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16716 lt_compiler_flag="-fno-rtti -fno-exceptions"
16717 # Insert the option either (1) after the last *FLAGS variable, or
16718 # (2) before a word containing "conftest.", or (3) at the end.
16719 # Note that $ac_compile itself does not contain backslashes and begins
16720 # with a dollar sign (not a hyphen), so the echo should work correctly.
16721 # The option is referenced via a variable to avoid confusing sed.
16722 lt_compile=`echo "$ac_compile" | $SED \
16723 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16724 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16725 -e 's:$: $lt_compiler_flag:'`
16726 (eval echo "\"\$as_me:16726: $lt_compile\"" >&5)
16727 (eval "$lt_compile" 2>conftest.err)
16728 ac_status=$?
16729 cat conftest.err >&5
16730 echo "$as_me:16730: \$? = $ac_status" >&5
16731 if (exit $ac_status) && test -s "$ac_outfile"; then
16732 # The compiler can only warn and ignore the option if not recognized
16733 # So say no if there are warnings
16734 if test ! -s conftest.err; then
16735 lt_cv_prog_compiler_rtti_exceptions=yes
16736 fi
16737 fi
16738 $rm conftest*
16739
16740fi
16741{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16742echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16743
16744if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16745 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16746else
16747 :
16748fi
16749
16750fi
16751
16752lt_prog_compiler_wl_GCJ=
16753lt_prog_compiler_pic_GCJ=
16754lt_prog_compiler_static_GCJ=
16755
16756{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16757echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16758
16759 if test "$GCC" = yes; then
16760 lt_prog_compiler_wl_GCJ='-Wl,'
16761 lt_prog_compiler_static_GCJ='-static'
16762
16763 case $host_os in
16764 aix*)
16765 # All AIX code is PIC.
16766 if test "$host_cpu" = ia64; then
16767 # AIX 5 now supports IA64 processor
16768 lt_prog_compiler_static_GCJ='-Bstatic'
16769 fi
16770 ;;
16771
16772 amigaos*)
16773 # FIXME: we need at least 68020 code to build shared libraries, but
16774 # adding the `-m68020' flag to GCC prevents building anything better,
16775 # like `-m68040'.
16776 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16777 ;;
16778
16779 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16780 # PIC is the default for these OSes.
16781 ;;
16782
16783 mingw* | pw32* | os2*)
16784 # This hack is so that the source file can tell whether it is being
16785 # built for inclusion in a dll (and should export symbols for example).
16786 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16787 ;;
16788
16789 darwin* | rhapsody*)
16790 # PIC is the default on this platform
16791 # Common symbols not allowed in MH_DYLIB files
16792 lt_prog_compiler_pic_GCJ='-fno-common'
16793 ;;
16794
16795 msdosdjgpp*)
16796 # Just because we use GCC doesn't mean we suddenly get shared libraries
16797 # on systems that don't support them.
16798 lt_prog_compiler_can_build_shared_GCJ=no
16799 enable_shared=no
16800 ;;
16801
16802 sysv4*MP*)
16803 if test -d /usr/nec; then
16804 lt_prog_compiler_pic_GCJ=-Kconform_pic
16805 fi
16806 ;;
16807
16808 hpux*)
16809 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16810 # not for PA HP-UX.
16811 case "$host_cpu" in
16812 hppa*64*|ia64*)
16813 # +Z the default
16814 ;;
16815 *)
16816 lt_prog_compiler_pic_GCJ='-fPIC'
16817 ;;
16818 esac
16819 ;;
16820
16821 *)
16822 lt_prog_compiler_pic_GCJ='-fPIC'
16823 ;;
16824 esac
16825 else
16826 # PORTME Check for flag to pass linker flags through the system compiler.
16827 case $host_os in
16828 aix*)
16829 lt_prog_compiler_wl_GCJ='-Wl,'
16830 if test "$host_cpu" = ia64; then
16831 # AIX 5 now supports IA64 processor
16832 lt_prog_compiler_static_GCJ='-Bstatic'
16833 else
16834 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16835 fi
16836 ;;
16837
16838 mingw* | pw32* | os2*)
16839 # This hack is so that the source file can tell whether it is being
16840 # built for inclusion in a dll (and should export symbols for example).
16841 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16842 ;;
16843
16844 hpux9* | hpux10* | hpux11*)
16845 lt_prog_compiler_wl_GCJ='-Wl,'
16846 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16847 # not for PA HP-UX.
16848 case "$host_cpu" in
16849 hppa*64*|ia64*)
16850 # +Z the default
16851 ;;
16852 *)
16853 lt_prog_compiler_pic_GCJ='+Z'
16854 ;;
16855 esac
16856 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16857 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16858 ;;
16859
16860 irix5* | irix6* | nonstopux*)
16861 lt_prog_compiler_wl_GCJ='-Wl,'
16862 # PIC (with -KPIC) is the default.
16863 lt_prog_compiler_static_GCJ='-non_shared'
16864 ;;
16865
16866 newsos6)
16867 lt_prog_compiler_pic_GCJ='-KPIC'
16868 lt_prog_compiler_static_GCJ='-Bstatic'
16869 ;;
16870
16871 linux*)
16872 case $CC in
16873 icc* | ecc*)
16874 lt_prog_compiler_wl_GCJ='-Wl,'
16875 lt_prog_compiler_pic_GCJ='-KPIC'
16876 lt_prog_compiler_static_GCJ='-static'
16877 ;;
16878 ccc*)
16879 lt_prog_compiler_wl_GCJ='-Wl,'
16880 # All Alpha code is PIC.
16881 lt_prog_compiler_static_GCJ='-non_shared'
16882 ;;
16883 esac
16884 ;;
16885
16886 osf3* | osf4* | osf5*)
16887 lt_prog_compiler_wl_GCJ='-Wl,'
16888 # All OSF/1 code is PIC.
16889 lt_prog_compiler_static_GCJ='-non_shared'
16890 ;;
16891
16892 sco3.2v5*)
16893 lt_prog_compiler_pic_GCJ='-Kpic'
16894 lt_prog_compiler_static_GCJ='-dn'
16895 ;;
16896
16897 solaris*)
16898 lt_prog_compiler_wl_GCJ='-Wl,'
16899 lt_prog_compiler_pic_GCJ='-KPIC'
16900 lt_prog_compiler_static_GCJ='-Bstatic'
16901 ;;
16902
16903 sunos4*)
16904 lt_prog_compiler_wl_GCJ='-Qoption ld '
16905 lt_prog_compiler_pic_GCJ='-PIC'
16906 lt_prog_compiler_static_GCJ='-Bstatic'
16907 ;;
16908
16909 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16910 lt_prog_compiler_wl_GCJ='-Wl,'
16911 lt_prog_compiler_pic_GCJ='-KPIC'
16912 lt_prog_compiler_static_GCJ='-Bstatic'
16913 ;;
16914
16915 sysv4*MP*)
16916 if test -d /usr/nec ;then
16917 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16918 lt_prog_compiler_static_GCJ='-Bstatic'
16919 fi
16920 ;;
16921
16922 uts4*)
16923 lt_prog_compiler_pic_GCJ='-pic'
16924 lt_prog_compiler_static_GCJ='-Bstatic'
16925 ;;
16926
16927 *)
16928 lt_prog_compiler_can_build_shared_GCJ=no
16929 ;;
16930 esac
16931 fi
16932
16933{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16934echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16935
16936#
16937# Check to make sure the PIC flag actually works.
16938#
16939if test -n "$lt_prog_compiler_pic_GCJ"; then
16940
16941{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16942echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16943if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16944 echo $ECHO_N "(cached) $ECHO_C" >&6
16945else
16946 lt_prog_compiler_pic_works_GCJ=no
16947 ac_outfile=conftest.$ac_objext
16948 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16949 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16950 # Insert the option either (1) after the last *FLAGS variable, or
16951 # (2) before a word containing "conftest.", or (3) at the end.
16952 # Note that $ac_compile itself does not contain backslashes and begins
16953 # with a dollar sign (not a hyphen), so the echo should work correctly.
16954 # The option is referenced via a variable to avoid confusing sed.
16955 lt_compile=`echo "$ac_compile" | $SED \
16956 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16957 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16958 -e 's:$: $lt_compiler_flag:'`
16959 (eval echo "\"\$as_me:16959: $lt_compile\"" >&5)
16960 (eval "$lt_compile" 2>conftest.err)
16961 ac_status=$?
16962 cat conftest.err >&5
16963 echo "$as_me:16963: \$? = $ac_status" >&5
16964 if (exit $ac_status) && test -s "$ac_outfile"; then
16965 # The compiler can only warn and ignore the option if not recognized
16966 # So say no if there are warnings
16967 if test ! -s conftest.err; then
16968 lt_prog_compiler_pic_works_GCJ=yes
16969 fi
16970 fi
16971 $rm conftest*
16972
16973fi
16974{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16975echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16976
16977if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16978 case $lt_prog_compiler_pic_GCJ in
16979 "" | " "*) ;;
16980 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16981 esac
16982else
16983 lt_prog_compiler_pic_GCJ=
16984 lt_prog_compiler_can_build_shared_GCJ=no
16985fi
16986
16987fi
16988case "$host_os" in
16989 # For platforms which do not support PIC, -DPIC is meaningless:
16990 *djgpp*)
16991 lt_prog_compiler_pic_GCJ=
16992 ;;
16993 *)
16994 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16995 ;;
16996esac
16997
16998{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16999echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17000if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17001 echo $ECHO_N "(cached) $ECHO_C" >&6
17002else
17003 lt_cv_prog_compiler_c_o_GCJ=no
17004 $rm -r conftest 2>/dev/null
17005 mkdir conftest
17006 cd conftest
17007 mkdir out
17008 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17009
17010 lt_compiler_flag="-o out/conftest2.$ac_objext"
17011 # Insert the option either (1) after the last *FLAGS variable, or
17012 # (2) before a word containing "conftest.", or (3) at the end.
17013 # Note that $ac_compile itself does not contain backslashes and begins
17014 # with a dollar sign (not a hyphen), so the echo should work correctly.
17015 lt_compile=`echo "$ac_compile" | $SED \
17016 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17018 -e 's:$: $lt_compiler_flag:'`
17019 (eval echo "\"\$as_me:17019: $lt_compile\"" >&5)
17020 (eval "$lt_compile" 2>out/conftest.err)
17021 ac_status=$?
17022 cat out/conftest.err >&5
17023 echo "$as_me:17023: \$? = $ac_status" >&5
17024 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17025 then
17026 # The compiler can only warn and ignore the option if not recognized
17027 # So say no if there are warnings
17028 if test ! -s out/conftest.err; then
17029 lt_cv_prog_compiler_c_o_GCJ=yes
17030 fi
17031 fi
17032 chmod u+w .
17033 $rm conftest*
17034 # SGI C++ compiler will create directory out/ii_files/ for
17035 # template instantiation
17036 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17037 $rm out/* && rmdir out
17038 cd ..
17039 rmdir conftest
17040 $rm conftest*
17041
17042fi
17043{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17044echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17045
17046
17047hard_links="nottested"
17048if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17049 # do not overwrite the value of need_locks provided by the user
17050 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17051echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17052 hard_links=yes
17053 $rm conftest*
17054 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17055 touch conftest.a
17056 ln conftest.a conftest.b 2>&5 || hard_links=no
17057 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17058 { echo "$as_me:$LINENO: result: $hard_links" >&5
17059echo "${ECHO_T}$hard_links" >&6; }
17060 if test "$hard_links" = no; then
17061 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17062echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17063 need_locks=warn
17064 fi
17065else
17066 need_locks=no
17067fi
17068
17069{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17070echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17071
17072 runpath_var=
17073 allow_undefined_flag_GCJ=
17074 enable_shared_with_static_runtimes_GCJ=no
17075 archive_cmds_GCJ=
17076 archive_expsym_cmds_GCJ=
17077 old_archive_From_new_cmds_GCJ=
17078 old_archive_from_expsyms_cmds_GCJ=
17079 export_dynamic_flag_spec_GCJ=
17080 whole_archive_flag_spec_GCJ=
17081 thread_safe_flag_spec_GCJ=
17082 hardcode_libdir_flag_spec_GCJ=
17083 hardcode_libdir_flag_spec_ld_GCJ=
17084 hardcode_libdir_separator_GCJ=
17085 hardcode_direct_GCJ=no
17086 hardcode_minus_L_GCJ=no
17087 hardcode_shlibpath_var_GCJ=unsupported
17088 link_all_deplibs_GCJ=unknown
17089 hardcode_automatic_GCJ=no
17090 module_cmds_GCJ=
17091 module_expsym_cmds_GCJ=
17092 always_export_symbols_GCJ=no
17093 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17094 # include_expsyms should be a list of space-separated symbols to be *always*
17095 # included in the symbol list
17096 include_expsyms_GCJ=
17097 # exclude_expsyms can be an extended regexp of symbols to exclude
17098 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17099 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17100 # as well as any symbol that contains `d'.
17101 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17102 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17103 # platforms (ab)use it in PIC code, but their linkers get confused if
17104 # the symbol is explicitly referenced. Since portable code cannot
17105 # rely on this symbol name, it's probably fine to never include it in
17106 # preloaded symbol tables.
17107 extract_expsyms_cmds=
17108
17109 case $host_os in
17110 cygwin* | mingw* | pw32*)
17111 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17112 # When not using gcc, we currently assume that we are using
17113 # Microsoft Visual C++.
17114 if test "$GCC" != yes; then
17115 with_gnu_ld=no
17116 fi
17117 ;;
17118 openbsd*)
17119 with_gnu_ld=no
17120 ;;
17121 esac
17122
17123 ld_shlibs_GCJ=yes
17124 if test "$with_gnu_ld" = yes; then
17125 # If archive_cmds runs LD, not CC, wlarc should be empty
17126 wlarc='${wl}'
17127
17128 # See if GNU ld supports shared libraries.
17129 case $host_os in
17130 aix3* | aix4* | aix5*)
17131 # On AIX/PPC, the GNU linker is very broken
17132 if test "$host_cpu" != ia64; then
17133 ld_shlibs_GCJ=no
17134 cat <<EOF 1>&2
17135
17136*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17137*** to be unable to reliably create shared libraries on AIX.
17138*** Therefore, libtool is disabling shared libraries support. If you
17139*** really care for shared libraries, you may want to modify your PATH
17140*** so that a non-GNU linker is found, and then restart.
17141
17142EOF
17143 fi
17144 ;;
17145
17146 amigaos*)
17147 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17148 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17149 hardcode_minus_L_GCJ=yes
17150
17151 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17152 # that the semantics of dynamic libraries on AmigaOS, at least up
17153 # to version 4, is to share data among multiple programs linked
17154 # with the same dynamic library. Since this doesn't match the
17155 # behavior of shared libraries on other platforms, we can't use
17156 # them.
17157 ld_shlibs_GCJ=no
17158 ;;
17159
17160 beos*)
17161 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17162 allow_undefined_flag_GCJ=unsupported
17163 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17164 # support --undefined. This deserves some investigation. FIXME
17165 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17166 else
17167 ld_shlibs_GCJ=no
17168 fi
17169 ;;
17170
17171 cygwin* | mingw* | pw32*)
17172 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17173 # as there is no search path for DLLs.
17174 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17175 allow_undefined_flag_GCJ=unsupported
17176 always_export_symbols_GCJ=no
17177 enable_shared_with_static_runtimes_GCJ=yes
17178 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17179
17180 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17181 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17182 # If the export-symbols file already is a .def file (1st line
17183 # is EXPORTS), use it as is; otherwise, prepend...
17184 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17185 cp $export_symbols $output_objdir/$soname.def;
17186 else
17187 echo EXPORTS > $output_objdir/$soname.def;
17188 cat $export_symbols >> $output_objdir/$soname.def;
17189 fi~
17190 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17191 else
17192 ld_shlibs=no
17193 fi
17194 ;;
17195
17196 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17197 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17198 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17199 wlarc=
17200 else
17201 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17202 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17203 fi
17204 ;;
17205
17206 solaris* | sysv5*)
17207 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17208 ld_shlibs_GCJ=no
17209 cat <<EOF 1>&2
17210
17211*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17212*** create shared libraries on Solaris systems. Therefore, libtool
17213*** is disabling shared libraries support. We urge you to upgrade GNU
17214*** binutils to release 2.9.1 or newer. Another option is to modify
17215*** your PATH or compiler configuration so that the native linker is
17216*** used, and then restart.
17217
17218EOF
17219 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17220 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17221 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17222 else
17223 ld_shlibs_GCJ=no
17224 fi
17225 ;;
17226
17227 sunos4*)
17228 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17229 wlarc=
17230 hardcode_direct_GCJ=yes
17231 hardcode_shlibpath_var_GCJ=no
17232 ;;
17233
17234 linux*)
17235 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17236 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17237 archive_cmds_GCJ="$tmp_archive_cmds"
17238 supports_anon_versioning=no
17239 case `$LD -v 2>/dev/null` in
17240 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17241 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17242 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17243 *\ 2.11.*) ;; # other 2.11 versions
17244 *) supports_anon_versioning=yes ;;
17245 esac
17246 if test $supports_anon_versioning = yes; then
17247 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17248cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17249$echo "local: *; };" >> $output_objdir/$libname.ver~
17250 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17251 else
17252 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
17253 fi
17254 link_all_deplibs_GCJ=no
17255 else
17256 ld_shlibs_GCJ=no
17257 fi
17258 ;;
17259
17260 *)
17261 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17262 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17263 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17264 else
17265 ld_shlibs_GCJ=no
17266 fi
17267 ;;
17268 esac
17269
17270 if test "$ld_shlibs_GCJ" = yes; then
17271 runpath_var=LD_RUN_PATH
17272 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17273 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17274 # ancient GNU ld didn't support --whole-archive et. al.
17275 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17276 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17277 else
17278 whole_archive_flag_spec_GCJ=
17279 fi
17280 fi
17281 else
17282 # PORTME fill in a description of your system's linker (not GNU ld)
17283 case $host_os in
17284 aix3*)
17285 allow_undefined_flag_GCJ=unsupported
17286 always_export_symbols_GCJ=yes
17287 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17288 # Note: this linker hardcodes the directories in LIBPATH if there
17289 # are no directories specified by -L.
17290 hardcode_minus_L_GCJ=yes
17291 if test "$GCC" = yes && test -z "$link_static_flag"; then
17292 # Neither direct hardcoding nor static linking is supported with a
17293 # broken collect2.
17294 hardcode_direct_GCJ=unsupported
17295 fi
17296 ;;
17297
17298 aix4* | aix5*)
17299 if test "$host_cpu" = ia64; then
17300 # On IA64, the linker does run time linking by default, so we don't
17301 # have to do anything special.
17302 aix_use_runtimelinking=no
17303 exp_sym_flag='-Bexport'
17304 no_entry_flag=""
17305 else
17306 # If we're using GNU nm, then we don't want the "-C" option.
17307 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17308 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17309 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17310 else
17311 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17312 fi
17313 aix_use_runtimelinking=no
17314
17315 # Test if we are trying to use run time linking or normal
17316 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17317 # need to do runtime linking.
17318 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17319 for ld_flag in $LDFLAGS; do
17320 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17321 aix_use_runtimelinking=yes
17322 break
17323 fi
17324 done
17325 esac
17326
17327 exp_sym_flag='-bexport'
17328 no_entry_flag='-bnoentry'
17329 fi
17330
17331 # When large executables or shared objects are built, AIX ld can
17332 # have problems creating the table of contents. If linking a library
17333 # or program results in "error TOC overflow" add -mminimal-toc to
17334 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17335 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17336
17337 archive_cmds_GCJ=''
17338 hardcode_direct_GCJ=yes
17339 hardcode_libdir_separator_GCJ=':'
17340 link_all_deplibs_GCJ=yes
17341
17342 if test "$GCC" = yes; then
17343 case $host_os in aix4.012|aix4.012.*)
17344 # We only want to do this on AIX 4.2 and lower, the check
17345 # below for broken collect2 doesn't work under 4.3+
17346 collect2name=`${CC} -print-prog-name=collect2`
17347 if test -f "$collect2name" && \
17348 strings "$collect2name" | grep resolve_lib_name >/dev/null
17349 then
17350 # We have reworked collect2
17351 hardcode_direct_GCJ=yes
17352 else
17353 # We have old collect2
17354 hardcode_direct_GCJ=unsupported
17355 # It fails to find uninstalled libraries when the uninstalled
17356 # path is not listed in the libpath. Setting hardcode_minus_L
17357 # to unsupported forces relinking
17358 hardcode_minus_L_GCJ=yes
17359 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17360 hardcode_libdir_separator_GCJ=
17361 fi
17362 esac
17363 shared_flag='-shared'
17364 else
17365 # not using gcc
17366 if test "$host_cpu" = ia64; then
17367 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17368 # chokes on -Wl,-G. The following line is correct:
17369 shared_flag='-G'
17370 else
17371 if test "$aix_use_runtimelinking" = yes; then
17372 shared_flag='${wl}-G'
17373 else
17374 shared_flag='${wl}-bM:SRE'
17375 fi
17376 fi
17377 fi
17378
17379 # It seems that -bexpall does not export symbols beginning with
17380 # underscore (_), so it is better to generate a list of symbols to export.
17381 always_export_symbols_GCJ=yes
17382 if test "$aix_use_runtimelinking" = yes; then
17383 # Warning - without using the other runtime loading flags (-brtl),
17384 # -berok will link without error, but may produce a broken library.
17385 allow_undefined_flag_GCJ='-berok'
17386 # Determine the default libpath from the value encoded in an empty executable.
17387 cat >conftest.$ac_ext <<_ACEOF
17388/* confdefs.h. */
17389_ACEOF
17390cat confdefs.h >>conftest.$ac_ext
17391cat >>conftest.$ac_ext <<_ACEOF
17392/* end confdefs.h. */
17393
17394int
17395main ()
17396{
17397
17398 ;
17399 return 0;
17400}
17401_ACEOF
17402rm -f conftest.$ac_objext conftest$ac_exeext
17403if { (ac_try="$ac_link"
17404case "(($ac_try" in
17405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17406 *) ac_try_echo=$ac_try;;
17407esac
17408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17409 (eval "$ac_link") 2>conftest.er1
17410 ac_status=$?
17411 grep -v '^ *+' conftest.er1 >conftest.err
17412 rm -f conftest.er1
17413 cat conftest.err >&5
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); } && {
17416 test -z "$ac_c_werror_flag" ||
17417 test ! -s conftest.err
17418 } && test -s conftest$ac_exeext &&
17419 $as_test_x conftest$ac_exeext; then
17420
17421aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17422}'`
17423# Check for a 64-bit object if we didn't find anything.
17424if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17425}'`; fi
17426else
17427 echo "$as_me: failed program was:" >&5
17428sed 's/^/| /' conftest.$ac_ext >&5
17429
17430
17431fi
17432
17433rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17434 conftest$ac_exeext conftest.$ac_ext
17435if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17436
17437 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17438 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17439 else
17440 if test "$host_cpu" = ia64; then
17441 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17442 allow_undefined_flag_GCJ="-z nodefs"
17443 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17444 else
17445 # Determine the default libpath from the value encoded in an empty executable.
17446 cat >conftest.$ac_ext <<_ACEOF
17447/* confdefs.h. */
17448_ACEOF
17449cat confdefs.h >>conftest.$ac_ext
17450cat >>conftest.$ac_ext <<_ACEOF
17451/* end confdefs.h. */
17452
17453int
17454main ()
17455{
17456
17457 ;
17458 return 0;
17459}
17460_ACEOF
17461rm -f conftest.$ac_objext conftest$ac_exeext
17462if { (ac_try="$ac_link"
17463case "(($ac_try" in
17464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17465 *) ac_try_echo=$ac_try;;
17466esac
17467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17468 (eval "$ac_link") 2>conftest.er1
17469 ac_status=$?
17470 grep -v '^ *+' conftest.er1 >conftest.err
17471 rm -f conftest.er1
17472 cat conftest.err >&5
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); } && {
17475 test -z "$ac_c_werror_flag" ||
17476 test ! -s conftest.err
17477 } && test -s conftest$ac_exeext &&
17478 $as_test_x conftest$ac_exeext; then
17479
17480aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17481}'`
17482# Check for a 64-bit object if we didn't find anything.
17483if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17484}'`; fi
17485else
17486 echo "$as_me: failed program was:" >&5
17487sed 's/^/| /' conftest.$ac_ext >&5
17488
17489
17490fi
17491
17492rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17493 conftest$ac_exeext conftest.$ac_ext
17494if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17495
17496 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17497 # Warning - without using the other run time loading flags,
17498 # -berok will link without error, but may produce a broken library.
17499 no_undefined_flag_GCJ=' ${wl}-bernotok'
17500 allow_undefined_flag_GCJ=' ${wl}-berok'
17501 # -bexpall does not export symbols beginning with underscore (_)
17502 always_export_symbols_GCJ=yes
17503 # Exported symbols can be pulled into shared objects from archives
17504 whole_archive_flag_spec_GCJ=' '
17505 archive_cmds_need_lc_GCJ=yes
17506 # This is similar to how AIX traditionally builds it's shared libraries.
17507 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17508 fi
17509 fi
17510 ;;
17511
17512 amigaos*)
17513 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17514 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17515 hardcode_minus_L_GCJ=yes
17516 # see comment about different semantics on the GNU ld section
17517 ld_shlibs_GCJ=no
17518 ;;
17519
17520 bsdi4*)
17521 export_dynamic_flag_spec_GCJ=-rdynamic
17522 ;;
17523
17524 cygwin* | mingw* | pw32*)
17525 # When not using gcc, we currently assume that we are using
17526 # Microsoft Visual C++.
17527 # hardcode_libdir_flag_spec is actually meaningless, as there is
17528 # no search path for DLLs.
17529 hardcode_libdir_flag_spec_GCJ=' '
17530 allow_undefined_flag_GCJ=unsupported
17531 # Tell ltmain to make .lib files, not .a files.
17532 libext=lib
17533 # Tell ltmain to make .dll files, not .so files.
17534 shrext_cmds=".dll"
17535 # FIXME: Setting linknames here is a bad hack.
17536 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17537 # The linker will automatically build a .lib file if we build a DLL.
17538 old_archive_From_new_cmds_GCJ='true'
17539 # FIXME: Should let the user specify the lib program.
17540 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17541 fix_srcfile_path='`cygpath -w "$srcfile"`'
17542 enable_shared_with_static_runtimes_GCJ=yes
17543 ;;
17544
17545 darwin* | rhapsody*)
17546 if test "$GXX" = yes ; then
17547 archive_cmds_need_lc_GCJ=no
17548 case "$host_os" in
17549 rhapsody* | darwin1.[012])
17550 allow_undefined_flag_GCJ='-undefined suppress'
17551 ;;
17552 *) # Darwin 1.3 on
17553 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17554 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17555 else
17556 case ${MACOSX_DEPLOYMENT_TARGET} in
17557 10.[012])
17558 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17559 ;;
17560 10.*)
17561 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
17562 ;;
17563 esac
17564 fi
17565 ;;
17566 esac
17567 lt_int_apple_cc_single_mod=no
17568 output_verbose_link_cmd='echo'
17569 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17570 lt_int_apple_cc_single_mod=yes
17571 fi
17572 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17573 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17574 else
17575 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17576 fi
17577 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17578 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17579 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17580 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17581 else
17582 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17583 fi
17584 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17585 hardcode_direct_GCJ=no
17586 hardcode_automatic_GCJ=yes
17587 hardcode_shlibpath_var_GCJ=unsupported
17588 whole_archive_flag_spec_GCJ='-all_load $convenience'
17589 link_all_deplibs_GCJ=yes
17590 else
17591 ld_shlibs_GCJ=no
17592 fi
17593 ;;
17594
17595 dgux*)
17596 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17597 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17598 hardcode_shlibpath_var_GCJ=no
17599 ;;
17600
17601 freebsd1*)
17602 ld_shlibs_GCJ=no
17603 ;;
17604
17605 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17606 # support. Future versions do this automatically, but an explicit c++rt0.o
17607 # does not break anything, and helps significantly (at the cost of a little
17608 # extra space).
17609 freebsd2.2*)
17610 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17611 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17612 hardcode_direct_GCJ=yes
17613 hardcode_shlibpath_var_GCJ=no
17614 ;;
17615
17616 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17617 freebsd2*)
17618 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17619 hardcode_direct_GCJ=yes
17620 hardcode_minus_L_GCJ=yes
17621 hardcode_shlibpath_var_GCJ=no
17622 ;;
17623
17624 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17625 freebsd* | kfreebsd*-gnu)
17626 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17627 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17628 hardcode_direct_GCJ=yes
17629 hardcode_shlibpath_var_GCJ=no
17630 ;;
17631
17632 hpux9*)
17633 if test "$GCC" = yes; then
17634 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17635 else
17636 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17637 fi
17638 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17639 hardcode_libdir_separator_GCJ=:
17640 hardcode_direct_GCJ=yes
17641
17642 # hardcode_minus_L: Not really in the search PATH,
17643 # but as the default location of the library.
17644 hardcode_minus_L_GCJ=yes
17645 export_dynamic_flag_spec_GCJ='${wl}-E'
17646 ;;
17647
17648 hpux10* | hpux11*)
17649 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17650 case "$host_cpu" in
17651 hppa*64*|ia64*)
17652 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17653 ;;
17654 *)
17655 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17656 ;;
17657 esac
17658 else
17659 case "$host_cpu" in
17660 hppa*64*|ia64*)
17661 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17662 ;;
17663 *)
17664 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17665 ;;
17666 esac
17667 fi
17668 if test "$with_gnu_ld" = no; then
17669 case "$host_cpu" in
17670 hppa*64*)
17671 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17672 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17673 hardcode_libdir_separator_GCJ=:
17674 hardcode_direct_GCJ=no
17675 hardcode_shlibpath_var_GCJ=no
17676 ;;
17677 ia64*)
17678 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17679 hardcode_direct_GCJ=no
17680 hardcode_shlibpath_var_GCJ=no
17681
17682 # hardcode_minus_L: Not really in the search PATH,
17683 # but as the default location of the library.
17684 hardcode_minus_L_GCJ=yes
17685 ;;
17686 *)
17687 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17688 hardcode_libdir_separator_GCJ=:
17689 hardcode_direct_GCJ=yes
17690 export_dynamic_flag_spec_GCJ='${wl}-E'
17691
17692 # hardcode_minus_L: Not really in the search PATH,
17693 # but as the default location of the library.
17694 hardcode_minus_L_GCJ=yes
17695 ;;
17696 esac
17697 fi
17698 ;;
17699
17700 irix5* | irix6* | nonstopux*)
17701 if test "$GCC" = yes; then
17702 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17703 else
17704 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17705 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17706 fi
17707 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17708 hardcode_libdir_separator_GCJ=:
17709 link_all_deplibs_GCJ=yes
17710 ;;
17711
17712 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17713 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17714 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17715 else
17716 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17717 fi
17718 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17719 hardcode_direct_GCJ=yes
17720 hardcode_shlibpath_var_GCJ=no
17721 ;;
17722
17723 newsos6)
17724 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17725 hardcode_direct_GCJ=yes
17726 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17727 hardcode_libdir_separator_GCJ=:
17728 hardcode_shlibpath_var_GCJ=no
17729 ;;
17730
17731 openbsd*)
17732 hardcode_direct_GCJ=yes
17733 hardcode_shlibpath_var_GCJ=no
17734 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17735 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17736 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17737 export_dynamic_flag_spec_GCJ='${wl}-E'
17738 else
17739 case $host_os in
17740 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17741 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17742 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17743 ;;
17744 *)
17745 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17746 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17747 ;;
17748 esac
17749 fi
17750 ;;
17751
17752 os2*)
17753 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17754 hardcode_minus_L_GCJ=yes
17755 allow_undefined_flag_GCJ=unsupported
17756 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17757 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17758 ;;
17759
17760 osf3*)
17761 if test "$GCC" = yes; then
17762 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17763 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17764 else
17765 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17766 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17767 fi
17768 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17769 hardcode_libdir_separator_GCJ=:
17770 ;;
17771
17772 osf4* | osf5*) # as osf3* with the addition of -msym flag
17773 if test "$GCC" = yes; then
17774 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17775 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17776 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17777 else
17778 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17779 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17780 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17781 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
17782
17783 # Both c and cxx compiler support -rpath directly
17784 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17785 fi
17786 hardcode_libdir_separator_GCJ=:
17787 ;;
17788
17789 sco3.2v5*)
17790 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17791 hardcode_shlibpath_var_GCJ=no
17792 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17793 runpath_var=LD_RUN_PATH
17794 hardcode_runpath_var=yes
17795 ;;
17796
17797 solaris*)
17798 no_undefined_flag_GCJ=' -z text'
17799 if test "$GCC" = yes; then
17800 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17801 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17802 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17803 else
17804 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17805 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17806 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17807 fi
17808 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17809 hardcode_shlibpath_var_GCJ=no
17810 case $host_os in
17811 solaris2.[0-5] | solaris2.[0-5].*) ;;
17812 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17813 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17814 esac
17815 link_all_deplibs_GCJ=yes
17816 ;;
17817
17818 sunos4*)
17819 if test "x$host_vendor" = xsequent; then
17820 # Use $CC to link under sequent, because it throws in some extra .o
17821 # files that make .init and .fini sections work.
17822 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17823 else
17824 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17825 fi
17826 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17827 hardcode_direct_GCJ=yes
17828 hardcode_minus_L_GCJ=yes
17829 hardcode_shlibpath_var_GCJ=no
17830 ;;
17831
17832 sysv4)
17833 case $host_vendor in
17834 sni)
17835 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17836 hardcode_direct_GCJ=yes # is this really true???
17837 ;;
17838 siemens)
17839 ## LD is ld it makes a PLAMLIB
17840 ## CC just makes a GrossModule.
17841 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17842 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17843 hardcode_direct_GCJ=no
17844 ;;
17845 motorola)
17846 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17847 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17848 ;;
17849 esac
17850 runpath_var='LD_RUN_PATH'
17851 hardcode_shlibpath_var_GCJ=no
17852 ;;
17853
17854 sysv4.3*)
17855 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17856 hardcode_shlibpath_var_GCJ=no
17857 export_dynamic_flag_spec_GCJ='-Bexport'
17858 ;;
17859
17860 sysv4*MP*)
17861 if test -d /usr/nec; then
17862 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17863 hardcode_shlibpath_var_GCJ=no
17864 runpath_var=LD_RUN_PATH
17865 hardcode_runpath_var=yes
17866 ld_shlibs_GCJ=yes
17867 fi
17868 ;;
17869
17870 sysv4.2uw2*)
17871 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17872 hardcode_direct_GCJ=yes
17873 hardcode_minus_L_GCJ=no
17874 hardcode_shlibpath_var_GCJ=no
17875 hardcode_runpath_var=yes
17876 runpath_var=LD_RUN_PATH
17877 ;;
17878
17879 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17880 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17881 if test "$GCC" = yes; then
17882 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17883 else
17884 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17885 fi
17886 runpath_var='LD_RUN_PATH'
17887 hardcode_shlibpath_var_GCJ=no
17888 ;;
17889
17890 sysv5*)
17891 no_undefined_flag_GCJ=' -z text'
17892 # $CC -shared without GNU ld will not create a library from C++
17893 # object files and a static libstdc++, better avoid it by now
17894 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17895 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17896 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17897 hardcode_libdir_flag_spec_GCJ=
17898 hardcode_shlibpath_var_GCJ=no
17899 runpath_var='LD_RUN_PATH'
17900 ;;
17901
17902 uts4*)
17903 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17904 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17905 hardcode_shlibpath_var_GCJ=no
17906 ;;
17907
17908 *)
17909 ld_shlibs_GCJ=no
17910 ;;
17911 esac
17912 fi
17913
17914{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17915echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17916test "$ld_shlibs_GCJ" = no && can_build_shared=no
17917
17918variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17919if test "$GCC" = yes; then
17920 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17921fi
17922
17923#
17924# Do we need to explicitly link libc?
17925#
17926case "x$archive_cmds_need_lc_GCJ" in
17927x|xyes)
17928 # Assume -lc should be added
17929 archive_cmds_need_lc_GCJ=yes
17930
17931 if test "$enable_shared" = yes && test "$GCC" = yes; then
17932 case $archive_cmds_GCJ in
17933 *'~'*)
17934 # FIXME: we may have to deal with multi-command sequences.
17935 ;;
17936 '$CC '*)
17937 # Test whether the compiler implicitly links with -lc since on some
17938 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17939 # to ld, don't add -lc before -lgcc.
17940 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17941echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17942 $rm conftest*
17943 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17944
17945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17946 (eval $ac_compile) 2>&5
17947 ac_status=$?
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); } 2>conftest.err; then
17950 soname=conftest
17951 lib=conftest
17952 libobjs=conftest.$ac_objext
17953 deplibs=
17954 wl=$lt_prog_compiler_wl_GCJ
17955 compiler_flags=-v
17956 linker_flags=-v
17957 verstring=
17958 output_objdir=.
17959 libname=conftest
17960 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17961 allow_undefined_flag_GCJ=
17962 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17963 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17964 ac_status=$?
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); }
17967 then
17968 archive_cmds_need_lc_GCJ=no
17969 else
17970 archive_cmds_need_lc_GCJ=yes
17971 fi
17972 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17973 else
17974 cat conftest.err 1>&5
17975 fi
17976 $rm conftest*
17977 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17978echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17979 ;;
17980 esac
17981 fi
17982 ;;
17983esac
17984
17985{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17986echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17987library_names_spec=
17988libname_spec='lib$name'
17989soname_spec=
17990shrext_cmds=".so"
17991postinstall_cmds=
17992postuninstall_cmds=
17993finish_cmds=
17994finish_eval=
17995shlibpath_var=
17996shlibpath_overrides_runpath=unknown
17997version_type=none
17998dynamic_linker="$host_os ld.so"
17999sys_lib_dlsearch_path_spec="/lib /usr/lib"
18000if test "$GCC" = yes; then
18001 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18002 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18003 # if the path contains ";" then we assume it to be the separator
18004 # otherwise default to the standard path separator (i.e. ":") - it is
18005 # assumed that no part of a normal pathname contains ";" but that should
18006 # okay in the real world where ";" in dirpaths is itself problematic.
18007 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18008 else
18009 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18010 fi
18011else
18012 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18013fi
18014need_lib_prefix=unknown
18015hardcode_into_libs=no
18016
18017# when you set need_version to no, make sure it does not cause -set_version
18018# flags to be left without arguments
18019need_version=unknown
18020
18021case $host_os in
18022aix3*)
18023 version_type=linux
18024 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18025 shlibpath_var=LIBPATH
18026
18027 # AIX 3 has no versioning support, so we append a major version to the name.
18028 soname_spec='${libname}${release}${shared_ext}$major'
18029 ;;
18030
18031aix4* | aix5*)
18032 version_type=linux
18033 need_lib_prefix=no
18034 need_version=no
18035 hardcode_into_libs=yes
18036 if test "$host_cpu" = ia64; then
18037 # AIX 5 supports IA64
18038 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18039 shlibpath_var=LD_LIBRARY_PATH
18040 else
18041 # With GCC up to 2.95.x, collect2 would create an import file
18042 # for dependence libraries. The import file would start with
18043 # the line `#! .'. This would cause the generated library to
18044 # depend on `.', always an invalid library. This was fixed in
18045 # development snapshots of GCC prior to 3.0.
18046 case $host_os in
18047 aix4 | aix4.[01] | aix4.[01].*)
18048 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18049 echo ' yes '
18050 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18051 :
18052 else
18053 can_build_shared=no
18054 fi
18055 ;;
18056 esac
18057 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18058 # soname into executable. Probably we can add versioning support to
18059 # collect2, so additional links can be useful in future.
18060 if test "$aix_use_runtimelinking" = yes; then
18061 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18062 # instead of lib<name>.a to let people know that these are not
18063 # typical AIX shared libraries.
18064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18065 else
18066 # We preserve .a as extension for shared libraries through AIX4.2
18067 # and later when we are not doing run time linking.
18068 library_names_spec='${libname}${release}.a $libname.a'
18069 soname_spec='${libname}${release}${shared_ext}$major'
18070 fi
18071 shlibpath_var=LIBPATH
18072 fi
18073 ;;
18074
18075amigaos*)
18076 library_names_spec='$libname.ixlibrary $libname.a'
18077 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18078 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18079 ;;
18080
18081beos*)
18082 library_names_spec='${libname}${shared_ext}'
18083 dynamic_linker="$host_os ld.so"
18084 shlibpath_var=LIBRARY_PATH
18085 ;;
18086
18087bsdi4*)
18088 version_type=linux
18089 need_version=no
18090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18091 soname_spec='${libname}${release}${shared_ext}$major'
18092 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18093 shlibpath_var=LD_LIBRARY_PATH
18094 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18095 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18096 # the default ld.so.conf also contains /usr/contrib/lib and
18097 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18098 # libtool to hard-code these into programs
18099 ;;
18100
18101cygwin* | mingw* | pw32*)
18102 version_type=windows
18103 shrext_cmds=".dll"
18104 need_version=no
18105 need_lib_prefix=no
18106
18107 case $GCC,$host_os in
18108 yes,cygwin* | yes,mingw* | yes,pw32*)
18109 library_names_spec='$libname.dll.a'
18110 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18111 postinstall_cmds='base_file=`basename \${file}`~
18112 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18113 dldir=$destdir/`dirname \$dlpath`~
18114 test -d \$dldir || mkdir -p \$dldir~
18115 $install_prog $dir/$dlname \$dldir/$dlname'
18116 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18117 dlpath=$dir/\$dldll~
18118 $rm \$dlpath'
18119 shlibpath_overrides_runpath=yes
18120
18121 case $host_os in
18122 cygwin*)
18123 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18124 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18125 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18126 ;;
18127 mingw*)
18128 # MinGW DLLs use traditional 'lib' prefix
18129 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18130 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18131 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18132 # It is most probably a Windows format PATH printed by
18133 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18134 # path with ; separators, and with drive letters. We can handle the
18135 # drive letters (cygwin fileutils understands them), so leave them,
18136 # especially as we might pass files found there to a mingw objdump,
18137 # which wouldn't understand a cygwinified path. Ahh.
18138 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18139 else
18140 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18141 fi
18142 ;;
18143 pw32*)
18144 # pw32 DLLs use 'pw' prefix rather than 'lib'
18145 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18146 ;;
18147 esac
18148 ;;
18149
18150 *)
18151 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18152 ;;
18153 esac
18154 dynamic_linker='Win32 ld.exe'
18155 # FIXME: first we should search . and the directory the executable is in
18156 shlibpath_var=PATH
18157 ;;
18158
18159darwin* | rhapsody*)
18160 dynamic_linker="$host_os dyld"
18161 version_type=darwin
18162 need_lib_prefix=no
18163 need_version=no
18164 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18165 soname_spec='${libname}${release}${major}$shared_ext'
18166 shlibpath_overrides_runpath=yes
18167 shlibpath_var=DYLD_LIBRARY_PATH
18168 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18169 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18170 if test "$GCC" = yes; then
18171 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18172 else
18173 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18174 fi
18175 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18176 ;;
18177
18178dgux*)
18179 version_type=linux
18180 need_lib_prefix=no
18181 need_version=no
18182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18183 soname_spec='${libname}${release}${shared_ext}$major'
18184 shlibpath_var=LD_LIBRARY_PATH
18185 ;;
18186
18187freebsd1*)
18188 dynamic_linker=no
18189 ;;
18190
18191kfreebsd*-gnu)
18192 version_type=linux
18193 need_lib_prefix=no
18194 need_version=no
18195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18196 soname_spec='${libname}${release}${shared_ext}$major'
18197 shlibpath_var=LD_LIBRARY_PATH
18198 shlibpath_overrides_runpath=no
18199 hardcode_into_libs=yes
18200 dynamic_linker='GNU ld.so'
18201 ;;
18202
18203freebsd*)
18204 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18205 version_type=freebsd-$objformat
18206 case $version_type in
18207 freebsd-elf*)
18208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18209 need_version=no
18210 need_lib_prefix=no
18211 ;;
18212 freebsd-*)
18213 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18214 need_version=yes
18215 ;;
18216 esac
18217 shlibpath_var=LD_LIBRARY_PATH
18218 case $host_os in
18219 freebsd2*)
18220 shlibpath_overrides_runpath=yes
18221 ;;
18222 freebsd3.01* | freebsdelf3.01*)
18223 shlibpath_overrides_runpath=yes
18224 hardcode_into_libs=yes
18225 ;;
18226 *) # from 3.2 on
18227 shlibpath_overrides_runpath=no
18228 hardcode_into_libs=yes
18229 ;;
18230 esac
18231 ;;
18232
18233gnu*)
18234 version_type=linux
18235 need_lib_prefix=no
18236 need_version=no
18237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18238 soname_spec='${libname}${release}${shared_ext}$major'
18239 shlibpath_var=LD_LIBRARY_PATH
18240 hardcode_into_libs=yes
18241 ;;
18242
18243hpux9* | hpux10* | hpux11*)
18244 # Give a soname corresponding to the major version so that dld.sl refuses to
18245 # link against other versions.
18246 version_type=sunos
18247 need_lib_prefix=no
18248 need_version=no
18249 case "$host_cpu" in
18250 ia64*)
18251 shrext_cmds='.so'
18252 hardcode_into_libs=yes
18253 dynamic_linker="$host_os dld.so"
18254 shlibpath_var=LD_LIBRARY_PATH
18255 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18257 soname_spec='${libname}${release}${shared_ext}$major'
18258 if test "X$HPUX_IA64_MODE" = X32; then
18259 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18260 else
18261 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18262 fi
18263 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18264 ;;
18265 hppa*64*)
18266 shrext_cmds='.sl'
18267 hardcode_into_libs=yes
18268 dynamic_linker="$host_os dld.sl"
18269 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18270 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18272 soname_spec='${libname}${release}${shared_ext}$major'
18273 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18274 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18275 ;;
18276 *)
18277 shrext_cmds='.sl'
18278 dynamic_linker="$host_os dld.sl"
18279 shlibpath_var=SHLIB_PATH
18280 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18282 soname_spec='${libname}${release}${shared_ext}$major'
18283 ;;
18284 esac
18285 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18286 postinstall_cmds='chmod 555 $lib'
18287 ;;
18288
18289irix5* | irix6* | nonstopux*)
18290 case $host_os in
18291 nonstopux*) version_type=nonstopux ;;
18292 *)
18293 if test "$lt_cv_prog_gnu_ld" = yes; then
18294 version_type=linux
18295 else
18296 version_type=irix
18297 fi ;;
18298 esac
18299 need_lib_prefix=no
18300 need_version=no
18301 soname_spec='${libname}${release}${shared_ext}$major'
18302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18303 case $host_os in
18304 irix5* | nonstopux*)
18305 libsuff= shlibsuff=
18306 ;;
18307 *)
18308 case $LD in # libtool.m4 will add one of these switches to LD
18309 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18310 libsuff= shlibsuff= libmagic=32-bit;;
18311 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18312 libsuff=32 shlibsuff=N32 libmagic=N32;;
18313 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18314 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18315 *) libsuff= shlibsuff= libmagic=never-match;;
18316 esac
18317 ;;
18318 esac
18319 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18320 shlibpath_overrides_runpath=no
18321 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18322 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18323 hardcode_into_libs=yes
18324 ;;
18325
18326# No shared lib support for Linux oldld, aout, or coff.
18327linux*oldld* | linux*aout* | linux*coff*)
18328 dynamic_linker=no
18329 ;;
18330
18331# This must be Linux ELF.
18332linux*)
18333 version_type=linux
18334 need_lib_prefix=no
18335 need_version=no
18336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18337 soname_spec='${libname}${release}${shared_ext}$major'
18338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18339 shlibpath_var=LD_LIBRARY_PATH
18340 shlibpath_overrides_runpath=no
18341 # This implies no fast_install, which is unacceptable.
18342 # Some rework will be needed to allow for fast_install
18343 # before this can be enabled.
18344 hardcode_into_libs=yes
18345
18346 # Append ld.so.conf contents to the search path
18347 if test -f /etc/ld.so.conf; then
18348 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18349 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18350 fi
18351
18352 # We used to test for /lib/ld.so.1 and disable shared libraries on
18353 # powerpc, because MkLinux only supported shared libraries with the
18354 # GNU dynamic linker. Since this was broken with cross compilers,
18355 # most powerpc-linux boxes support dynamic linking these days and
18356 # people can always --disable-shared, the test was removed, and we
18357 # assume the GNU/Linux dynamic linker is in use.
18358 dynamic_linker='GNU/Linux ld.so'
18359 ;;
18360
18361netbsdelf*-gnu)
18362 version_type=linux
18363 need_lib_prefix=no
18364 need_version=no
18365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18366 soname_spec='${libname}${release}${shared_ext}$major'
18367 shlibpath_var=LD_LIBRARY_PATH
18368 shlibpath_overrides_runpath=no
18369 hardcode_into_libs=yes
18370 dynamic_linker='NetBSD ld.elf_so'
18371 ;;
18372
18373knetbsd*-gnu)
18374 version_type=linux
18375 need_lib_prefix=no
18376 need_version=no
18377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18378 soname_spec='${libname}${release}${shared_ext}$major'
18379 shlibpath_var=LD_LIBRARY_PATH
18380 shlibpath_overrides_runpath=no
18381 hardcode_into_libs=yes
18382 dynamic_linker='GNU ld.so'
18383 ;;
18384
18385netbsd*)
18386 version_type=sunos
18387 need_lib_prefix=no
18388 need_version=no
18389 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18392 dynamic_linker='NetBSD (a.out) ld.so'
18393 else
18394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18395 soname_spec='${libname}${release}${shared_ext}$major'
18396 dynamic_linker='NetBSD ld.elf_so'
18397 fi
18398 shlibpath_var=LD_LIBRARY_PATH
18399 shlibpath_overrides_runpath=yes
18400 hardcode_into_libs=yes
18401 ;;
18402
18403newsos6)
18404 version_type=linux
18405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18406 shlibpath_var=LD_LIBRARY_PATH
18407 shlibpath_overrides_runpath=yes
18408 ;;
18409
18410nto-qnx*)
18411 version_type=linux
18412 need_lib_prefix=no
18413 need_version=no
18414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18415 soname_spec='${libname}${release}${shared_ext}$major'
18416 shlibpath_var=LD_LIBRARY_PATH
18417 shlibpath_overrides_runpath=yes
18418 ;;
18419
18420openbsd*)
18421 version_type=sunos
18422 need_lib_prefix=no
18423 need_version=yes
18424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18425 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18426 shlibpath_var=LD_LIBRARY_PATH
18427 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18428 case $host_os in
18429 openbsd2.[89] | openbsd2.[89].*)
18430 shlibpath_overrides_runpath=no
18431 ;;
18432 *)
18433 shlibpath_overrides_runpath=yes
18434 ;;
18435 esac
18436 else
18437 shlibpath_overrides_runpath=yes
18438 fi
18439 ;;
18440
18441os2*)
18442 libname_spec='$name'
18443 shrext_cmds=".dll"
18444 need_lib_prefix=no
18445 library_names_spec='$libname${shared_ext} $libname.a'
18446 dynamic_linker='OS/2 ld.exe'
18447 shlibpath_var=LIBPATH
18448 ;;
18449
18450osf3* | osf4* | osf5*)
18451 version_type=osf
18452 need_lib_prefix=no
18453 need_version=no
18454 soname_spec='${libname}${release}${shared_ext}$major'
18455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18456 shlibpath_var=LD_LIBRARY_PATH
18457 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18458 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18459 ;;
18460
18461sco3.2v5*)
18462 version_type=osf
18463 soname_spec='${libname}${release}${shared_ext}$major'
18464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18465 shlibpath_var=LD_LIBRARY_PATH
18466 ;;
18467
18468solaris*)
18469 version_type=linux
18470 need_lib_prefix=no
18471 need_version=no
18472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18473 soname_spec='${libname}${release}${shared_ext}$major'
18474 shlibpath_var=LD_LIBRARY_PATH
18475 shlibpath_overrides_runpath=yes
18476 hardcode_into_libs=yes
18477 # ldd complains unless libraries are executable
18478 postinstall_cmds='chmod +x $lib'
18479 ;;
18480
18481sunos4*)
18482 version_type=sunos
18483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18484 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18485 shlibpath_var=LD_LIBRARY_PATH
18486 shlibpath_overrides_runpath=yes
18487 if test "$with_gnu_ld" = yes; then
18488 need_lib_prefix=no
18489 fi
18490 need_version=yes
18491 ;;
18492
18493sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18494 version_type=linux
18495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18496 soname_spec='${libname}${release}${shared_ext}$major'
18497 shlibpath_var=LD_LIBRARY_PATH
18498 case $host_vendor in
18499 sni)
18500 shlibpath_overrides_runpath=no
18501 need_lib_prefix=no
18502 export_dynamic_flag_spec='${wl}-Blargedynsym'
18503 runpath_var=LD_RUN_PATH
18504 ;;
18505 siemens)
18506 need_lib_prefix=no
18507 ;;
18508 motorola)
18509 need_lib_prefix=no
18510 need_version=no
18511 shlibpath_overrides_runpath=no
18512 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18513 ;;
18514 esac
18515 ;;
18516
18517sysv4*MP*)
18518 if test -d /usr/nec ;then
18519 version_type=linux
18520 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18521 soname_spec='$libname${shared_ext}.$major'
18522 shlibpath_var=LD_LIBRARY_PATH
18523 fi
18524 ;;
18525
18526uts4*)
18527 version_type=linux
18528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18529 soname_spec='${libname}${release}${shared_ext}$major'
18530 shlibpath_var=LD_LIBRARY_PATH
18531 ;;
18532
18533*)
18534 dynamic_linker=no
18535 ;;
18536esac
18537{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18538echo "${ECHO_T}$dynamic_linker" >&6; }
18539test "$dynamic_linker" = no && can_build_shared=no
18540
18541{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18542echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18543hardcode_action_GCJ=
18544if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18545 test -n "$runpath_var GCJ" || \
18546 test "X$hardcode_automatic_GCJ"="Xyes" ; then
18547
18548 # We can hardcode non-existant directories.
18549 if test "$hardcode_direct_GCJ" != no &&
18550 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18551 # have to relink, otherwise we might link with an installed library
18552 # when we should be linking with a yet-to-be-installed one
18553 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18554 test "$hardcode_minus_L_GCJ" != no; then
18555 # Linking always hardcodes the temporary library directory.
18556 hardcode_action_GCJ=relink
18557 else
18558 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18559 hardcode_action_GCJ=immediate
18560 fi
18561else
18562 # We cannot hardcode anything, or else we can only hardcode existing
18563 # directories.
18564 hardcode_action_GCJ=unsupported
18565fi
18566{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18567echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18568
18569if test "$hardcode_action_GCJ" = relink; then
18570 # Fast installation is not supported
18571 enable_fast_install=no
18572elif test "$shlibpath_overrides_runpath" = yes ||
18573 test "$enable_shared" = no; then
18574 # Fast installation is not necessary
18575 enable_fast_install=needless
18576fi
18577
18578striplib=
18579old_striplib=
18580{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18581echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
18582if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18583 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18584 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18585 { echo "$as_me:$LINENO: result: yes" >&5
18586echo "${ECHO_T}yes" >&6; }
18587else
18588# FIXME - insert some real tests, host_os isn't really good enough
18589 case $host_os in
18590 darwin*)
18591 if test -n "$STRIP" ; then
18592 striplib="$STRIP -x"
18593 { echo "$as_me:$LINENO: result: yes" >&5
18594echo "${ECHO_T}yes" >&6; }
18595 else
18596 { echo "$as_me:$LINENO: result: no" >&5
18597echo "${ECHO_T}no" >&6; }
18598fi
18599 ;;
18600 *)
18601 { echo "$as_me:$LINENO: result: no" >&5
18602echo "${ECHO_T}no" >&6; }
18603 ;;
18604 esac
18605fi
18606
18607if test "x$enable_dlopen" != xyes; then
18608 enable_dlopen=unknown
18609 enable_dlopen_self=unknown
18610 enable_dlopen_self_static=unknown
18611else
18612 lt_cv_dlopen=no
18613 lt_cv_dlopen_libs=
18614
18615 case $host_os in
18616 beos*)
18617 lt_cv_dlopen="load_add_on"
18618 lt_cv_dlopen_libs=
18619 lt_cv_dlopen_self=yes
18620 ;;
18621
18622 mingw* | pw32*)
18623 lt_cv_dlopen="LoadLibrary"
18624 lt_cv_dlopen_libs=
18625 ;;
18626
18627 cygwin*)
18628 lt_cv_dlopen="dlopen"
18629 lt_cv_dlopen_libs=
18630 ;;
18631
18632 darwin*)
18633 # if libdl is installed we need to link against it
18634 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18635echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18636if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18637 echo $ECHO_N "(cached) $ECHO_C" >&6
18638else
18639 ac_check_lib_save_LIBS=$LIBS
18640LIBS="-ldl $LIBS"
18641cat >conftest.$ac_ext <<_ACEOF
18642/* confdefs.h. */
18643_ACEOF
18644cat confdefs.h >>conftest.$ac_ext
18645cat >>conftest.$ac_ext <<_ACEOF
18646/* end confdefs.h. */
18647
18648/* Override any GCC internal prototype to avoid an error.
18649 Use char because int might match the return type of a GCC
18650 builtin and then its argument prototype would still apply. */
18651#ifdef __cplusplus
18652extern "C"
18653#endif
18654char dlopen ();
18655int
18656main ()
18657{
18658return dlopen ();
18659 ;
18660 return 0;
18661}
18662_ACEOF
18663rm -f conftest.$ac_objext conftest$ac_exeext
18664if { (ac_try="$ac_link"
18665case "(($ac_try" in
18666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18667 *) ac_try_echo=$ac_try;;
18668esac
18669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18670 (eval "$ac_link") 2>conftest.er1
18671 ac_status=$?
18672 grep -v '^ *+' conftest.er1 >conftest.err
18673 rm -f conftest.er1
18674 cat conftest.err >&5
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); } && {
18677 test -z "$ac_c_werror_flag" ||
18678 test ! -s conftest.err
18679 } && test -s conftest$ac_exeext &&
18680 $as_test_x conftest$ac_exeext; then
18681 ac_cv_lib_dl_dlopen=yes
18682else
18683 echo "$as_me: failed program was:" >&5
18684sed 's/^/| /' conftest.$ac_ext >&5
18685
18686 ac_cv_lib_dl_dlopen=no
18687fi
18688
18689rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18690 conftest$ac_exeext conftest.$ac_ext
18691LIBS=$ac_check_lib_save_LIBS
18692fi
18693{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18694echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18695if test $ac_cv_lib_dl_dlopen = yes; then
18696 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18697else
18698
18699 lt_cv_dlopen="dyld"
18700 lt_cv_dlopen_libs=
18701 lt_cv_dlopen_self=yes
18702
18703fi
18704
18705 ;;
18706
18707 *)
18708 { echo "$as_me:$LINENO: checking for shl_load" >&5
18709echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
18710if test "${ac_cv_func_shl_load+set}" = set; then
18711 echo $ECHO_N "(cached) $ECHO_C" >&6
18712else
18713 cat >conftest.$ac_ext <<_ACEOF
18714/* confdefs.h. */
18715_ACEOF
18716cat confdefs.h >>conftest.$ac_ext
18717cat >>conftest.$ac_ext <<_ACEOF
18718/* end confdefs.h. */
18719/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18721#define shl_load innocuous_shl_load
18722
18723/* System header to define __stub macros and hopefully few prototypes,
18724 which can conflict with char shl_load (); below.
18725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18726 <limits.h> exists even on freestanding compilers. */
18727
18728#ifdef __STDC__
18729# include <limits.h>
18730#else
18731# include <assert.h>
18732#endif
18733
18734#undef shl_load
18735
18736/* Override any GCC internal prototype to avoid an error.
18737 Use char because int might match the return type of a GCC
18738 builtin and then its argument prototype would still apply. */
18739#ifdef __cplusplus
18740extern "C"
18741#endif
18742char shl_load ();
18743/* The GNU C library defines this for functions which it implements
18744 to always fail with ENOSYS. Some functions are actually named
18745 something starting with __ and the normal name is an alias. */
18746#if defined __stub_shl_load || defined __stub___shl_load
18747choke me
18748#endif
18749
18750int
18751main ()
18752{
18753return shl_load ();
18754 ;
18755 return 0;
18756}
18757_ACEOF
18758rm -f conftest.$ac_objext conftest$ac_exeext
18759if { (ac_try="$ac_link"
18760case "(($ac_try" in
18761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18762 *) ac_try_echo=$ac_try;;
18763esac
18764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18765 (eval "$ac_link") 2>conftest.er1
18766 ac_status=$?
18767 grep -v '^ *+' conftest.er1 >conftest.err
18768 rm -f conftest.er1
18769 cat conftest.err >&5
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); } && {
18772 test -z "$ac_c_werror_flag" ||
18773 test ! -s conftest.err
18774 } && test -s conftest$ac_exeext &&
18775 $as_test_x conftest$ac_exeext; then
18776 ac_cv_func_shl_load=yes
18777else
18778 echo "$as_me: failed program was:" >&5
18779sed 's/^/| /' conftest.$ac_ext >&5
18780
18781 ac_cv_func_shl_load=no
18782fi
18783
18784rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18785 conftest$ac_exeext conftest.$ac_ext
18786fi
18787{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18788echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
18789if test $ac_cv_func_shl_load = yes; then
18790 lt_cv_dlopen="shl_load"
18791else
18792 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18793echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
18794if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18795 echo $ECHO_N "(cached) $ECHO_C" >&6
18796else
18797 ac_check_lib_save_LIBS=$LIBS
18798LIBS="-ldld $LIBS"
18799cat >conftest.$ac_ext <<_ACEOF
18800/* confdefs.h. */
18801_ACEOF
18802cat confdefs.h >>conftest.$ac_ext
18803cat >>conftest.$ac_ext <<_ACEOF
18804/* end confdefs.h. */
18805
18806/* Override any GCC internal prototype to avoid an error.
18807 Use char because int might match the return type of a GCC
18808 builtin and then its argument prototype would still apply. */
18809#ifdef __cplusplus
18810extern "C"
18811#endif
18812char shl_load ();
18813int
18814main ()
18815{
18816return shl_load ();
18817 ;
18818 return 0;
18819}
18820_ACEOF
18821rm -f conftest.$ac_objext conftest$ac_exeext
18822if { (ac_try="$ac_link"
18823case "(($ac_try" in
18824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18825 *) ac_try_echo=$ac_try;;
18826esac
18827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18828 (eval "$ac_link") 2>conftest.er1
18829 ac_status=$?
18830 grep -v '^ *+' conftest.er1 >conftest.err
18831 rm -f conftest.er1
18832 cat conftest.err >&5
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); } && {
18835 test -z "$ac_c_werror_flag" ||
18836 test ! -s conftest.err
18837 } && test -s conftest$ac_exeext &&
18838 $as_test_x conftest$ac_exeext; then
18839 ac_cv_lib_dld_shl_load=yes
18840else
18841 echo "$as_me: failed program was:" >&5
18842sed 's/^/| /' conftest.$ac_ext >&5
18843
18844 ac_cv_lib_dld_shl_load=no
18845fi
18846
18847rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18848 conftest$ac_exeext conftest.$ac_ext
18849LIBS=$ac_check_lib_save_LIBS
18850fi
18851{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18852echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
18853if test $ac_cv_lib_dld_shl_load = yes; then
18854 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18855else
18856 { echo "$as_me:$LINENO: checking for dlopen" >&5
18857echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
18858if test "${ac_cv_func_dlopen+set}" = set; then
18859 echo $ECHO_N "(cached) $ECHO_C" >&6
18860else
18861 cat >conftest.$ac_ext <<_ACEOF
18862/* confdefs.h. */
18863_ACEOF
18864cat confdefs.h >>conftest.$ac_ext
18865cat >>conftest.$ac_ext <<_ACEOF
18866/* end confdefs.h. */
18867/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18869#define dlopen innocuous_dlopen
18870
18871/* System header to define __stub macros and hopefully few prototypes,
18872 which can conflict with char dlopen (); below.
18873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18874 <limits.h> exists even on freestanding compilers. */
18875
18876#ifdef __STDC__
18877# include <limits.h>
18878#else
18879# include <assert.h>
18880#endif
18881
18882#undef dlopen
18883
18884/* Override any GCC internal prototype to avoid an error.
18885 Use char because int might match the return type of a GCC
18886 builtin and then its argument prototype would still apply. */
18887#ifdef __cplusplus
18888extern "C"
18889#endif
18890char dlopen ();
18891/* The GNU C library defines this for functions which it implements
18892 to always fail with ENOSYS. Some functions are actually named
18893 something starting with __ and the normal name is an alias. */
18894#if defined __stub_dlopen || defined __stub___dlopen
18895choke me
18896#endif
18897
18898int
18899main ()
18900{
18901return dlopen ();
18902 ;
18903 return 0;
18904}
18905_ACEOF
18906rm -f conftest.$ac_objext conftest$ac_exeext
18907if { (ac_try="$ac_link"
18908case "(($ac_try" in
18909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18910 *) ac_try_echo=$ac_try;;
18911esac
18912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18913 (eval "$ac_link") 2>conftest.er1
18914 ac_status=$?
18915 grep -v '^ *+' conftest.er1 >conftest.err
18916 rm -f conftest.er1
18917 cat conftest.err >&5
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); } && {
18920 test -z "$ac_c_werror_flag" ||
18921 test ! -s conftest.err
18922 } && test -s conftest$ac_exeext &&
18923 $as_test_x conftest$ac_exeext; then
18924 ac_cv_func_dlopen=yes
18925else
18926 echo "$as_me: failed program was:" >&5
18927sed 's/^/| /' conftest.$ac_ext >&5
18928
18929 ac_cv_func_dlopen=no
18930fi
18931
18932rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18933 conftest$ac_exeext conftest.$ac_ext
18934fi
18935{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18936echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
18937if test $ac_cv_func_dlopen = yes; then
18938 lt_cv_dlopen="dlopen"
18939else
18940 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18941echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18942if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18943 echo $ECHO_N "(cached) $ECHO_C" >&6
18944else
18945 ac_check_lib_save_LIBS=$LIBS
18946LIBS="-ldl $LIBS"
18947cat >conftest.$ac_ext <<_ACEOF
18948/* confdefs.h. */
18949_ACEOF
18950cat confdefs.h >>conftest.$ac_ext
18951cat >>conftest.$ac_ext <<_ACEOF
18952/* end confdefs.h. */
18953
18954/* Override any GCC internal prototype to avoid an error.
18955 Use char because int might match the return type of a GCC
18956 builtin and then its argument prototype would still apply. */
18957#ifdef __cplusplus
18958extern "C"
18959#endif
18960char dlopen ();
18961int
18962main ()
18963{
18964return dlopen ();
18965 ;
18966 return 0;
18967}
18968_ACEOF
18969rm -f conftest.$ac_objext conftest$ac_exeext
18970if { (ac_try="$ac_link"
18971case "(($ac_try" in
18972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18973 *) ac_try_echo=$ac_try;;
18974esac
18975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18976 (eval "$ac_link") 2>conftest.er1
18977 ac_status=$?
18978 grep -v '^ *+' conftest.er1 >conftest.err
18979 rm -f conftest.er1
18980 cat conftest.err >&5
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); } && {
18983 test -z "$ac_c_werror_flag" ||
18984 test ! -s conftest.err
18985 } && test -s conftest$ac_exeext &&
18986 $as_test_x conftest$ac_exeext; then
18987 ac_cv_lib_dl_dlopen=yes
18988else
18989 echo "$as_me: failed program was:" >&5
18990sed 's/^/| /' conftest.$ac_ext >&5
18991
18992 ac_cv_lib_dl_dlopen=no
18993fi
18994
18995rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18996 conftest$ac_exeext conftest.$ac_ext
18997LIBS=$ac_check_lib_save_LIBS
18998fi
18999{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19000echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
19001if test $ac_cv_lib_dl_dlopen = yes; then
19002 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19003else
19004 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19005echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
19006if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19007 echo $ECHO_N "(cached) $ECHO_C" >&6
19008else
19009 ac_check_lib_save_LIBS=$LIBS
19010LIBS="-lsvld $LIBS"
19011cat >conftest.$ac_ext <<_ACEOF
19012/* confdefs.h. */
19013_ACEOF
19014cat confdefs.h >>conftest.$ac_ext
19015cat >>conftest.$ac_ext <<_ACEOF
19016/* end confdefs.h. */
19017
19018/* Override any GCC internal prototype to avoid an error.
19019 Use char because int might match the return type of a GCC
19020 builtin and then its argument prototype would still apply. */
19021#ifdef __cplusplus
19022extern "C"
19023#endif
19024char dlopen ();
19025int
19026main ()
19027{
19028return dlopen ();
19029 ;
19030 return 0;
19031}
19032_ACEOF
19033rm -f conftest.$ac_objext conftest$ac_exeext
19034if { (ac_try="$ac_link"
19035case "(($ac_try" in
19036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19037 *) ac_try_echo=$ac_try;;
19038esac
19039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19040 (eval "$ac_link") 2>conftest.er1
19041 ac_status=$?
19042 grep -v '^ *+' conftest.er1 >conftest.err
19043 rm -f conftest.er1
19044 cat conftest.err >&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); } && {
19047 test -z "$ac_c_werror_flag" ||
19048 test ! -s conftest.err
19049 } && test -s conftest$ac_exeext &&
19050 $as_test_x conftest$ac_exeext; then
19051 ac_cv_lib_svld_dlopen=yes
19052else
19053 echo "$as_me: failed program was:" >&5
19054sed 's/^/| /' conftest.$ac_ext >&5
19055
19056 ac_cv_lib_svld_dlopen=no
19057fi
19058
19059rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19060 conftest$ac_exeext conftest.$ac_ext
19061LIBS=$ac_check_lib_save_LIBS
19062fi
19063{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19064echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
19065if test $ac_cv_lib_svld_dlopen = yes; then
19066 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19067else
19068 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19069echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
19070if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19071 echo $ECHO_N "(cached) $ECHO_C" >&6
19072else
19073 ac_check_lib_save_LIBS=$LIBS
19074LIBS="-ldld $LIBS"
19075cat >conftest.$ac_ext <<_ACEOF
19076/* confdefs.h. */
19077_ACEOF
19078cat confdefs.h >>conftest.$ac_ext
19079cat >>conftest.$ac_ext <<_ACEOF
19080/* end confdefs.h. */
19081
19082/* Override any GCC internal prototype to avoid an error.
19083 Use char because int might match the return type of a GCC
19084 builtin and then its argument prototype would still apply. */
19085#ifdef __cplusplus
19086extern "C"
19087#endif
19088char dld_link ();
19089int
19090main ()
19091{
19092return dld_link ();
19093 ;
19094 return 0;
19095}
19096_ACEOF
19097rm -f conftest.$ac_objext conftest$ac_exeext
19098if { (ac_try="$ac_link"
19099case "(($ac_try" in
19100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19101 *) ac_try_echo=$ac_try;;
19102esac
19103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19104 (eval "$ac_link") 2>conftest.er1
19105 ac_status=$?
19106 grep -v '^ *+' conftest.er1 >conftest.err
19107 rm -f conftest.er1
19108 cat conftest.err >&5
19109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 (exit $ac_status); } && {
19111 test -z "$ac_c_werror_flag" ||
19112 test ! -s conftest.err
19113 } && test -s conftest$ac_exeext &&
19114 $as_test_x conftest$ac_exeext; then
19115 ac_cv_lib_dld_dld_link=yes
19116else
19117 echo "$as_me: failed program was:" >&5
19118sed 's/^/| /' conftest.$ac_ext >&5
19119
19120 ac_cv_lib_dld_dld_link=no
19121fi
19122
19123rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19124 conftest$ac_exeext conftest.$ac_ext
19125LIBS=$ac_check_lib_save_LIBS
19126fi
19127{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19128echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
19129if test $ac_cv_lib_dld_dld_link = yes; then
19130 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19131fi
19132
19133
19134fi
19135
19136
19137fi
19138
19139
19140fi
19141
19142
19143fi
19144
19145
19146fi
19147
19148 ;;
19149 esac
19150
19151 if test "x$lt_cv_dlopen" != xno; then
19152 enable_dlopen=yes
19153 else
19154 enable_dlopen=no
19155 fi
19156
19157 case $lt_cv_dlopen in
19158 dlopen)
19159 save_CPPFLAGS="$CPPFLAGS"
19160 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19161
19162 save_LDFLAGS="$LDFLAGS"
19163 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19164
19165 save_LIBS="$LIBS"
19166 LIBS="$lt_cv_dlopen_libs $LIBS"
19167
19168 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19169echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
19170if test "${lt_cv_dlopen_self+set}" = set; then
19171 echo $ECHO_N "(cached) $ECHO_C" >&6
19172else
19173 if test "$cross_compiling" = yes; then :
19174 lt_cv_dlopen_self=cross
19175else
19176 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19177 lt_status=$lt_dlunknown
19178 cat > conftest.$ac_ext <<EOF
19179#line 19179 "configure"
19180#include "confdefs.h"
19181
19182#if HAVE_DLFCN_H
19183#include <dlfcn.h>
19184#endif
19185
19186#include <stdio.h>
19187
19188#ifdef RTLD_GLOBAL
19189# define LT_DLGLOBAL RTLD_GLOBAL
19190#else
19191# ifdef DL_GLOBAL
19192# define LT_DLGLOBAL DL_GLOBAL
19193# else
19194# define LT_DLGLOBAL 0
19195# endif
19196#endif
19197
19198/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19199 find out it does not work in some platform. */
19200#ifndef LT_DLLAZY_OR_NOW
19201# ifdef RTLD_LAZY
19202# define LT_DLLAZY_OR_NOW RTLD_LAZY
19203# else
19204# ifdef DL_LAZY
19205# define LT_DLLAZY_OR_NOW DL_LAZY
19206# else
19207# ifdef RTLD_NOW
19208# define LT_DLLAZY_OR_NOW RTLD_NOW
19209# else
19210# ifdef DL_NOW
19211# define LT_DLLAZY_OR_NOW DL_NOW
19212# else
19213# define LT_DLLAZY_OR_NOW 0
19214# endif
19215# endif
19216# endif
19217# endif
19218#endif
19219
19220#ifdef __cplusplus
19221extern "C" void exit (int);
19222#endif
19223
19224void fnord() { int i=42;}
19225int main ()
19226{
19227 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19228 int status = $lt_dlunknown;
19229
19230 if (self)
19231 {
19232 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19233 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19234 /* dlclose (self); */
19235 }
19236
19237 exit (status);
19238}
19239EOF
19240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19241 (eval $ac_link) 2>&5
19242 ac_status=$?
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19245 (./conftest; exit; ) 2>/dev/null
19246 lt_status=$?
19247 case x$lt_status in
19248 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19249 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19250 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19251 esac
19252 else :
19253 # compilation failed
19254 lt_cv_dlopen_self=no
19255 fi
19256fi
19257rm -fr conftest*
19258
19259
19260fi
19261{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19262echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
19263
19264 if test "x$lt_cv_dlopen_self" = xyes; then
19265 LDFLAGS="$LDFLAGS $link_static_flag"
19266 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19267echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
19268if test "${lt_cv_dlopen_self_static+set}" = set; then
19269 echo $ECHO_N "(cached) $ECHO_C" >&6
19270else
19271 if test "$cross_compiling" = yes; then :
19272 lt_cv_dlopen_self_static=cross
19273else
19274 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19275 lt_status=$lt_dlunknown
19276 cat > conftest.$ac_ext <<EOF
19277#line 19277 "configure"
19278#include "confdefs.h"
19279
19280#if HAVE_DLFCN_H
19281#include <dlfcn.h>
19282#endif
19283
19284#include <stdio.h>
19285
19286#ifdef RTLD_GLOBAL
19287# define LT_DLGLOBAL RTLD_GLOBAL
19288#else
19289# ifdef DL_GLOBAL
19290# define LT_DLGLOBAL DL_GLOBAL
19291# else
19292# define LT_DLGLOBAL 0
19293# endif
19294#endif
19295
19296/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19297 find out it does not work in some platform. */
19298#ifndef LT_DLLAZY_OR_NOW
19299# ifdef RTLD_LAZY
19300# define LT_DLLAZY_OR_NOW RTLD_LAZY
19301# else
19302# ifdef DL_LAZY
19303# define LT_DLLAZY_OR_NOW DL_LAZY
19304# else
19305# ifdef RTLD_NOW
19306# define LT_DLLAZY_OR_NOW RTLD_NOW
19307# else
19308# ifdef DL_NOW
19309# define LT_DLLAZY_OR_NOW DL_NOW
19310# else
19311# define LT_DLLAZY_OR_NOW 0
19312# endif
19313# endif
19314# endif
19315# endif
19316#endif
19317
19318#ifdef __cplusplus
19319extern "C" void exit (int);
19320#endif
19321
19322void fnord() { int i=42;}
19323int main ()
19324{
19325 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19326 int status = $lt_dlunknown;
19327
19328 if (self)
19329 {
19330 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19331 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19332 /* dlclose (self); */
19333 }
19334
19335 exit (status);
19336}
19337EOF
19338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19339 (eval $ac_link) 2>&5
19340 ac_status=$?
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19343 (./conftest; exit; ) 2>/dev/null
19344 lt_status=$?
19345 case x$lt_status in
19346 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19347 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19348 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19349 esac
19350 else :
19351 # compilation failed
19352 lt_cv_dlopen_self_static=no
19353 fi
19354fi
19355rm -fr conftest*
19356
19357
19358fi
19359{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19360echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
19361 fi
19362
19363 CPPFLAGS="$save_CPPFLAGS"
19364 LDFLAGS="$save_LDFLAGS"
19365 LIBS="$save_LIBS"
19366 ;;
19367 esac
19368
19369 case $lt_cv_dlopen_self in
19370 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19371 *) enable_dlopen_self=unknown ;;
19372 esac
19373
19374 case $lt_cv_dlopen_self_static in
19375 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19376 *) enable_dlopen_self_static=unknown ;;
19377 esac
19378fi
19379
19380
19381# The else clause should only fire when bootstrapping the
19382# libtool distribution, otherwise you forgot to ship ltmain.sh
19383# with your package, and you will get complaints that there are
19384# no rules to generate ltmain.sh.
19385if test -f "$ltmain"; then
19386 # See if we are running on zsh, and set the options which allow our commands through
19387 # without removal of \ escapes.
19388 if test -n "${ZSH_VERSION+set}" ; then
19389 setopt NO_GLOB_SUBST
19390 fi
19391 # Now quote all the things that may contain metacharacters while being
19392 # careful not to overquote the AC_SUBSTed values. We take copies of the
19393 # variables and quote the copies for generation of the libtool script.
19394 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19395 SED SHELL STRIP \
19396 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19397 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19398 deplibs_check_method reload_flag reload_cmds need_locks \
19399 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19400 lt_cv_sys_global_symbol_to_c_name_address \
19401 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19402 old_postinstall_cmds old_postuninstall_cmds \
19403 compiler_GCJ \
19404 CC_GCJ \
19405 LD_GCJ \
19406 lt_prog_compiler_wl_GCJ \
19407 lt_prog_compiler_pic_GCJ \
19408 lt_prog_compiler_static_GCJ \
19409 lt_prog_compiler_no_builtin_flag_GCJ \
19410 export_dynamic_flag_spec_GCJ \
19411 thread_safe_flag_spec_GCJ \
19412 whole_archive_flag_spec_GCJ \
19413 enable_shared_with_static_runtimes_GCJ \
19414 old_archive_cmds_GCJ \
19415 old_archive_from_new_cmds_GCJ \
19416 predep_objects_GCJ \
19417 postdep_objects_GCJ \
19418 predeps_GCJ \
19419 postdeps_GCJ \
19420 compiler_lib_search_path_GCJ \
19421 archive_cmds_GCJ \
19422 archive_expsym_cmds_GCJ \
19423 postinstall_cmds_GCJ \
19424 postuninstall_cmds_GCJ \
19425 old_archive_from_expsyms_cmds_GCJ \
19426 allow_undefined_flag_GCJ \
19427 no_undefined_flag_GCJ \
19428 export_symbols_cmds_GCJ \
19429 hardcode_libdir_flag_spec_GCJ \
19430 hardcode_libdir_flag_spec_ld_GCJ \
19431 hardcode_libdir_separator_GCJ \
19432 hardcode_automatic_GCJ \
19433 module_cmds_GCJ \
19434 module_expsym_cmds_GCJ \
19435 lt_cv_prog_compiler_c_o_GCJ \
19436 exclude_expsyms_GCJ \
19437 include_expsyms_GCJ; do
19438
19439 case $var in
19440 old_archive_cmds_GCJ | \
19441 old_archive_from_new_cmds_GCJ | \
19442 archive_cmds_GCJ | \
19443 archive_expsym_cmds_GCJ | \
19444 module_cmds_GCJ | \
19445 module_expsym_cmds_GCJ | \
19446 old_archive_from_expsyms_cmds_GCJ | \
19447 export_symbols_cmds_GCJ | \
19448 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19449 postinstall_cmds | postuninstall_cmds | \
19450 old_postinstall_cmds | old_postuninstall_cmds | \
19451 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19452 # Double-quote double-evaled strings.
19453 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19454 ;;
19455 *)
19456 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19457 ;;
19458 esac
19459 done
19460
19461 case $lt_echo in
19462 *'\$0 --fallback-echo"')
19463 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19464 ;;
19465 esac
19466
19467cfgfile="$ofile"
19468
19469 cat <<__EOF__ >> "$cfgfile"
19470# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19471
19472# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19473
19474# Shell to use when invoking shell scripts.
19475SHELL=$lt_SHELL
19476
19477# Whether or not to build shared libraries.
19478build_libtool_libs=$enable_shared
19479
19480# Whether or not to build static libraries.
19481build_old_libs=$enable_static
19482
19483# Whether or not to add -lc for building shared libraries.
19484build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19485
19486# Whether or not to disallow shared libs when runtime libs are static
19487allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19488
19489# Whether or not to optimize for fast installation.
19490fast_install=$enable_fast_install
19491
19492# The host system.
19493host_alias=$host_alias
19494host=$host
19495
19496# An echo program that does not interpret backslashes.
19497echo=$lt_echo
19498
19499# The archiver.
19500AR=$lt_AR
19501AR_FLAGS=$lt_AR_FLAGS
19502
19503# A C compiler.
19504LTCC=$lt_LTCC
19505
19506# A language-specific compiler.
19507CC=$lt_compiler_GCJ
19508
19509# Is the compiler the GNU C compiler?
19510with_gcc=$GCC_GCJ
19511
19512# An ERE matcher.
19513EGREP=$lt_EGREP
19514
19515# The linker used to build libraries.
19516LD=$lt_LD_GCJ
19517
19518# Whether we need hard or soft links.
19519LN_S=$lt_LN_S
19520
19521# A BSD-compatible nm program.
19522NM=$lt_NM
19523
19524# A symbol stripping program
19525STRIP=$lt_STRIP
19526
19527# Used to examine libraries when file_magic_cmd begins "file"
19528MAGIC_CMD=$MAGIC_CMD
19529
19530# Used on cygwin: DLL creation program.
19531DLLTOOL="$DLLTOOL"
19532
19533# Used on cygwin: object dumper.
19534OBJDUMP="$OBJDUMP"
19535
19536# Used on cygwin: assembler.
19537AS="$AS"
19538
19539# The name of the directory that contains temporary libtool files.
19540objdir=$objdir
19541
19542# How to create reloadable object files.
19543reload_flag=$lt_reload_flag
19544reload_cmds=$lt_reload_cmds
19545
19546# How to pass a linker flag through the compiler.
19547wl=$lt_lt_prog_compiler_wl_GCJ
19548
19549# Object file suffix (normally "o").
19550objext="$ac_objext"
19551
19552# Old archive suffix (normally "a").
19553libext="$libext"
19554
19555# Shared library suffix (normally ".so").
19556shrext_cmds='$shrext_cmds'
19557
19558# Executable file suffix (normally "").
19559exeext="$exeext"
19560
19561# Additional compiler flags for building library objects.
19562pic_flag=$lt_lt_prog_compiler_pic_GCJ
19563pic_mode=$pic_mode
19564
19565# What is the maximum length of a command?
19566max_cmd_len=$lt_cv_sys_max_cmd_len
19567
19568# Does compiler simultaneously support -c and -o options?
19569compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19570
19571# Must we lock files when doing compilation ?
19572need_locks=$lt_need_locks
19573
19574# Do we need the lib prefix for modules?
19575need_lib_prefix=$need_lib_prefix
19576
19577# Do we need a version for libraries?
19578need_version=$need_version
19579
19580# Whether dlopen is supported.
19581dlopen_support=$enable_dlopen
19582
19583# Whether dlopen of programs is supported.
19584dlopen_self=$enable_dlopen_self
19585
19586# Whether dlopen of statically linked programs is supported.
19587dlopen_self_static=$enable_dlopen_self_static
19588
19589# Compiler flag to prevent dynamic linking.
19590link_static_flag=$lt_lt_prog_compiler_static_GCJ
19591
19592# Compiler flag to turn off builtin functions.
19593no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19594
19595# Compiler flag to allow reflexive dlopens.
19596export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19597
19598# Compiler flag to generate shared objects directly from archives.
19599whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19600
19601# Compiler flag to generate thread-safe objects.
19602thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19603
19604# Library versioning type.
19605version_type=$version_type
19606
19607# Format of library name prefix.
19608libname_spec=$lt_libname_spec
19609
19610# List of archive names. First name is the real one, the rest are links.
19611# The last name is the one that the linker finds with -lNAME.
19612library_names_spec=$lt_library_names_spec
19613
19614# The coded name of the library, if different from the real name.
19615soname_spec=$lt_soname_spec
19616
19617# Commands used to build and install an old-style archive.
19618RANLIB=$lt_RANLIB
19619old_archive_cmds=$lt_old_archive_cmds_GCJ
19620old_postinstall_cmds=$lt_old_postinstall_cmds
19621old_postuninstall_cmds=$lt_old_postuninstall_cmds
19622
19623# Create an old-style archive from a shared archive.
19624old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19625
19626# Create a temporary old-style archive to link instead of a shared archive.
19627old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19628
19629# Commands used to build and install a shared archive.
19630archive_cmds=$lt_archive_cmds_GCJ
19631archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19632postinstall_cmds=$lt_postinstall_cmds
19633postuninstall_cmds=$lt_postuninstall_cmds
19634
19635# Commands used to build a loadable module (assumed same as above if empty)
19636module_cmds=$lt_module_cmds_GCJ
19637module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19638
19639# Commands to strip libraries.
19640old_striplib=$lt_old_striplib
19641striplib=$lt_striplib
19642
19643# Dependencies to place before the objects being linked to create a
19644# shared library.
19645predep_objects=$lt_predep_objects_GCJ
19646
19647# Dependencies to place after the objects being linked to create a
19648# shared library.
19649postdep_objects=$lt_postdep_objects_GCJ
19650
19651# Dependencies to place before the objects being linked to create a
19652# shared library.
19653predeps=$lt_predeps_GCJ
19654
19655# Dependencies to place after the objects being linked to create a
19656# shared library.
19657postdeps=$lt_postdeps_GCJ
19658
19659# The library search path used internally by the compiler when linking
19660# a shared library.
19661compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19662
19663# Method to check whether dependent libraries are shared objects.
19664deplibs_check_method=$lt_deplibs_check_method
19665
19666# Command to use when deplibs_check_method == file_magic.
19667file_magic_cmd=$lt_file_magic_cmd
19668
19669# Flag that allows shared libraries with undefined symbols to be built.
19670allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19671
19672# Flag that forces no undefined symbols.
19673no_undefined_flag=$lt_no_undefined_flag_GCJ
19674
19675# Commands used to finish a libtool library installation in a directory.
19676finish_cmds=$lt_finish_cmds
19677
19678# Same as above, but a single script fragment to be evaled but not shown.
19679finish_eval=$lt_finish_eval
19680
19681# Take the output of nm and produce a listing of raw symbols and C names.
19682global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19683
19684# Transform the output of nm in a proper C declaration
19685global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19686
19687# Transform the output of nm in a C name address pair
19688global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19689
19690# This is the shared library runtime path variable.
19691runpath_var=$runpath_var
19692
19693# This is the shared library path variable.
19694shlibpath_var=$shlibpath_var
19695
19696# Is shlibpath searched before the hard-coded library search path?
19697shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19698
19699# How to hardcode a shared library path into an executable.
19700hardcode_action=$hardcode_action_GCJ
19701
19702# Whether we should hardcode library paths into libraries.
19703hardcode_into_libs=$hardcode_into_libs
19704
19705# Flag to hardcode \$libdir into a binary during linking.
19706# This must work even if \$libdir does not exist.
19707hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19708
19709# If ld is used when linking, flag to hardcode \$libdir into
19710# a binary during linking. This must work even if \$libdir does
19711# not exist.
19712hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19713
19714# Whether we need a single -rpath flag with a separated argument.
19715hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19716
19717# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19718# resulting binary.
19719hardcode_direct=$hardcode_direct_GCJ
19720
19721# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19722# resulting binary.
19723hardcode_minus_L=$hardcode_minus_L_GCJ
19724
19725# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19726# the resulting binary.
19727hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19728
19729# Set to yes if building a shared library automatically hardcodes DIR into the library
19730# and all subsequent libraries and executables linked against it.
19731hardcode_automatic=$hardcode_automatic_GCJ
19732
19733# Variables whose values should be saved in libtool wrapper scripts and
19734# restored at relink time.
19735variables_saved_for_relink="$variables_saved_for_relink"
19736
19737# Whether libtool must link a program against all its dependency libraries.
19738link_all_deplibs=$link_all_deplibs_GCJ
19739
19740# Compile-time system search path for libraries
19741sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19742
19743# Run-time system search path for libraries
19744sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19745
19746# Fix the shell variable \$srcfile for the compiler.
19747fix_srcfile_path="$fix_srcfile_path_GCJ"
19748
19749# Set to yes if exported symbols are required.
19750always_export_symbols=$always_export_symbols_GCJ
19751
19752# The commands to list exported symbols.
19753export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19754
19755# The commands to extract the exported symbol list from a shared archive.
19756extract_expsyms_cmds=$lt_extract_expsyms_cmds
19757
19758# Symbols that should not be listed in the preloaded symbols.
19759exclude_expsyms=$lt_exclude_expsyms_GCJ
19760
19761# Symbols that must always be exported.
19762include_expsyms=$lt_include_expsyms_GCJ
19763
19764# ### END LIBTOOL TAG CONFIG: $tagname
19765
19766__EOF__
19767
19768
19769else
19770 # If there is no Makefile yet, we rely on a make rule to execute
19771 # `config.status --recheck' to rerun these tests and create the
19772 # libtool script then.
19773 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19774 if test -f "$ltmain_in"; then
19775 test -f Makefile && make "$ltmain"
19776 fi
19777fi
19778
19779
19780ac_ext=c
19781ac_cpp='$CPP $CPPFLAGS'
19782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19784ac_compiler_gnu=$ac_cv_c_compiler_gnu
19785
19786CC="$lt_save_CC"
19787
19788 else
19789 tagname=""
19790 fi
19791 ;;
19792
19793 RC)
19794
19795
19796# Source file extension for RC test sources.
19797ac_ext=rc
19798
19799# Object file extension for compiled RC test sources.
19800objext=o
19801objext_RC=$objext
19802
19803# Code to be used in simple compile tests
19804lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19805
19806# Code to be used in simple link tests
19807lt_simple_link_test_code="$lt_simple_compile_test_code"
19808
19809# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19810
19811# If no C compiler was specified, use CC.
19812LTCC=${LTCC-"$CC"}
19813
19814# Allow CC to be a program name with arguments.
19815compiler=$CC
19816
19817
19818# Allow CC to be a program name with arguments.
19819lt_save_CC="$CC"
19820CC=${RC-"windres"}
19821compiler=$CC
19822compiler_RC=$CC
19823lt_cv_prog_compiler_c_o_RC=yes
19824
19825# The else clause should only fire when bootstrapping the
19826# libtool distribution, otherwise you forgot to ship ltmain.sh
19827# with your package, and you will get complaints that there are
19828# no rules to generate ltmain.sh.
19829if test -f "$ltmain"; then
19830 # See if we are running on zsh, and set the options which allow our commands through
19831 # without removal of \ escapes.
19832 if test -n "${ZSH_VERSION+set}" ; then
19833 setopt NO_GLOB_SUBST
19834 fi
19835 # Now quote all the things that may contain metacharacters while being
19836 # careful not to overquote the AC_SUBSTed values. We take copies of the
19837 # variables and quote the copies for generation of the libtool script.
19838 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19839 SED SHELL STRIP \
19840 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19841 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19842 deplibs_check_method reload_flag reload_cmds need_locks \
19843 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19844 lt_cv_sys_global_symbol_to_c_name_address \
19845 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19846 old_postinstall_cmds old_postuninstall_cmds \
19847 compiler_RC \
19848 CC_RC \
19849 LD_RC \
19850 lt_prog_compiler_wl_RC \
19851 lt_prog_compiler_pic_RC \
19852 lt_prog_compiler_static_RC \
19853 lt_prog_compiler_no_builtin_flag_RC \
19854 export_dynamic_flag_spec_RC \
19855 thread_safe_flag_spec_RC \
19856 whole_archive_flag_spec_RC \
19857 enable_shared_with_static_runtimes_RC \
19858 old_archive_cmds_RC \
19859 old_archive_from_new_cmds_RC \
19860 predep_objects_RC \
19861 postdep_objects_RC \
19862 predeps_RC \
19863 postdeps_RC \
19864 compiler_lib_search_path_RC \
19865 archive_cmds_RC \
19866 archive_expsym_cmds_RC \
19867 postinstall_cmds_RC \
19868 postuninstall_cmds_RC \
19869 old_archive_from_expsyms_cmds_RC \
19870 allow_undefined_flag_RC \
19871 no_undefined_flag_RC \
19872 export_symbols_cmds_RC \
19873 hardcode_libdir_flag_spec_RC \
19874 hardcode_libdir_flag_spec_ld_RC \
19875 hardcode_libdir_separator_RC \
19876 hardcode_automatic_RC \
19877 module_cmds_RC \
19878 module_expsym_cmds_RC \
19879 lt_cv_prog_compiler_c_o_RC \
19880 exclude_expsyms_RC \
19881 include_expsyms_RC; do
19882
19883 case $var in
19884 old_archive_cmds_RC | \
19885 old_archive_from_new_cmds_RC | \
19886 archive_cmds_RC | \
19887 archive_expsym_cmds_RC | \
19888 module_cmds_RC | \
19889 module_expsym_cmds_RC | \
19890 old_archive_from_expsyms_cmds_RC | \
19891 export_symbols_cmds_RC | \
19892 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19893 postinstall_cmds | postuninstall_cmds | \
19894 old_postinstall_cmds | old_postuninstall_cmds | \
19895 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19896 # Double-quote double-evaled strings.
19897 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19898 ;;
19899 *)
19900 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19901 ;;
19902 esac
19903 done
19904
19905 case $lt_echo in
19906 *'\$0 --fallback-echo"')
19907 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19908 ;;
19909 esac
19910
19911cfgfile="$ofile"
19912
19913 cat <<__EOF__ >> "$cfgfile"
19914# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19915
19916# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19917
19918# Shell to use when invoking shell scripts.
19919SHELL=$lt_SHELL
19920
19921# Whether or not to build shared libraries.
19922build_libtool_libs=$enable_shared
19923
19924# Whether or not to build static libraries.
19925build_old_libs=$enable_static
19926
19927# Whether or not to add -lc for building shared libraries.
19928build_libtool_need_lc=$archive_cmds_need_lc_RC
19929
19930# Whether or not to disallow shared libs when runtime libs are static
19931allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19932
19933# Whether or not to optimize for fast installation.
19934fast_install=$enable_fast_install
19935
19936# The host system.
19937host_alias=$host_alias
19938host=$host
19939
19940# An echo program that does not interpret backslashes.
19941echo=$lt_echo
19942
19943# The archiver.
19944AR=$lt_AR
19945AR_FLAGS=$lt_AR_FLAGS
19946
19947# A C compiler.
19948LTCC=$lt_LTCC
19949
19950# A language-specific compiler.
19951CC=$lt_compiler_RC
19952
19953# Is the compiler the GNU C compiler?
19954with_gcc=$GCC_RC
19955
19956# An ERE matcher.
19957EGREP=$lt_EGREP
19958
19959# The linker used to build libraries.
19960LD=$lt_LD_RC
19961
19962# Whether we need hard or soft links.
19963LN_S=$lt_LN_S
19964
19965# A BSD-compatible nm program.
19966NM=$lt_NM
19967
19968# A symbol stripping program
19969STRIP=$lt_STRIP
19970
19971# Used to examine libraries when file_magic_cmd begins "file"
19972MAGIC_CMD=$MAGIC_CMD
19973
19974# Used on cygwin: DLL creation program.
19975DLLTOOL="$DLLTOOL"
19976
19977# Used on cygwin: object dumper.
19978OBJDUMP="$OBJDUMP"
19979
19980# Used on cygwin: assembler.
19981AS="$AS"
19982
19983# The name of the directory that contains temporary libtool files.
19984objdir=$objdir
19985
19986# How to create reloadable object files.
19987reload_flag=$lt_reload_flag
19988reload_cmds=$lt_reload_cmds
19989
19990# How to pass a linker flag through the compiler.
19991wl=$lt_lt_prog_compiler_wl_RC
19992
19993# Object file suffix (normally "o").
19994objext="$ac_objext"
19995
19996# Old archive suffix (normally "a").
19997libext="$libext"
19998
19999# Shared library suffix (normally ".so").
20000shrext_cmds='$shrext_cmds'
20001
20002# Executable file suffix (normally "").
20003exeext="$exeext"
20004
20005# Additional compiler flags for building library objects.
20006pic_flag=$lt_lt_prog_compiler_pic_RC
20007pic_mode=$pic_mode
20008
20009# What is the maximum length of a command?
20010max_cmd_len=$lt_cv_sys_max_cmd_len
20011
20012# Does compiler simultaneously support -c and -o options?
20013compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20014
20015# Must we lock files when doing compilation ?
20016need_locks=$lt_need_locks
20017
20018# Do we need the lib prefix for modules?
20019need_lib_prefix=$need_lib_prefix
20020
20021# Do we need a version for libraries?
20022need_version=$need_version
20023
20024# Whether dlopen is supported.
20025dlopen_support=$enable_dlopen
20026
20027# Whether dlopen of programs is supported.
20028dlopen_self=$enable_dlopen_self
20029
20030# Whether dlopen of statically linked programs is supported.
20031dlopen_self_static=$enable_dlopen_self_static
20032
20033# Compiler flag to prevent dynamic linking.
20034link_static_flag=$lt_lt_prog_compiler_static_RC
20035
20036# Compiler flag to turn off builtin functions.
20037no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20038
20039# Compiler flag to allow reflexive dlopens.
20040export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20041
20042# Compiler flag to generate shared objects directly from archives.
20043whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20044
20045# Compiler flag to generate thread-safe objects.
20046thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20047
20048# Library versioning type.
20049version_type=$version_type
20050
20051# Format of library name prefix.
20052libname_spec=$lt_libname_spec
20053
20054# List of archive names. First name is the real one, the rest are links.
20055# The last name is the one that the linker finds with -lNAME.
20056library_names_spec=$lt_library_names_spec
20057
20058# The coded name of the library, if different from the real name.
20059soname_spec=$lt_soname_spec
20060
20061# Commands used to build and install an old-style archive.
20062RANLIB=$lt_RANLIB
20063old_archive_cmds=$lt_old_archive_cmds_RC
20064old_postinstall_cmds=$lt_old_postinstall_cmds
20065old_postuninstall_cmds=$lt_old_postuninstall_cmds
20066
20067# Create an old-style archive from a shared archive.
20068old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20069
20070# Create a temporary old-style archive to link instead of a shared archive.
20071old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20072
20073# Commands used to build and install a shared archive.
20074archive_cmds=$lt_archive_cmds_RC
20075archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20076postinstall_cmds=$lt_postinstall_cmds
20077postuninstall_cmds=$lt_postuninstall_cmds
20078
20079# Commands used to build a loadable module (assumed same as above if empty)
20080module_cmds=$lt_module_cmds_RC
20081module_expsym_cmds=$lt_module_expsym_cmds_RC
20082
20083# Commands to strip libraries.
20084old_striplib=$lt_old_striplib
20085striplib=$lt_striplib
20086
20087# Dependencies to place before the objects being linked to create a
20088# shared library.
20089predep_objects=$lt_predep_objects_RC
20090
20091# Dependencies to place after the objects being linked to create a
20092# shared library.
20093postdep_objects=$lt_postdep_objects_RC
20094
20095# Dependencies to place before the objects being linked to create a
20096# shared library.
20097predeps=$lt_predeps_RC
20098
20099# Dependencies to place after the objects being linked to create a
20100# shared library.
20101postdeps=$lt_postdeps_RC
20102
20103# The library search path used internally by the compiler when linking
20104# a shared library.
20105compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20106
20107# Method to check whether dependent libraries are shared objects.
20108deplibs_check_method=$lt_deplibs_check_method
20109
20110# Command to use when deplibs_check_method == file_magic.
20111file_magic_cmd=$lt_file_magic_cmd
20112
20113# Flag that allows shared libraries with undefined symbols to be built.
20114allow_undefined_flag=$lt_allow_undefined_flag_RC
20115
20116# Flag that forces no undefined symbols.
20117no_undefined_flag=$lt_no_undefined_flag_RC
20118
20119# Commands used to finish a libtool library installation in a directory.
20120finish_cmds=$lt_finish_cmds
20121
20122# Same as above, but a single script fragment to be evaled but not shown.
20123finish_eval=$lt_finish_eval
20124
20125# Take the output of nm and produce a listing of raw symbols and C names.
20126global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20127
20128# Transform the output of nm in a proper C declaration
20129global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20130
20131# Transform the output of nm in a C name address pair
20132global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20133
20134# This is the shared library runtime path variable.
20135runpath_var=$runpath_var
20136
20137# This is the shared library path variable.
20138shlibpath_var=$shlibpath_var
20139
20140# Is shlibpath searched before the hard-coded library search path?
20141shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20142
20143# How to hardcode a shared library path into an executable.
20144hardcode_action=$hardcode_action_RC
20145
20146# Whether we should hardcode library paths into libraries.
20147hardcode_into_libs=$hardcode_into_libs
20148
20149# Flag to hardcode \$libdir into a binary during linking.
20150# This must work even if \$libdir does not exist.
20151hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20152
20153# If ld is used when linking, flag to hardcode \$libdir into
20154# a binary during linking. This must work even if \$libdir does
20155# not exist.
20156hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20157
20158# Whether we need a single -rpath flag with a separated argument.
20159hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20160
20161# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20162# resulting binary.
20163hardcode_direct=$hardcode_direct_RC
20164
20165# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20166# resulting binary.
20167hardcode_minus_L=$hardcode_minus_L_RC
20168
20169# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20170# the resulting binary.
20171hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20172
20173# Set to yes if building a shared library automatically hardcodes DIR into the library
20174# and all subsequent libraries and executables linked against it.
20175hardcode_automatic=$hardcode_automatic_RC
20176
20177# Variables whose values should be saved in libtool wrapper scripts and
20178# restored at relink time.
20179variables_saved_for_relink="$variables_saved_for_relink"
20180
20181# Whether libtool must link a program against all its dependency libraries.
20182link_all_deplibs=$link_all_deplibs_RC
20183
20184# Compile-time system search path for libraries
20185sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20186
20187# Run-time system search path for libraries
20188sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20189
20190# Fix the shell variable \$srcfile for the compiler.
20191fix_srcfile_path="$fix_srcfile_path_RC"
20192
20193# Set to yes if exported symbols are required.
20194always_export_symbols=$always_export_symbols_RC
20195
20196# The commands to list exported symbols.
20197export_symbols_cmds=$lt_export_symbols_cmds_RC
20198
20199# The commands to extract the exported symbol list from a shared archive.
20200extract_expsyms_cmds=$lt_extract_expsyms_cmds
20201
20202# Symbols that should not be listed in the preloaded symbols.
20203exclude_expsyms=$lt_exclude_expsyms_RC
20204
20205# Symbols that must always be exported.
20206include_expsyms=$lt_include_expsyms_RC
20207
20208# ### END LIBTOOL TAG CONFIG: $tagname
20209
20210__EOF__
20211
20212
20213else
20214 # If there is no Makefile yet, we rely on a make rule to execute
20215 # `config.status --recheck' to rerun these tests and create the
20216 # libtool script then.
20217 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20218 if test -f "$ltmain_in"; then
20219 test -f Makefile && make "$ltmain"
20220 fi
20221fi
20222
20223
20224ac_ext=c
20225ac_cpp='$CPP $CPPFLAGS'
20226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20228ac_compiler_gnu=$ac_cv_c_compiler_gnu
20229
20230CC="$lt_save_CC"
20231
20232 ;;
20233
20234 *)
20235 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20236echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20237 { (exit 1); exit 1; }; }
20238 ;;
20239 esac
20240
20241 # Append the new tag name to the list of available tags.
20242 if test -n "$tagname" ; then
20243 available_tags="$available_tags $tagname"
20244 fi
20245 fi
20246 done
20247 IFS="$lt_save_ifs"
20248
20249 # Now substitute the updated list of available tags.
20250 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20251 mv "${ofile}T" "$ofile"
20252 chmod +x "$ofile"
20253 else
20254 rm -f "${ofile}T"
20255 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20256echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20257 { (exit 1); exit 1; }; }
20258 fi
20259fi
20260
20261
20262
20263# This can be used to rebuild libtool when needed
20264LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20265
20266# Always use our own libtool.
20267LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20268
20269# Prevent multiple expansion
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291# gtk-doc
20292
20293
20294if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20295 if test -n "$ac_tool_prefix"; then
20296 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20297set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20298{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20300if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20301 echo $ECHO_N "(cached) $ECHO_C" >&6
20302else
20303 case $PKG_CONFIG in
20304 [\\/]* | ?:[\\/]*)
20305 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20306 ;;
20307 *)
20308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20309for as_dir in $PATH
20310do
20311 IFS=$as_save_IFS
20312 test -z "$as_dir" && as_dir=.
20313 for ac_exec_ext in '' $ac_executable_extensions; do
20314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20315 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20317 break 2
20318 fi
20319done
20320done
20321IFS=$as_save_IFS
20322
20323 ;;
20324esac
20325fi
20326PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20327if test -n "$PKG_CONFIG"; then
20328 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20329echo "${ECHO_T}$PKG_CONFIG" >&6; }
20330else
20331 { echo "$as_me:$LINENO: result: no" >&5
20332echo "${ECHO_T}no" >&6; }
20333fi
20334
20335
20336fi
20337if test -z "$ac_cv_path_PKG_CONFIG"; then
20338 ac_pt_PKG_CONFIG=$PKG_CONFIG
20339 # Extract the first word of "pkg-config", so it can be a program name with args.
20340set dummy pkg-config; ac_word=$2
20341{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20343if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20344 echo $ECHO_N "(cached) $ECHO_C" >&6
20345else
20346 case $ac_pt_PKG_CONFIG in
20347 [\\/]* | ?:[\\/]*)
20348 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20349 ;;
20350 *)
20351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20352for as_dir in $PATH
20353do
20354 IFS=$as_save_IFS
20355 test -z "$as_dir" && as_dir=.
20356 for ac_exec_ext in '' $ac_executable_extensions; do
20357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20358 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20360 break 2
20361 fi
20362done
20363done
20364IFS=$as_save_IFS
20365
20366 ;;
20367esac
20368fi
20369ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20370if test -n "$ac_pt_PKG_CONFIG"; then
20371 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20372echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20373else
20374 { echo "$as_me:$LINENO: result: no" >&5
20375echo "${ECHO_T}no" >&6; }
20376fi
20377
20378 if test "x$ac_pt_PKG_CONFIG" = x; then
20379 PKG_CONFIG=""
20380 else
20381 case $cross_compiling:$ac_tool_warned in
20382yes:)
20383{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20384whose name does not start with the host triplet. If you think this
20385configuration is useful to you, please write to autoconf@gnu.org." >&5
20386echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20387whose name does not start with the host triplet. If you think this
20388configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20389ac_tool_warned=yes ;;
20390esac
20391 PKG_CONFIG=$ac_pt_PKG_CONFIG
20392 fi
20393else
20394 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20395fi
20396
20397fi
20398if test -n "$PKG_CONFIG"; then
20399 _pkg_min_version=0.9.0
20400 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20401echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20402 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20403 { echo "$as_me:$LINENO: result: yes" >&5
20404echo "${ECHO_T}yes" >&6; }
20405 else
20406 { echo "$as_me:$LINENO: result: no" >&5
20407echo "${ECHO_T}no" >&6; }
20408 PKG_CONFIG=""
20409 fi
20410
20411fi
20412
20413
20414# Check whether --with-html-dir was given.
20415if test "${with_html_dir+set}" = set; then
20416 withval=$with_html_dir;
20417else
20418 with_html_dir='${datadir}/gtk-doc/html'
20419fi
20420
20421 HTML_DIR="$with_html_dir"
20422
20423
20424 # Check whether --enable-gtk-doc was given.
20425if test "${enable_gtk_doc+set}" = set; then
20426 enableval=$enable_gtk_doc;
20427else
20428 enable_gtk_doc=no
20429fi
20430
20431
20432 if test x$enable_gtk_doc = xyes; then
20433 if test -n "$PKG_CONFIG" && \
20434 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk-doc\"") >&5
20435 ($PKG_CONFIG --exists --print-errors "gtk-doc") 2>&5
20436 ac_status=$?
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); }; then
20439 :
20440else
20441 { { echo "$as_me:$LINENO: error: gtk-doc not installed and --enable-gtk-doc requested" >&5
20442echo "$as_me: error: gtk-doc not installed and --enable-gtk-doc requested" >&2;}
20443 { (exit 1); exit 1; }; }
20444fi
20445 fi
20446
20447 { echo "$as_me:$LINENO: checking whether to build gtk-doc documentation" >&5
20448echo $ECHO_N "checking whether to build gtk-doc documentation... $ECHO_C" >&6; }
20449 { echo "$as_me:$LINENO: result: $enable_gtk_doc" >&5
20450echo "${ECHO_T}$enable_gtk_doc" >&6; }
20451
20452 for ac_prog in gtkdoc-check
20453do
20454 # Extract the first word of "$ac_prog", so it can be a program name with args.
20455set dummy $ac_prog; ac_word=$2
20456{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20458if test "${ac_cv_path_GTKDOC_CHECK+set}" = set; then
20459 echo $ECHO_N "(cached) $ECHO_C" >&6
20460else
20461 case $GTKDOC_CHECK in
20462 [\\/]* | ?:[\\/]*)
20463 ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
20464 ;;
20465 *)
20466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20467for as_dir in $PATH
20468do
20469 IFS=$as_save_IFS
20470 test -z "$as_dir" && as_dir=.
20471 for ac_exec_ext in '' $ac_executable_extensions; do
20472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20473 ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
20474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20475 break 2
20476 fi
20477done
20478done
20479IFS=$as_save_IFS
20480
20481 ;;
20482esac
20483fi
20484GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
20485if test -n "$GTKDOC_CHECK"; then
20486 { echo "$as_me:$LINENO: result: $GTKDOC_CHECK" >&5
20487echo "${ECHO_T}$GTKDOC_CHECK" >&6; }
20488else
20489 { echo "$as_me:$LINENO: result: no" >&5
20490echo "${ECHO_T}no" >&6; }
20491fi
20492
20493
20494 test -n "$GTKDOC_CHECK" && break
20495done
20496
20497
20498 if test x$enable_gtk_doc = xyes; then
20499 ENABLE_GTK_DOC_TRUE=
20500 ENABLE_GTK_DOC_FALSE='#'
20501else
20502 ENABLE_GTK_DOC_TRUE='#'
20503 ENABLE_GTK_DOC_FALSE=
20504fi
20505
20506 if test -n "$LIBTOOL"; then
20507 GTK_DOC_USE_LIBTOOL_TRUE=
20508 GTK_DOC_USE_LIBTOOL_FALSE='#'
20509else
20510 GTK_DOC_USE_LIBTOOL_TRUE='#'
20511 GTK_DOC_USE_LIBTOOL_FALSE=
20512fi
20513
20514
20515
20516# glib
20517# Check whether --enable-glibtest was given.
20518if test "${enable_glibtest+set}" = set; then
20519 enableval=$enable_glibtest;
20520else
20521 enable_glibtest=yes
20522fi
20523
20524
20525 pkg_config_args=glib-2.0
20526 for module in . gmodule gobject
20527 do
20528 case "$module" in
20529 gmodule)
20530 pkg_config_args="$pkg_config_args gmodule-2.0"
20531 ;;
20532 gmodule-no-export)
20533 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
20534 ;;
20535 gobject)
20536 pkg_config_args="$pkg_config_args gobject-2.0"
20537 ;;
20538 gthread)
20539 pkg_config_args="$pkg_config_args gthread-2.0"
20540 ;;
20541 esac
20542 done
20543
20544 # Extract the first word of "pkg-config", so it can be a program name with args.
20545set dummy pkg-config; ac_word=$2
20546{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20548if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20549 echo $ECHO_N "(cached) $ECHO_C" >&6
20550else
20551 case $PKG_CONFIG in
20552 [\\/]* | ?:[\\/]*)
20553 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20554 ;;
20555 *)
20556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20557for as_dir in $PATH
20558do
20559 IFS=$as_save_IFS
20560 test -z "$as_dir" && as_dir=.
20561 for ac_exec_ext in '' $ac_executable_extensions; do
20562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20563 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20565 break 2
20566 fi
20567done
20568done
20569IFS=$as_save_IFS
20570
20571 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20572 ;;
20573esac
20574fi
20575PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20576if test -n "$PKG_CONFIG"; then
20577 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20578echo "${ECHO_T}$PKG_CONFIG" >&6; }
20579else
20580 { echo "$as_me:$LINENO: result: no" >&5
20581echo "${ECHO_T}no" >&6; }
20582fi
20583
20584
20585
20586 no_glib=""
20587
20588 if test x$PKG_CONFIG != xno ; then
20589 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
20590 :
20591 else
20592 echo *** pkg-config too old; version 0.7 or better required.
20593 no_glib=yes
20594 PKG_CONFIG=no
20595 fi
20596 else
20597 no_glib=yes
20598 fi
20599
20600 min_glib_version=2.0.0
20601 { echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
20602echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6; }
20603
20604 if test x$PKG_CONFIG != xno ; then
20605 ## don't try to run the test against uninstalled libtool libs
20606 if $PKG_CONFIG --uninstalled $pkg_config_args; then
20607 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
20608 enable_glibtest=no
20609 fi
20610
20611 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
20612 :
20613 else
20614 no_glib=yes
20615 fi
20616 fi
20617
20618 if test x"$no_glib" = x ; then
20619 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
20620 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
20621 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
20622
20623 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
20624 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
20625 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
20626 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20627 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
20628 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20629 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
20630 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20631 if test "x$enable_glibtest" = "xyes" ; then
20632 ac_save_CFLAGS="$CFLAGS"
20633 ac_save_LIBS="$LIBS"
20634 CFLAGS="$CFLAGS $GLIB_CFLAGS"
20635 LIBS="$GLIB_LIBS $LIBS"
20636 rm -f conf.glibtest
20637 if test "$cross_compiling" = yes; then
20638 echo $ac_n "cross compiling; assumed OK... $ac_c"
20639else
20640 cat >conftest.$ac_ext <<_ACEOF
20641/* confdefs.h. */
20642_ACEOF
20643cat confdefs.h >>conftest.$ac_ext
20644cat >>conftest.$ac_ext <<_ACEOF
20645/* end confdefs.h. */
20646
20647#include <glib.h>
20648#include <stdio.h>
20649#include <stdlib.h>
20650
20651int
20652main ()
20653{
20654 int major, minor, micro;
20655 char *tmp_version;
20656
20657 system ("touch conf.glibtest");
20658
20659 /* HP/UX 9 (%@#!) writes to sscanf strings */
20660 tmp_version = g_strdup("$min_glib_version");
20661 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20662 printf("%s, bad version string\n", "$min_glib_version");
20663 exit(1);
20664 }
20665
20666 if ((glib_major_version != $glib_config_major_version) ||
20667 (glib_minor_version != $glib_config_minor_version) ||
20668 (glib_micro_version != $glib_config_micro_version))
20669 {
20670 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
20671 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
20672 glib_major_version, glib_minor_version, glib_micro_version);
20673 printf ("*** was found! If pkg-config was correct, then it is best\n");
20674 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
20675 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20676 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20677 printf("*** required on your system.\n");
20678 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
20679 printf("*** to point to the correct configuration files\n");
20680 }
20681 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
20682 (glib_minor_version != GLIB_MINOR_VERSION) ||
20683 (glib_micro_version != GLIB_MICRO_VERSION))
20684 {
20685 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
20686 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
20687 printf("*** library (version %d.%d.%d)\n",
20688 glib_major_version, glib_minor_version, glib_micro_version);
20689 }
20690 else
20691 {
20692 if ((glib_major_version > major) ||
20693 ((glib_major_version == major) && (glib_minor_version > minor)) ||
20694 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
20695 {
20696 return 0;
20697 }
20698 else
20699 {
20700 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
20701 glib_major_version, glib_minor_version, glib_micro_version);
20702 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
20703 major, minor, micro);
20704 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
20705 printf("***\n");
20706 printf("*** If you have already installed a sufficiently new version, this error\n");
20707 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
20708 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20709 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
20710 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
20711 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20712 printf("*** so that the correct libraries are found at run-time))\n");
20713 }
20714 }
20715 return 1;
20716}
20717
20718_ACEOF
20719rm -f conftest$ac_exeext
20720if { (ac_try="$ac_link"
20721case "(($ac_try" in
20722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20723 *) ac_try_echo=$ac_try;;
20724esac
20725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20726 (eval "$ac_link") 2>&5
20727 ac_status=$?
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20730 { (case "(($ac_try" in
20731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20732 *) ac_try_echo=$ac_try;;
20733esac
20734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20735 (eval "$ac_try") 2>&5
20736 ac_status=$?
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); }; }; then
20739 :
20740else
20741 echo "$as_me: program exited with status $ac_status" >&5
20742echo "$as_me: failed program was:" >&5
20743sed 's/^/| /' conftest.$ac_ext >&5
20744
20745( exit $ac_status )
20746no_glib=yes
20747fi
20748rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20749fi
20750
20751
20752 CFLAGS="$ac_save_CFLAGS"
20753 LIBS="$ac_save_LIBS"
20754 fi
20755 fi
20756 if test "x$no_glib" = x ; then
20757 { echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
20758echo "${ECHO_T}yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
20759 :
20760 else
20761 { echo "$as_me:$LINENO: result: no" >&5
20762echo "${ECHO_T}no" >&6; }
20763 if test "$PKG_CONFIG" = "no" ; then
20764 echo "*** A new enough version of pkg-config was not found."
20765 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
20766 else
20767 if test -f conf.glibtest ; then
20768 :
20769 else
20770 echo "*** Could not run GLIB test program, checking why..."
20771 ac_save_CFLAGS="$CFLAGS"
20772 ac_save_LIBS="$LIBS"
20773 CFLAGS="$CFLAGS $GLIB_CFLAGS"
20774 LIBS="$LIBS $GLIB_LIBS"
20775 cat >conftest.$ac_ext <<_ACEOF
20776/* confdefs.h. */
20777_ACEOF
20778cat confdefs.h >>conftest.$ac_ext
20779cat >>conftest.$ac_ext <<_ACEOF
20780/* end confdefs.h. */
20781
20782#include <glib.h>
20783#include <stdio.h>
20784
20785int
20786main ()
20787{
20788 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
20789 ;
20790 return 0;
20791}
20792_ACEOF
20793rm -f conftest.$ac_objext conftest$ac_exeext
20794if { (ac_try="$ac_link"
20795case "(($ac_try" in
20796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20797 *) ac_try_echo=$ac_try;;
20798esac
20799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20800 (eval "$ac_link") 2>conftest.er1
20801 ac_status=$?
20802 grep -v '^ *+' conftest.er1 >conftest.err
20803 rm -f conftest.er1
20804 cat conftest.err >&5
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); } && {
20807 test -z "$ac_c_werror_flag" ||
20808 test ! -s conftest.err
20809 } && test -s conftest$ac_exeext &&
20810 $as_test_x conftest$ac_exeext; then
20811 echo "*** The test program compiled, but did not run. This usually means"
20812 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
20813 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
20814 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20815 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20816 echo "*** is required on your system"
20817 echo "***"
20818 echo "*** If you have an old version installed, it is best to remove it, although"
20819 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20820else
20821 echo "$as_me: failed program was:" >&5
20822sed 's/^/| /' conftest.$ac_ext >&5
20823
20824 echo "*** The test program failed to compile or link. See the file config.log for the"
20825 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
20826fi
20827
20828rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20829 conftest$ac_exeext conftest.$ac_ext
20830 CFLAGS="$ac_save_CFLAGS"
20831 LIBS="$ac_save_LIBS"
20832 fi
20833 fi
20834 GLIB_CFLAGS=""
20835 GLIB_LIBS=""
20836 GLIB_GENMARSHAL=""
20837 GOBJECT_QUERY=""
20838 GLIB_MKENUMS=""
20839 { { echo "$as_me:$LINENO: error: glib >= 2.0 is needed" >&5
20840echo "$as_me: error: glib >= 2.0 is needed" >&2;}
20841 { (exit 1); exit 1; }; }
20842 fi
20843
20844
20845
20846
20847
20848 rm -f conf.glibtest
20849
20850
20851# gdk-pixbuf
20852# Check whether --enable-gtktest was given.
20853if test "${enable_gtktest+set}" = set; then
20854 enableval=$enable_gtktest;
20855else
20856 enable_gtktest=yes
20857fi
20858
20859
20860 pkg_config_args=gtk+-2.0
20861 for module in .
20862 do
20863 case "$module" in
20864 gthread)
20865 pkg_config_args="$pkg_config_args gthread-2.0"
20866 ;;
20867 esac
20868 done
20869
20870 no_gtk=""
20871
20872 # Extract the first word of "pkg-config", so it can be a program name with args.
20873set dummy pkg-config; ac_word=$2
20874{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20876if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20877 echo $ECHO_N "(cached) $ECHO_C" >&6
20878else
20879 case $PKG_CONFIG in
20880 [\\/]* | ?:[\\/]*)
20881 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20882 ;;
20883 *)
20884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20885for as_dir in $PATH
20886do
20887 IFS=$as_save_IFS
20888 test -z "$as_dir" && as_dir=.
20889 for ac_exec_ext in '' $ac_executable_extensions; do
20890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20891 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20893 break 2
20894 fi
20895done
20896done
20897IFS=$as_save_IFS
20898
20899 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20900 ;;
20901esac
20902fi
20903PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20904if test -n "$PKG_CONFIG"; then
20905 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20906echo "${ECHO_T}$PKG_CONFIG" >&6; }
20907else
20908 { echo "$as_me:$LINENO: result: no" >&5
20909echo "${ECHO_T}no" >&6; }
20910fi
20911
20912
20913
20914 if test x$PKG_CONFIG != xno ; then
20915 if pkg-config --atleast-pkgconfig-version 0.7 ; then
20916 :
20917 else
20918 echo "*** pkg-config too old; version 0.7 or better required."
20919 no_gtk=yes
20920 PKG_CONFIG=no
20921 fi
20922 else
20923 no_gtk=yes
20924 fi
20925
20926 min_gtk_version=2.0.0
20927 { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
20928echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
20929
20930 if test x$PKG_CONFIG != xno ; then
20931 ## don't try to run the test against uninstalled libtool libs
20932 if $PKG_CONFIG --uninstalled $pkg_config_args; then
20933 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
20934 enable_gtktest=no
20935 fi
20936
20937 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
20938 :
20939 else
20940 no_gtk=yes
20941 fi
20942 fi
20943
20944 if test x"$no_gtk" = x ; then
20945 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
20946 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
20947 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20948 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20949 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20950 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20951 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20952 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20953 if test "x$enable_gtktest" = "xyes" ; then
20954 ac_save_CFLAGS="$CFLAGS"
20955 ac_save_LIBS="$LIBS"
20956 CFLAGS="$CFLAGS $GTK_CFLAGS"
20957 LIBS="$GTK_LIBS $LIBS"
20958 rm -f conf.gtktest
20959 if test "$cross_compiling" = yes; then
20960 echo $ac_n "cross compiling; assumed OK... $ac_c"
20961else
20962 cat >conftest.$ac_ext <<_ACEOF
20963/* confdefs.h. */
20964_ACEOF
20965cat confdefs.h >>conftest.$ac_ext
20966cat >>conftest.$ac_ext <<_ACEOF
20967/* end confdefs.h. */
20968
20969#include <gtk/gtk.h>
20970#include <stdio.h>
20971#include <stdlib.h>
20972
20973int
20974main ()
20975{
20976 int major, minor, micro;
20977 char *tmp_version;
20978
20979 system ("touch conf.gtktest");
20980
20981 /* HP/UX 9 (%@#!) writes to sscanf strings */
20982 tmp_version = g_strdup("$min_gtk_version");
20983 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20984 printf("%s, bad version string\n", "$min_gtk_version");
20985 exit(1);
20986 }
20987
20988 if ((gtk_major_version != $gtk_config_major_version) ||
20989 (gtk_minor_version != $gtk_config_minor_version) ||
20990 (gtk_micro_version != $gtk_config_micro_version))
20991 {
20992 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
20993 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20994 gtk_major_version, gtk_minor_version, gtk_micro_version);
20995 printf ("*** was found! If pkg-config was correct, then it is best\n");
20996 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20997 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20998 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20999 printf("*** required on your system.\n");
21000 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
21001 printf("*** to point to the correct configuration files\n");
21002 }
21003 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21004 (gtk_minor_version != GTK_MINOR_VERSION) ||
21005 (gtk_micro_version != GTK_MICRO_VERSION))
21006 {
21007 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21008 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21009 printf("*** library (version %d.%d.%d)\n",
21010 gtk_major_version, gtk_minor_version, gtk_micro_version);
21011 }
21012 else
21013 {
21014 if ((gtk_major_version > major) ||
21015 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21016 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21017 {
21018 return 0;
21019 }
21020 else
21021 {
21022 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21023 gtk_major_version, gtk_minor_version, gtk_micro_version);
21024 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21025 major, minor, micro);
21026 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21027 printf("***\n");
21028 printf("*** If you have already installed a sufficiently new version, this error\n");
21029 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
21030 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21031 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
21032 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
21033 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21034 printf("*** so that the correct libraries are found at run-time))\n");
21035 }
21036 }
21037 return 1;
21038}
21039
21040_ACEOF
21041rm -f conftest$ac_exeext
21042if { (ac_try="$ac_link"
21043case "(($ac_try" in
21044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21045 *) ac_try_echo=$ac_try;;
21046esac
21047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21048 (eval "$ac_link") 2>&5
21049 ac_status=$?
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21052 { (case "(($ac_try" in
21053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21054 *) ac_try_echo=$ac_try;;
21055esac
21056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21057 (eval "$ac_try") 2>&5
21058 ac_status=$?
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); }; }; then
21061 :
21062else
21063 echo "$as_me: program exited with status $ac_status" >&5
21064echo "$as_me: failed program was:" >&5
21065sed 's/^/| /' conftest.$ac_ext >&5
21066
21067( exit $ac_status )
21068no_gtk=yes
21069fi
21070rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21071fi
21072
21073
21074 CFLAGS="$ac_save_CFLAGS"
21075 LIBS="$ac_save_LIBS"
21076 fi
21077 fi
21078 if test "x$no_gtk" = x ; then
21079 { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
21080echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
21081 have_gtk2=true
21082 else
21083 { echo "$as_me:$LINENO: result: no" >&5
21084echo "${ECHO_T}no" >&6; }
21085 if test "$PKG_CONFIG" = "no" ; then
21086 echo "*** A new enough version of pkg-config was not found."
21087 echo "*** See http://pkgconfig.sourceforge.net"
21088 else
21089 if test -f conf.gtktest ; then
21090 :
21091 else
21092 echo "*** Could not run GTK+ test program, checking why..."
21093 ac_save_CFLAGS="$CFLAGS"
21094 ac_save_LIBS="$LIBS"
21095 CFLAGS="$CFLAGS $GTK_CFLAGS"
21096 LIBS="$LIBS $GTK_LIBS"
21097 cat >conftest.$ac_ext <<_ACEOF
21098/* confdefs.h. */
21099_ACEOF
21100cat confdefs.h >>conftest.$ac_ext
21101cat >>conftest.$ac_ext <<_ACEOF
21102/* end confdefs.h. */
21103
21104#include <gtk/gtk.h>
21105#include <stdio.h>
21106
21107int
21108main ()
21109{
21110 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21111 ;
21112 return 0;
21113}
21114_ACEOF
21115rm -f conftest.$ac_objext conftest$ac_exeext
21116if { (ac_try="$ac_link"
21117case "(($ac_try" in
21118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21119 *) ac_try_echo=$ac_try;;
21120esac
21121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21122 (eval "$ac_link") 2>conftest.er1
21123 ac_status=$?
21124 grep -v '^ *+' conftest.er1 >conftest.err
21125 rm -f conftest.er1
21126 cat conftest.err >&5
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); } && {
21129 test -z "$ac_c_werror_flag" ||
21130 test ! -s conftest.err
21131 } && test -s conftest$ac_exeext &&
21132 $as_test_x conftest$ac_exeext; then
21133 echo "*** The test program compiled, but did not run. This usually means"
21134 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
21135 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
21136 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21137 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21138 echo "*** is required on your system"
21139 echo "***"
21140 echo "*** If you have an old version installed, it is best to remove it, although"
21141 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21142else
21143 echo "$as_me: failed program was:" >&5
21144sed 's/^/| /' conftest.$ac_ext >&5
21145
21146 echo "*** The test program failed to compile or link. See the file config.log for the"
21147 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
21148fi
21149
21150rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21151 conftest$ac_exeext conftest.$ac_ext
21152 CFLAGS="$ac_save_CFLAGS"
21153 LIBS="$ac_save_LIBS"
21154 fi
21155 fi
21156 GTK_CFLAGS=""
21157 GTK_LIBS=""
21158 :
21159 fi
21160
21161
21162 rm -f conf.gtktest
21163
21164if test "x$have_gtk2" = "xtrue" ; then
21165GDKPIXBUF_CFLAGS=$GTK_CFLAGS
21166GDKPIXBUF_LIBS=$GTK_LIBS
21167
21168
21169fi
21170 if test "x$have_gtk2" = "xtrue"; then
21171 HAVE_GDKPIXBUF_TRUE=
21172 HAVE_GDKPIXBUF_FALSE='#'
21173else
21174 HAVE_GDKPIXBUF_TRUE='#'
21175 HAVE_GDKPIXBUF_FALSE=
21176fi
21177
21178
21179# libxml2
21180
21181
21182# Check whether --with-xml-prefix was given.
21183if test "${with_xml_prefix+set}" = set; then
21184 withval=$with_xml_prefix; xml_config_prefix="$withval"
21185else
21186 xml_config_prefix=""
21187fi
21188
21189
21190# Check whether --with-xml-exec-prefix was given.
21191if test "${with_xml_exec_prefix+set}" = set; then
21192 withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
21193else
21194 xml_config_exec_prefix=""
21195fi
21196
21197# Check whether --enable-xmltest was given.
21198if test "${enable_xmltest+set}" = set; then
21199 enableval=$enable_xmltest;
21200else
21201 enable_xmltest=yes
21202fi
21203
21204
21205 if test x$xml_config_exec_prefix != x ; then
21206 xml_config_args="$xml_config_args"
21207 if test x${XML2_CONFIG+set} != xset ; then
21208 XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
21209 fi
21210 fi
21211 if test x$xml_config_prefix != x ; then
21212 xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
21213 if test x${XML2_CONFIG+set} != xset ; then
21214 XML2_CONFIG=$xml_config_prefix/bin/xml2-config
21215 fi
21216 fi
21217
21218 # Extract the first word of "xml2-config", so it can be a program name with args.
21219set dummy xml2-config; ac_word=$2
21220{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21222if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
21223 echo $ECHO_N "(cached) $ECHO_C" >&6
21224else
21225 case $XML2_CONFIG in
21226 [\\/]* | ?:[\\/]*)
21227 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
21228 ;;
21229 *)
21230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21231for as_dir in $PATH
21232do
21233 IFS=$as_save_IFS
21234 test -z "$as_dir" && as_dir=.
21235 for ac_exec_ext in '' $ac_executable_extensions; do
21236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21237 ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21239 break 2
21240 fi
21241done
21242done
21243IFS=$as_save_IFS
21244
21245 test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
21246 ;;
21247esac
21248fi
21249XML2_CONFIG=$ac_cv_path_XML2_CONFIG
21250if test -n "$XML2_CONFIG"; then
21251 { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
21252echo "${ECHO_T}$XML2_CONFIG" >&6; }
21253else
21254 { echo "$as_me:$LINENO: result: no" >&5
21255echo "${ECHO_T}no" >&6; }
21256fi
21257
21258
21259 min_xml_version=2.0.0
21260 { echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
21261echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; }
21262 no_xml=""
21263 if test "$XML2_CONFIG" = "no" ; then
21264 no_xml=yes
21265 else
21266 XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
21267 XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
21268 xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
21269 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21270 xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
21271 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21272 xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
21273 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21274 if test "x$enable_xmltest" = "xyes" ; then
21275 ac_save_CPPFLAGS="$CPPFLAGS"
21276 ac_save_LIBS="$LIBS"
21277 CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
21278 LIBS="$XML_LIBS $LIBS"
21279 rm -f conf.xmltest
21280 if test "$cross_compiling" = yes; then
21281 echo $ac_n "cross compiling; assumed OK... $ac_c"
21282else
21283 cat >conftest.$ac_ext <<_ACEOF
21284/* confdefs.h. */
21285_ACEOF
21286cat confdefs.h >>conftest.$ac_ext
21287cat >>conftest.$ac_ext <<_ACEOF
21288/* end confdefs.h. */
21289
21290#include <stdlib.h>
21291#include <stdio.h>
21292#include <string.h>
21293#include <libxml/xmlversion.h>
21294
21295int
21296main()
21297{
21298 int xml_major_version, xml_minor_version, xml_micro_version;
21299 int major, minor, micro;
21300 char *tmp_version;
21301
21302 system("touch conf.xmltest");
21303
21304 /* Capture xml2-config output via autoconf/configure variables */
21305 /* HP/UX 9 (%@#!) writes to sscanf strings */
21306 tmp_version = (char *)strdup("$min_xml_version");
21307 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21308 printf("%s, bad version string from xml2-config\n", "$min_xml_version");
21309 exit(1);
21310 }
21311 free(tmp_version);
21312
21313 /* Capture the version information from the header files */
21314 tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
21315 if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
21316 printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
21317 exit(1);
21318 }
21319 free(tmp_version);
21320
21321 /* Compare xml2-config output to the libxml headers */
21322 if ((xml_major_version != $xml_config_major_version) ||
21323 (xml_minor_version != $xml_config_minor_version) ||
21324 (xml_micro_version != $xml_config_micro_version))
21325 {
21326 printf("*** libxml header files (version %d.%d.%d) do not match\n",
21327 xml_major_version, xml_minor_version, xml_micro_version);
21328 printf("*** xml2-config (version %d.%d.%d)\n",
21329 $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
21330 return 1;
21331 }
21332/* Compare the headers to the library to make sure we match */
21333 /* Less than ideal -- doesn't provide us with return value feedback,
21334 * only exits if there's a serious mismatch between header and library.
21335 */
21336 LIBXML_TEST_VERSION;
21337
21338 /* Test that the library is greater than our minimum version */
21339 if ((xml_major_version > major) ||
21340 ((xml_major_version == major) && (xml_minor_version > minor)) ||
21341 ((xml_major_version == major) && (xml_minor_version == minor) &&
21342 (xml_micro_version >= micro)))
21343 {
21344 return 0;
21345 }
21346 else
21347 {
21348 printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
21349 xml_major_version, xml_minor_version, xml_micro_version);
21350 printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
21351 major, minor, micro);
21352 printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
21353 printf("***\n");
21354 printf("*** If you have already installed a sufficiently new version, this error\n");
21355 printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
21356 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21357 printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
21358 printf("*** correct copy of xml2-config. (In this case, you will have to\n");
21359 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21360 printf("*** so that the correct libraries are found at run-time))\n");
21361 }
21362 return 1;
21363}
21364
21365_ACEOF
21366rm -f conftest$ac_exeext
21367if { (ac_try="$ac_link"
21368case "(($ac_try" in
21369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21370 *) ac_try_echo=$ac_try;;
21371esac
21372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21373 (eval "$ac_link") 2>&5
21374 ac_status=$?
21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21377 { (case "(($ac_try" in
21378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21379 *) ac_try_echo=$ac_try;;
21380esac
21381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21382 (eval "$ac_try") 2>&5
21383 ac_status=$?
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); }; }; then
21386 :
21387else
21388 echo "$as_me: program exited with status $ac_status" >&5
21389echo "$as_me: failed program was:" >&5
21390sed 's/^/| /' conftest.$ac_ext >&5
21391
21392( exit $ac_status )
21393no_xml=yes
21394fi
21395rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21396fi
21397
21398
21399 CPPFLAGS="$ac_save_CPPFLAGS"
21400 LIBS="$ac_save_LIBS"
21401 fi
21402 fi
21403
21404 if test "x$no_xml" = x ; then
21405 { echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
21406echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
21407 have_libxml2=true
21408 else
21409 { echo "$as_me:$LINENO: result: no" >&5
21410echo "${ECHO_T}no" >&6; }
21411 if test "$XML2_CONFIG" = "no" ; then
21412 echo "*** The xml2-config script installed by LIBXML could not be found"
21413 echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
21414 echo "*** your path, or set the XML2_CONFIG environment variable to the"
21415 echo "*** full path to xml2-config."
21416 else
21417 if test -f conf.xmltest ; then
21418 :
21419 else
21420 echo "*** Could not run libxml test program, checking why..."
21421 CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
21422 LIBS="$LIBS $XML_LIBS"
21423 cat >conftest.$ac_ext <<_ACEOF
21424/* confdefs.h. */
21425_ACEOF
21426cat confdefs.h >>conftest.$ac_ext
21427cat >>conftest.$ac_ext <<_ACEOF
21428/* end confdefs.h. */
21429
21430#include <libxml/xmlversion.h>
21431#include <stdio.h>
21432
21433int
21434main ()
21435{
21436 LIBXML_TEST_VERSION; return 0;
21437 ;
21438 return 0;
21439}
21440_ACEOF
21441rm -f conftest.$ac_objext conftest$ac_exeext
21442if { (ac_try="$ac_link"
21443case "(($ac_try" in
21444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21445 *) ac_try_echo=$ac_try;;
21446esac
21447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21448 (eval "$ac_link") 2>conftest.er1
21449 ac_status=$?
21450 grep -v '^ *+' conftest.er1 >conftest.err
21451 rm -f conftest.er1
21452 cat conftest.err >&5
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); } && {
21455 test -z "$ac_c_werror_flag" ||
21456 test ! -s conftest.err
21457 } && test -s conftest$ac_exeext &&
21458 $as_test_x conftest$ac_exeext; then
21459 echo "*** The test program compiled, but did not run. This usually means"
21460 echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
21461 echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
21462 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21463 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21464 echo "*** is required on your system"
21465 echo "***"
21466 echo "*** If you have an old version installed, it is best to remove it, although"
21467 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21468else
21469 echo "$as_me: failed program was:" >&5
21470sed 's/^/| /' conftest.$ac_ext >&5
21471
21472 echo "*** The test program failed to compile or link. See the file config.log for the"
21473 echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
21474 echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
21475 echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
21476fi
21477
21478rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21479 conftest$ac_exeext conftest.$ac_ext
21480 CPPFLAGS="$ac_save_CPPFLAGS"
21481 LIBS="$ac_save_LIBS"
21482 fi
21483 fi
21484
21485 XML_CPPFLAGS=""
21486 XML_LIBS=""
21487 :
21488 fi
21489
21490
21491 rm -f conf.xmltest
21492
21493if test "x$have_libxml2" = "xtrue" ; then
21494LIBXML2_CFLAGS=$XML_CPPFLAGS
21495LIBXML2_LIBS=$XML_LIBS
21496
21497
21498fi
21499 if test "x$have_libxml2" = "xtrue"; then
21500 HAVE_LIBXML2_TRUE=
21501 HAVE_LIBXML2_FALSE='#'
21502else
21503 HAVE_LIBXML2_TRUE='#'
21504 HAVE_LIBXML2_FALSE=
21505fi
21506
21507
21508# libgsf
21509
21510pkg_failed=no
21511{ echo "$as_me:$LINENO: checking for LIBGSF" >&5
21512echo $ECHO_N "checking for LIBGSF... $ECHO_C" >&6; }
21513
21514if test -n "$PKG_CONFIG"; then
21515 if test -n "$LIBGSF_CFLAGS"; then
21516 pkg_cv_LIBGSF_CFLAGS="$LIBGSF_CFLAGS"
21517 else
21518 if test -n "$PKG_CONFIG" && \
21519 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgsf-1 >= 1.0.0\"") >&5
21520 ($PKG_CONFIG --exists --print-errors "libgsf-1 >= 1.0.0") 2>&5
21521 ac_status=$?
21522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523 (exit $ac_status); }; then
21524 pkg_cv_LIBGSF_CFLAGS=`$PKG_CONFIG --cflags "libgsf-1 >= 1.0.0" 2>/dev/null`
21525else
21526 pkg_failed=yes
21527fi
21528 fi
21529else
21530 pkg_failed=untried
21531fi
21532if test -n "$PKG_CONFIG"; then
21533 if test -n "$LIBGSF_LIBS"; then
21534 pkg_cv_LIBGSF_LIBS="$LIBGSF_LIBS"
21535 else
21536 if test -n "$PKG_CONFIG" && \
21537 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgsf-1 >= 1.0.0\"") >&5
21538 ($PKG_CONFIG --exists --print-errors "libgsf-1 >= 1.0.0") 2>&5
21539 ac_status=$?
21540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541 (exit $ac_status); }; then
21542 pkg_cv_LIBGSF_LIBS=`$PKG_CONFIG --libs "libgsf-1 >= 1.0.0" 2>/dev/null`
21543else
21544 pkg_failed=yes
21545fi
21546 fi
21547else
21548 pkg_failed=untried
21549fi
21550
21551
21552
21553if test $pkg_failed = yes; then
21554
21555if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21556 _pkg_short_errors_supported=yes
21557else
21558 _pkg_short_errors_supported=no
21559fi
21560 if test $_pkg_short_errors_supported = yes; then
21561 LIBGSF_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgsf-1 >= 1.0.0"`
21562 else
21563 LIBGSF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgsf-1 >= 1.0.0"`
21564 fi
21565 # Put the nasty error message in config.log where it belongs
21566 echo "$LIBGSF_PKG_ERRORS" >&5
21567
21568 { echo "$as_me:$LINENO: result: no" >&5
21569echo "${ECHO_T}no" >&6; }
21570 have_libgsf=false
21571elif test $pkg_failed = untried; then
21572 have_libgsf=false
21573else
21574 LIBGSF_CFLAGS=$pkg_cv_LIBGSF_CFLAGS
21575 LIBGSF_LIBS=$pkg_cv_LIBGSF_LIBS
21576 { echo "$as_me:$LINENO: result: yes" >&5
21577echo "${ECHO_T}yes" >&6; }
21578 have_libgsf=true
21579fi
21580if test "x$have_libgsf" = "xtrue" ; then
21581
21582cat >>confdefs.h <<\_ACEOF
21583#define HAVE_LIBGSF 1
21584_ACEOF
21585
21586fi
21587 if test "x$have_libgsf" = "xtrue"; then
21588 HAVE_LIBGSF_TRUE=
21589 HAVE_LIBGSF_FALSE='#'
21590else
21591 HAVE_LIBGSF_TRUE='#'
21592 HAVE_LIBGSF_FALSE=
21593fi
21594
21595
21596# libmagic
21597# Check whether --enable-libmagic was given.
21598if test "${enable_libmagic+set}" = set; then
21599 enableval=$enable_libmagic; if test "$enableval" = "no" ; then disable_libmagic=true ; fi
21600fi
21601
21602if test "x$disable_libmagic" != "xtrue" ; then
21603if test "${ac_cv_header_magic_h+set}" = set; then
21604 { echo "$as_me:$LINENO: checking for magic.h" >&5
21605echo $ECHO_N "checking for magic.h... $ECHO_C" >&6; }
21606if test "${ac_cv_header_magic_h+set}" = set; then
21607 echo $ECHO_N "(cached) $ECHO_C" >&6
21608fi
21609{ echo "$as_me:$LINENO: result: $ac_cv_header_magic_h" >&5
21610echo "${ECHO_T}$ac_cv_header_magic_h" >&6; }
21611else
21612 # Is the header compilable?
21613{ echo "$as_me:$LINENO: checking magic.h usability" >&5
21614echo $ECHO_N "checking magic.h usability... $ECHO_C" >&6; }
21615cat >conftest.$ac_ext <<_ACEOF
21616/* confdefs.h. */
21617_ACEOF
21618cat confdefs.h >>conftest.$ac_ext
21619cat >>conftest.$ac_ext <<_ACEOF
21620/* end confdefs.h. */
21621$ac_includes_default
21622#include <magic.h>
21623_ACEOF
21624rm -f conftest.$ac_objext
21625if { (ac_try="$ac_compile"
21626case "(($ac_try" in
21627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21628 *) ac_try_echo=$ac_try;;
21629esac
21630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21631 (eval "$ac_compile") 2>conftest.er1
21632 ac_status=$?
21633 grep -v '^ *+' conftest.er1 >conftest.err
21634 rm -f conftest.er1
21635 cat conftest.err >&5
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); } && {
21638 test -z "$ac_c_werror_flag" ||
21639 test ! -s conftest.err
21640 } && test -s conftest.$ac_objext; then
21641 ac_header_compiler=yes
21642else
21643 echo "$as_me: failed program was:" >&5
21644sed 's/^/| /' conftest.$ac_ext >&5
21645
21646 ac_header_compiler=no
21647fi
21648
21649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21650{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21651echo "${ECHO_T}$ac_header_compiler" >&6; }
21652
21653# Is the header present?
21654{ echo "$as_me:$LINENO: checking magic.h presence" >&5
21655echo $ECHO_N "checking magic.h presence... $ECHO_C" >&6; }
21656cat >conftest.$ac_ext <<_ACEOF
21657/* confdefs.h. */
21658_ACEOF
21659cat confdefs.h >>conftest.$ac_ext
21660cat >>conftest.$ac_ext <<_ACEOF
21661/* end confdefs.h. */
21662#include <magic.h>
21663_ACEOF
21664if { (ac_try="$ac_cpp conftest.$ac_ext"
21665case "(($ac_try" in
21666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21667 *) ac_try_echo=$ac_try;;
21668esac
21669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21671 ac_status=$?
21672 grep -v '^ *+' conftest.er1 >conftest.err
21673 rm -f conftest.er1
21674 cat conftest.err >&5
21675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676 (exit $ac_status); } >/dev/null && {
21677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21678 test ! -s conftest.err
21679 }; then
21680 ac_header_preproc=yes
21681else
21682 echo "$as_me: failed program was:" >&5
21683sed 's/^/| /' conftest.$ac_ext >&5
21684
21685 ac_header_preproc=no
21686fi
21687
21688rm -f conftest.err conftest.$ac_ext
21689{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21690echo "${ECHO_T}$ac_header_preproc" >&6; }
21691
21692# So? What about this header?
21693case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21694 yes:no: )
21695 { echo "$as_me:$LINENO: WARNING: magic.h: accepted by the compiler, rejected by the preprocessor!" >&5
21696echo "$as_me: WARNING: magic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21697 { echo "$as_me:$LINENO: WARNING: magic.h: proceeding with the compiler's result" >&5
21698echo "$as_me: WARNING: magic.h: proceeding with the compiler's result" >&2;}
21699 ac_header_preproc=yes
21700 ;;
21701 no:yes:* )
21702 { echo "$as_me:$LINENO: WARNING: magic.h: present but cannot be compiled" >&5
21703echo "$as_me: WARNING: magic.h: present but cannot be compiled" >&2;}
21704 { echo "$as_me:$LINENO: WARNING: magic.h: check for missing prerequisite headers?" >&5
21705echo "$as_me: WARNING: magic.h: check for missing prerequisite headers?" >&2;}
21706 { echo "$as_me:$LINENO: WARNING: magic.h: see the Autoconf documentation" >&5
21707echo "$as_me: WARNING: magic.h: see the Autoconf documentation" >&2;}
21708 { echo "$as_me:$LINENO: WARNING: magic.h: section \"Present But Cannot Be Compiled\"" >&5
21709echo "$as_me: WARNING: magic.h: section \"Present But Cannot Be Compiled\"" >&2;}
21710 { echo "$as_me:$LINENO: WARNING: magic.h: proceeding with the preprocessor's result" >&5
21711echo "$as_me: WARNING: magic.h: proceeding with the preprocessor's result" >&2;}
21712 { echo "$as_me:$LINENO: WARNING: magic.h: in the future, the compiler will take precedence" >&5
21713echo "$as_me: WARNING: magic.h: in the future, the compiler will take precedence" >&2;}
21714
21715 ;;
21716esac
21717{ echo "$as_me:$LINENO: checking for magic.h" >&5
21718echo $ECHO_N "checking for magic.h... $ECHO_C" >&6; }
21719if test "${ac_cv_header_magic_h+set}" = set; then
21720 echo $ECHO_N "(cached) $ECHO_C" >&6
21721else
21722 ac_cv_header_magic_h=$ac_header_preproc
21723fi
21724{ echo "$as_me:$LINENO: result: $ac_cv_header_magic_h" >&5
21725echo "${ECHO_T}$ac_cv_header_magic_h" >&6; }
21726
21727fi
21728if test $ac_cv_header_magic_h = yes; then
21729 have_magic_h=true
21730fi
21731
21732
21733{ echo "$as_me:$LINENO: checking for magic_open in -lmagic" >&5
21734echo $ECHO_N "checking for magic_open in -lmagic... $ECHO_C" >&6; }
21735if test "${ac_cv_lib_magic_magic_open+set}" = set; then
21736 echo $ECHO_N "(cached) $ECHO_C" >&6
21737else
21738 ac_check_lib_save_LIBS=$LIBS
21739LIBS="-lmagic $LIBS"
21740cat >conftest.$ac_ext <<_ACEOF
21741/* confdefs.h. */
21742_ACEOF
21743cat confdefs.h >>conftest.$ac_ext
21744cat >>conftest.$ac_ext <<_ACEOF
21745/* end confdefs.h. */
21746
21747/* Override any GCC internal prototype to avoid an error.
21748 Use char because int might match the return type of a GCC
21749 builtin and then its argument prototype would still apply. */
21750#ifdef __cplusplus
21751extern "C"
21752#endif
21753char magic_open ();
21754int
21755main ()
21756{
21757return magic_open ();
21758 ;
21759 return 0;
21760}
21761_ACEOF
21762rm -f conftest.$ac_objext conftest$ac_exeext
21763if { (ac_try="$ac_link"
21764case "(($ac_try" in
21765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21766 *) ac_try_echo=$ac_try;;
21767esac
21768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21769 (eval "$ac_link") 2>conftest.er1
21770 ac_status=$?
21771 grep -v '^ *+' conftest.er1 >conftest.err
21772 rm -f conftest.er1
21773 cat conftest.err >&5
21774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775 (exit $ac_status); } && {
21776 test -z "$ac_c_werror_flag" ||
21777 test ! -s conftest.err
21778 } && test -s conftest$ac_exeext &&
21779 $as_test_x conftest$ac_exeext; then
21780 ac_cv_lib_magic_magic_open=yes
21781else
21782 echo "$as_me: failed program was:" >&5
21783sed 's/^/| /' conftest.$ac_ext >&5
21784
21785 ac_cv_lib_magic_magic_open=no
21786fi
21787
21788rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21789 conftest$ac_exeext conftest.$ac_ext
21790LIBS=$ac_check_lib_save_LIBS
21791fi
21792{ echo "$as_me:$LINENO: result: $ac_cv_lib_magic_magic_open" >&5
21793echo "${ECHO_T}$ac_cv_lib_magic_magic_open" >&6; }
21794if test $ac_cv_lib_magic_magic_open = yes; then
21795 have_magic_open=true
21796fi
21797
21798if test "x$have_magic_h" = "xtrue" && test "x$have_magic_open" = "xtrue"; then
21799have_libmagic=true
21800
21801cat >>confdefs.h <<\_ACEOF
21802#define USE_LIBMAGIC 1
21803_ACEOF
21804
21805
21806 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
21807 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21808 ac_define_dir=`eval echo $libdir/$PACKAGE/libg3d.magic`
21809 ac_define_dir=`eval echo $ac_define_dir`
21810
21811cat >>confdefs.h <<_ACEOF
21812#define MAGIC_FILENAME "$ac_define_dir"
21813_ACEOF
21814
21815
21816MAGIC_LIBS=-lmagic
21817fi
21818fi
21819
21820#AM_CONDITIONAL([USE_LIBMAGIC], test "x$have_libmagic" = "xtrue")
21821
21822# libm
21823
21824{ echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
21825echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
21826if test "${ac_cv_lib_m_sqrt+set}" = set; then
21827 echo $ECHO_N "(cached) $ECHO_C" >&6
21828else
21829 ac_check_lib_save_LIBS=$LIBS
21830LIBS="-lm $LIBS"
21831cat >conftest.$ac_ext <<_ACEOF
21832/* confdefs.h. */
21833_ACEOF
21834cat confdefs.h >>conftest.$ac_ext
21835cat >>conftest.$ac_ext <<_ACEOF
21836/* end confdefs.h. */
21837
21838/* Override any GCC internal prototype to avoid an error.
21839 Use char because int might match the return type of a GCC
21840 builtin and then its argument prototype would still apply. */
21841#ifdef __cplusplus
21842extern "C"
21843#endif
21844char sqrt ();
21845int
21846main ()
21847{
21848return sqrt ();
21849 ;
21850 return 0;
21851}
21852_ACEOF
21853rm -f conftest.$ac_objext conftest$ac_exeext
21854if { (ac_try="$ac_link"
21855case "(($ac_try" in
21856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21857 *) ac_try_echo=$ac_try;;
21858esac
21859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21860 (eval "$ac_link") 2>conftest.er1
21861 ac_status=$?
21862 grep -v '^ *+' conftest.er1 >conftest.err
21863 rm -f conftest.er1
21864 cat conftest.err >&5
21865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866 (exit $ac_status); } && {
21867 test -z "$ac_c_werror_flag" ||
21868 test ! -s conftest.err
21869 } && test -s conftest$ac_exeext &&
21870 $as_test_x conftest$ac_exeext; then
21871 ac_cv_lib_m_sqrt=yes
21872else
21873 echo "$as_me: failed program was:" >&5
21874sed 's/^/| /' conftest.$ac_ext >&5
21875
21876 ac_cv_lib_m_sqrt=no
21877fi
21878
21879rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21880 conftest$ac_exeext conftest.$ac_ext
21881LIBS=$ac_check_lib_save_LIBS
21882fi
21883{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
21884echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
21885if test $ac_cv_lib_m_sqrt = yes; then
21886 cat >>confdefs.h <<_ACEOF
21887#define HAVE_LIBM 1
21888_ACEOF
21889
21890 LIBS="-lm $LIBS"
21891
21892else
21893 { { echo "$as_me:$LINENO: error: requires math library" >&5
21894echo "$as_me: error: requires math library" >&2;}
21895 { (exit 1); exit 1; }; }
21896fi
21897
21898MATH_LIBS=-lm
21899
21900
21901# zlib
21902Z_DIR= Z_LIBS= Z_CFLAGS=
21903
21904# Check whether --with-zlib was given.
21905if test "${with_zlib+set}" = set; then
21906 withval=$with_zlib; case $withval in
21907 yes|no) ;;
21908 *) Z_DIR=$withval
21909 CPPFLAGS="${CPPFLAGS} -I$withval/include"
21910 LDFLAGS="${LDFLAGS} -L$withval/lib"
21911 ;;
21912 esac
21913fi
21914
21915if test "x$with_zlib" != xno; then
21916 with_zlib=no
21917 if test "${ac_cv_header_zlib_h+set}" = set; then
21918 { echo "$as_me:$LINENO: checking for zlib.h" >&5
21919echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
21920if test "${ac_cv_header_zlib_h+set}" = set; then
21921 echo $ECHO_N "(cached) $ECHO_C" >&6
21922fi
21923{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21924echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
21925else
21926 # Is the header compilable?
21927{ echo "$as_me:$LINENO: checking zlib.h usability" >&5
21928echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
21929cat >conftest.$ac_ext <<_ACEOF
21930/* confdefs.h. */
21931_ACEOF
21932cat confdefs.h >>conftest.$ac_ext
21933cat >>conftest.$ac_ext <<_ACEOF
21934/* end confdefs.h. */
21935$ac_includes_default
21936#include <zlib.h>
21937_ACEOF
21938rm -f conftest.$ac_objext
21939if { (ac_try="$ac_compile"
21940case "(($ac_try" in
21941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21942 *) ac_try_echo=$ac_try;;
21943esac
21944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21945 (eval "$ac_compile") 2>conftest.er1
21946 ac_status=$?
21947 grep -v '^ *+' conftest.er1 >conftest.err
21948 rm -f conftest.er1
21949 cat conftest.err >&5
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); } && {
21952 test -z "$ac_c_werror_flag" ||
21953 test ! -s conftest.err
21954 } && test -s conftest.$ac_objext; then
21955 ac_header_compiler=yes
21956else
21957 echo "$as_me: failed program was:" >&5
21958sed 's/^/| /' conftest.$ac_ext >&5
21959
21960 ac_header_compiler=no
21961fi
21962
21963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21964{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21965echo "${ECHO_T}$ac_header_compiler" >&6; }
21966
21967# Is the header present?
21968{ echo "$as_me:$LINENO: checking zlib.h presence" >&5
21969echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
21970cat >conftest.$ac_ext <<_ACEOF
21971/* confdefs.h. */
21972_ACEOF
21973cat confdefs.h >>conftest.$ac_ext
21974cat >>conftest.$ac_ext <<_ACEOF
21975/* end confdefs.h. */
21976#include <zlib.h>
21977_ACEOF
21978if { (ac_try="$ac_cpp conftest.$ac_ext"
21979case "(($ac_try" in
21980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21981 *) ac_try_echo=$ac_try;;
21982esac
21983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21985 ac_status=$?
21986 grep -v '^ *+' conftest.er1 >conftest.err
21987 rm -f conftest.er1
21988 cat conftest.err >&5
21989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990 (exit $ac_status); } >/dev/null && {
21991 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21992 test ! -s conftest.err
21993 }; then
21994 ac_header_preproc=yes
21995else
21996 echo "$as_me: failed program was:" >&5
21997sed 's/^/| /' conftest.$ac_ext >&5
21998
21999 ac_header_preproc=no
22000fi
22001
22002rm -f conftest.err conftest.$ac_ext
22003{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22004echo "${ECHO_T}$ac_header_preproc" >&6; }
22005
22006# So? What about this header?
22007case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22008 yes:no: )
22009 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22010echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22011 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22012echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22013 ac_header_preproc=yes
22014 ;;
22015 no:yes:* )
22016 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22017echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
22018 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
22019echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
22020 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22021echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22022 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
22023echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
22024 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22025echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
22026 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22027echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
22028
22029 ;;
22030esac
22031{ echo "$as_me:$LINENO: checking for zlib.h" >&5
22032echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
22033if test "${ac_cv_header_zlib_h+set}" = set; then
22034 echo $ECHO_N "(cached) $ECHO_C" >&6
22035else
22036 ac_cv_header_zlib_h=$ac_header_preproc
22037fi
22038{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22039echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
22040
22041fi
22042if test $ac_cv_header_zlib_h = yes; then
22043 { echo "$as_me:$LINENO: checking for gzread in -lz" >&5
22044echo $ECHO_N "checking for gzread in -lz... $ECHO_C" >&6; }
22045if test "${ac_cv_lib_z_gzread+set}" = set; then
22046 echo $ECHO_N "(cached) $ECHO_C" >&6
22047else
22048 ac_check_lib_save_LIBS=$LIBS
22049LIBS="-lz $LIBS"
22050cat >conftest.$ac_ext <<_ACEOF
22051/* confdefs.h. */
22052_ACEOF
22053cat confdefs.h >>conftest.$ac_ext
22054cat >>conftest.$ac_ext <<_ACEOF
22055/* end confdefs.h. */
22056
22057/* Override any GCC internal prototype to avoid an error.
22058 Use char because int might match the return type of a GCC
22059 builtin and then its argument prototype would still apply. */
22060#ifdef __cplusplus
22061extern "C"
22062#endif
22063char gzread ();
22064int
22065main ()
22066{
22067return gzread ();
22068 ;
22069 return 0;
22070}
22071_ACEOF
22072rm -f conftest.$ac_objext conftest$ac_exeext
22073if { (ac_try="$ac_link"
22074case "(($ac_try" in
22075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22076 *) ac_try_echo=$ac_try;;
22077esac
22078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22079 (eval "$ac_link") 2>conftest.er1
22080 ac_status=$?
22081 grep -v '^ *+' conftest.er1 >conftest.err
22082 rm -f conftest.er1
22083 cat conftest.err >&5
22084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085 (exit $ac_status); } && {
22086 test -z "$ac_c_werror_flag" ||
22087 test ! -s conftest.err
22088 } && test -s conftest$ac_exeext &&
22089 $as_test_x conftest$ac_exeext; then
22090 ac_cv_lib_z_gzread=yes
22091else
22092 echo "$as_me: failed program was:" >&5
22093sed 's/^/| /' conftest.$ac_ext >&5
22094
22095 ac_cv_lib_z_gzread=no
22096fi
22097
22098rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22099 conftest$ac_exeext conftest.$ac_ext
22100LIBS=$ac_check_lib_save_LIBS
22101fi
22102{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzread" >&5
22103echo "${ECHO_T}$ac_cv_lib_z_gzread" >&6; }
22104if test $ac_cv_lib_z_gzread = yes; then
22105 with_zlib=yes
22106fi
22107
22108fi
22109
22110
22111fi
22112if test "x$Z_DIR" != "x"; then
22113 Z_CFLAGS="-I$Z_DIR/include"
22114 Z_LIBS="-L$Z_DIR/lib -lz"
22115else
22116 Z_LIBS="-lz"
22117fi
22118
22119
22120if test "$with_zlib" = "yes"; then
22121
22122cat >>confdefs.h <<\_ACEOF
22123#define HAVE_ZLIB 1
22124_ACEOF
22125
22126fi
22127 if test "$with_zlib" = "yes"; then
22128 HAVE_ZLIB_TRUE=
22129 HAVE_ZLIB_FALSE='#'
22130else
22131 HAVE_ZLIB_TRUE='#'
22132 HAVE_ZLIB_FALSE=
22133fi
22134
22135
22136# Debug level (verbosity & optimization)
22137{ echo "$as_me:$LINENO: checking for debug level" >&5
22138echo $ECHO_N "checking for debug level... $ECHO_C" >&6; }
22139# Check whether --enable-debug was given.
22140if test "${enable_debug+set}" = set; then
22141 enableval=$enable_debug; if test "$enableval" = "yes" ; then DEBUG=1; else DEBUG=$enableval; fi
22142else
22143 DEBUG=0
22144fi
22145
22146{ echo "$as_me:$LINENO: result: $DEBUG" >&5
22147echo "${ECHO_T}$DEBUG" >&6; }
22148
22149
22150# Check whether --enable-experimental was given.
22151if test "${enable_experimental+set}" = set; then
22152 enableval=$enable_experimental; if test "x$enableval" = "xyes" ; then experimental=1
22153 else experimental=0; fi
22154else
22155 experimental=0
22156fi
22157
22158 if test "x$experimental" = "x1"; then
22159 EXPERIMENTAL_TRUE=
22160 EXPERIMENTAL_FALSE='#'
22161else
22162 EXPERIMENTAL_TRUE='#'
22163 EXPERIMENTAL_FALSE=
22164fi
22165
22166
22167# Check whether --enable-cxxtest was given.
22168if test "${enable_cxxtest+set}" = set; then
22169 enableval=$enable_cxxtest; if test "x$enableval" = "xyes" ; then cxxtest=1 else cxxtest=0; fi
22170else
22171 cxxtest=0
22172fi
22173
22174 if test "x$cxxtest" = "x1"; then
22175 HAVE_CXX_TRUE=
22176 HAVE_CXX_FALSE='#'
22177else
22178 HAVE_CXX_TRUE='#'
22179 HAVE_CXX_FALSE=
22180fi
22181
22182
22183# Check whether --enable-profile was given.
22184if test "${enable_profile+set}" = set; then
22185 enableval=$enable_profile; if test "x$enableval" = "xyes" ; then profile="-pg"
22186 else profile=""; fi
22187else
22188 profile=""
22189fi
22190
22191
22192if test "$DEBUG" = "0"; then
22193 DBG_CFLAGS="-O2 $profile"
22194else
22195 DBG_CFLAGS="-g $profile"
22196fi
22197
22198
22199# plugin directories
22200
22201 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
22202 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22203 ac_define_dir=`eval echo $libdir/$PACKAGE/plugins`
22204 ac_define_dir=`eval echo $ac_define_dir`
22205
22206cat >>confdefs.h <<_ACEOF
22207#define PLUGIN_DIR "$ac_define_dir"
22208_ACEOF
22209
22210
22211
22212PLUGINS_LDFLAGS="-avoid-version -export-dynamic"
22213
22214
22215ac_config_files="$ac_config_files Makefile doc/Makefile doc/api/Makefile doc/support_matrix/Makefile include/Makefile include/g3d/Makefile m4/Makefile plugins/Makefile plugins/image/Makefile plugins/import/Makefile plugins/import/imp_3dm/Makefile plugins/import/imp_3dmf/Makefile plugins/import/imp_3ds/Makefile plugins/import/imp_ac3d/Makefile plugins/import/imp_acf/Makefile plugins/import/imp_ar/Makefile plugins/import/imp_ase/Makefile plugins/import/imp_blend/Makefile plugins/import/imp_c4d/Makefile plugins/import/imp_cob/Makefile plugins/import/imp_dae/Makefile plugins/import/imp_dpm/Makefile plugins/import/imp_dxf/Makefile plugins/import/imp_flt/Makefile plugins/import/imp_glb/Makefile plugins/import/imp_heightfield/Makefile plugins/import/imp_iob/Makefile plugins/import/imp_joe/Makefile plugins/import/imp_kmz/Makefile plugins/import/imp_ldraw/Makefile plugins/import/imp_leocad/Makefile plugins/import/imp_lwo/Makefile plugins/import/imp_max/Makefile plugins/import/imp_maya/Makefile plugins/import/imp_md2/Makefile plugins/import/imp_md3/Makefile plugins/import/imp_nff/Makefile plugins/import/imp_obj/Makefile plugins/import/imp_osm/Makefile plugins/import/imp_q3o/Makefile plugins/import/imp_r4/Makefile plugins/import/imp_rbh/Makefile plugins/import/imp_skp/Makefile plugins/import/imp_stl/Makefile plugins/import/imp_ta/Makefile plugins/import/imp_test/Makefile plugins/import/imp_vrml/Makefile plugins/import/imp_vrml2/Makefile src/Makefile programs/Makefile tests/Makefile libg3d.pc"
22216
22217cat >confcache <<\_ACEOF
22218# This file is a shell script that caches the results of configure
22219# tests run on this system so they can be shared between configure
22220# scripts and configure runs, see configure's option --config-cache.
22221# It is not useful on other systems. If it contains results you don't
22222# want to keep, you may remove or edit it.
22223#
22224# config.status only pays attention to the cache file if you give it
22225# the --recheck option to rerun configure.
22226#
22227# `ac_cv_env_foo' variables (set or unset) will be overridden when
22228# loading this file, other *unset* `ac_cv_foo' will be assigned the
22229# following values.
22230
22231_ACEOF
22232
22233# The following way of writing the cache mishandles newlines in values,
22234# but we know of no workaround that is simple, portable, and efficient.
22235# So, we kill variables containing newlines.
22236# Ultrix sh set writes to stderr and can't be redirected directly,
22237# and sets the high bit in the cache file unless we assign to the vars.
22238(
22239 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22240 eval ac_val=\$$ac_var
22241 case $ac_val in #(
22242 *${as_nl}*)
22243 case $ac_var in #(
22244 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22245echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22246 esac
22247 case $ac_var in #(
22248 _ | IFS | as_nl) ;; #(
22249 *) $as_unset $ac_var ;;
22250 esac ;;
22251 esac
22252 done
22253
22254 (set) 2>&1 |
22255 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22256 *${as_nl}ac_space=\ *)
22257 # `set' does not quote correctly, so add quotes (double-quote
22258 # substitution turns \\\\ into \\, and sed turns \\ into \).
22259 sed -n \
22260 "s/'/'\\\\''/g;
22261 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22262 ;; #(
22263 *)
22264 # `set' quotes correctly as required by POSIX, so do not add quotes.
22265 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22266 ;;
22267 esac |
22268 sort
22269) |
22270 sed '
22271 /^ac_cv_env_/b end
22272 t clear
22273 :clear
22274 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22275 t end
22276 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22277 :end' >>confcache
22278if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22279 if test -w "$cache_file"; then
22280 test "x$cache_file" != "x/dev/null" &&
22281 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22282echo "$as_me: updating cache $cache_file" >&6;}
22283 cat confcache >$cache_file
22284 else
22285 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22286echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22287 fi
22288fi
22289rm -f confcache
22290
22291test "x$prefix" = xNONE && prefix=$ac_default_prefix
22292# Let make expand exec_prefix.
22293test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22294
22295DEFS=-DHAVE_CONFIG_H
22296
22297ac_libobjs=
22298ac_ltlibobjs=
22299for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22300 # 1. Remove the extension, and $U if already installed.
22301 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22302 ac_i=`echo "$ac_i" | sed "$ac_script"`
22303 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22304 # will be set to the directory where LIBOBJS objects are built.
22305 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22306 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22307done
22308LIBOBJS=$ac_libobjs
22309
22310LTLIBOBJS=$ac_ltlibobjs
22311
22312
22313if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22314 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22315Usually this means the macro was only invoked conditionally." >&5
22316echo "$as_me: error: conditional \"AMDEP\" was never defined.
22317Usually this means the macro was only invoked conditionally." >&2;}
22318 { (exit 1); exit 1; }; }
22319fi
22320if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22321 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22322Usually this means the macro was only invoked conditionally." >&5
22323echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22324Usually this means the macro was only invoked conditionally." >&2;}
22325 { (exit 1); exit 1; }; }
22326fi
22327if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
22328 { { echo "$as_me:$LINENO: error: conditional \"OS_WIN32\" was never defined.
22329Usually this means the macro was only invoked conditionally." >&5
22330echo "$as_me: error: conditional \"OS_WIN32\" was never defined.
22331Usually this means the macro was only invoked conditionally." >&2;}
22332 { (exit 1); exit 1; }; }
22333fi
22334if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22335 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22336Usually this means the macro was only invoked conditionally." >&5
22337echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22338Usually this means the macro was only invoked conditionally." >&2;}
22339 { (exit 1); exit 1; }; }
22340fi
22341if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
22342 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
22343Usually this means the macro was only invoked conditionally." >&5
22344echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
22345Usually this means the macro was only invoked conditionally." >&2;}
22346 { (exit 1); exit 1; }; }
22347fi
22348if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
22349 { { echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
22350Usually this means the macro was only invoked conditionally." >&5
22351echo "$as_me: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
22352Usually this means the macro was only invoked conditionally." >&2;}
22353 { (exit 1); exit 1; }; }
22354fi
22355if test -z "${HAVE_GDKPIXBUF_TRUE}" && test -z "${HAVE_GDKPIXBUF_FALSE}"; then
22356 { { echo "$as_me:$LINENO: error: conditional \"HAVE_GDKPIXBUF\" was never defined.
22357Usually this means the macro was only invoked conditionally." >&5
22358echo "$as_me: error: conditional \"HAVE_GDKPIXBUF\" was never defined.
22359Usually this means the macro was only invoked conditionally." >&2;}
22360 { (exit 1); exit 1; }; }
22361fi
22362if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
22363 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBXML2\" was never defined.
22364Usually this means the macro was only invoked conditionally." >&5
22365echo "$as_me: error: conditional \"HAVE_LIBXML2\" was never defined.
22366Usually this means the macro was only invoked conditionally." >&2;}
22367 { (exit 1); exit 1; }; }
22368fi
22369if test -z "${HAVE_LIBGSF_TRUE}" && test -z "${HAVE_LIBGSF_FALSE}"; then
22370 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBGSF\" was never defined.
22371Usually this means the macro was only invoked conditionally." >&5
22372echo "$as_me: error: conditional \"HAVE_LIBGSF\" was never defined.
22373Usually this means the macro was only invoked conditionally." >&2;}
22374 { (exit 1); exit 1; }; }
22375fi
22376if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
22377 { { echo "$as_me:$LINENO: error: conditional \"HAVE_ZLIB\" was never defined.
22378Usually this means the macro was only invoked conditionally." >&5
22379echo "$as_me: error: conditional \"HAVE_ZLIB\" was never defined.
22380Usually this means the macro was only invoked conditionally." >&2;}
22381 { (exit 1); exit 1; }; }
22382fi
22383if test -z "${EXPERIMENTAL_TRUE}" && test -z "${EXPERIMENTAL_FALSE}"; then
22384 { { echo "$as_me:$LINENO: error: conditional \"EXPERIMENTAL\" was never defined.
22385Usually this means the macro was only invoked conditionally." >&5
22386echo "$as_me: error: conditional \"EXPERIMENTAL\" was never defined.
22387Usually this means the macro was only invoked conditionally." >&2;}
22388 { (exit 1); exit 1; }; }
22389fi
22390if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then
22391 { { echo "$as_me:$LINENO: error: conditional \"HAVE_CXX\" was never defined.
22392Usually this means the macro was only invoked conditionally." >&5
22393echo "$as_me: error: conditional \"HAVE_CXX\" was never defined.
22394Usually this means the macro was only invoked conditionally." >&2;}
22395 { (exit 1); exit 1; }; }
22396fi
22397
22398: ${CONFIG_STATUS=./config.status}
22399ac_clean_files_save=$ac_clean_files
22400ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22401{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22402echo "$as_me: creating $CONFIG_STATUS" >&6;}
22403cat >$CONFIG_STATUS <<_ACEOF
22404#! $SHELL
22405# Generated by $as_me.
22406# Run this file to recreate the current configuration.
22407# Compiler output produced by configure, useful for debugging
22408# configure, is in config.log if it exists.
22409
22410debug=false
22411ac_cs_recheck=false
22412ac_cs_silent=false
22413SHELL=\${CONFIG_SHELL-$SHELL}
22414_ACEOF
22415
22416cat >>$CONFIG_STATUS <<\_ACEOF
22417## --------------------- ##
22418## M4sh Initialization. ##
22419## --------------------- ##
22420
22421# Be more Bourne compatible
22422DUALCASE=1; export DUALCASE # for MKS sh
22423if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22424 emulate sh
22425 NULLCMD=:
22426 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22427 # is contrary to our usage. Disable this feature.
22428 alias -g '${1+"$@"}'='"$@"'
22429 setopt NO_GLOB_SUBST
22430else
22431 case `(set -o) 2>/dev/null` in
22432 *posix*) set -o posix ;;
22433esac
22434
22435fi
22436
22437
22438
22439
22440# PATH needs CR
22441# Avoid depending upon Character Ranges.
22442as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22443as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22444as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22445as_cr_digits='0123456789'
22446as_cr_alnum=$as_cr_Letters$as_cr_digits
22447
22448# The user is always right.
22449if test "${PATH_SEPARATOR+set}" != set; then
22450 echo "#! /bin/sh" >conf$$.sh
22451 echo "exit 0" >>conf$$.sh
22452 chmod +x conf$$.sh
22453 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22454 PATH_SEPARATOR=';'
22455 else
22456 PATH_SEPARATOR=:
22457 fi
22458 rm -f conf$$.sh
22459fi
22460
22461# Support unset when possible.
22462if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22463 as_unset=unset
22464else
22465 as_unset=false
22466fi
22467
22468
22469# IFS
22470# We need space, tab and new line, in precisely that order. Quoting is
22471# there to prevent editors from complaining about space-tab.
22472# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22473# splitting by setting IFS to empty value.)
22474as_nl='
22475'
22476IFS=" "" $as_nl"
22477
22478# Find who we are. Look in the path if we contain no directory separator.
22479case $0 in
22480 *[\\/]* ) as_myself=$0 ;;
22481 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22482for as_dir in $PATH
22483do
22484 IFS=$as_save_IFS
22485 test -z "$as_dir" && as_dir=.
22486 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22487done
22488IFS=$as_save_IFS
22489
22490 ;;
22491esac
22492# We did not find ourselves, most probably we were run as `sh COMMAND'
22493# in which case we are not to be found in the path.
22494if test "x$as_myself" = x; then
22495 as_myself=$0
22496fi
22497if test ! -f "$as_myself"; then
22498 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22499 { (exit 1); exit 1; }
22500fi
22501
22502# Work around bugs in pre-3.0 UWIN ksh.
22503for as_var in ENV MAIL MAILPATH
22504do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22505done
22506PS1='$ '
22507PS2='> '
22508PS4='+ '
22509
22510# NLS nuisances.
22511for as_var in \
22512 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22513 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22514 LC_TELEPHONE LC_TIME
22515do
22516 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22517 eval $as_var=C; export $as_var
22518 else
22519 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22520 fi
22521done
22522
22523# Required to use basename.
22524if expr a : '\(a\)' >/dev/null 2>&1 &&
22525 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22526 as_expr=expr
22527else
22528 as_expr=false
22529fi
22530
22531if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22532 as_basename=basename
22533else
22534 as_basename=false
22535fi
22536
22537
22538# Name of the executable.
22539as_me=`$as_basename -- "$0" ||
22540$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22541 X"$0" : 'X\(//\)$' \| \
22542 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22543echo X/"$0" |
22544 sed '/^.*\/\([^/][^/]*\)\/*$/{
22545 s//\1/
22546 q
22547 }
22548 /^X\/\(\/\/\)$/{
22549 s//\1/
22550 q
22551 }
22552 /^X\/\(\/\).*/{
22553 s//\1/
22554 q
22555 }
22556 s/.*/./; q'`
22557
22558# CDPATH.
22559$as_unset CDPATH
22560
22561
22562
22563 as_lineno_1=$LINENO
22564 as_lineno_2=$LINENO
22565 test "x$as_lineno_1" != "x$as_lineno_2" &&
22566 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22567
22568 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22569 # uniformly replaced by the line number. The first 'sed' inserts a
22570 # line-number line after each line using $LINENO; the second 'sed'
22571 # does the real work. The second script uses 'N' to pair each
22572 # line-number line with the line containing $LINENO, and appends
22573 # trailing '-' during substitution so that $LINENO is not a special
22574 # case at line end.
22575 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22576 # scripts with optimization help from Paolo Bonzini. Blame Lee
22577 # E. McMahon (1931-1989) for sed's syntax. :-)
22578 sed -n '
22579 p
22580 /[$]LINENO/=
22581 ' <$as_myself |
22582 sed '
22583 s/[$]LINENO.*/&-/
22584 t lineno
22585 b
22586 :lineno
22587 N
22588 :loop
22589 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22590 t loop
22591 s/-\n.*//
22592 ' >$as_me.lineno &&
22593 chmod +x "$as_me.lineno" ||
22594 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22595 { (exit 1); exit 1; }; }
22596
22597 # Don't try to exec as it changes $[0], causing all sort of problems
22598 # (the dirname of $[0] is not the place where we might find the
22599 # original and so on. Autoconf is especially sensitive to this).
22600 . "./$as_me.lineno"
22601 # Exit status is that of the last command.
22602 exit
22603}
22604
22605
22606if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22607 as_dirname=dirname
22608else
22609 as_dirname=false
22610fi
22611
22612ECHO_C= ECHO_N= ECHO_T=
22613case `echo -n x` in
22614-n*)
22615 case `echo 'x\c'` in
22616 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22617 *) ECHO_C='\c';;
22618 esac;;
22619*)
22620 ECHO_N='-n';;
22621esac
22622
22623if expr a : '\(a\)' >/dev/null 2>&1 &&
22624 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22625 as_expr=expr
22626else
22627 as_expr=false
22628fi
22629
22630rm -f conf$$ conf$$.exe conf$$.file
22631if test -d conf$$.dir; then
22632 rm -f conf$$.dir/conf$$.file
22633else
22634 rm -f conf$$.dir
22635 mkdir conf$$.dir
22636fi
22637echo >conf$$.file
22638if ln -s conf$$.file conf$$ 2>/dev/null; then
22639 as_ln_s='ln -s'
22640 # ... but there are two gotchas:
22641 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22642 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22643 # In both cases, we have to default to `cp -p'.
22644 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22645 as_ln_s='cp -p'
22646elif ln conf$$.file conf$$ 2>/dev/null; then
22647 as_ln_s=ln
22648else
22649 as_ln_s='cp -p'
22650fi
22651rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22652rmdir conf$$.dir 2>/dev/null
22653
22654if mkdir -p . 2>/dev/null; then
22655 as_mkdir_p=:
22656else
22657 test -d ./-p && rmdir ./-p
22658 as_mkdir_p=false
22659fi
22660
22661if test -x / >/dev/null 2>&1; then
22662 as_test_x='test -x'
22663else
22664 if ls -dL / >/dev/null 2>&1; then
22665 as_ls_L_option=L
22666 else
22667 as_ls_L_option=
22668 fi
22669 as_test_x='
22670 eval sh -c '\''
22671 if test -d "$1"; then
22672 test -d "$1/.";
22673 else
22674 case $1 in
22675 -*)set "./$1";;
22676 esac;
22677 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22678 ???[sx]*):;;*)false;;esac;fi
22679 '\'' sh
22680 '
22681fi
22682as_executable_p=$as_test_x
22683
22684# Sed expression to map a string onto a valid CPP name.
22685as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22686
22687# Sed expression to map a string onto a valid variable name.
22688as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22689
22690
22691exec 6>&1
22692
22693# Save the log message, to keep $[0] and so on meaningful, and to
22694# report actual input values of CONFIG_FILES etc. instead of their
22695# values after options handling.
22696ac_log="
22697This file was extended by $as_me, which was
22698generated by GNU Autoconf 2.61. Invocation command line was
22699
22700 CONFIG_FILES = $CONFIG_FILES
22701 CONFIG_HEADERS = $CONFIG_HEADERS
22702 CONFIG_LINKS = $CONFIG_LINKS
22703 CONFIG_COMMANDS = $CONFIG_COMMANDS
22704 $ $0 $@
22705
22706on `(hostname || uname -n) 2>/dev/null | sed 1q`
22707"
22708
22709_ACEOF
22710
22711cat >>$CONFIG_STATUS <<_ACEOF
22712# Files that config.status was made for.
22713config_files="$ac_config_files"
22714config_headers="$ac_config_headers"
22715config_commands="$ac_config_commands"
22716
22717_ACEOF
22718
22719cat >>$CONFIG_STATUS <<\_ACEOF
22720ac_cs_usage="\
22721\`$as_me' instantiates files from templates according to the
22722current configuration.
22723
22724Usage: $0 [OPTIONS] [FILE]...
22725
22726 -h, --help print this help, then exit
22727 -V, --version print version number and configuration settings, then exit
22728 -q, --quiet do not print progress messages
22729 -d, --debug don't remove temporary files
22730 --recheck update $as_me by reconfiguring in the same conditions
22731 --file=FILE[:TEMPLATE]
22732 instantiate the configuration file FILE
22733 --header=FILE[:TEMPLATE]
22734 instantiate the configuration header FILE
22735
22736Configuration files:
22737$config_files
22738
22739Configuration headers:
22740$config_headers
22741
22742Configuration commands:
22743$config_commands
22744
22745Report bugs to <bug-autoconf@gnu.org>."
22746
22747_ACEOF
22748cat >>$CONFIG_STATUS <<_ACEOF
22749ac_cs_version="\\
22750config.status
22751configured by $0, generated by GNU Autoconf 2.61,
22752 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22753
22754Copyright (C) 2006 Free Software Foundation, Inc.
22755This config.status script is free software; the Free Software Foundation
22756gives unlimited permission to copy, distribute and modify it."
22757
22758ac_pwd='$ac_pwd'
22759srcdir='$srcdir'
22760INSTALL='$INSTALL'
22761MKDIR_P='$MKDIR_P'
22762_ACEOF
22763
22764cat >>$CONFIG_STATUS <<\_ACEOF
22765# If no file are specified by the user, then we need to provide default
22766# value. By we need to know if files were specified by the user.
22767ac_need_defaults=:
22768while test $# != 0
22769do
22770 case $1 in
22771 --*=*)
22772 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22773 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22774 ac_shift=:
22775 ;;
22776 *)
22777 ac_option=$1
22778 ac_optarg=$2
22779 ac_shift=shift
22780 ;;
22781 esac
22782
22783 case $ac_option in
22784 # Handling of the options.
22785 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22786 ac_cs_recheck=: ;;
22787 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22788 echo "$ac_cs_version"; exit ;;
22789 --debug | --debu | --deb | --de | --d | -d )
22790 debug=: ;;
22791 --file | --fil | --fi | --f )
22792 $ac_shift
22793 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22794 ac_need_defaults=false;;
22795 --header | --heade | --head | --hea )
22796 $ac_shift
22797 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22798 ac_need_defaults=false;;
22799 --he | --h)
22800 # Conflict between --help and --header
22801 { echo "$as_me: error: ambiguous option: $1
22802Try \`$0 --help' for more information." >&2
22803 { (exit 1); exit 1; }; };;
22804 --help | --hel | -h )
22805 echo "$ac_cs_usage"; exit ;;
22806 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22807 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22808 ac_cs_silent=: ;;
22809
22810 # This is an error.
22811 -*) { echo "$as_me: error: unrecognized option: $1
22812Try \`$0 --help' for more information." >&2
22813 { (exit 1); exit 1; }; } ;;
22814
22815 *) ac_config_targets="$ac_config_targets $1"
22816 ac_need_defaults=false ;;
22817
22818 esac
22819 shift
22820done
22821
22822ac_configure_extra_args=
22823
22824if $ac_cs_silent; then
22825 exec 6>/dev/null
22826 ac_configure_extra_args="$ac_configure_extra_args --silent"
22827fi
22828
22829_ACEOF
22830cat >>$CONFIG_STATUS <<_ACEOF
22831if \$ac_cs_recheck; then
22832 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22833 CONFIG_SHELL=$SHELL
22834 export CONFIG_SHELL
22835 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22836fi
22837
22838_ACEOF
22839cat >>$CONFIG_STATUS <<\_ACEOF
22840exec 5>>config.log
22841{
22842 echo
22843 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22844## Running $as_me. ##
22845_ASBOX
22846 echo "$ac_log"
22847} >&5
22848
22849_ACEOF
22850cat >>$CONFIG_STATUS <<_ACEOF
22851#
22852# INIT-COMMANDS
22853#
22854AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22855
22856_ACEOF
22857
22858cat >>$CONFIG_STATUS <<\_ACEOF
22859
22860# Handling of arguments.
22861for ac_config_target in $ac_config_targets
22862do
22863 case $ac_config_target in
22864 "include/g3d/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/g3d/config.h" ;;
22865 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22866 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22867 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22868 "doc/api/Makefile") CONFIG_FILES="$CONFIG_FILES doc/api/Makefile" ;;
22869 "doc/support_matrix/Makefile") CONFIG_FILES="$CONFIG_FILES doc/support_matrix/Makefile" ;;
22870 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
22871 "include/g3d/Makefile") CONFIG_FILES="$CONFIG_FILES include/g3d/Makefile" ;;
22872 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
22873 "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
22874 "plugins/image/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/image/Makefile" ;;
22875 "plugins/import/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/Makefile" ;;
22876 "plugins/import/imp_3dm/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_3dm/Makefile" ;;
22877 "plugins/import/imp_3dmf/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_3dmf/Makefile" ;;
22878 "plugins/import/imp_3ds/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_3ds/Makefile" ;;
22879 "plugins/import/imp_ac3d/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_ac3d/Makefile" ;;
22880 "plugins/import/imp_acf/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_acf/Makefile" ;;
22881 "plugins/import/imp_ar/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_ar/Makefile" ;;
22882 "plugins/import/imp_ase/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_ase/Makefile" ;;
22883 "plugins/import/imp_blend/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_blend/Makefile" ;;
22884 "plugins/import/imp_c4d/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_c4d/Makefile" ;;
22885 "plugins/import/imp_cob/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_cob/Makefile" ;;
22886 "plugins/import/imp_dae/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_dae/Makefile" ;;
22887 "plugins/import/imp_dpm/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_dpm/Makefile" ;;
22888 "plugins/import/imp_dxf/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_dxf/Makefile" ;;
22889 "plugins/import/imp_flt/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_flt/Makefile" ;;
22890 "plugins/import/imp_glb/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_glb/Makefile" ;;
22891 "plugins/import/imp_heightfield/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_heightfield/Makefile" ;;
22892 "plugins/import/imp_iob/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_iob/Makefile" ;;
22893 "plugins/import/imp_joe/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_joe/Makefile" ;;
22894 "plugins/import/imp_kmz/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_kmz/Makefile" ;;
22895 "plugins/import/imp_ldraw/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_ldraw/Makefile" ;;
22896 "plugins/import/imp_leocad/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_leocad/Makefile" ;;
22897 "plugins/import/imp_lwo/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_lwo/Makefile" ;;
22898 "plugins/import/imp_max/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_max/Makefile" ;;
22899 "plugins/import/imp_maya/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_maya/Makefile" ;;
22900 "plugins/import/imp_md2/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_md2/Makefile" ;;
22901 "plugins/import/imp_md3/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_md3/Makefile" ;;
22902 "plugins/import/imp_nff/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_nff/Makefile" ;;
22903 "plugins/import/imp_obj/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_obj/Makefile" ;;
22904 "plugins/import/imp_osm/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_osm/Makefile" ;;
22905 "plugins/import/imp_q3o/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_q3o/Makefile" ;;
22906 "plugins/import/imp_r4/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_r4/Makefile" ;;
22907 "plugins/import/imp_rbh/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_rbh/Makefile" ;;
22908 "plugins/import/imp_skp/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_skp/Makefile" ;;
22909 "plugins/import/imp_stl/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_stl/Makefile" ;;
22910 "plugins/import/imp_ta/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_ta/Makefile" ;;
22911 "plugins/import/imp_test/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_test/Makefile" ;;
22912 "plugins/import/imp_vrml/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_vrml/Makefile" ;;
22913 "plugins/import/imp_vrml2/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_vrml2/Makefile" ;;
22914 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22915 "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
22916 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
22917 "libg3d.pc") CONFIG_FILES="$CONFIG_FILES libg3d.pc" ;;
22918
22919 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22920echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22921 { (exit 1); exit 1; }; };;
22922 esac
22923done
22924
22925
22926# If the user did not use the arguments to specify the items to instantiate,
22927# then the envvar interface is used. Set only those that are not.
22928# We use the long form for the default assignment because of an extremely
22929# bizarre bug on SunOS 4.1.3.
22930if $ac_need_defaults; then
22931 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22932 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22933 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22934fi
22935
22936# Have a temporary directory for convenience. Make it in the build tree
22937# simply because there is no reason against having it here, and in addition,
22938# creating and moving files from /tmp can sometimes cause problems.
22939# Hook for its removal unless debugging.
22940# Note that there is a small window in which the directory will not be cleaned:
22941# after its creation but before its name has been assigned to `$tmp'.
22942$debug ||
22943{
22944 tmp=
22945 trap 'exit_status=$?
22946 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22947' 0
22948 trap '{ (exit 1); exit 1; }' 1 2 13 15
22949}
22950# Create a (secure) tmp directory for tmp files.
22951
22952{
22953 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22954 test -n "$tmp" && test -d "$tmp"
22955} ||
22956{
22957 tmp=./conf$$-$RANDOM
22958 (umask 077 && mkdir "$tmp")
22959} ||
22960{
22961 echo "$me: cannot create a temporary directory in ." >&2
22962 { (exit 1); exit 1; }
22963}
22964
22965#
22966# Set up the sed scripts for CONFIG_FILES section.
22967#
22968
22969# No need to generate the scripts if there are no CONFIG_FILES.
22970# This happens for instance when ./config.status config.h
22971if test -n "$CONFIG_FILES"; then
22972
22973_ACEOF
22974
22975
22976
22977ac_delim='%!_!# '
22978for ac_last_try in false false false false false :; do
22979 cat >conf$$subs.sed <<_ACEOF
22980SHELL!$SHELL$ac_delim
22981PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22982PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22983PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22984PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22985PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22986PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22987exec_prefix!$exec_prefix$ac_delim
22988prefix!$prefix$ac_delim
22989program_transform_name!$program_transform_name$ac_delim
22990bindir!$bindir$ac_delim
22991sbindir!$sbindir$ac_delim
22992libexecdir!$libexecdir$ac_delim
22993datarootdir!$datarootdir$ac_delim
22994datadir!$datadir$ac_delim
22995sysconfdir!$sysconfdir$ac_delim
22996sharedstatedir!$sharedstatedir$ac_delim
22997localstatedir!$localstatedir$ac_delim
22998includedir!$includedir$ac_delim
22999oldincludedir!$oldincludedir$ac_delim
23000docdir!$docdir$ac_delim
23001infodir!$infodir$ac_delim
23002htmldir!$htmldir$ac_delim
23003dvidir!$dvidir$ac_delim
23004pdfdir!$pdfdir$ac_delim
23005psdir!$psdir$ac_delim
23006libdir!$libdir$ac_delim
23007localedir!$localedir$ac_delim
23008mandir!$mandir$ac_delim
23009DEFS!$DEFS$ac_delim
23010ECHO_C!$ECHO_C$ac_delim
23011ECHO_N!$ECHO_N$ac_delim
23012ECHO_T!$ECHO_T$ac_delim
23013LIBS!$LIBS$ac_delim
23014build_alias!$build_alias$ac_delim
23015host_alias!$host_alias$ac_delim
23016target_alias!$target_alias$ac_delim
23017INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23018INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23019INSTALL_DATA!$INSTALL_DATA$ac_delim
23020am__isrc!$am__isrc$ac_delim
23021CYGPATH_W!$CYGPATH_W$ac_delim
23022PACKAGE!$PACKAGE$ac_delim
23023VERSION!$VERSION$ac_delim
23024ACLOCAL!$ACLOCAL$ac_delim
23025AUTOCONF!$AUTOCONF$ac_delim
23026AUTOMAKE!$AUTOMAKE$ac_delim
23027AUTOHEADER!$AUTOHEADER$ac_delim
23028MAKEINFO!$MAKEINFO$ac_delim
23029install_sh!$install_sh$ac_delim
23030STRIP!$STRIP$ac_delim
23031INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23032mkdir_p!$mkdir_p$ac_delim
23033AWK!$AWK$ac_delim
23034SET_MAKE!$SET_MAKE$ac_delim
23035am__leading_dot!$am__leading_dot$ac_delim
23036AMTAR!$AMTAR$ac_delim
23037am__tar!$am__tar$ac_delim
23038am__untar!$am__untar$ac_delim
23039LTVERSION!$LTVERSION$ac_delim
23040CC!$CC$ac_delim
23041CFLAGS!$CFLAGS$ac_delim
23042LDFLAGS!$LDFLAGS$ac_delim
23043CPPFLAGS!$CPPFLAGS$ac_delim
23044ac_ct_CC!$ac_ct_CC$ac_delim
23045EXEEXT!$EXEEXT$ac_delim
23046OBJEXT!$OBJEXT$ac_delim
23047DEPDIR!$DEPDIR$ac_delim
23048am__include!$am__include$ac_delim
23049am__quote!$am__quote$ac_delim
23050AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23051AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23052AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23053CCDEPMODE!$CCDEPMODE$ac_delim
23054am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23055am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23056LEX!$LEX$ac_delim
23057LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
23058LEXLIB!$LEXLIB$ac_delim
23059CPP!$CPP$ac_delim
23060GREP!$GREP$ac_delim
23061EGREP!$EGREP$ac_delim
23062OS_WIN32_TRUE!$OS_WIN32_TRUE$ac_delim
23063OS_WIN32_FALSE!$OS_WIN32_FALSE$ac_delim
23064build!$build$ac_delim
23065build_cpu!$build_cpu$ac_delim
23066build_vendor!$build_vendor$ac_delim
23067build_os!$build_os$ac_delim
23068host!$host$ac_delim
23069host_cpu!$host_cpu$ac_delim
23070host_vendor!$host_vendor$ac_delim
23071host_os!$host_os$ac_delim
23072LN_S!$LN_S$ac_delim
23073ECHO!$ECHO$ac_delim
23074AR!$AR$ac_delim
23075RANLIB!$RANLIB$ac_delim
23076DLLTOOL!$DLLTOOL$ac_delim
23077_ACEOF
23078
23079 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23080 break
23081 elif $ac_last_try; then
23082 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23083echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23084 { (exit 1); exit 1; }; }
23085 else
23086 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23087 fi
23088done
23089
23090ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23091if test -n "$ac_eof"; then
23092 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23093 ac_eof=`expr $ac_eof + 1`
23094fi
23095
23096cat >>$CONFIG_STATUS <<_ACEOF
23097cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23098/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23099_ACEOF
23100sed '
23101s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23102s/^/s,@/; s/!/@,|#_!!_#|/
23103:n
23104t n
23105s/'"$ac_delim"'$/,g/; t
23106s/$/\\/; p
23107N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23108' >>$CONFIG_STATUS <conf$$subs.sed
23109rm -f conf$$subs.sed
23110cat >>$CONFIG_STATUS <<_ACEOF
23111CEOF$ac_eof
23112_ACEOF
23113
23114
23115ac_delim='%!_!# '
23116for ac_last_try in false false false false false :; do
23117 cat >conf$$subs.sed <<_ACEOF
23118AS!$AS$ac_delim
23119OBJDUMP!$OBJDUMP$ac_delim
23120CXX!$CXX$ac_delim
23121CXXFLAGS!$CXXFLAGS$ac_delim
23122ac_ct_CXX!$ac_ct_CXX$ac_delim
23123CXXDEPMODE!$CXXDEPMODE$ac_delim
23124am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23125am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23126CXXCPP!$CXXCPP$ac_delim
23127F77!$F77$ac_delim
23128FFLAGS!$FFLAGS$ac_delim
23129ac_ct_F77!$ac_ct_F77$ac_delim
23130LIBTOOL!$LIBTOOL$ac_delim
23131HTML_DIR!$HTML_DIR$ac_delim
23132PKG_CONFIG!$PKG_CONFIG$ac_delim
23133GTKDOC_CHECK!$GTKDOC_CHECK$ac_delim
23134ENABLE_GTK_DOC_TRUE!$ENABLE_GTK_DOC_TRUE$ac_delim
23135ENABLE_GTK_DOC_FALSE!$ENABLE_GTK_DOC_FALSE$ac_delim
23136GTK_DOC_USE_LIBTOOL_TRUE!$GTK_DOC_USE_LIBTOOL_TRUE$ac_delim
23137GTK_DOC_USE_LIBTOOL_FALSE!$GTK_DOC_USE_LIBTOOL_FALSE$ac_delim
23138GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
23139GLIB_LIBS!$GLIB_LIBS$ac_delim
23140GLIB_GENMARSHAL!$GLIB_GENMARSHAL$ac_delim
23141GOBJECT_QUERY!$GOBJECT_QUERY$ac_delim
23142GLIB_MKENUMS!$GLIB_MKENUMS$ac_delim
23143GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23144GTK_LIBS!$GTK_LIBS$ac_delim
23145GDKPIXBUF_CFLAGS!$GDKPIXBUF_CFLAGS$ac_delim
23146GDKPIXBUF_LIBS!$GDKPIXBUF_LIBS$ac_delim
23147HAVE_GDKPIXBUF_TRUE!$HAVE_GDKPIXBUF_TRUE$ac_delim
23148HAVE_GDKPIXBUF_FALSE!$HAVE_GDKPIXBUF_FALSE$ac_delim
23149XML2_CONFIG!$XML2_CONFIG$ac_delim
23150XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
23151XML_LIBS!$XML_LIBS$ac_delim
23152LIBXML2_CFLAGS!$LIBXML2_CFLAGS$ac_delim
23153LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23154HAVE_LIBXML2_TRUE!$HAVE_LIBXML2_TRUE$ac_delim
23155HAVE_LIBXML2_FALSE!$HAVE_LIBXML2_FALSE$ac_delim
23156LIBGSF_CFLAGS!$LIBGSF_CFLAGS$ac_delim
23157LIBGSF_LIBS!$LIBGSF_LIBS$ac_delim
23158HAVE_LIBGSF_TRUE!$HAVE_LIBGSF_TRUE$ac_delim
23159HAVE_LIBGSF_FALSE!$HAVE_LIBGSF_FALSE$ac_delim
23160MAGIC_LIBS!$MAGIC_LIBS$ac_delim
23161MATH_LIBS!$MATH_LIBS$ac_delim
23162Z_CFLAGS!$Z_CFLAGS$ac_delim
23163Z_LIBS!$Z_LIBS$ac_delim
23164HAVE_ZLIB_TRUE!$HAVE_ZLIB_TRUE$ac_delim
23165HAVE_ZLIB_FALSE!$HAVE_ZLIB_FALSE$ac_delim
23166DEBUG!$DEBUG$ac_delim
23167EXPERIMENTAL_TRUE!$EXPERIMENTAL_TRUE$ac_delim
23168EXPERIMENTAL_FALSE!$EXPERIMENTAL_FALSE$ac_delim
23169HAVE_CXX_TRUE!$HAVE_CXX_TRUE$ac_delim
23170HAVE_CXX_FALSE!$HAVE_CXX_FALSE$ac_delim
23171DBG_CFLAGS!$DBG_CFLAGS$ac_delim
23172PLUGINS_LDFLAGS!$PLUGINS_LDFLAGS$ac_delim
23173LIBOBJS!$LIBOBJS$ac_delim
23174LTLIBOBJS!$LTLIBOBJS$ac_delim
23175_ACEOF
23176
23177 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 57; then
23178 break
23179 elif $ac_last_try; then
23180 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23181echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23182 { (exit 1); exit 1; }; }
23183 else
23184 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23185 fi
23186done
23187
23188ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23189if test -n "$ac_eof"; then
23190 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23191 ac_eof=`expr $ac_eof + 1`
23192fi
23193
23194cat >>$CONFIG_STATUS <<_ACEOF
23195cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23196/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23197_ACEOF
23198sed '
23199s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23200s/^/s,@/; s/!/@,|#_!!_#|/
23201:n
23202t n
23203s/'"$ac_delim"'$/,g/; t
23204s/$/\\/; p
23205N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23206' >>$CONFIG_STATUS <conf$$subs.sed
23207rm -f conf$$subs.sed
23208cat >>$CONFIG_STATUS <<_ACEOF
23209:end
23210s/|#_!!_#|//g
23211CEOF$ac_eof
23212_ACEOF
23213
23214
23215# VPATH may cause trouble with some makes, so we remove $(srcdir),
23216# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23217# trailing colons and then remove the whole line if VPATH becomes empty
23218# (actually we leave an empty line to preserve line numbers).
23219if test "x$srcdir" = x.; then
23220 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23221s/:*\$(srcdir):*/:/
23222s/:*\${srcdir}:*/:/
23223s/:*@srcdir@:*/:/
23224s/^\([^=]*=[ ]*\):*/\1/
23225s/:*$//
23226s/^[^=]*=[ ]*$//
23227}'
23228fi
23229
23230cat >>$CONFIG_STATUS <<\_ACEOF
23231fi # test -n "$CONFIG_FILES"
23232
23233
23234for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23235do
23236 case $ac_tag in
23237 :[FHLC]) ac_mode=$ac_tag; continue;;
23238 esac
23239 case $ac_mode$ac_tag in
23240 :[FHL]*:*);;
23241 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23242echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23243 { (exit 1); exit 1; }; };;
23244 :[FH]-) ac_tag=-:-;;
23245 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23246 esac
23247 ac_save_IFS=$IFS
23248 IFS=:
23249 set x $ac_tag
23250 IFS=$ac_save_IFS
23251 shift
23252 ac_file=$1
23253 shift
23254
23255 case $ac_mode in
23256 :L) ac_source=$1;;
23257 :[FH])
23258 ac_file_inputs=
23259 for ac_f
23260 do
23261 case $ac_f in
23262 -) ac_f="$tmp/stdin";;
23263 *) # Look for the file first in the build tree, then in the source tree
23264 # (if the path is not absolute). The absolute path cannot be DOS-style,
23265 # because $ac_f cannot contain `:'.
23266 test -f "$ac_f" ||
23267 case $ac_f in
23268 [\\/$]*) false;;
23269 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23270 esac ||
23271 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23272echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23273 { (exit 1); exit 1; }; };;
23274 esac
23275 ac_file_inputs="$ac_file_inputs $ac_f"
23276 done
23277
23278 # Let's still pretend it is `configure' which instantiates (i.e., don't
23279 # use $as_me), people would be surprised to read:
23280 # /* config.h. Generated by config.status. */
23281 configure_input="Generated from "`IFS=:
23282 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23283 if test x"$ac_file" != x-; then
23284 configure_input="$ac_file. $configure_input"
23285 { echo "$as_me:$LINENO: creating $ac_file" >&5
23286echo "$as_me: creating $ac_file" >&6;}
23287 fi
23288
23289 case $ac_tag in
23290 *:-:* | *:-) cat >"$tmp/stdin";;
23291 esac
23292 ;;
23293 esac
23294
23295 ac_dir=`$as_dirname -- "$ac_file" ||
23296$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23297 X"$ac_file" : 'X\(//\)[^/]' \| \
23298 X"$ac_file" : 'X\(//\)$' \| \
23299 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23300echo X"$ac_file" |
23301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23302 s//\1/
23303 q
23304 }
23305 /^X\(\/\/\)[^/].*/{
23306 s//\1/
23307 q
23308 }
23309 /^X\(\/\/\)$/{
23310 s//\1/
23311 q
23312 }
23313 /^X\(\/\).*/{
23314 s//\1/
23315 q
23316 }
23317 s/.*/./; q'`
23318 { as_dir="$ac_dir"
23319 case $as_dir in #(
23320 -*) as_dir=./$as_dir;;
23321 esac
23322 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23323 as_dirs=
23324 while :; do
23325 case $as_dir in #(
23326 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23327 *) as_qdir=$as_dir;;
23328 esac
23329 as_dirs="'$as_qdir' $as_dirs"
23330 as_dir=`$as_dirname -- "$as_dir" ||
23331$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23332 X"$as_dir" : 'X\(//\)[^/]' \| \
23333 X"$as_dir" : 'X\(//\)$' \| \
23334 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23335echo X"$as_dir" |
23336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23337 s//\1/
23338 q
23339 }
23340 /^X\(\/\/\)[^/].*/{
23341 s//\1/
23342 q
23343 }
23344 /^X\(\/\/\)$/{
23345 s//\1/
23346 q
23347 }
23348 /^X\(\/\).*/{
23349 s//\1/
23350 q
23351 }
23352 s/.*/./; q'`
23353 test -d "$as_dir" && break
23354 done
23355 test -z "$as_dirs" || eval "mkdir $as_dirs"
23356 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23357echo "$as_me: error: cannot create directory $as_dir" >&2;}
23358 { (exit 1); exit 1; }; }; }
23359 ac_builddir=.
23360
23361case "$ac_dir" in
23362.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23363*)
23364 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23365 # A ".." for each directory in $ac_dir_suffix.
23366 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23367 case $ac_top_builddir_sub in
23368 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23369 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23370 esac ;;
23371esac
23372ac_abs_top_builddir=$ac_pwd
23373ac_abs_builddir=$ac_pwd$ac_dir_suffix
23374# for backward compatibility:
23375ac_top_builddir=$ac_top_build_prefix
23376
23377case $srcdir in
23378 .) # We are building in place.
23379 ac_srcdir=.
23380 ac_top_srcdir=$ac_top_builddir_sub
23381 ac_abs_top_srcdir=$ac_pwd ;;
23382 [\\/]* | ?:[\\/]* ) # Absolute name.
23383 ac_srcdir=$srcdir$ac_dir_suffix;
23384 ac_top_srcdir=$srcdir
23385 ac_abs_top_srcdir=$srcdir ;;
23386 *) # Relative name.
23387 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23388 ac_top_srcdir=$ac_top_build_prefix$srcdir
23389 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23390esac
23391ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23392
23393
23394 case $ac_mode in
23395 :F)
23396 #
23397 # CONFIG_FILE
23398 #
23399
23400 case $INSTALL in
23401 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23402 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23403 esac
23404 ac_MKDIR_P=$MKDIR_P
23405 case $MKDIR_P in
23406 [\\/$]* | ?:[\\/]* ) ;;
23407 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23408 esac
23409_ACEOF
23410
23411cat >>$CONFIG_STATUS <<\_ACEOF
23412# If the template does not know about datarootdir, expand it.
23413# FIXME: This hack should be removed a few years after 2.60.
23414ac_datarootdir_hack=; ac_datarootdir_seen=
23415
23416case `sed -n '/datarootdir/ {
23417 p
23418 q
23419}
23420/@datadir@/p
23421/@docdir@/p
23422/@infodir@/p
23423/@localedir@/p
23424/@mandir@/p
23425' $ac_file_inputs` in
23426*datarootdir*) ac_datarootdir_seen=yes;;
23427*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23428 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23429echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23430_ACEOF
23431cat >>$CONFIG_STATUS <<_ACEOF
23432 ac_datarootdir_hack='
23433 s&@datadir@&$datadir&g
23434 s&@docdir@&$docdir&g
23435 s&@infodir@&$infodir&g
23436 s&@localedir@&$localedir&g
23437 s&@mandir@&$mandir&g
23438 s&\\\${datarootdir}&$datarootdir&g' ;;
23439esac
23440_ACEOF
23441
23442# Neutralize VPATH when `$srcdir' = `.'.
23443# Shell code in configure.ac might set extrasub.
23444# FIXME: do we really want to maintain this feature?
23445cat >>$CONFIG_STATUS <<_ACEOF
23446 sed "$ac_vpsub
23447$extrasub
23448_ACEOF
23449cat >>$CONFIG_STATUS <<\_ACEOF
23450:t
23451/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23452s&@configure_input@&$configure_input&;t t
23453s&@top_builddir@&$ac_top_builddir_sub&;t t
23454s&@srcdir@&$ac_srcdir&;t t
23455s&@abs_srcdir@&$ac_abs_srcdir&;t t
23456s&@top_srcdir@&$ac_top_srcdir&;t t
23457s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23458s&@builddir@&$ac_builddir&;t t
23459s&@abs_builddir@&$ac_abs_builddir&;t t
23460s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23461s&@INSTALL@&$ac_INSTALL&;t t
23462s&@MKDIR_P@&$ac_MKDIR_P&;t t
23463$ac_datarootdir_hack
23464" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23465
23466test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23467 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23468 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23469 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23470which seems to be undefined. Please make sure it is defined." >&5
23471echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23472which seems to be undefined. Please make sure it is defined." >&2;}
23473
23474 rm -f "$tmp/stdin"
23475 case $ac_file in
23476 -) cat "$tmp/out"; rm -f "$tmp/out";;
23477 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23478 esac
23479 ;;
23480 :H)
23481 #
23482 # CONFIG_HEADER
23483 #
23484_ACEOF
23485
23486# Transform confdefs.h into a sed script `conftest.defines', that
23487# substitutes the proper values into config.h.in to produce config.h.
23488rm -f conftest.defines conftest.tail
23489# First, append a space to every undef/define line, to ease matching.
23490echo 's/$/ /' >conftest.defines
23491# Then, protect against being on the right side of a sed subst, or in
23492# an unquoted here document, in config.status. If some macros were
23493# called several times there might be several #defines for the same
23494# symbol, which is useless. But do not sort them, since the last
23495# AC_DEFINE must be honored.
23496ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23497# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23498# NAME is the cpp macro being defined, VALUE is the value it is being given.
23499# PARAMS is the parameter list in the macro definition--in most cases, it's
23500# just an empty string.
23501ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23502ac_dB='\\)[ (].*,\\1define\\2'
23503ac_dC=' '
23504ac_dD=' ,'
23505
23506uniq confdefs.h |
23507 sed -n '
23508 t rset
23509 :rset
23510 s/^[ ]*#[ ]*define[ ][ ]*//
23511 t ok
23512 d
23513 :ok
23514 s/[\\&,]/\\&/g
23515 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23516 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23517 ' >>conftest.defines
23518
23519# Remove the space that was appended to ease matching.
23520# Then replace #undef with comments. This is necessary, for
23521# example, in the case of _POSIX_SOURCE, which is predefined and required
23522# on some systems where configure will not decide to define it.
23523# (The regexp can be short, since the line contains either #define or #undef.)
23524echo 's/ $//
23525s,^[ #]*u.*,/* & */,' >>conftest.defines
23526
23527# Break up conftest.defines:
23528ac_max_sed_lines=50
23529
23530# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23531# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23532# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23533# et cetera.
23534ac_in='$ac_file_inputs'
23535ac_out='"$tmp/out1"'
23536ac_nxt='"$tmp/out2"'
23537
23538while :
23539do
23540 # Write a here document:
23541 cat >>$CONFIG_STATUS <<_ACEOF
23542 # First, check the format of the line:
23543 cat >"\$tmp/defines.sed" <<\\CEOF
23544/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23545/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23546b
23547:def
23548_ACEOF
23549 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23550 echo 'CEOF
23551 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23552 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23553 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23554 grep . conftest.tail >/dev/null || break
23555 rm -f conftest.defines
23556 mv conftest.tail conftest.defines
23557done
23558rm -f conftest.defines conftest.tail
23559
23560echo "ac_result=$ac_in" >>$CONFIG_STATUS
23561cat >>$CONFIG_STATUS <<\_ACEOF
23562 if test x"$ac_file" != x-; then
23563 echo "/* $configure_input */" >"$tmp/config.h"
23564 cat "$ac_result" >>"$tmp/config.h"
23565 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23566 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23567echo "$as_me: $ac_file is unchanged" >&6;}
23568 else
23569 rm -f $ac_file
23570 mv "$tmp/config.h" $ac_file
23571 fi
23572 else
23573 echo "/* $configure_input */"
23574 cat "$ac_result"
23575 fi
23576 rm -f "$tmp/out12"
23577# Compute $ac_file's index in $config_headers.
23578_am_arg=$ac_file
23579_am_stamp_count=1
23580for _am_header in $config_headers :; do
23581 case $_am_header in
23582 $_am_arg | $_am_arg:* )
23583 break ;;
23584 * )
23585 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23586 esac
23587done
23588echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23589$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23590 X"$_am_arg" : 'X\(//\)[^/]' \| \
23591 X"$_am_arg" : 'X\(//\)$' \| \
23592 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23593echo X"$_am_arg" |
23594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23595 s//\1/
23596 q
23597 }
23598 /^X\(\/\/\)[^/].*/{
23599 s//\1/
23600 q
23601 }
23602 /^X\(\/\/\)$/{
23603 s//\1/
23604 q
23605 }
23606 /^X\(\/\).*/{
23607 s//\1/
23608 q
23609 }
23610 s/.*/./; q'`/stamp-h$_am_stamp_count
23611 ;;
23612
23613 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23614echo "$as_me: executing $ac_file commands" >&6;}
23615 ;;
23616 esac
23617
23618
23619 case $ac_file$ac_mode in
23620 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23621 # Strip MF so we end up with the name of the file.
23622 mf=`echo "$mf" | sed -e 's/:.*$//'`
23623 # Check whether this is an Automake generated Makefile or not.
23624 # We used to match only the files named `Makefile.in', but
23625 # some people rename them; so instead we look at the file content.
23626 # Grep'ing the first line is not enough: some people post-process
23627 # each Makefile.in and add a new line on top of each file to say so.
23628 # Grep'ing the whole file is not good either: AIX grep has a line
23629 # limit of 2048, but all sed's we know have understand at least 4000.
23630 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23631 dirpart=`$as_dirname -- "$mf" ||
23632$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23633 X"$mf" : 'X\(//\)[^/]' \| \
23634 X"$mf" : 'X\(//\)$' \| \
23635 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23636echo X"$mf" |
23637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23638 s//\1/
23639 q
23640 }
23641 /^X\(\/\/\)[^/].*/{
23642 s//\1/
23643 q
23644 }
23645 /^X\(\/\/\)$/{
23646 s//\1/
23647 q
23648 }
23649 /^X\(\/\).*/{
23650 s//\1/
23651 q
23652 }
23653 s/.*/./; q'`
23654 else
23655 continue
23656 fi
23657 # Extract the definition of DEPDIR, am__include, and am__quote
23658 # from the Makefile without running `make'.
23659 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23660 test -z "$DEPDIR" && continue
23661 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23662 test -z "am__include" && continue
23663 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23664 # When using ansi2knr, U may be empty or an underscore; expand it
23665 U=`sed -n 's/^U = //p' < "$mf"`
23666 # Find all dependency output files, they are included files with
23667 # $(DEPDIR) in their names. We invoke sed twice because it is the
23668 # simplest approach to changing $(DEPDIR) to its actual value in the
23669 # expansion.
23670 for file in `sed -n "
23671 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23672 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23673 # Make sure the directory exists.
23674 test -f "$dirpart/$file" && continue
23675 fdir=`$as_dirname -- "$file" ||
23676$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23677 X"$file" : 'X\(//\)[^/]' \| \
23678 X"$file" : 'X\(//\)$' \| \
23679 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23680echo X"$file" |
23681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23682 s//\1/
23683 q
23684 }
23685 /^X\(\/\/\)[^/].*/{
23686 s//\1/
23687 q
23688 }
23689 /^X\(\/\/\)$/{
23690 s//\1/
23691 q
23692 }
23693 /^X\(\/\).*/{
23694 s//\1/
23695 q
23696 }
23697 s/.*/./; q'`
23698 { as_dir=$dirpart/$fdir
23699 case $as_dir in #(
23700 -*) as_dir=./$as_dir;;
23701 esac
23702 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23703 as_dirs=
23704 while :; do
23705 case $as_dir in #(
23706 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23707 *) as_qdir=$as_dir;;
23708 esac
23709 as_dirs="'$as_qdir' $as_dirs"
23710 as_dir=`$as_dirname -- "$as_dir" ||
23711$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23712 X"$as_dir" : 'X\(//\)[^/]' \| \
23713 X"$as_dir" : 'X\(//\)$' \| \
23714 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23715echo X"$as_dir" |
23716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23717 s//\1/
23718 q
23719 }
23720 /^X\(\/\/\)[^/].*/{
23721 s//\1/
23722 q
23723 }
23724 /^X\(\/\/\)$/{
23725 s//\1/
23726 q
23727 }
23728 /^X\(\/\).*/{
23729 s//\1/
23730 q
23731 }
23732 s/.*/./; q'`
23733 test -d "$as_dir" && break
23734 done
23735 test -z "$as_dirs" || eval "mkdir $as_dirs"
23736 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23737echo "$as_me: error: cannot create directory $as_dir" >&2;}
23738 { (exit 1); exit 1; }; }; }
23739 # echo "creating $dirpart/$file"
23740 echo '# dummy' > "$dirpart/$file"
23741 done
23742done
23743 ;;
23744
23745 esac
23746done # for ac_tag
23747
23748
23749{ (exit 0); exit 0; }
23750_ACEOF
23751chmod +x $CONFIG_STATUS
23752ac_clean_files=$ac_clean_files_save
23753
23754
23755# configure is writing to config.log, and then calls config.status.
23756# config.status does its own redirection, appending to config.log.
23757# Unfortunately, on DOS this fails, as config.log is still kept open
23758# by configure, so config.status won't be able to write to it; its
23759# output is simply discarded. So we exec the FD to /dev/null,
23760# effectively closing config.log, so it can be properly (re)opened and
23761# appended to by config.status. When coming back to configure, we
23762# need to make the FD available again.
23763if test "$no_create" != yes; then
23764 ac_cs_success=:
23765 ac_config_status_args=
23766 test "$silent" = yes &&
23767 ac_config_status_args="$ac_config_status_args --quiet"
23768 exec 5>/dev/null
23769 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23770 exec 5>>config.log
23771 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23772 # would make configure fail if this is the last instruction.
23773 $ac_cs_success || { (exit 1); exit 1; }
23774fi
23775
23776
diff --git a/src/others/mimesh/libg3d-0.0.8/configure.in b/src/others/mimesh/libg3d-0.0.8/configure.in
new file mode 100644
index 0000000..4d1f639
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/configure.in
@@ -0,0 +1,221 @@
1
2AC_INIT(configure.in)
3AC_CONFIG_AUX_DIR(config)
4
5# versioning stuff
6m4_define([g3d_major_version], [0])
7m4_define([g3d_minor_version], [0])
8m4_define([g3d_micro_version], [8])
9m4_define([g3d_interface_age], [8])
10m4_define([g3d_version],
11 [g3d_major_version.g3d_minor_version.g3d_micro_version])
12m4_define([g3d_binary_age],
13 [m4_eval(100 * g3d_minor_version + g3d_micro_version)])
14VERSION=g3d_version
15
16m4_define([lt_current],
17 [m4_eval(100 * g3d_minor_version + g3d_micro_version - g3d_interface_age)])
18m4_define([lt_revision], [g3d_interface_age])
19m4_define([lt_age], [m4_eval(g3d_binary_age - g3d_interface_age)])
20LTVERSION="lt_current:lt_revision:lt_age"
21
22PACKAGE=libg3d
23
24AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
25AC_SUBST(VERSION)
26AC_SUBST(LTVERSION)
27
28AC_CONFIG_HEADERS(include/g3d/config.h)
29
30AC_PROG_CC
31AM_PROG_LEX
32AC_HEADER_STDC
33
34AC_DISABLE_STATIC
35
36AM_IS_WIN32
37AM_CONDITIONAL(OS_WIN32, test "$os_win32" = yes)
38
39AC_LIBTOOL_WIN32_DLL
40AC_PROG_LIBTOOL
41
42# gtk-doc
43GTK_DOC_CHECK
44
45# glib
46AM_PATH_GLIB_2_0(2.0.0,,AC_MSG_ERROR([glib >= 2.0 is needed]), gmodule gobject)
47
48# gdk-pixbuf
49AM_PATH_GTK_2_0(2.0.0, have_gtk2=true)
50if test "x$have_gtk2" = "xtrue" ; then
51GDKPIXBUF_CFLAGS=$GTK_CFLAGS
52GDKPIXBUF_LIBS=$GTK_LIBS
53AC_SUBST(GDKPIXBUF_CFLAGS)
54AC_SUBST(GDKPIXBUF_LIBS)
55fi
56AM_CONDITIONAL([HAVE_GDKPIXBUF], test "x$have_gtk2" = "xtrue")
57
58# libxml2
59AM_PATH_XML2(2.0.0, have_libxml2=true)
60if test "x$have_libxml2" = "xtrue" ; then
61LIBXML2_CFLAGS=$XML_CPPFLAGS
62LIBXML2_LIBS=$XML_LIBS
63AC_SUBST(LIBXML2_CFLAGS)
64AC_SUBST(LIBXML2_LIBS)
65fi
66AM_CONDITIONAL([HAVE_LIBXML2], test "x$have_libxml2" = "xtrue")
67
68# libgsf
69PKG_CHECK_MODULES(LIBGSF, libgsf-1 >= 1.0.0,
70 [have_libgsf=true], [have_libgsf=false])
71if test "x$have_libgsf" = "xtrue" ; then
72AC_DEFINE([HAVE_LIBGSF], 1, [have GSF library])
73fi
74AM_CONDITIONAL([HAVE_LIBGSF], test "x$have_libgsf" = "xtrue")
75
76# libmagic
77AC_ARG_ENABLE(libmagic,
78 [[ --disable-libmagic disable file type detection using libmagic]],
79 [if test "$enableval" = "no" ; then disable_libmagic=true ; fi])
80if test "x$disable_libmagic" != "xtrue" ; then
81AC_CHECK_HEADER([magic.h], have_magic_h=true)
82AC_CHECK_LIB([magic], [magic_open], have_magic_open=true)
83if test "x$have_magic_h" = "xtrue" && test "x$have_magic_open" = "xtrue"; then
84have_libmagic=true
85AC_DEFINE([USE_LIBMAGIC], 1, [use libmagic for file type detection])
86AC_DEFINE_DIR([MAGIC_FILENAME], libdir/$PACKAGE/libg3d.magic, [magic file])
87MAGIC_LIBS=-lmagic
88fi
89fi
90AC_SUBST(MAGIC_LIBS)
91#AM_CONDITIONAL([USE_LIBMAGIC], test "x$have_libmagic" = "xtrue")
92
93# libm
94AC_CHECK_LIB(m, sqrt,, [AC_MSG_ERROR([requires math library])])
95MATH_LIBS=-lm
96AC_SUBST(MATH_LIBS)
97
98# zlib
99Z_DIR= Z_LIBS= Z_CFLAGS=
100AC_ARG_WITH(zlib,
101 [[ --with-zlib=DIR use libz in DIR]],
102 [case $withval in
103 yes|no) ;;
104 *) Z_DIR=$withval
105 CPPFLAGS="${CPPFLAGS} -I$withval/include"
106 LDFLAGS="${LDFLAGS} -L$withval/lib"
107 ;;
108 esac])
109if test "x$with_zlib" != xno; then
110 with_zlib=no
111 AC_CHECK_HEADER(zlib.h, [AC_CHECK_LIB(z, gzread, [with_zlib=yes])])
112fi
113if test "x$Z_DIR" != "x"; then
114 Z_CFLAGS="-I$Z_DIR/include"
115 Z_LIBS="-L$Z_DIR/lib -lz"
116else
117 Z_LIBS="-lz"
118fi
119AC_SUBST(Z_CFLAGS)
120AC_SUBST(Z_LIBS)
121if test "$with_zlib" = "yes"; then
122 AC_DEFINE([HAVE_ZLIB], 1, [have zlib])
123fi
124AM_CONDITIONAL([HAVE_ZLIB], test "$with_zlib" = "yes")
125
126# Debug level (verbosity & optimization)
127AC_MSG_CHECKING([for debug level])
128AC_ARG_ENABLE(debug,
129 [[ --enable-debug[=LVL] enable debug level LVL or 1 (default is 0)]],
130 [if test "$enableval" = "yes" ; then DEBUG=1; else DEBUG=$enableval; fi],
131 DEBUG=0)
132AC_MSG_RESULT($DEBUG)
133AC_SUBST(DEBUG)
134
135AC_ARG_ENABLE(experimental,
136 [[ --enable-experimental enable experimental and unfinished plugins]],
137 [if test "x$enableval" = "xyes" ; then experimental=1
138 else experimental=0; fi],
139 experimental=0)
140AM_CONDITIONAL([EXPERIMENTAL], test "x$experimental" = "x1")
141
142AC_ARG_ENABLE(cxxtest,
143 [[ --enable-cxxtest enable C++ test]],
144 [if test "x$enableval" = "xyes" ; then cxxtest=1 else cxxtest=0; fi],
145 cxxtest=0)
146AM_CONDITIONAL([HAVE_CXX], test "x$cxxtest" = "x1")
147
148AC_ARG_ENABLE(profile,
149 [[ --enable-profile enable gprof profiling]],
150 [if test "x$enableval" = "xyes" ; then profile="-pg"
151 else profile=""; fi],
152 profile="")
153
154if test "$DEBUG" = "0"; then
155 DBG_CFLAGS="-O2 $profile"
156else
157 DBG_CFLAGS="-g $profile"
158fi
159AC_SUBST(DBG_CFLAGS)
160
161# plugin directories
162AC_DEFINE_DIR(PLUGIN_DIR, libdir/$PACKAGE/plugins, [Plugin directory])
163
164PLUGINS_LDFLAGS="-avoid-version -export-dynamic"
165AC_SUBST(PLUGINS_LDFLAGS)
166
167AC_OUTPUT(
168 Makefile
169 doc/Makefile
170 doc/api/Makefile
171 doc/support_matrix/Makefile
172 include/Makefile
173 include/g3d/Makefile
174 m4/Makefile
175 plugins/Makefile
176 plugins/image/Makefile
177 plugins/import/Makefile
178 plugins/import/imp_3dm/Makefile
179 plugins/import/imp_3dmf/Makefile
180 plugins/import/imp_3ds/Makefile
181 plugins/import/imp_ac3d/Makefile
182 plugins/import/imp_acf/Makefile
183 plugins/import/imp_ar/Makefile
184 plugins/import/imp_ase/Makefile
185 plugins/import/imp_blend/Makefile
186 plugins/import/imp_c4d/Makefile
187 plugins/import/imp_cob/Makefile
188 plugins/import/imp_dae/Makefile
189 plugins/import/imp_dpm/Makefile
190 plugins/import/imp_dxf/Makefile
191 plugins/import/imp_flt/Makefile
192 plugins/import/imp_glb/Makefile
193 plugins/import/imp_heightfield/Makefile
194 plugins/import/imp_iob/Makefile
195 plugins/import/imp_joe/Makefile
196 plugins/import/imp_kmz/Makefile
197 plugins/import/imp_ldraw/Makefile
198 plugins/import/imp_leocad/Makefile
199 plugins/import/imp_lwo/Makefile
200 plugins/import/imp_max/Makefile
201 plugins/import/imp_maya/Makefile
202 plugins/import/imp_md2/Makefile
203 plugins/import/imp_md3/Makefile
204 plugins/import/imp_nff/Makefile
205 plugins/import/imp_obj/Makefile
206 plugins/import/imp_osm/Makefile
207 plugins/import/imp_q3o/Makefile
208 plugins/import/imp_r4/Makefile
209 plugins/import/imp_rbh/Makefile
210 plugins/import/imp_skp/Makefile
211 plugins/import/imp_stl/Makefile
212 plugins/import/imp_ta/Makefile
213 plugins/import/imp_test/Makefile
214 plugins/import/imp_vrml/Makefile
215 plugins/import/imp_vrml2/Makefile
216 src/Makefile
217 programs/Makefile
218 tests/Makefile
219 libg3d.pc
220)
221
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/Makefile b/src/others/mimesh/libg3d-0.0.8/doc/Makefile
new file mode 100644
index 0000000..a567252
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/Makefile
@@ -0,0 +1,516 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# doc/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17pkgdatadir = $(datadir)/libg3d
18pkglibdir = $(libdir)/libg3d
19pkgincludedir = $(includedir)/libg3d
20am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
21install_sh_DATA = $(install_sh) -c -m 644
22install_sh_PROGRAM = $(install_sh) -c
23install_sh_SCRIPT = $(install_sh) -c
24INSTALL_HEADER = $(INSTALL_DATA)
25transform = $(program_transform_name)
26NORMAL_INSTALL = :
27PRE_INSTALL = :
28POST_INSTALL = :
29NORMAL_UNINSTALL = :
30PRE_UNINSTALL = :
31POST_UNINSTALL = :
32build_triplet = x86_64-unknown-linux-gnu
33host_triplet = x86_64-unknown-linux-gnu
34subdir = doc
35DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
36ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
37am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
38 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
39 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
40 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
41 $(top_srcdir)/configure.in
42am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43 $(ACLOCAL_M4)
44mkinstalldirs = $(install_sh) -d
45CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
46CONFIG_CLEAN_FILES =
47SOURCES =
48DIST_SOURCES =
49RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
50 html-recursive info-recursive install-data-recursive \
51 install-dvi-recursive install-exec-recursive \
52 install-html-recursive install-info-recursive \
53 install-pdf-recursive install-ps-recursive install-recursive \
54 installcheck-recursive installdirs-recursive pdf-recursive \
55 ps-recursive uninstall-recursive
56RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
57 distclean-recursive maintainer-clean-recursive
58ETAGS = etags
59CTAGS = ctags
60DIST_SUBDIRS = $(SUBDIRS)
61DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
62ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
63AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
64AR = ar
65AS = as
66AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
67AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
68AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
69AWK = gawk
70CC = gcc
71CCDEPMODE = depmode=gcc3
72CFLAGS = -g -O2
73CPP = gcc -E
74CPPFLAGS =
75CXX = g++
76CXXCPP = g++ -E
77CXXDEPMODE = depmode=gcc3
78CXXFLAGS = -g -O2
79CYGPATH_W = echo
80DBG_CFLAGS = -O2
81DEBUG = 0
82DEFS = -DHAVE_CONFIG_H
83DEPDIR = .deps
84DLLTOOL = dlltool
85ECHO = echo
86ECHO_C =
87ECHO_N = -n
88ECHO_T =
89EGREP = /bin/grep -E
90EXEEXT =
91F77 =
92FFLAGS =
93GDKPIXBUF_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
94GDKPIXBUF_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
95GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
96GLIB_GENMARSHAL = glib-genmarshal
97GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
98GLIB_MKENUMS = glib-mkenums
99GOBJECT_QUERY = gobject-query
100GREP = /bin/grep
101GTKDOC_CHECK = /usr/bin/gtkdoc-check
102GTK_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
103GTK_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
104HTML_DIR = ${datadir}/gtk-doc/html
105INSTALL = /usr/bin/install -c
106INSTALL_DATA = ${INSTALL} -m 644
107INSTALL_PROGRAM = ${INSTALL}
108INSTALL_SCRIPT = ${INSTALL}
109INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
110LDFLAGS =
111LEX = flex
112LEXLIB = -lfl
113LEX_OUTPUT_ROOT = lex.yy
114LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
115LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
116LIBOBJS =
117LIBS = -lm
118LIBTOOL = $(SHELL) $(top_builddir)/libtool
119LIBXML2_CFLAGS = -I/usr/include/libxml2
120LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
121LN_S = ln -s
122LTLIBOBJS =
123LTVERSION = 0:8:0
124MAGIC_LIBS = -lmagic
125MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
126MATH_LIBS = -lm
127MKDIR_P = /bin/mkdir -p
128OBJDUMP = objdump
129OBJEXT = o
130PACKAGE = libg3d
131PACKAGE_BUGREPORT =
132PACKAGE_NAME =
133PACKAGE_STRING =
134PACKAGE_TARNAME =
135PACKAGE_VERSION =
136PATH_SEPARATOR = :
137PKG_CONFIG = /usr/bin/pkg-config
138PLUGINS_LDFLAGS = -avoid-version -export-dynamic
139RANLIB = ranlib
140SET_MAKE =
141SHELL = /bin/bash
142STRIP = strip
143VERSION = 0.0.8
144XML2_CONFIG = /usr/bin/xml2-config
145XML_CPPFLAGS = -I/usr/include/libxml2
146XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
147Z_CFLAGS =
148Z_LIBS = -lz
149abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/doc
150abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/doc
151abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
152abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
153ac_ct_CC = gcc
154ac_ct_CXX = g++
155ac_ct_F77 =
156am__include = include
157am__leading_dot = .
158am__quote =
159am__tar = ${AMTAR} chof - "$$tardir"
160am__untar = ${AMTAR} xf -
161bindir = ${exec_prefix}/bin
162build = x86_64-unknown-linux-gnu
163build_alias =
164build_cpu = x86_64
165build_os = linux-gnu
166build_vendor = unknown
167builddir = .
168datadir = ${datarootdir}
169datarootdir = ${prefix}/share
170docdir = ${datarootdir}/doc/${PACKAGE}
171dvidir = ${docdir}
172exec_prefix = ${prefix}
173host = x86_64-unknown-linux-gnu
174host_alias =
175host_cpu = x86_64
176host_os = linux-gnu
177host_vendor = unknown
178htmldir = ${docdir}
179includedir = ${prefix}/include
180infodir = ${datarootdir}/info
181install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
182libdir = ${exec_prefix}/lib
183libexecdir = ${exec_prefix}/libexec
184localedir = ${datarootdir}/locale
185localstatedir = ${prefix}/var
186mandir = ${datarootdir}/man
187mkdir_p = /bin/mkdir -p
188oldincludedir = /usr/include
189pdfdir = ${docdir}
190prefix = /usr/local
191program_transform_name = s,x,x,
192psdir = ${docdir}
193sbindir = ${exec_prefix}/sbin
194sharedstatedir = ${prefix}/com
195srcdir = .
196sysconfdir = ${prefix}/etc
197target_alias =
198top_builddir = ..
199top_srcdir = ..
200SUBDIRS = api support_matrix
201EXTRA_DIST = RELEASE-NOTES-0.0.7.txt RELEASE-NOTES-0.0.8.txt
202all: all-recursive
203
204.SUFFIXES:
205$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
206 @for dep in $?; do \
207 case '$(am__configure_deps)' in \
208 *$$dep*) \
209 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
210 && exit 0; \
211 exit 1;; \
212 esac; \
213 done; \
214 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \
215 cd $(top_srcdir) && \
216 $(AUTOMAKE) --gnu doc/Makefile
217.PRECIOUS: Makefile
218Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
219 @case '$?' in \
220 *config.status*) \
221 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
222 *) \
223 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
224 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
225 esac;
226
227$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
228 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
229
230$(top_srcdir)/configure: $(am__configure_deps)
231 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
232$(ACLOCAL_M4): $(am__aclocal_m4_deps)
233 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
234
235mostlyclean-libtool:
236 -rm -f *.lo
237
238clean-libtool:
239 -rm -rf .libs _libs
240
241# This directory's subdirectories are mostly independent; you can cd
242# into them and run `make' without going through this Makefile.
243# To change the values of `make' variables: instead of editing Makefiles,
244# (1) if the variable is set in `config.status', edit `config.status'
245# (which will cause the Makefiles to be regenerated when you run `make');
246# (2) otherwise, pass the desired values on the `make' command line.
247$(RECURSIVE_TARGETS):
248 @failcom='exit 1'; \
249 for f in x $$MAKEFLAGS; do \
250 case $$f in \
251 *=* | --[!k]*);; \
252 *k*) failcom='fail=yes';; \
253 esac; \
254 done; \
255 dot_seen=no; \
256 target=`echo $@ | sed s/-recursive//`; \
257 list='$(SUBDIRS)'; for subdir in $$list; do \
258 echo "Making $$target in $$subdir"; \
259 if test "$$subdir" = "."; then \
260 dot_seen=yes; \
261 local_target="$$target-am"; \
262 else \
263 local_target="$$target"; \
264 fi; \
265 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
266 || eval $$failcom; \
267 done; \
268 if test "$$dot_seen" = "no"; then \
269 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
270 fi; test -z "$$fail"
271
272$(RECURSIVE_CLEAN_TARGETS):
273 @failcom='exit 1'; \
274 for f in x $$MAKEFLAGS; do \
275 case $$f in \
276 *=* | --[!k]*);; \
277 *k*) failcom='fail=yes';; \
278 esac; \
279 done; \
280 dot_seen=no; \
281 case "$@" in \
282 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
283 *) list='$(SUBDIRS)' ;; \
284 esac; \
285 rev=''; for subdir in $$list; do \
286 if test "$$subdir" = "."; then :; else \
287 rev="$$subdir $$rev"; \
288 fi; \
289 done; \
290 rev="$$rev ."; \
291 target=`echo $@ | sed s/-recursive//`; \
292 for subdir in $$rev; do \
293 echo "Making $$target in $$subdir"; \
294 if test "$$subdir" = "."; then \
295 local_target="$$target-am"; \
296 else \
297 local_target="$$target"; \
298 fi; \
299 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
300 || eval $$failcom; \
301 done && test -z "$$fail"
302tags-recursive:
303 list='$(SUBDIRS)'; for subdir in $$list; do \
304 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
305 done
306ctags-recursive:
307 list='$(SUBDIRS)'; for subdir in $$list; do \
308 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
309 done
310
311ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
312 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
313 unique=`for i in $$list; do \
314 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
315 done | \
316 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
317 END { if (nonempty) { for (i in files) print i; }; }'`; \
318 mkid -fID $$unique
319tags: TAGS
320
321TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
322 $(TAGS_FILES) $(LISP)
323 tags=; \
324 here=`pwd`; \
325 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
326 include_option=--etags-include; \
327 empty_fix=.; \
328 else \
329 include_option=--include; \
330 empty_fix=; \
331 fi; \
332 list='$(SUBDIRS)'; for subdir in $$list; do \
333 if test "$$subdir" = .; then :; else \
334 test ! -f $$subdir/TAGS || \
335 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
336 fi; \
337 done; \
338 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
339 unique=`for i in $$list; do \
340 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
341 done | \
342 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
343 END { if (nonempty) { for (i in files) print i; }; }'`; \
344 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
345 test -n "$$unique" || unique=$$empty_fix; \
346 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
347 $$tags $$unique; \
348 fi
349ctags: CTAGS
350CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
351 $(TAGS_FILES) $(LISP)
352 tags=; \
353 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
354 unique=`for i in $$list; do \
355 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
356 done | \
357 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
358 END { if (nonempty) { for (i in files) print i; }; }'`; \
359 test -z "$(CTAGS_ARGS)$$tags$$unique" \
360 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
361 $$tags $$unique
362
363GTAGS:
364 here=`$(am__cd) $(top_builddir) && pwd` \
365 && cd $(top_srcdir) \
366 && gtags -i $(GTAGS_ARGS) $$here
367
368distclean-tags:
369 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
370
371distdir: $(DISTFILES)
372 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
373 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
374 list='$(DISTFILES)'; \
375 dist_files=`for file in $$list; do echo $$file; done | \
376 sed -e "s|^$$srcdirstrip/||;t" \
377 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
378 case $$dist_files in \
379 */*) $(MKDIR_P) `echo "$$dist_files" | \
380 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
381 sort -u` ;; \
382 esac; \
383 for file in $$dist_files; do \
384 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
385 if test -d $$d/$$file; then \
386 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
387 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
388 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
389 fi; \
390 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
391 else \
392 test -f $(distdir)/$$file \
393 || cp -p $$d/$$file $(distdir)/$$file \
394 || exit 1; \
395 fi; \
396 done
397 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
398 if test "$$subdir" = .; then :; else \
399 test -d "$(distdir)/$$subdir" \
400 || $(MKDIR_P) "$(distdir)/$$subdir" \
401 || exit 1; \
402 distdir=`$(am__cd) $(distdir) && pwd`; \
403 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
404 (cd $$subdir && \
405 $(MAKE) $(AM_MAKEFLAGS) \
406 top_distdir="$$top_distdir" \
407 distdir="$$distdir/$$subdir" \
408 am__remove_distdir=: \
409 am__skip_length_check=: \
410 distdir) \
411 || exit 1; \
412 fi; \
413 done
414check-am: all-am
415check: check-recursive
416all-am: Makefile
417installdirs: installdirs-recursive
418installdirs-am:
419install: install-recursive
420install-exec: install-exec-recursive
421install-data: install-data-recursive
422uninstall: uninstall-recursive
423
424install-am: all-am
425 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
426
427installcheck: installcheck-recursive
428install-strip:
429 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
430 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
431 `test -z '$(STRIP)' || \
432 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
433mostlyclean-generic:
434
435clean-generic:
436
437distclean-generic:
438 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
439
440maintainer-clean-generic:
441 @echo "This command is intended for maintainers to use"
442 @echo "it deletes files that may require special tools to rebuild."
443clean: clean-recursive
444
445clean-am: clean-generic clean-libtool mostlyclean-am
446
447distclean: distclean-recursive
448 -rm -f Makefile
449distclean-am: clean-am distclean-generic distclean-tags
450
451dvi: dvi-recursive
452
453dvi-am:
454
455html: html-recursive
456
457info: info-recursive
458
459info-am:
460
461install-data-am:
462
463install-dvi: install-dvi-recursive
464
465install-exec-am:
466
467install-html: install-html-recursive
468
469install-info: install-info-recursive
470
471install-man:
472
473install-pdf: install-pdf-recursive
474
475install-ps: install-ps-recursive
476
477installcheck-am:
478
479maintainer-clean: maintainer-clean-recursive
480 -rm -f Makefile
481maintainer-clean-am: distclean-am maintainer-clean-generic
482
483mostlyclean: mostlyclean-recursive
484
485mostlyclean-am: mostlyclean-generic mostlyclean-libtool
486
487pdf: pdf-recursive
488
489pdf-am:
490
491ps: ps-recursive
492
493ps-am:
494
495uninstall-am:
496
497.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
498 install-strip
499
500.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
501 all all-am check check-am clean clean-generic clean-libtool \
502 ctags ctags-recursive distclean distclean-generic \
503 distclean-libtool distclean-tags distdir dvi dvi-am html \
504 html-am info info-am install install-am install-data \
505 install-data-am install-dvi install-dvi-am install-exec \
506 install-exec-am install-html install-html-am install-info \
507 install-info-am install-man install-pdf install-pdf-am \
508 install-ps install-ps-am install-strip installcheck \
509 installcheck-am installdirs installdirs-am maintainer-clean \
510 maintainer-clean-generic mostlyclean mostlyclean-generic \
511 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
512 uninstall uninstall-am
513
514# Tell versions [3.59,3.63) of GNU make to not export all variables.
515# Otherwise a system limit (for SysV at least) may be exceeded.
516.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/Makefile.am b/src/others/mimesh/libg3d-0.0.8/doc/Makefile.am
new file mode 100644
index 0000000..1d79c1f
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/Makefile.am
@@ -0,0 +1,3 @@
1SUBDIRS = api support_matrix
2
3EXTRA_DIST = RELEASE-NOTES-0.0.7.txt RELEASE-NOTES-0.0.8.txt
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/Makefile.in b/src/others/mimesh/libg3d-0.0.8/doc/Makefile.in
new file mode 100644
index 0000000..2f9ae89
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/Makefile.in
@@ -0,0 +1,516 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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@
16VPATH = @srcdir@
17pkgdatadir = $(datadir)/@PACKAGE@
18pkglibdir = $(libdir)/@PACKAGE@
19pkgincludedir = $(includedir)/@PACKAGE@
20am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
21install_sh_DATA = $(install_sh) -c -m 644
22install_sh_PROGRAM = $(install_sh) -c
23install_sh_SCRIPT = $(install_sh) -c
24INSTALL_HEADER = $(INSTALL_DATA)
25transform = $(program_transform_name)
26NORMAL_INSTALL = :
27PRE_INSTALL = :
28POST_INSTALL = :
29NORMAL_UNINSTALL = :
30PRE_UNINSTALL = :
31POST_UNINSTALL = :
32build_triplet = @build@
33host_triplet = @host@
34subdir = doc
35DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
36ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
37am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
38 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
39 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
40 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
41 $(top_srcdir)/configure.in
42am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43 $(ACLOCAL_M4)
44mkinstalldirs = $(install_sh) -d
45CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
46CONFIG_CLEAN_FILES =
47SOURCES =
48DIST_SOURCES =
49RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
50 html-recursive info-recursive install-data-recursive \
51 install-dvi-recursive install-exec-recursive \
52 install-html-recursive install-info-recursive \
53 install-pdf-recursive install-ps-recursive install-recursive \
54 installcheck-recursive installdirs-recursive pdf-recursive \
55 ps-recursive uninstall-recursive
56RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
57 distclean-recursive maintainer-clean-recursive
58ETAGS = etags
59CTAGS = ctags
60DIST_SUBDIRS = $(SUBDIRS)
61DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
62ACLOCAL = @ACLOCAL@
63AMTAR = @AMTAR@
64AR = @AR@
65AS = @AS@
66AUTOCONF = @AUTOCONF@
67AUTOHEADER = @AUTOHEADER@
68AUTOMAKE = @AUTOMAKE@
69AWK = @AWK@
70CC = @CC@
71CCDEPMODE = @CCDEPMODE@
72CFLAGS = @CFLAGS@
73CPP = @CPP@
74CPPFLAGS = @CPPFLAGS@
75CXX = @CXX@
76CXXCPP = @CXXCPP@
77CXXDEPMODE = @CXXDEPMODE@
78CXXFLAGS = @CXXFLAGS@
79CYGPATH_W = @CYGPATH_W@
80DBG_CFLAGS = @DBG_CFLAGS@
81DEBUG = @DEBUG@
82DEFS = @DEFS@
83DEPDIR = @DEPDIR@
84DLLTOOL = @DLLTOOL@
85ECHO = @ECHO@
86ECHO_C = @ECHO_C@
87ECHO_N = @ECHO_N@
88ECHO_T = @ECHO_T@
89EGREP = @EGREP@
90EXEEXT = @EXEEXT@
91F77 = @F77@
92FFLAGS = @FFLAGS@
93GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
94GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
95GLIB_CFLAGS = @GLIB_CFLAGS@
96GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
97GLIB_LIBS = @GLIB_LIBS@
98GLIB_MKENUMS = @GLIB_MKENUMS@
99GOBJECT_QUERY = @GOBJECT_QUERY@
100GREP = @GREP@
101GTKDOC_CHECK = @GTKDOC_CHECK@
102GTK_CFLAGS = @GTK_CFLAGS@
103GTK_LIBS = @GTK_LIBS@
104HTML_DIR = @HTML_DIR@
105INSTALL = @INSTALL@
106INSTALL_DATA = @INSTALL_DATA@
107INSTALL_PROGRAM = @INSTALL_PROGRAM@
108INSTALL_SCRIPT = @INSTALL_SCRIPT@
109INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
110LDFLAGS = @LDFLAGS@
111LEX = @LEX@
112LEXLIB = @LEXLIB@
113LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
114LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
115LIBGSF_LIBS = @LIBGSF_LIBS@
116LIBOBJS = @LIBOBJS@
117LIBS = @LIBS@
118LIBTOOL = @LIBTOOL@
119LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
120LIBXML2_LIBS = @LIBXML2_LIBS@
121LN_S = @LN_S@
122LTLIBOBJS = @LTLIBOBJS@
123LTVERSION = @LTVERSION@
124MAGIC_LIBS = @MAGIC_LIBS@
125MAKEINFO = @MAKEINFO@
126MATH_LIBS = @MATH_LIBS@
127MKDIR_P = @MKDIR_P@
128OBJDUMP = @OBJDUMP@
129OBJEXT = @OBJEXT@
130PACKAGE = @PACKAGE@
131PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
132PACKAGE_NAME = @PACKAGE_NAME@
133PACKAGE_STRING = @PACKAGE_STRING@
134PACKAGE_TARNAME = @PACKAGE_TARNAME@
135PACKAGE_VERSION = @PACKAGE_VERSION@
136PATH_SEPARATOR = @PATH_SEPARATOR@
137PKG_CONFIG = @PKG_CONFIG@
138PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
139RANLIB = @RANLIB@
140SET_MAKE = @SET_MAKE@
141SHELL = @SHELL@
142STRIP = @STRIP@
143VERSION = @VERSION@
144XML2_CONFIG = @XML2_CONFIG@
145XML_CPPFLAGS = @XML_CPPFLAGS@
146XML_LIBS = @XML_LIBS@
147Z_CFLAGS = @Z_CFLAGS@
148Z_LIBS = @Z_LIBS@
149abs_builddir = @abs_builddir@
150abs_srcdir = @abs_srcdir@
151abs_top_builddir = @abs_top_builddir@
152abs_top_srcdir = @abs_top_srcdir@
153ac_ct_CC = @ac_ct_CC@
154ac_ct_CXX = @ac_ct_CXX@
155ac_ct_F77 = @ac_ct_F77@
156am__include = @am__include@
157am__leading_dot = @am__leading_dot@
158am__quote = @am__quote@
159am__tar = @am__tar@
160am__untar = @am__untar@
161bindir = @bindir@
162build = @build@
163build_alias = @build_alias@
164build_cpu = @build_cpu@
165build_os = @build_os@
166build_vendor = @build_vendor@
167builddir = @builddir@
168datadir = @datadir@
169datarootdir = @datarootdir@
170docdir = @docdir@
171dvidir = @dvidir@
172exec_prefix = @exec_prefix@
173host = @host@
174host_alias = @host_alias@
175host_cpu = @host_cpu@
176host_os = @host_os@
177host_vendor = @host_vendor@
178htmldir = @htmldir@
179includedir = @includedir@
180infodir = @infodir@
181install_sh = @install_sh@
182libdir = @libdir@
183libexecdir = @libexecdir@
184localedir = @localedir@
185localstatedir = @localstatedir@
186mandir = @mandir@
187mkdir_p = @mkdir_p@
188oldincludedir = @oldincludedir@
189pdfdir = @pdfdir@
190prefix = @prefix@
191program_transform_name = @program_transform_name@
192psdir = @psdir@
193sbindir = @sbindir@
194sharedstatedir = @sharedstatedir@
195srcdir = @srcdir@
196sysconfdir = @sysconfdir@
197target_alias = @target_alias@
198top_builddir = @top_builddir@
199top_srcdir = @top_srcdir@
200SUBDIRS = api support_matrix
201EXTRA_DIST = RELEASE-NOTES-0.0.7.txt RELEASE-NOTES-0.0.8.txt
202all: all-recursive
203
204.SUFFIXES:
205$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
206 @for dep in $?; do \
207 case '$(am__configure_deps)' in \
208 *$$dep*) \
209 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
210 && exit 0; \
211 exit 1;; \
212 esac; \
213 done; \
214 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \
215 cd $(top_srcdir) && \
216 $(AUTOMAKE) --gnu doc/Makefile
217.PRECIOUS: Makefile
218Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
219 @case '$?' in \
220 *config.status*) \
221 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
222 *) \
223 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
224 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
225 esac;
226
227$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
228 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
229
230$(top_srcdir)/configure: $(am__configure_deps)
231 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
232$(ACLOCAL_M4): $(am__aclocal_m4_deps)
233 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
234
235mostlyclean-libtool:
236 -rm -f *.lo
237
238clean-libtool:
239 -rm -rf .libs _libs
240
241# This directory's subdirectories are mostly independent; you can cd
242# into them and run `make' without going through this Makefile.
243# To change the values of `make' variables: instead of editing Makefiles,
244# (1) if the variable is set in `config.status', edit `config.status'
245# (which will cause the Makefiles to be regenerated when you run `make');
246# (2) otherwise, pass the desired values on the `make' command line.
247$(RECURSIVE_TARGETS):
248 @failcom='exit 1'; \
249 for f in x $$MAKEFLAGS; do \
250 case $$f in \
251 *=* | --[!k]*);; \
252 *k*) failcom='fail=yes';; \
253 esac; \
254 done; \
255 dot_seen=no; \
256 target=`echo $@ | sed s/-recursive//`; \
257 list='$(SUBDIRS)'; for subdir in $$list; do \
258 echo "Making $$target in $$subdir"; \
259 if test "$$subdir" = "."; then \
260 dot_seen=yes; \
261 local_target="$$target-am"; \
262 else \
263 local_target="$$target"; \
264 fi; \
265 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
266 || eval $$failcom; \
267 done; \
268 if test "$$dot_seen" = "no"; then \
269 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
270 fi; test -z "$$fail"
271
272$(RECURSIVE_CLEAN_TARGETS):
273 @failcom='exit 1'; \
274 for f in x $$MAKEFLAGS; do \
275 case $$f in \
276 *=* | --[!k]*);; \
277 *k*) failcom='fail=yes';; \
278 esac; \
279 done; \
280 dot_seen=no; \
281 case "$@" in \
282 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
283 *) list='$(SUBDIRS)' ;; \
284 esac; \
285 rev=''; for subdir in $$list; do \
286 if test "$$subdir" = "."; then :; else \
287 rev="$$subdir $$rev"; \
288 fi; \
289 done; \
290 rev="$$rev ."; \
291 target=`echo $@ | sed s/-recursive//`; \
292 for subdir in $$rev; do \
293 echo "Making $$target in $$subdir"; \
294 if test "$$subdir" = "."; then \
295 local_target="$$target-am"; \
296 else \
297 local_target="$$target"; \
298 fi; \
299 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
300 || eval $$failcom; \
301 done && test -z "$$fail"
302tags-recursive:
303 list='$(SUBDIRS)'; for subdir in $$list; do \
304 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
305 done
306ctags-recursive:
307 list='$(SUBDIRS)'; for subdir in $$list; do \
308 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
309 done
310
311ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
312 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
313 unique=`for i in $$list; do \
314 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
315 done | \
316 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
317 END { if (nonempty) { for (i in files) print i; }; }'`; \
318 mkid -fID $$unique
319tags: TAGS
320
321TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
322 $(TAGS_FILES) $(LISP)
323 tags=; \
324 here=`pwd`; \
325 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
326 include_option=--etags-include; \
327 empty_fix=.; \
328 else \
329 include_option=--include; \
330 empty_fix=; \
331 fi; \
332 list='$(SUBDIRS)'; for subdir in $$list; do \
333 if test "$$subdir" = .; then :; else \
334 test ! -f $$subdir/TAGS || \
335 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
336 fi; \
337 done; \
338 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
339 unique=`for i in $$list; do \
340 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
341 done | \
342 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
343 END { if (nonempty) { for (i in files) print i; }; }'`; \
344 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
345 test -n "$$unique" || unique=$$empty_fix; \
346 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
347 $$tags $$unique; \
348 fi
349ctags: CTAGS
350CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
351 $(TAGS_FILES) $(LISP)
352 tags=; \
353 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
354 unique=`for i in $$list; do \
355 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
356 done | \
357 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
358 END { if (nonempty) { for (i in files) print i; }; }'`; \
359 test -z "$(CTAGS_ARGS)$$tags$$unique" \
360 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
361 $$tags $$unique
362
363GTAGS:
364 here=`$(am__cd) $(top_builddir) && pwd` \
365 && cd $(top_srcdir) \
366 && gtags -i $(GTAGS_ARGS) $$here
367
368distclean-tags:
369 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
370
371distdir: $(DISTFILES)
372 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
373 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
374 list='$(DISTFILES)'; \
375 dist_files=`for file in $$list; do echo $$file; done | \
376 sed -e "s|^$$srcdirstrip/||;t" \
377 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
378 case $$dist_files in \
379 */*) $(MKDIR_P) `echo "$$dist_files" | \
380 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
381 sort -u` ;; \
382 esac; \
383 for file in $$dist_files; do \
384 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
385 if test -d $$d/$$file; then \
386 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
387 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
388 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
389 fi; \
390 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
391 else \
392 test -f $(distdir)/$$file \
393 || cp -p $$d/$$file $(distdir)/$$file \
394 || exit 1; \
395 fi; \
396 done
397 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
398 if test "$$subdir" = .; then :; else \
399 test -d "$(distdir)/$$subdir" \
400 || $(MKDIR_P) "$(distdir)/$$subdir" \
401 || exit 1; \
402 distdir=`$(am__cd) $(distdir) && pwd`; \
403 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
404 (cd $$subdir && \
405 $(MAKE) $(AM_MAKEFLAGS) \
406 top_distdir="$$top_distdir" \
407 distdir="$$distdir/$$subdir" \
408 am__remove_distdir=: \
409 am__skip_length_check=: \
410 distdir) \
411 || exit 1; \
412 fi; \
413 done
414check-am: all-am
415check: check-recursive
416all-am: Makefile
417installdirs: installdirs-recursive
418installdirs-am:
419install: install-recursive
420install-exec: install-exec-recursive
421install-data: install-data-recursive
422uninstall: uninstall-recursive
423
424install-am: all-am
425 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
426
427installcheck: installcheck-recursive
428install-strip:
429 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
430 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
431 `test -z '$(STRIP)' || \
432 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
433mostlyclean-generic:
434
435clean-generic:
436
437distclean-generic:
438 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
439
440maintainer-clean-generic:
441 @echo "This command is intended for maintainers to use"
442 @echo "it deletes files that may require special tools to rebuild."
443clean: clean-recursive
444
445clean-am: clean-generic clean-libtool mostlyclean-am
446
447distclean: distclean-recursive
448 -rm -f Makefile
449distclean-am: clean-am distclean-generic distclean-tags
450
451dvi: dvi-recursive
452
453dvi-am:
454
455html: html-recursive
456
457info: info-recursive
458
459info-am:
460
461install-data-am:
462
463install-dvi: install-dvi-recursive
464
465install-exec-am:
466
467install-html: install-html-recursive
468
469install-info: install-info-recursive
470
471install-man:
472
473install-pdf: install-pdf-recursive
474
475install-ps: install-ps-recursive
476
477installcheck-am:
478
479maintainer-clean: maintainer-clean-recursive
480 -rm -f Makefile
481maintainer-clean-am: distclean-am maintainer-clean-generic
482
483mostlyclean: mostlyclean-recursive
484
485mostlyclean-am: mostlyclean-generic mostlyclean-libtool
486
487pdf: pdf-recursive
488
489pdf-am:
490
491ps: ps-recursive
492
493ps-am:
494
495uninstall-am:
496
497.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
498 install-strip
499
500.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
501 all all-am check check-am clean clean-generic clean-libtool \
502 ctags ctags-recursive distclean distclean-generic \
503 distclean-libtool distclean-tags distdir dvi dvi-am html \
504 html-am info info-am install install-am install-data \
505 install-data-am install-dvi install-dvi-am install-exec \
506 install-exec-am install-html install-html-am install-info \
507 install-info-am install-man install-pdf install-pdf-am \
508 install-ps install-ps-am install-strip installcheck \
509 installcheck-am installdirs installdirs-am maintainer-clean \
510 maintainer-clean-generic mostlyclean mostlyclean-generic \
511 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
512 uninstall uninstall-am
513
514# Tell versions [3.59,3.63) of GNU make to not export all variables.
515# Otherwise a system limit (for SysV at least) may be exceeded.
516.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/RELEASE-NOTES-0.0.7.txt b/src/others/mimesh/libg3d-0.0.8/doc/RELEASE-NOTES-0.0.7.txt
new file mode 100644
index 0000000..3f53bd0
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/RELEASE-NOTES-0.0.7.txt
@@ -0,0 +1,15 @@
1libg3d 0.0.7 "now or never"
2===========================
3
4While there was a constant flow of changes and additions in the source code
5repository it has been over a year since the last "official" release.
6
7The 0.0.7 release introduces a lot of changes, most notably an abstraction
8of the input stream, a lot of new and updated plugins, a handful of bug
9fixes and some general improvements. Check the ChangeLog for some more
10detailed information or just try it out.
11
12The API should be fairly compatible and stable (and a little expanded),
13the binary interface may have changed - I lost track - so please recompile
14your applications.
15If you are using G3DViewer it is highly recommended to update it as well.
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/RELEASE-NOTES-0.0.8.txt b/src/others/mimesh/libg3d-0.0.8/doc/RELEASE-NOTES-0.0.8.txt
new file mode 100644
index 0000000..89114f6
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/RELEASE-NOTES-0.0.8.txt
@@ -0,0 +1,6 @@
1libg3d 0.0.8 "there is always one bug left"
2===========================================
3
4As it turns out the libg3d release did not build without libgsf support
5enabled. This release mainly fixes the problem but also adds a small API
6documentation update.
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/Makefile b/src/others/mimesh/libg3d-0.0.8/doc/api/Makefile
new file mode 100644
index 0000000..0decd69
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/Makefile
@@ -0,0 +1,538 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# doc/api/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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# -*- mode: makefile -*-
18
19####################################
20# Everything below here is generic #
21####################################
22
23pkgdatadir = $(datadir)/libg3d
24pkglibdir = $(libdir)/libg3d
25pkgincludedir = $(includedir)/libg3d
26am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
27install_sh_DATA = $(install_sh) -c -m 644
28install_sh_PROGRAM = $(install_sh) -c
29install_sh_SCRIPT = $(install_sh) -c
30INSTALL_HEADER = $(INSTALL_DATA)
31transform = $(program_transform_name)
32NORMAL_INSTALL = :
33PRE_INSTALL = :
34POST_INSTALL = :
35NORMAL_UNINSTALL = :
36PRE_UNINSTALL = :
37POST_UNINSTALL = :
38build_triplet = x86_64-unknown-linux-gnu
39host_triplet = x86_64-unknown-linux-gnu
40DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
41 $(top_srcdir)/gtk-doc.make
42subdir = doc/api
43ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
44am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
45 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
46 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
47 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
48 $(top_srcdir)/configure.in
49am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
50 $(ACLOCAL_M4)
51mkinstalldirs = $(install_sh) -d
52CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
53CONFIG_CLEAN_FILES =
54SOURCES =
55DIST_SOURCES =
56DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
57ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
58AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
59AR = ar
60AS = as
61AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
62AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
63AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
64AWK = gawk
65CC = gcc
66CCDEPMODE = depmode=gcc3
67CFLAGS = -g -O2
68CPP = gcc -E
69CPPFLAGS =
70CXX = g++
71CXXCPP = g++ -E
72CXXDEPMODE = depmode=gcc3
73CXXFLAGS = -g -O2
74CYGPATH_W = echo
75DBG_CFLAGS = -O2
76DEBUG = 0
77DEFS = -DHAVE_CONFIG_H
78DEPDIR = .deps
79DLLTOOL = dlltool
80ECHO = echo
81ECHO_C =
82ECHO_N = -n
83ECHO_T =
84EGREP = /bin/grep -E
85EXEEXT =
86F77 =
87FFLAGS =
88GDKPIXBUF_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
89GDKPIXBUF_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
90GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
91GLIB_GENMARSHAL = glib-genmarshal
92GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
93GLIB_MKENUMS = glib-mkenums
94GOBJECT_QUERY = gobject-query
95GREP = /bin/grep
96GTKDOC_CHECK = /usr/bin/gtkdoc-check
97GTK_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
98GTK_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
99HTML_DIR = ${datadir}/gtk-doc/html
100INSTALL = /usr/bin/install -c
101INSTALL_DATA = ${INSTALL} -m 644
102INSTALL_PROGRAM = ${INSTALL}
103INSTALL_SCRIPT = ${INSTALL}
104INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
105LDFLAGS =
106LEX = flex
107LEXLIB = -lfl
108LEX_OUTPUT_ROOT = lex.yy
109LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
110LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
111LIBOBJS =
112LIBS = -lm
113LIBTOOL = $(SHELL) $(top_builddir)/libtool
114LIBXML2_CFLAGS = -I/usr/include/libxml2
115LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
116LN_S = ln -s
117LTLIBOBJS =
118LTVERSION = 0:8:0
119MAGIC_LIBS = -lmagic
120MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
121MATH_LIBS = -lm
122MKDIR_P = /bin/mkdir -p
123OBJDUMP = objdump
124OBJEXT = o
125PACKAGE = libg3d
126PACKAGE_BUGREPORT =
127PACKAGE_NAME =
128PACKAGE_STRING =
129PACKAGE_TARNAME =
130PACKAGE_VERSION =
131PATH_SEPARATOR = :
132PKG_CONFIG = /usr/bin/pkg-config
133PLUGINS_LDFLAGS = -avoid-version -export-dynamic
134RANLIB = ranlib
135SET_MAKE =
136SHELL = /bin/bash
137STRIP = strip
138VERSION = 0.0.8
139XML2_CONFIG = /usr/bin/xml2-config
140XML_CPPFLAGS = -I/usr/include/libxml2
141XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
142Z_CFLAGS =
143Z_LIBS = -lz
144abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/doc/api
145abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/doc/api
146abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
147abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
148ac_ct_CC = gcc
149ac_ct_CXX = g++
150ac_ct_F77 =
151am__include = include
152am__leading_dot = .
153am__quote =
154am__tar = ${AMTAR} chof - "$$tardir"
155am__untar = ${AMTAR} xf -
156bindir = ${exec_prefix}/bin
157build = x86_64-unknown-linux-gnu
158build_alias =
159build_cpu = x86_64
160build_os = linux-gnu
161build_vendor = unknown
162builddir = .
163datadir = ${datarootdir}
164datarootdir = ${prefix}/share
165docdir = ${datarootdir}/doc/${PACKAGE}
166dvidir = ${docdir}
167exec_prefix = ${prefix}
168host = x86_64-unknown-linux-gnu
169host_alias =
170host_cpu = x86_64
171host_os = linux-gnu
172host_vendor = unknown
173htmldir = ${docdir}
174includedir = ${prefix}/include
175infodir = ${datarootdir}/info
176install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
177libdir = ${exec_prefix}/lib
178libexecdir = ${exec_prefix}/libexec
179localedir = ${datarootdir}/locale
180localstatedir = ${prefix}/var
181mandir = ${datarootdir}/man
182mkdir_p = /bin/mkdir -p
183oldincludedir = /usr/include
184pdfdir = ${docdir}
185prefix = /usr/local
186program_transform_name = s,x,x,
187psdir = ${docdir}
188sbindir = ${exec_prefix}/sbin
189sharedstatedir = ${prefix}/com
190srcdir = .
191sysconfdir = ${prefix}/etc
192target_alias =
193top_builddir = ../..
194top_srcdir = ../..
195AUTOMAKE_OPTIONS = 1.6
196DOC_MODULE = libg3d
197DOC_MAIN_SGML_FILE = $(DOC_MODULE)-docs.sgml
198DOC_SOURCE_DIR = ../../include/g3d
199SCANGOBJ_OPTIONS =
200SCAN_OPTIONS =
201MKDB_OPTIONS = --ignore-files="${MKDB_IGNORE}" --sgml-mode --output-format=xml
202MKTMPL_OPTIONS =
203FIXXREF_OPTIONS =
204CFILE_GLOB =
205HFILE_GLOB = $(top_srcdir)/include/g3d/*.h
206IGNORE_HFILES = config.h config.h
207HTML_IMAGES =
208content_files =
209expand_content_files =
210AM_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
211INCLUDES = -I$(top_srcdir)/include
212GTKDOC_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
213#GTKDOC_CC = $(CC) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
214GTKDOC_CC = $(LIBTOOL) --mode=compile $(CC) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
215#GTKDOC_LD = $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS)
216GTKDOC_LD = $(LIBTOOL) --mode=link $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS)
217
218# We set GPATH here; this gives us semantics for GNU make
219# which are more like other make's VPATH, when it comes to
220# whether a source that is a target of one rule is then
221# searched for in VPATH/GPATH.
222#
223GPATH = $(srcdir)
224TARGET_DIR = $(HTML_DIR)/$(DOC_MODULE)
225EXTRA_DIST = $(content_files) $(HTML_IMAGES) $(DOC_MAIN_SGML_FILE) \
226 $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt
227DOC_STAMPS = scan-build.stamp tmpl-build.stamp sgml-build.stamp html-build.stamp \
228 $(srcdir)/tmpl.stamp $(srcdir)/sgml.stamp $(srcdir)/html.stamp
229
230SCANOBJ_FILES = \
231 $(DOC_MODULE).args \
232 $(DOC_MODULE).hierarchy \
233 $(DOC_MODULE).interfaces \
234 $(DOC_MODULE).prerequisites \
235 $(DOC_MODULE).signals
236
237REPORT_FILES = \
238 $(DOC_MODULE)-undocumented.txt \
239 $(DOC_MODULE)-undeclared.txt \
240 $(DOC_MODULE)-unused.txt
241
242CLEANFILES = $(SCANOBJ_FILES) $(REPORT_FILES) $(DOC_STAMPS)
243all: all-am
244
245.SUFFIXES:
246$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/gtk-doc.make $(am__configure_deps)
247 @for dep in $?; do \
248 case '$(am__configure_deps)' in \
249 *$$dep*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
251 && exit 0; \
252 exit 1;; \
253 esac; \
254 done; \
255 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/api/Makefile'; \
256 cd $(top_srcdir) && \
257 $(AUTOMAKE) --gnu doc/api/Makefile
258.PRECIOUS: Makefile
259Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
260 @case '$?' in \
261 *config.status*) \
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
263 *) \
264 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
265 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
266 esac;
267
268$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
269 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
270
271$(top_srcdir)/configure: $(am__configure_deps)
272 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
273$(ACLOCAL_M4): $(am__aclocal_m4_deps)
274 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
275
276mostlyclean-libtool:
277 -rm -f *.lo
278
279clean-libtool:
280 -rm -rf .libs _libs
281tags: TAGS
282TAGS:
283
284ctags: CTAGS
285CTAGS:
286
287
288distdir: $(DISTFILES)
289 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
290 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
291 list='$(DISTFILES)'; \
292 dist_files=`for file in $$list; do echo $$file; done | \
293 sed -e "s|^$$srcdirstrip/||;t" \
294 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
295 case $$dist_files in \
296 */*) $(MKDIR_P) `echo "$$dist_files" | \
297 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
298 sort -u` ;; \
299 esac; \
300 for file in $$dist_files; do \
301 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
302 if test -d $$d/$$file; then \
303 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
304 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
305 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
306 fi; \
307 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
308 else \
309 test -f $(distdir)/$$file \
310 || cp -p $$d/$$file $(distdir)/$$file \
311 || exit 1; \
312 fi; \
313 done
314 $(MAKE) $(AM_MAKEFLAGS) \
315 top_distdir="$(top_distdir)" distdir="$(distdir)" \
316 dist-hook
317check-am: all-am
318check: check-am
319all-am: Makefile all-local
320installdirs:
321install: install-am
322install-exec: install-exec-am
323install-data: install-data-am
324uninstall: uninstall-am
325
326install-am: all-am
327 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
328
329installcheck: installcheck-am
330install-strip:
331 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
332 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
333 `test -z '$(STRIP)' || \
334 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
335mostlyclean-generic:
336
337clean-generic:
338 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
339
340distclean-generic:
341 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
342
343maintainer-clean-generic:
344 @echo "This command is intended for maintainers to use"
345 @echo "it deletes files that may require special tools to rebuild."
346clean: clean-am
347
348clean-am: clean-generic clean-libtool clean-local mostlyclean-am
349
350distclean: distclean-am
351 -rm -f Makefile
352distclean-am: clean-am distclean-generic distclean-local
353
354dvi: dvi-am
355
356dvi-am:
357
358html: html-am
359
360info: info-am
361
362info-am:
363
364install-data-am: install-data-local
365
366install-dvi: install-dvi-am
367
368install-exec-am:
369
370install-html: install-html-am
371
372install-info: install-info-am
373
374install-man:
375
376install-pdf: install-pdf-am
377
378install-ps: install-ps-am
379
380installcheck-am:
381
382maintainer-clean: maintainer-clean-am
383 -rm -f Makefile
384maintainer-clean-am: distclean-am maintainer-clean-generic \
385 maintainer-clean-local
386
387mostlyclean: mostlyclean-am
388
389mostlyclean-am: mostlyclean-generic mostlyclean-libtool
390
391pdf: pdf-am
392
393pdf-am:
394
395ps: ps-am
396
397ps-am:
398
399uninstall-am: uninstall-local
400
401.MAKE: install-am install-strip
402
403.PHONY: all all-am all-local check check-am clean clean-generic \
404 clean-libtool clean-local dist-hook distclean \
405 distclean-generic distclean-libtool distclean-local distdir \
406 dvi dvi-am html html-am info info-am install install-am \
407 install-data install-data-am install-data-local install-dvi \
408 install-dvi-am install-exec install-exec-am install-html \
409 install-html-am install-info install-info-am install-man \
410 install-pdf install-pdf-am install-ps install-ps-am \
411 install-strip installcheck installcheck-am installdirs \
412 maintainer-clean maintainer-clean-generic \
413 maintainer-clean-local mostlyclean mostlyclean-generic \
414 mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
415 uninstall-local
416
417
418#all-local: html-build.stamp
419all-local:
420
421docs: html-build.stamp
422
423#### scan ####
424
425scan-build.stamp: $(HFILE_GLOB) $(CFILE_GLOB)
426 @echo 'gtk-doc: Scanning header files'
427 @-chmod -R u+w $(srcdir)
428 cd $(srcdir) && \
429 gtkdoc-scan --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --ignore-headers="$(IGNORE_HFILES)" $(SCAN_OPTIONS) $(EXTRA_HFILES)
430 if grep -l '^..*$$' $(srcdir)/$(DOC_MODULE).types > /dev/null 2>&1 ; then \
431 CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" CFLAGS="$(GTKDOC_CFLAGS)" LDFLAGS="$(GTKDOC_LIBS)" gtkdoc-scangobj $(SCANGOBJ_OPTIONS) --module=$(DOC_MODULE) --output-dir=$(srcdir) ; \
432 else \
433 cd $(srcdir) ; \
434 for i in $(SCANOBJ_FILES) ; do \
435 test -f $$i || touch $$i ; \
436 done \
437 fi
438 touch scan-build.stamp
439
440$(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt: scan-build.stamp
441 @true
442
443#### templates ####
444
445tmpl-build.stamp: $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt
446 @echo 'gtk-doc: Rebuilding template files'
447 @-chmod -R u+w $(srcdir)
448 cd $(srcdir) && gtkdoc-mktmpl --module=$(DOC_MODULE) $(MKTMPL_OPTIONS)
449 touch tmpl-build.stamp
450
451tmpl.stamp: tmpl-build.stamp
452 @true
453
454tmpl/*.sgml:
455 @true
456
457#### xml ####
458
459sgml-build.stamp: tmpl.stamp $(HFILE_GLOB) $(CFILE_GLOB) $(DOC_MODULE)-sections.txt $(srcdir)/tmpl/*.sgml $(expand_content_files)
460 @echo 'gtk-doc: Building XML'
461 @-chmod -R u+w $(srcdir)
462 cd $(srcdir) && \
463 gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --output-format=xml --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) $(MKDB_OPTIONS)
464 touch sgml-build.stamp
465
466sgml.stamp: sgml-build.stamp
467 @true
468
469#### html ####
470
471html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
472 @echo 'gtk-doc: Building HTML'
473 @-chmod -R u+w $(srcdir)
474 rm -rf $(srcdir)/html
475 mkdir $(srcdir)/html
476 cd $(srcdir)/html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
477 test "x$(HTML_IMAGES)" = "x" || ( cd $(srcdir) && cp $(HTML_IMAGES) html )
478 @echo 'gtk-doc: Fixing cross-references'
479 cd $(srcdir) && gtkdoc-fixxref --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
480 touch html-build.stamp
481
482##############
483
484clean-local:
485 rm -f *~ *.bak
486 rm -rf .libs
487
488distclean-local:
489 cd $(srcdir) && \
490 rm -rf xml $(REPORT_FILES) \
491 $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
492
493maintainer-clean-local: clean
494 cd $(srcdir) && rm -rf xml html
495
496install-data-local:
497 -installfiles=`echo $(srcdir)/html/*`; \
498 if test "$$installfiles" = '$(srcdir)/html/*'; \
499 then echo '-- Nothing to install' ; \
500 else \
501 $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR); \
502 for i in $$installfiles; do \
503 echo '-- Installing '$$i ; \
504 $(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR); \
505 done; \
506 echo '-- Installing $(srcdir)/html/index.sgml' ; \
507 $(INSTALL_DATA) $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR) || :; \
508 which gtkdoc-rebase >/dev/null && \
509 gtkdoc-rebase --relative --dest-dir=$(DESTDIR) --html-dir=$(DESTDIR)$(TARGET_DIR) ; \
510 fi
511
512uninstall-local:
513 rm -f $(DESTDIR)$(TARGET_DIR)/*
514
515#
516# Require gtk-doc when making dist
517#
518#dist-check-gtkdoc:
519dist-check-gtkdoc:
520 @echo "*** gtk-doc must be installed and enabled in order to make dist"
521 @false
522
523dist-hook: dist-check-gtkdoc dist-hook-local
524 mkdir $(distdir)/tmpl
525 mkdir $(distdir)/xml
526 mkdir $(distdir)/html
527 -cp $(srcdir)/tmpl/*.sgml $(distdir)/tmpl
528 -cp $(srcdir)/xml/*.xml $(distdir)/xml
529 cp $(srcdir)/html/* $(distdir)/html
530 -cp $(srcdir)/$(DOC_MODULE).types $(distdir)/
531 -cp $(srcdir)/$(DOC_MODULE)-sections.txt $(distdir)/
532 cd $(distdir) && rm -f $(DISTCLEANFILES)
533 -gtkdoc-rebase --online --relative --html-dir=$(distdir)/html
534
535.PHONY : dist-hook-local docs
536# Tell versions [3.59,3.63) of GNU make to not export all variables.
537# Otherwise a system limit (for SysV at least) may be exceeded.
538.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/Makefile.am b/src/others/mimesh/libg3d-0.0.8/doc/api/Makefile.am
new file mode 100644
index 0000000..3b5cd6c
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/Makefile.am
@@ -0,0 +1,37 @@
1AUTOMAKE_OPTIONS = 1.6
2
3DOC_MODULE = libg3d
4
5DOC_MAIN_SGML_FILE = $(DOC_MODULE)-docs.sgml
6
7DOC_SOURCE_DIR = ../../include/g3d
8
9SCANGOBJ_OPTIONS =
10
11SCAN_OPTIONS =
12
13MKDB_OPTIONS = --ignore-files="${MKDB_IGNORE}" --sgml-mode --output-format=xml
14
15MKTMPL_OPTIONS =
16
17FIXXREF_OPTIONS =
18
19CFILE_GLOB =
20HFILE_GLOB = $(top_srcdir)/include/g3d/*.h
21
22IGNORE_HFILES = config.h config.h
23
24HTML_IMAGES =
25
26content_files =
27
28expand_content_files =
29
30AM_CFLAGS = @GLIB_CFLAGS@
31INCLUDES = -I$(top_srcdir)/include
32GTKDOC_LIBS = @GLIB_LIBS@
33
34include $(top_srcdir)/gtk-doc.make
35
36EXTRA_DIST +=
37
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/Makefile.in b/src/others/mimesh/libg3d-0.0.8/doc/api/Makefile.in
new file mode 100644
index 0000000..6d2e841
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/Makefile.in
@@ -0,0 +1,538 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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# -*- mode: makefile -*-
18
19####################################
20# Everything below here is generic #
21####################################
22VPATH = @srcdir@
23pkgdatadir = $(datadir)/@PACKAGE@
24pkglibdir = $(libdir)/@PACKAGE@
25pkgincludedir = $(includedir)/@PACKAGE@
26am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
27install_sh_DATA = $(install_sh) -c -m 644
28install_sh_PROGRAM = $(install_sh) -c
29install_sh_SCRIPT = $(install_sh) -c
30INSTALL_HEADER = $(INSTALL_DATA)
31transform = $(program_transform_name)
32NORMAL_INSTALL = :
33PRE_INSTALL = :
34POST_INSTALL = :
35NORMAL_UNINSTALL = :
36PRE_UNINSTALL = :
37POST_UNINSTALL = :
38build_triplet = @build@
39host_triplet = @host@
40DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
41 $(top_srcdir)/gtk-doc.make
42subdir = doc/api
43ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
44am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
45 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
46 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
47 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
48 $(top_srcdir)/configure.in
49am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
50 $(ACLOCAL_M4)
51mkinstalldirs = $(install_sh) -d
52CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
53CONFIG_CLEAN_FILES =
54SOURCES =
55DIST_SOURCES =
56DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
57ACLOCAL = @ACLOCAL@
58AMTAR = @AMTAR@
59AR = @AR@
60AS = @AS@
61AUTOCONF = @AUTOCONF@
62AUTOHEADER = @AUTOHEADER@
63AUTOMAKE = @AUTOMAKE@
64AWK = @AWK@
65CC = @CC@
66CCDEPMODE = @CCDEPMODE@
67CFLAGS = @CFLAGS@
68CPP = @CPP@
69CPPFLAGS = @CPPFLAGS@
70CXX = @CXX@
71CXXCPP = @CXXCPP@
72CXXDEPMODE = @CXXDEPMODE@
73CXXFLAGS = @CXXFLAGS@
74CYGPATH_W = @CYGPATH_W@
75DBG_CFLAGS = @DBG_CFLAGS@
76DEBUG = @DEBUG@
77DEFS = @DEFS@
78DEPDIR = @DEPDIR@
79DLLTOOL = @DLLTOOL@
80ECHO = @ECHO@
81ECHO_C = @ECHO_C@
82ECHO_N = @ECHO_N@
83ECHO_T = @ECHO_T@
84EGREP = @EGREP@
85EXEEXT = @EXEEXT@
86F77 = @F77@
87FFLAGS = @FFLAGS@
88GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
89GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
90GLIB_CFLAGS = @GLIB_CFLAGS@
91GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
92GLIB_LIBS = @GLIB_LIBS@
93GLIB_MKENUMS = @GLIB_MKENUMS@
94GOBJECT_QUERY = @GOBJECT_QUERY@
95GREP = @GREP@
96GTKDOC_CHECK = @GTKDOC_CHECK@
97GTK_CFLAGS = @GTK_CFLAGS@
98GTK_LIBS = @GTK_LIBS@
99HTML_DIR = @HTML_DIR@
100INSTALL = @INSTALL@
101INSTALL_DATA = @INSTALL_DATA@
102INSTALL_PROGRAM = @INSTALL_PROGRAM@
103INSTALL_SCRIPT = @INSTALL_SCRIPT@
104INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
105LDFLAGS = @LDFLAGS@
106LEX = @LEX@
107LEXLIB = @LEXLIB@
108LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
109LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
110LIBGSF_LIBS = @LIBGSF_LIBS@
111LIBOBJS = @LIBOBJS@
112LIBS = @LIBS@
113LIBTOOL = @LIBTOOL@
114LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
115LIBXML2_LIBS = @LIBXML2_LIBS@
116LN_S = @LN_S@
117LTLIBOBJS = @LTLIBOBJS@
118LTVERSION = @LTVERSION@
119MAGIC_LIBS = @MAGIC_LIBS@
120MAKEINFO = @MAKEINFO@
121MATH_LIBS = @MATH_LIBS@
122MKDIR_P = @MKDIR_P@
123OBJDUMP = @OBJDUMP@
124OBJEXT = @OBJEXT@
125PACKAGE = @PACKAGE@
126PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
127PACKAGE_NAME = @PACKAGE_NAME@
128PACKAGE_STRING = @PACKAGE_STRING@
129PACKAGE_TARNAME = @PACKAGE_TARNAME@
130PACKAGE_VERSION = @PACKAGE_VERSION@
131PATH_SEPARATOR = @PATH_SEPARATOR@
132PKG_CONFIG = @PKG_CONFIG@
133PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
134RANLIB = @RANLIB@
135SET_MAKE = @SET_MAKE@
136SHELL = @SHELL@
137STRIP = @STRIP@
138VERSION = @VERSION@
139XML2_CONFIG = @XML2_CONFIG@
140XML_CPPFLAGS = @XML_CPPFLAGS@
141XML_LIBS = @XML_LIBS@
142Z_CFLAGS = @Z_CFLAGS@
143Z_LIBS = @Z_LIBS@
144abs_builddir = @abs_builddir@
145abs_srcdir = @abs_srcdir@
146abs_top_builddir = @abs_top_builddir@
147abs_top_srcdir = @abs_top_srcdir@
148ac_ct_CC = @ac_ct_CC@
149ac_ct_CXX = @ac_ct_CXX@
150ac_ct_F77 = @ac_ct_F77@
151am__include = @am__include@
152am__leading_dot = @am__leading_dot@
153am__quote = @am__quote@
154am__tar = @am__tar@
155am__untar = @am__untar@
156bindir = @bindir@
157build = @build@
158build_alias = @build_alias@
159build_cpu = @build_cpu@
160build_os = @build_os@
161build_vendor = @build_vendor@
162builddir = @builddir@
163datadir = @datadir@
164datarootdir = @datarootdir@
165docdir = @docdir@
166dvidir = @dvidir@
167exec_prefix = @exec_prefix@
168host = @host@
169host_alias = @host_alias@
170host_cpu = @host_cpu@
171host_os = @host_os@
172host_vendor = @host_vendor@
173htmldir = @htmldir@
174includedir = @includedir@
175infodir = @infodir@
176install_sh = @install_sh@
177libdir = @libdir@
178libexecdir = @libexecdir@
179localedir = @localedir@
180localstatedir = @localstatedir@
181mandir = @mandir@
182mkdir_p = @mkdir_p@
183oldincludedir = @oldincludedir@
184pdfdir = @pdfdir@
185prefix = @prefix@
186program_transform_name = @program_transform_name@
187psdir = @psdir@
188sbindir = @sbindir@
189sharedstatedir = @sharedstatedir@
190srcdir = @srcdir@
191sysconfdir = @sysconfdir@
192target_alias = @target_alias@
193top_builddir = @top_builddir@
194top_srcdir = @top_srcdir@
195AUTOMAKE_OPTIONS = 1.6
196DOC_MODULE = libg3d
197DOC_MAIN_SGML_FILE = $(DOC_MODULE)-docs.sgml
198DOC_SOURCE_DIR = ../../include/g3d
199SCANGOBJ_OPTIONS =
200SCAN_OPTIONS =
201MKDB_OPTIONS = --ignore-files="${MKDB_IGNORE}" --sgml-mode --output-format=xml
202MKTMPL_OPTIONS =
203FIXXREF_OPTIONS =
204CFILE_GLOB =
205HFILE_GLOB = $(top_srcdir)/include/g3d/*.h
206IGNORE_HFILES = config.h config.h
207HTML_IMAGES =
208content_files =
209expand_content_files =
210AM_CFLAGS = @GLIB_CFLAGS@
211INCLUDES = -I$(top_srcdir)/include
212GTKDOC_LIBS = @GLIB_LIBS@
213@GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_CC = $(CC) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
214@GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_CC = $(LIBTOOL) --mode=compile $(CC) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
215@GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_LD = $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS)
216@GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_LD = $(LIBTOOL) --mode=link $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS)
217
218# We set GPATH here; this gives us semantics for GNU make
219# which are more like other make's VPATH, when it comes to
220# whether a source that is a target of one rule is then
221# searched for in VPATH/GPATH.
222#
223GPATH = $(srcdir)
224TARGET_DIR = $(HTML_DIR)/$(DOC_MODULE)
225EXTRA_DIST = $(content_files) $(HTML_IMAGES) $(DOC_MAIN_SGML_FILE) \
226 $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt
227DOC_STAMPS = scan-build.stamp tmpl-build.stamp sgml-build.stamp html-build.stamp \
228 $(srcdir)/tmpl.stamp $(srcdir)/sgml.stamp $(srcdir)/html.stamp
229
230SCANOBJ_FILES = \
231 $(DOC_MODULE).args \
232 $(DOC_MODULE).hierarchy \
233 $(DOC_MODULE).interfaces \
234 $(DOC_MODULE).prerequisites \
235 $(DOC_MODULE).signals
236
237REPORT_FILES = \
238 $(DOC_MODULE)-undocumented.txt \
239 $(DOC_MODULE)-undeclared.txt \
240 $(DOC_MODULE)-unused.txt
241
242CLEANFILES = $(SCANOBJ_FILES) $(REPORT_FILES) $(DOC_STAMPS)
243all: all-am
244
245.SUFFIXES:
246$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/gtk-doc.make $(am__configure_deps)
247 @for dep in $?; do \
248 case '$(am__configure_deps)' in \
249 *$$dep*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
251 && exit 0; \
252 exit 1;; \
253 esac; \
254 done; \
255 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/api/Makefile'; \
256 cd $(top_srcdir) && \
257 $(AUTOMAKE) --gnu doc/api/Makefile
258.PRECIOUS: Makefile
259Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
260 @case '$?' in \
261 *config.status*) \
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
263 *) \
264 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
265 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
266 esac;
267
268$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
269 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
270
271$(top_srcdir)/configure: $(am__configure_deps)
272 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
273$(ACLOCAL_M4): $(am__aclocal_m4_deps)
274 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
275
276mostlyclean-libtool:
277 -rm -f *.lo
278
279clean-libtool:
280 -rm -rf .libs _libs
281tags: TAGS
282TAGS:
283
284ctags: CTAGS
285CTAGS:
286
287
288distdir: $(DISTFILES)
289 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
290 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
291 list='$(DISTFILES)'; \
292 dist_files=`for file in $$list; do echo $$file; done | \
293 sed -e "s|^$$srcdirstrip/||;t" \
294 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
295 case $$dist_files in \
296 */*) $(MKDIR_P) `echo "$$dist_files" | \
297 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
298 sort -u` ;; \
299 esac; \
300 for file in $$dist_files; do \
301 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
302 if test -d $$d/$$file; then \
303 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
304 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
305 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
306 fi; \
307 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
308 else \
309 test -f $(distdir)/$$file \
310 || cp -p $$d/$$file $(distdir)/$$file \
311 || exit 1; \
312 fi; \
313 done
314 $(MAKE) $(AM_MAKEFLAGS) \
315 top_distdir="$(top_distdir)" distdir="$(distdir)" \
316 dist-hook
317check-am: all-am
318check: check-am
319all-am: Makefile all-local
320installdirs:
321install: install-am
322install-exec: install-exec-am
323install-data: install-data-am
324uninstall: uninstall-am
325
326install-am: all-am
327 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
328
329installcheck: installcheck-am
330install-strip:
331 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
332 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
333 `test -z '$(STRIP)' || \
334 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
335mostlyclean-generic:
336
337clean-generic:
338 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
339
340distclean-generic:
341 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
342
343maintainer-clean-generic:
344 @echo "This command is intended for maintainers to use"
345 @echo "it deletes files that may require special tools to rebuild."
346clean: clean-am
347
348clean-am: clean-generic clean-libtool clean-local mostlyclean-am
349
350distclean: distclean-am
351 -rm -f Makefile
352distclean-am: clean-am distclean-generic distclean-local
353
354dvi: dvi-am
355
356dvi-am:
357
358html: html-am
359
360info: info-am
361
362info-am:
363
364install-data-am: install-data-local
365
366install-dvi: install-dvi-am
367
368install-exec-am:
369
370install-html: install-html-am
371
372install-info: install-info-am
373
374install-man:
375
376install-pdf: install-pdf-am
377
378install-ps: install-ps-am
379
380installcheck-am:
381
382maintainer-clean: maintainer-clean-am
383 -rm -f Makefile
384maintainer-clean-am: distclean-am maintainer-clean-generic \
385 maintainer-clean-local
386
387mostlyclean: mostlyclean-am
388
389mostlyclean-am: mostlyclean-generic mostlyclean-libtool
390
391pdf: pdf-am
392
393pdf-am:
394
395ps: ps-am
396
397ps-am:
398
399uninstall-am: uninstall-local
400
401.MAKE: install-am install-strip
402
403.PHONY: all all-am all-local check check-am clean clean-generic \
404 clean-libtool clean-local dist-hook distclean \
405 distclean-generic distclean-libtool distclean-local distdir \
406 dvi dvi-am html html-am info info-am install install-am \
407 install-data install-data-am install-data-local install-dvi \
408 install-dvi-am install-exec install-exec-am install-html \
409 install-html-am install-info install-info-am install-man \
410 install-pdf install-pdf-am install-ps install-ps-am \
411 install-strip installcheck installcheck-am installdirs \
412 maintainer-clean maintainer-clean-generic \
413 maintainer-clean-local mostlyclean mostlyclean-generic \
414 mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
415 uninstall-local
416
417
418@ENABLE_GTK_DOC_TRUE@all-local: html-build.stamp
419@ENABLE_GTK_DOC_FALSE@all-local:
420
421docs: html-build.stamp
422
423#### scan ####
424
425scan-build.stamp: $(HFILE_GLOB) $(CFILE_GLOB)
426 @echo 'gtk-doc: Scanning header files'
427 @-chmod -R u+w $(srcdir)
428 cd $(srcdir) && \
429 gtkdoc-scan --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --ignore-headers="$(IGNORE_HFILES)" $(SCAN_OPTIONS) $(EXTRA_HFILES)
430 if grep -l '^..*$$' $(srcdir)/$(DOC_MODULE).types > /dev/null 2>&1 ; then \
431 CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" CFLAGS="$(GTKDOC_CFLAGS)" LDFLAGS="$(GTKDOC_LIBS)" gtkdoc-scangobj $(SCANGOBJ_OPTIONS) --module=$(DOC_MODULE) --output-dir=$(srcdir) ; \
432 else \
433 cd $(srcdir) ; \
434 for i in $(SCANOBJ_FILES) ; do \
435 test -f $$i || touch $$i ; \
436 done \
437 fi
438 touch scan-build.stamp
439
440$(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt: scan-build.stamp
441 @true
442
443#### templates ####
444
445tmpl-build.stamp: $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt
446 @echo 'gtk-doc: Rebuilding template files'
447 @-chmod -R u+w $(srcdir)
448 cd $(srcdir) && gtkdoc-mktmpl --module=$(DOC_MODULE) $(MKTMPL_OPTIONS)
449 touch tmpl-build.stamp
450
451tmpl.stamp: tmpl-build.stamp
452 @true
453
454tmpl/*.sgml:
455 @true
456
457#### xml ####
458
459sgml-build.stamp: tmpl.stamp $(HFILE_GLOB) $(CFILE_GLOB) $(DOC_MODULE)-sections.txt $(srcdir)/tmpl/*.sgml $(expand_content_files)
460 @echo 'gtk-doc: Building XML'
461 @-chmod -R u+w $(srcdir)
462 cd $(srcdir) && \
463 gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --output-format=xml --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) $(MKDB_OPTIONS)
464 touch sgml-build.stamp
465
466sgml.stamp: sgml-build.stamp
467 @true
468
469#### html ####
470
471html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
472 @echo 'gtk-doc: Building HTML'
473 @-chmod -R u+w $(srcdir)
474 rm -rf $(srcdir)/html
475 mkdir $(srcdir)/html
476 cd $(srcdir)/html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
477 test "x$(HTML_IMAGES)" = "x" || ( cd $(srcdir) && cp $(HTML_IMAGES) html )
478 @echo 'gtk-doc: Fixing cross-references'
479 cd $(srcdir) && gtkdoc-fixxref --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
480 touch html-build.stamp
481
482##############
483
484clean-local:
485 rm -f *~ *.bak
486 rm -rf .libs
487
488distclean-local:
489 cd $(srcdir) && \
490 rm -rf xml $(REPORT_FILES) \
491 $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
492
493maintainer-clean-local: clean
494 cd $(srcdir) && rm -rf xml html
495
496install-data-local:
497 -installfiles=`echo $(srcdir)/html/*`; \
498 if test "$$installfiles" = '$(srcdir)/html/*'; \
499 then echo '-- Nothing to install' ; \
500 else \
501 $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR); \
502 for i in $$installfiles; do \
503 echo '-- Installing '$$i ; \
504 $(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR); \
505 done; \
506 echo '-- Installing $(srcdir)/html/index.sgml' ; \
507 $(INSTALL_DATA) $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR) || :; \
508 which gtkdoc-rebase >/dev/null && \
509 gtkdoc-rebase --relative --dest-dir=$(DESTDIR) --html-dir=$(DESTDIR)$(TARGET_DIR) ; \
510 fi
511
512uninstall-local:
513 rm -f $(DESTDIR)$(TARGET_DIR)/*
514
515#
516# Require gtk-doc when making dist
517#
518@ENABLE_GTK_DOC_TRUE@dist-check-gtkdoc:
519@ENABLE_GTK_DOC_FALSE@dist-check-gtkdoc:
520@ENABLE_GTK_DOC_FALSE@ @echo "*** gtk-doc must be installed and enabled in order to make dist"
521@ENABLE_GTK_DOC_FALSE@ @false
522
523dist-hook: dist-check-gtkdoc dist-hook-local
524 mkdir $(distdir)/tmpl
525 mkdir $(distdir)/xml
526 mkdir $(distdir)/html
527 -cp $(srcdir)/tmpl/*.sgml $(distdir)/tmpl
528 -cp $(srcdir)/xml/*.xml $(distdir)/xml
529 cp $(srcdir)/html/* $(distdir)/html
530 -cp $(srcdir)/$(DOC_MODULE).types $(distdir)/
531 -cp $(srcdir)/$(DOC_MODULE)-sections.txt $(distdir)/
532 cd $(distdir) && rm -f $(DISTCLEANFILES)
533 -gtkdoc-rebase --online --relative --html-dir=$(distdir)/html
534
535.PHONY : dist-hook-local docs
536# Tell versions [3.59,3.63) of GNU make to not export all variables.
537# Otherwise a system limit (for SysV at least) may be exceeded.
538.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/ch01.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/ch01.html
new file mode 100644
index 0000000..4df5d39
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/ch01.html
@@ -0,0 +1,55 @@
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>Application interface</title>
6<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7<link rel="start" href="index.html" title="libg3d Reference Manual">
8<link rel="up" href="index.html" title="libg3d Reference Manual">
9<link rel="prev" href="index.html" title="libg3d Reference Manual">
10<link rel="next" href="libg3d-types.html" title="types">
11<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
12<link rel="stylesheet" href="style.css" type="text/css">
13<link rel="chapter" href="ch01.html" title="Application interface">
14<link rel="chapter" href="ch02.html" title="Plugin interface">
15</head>
16<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
17<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
18<td><a accesskey="p" href="index.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
19<td> </td>
20<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
21<th width="100%" align="center">libg3d Reference Manual</th>
22<td><a accesskey="n" href="libg3d-types.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23</tr></table>
24<div class="chapter" lang="en">
25<div class="titlepage"><div><div><h2 class="title">
26<a name="id2500287"></a>Application interface</h2></div></div></div>
27<div class="toc"><dl>
28<dt>
29<span class="refentrytitle"><a href="libg3d-types.html">types</a></span><span class="refpurpose"> — Basic types</span>
30</dt>
31<dt>
32<span class="refentrytitle"><a href="libg3d-context.html">context</a></span><span class="refpurpose"> — Libg3d initialization and configuration</span>
33</dt>
34<dt>
35<span class="refentrytitle"><a href="libg3d-model.html">model</a></span><span class="refpurpose"> — Model manipulation functions</span>
36</dt>
37<dt>
38<span class="refentrytitle"><a href="libg3d-object.html">object</a></span><span class="refpurpose"> — Object manipulation</span>
39</dt>
40<dt>
41<span class="refentrytitle"><a href="libg3d-face.html">face</a></span><span class="refpurpose"> — Face manipulation</span>
42</dt>
43<dt>
44<span class="refentrytitle"><a href="libg3d-material.html">material</a></span><span class="refpurpose"> — Material generation and manipulation</span>
45</dt>
46<dt>
47<span class="refentrytitle"><a href="libg3d-texture.html">texture</a></span><span class="refpurpose"> — Texture loading and manipulation</span>
48</dt>
49</dl></div>
50</div>
51<div class="footer">
52<hr>
53 Generated by GTK-Doc V1.10</div>
54</body>
55</html>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/ch02.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/ch02.html
new file mode 100644
index 0000000..2a8bc7d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/ch02.html
@@ -0,0 +1,58 @@
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>Plugin interface</title>
6<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7<link rel="start" href="index.html" title="libg3d Reference Manual">
8<link rel="up" href="index.html" title="libg3d Reference Manual">
9<link rel="prev" href="libg3d-texture.html" title="texture">
10<link rel="next" href="libg3d-plugins.html" title="plugins">
11<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
12<link rel="stylesheet" href="style.css" type="text/css">
13<link rel="chapter" href="ch01.html" title="Application interface">
14<link rel="chapter" href="ch02.html" title="Plugin interface">
15</head>
16<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
17<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
18<td><a accesskey="p" href="libg3d-texture.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
19<td> </td>
20<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
21<th width="100%" align="center">libg3d Reference Manual</th>
22<td><a accesskey="n" href="libg3d-plugins.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23</tr></table>
24<div class="chapter" lang="en">
25<div class="titlepage"><div><div><h2 class="title">
26<a name="id2501204"></a>Plugin interface</h2></div></div></div>
27<div class="toc"><dl>
28<dt>
29<span class="refentrytitle"><a href="libg3d-plugins.html">plugins</a></span><span class="refpurpose"> — G3DPlugin interface</span>
30</dt>
31<dt>
32<span class="refentrytitle"><a href="libg3d-stream.html">stream</a></span><span class="refpurpose"> — I/O abstraction layer for plugins</span>
33</dt>
34<dt>
35<span class="refentrytitle"><a href="libg3d-iff.html">iff</a></span><span class="refpurpose"> — IFF file helper functions</span>
36</dt>
37<dt>
38<span class="refentrytitle"><a href="libg3d-read.html">read</a></span><span class="refpurpose"> — file reading abstraction (deprecated)</span>
39</dt>
40<dt>
41<span class="refentrytitle"><a href="libg3d-primitive.html">primitive</a></span><span class="refpurpose"> — 3D primitive generation functions</span>
42</dt>
43<dt>
44<span class="refentrytitle"><a href="libg3d-matrix.html">matrix</a></span><span class="refpurpose"> — Matrix manipulation and calculation</span>
45</dt>
46<dt>
47<span class="refentrytitle"><a href="libg3d-vector.html">vector</a></span><span class="refpurpose"> — Vector manipulation and calculation</span>
48</dt>
49<dt>
50<span class="refentrytitle"><a href="libg3d-quat.html">quat</a></span><span class="refpurpose"> — quaternion helpers</span>
51</dt>
52</dl></div>
53</div>
54<div class="footer">
55<hr>
56 Generated by GTK-Doc V1.10</div>
57</body>
58</html>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/home.png b/src/others/mimesh/libg3d-0.0.8/doc/api/html/home.png
new file mode 100644
index 0000000..1700361
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/home.png
Binary files differ
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/index.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/index.html
new file mode 100644
index 0000000..b368808
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/index.html
@@ -0,0 +1,85 @@
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>libg3d Reference Manual</title>
6<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7<link rel="start" href="index.html" title="libg3d Reference Manual">
8<link rel="next" href="ch01.html" title="Application interface">
9<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
10<link rel="stylesheet" href="style.css" type="text/css">
11<link rel="chapter" href="ch01.html" title="Application interface">
12<link rel="chapter" href="ch02.html" title="Plugin interface">
13</head>
14<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15<div class="book" lang="en">
16<div class="titlepage">
17<div>
18<div><table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">libg3d Reference Manual</p></th></tr></table></div>
19<div><p class="releaseinfo">
20 for libg3d 0.0.7
21 The latest version of this documentation can be found on-line at
22 <a class="ulink" href="http://automagically.de/libg3d/index.html" target="_top">http://automagically.de/libg3d/</a>.
23 </p></div>
24</div>
25<hr>
26</div>
27<div class="toc"><dl>
28<dt><span class="chapter"><a href="ch01.html">Application interface</a></span></dt>
29<dd><dl>
30<dt>
31<span class="refentrytitle"><a href="libg3d-types.html">types</a></span><span class="refpurpose"> — Basic types</span>
32</dt>
33<dt>
34<span class="refentrytitle"><a href="libg3d-context.html">context</a></span><span class="refpurpose"> — Libg3d initialization and configuration</span>
35</dt>
36<dt>
37<span class="refentrytitle"><a href="libg3d-model.html">model</a></span><span class="refpurpose"> — Model manipulation functions</span>
38</dt>
39<dt>
40<span class="refentrytitle"><a href="libg3d-object.html">object</a></span><span class="refpurpose"> — Object manipulation</span>
41</dt>
42<dt>
43<span class="refentrytitle"><a href="libg3d-face.html">face</a></span><span class="refpurpose"> — Face manipulation</span>
44</dt>
45<dt>
46<span class="refentrytitle"><a href="libg3d-material.html">material</a></span><span class="refpurpose"> — Material generation and manipulation</span>
47</dt>
48<dt>
49<span class="refentrytitle"><a href="libg3d-texture.html">texture</a></span><span class="refpurpose"> — Texture loading and manipulation</span>
50</dt>
51</dl></dd>
52<dt><span class="chapter"><a href="ch02.html">Plugin interface</a></span></dt>
53<dd><dl>
54<dt>
55<span class="refentrytitle"><a href="libg3d-plugins.html">plugins</a></span><span class="refpurpose"> — G3DPlugin interface</span>
56</dt>
57<dt>
58<span class="refentrytitle"><a href="libg3d-stream.html">stream</a></span><span class="refpurpose"> — I/O abstraction layer for plugins</span>
59</dt>
60<dt>
61<span class="refentrytitle"><a href="libg3d-iff.html">iff</a></span><span class="refpurpose"> — IFF file helper functions</span>
62</dt>
63<dt>
64<span class="refentrytitle"><a href="libg3d-read.html">read</a></span><span class="refpurpose"> — file reading abstraction (deprecated)</span>
65</dt>
66<dt>
67<span class="refentrytitle"><a href="libg3d-primitive.html">primitive</a></span><span class="refpurpose"> — 3D primitive generation functions</span>
68</dt>
69<dt>
70<span class="refentrytitle"><a href="libg3d-matrix.html">matrix</a></span><span class="refpurpose"> — Matrix manipulation and calculation</span>
71</dt>
72<dt>
73<span class="refentrytitle"><a href="libg3d-vector.html">vector</a></span><span class="refpurpose"> — Vector manipulation and calculation</span>
74</dt>
75<dt>
76<span class="refentrytitle"><a href="libg3d-quat.html">quat</a></span><span class="refpurpose"> — quaternion helpers</span>
77</dt>
78</dl></dd>
79</dl></div>
80</div>
81<div class="footer">
82<hr>
83 Generated by GTK-Doc V1.10</div>
84</body>
85</html>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/index.sgml b/src/others/mimesh/libg3d-0.0.8/doc/api/html/index.sgml
new file mode 100644
index 0000000..a233041
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/index.sgml
@@ -0,0 +1,242 @@
1<ONLINE href="http://automagically.de/libg3d/index.html">
2<ANCHOR id="libg3d-types" href="libg3d/libg3d-types.html">
3<ANCHOR id="libg3d-types.synopsis" href="libg3d/libg3d-types.html#libg3d-types.synopsis">
4<ANCHOR id="libg3d-types.description" href="libg3d/libg3d-types.html#libg3d-types.description">
5<ANCHOR id="libg3d-types.details" href="libg3d/libg3d-types.html#libg3d-types.details">
6<ANCHOR id="G3DSingle" href="libg3d/libg3d-types.html#G3DSingle">
7<ANCHOR id="G3DDouble" href="libg3d/libg3d-types.html#G3DDouble">
8<ANCHOR id="G3DFloat" href="libg3d/libg3d-types.html#G3DFloat">
9<ANCHOR id="G3D-FLOAT-IS-DOUBLE:CAPS" href="libg3d/libg3d-types.html#G3D-FLOAT-IS-DOUBLE:CAPS">
10<ANCHOR id="libg3d-context" href="libg3d/libg3d-context.html">
11<ANCHOR id="libg3d-context.synopsis" href="libg3d/libg3d-context.html#libg3d-context.synopsis">
12<ANCHOR id="libg3d-context.description" href="libg3d/libg3d-context.html#libg3d-context.description">
13<ANCHOR id="libg3d-context.details" href="libg3d/libg3d-context.html#libg3d-context.details">
14<ANCHOR id="G3DContext" href="libg3d/libg3d-context.html#G3DContext">
15<ANCHOR id="g3d-context-new" href="libg3d/libg3d-context.html#g3d-context-new">
16<ANCHOR id="g3d-context-free" href="libg3d/libg3d-context.html#g3d-context-free">
17<ANCHOR id="G3DSetBgColorFunc" href="libg3d/libg3d-context.html#G3DSetBgColorFunc">
18<ANCHOR id="G3DUpdateInterfaceFunc" href="libg3d/libg3d-context.html#G3DUpdateInterfaceFunc">
19<ANCHOR id="G3DUpdateProgressBarFunc" href="libg3d/libg3d-context.html#G3DUpdateProgressBarFunc">
20<ANCHOR id="g3d-context-update-interface" href="libg3d/libg3d-context.html#g3d-context-update-interface">
21<ANCHOR id="g3d-context-set-update-interface-func" href="libg3d/libg3d-context.html#g3d-context-set-update-interface-func">
22<ANCHOR id="g3d-context-update-progress-bar" href="libg3d/libg3d-context.html#g3d-context-update-progress-bar">
23<ANCHOR id="g3d-context-set-update-progress-bar-func" href="libg3d/libg3d-context.html#g3d-context-set-update-progress-bar-func">
24<ANCHOR id="g3d-context-set-bgcolor" href="libg3d/libg3d-context.html#g3d-context-set-bgcolor">
25<ANCHOR id="g3d-context-set-set-bgcolor-func" href="libg3d/libg3d-context.html#g3d-context-set-set-bgcolor-func">
26<ANCHOR id="libg3d-context.see-also" href="libg3d/libg3d-context.html#libg3d-context.see-also">
27<ANCHOR id="libg3d-model" href="libg3d/libg3d-model.html">
28<ANCHOR id="libg3d-model.synopsis" href="libg3d/libg3d-model.html#libg3d-model.synopsis">
29<ANCHOR id="libg3d-model.description" href="libg3d/libg3d-model.html#libg3d-model.description">
30<ANCHOR id="libg3d-model.details" href="libg3d/libg3d-model.html#libg3d-model.details">
31<ANCHOR id="G3D-MODEL-CENTER:CAPS" href="libg3d/libg3d-model.html#G3D-MODEL-CENTER:CAPS">
32<ANCHOR id="G3D-MODEL-NOCHECK:CAPS" href="libg3d/libg3d-model.html#G3D-MODEL-NOCHECK:CAPS">
33<ANCHOR id="G3D-MODEL-OPTIMIZE:CAPS" href="libg3d/libg3d-model.html#G3D-MODEL-OPTIMIZE:CAPS">
34<ANCHOR id="G3D-MODEL-SCALE:CAPS" href="libg3d/libg3d-model.html#G3D-MODEL-SCALE:CAPS">
35<ANCHOR id="G3DModel" href="libg3d/libg3d-model.html#G3DModel">
36<ANCHOR id="g3d-model-new" href="libg3d/libg3d-model.html#g3d-model-new">
37<ANCHOR id="g3d-model-load" href="libg3d/libg3d-model.html#g3d-model-load">
38<ANCHOR id="g3d-model-load-full" href="libg3d/libg3d-model.html#g3d-model-load-full">
39<ANCHOR id="g3d-model-check" href="libg3d/libg3d-model.html#g3d-model-check">
40<ANCHOR id="g3d-model-center" href="libg3d/libg3d-model.html#g3d-model-center">
41<ANCHOR id="g3d-model-transform" href="libg3d/libg3d-model.html#g3d-model-transform">
42<ANCHOR id="g3d-model-clear" href="libg3d/libg3d-model.html#g3d-model-clear">
43<ANCHOR id="g3d-model-free" href="libg3d/libg3d-model.html#g3d-model-free">
44<ANCHOR id="g3d-model-get-object-by-name" href="libg3d/libg3d-model.html#g3d-model-get-object-by-name">
45<ANCHOR id="libg3d-object" href="libg3d/libg3d-object.html">
46<ANCHOR id="libg3d-object.synopsis" href="libg3d/libg3d-object.html#libg3d-object.synopsis">
47<ANCHOR id="libg3d-object.description" href="libg3d/libg3d-object.html#libg3d-object.description">
48<ANCHOR id="libg3d-object.details" href="libg3d/libg3d-object.html#libg3d-object.details">
49<ANCHOR id="G3DObject" href="libg3d/libg3d-object.html#G3DObject">
50<ANCHOR id="G3DTransformation" href="libg3d/libg3d-object.html#G3DTransformation">
51<ANCHOR id="g3d-object-free" href="libg3d/libg3d-object.html#g3d-object-free">
52<ANCHOR id="g3d-object-radius" href="libg3d/libg3d-object.html#g3d-object-radius">
53<ANCHOR id="g3d-object-scale" href="libg3d/libg3d-object.html#g3d-object-scale">
54<ANCHOR id="g3d-object-transform" href="libg3d/libg3d-object.html#g3d-object-transform">
55<ANCHOR id="g3d-object-transform-normals" href="libg3d/libg3d-object.html#g3d-object-transform-normals">
56<ANCHOR id="g3d-object-duplicate" href="libg3d/libg3d-object.html#g3d-object-duplicate">
57<ANCHOR id="g3d-object-optimize" href="libg3d/libg3d-object.html#g3d-object-optimize">
58<ANCHOR id="g3d-object-smooth" href="libg3d/libg3d-object.html#g3d-object-smooth">
59<ANCHOR id="g3d-object-merge" href="libg3d/libg3d-object.html#g3d-object-merge">
60<ANCHOR id="libg3d-face" href="libg3d/libg3d-face.html">
61<ANCHOR id="libg3d-face.synopsis" href="libg3d/libg3d-face.html#libg3d-face.synopsis">
62<ANCHOR id="libg3d-face.description" href="libg3d/libg3d-face.html#libg3d-face.description">
63<ANCHOR id="libg3d-face.details" href="libg3d/libg3d-face.html#libg3d-face.details">
64<ANCHOR id="G3D-FLAG-MAT-TWOSIDE:CAPS" href="libg3d/libg3d-face.html#G3D-FLAG-MAT-TWOSIDE:CAPS">
65<ANCHOR id="G3D-FLAG-FAC-NORMALS:CAPS" href="libg3d/libg3d-face.html#G3D-FLAG-FAC-NORMALS:CAPS">
66<ANCHOR id="G3D-FLAG-FAC-TEXMAP:CAPS" href="libg3d/libg3d-face.html#G3D-FLAG-FAC-TEXMAP:CAPS">
67<ANCHOR id="G3DFace" href="libg3d/libg3d-face.html#G3DFace">
68<ANCHOR id="g3d-face-get-normal" href="libg3d/libg3d-face.html#g3d-face-get-normal">
69<ANCHOR id="g3d-face-free" href="libg3d/libg3d-face.html#g3d-face-free">
70<ANCHOR id="libg3d-material" href="libg3d/libg3d-material.html">
71<ANCHOR id="libg3d-material.synopsis" href="libg3d/libg3d-material.html#libg3d-material.synopsis">
72<ANCHOR id="libg3d-material.description" href="libg3d/libg3d-material.html#libg3d-material.description">
73<ANCHOR id="libg3d-material.details" href="libg3d/libg3d-material.html#libg3d-material.details">
74<ANCHOR id="G3DMaterial" href="libg3d/libg3d-material.html#G3DMaterial">
75<ANCHOR id="g3d-material-new" href="libg3d/libg3d-material.html#g3d-material-new">
76<ANCHOR id="g3d-material-free" href="libg3d/libg3d-material.html#g3d-material-free">
77<ANCHOR id="libg3d-texture" href="libg3d/libg3d-texture.html">
78<ANCHOR id="libg3d-texture.synopsis" href="libg3d/libg3d-texture.html#libg3d-texture.synopsis">
79<ANCHOR id="libg3d-texture.description" href="libg3d/libg3d-texture.html#libg3d-texture.description">
80<ANCHOR id="libg3d-texture.details" href="libg3d/libg3d-texture.html#libg3d-texture.details">
81<ANCHOR id="G3D-FLAG-IMG-GREYSCALE:CAPS" href="libg3d/libg3d-texture.html#G3D-FLAG-IMG-GREYSCALE:CAPS">
82<ANCHOR id="G3DTexEnv" href="libg3d/libg3d-texture.html#G3DTexEnv">
83<ANCHOR id="G3DImage" href="libg3d/libg3d-texture.html#G3DImage">
84<ANCHOR id="g3d-texture-load-cached" href="libg3d/libg3d-texture.html#g3d-texture-load-cached">
85<ANCHOR id="g3d-texture-load-from-stream" href="libg3d/libg3d-texture.html#g3d-texture-load-from-stream">
86<ANCHOR id="g3d-texture-load" href="libg3d/libg3d-texture.html#g3d-texture-load">
87<ANCHOR id="g3d-texture-free" href="libg3d/libg3d-texture.html#g3d-texture-free">
88<ANCHOR id="g3d-texture-prepare" href="libg3d/libg3d-texture.html#g3d-texture-prepare">
89<ANCHOR id="g3d-texture-flip-y" href="libg3d/libg3d-texture.html#g3d-texture-flip-y">
90<ANCHOR id="g3d-texture-merge-alpha" href="libg3d/libg3d-texture.html#g3d-texture-merge-alpha">
91<ANCHOR id="libg3d-plugins" href="libg3d/libg3d-plugins.html">
92<ANCHOR id="libg3d-plugins.synopsis" href="libg3d/libg3d-plugins.html#libg3d-plugins.synopsis">
93<ANCHOR id="libg3d-plugins.description" href="libg3d/libg3d-plugins.html#libg3d-plugins.description">
94<ANCHOR id="libg3d-plugins.details" href="libg3d/libg3d-plugins.html#libg3d-plugins.details">
95<ANCHOR id="G3DPluginType" href="libg3d/libg3d-plugins.html#G3DPluginType">
96<ANCHOR id="G3DPluginInitFunc" href="libg3d/libg3d-plugins.html#G3DPluginInitFunc">
97<ANCHOR id="G3DPluginCleanupFunc" href="libg3d/libg3d-plugins.html#G3DPluginCleanupFunc">
98<ANCHOR id="G3DPluginLoadModelFunc" href="libg3d/libg3d-plugins.html#G3DPluginLoadModelFunc">
99<ANCHOR id="G3DPluginLoadModelFromStreamFunc" href="libg3d/libg3d-plugins.html#G3DPluginLoadModelFromStreamFunc">
100<ANCHOR id="G3DPluginLoadImageFunc" href="libg3d/libg3d-plugins.html#G3DPluginLoadImageFunc">
101<ANCHOR id="G3DPluginLoadImageStreamFunc" href="libg3d/libg3d-plugins.html#G3DPluginLoadImageStreamFunc">
102<ANCHOR id="G3DPluginGetDescFunc" href="libg3d/libg3d-plugins.html#G3DPluginGetDescFunc">
103<ANCHOR id="G3DPluginGetExtFunc" href="libg3d/libg3d-plugins.html#G3DPluginGetExtFunc">
104<ANCHOR id="G3DPlugin" href="libg3d/libg3d-plugins.html#G3DPlugin">
105<ANCHOR id="g3d-plugins-init" href="libg3d/libg3d-plugins.html#g3d-plugins-init">
106<ANCHOR id="g3d-plugins-cleanup" href="libg3d/libg3d-plugins.html#g3d-plugins-cleanup">
107<ANCHOR id="g3d-plugins-load-model" href="libg3d/libg3d-plugins.html#g3d-plugins-load-model">
108<ANCHOR id="g3d-plugins-load-model-from-stream" href="libg3d/libg3d-plugins.html#g3d-plugins-load-model-from-stream">
109<ANCHOR id="g3d-plugins-load-image" href="libg3d/libg3d-plugins.html#g3d-plugins-load-image">
110<ANCHOR id="g3d-plugins-load-image-from-stream" href="libg3d/libg3d-plugins.html#g3d-plugins-load-image-from-stream">
111<ANCHOR id="g3d-plugins-get-image-extensions" href="libg3d/libg3d-plugins.html#g3d-plugins-get-image-extensions">
112<ANCHOR id="libg3d-plugins.see-also" href="libg3d/libg3d-plugins.html#libg3d-plugins.see-also">
113<ANCHOR id="libg3d-stream" href="libg3d/libg3d-stream.html">
114<ANCHOR id="libg3d-stream.synopsis" href="libg3d/libg3d-stream.html#libg3d-stream.synopsis">
115<ANCHOR id="libg3d-stream.description" href="libg3d/libg3d-stream.html#libg3d-stream.description">
116<ANCHOR id="libg3d-stream.details" href="libg3d/libg3d-stream.html#libg3d-stream.details">
117<ANCHOR id="G3DStream" href="libg3d/libg3d-stream.html#G3DStream">
118<ANCHOR id="g3d-stream-open-file" href="libg3d/libg3d-stream.html#g3d-stream-open-file">
119<ANCHOR id="g3d-stream-open-structured-file" href="libg3d/libg3d-stream.html#g3d-stream-open-structured-file">
120<ANCHOR id="g3d-stream-open-structured-file-from-stream" href="libg3d/libg3d-stream.html#g3d-stream-open-structured-file-from-stream">
121<ANCHOR id="g3d-stream-open-zip" href="libg3d/libg3d-stream.html#g3d-stream-open-zip">
122<ANCHOR id="g3d-stream-open-zip-from-stream" href="libg3d/libg3d-stream.html#g3d-stream-open-zip-from-stream">
123<ANCHOR id="g3d-stream-open-gzip-from-stream" href="libg3d/libg3d-stream.html#g3d-stream-open-gzip-from-stream">
124<ANCHOR id="g3d-stream-from-buffer" href="libg3d/libg3d-stream.html#g3d-stream-from-buffer">
125<ANCHOR id="g3d-stream-zlib-inflate-stream" href="libg3d/libg3d-stream.html#g3d-stream-zlib-inflate-stream">
126<ANCHOR id="g3d-stream-new-custom" href="libg3d/libg3d-stream.html#g3d-stream-new-custom">
127<ANCHOR id="g3d-stream-close" href="libg3d/libg3d-stream.html#g3d-stream-close">
128<ANCHOR id="g3d-stream-skip" href="libg3d/libg3d-stream.html#g3d-stream-skip">
129<ANCHOR id="g3d-stream-seek" href="libg3d/libg3d-stream.html#g3d-stream-seek">
130<ANCHOR id="g3d-stream-tell" href="libg3d/libg3d-stream.html#g3d-stream-tell">
131<ANCHOR id="g3d-stream-size" href="libg3d/libg3d-stream.html#g3d-stream-size">
132<ANCHOR id="g3d-stream-eof" href="libg3d/libg3d-stream.html#g3d-stream-eof">
133<ANCHOR id="g3d-stream-is-seekable" href="libg3d/libg3d-stream.html#g3d-stream-is-seekable">
134<ANCHOR id="g3d-stream-get-uri" href="libg3d/libg3d-stream.html#g3d-stream-get-uri">
135<ANCHOR id="g3d-stream-line" href="libg3d/libg3d-stream.html#g3d-stream-line">
136<ANCHOR id="g3d-stream-read" href="libg3d/libg3d-stream.html#g3d-stream-read">
137<ANCHOR id="g3d-stream-read-line" href="libg3d/libg3d-stream.html#g3d-stream-read-line">
138<ANCHOR id="g3d-stream-read-int8" href="libg3d/libg3d-stream.html#g3d-stream-read-int8">
139<ANCHOR id="g3d-stream-read-int16-be" href="libg3d/libg3d-stream.html#g3d-stream-read-int16-be">
140<ANCHOR id="g3d-stream-read-int16-le" href="libg3d/libg3d-stream.html#g3d-stream-read-int16-le">
141<ANCHOR id="g3d-stream-read-int32-be" href="libg3d/libg3d-stream.html#g3d-stream-read-int32-be">
142<ANCHOR id="g3d-stream-read-int32-le" href="libg3d/libg3d-stream.html#g3d-stream-read-int32-le">
143<ANCHOR id="g3d-stream-read-float-be" href="libg3d/libg3d-stream.html#g3d-stream-read-float-be">
144<ANCHOR id="g3d-stream-read-float-le" href="libg3d/libg3d-stream.html#g3d-stream-read-float-le">
145<ANCHOR id="g3d-stream-read-double-be" href="libg3d/libg3d-stream.html#g3d-stream-read-double-be">
146<ANCHOR id="g3d-stream-read-double-le" href="libg3d/libg3d-stream.html#g3d-stream-read-double-le">
147<ANCHOR id="g3d-stream-read-cstr" href="libg3d/libg3d-stream.html#g3d-stream-read-cstr">
148<ANCHOR id="G3DStreamCloseFunc" href="libg3d/libg3d-stream.html#G3DStreamCloseFunc">
149<ANCHOR id="G3DStreamEofFunc" href="libg3d/libg3d-stream.html#G3DStreamEofFunc">
150<ANCHOR id="G3DStreamReadFunc" href="libg3d/libg3d-stream.html#G3DStreamReadFunc">
151<ANCHOR id="G3DStreamReadLineFunc" href="libg3d/libg3d-stream.html#G3DStreamReadLineFunc">
152<ANCHOR id="G3DStreamSeekFunc" href="libg3d/libg3d-stream.html#G3DStreamSeekFunc">
153<ANCHOR id="G3DStreamSizeFunc" href="libg3d/libg3d-stream.html#G3DStreamSizeFunc">
154<ANCHOR id="G3DStreamTellFunc" href="libg3d/libg3d-stream.html#G3DStreamTellFunc">
155<ANCHOR id="libg3d-stream.see-also" href="libg3d/libg3d-stream.html#libg3d-stream.see-also">
156<ANCHOR id="libg3d-iff" href="libg3d/libg3d-iff.html">
157<ANCHOR id="libg3d-iff.synopsis" href="libg3d/libg3d-iff.html#libg3d-iff.synopsis">
158<ANCHOR id="libg3d-iff.description" href="libg3d/libg3d-iff.html#libg3d-iff.description">
159<ANCHOR id="libg3d-iff.details" href="libg3d/libg3d-iff.html#libg3d-iff.details">
160<ANCHOR id="G3D-IFF-PAD1:CAPS" href="libg3d/libg3d-iff.html#G3D-IFF-PAD1:CAPS">
161<ANCHOR id="G3D-IFF-PAD2:CAPS" href="libg3d/libg3d-iff.html#G3D-IFF-PAD2:CAPS">
162<ANCHOR id="G3D-IFF-PAD4:CAPS" href="libg3d/libg3d-iff.html#G3D-IFF-PAD4:CAPS">
163<ANCHOR id="G3D-IFF-PAD8:CAPS" href="libg3d/libg3d-iff.html#G3D-IFF-PAD8:CAPS">
164<ANCHOR id="G3D-IFF-LE:CAPS" href="libg3d/libg3d-iff.html#G3D-IFF-LE:CAPS">
165<ANCHOR id="G3D-IFF-LEN16:CAPS" href="libg3d/libg3d-iff.html#G3D-IFF-LEN16:CAPS">
166<ANCHOR id="G3D-IFF-SUBCHUNK-LEN16:CAPS" href="libg3d/libg3d-iff.html#G3D-IFF-SUBCHUNK-LEN16:CAPS">
167<ANCHOR id="G3D-IFF-MKID:CAPS" href="libg3d/libg3d-iff.html#G3D-IFF-MKID:CAPS">
168<ANCHOR id="g3d-iff-check" href="libg3d/libg3d-iff.html#g3d-iff-check">
169<ANCHOR id="g3d-iff-read-chunk" href="libg3d/libg3d-iff.html#g3d-iff-read-chunk">
170<ANCHOR id="g3d-iff-handle-chunk" href="libg3d/libg3d-iff.html#g3d-iff-handle-chunk">
171<ANCHOR id="g3d-iff-chunk-matches" href="libg3d/libg3d-iff.html#g3d-iff-chunk-matches">
172<ANCHOR id="g3d-iff-read-ctnr" href="libg3d/libg3d-iff.html#g3d-iff-read-ctnr">
173<ANCHOR id="g3d-iff-id-to-text" href="libg3d/libg3d-iff.html#g3d-iff-id-to-text">
174<ANCHOR id="g3d-iff-open" href="libg3d/libg3d-iff.html#g3d-iff-open">
175<ANCHOR id="g3d-iff-readchunk" href="libg3d/libg3d-iff.html#g3d-iff-readchunk">
176<ANCHOR id="G3DIffChunkCallback" href="libg3d/libg3d-iff.html#G3DIffChunkCallback">
177<ANCHOR id="g3d-iff-chunk-callback" href="libg3d/libg3d-iff.html#g3d-iff-chunk-callback">
178<ANCHOR id="G3DIffChunkInfo" href="libg3d/libg3d-iff.html#G3DIffChunkInfo">
179<ANCHOR id="g3d-iff-chunk-info" href="libg3d/libg3d-iff.html#g3d-iff-chunk-info">
180<ANCHOR id="G3DIffGlobal" href="libg3d/libg3d-iff.html#G3DIffGlobal">
181<ANCHOR id="g3d-iff-gdata" href="libg3d/libg3d-iff.html#g3d-iff-gdata">
182<ANCHOR id="G3DIffLocal" href="libg3d/libg3d-iff.html#G3DIffLocal">
183<ANCHOR id="g3d-iff-ldata" href="libg3d/libg3d-iff.html#g3d-iff-ldata">
184<ANCHOR id="libg3d-read" href="libg3d/libg3d-read.html">
185<ANCHOR id="libg3d-read.synopsis" href="libg3d/libg3d-read.html#libg3d-read.synopsis">
186<ANCHOR id="libg3d-read.description" href="libg3d/libg3d-read.html#libg3d-read.description">
187<ANCHOR id="libg3d-read.details" href="libg3d/libg3d-read.html#libg3d-read.details">
188<ANCHOR id="g3d-read-int8" href="libg3d/libg3d-read.html#g3d-read-int8">
189<ANCHOR id="g3d-read-int16-be" href="libg3d/libg3d-read.html#g3d-read-int16-be">
190<ANCHOR id="g3d-read-int16-le" href="libg3d/libg3d-read.html#g3d-read-int16-le">
191<ANCHOR id="g3d-read-int32-be" href="libg3d/libg3d-read.html#g3d-read-int32-be">
192<ANCHOR id="g3d-read-int32-le" href="libg3d/libg3d-read.html#g3d-read-int32-le">
193<ANCHOR id="g3d-read-float-be" href="libg3d/libg3d-read.html#g3d-read-float-be">
194<ANCHOR id="g3d-read-float-le" href="libg3d/libg3d-read.html#g3d-read-float-le">
195<ANCHOR id="g3d-read-double-be" href="libg3d/libg3d-read.html#g3d-read-double-be">
196<ANCHOR id="g3d-read-double-le" href="libg3d/libg3d-read.html#g3d-read-double-le">
197<ANCHOR id="g3d-read-cstr" href="libg3d/libg3d-read.html#g3d-read-cstr">
198<ANCHOR id="libg3d-read.see-also" href="libg3d/libg3d-read.html#libg3d-read.see-also">
199<ANCHOR id="libg3d-primitive" href="libg3d/libg3d-primitive.html">
200<ANCHOR id="libg3d-primitive.synopsis" href="libg3d/libg3d-primitive.html#libg3d-primitive.synopsis">
201<ANCHOR id="libg3d-primitive.description" href="libg3d/libg3d-primitive.html#libg3d-primitive.description">
202<ANCHOR id="libg3d-primitive.details" href="libg3d/libg3d-primitive.html#libg3d-primitive.details">
203<ANCHOR id="g3d-primitive-cube" href="libg3d/libg3d-primitive.html#g3d-primitive-cube">
204<ANCHOR id="g3d-primitive-box" href="libg3d/libg3d-primitive.html#g3d-primitive-box">
205<ANCHOR id="g3d-primitive-box-strip-2d" href="libg3d/libg3d-primitive.html#g3d-primitive-box-strip-2d">
206<ANCHOR id="g3d-primitive-mesh" href="libg3d/libg3d-primitive.html#g3d-primitive-mesh">
207<ANCHOR id="g3d-primitive-cylinder" href="libg3d/libg3d-primitive.html#g3d-primitive-cylinder">
208<ANCHOR id="g3d-primitive-tube" href="libg3d/libg3d-primitive.html#g3d-primitive-tube">
209<ANCHOR id="g3d-primitive-sphere" href="libg3d/libg3d-primitive.html#g3d-primitive-sphere">
210<ANCHOR id="libg3d-matrix" href="libg3d/libg3d-matrix.html">
211<ANCHOR id="libg3d-matrix.synopsis" href="libg3d/libg3d-matrix.html#libg3d-matrix.synopsis">
212<ANCHOR id="libg3d-matrix.description" href="libg3d/libg3d-matrix.html#libg3d-matrix.description">
213<ANCHOR id="libg3d-matrix.details" href="libg3d/libg3d-matrix.html#libg3d-matrix.details">
214<ANCHOR id="G3DMatrix" href="libg3d/libg3d-matrix.html#G3DMatrix">
215<ANCHOR id="g3d-matrix-identity" href="libg3d/libg3d-matrix.html#g3d-matrix-identity">
216<ANCHOR id="g3d-matrix-multiply" href="libg3d/libg3d-matrix.html#g3d-matrix-multiply">
217<ANCHOR id="g3d-matrix-translate" href="libg3d/libg3d-matrix.html#g3d-matrix-translate">
218<ANCHOR id="g3d-matrix-rotate" href="libg3d/libg3d-matrix.html#g3d-matrix-rotate">
219<ANCHOR id="g3d-matrix-rotate-xyz" href="libg3d/libg3d-matrix.html#g3d-matrix-rotate-xyz">
220<ANCHOR id="g3d-matrix-scale" href="libg3d/libg3d-matrix.html#g3d-matrix-scale">
221<ANCHOR id="g3d-matrix-transpose" href="libg3d/libg3d-matrix.html#g3d-matrix-transpose">
222<ANCHOR id="g3d-matrix-determinant" href="libg3d/libg3d-matrix.html#g3d-matrix-determinant">
223<ANCHOR id="g3d-matrix-dump" href="libg3d/libg3d-matrix.html#g3d-matrix-dump">
224<ANCHOR id="libg3d-vector" href="libg3d/libg3d-vector.html">
225<ANCHOR id="libg3d-vector.synopsis" href="libg3d/libg3d-vector.html#libg3d-vector.synopsis">
226<ANCHOR id="libg3d-vector.description" href="libg3d/libg3d-vector.html#libg3d-vector.description">
227<ANCHOR id="libg3d-vector.details" href="libg3d/libg3d-vector.html#libg3d-vector.details">
228<ANCHOR id="G3DVector" href="libg3d/libg3d-vector.html#G3DVector">
229<ANCHOR id="g3d-vector-normal" href="libg3d/libg3d-vector.html#g3d-vector-normal">
230<ANCHOR id="g3d-vector-unify" href="libg3d/libg3d-vector.html#g3d-vector-unify">
231<ANCHOR id="g3d-vector-transform" href="libg3d/libg3d-vector.html#g3d-vector-transform">
232<ANCHOR id="libg3d-quat" href="libg3d/libg3d-quat.html">
233<ANCHOR id="libg3d-quat.synopsis" href="libg3d/libg3d-quat.html#libg3d-quat.synopsis">
234<ANCHOR id="libg3d-quat.description" href="libg3d/libg3d-quat.html#libg3d-quat.description">
235<ANCHOR id="libg3d-quat.details" href="libg3d/libg3d-quat.html#libg3d-quat.details">
236<ANCHOR id="G3DQuat" href="libg3d/libg3d-quat.html#G3DQuat">
237<ANCHOR id="g3d-quat-add" href="libg3d/libg3d-quat.html#g3d-quat-add">
238<ANCHOR id="g3d-quat-normalize" href="libg3d/libg3d-quat.html#g3d-quat-normalize">
239<ANCHOR id="g3d-quat-rotate" href="libg3d/libg3d-quat.html#g3d-quat-rotate">
240<ANCHOR id="g3d-quat-to-matrix" href="libg3d/libg3d-quat.html#g3d-quat-to-matrix">
241<ANCHOR id="g3d-quat-to-rotation-xyz" href="libg3d/libg3d-quat.html#g3d-quat-to-rotation-xyz">
242<ANCHOR id="g3d-quat-trackball" href="libg3d/libg3d-quat.html#g3d-quat-trackball">
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/left.png b/src/others/mimesh/libg3d-0.0.8/doc/api/html/left.png
new file mode 100644
index 0000000..2d05b3d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/left.png
Binary files differ
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-context.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-context.html
new file mode 100644
index 0000000..2a5c229
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-context.html
@@ -0,0 +1,531 @@
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>context</title>
6<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7<link rel="start" href="index.html" title="libg3d Reference Manual">
8<link rel="up" href="ch01.html" title="Application interface">
9<link rel="prev" href="libg3d-types.html" title="types">
10<link rel="next" href="libg3d-model.html" title="model">
11<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
12<link rel="stylesheet" href="style.css" type="text/css">
13<link rel="chapter" href="ch01.html" title="Application interface">
14<link rel="chapter" href="ch02.html" title="Plugin interface">
15</head>
16<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
17<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
18<tr valign="middle">
19<td><a accesskey="p" href="libg3d-types.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
20<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
21<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
22<th width="100%" align="center">libg3d Reference Manual</th>
23<td><a accesskey="n" href="libg3d-model.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
24</tr>
25<tr><td colspan="5" class="shortcuts"><nobr><a href="#libg3d-context.synopsis" class="shortcut">Top</a>
26  | 
27 <a href="#libg3d-context.description" class="shortcut">Description</a></nobr></td></tr>
28</table>
29<div class="refentry" lang="en">
30<a name="libg3d-context"></a><div class="titlepage"></div>
31<div class="refnamediv"><table width="100%"><tr>
32<td valign="top">
33<h2><span class="refentrytitle"><a name="libg3d-context.top_of_page"></a>context</span></h2>
34<p>context — Libg3d initialization and configuration</p>
35</td>
36<td valign="top" align="right"></td>
37</tr></table></div>
38<div class="refsynopsisdiv">
39<a name="libg3d-context.synopsis"></a><h2>Synopsis</h2>
40<pre class="synopsis">
41
42#include &lt;g3d/g3d.h&gt;
43
44 <a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a>;
45<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a>* <a class="link" href="libg3d-context.html#g3d-context-new" title="g3d_context_new ()">g3d_context_new</a> (void);
46void <a class="link" href="libg3d-context.html#g3d-context-free" title="g3d_context_free ()">g3d_context_free</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context);
47<a
48href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
49>gboolean</a> (<a class="link" href="libg3d-context.html#G3DSetBgColorFunc" title="G3DSetBgColorFunc ()">*G3DSetBgColorFunc</a>) (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> r,
50 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> g,
51 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> b,
52 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> a,
53 <a
54href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
55>gpointer</a> user_data);
56<a
57href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
58>gboolean</a> (<a class="link" href="libg3d-context.html#G3DUpdateInterfaceFunc" title="G3DUpdateInterfaceFunc ()">*G3DUpdateInterfaceFunc</a>) (<a
59href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
60>gpointer</a> user_data);
61<a
62href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
63>gboolean</a> (<a class="link" href="libg3d-context.html#G3DUpdateProgressBarFunc" title="G3DUpdateProgressBarFunc ()">*G3DUpdateProgressBarFunc</a>) (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> percentage,
64 <a
65href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
66>gboolean</a> show,
67 <a
68href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
69>gpointer</a> user_data);
70<a
71href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
72>gboolean</a> <a class="link" href="libg3d-context.html#g3d-context-update-interface" title="g3d_context_update_interface ()">g3d_context_update_interface</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context);
73void <a class="link" href="libg3d-context.html#g3d-context-set-update-interface-func" title="g3d_context_set_update_interface_func ()">g3d_context_set_update_interface_func</a>
74 (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
75 <a class="link" href="libg3d-context.html#G3DUpdateInterfaceFunc" title="G3DUpdateInterfaceFunc ()">G3DUpdateInterfaceFunc</a> func,
76 <a
77href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
78>gpointer</a> user_data);
79<a
80href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
81>gboolean</a> <a class="link" href="libg3d-context.html#g3d-context-update-progress-bar" title="g3d_context_update_progress_bar ()">g3d_context_update_progress_bar</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
82 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> percentage,
83 <a
84href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
85>gboolean</a> visibility);
86void <a class="link" href="libg3d-context.html#g3d-context-set-update-progress-bar-func" title="g3d_context_set_update_progress_bar_func ()">g3d_context_set_update_progress_bar_func</a>
87 (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
88 <a class="link" href="libg3d-context.html#G3DUpdateProgressBarFunc" title="G3DUpdateProgressBarFunc ()">G3DUpdateProgressBarFunc</a> func,
89 <a
90href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
91>gpointer</a> user_data);
92<a
93href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
94>gboolean</a> <a class="link" href="libg3d-context.html#g3d-context-set-bgcolor" title="g3d_context_set_bgcolor ()">g3d_context_set_bgcolor</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
95 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> r,
96 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> g,
97 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> b,
98 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> a);
99void <a class="link" href="libg3d-context.html#g3d-context-set-set-bgcolor-func" title="g3d_context_set_set_bgcolor_func ()">g3d_context_set_set_bgcolor_func</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
100 <a class="link" href="libg3d-context.html#G3DSetBgColorFunc" title="G3DSetBgColorFunc ()">G3DSetBgColorFunc</a> func,
101 <a
102href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
103>gpointer</a> user_data);
104</pre>
105</div>
106<div class="refsect1" lang="en">
107<a name="libg3d-context.description"></a><h2>Description</h2>
108<p>
109All state information is saved in the context. It also serves as an
110interface to the application.</p>
111<p>
112
113</p>
114</div>
115<div class="refsect1" lang="en">
116<a name="libg3d-context.details"></a><h2>Details</h2>
117<div class="refsect2" lang="en">
118<a name="G3DContext"></a><h3>G3DContext</h3>
119<pre class="programlisting">typedef struct {
120} G3DContext;
121</pre>
122<p>
123Internal stuff for libg3d.</p>
124<p>
125
126</p>
127</div>
128<hr>
129<div class="refsect2" lang="en">
130<a name="g3d-context-new"></a><h3>g3d_context_new ()</h3>
131<pre class="programlisting"><a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a>* g3d_context_new (void);</pre>
132<p>
133Create a new context. This initializes the library (and also the
134plugin system so this has not to be done seperately).</p>
135<p>
136
137</p>
138<div class="variablelist"><table border="0">
139<col align="left" valign="top">
140<tbody><tr>
141<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
142<td> a valid context, or NULL on failure.
143</td>
144</tr></tbody>
145</table></div>
146</div>
147<hr>
148<div class="refsect2" lang="en">
149<a name="g3d-context-free"></a><h3>g3d_context_free ()</h3>
150<pre class="programlisting">void g3d_context_free (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context);</pre>
151<p>
152Cleans up the context and the plugin system and frees all reserved
153memory.</p>
154<p>
155
156</p>
157<div class="variablelist"><table border="0">
158<col align="left" valign="top">
159<tbody><tr>
160<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
161<td> the context to free
162</td>
163</tr></tbody>
164</table></div>
165</div>
166<hr>
167<div class="refsect2" lang="en">
168<a name="G3DSetBgColorFunc"></a><h3>G3DSetBgColorFunc ()</h3>
169<pre class="programlisting"><a
170href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
171>gboolean</a> (*G3DSetBgColorFunc) (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> r,
172 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> g,
173 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> b,
174 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> a,
175 <a
176href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
177>gpointer</a> user_data);</pre>
178<p>
179Background color setting callback.</p>
180<p>
181
182</p>
183<div class="variablelist"><table border="0">
184<col align="left" valign="top">
185<tbody>
186<tr>
187<td><p><span class="term"><em class="parameter"><code>r</code></em> :</span></p></td>
188<td> red component
189</td>
190</tr>
191<tr>
192<td><p><span class="term"><em class="parameter"><code>g</code></em> :</span></p></td>
193<td> green component
194</td>
195</tr>
196<tr>
197<td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td>
198<td> blue component
199</td>
200</tr>
201<tr>
202<td><p><span class="term"><em class="parameter"><code>a</code></em> :</span></p></td>
203<td> alpha component
204</td>
205</tr>
206<tr>
207<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
208<td> opaque data as given to <a class="link" href="libg3d-context.html#g3d-context-set-set-bgcolor-func" title="g3d_context_set_set_bgcolor_func ()"><code class="function">g3d_context_set_set_bgcolor_func()</code></a>
209</td>
210</tr>
211<tr>
212<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
213<td> TRUE on success, FALSE else.
214</td>
215</tr>
216</tbody>
217</table></div>
218</div>
219<hr>
220<div class="refsect2" lang="en">
221<a name="G3DUpdateInterfaceFunc"></a><h3>G3DUpdateInterfaceFunc ()</h3>
222<pre class="programlisting"><a
223href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
224>gboolean</a> (*G3DUpdateInterfaceFunc) (<a
225href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
226>gpointer</a> user_data);</pre>
227<p>
228Interface updating callback.</p>
229<p>
230
231</p>
232<div class="variablelist"><table border="0">
233<col align="left" valign="top">
234<tbody>
235<tr>
236<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
237<td> opaque data as given to <a class="link" href="libg3d-context.html#g3d-context-set-update-interface-func" title="g3d_context_set_update_interface_func ()"><code class="function">g3d_context_set_update_interface_func()</code></a>
238</td>
239</tr>
240<tr>
241<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
242<td> TRUE on success, FALSE else.
243</td>
244</tr>
245</tbody>
246</table></div>
247</div>
248<hr>
249<div class="refsect2" lang="en">
250<a name="G3DUpdateProgressBarFunc"></a><h3>G3DUpdateProgressBarFunc ()</h3>
251<pre class="programlisting"><a
252href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
253>gboolean</a> (*G3DUpdateProgressBarFunc) (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> percentage,
254 <a
255href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
256>gboolean</a> show,
257 <a
258href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
259>gpointer</a> user_data);</pre>
260<p>
261Progress updating callback.</p>
262<p>
263
264</p>
265<div class="variablelist"><table border="0">
266<col align="left" valign="top">
267<tbody>
268<tr>
269<td><p><span class="term"><em class="parameter"><code>percentage</code></em> :</span></p></td>
270<td> progress of plugin operation
271</td>
272</tr>
273<tr>
274<td><p><span class="term"><em class="parameter"><code>show</code></em> :</span></p></td>
275<td> <a
276href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
277><span class="type">TRUE</span></a> if the progress bar should be visible, <a
278href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
279><span class="type">FALSE</span></a> else
280</td>
281</tr>
282<tr>
283<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
284<td> opaque data as given to
285<a class="link" href="libg3d-context.html#g3d-context-set-update-progress-bar-func" title="g3d_context_set_update_progress_bar_func ()"><code class="function">g3d_context_set_update_progress_bar_func()</code></a>
286</td>
287</tr>
288<tr>
289<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
290<td> TRUE on success, FALSE else.
291</td>
292</tr>
293</tbody>
294</table></div>
295</div>
296<hr>
297<div class="refsect2" lang="en">
298<a name="g3d-context-update-interface"></a><h3>g3d_context_update_interface ()</h3>
299<pre class="programlisting"><a
300href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
301>gboolean</a> g3d_context_update_interface (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context);</pre>
302<p>
303Try to update the interface. This will call a function registered with
304<em class="parameter"><code>g3d_context_set_update_interface_func</code></em>.</p>
305<p>
306
307</p>
308<div class="variablelist"><table border="0">
309<col align="left" valign="top">
310<tbody>
311<tr>
312<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
313<td> a valid context
314</td>
315</tr>
316<tr>
317<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
318<td> TRUE on success, FALSE else
319</td>
320</tr>
321</tbody>
322</table></div>
323</div>
324<hr>
325<div class="refsect2" lang="en">
326<a name="g3d-context-set-update-interface-func"></a><h3>g3d_context_set_update_interface_func ()</h3>
327<pre class="programlisting">void g3d_context_set_update_interface_func
328 (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
329 <a class="link" href="libg3d-context.html#G3DUpdateInterfaceFunc" title="G3DUpdateInterfaceFunc ()">G3DUpdateInterfaceFunc</a> func,
330 <a
331href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
332>gpointer</a> user_data);</pre>
333<p>
334Registers a callback function for updating the interface.</p>
335<p>
336
337</p>
338<div class="variablelist"><table border="0">
339<col align="left" valign="top">
340<tbody>
341<tr>
342<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
343<td> a valid context
344</td>
345</tr>
346<tr>
347<td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td>
348<td> the callback function
349</td>
350</tr>
351<tr>
352<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
353<td> user-defined opaque pointer
354</td>
355</tr>
356</tbody>
357</table></div>
358</div>
359<hr>
360<div class="refsect2" lang="en">
361<a name="g3d-context-update-progress-bar"></a><h3>g3d_context_update_progress_bar ()</h3>
362<pre class="programlisting"><a
363href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
364>gboolean</a> g3d_context_update_progress_bar (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
365 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> percentage,
366 <a
367href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
368>gboolean</a> visibility);</pre>
369<p>
370Try to update the progress bar.</p>
371<p>
372
373</p>
374<div class="variablelist"><table border="0">
375<col align="left" valign="top">
376<tbody>
377<tr>
378<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
379<td> a valid context
380</td>
381</tr>
382<tr>
383<td><p><span class="term"><em class="parameter"><code>percentage</code></em> :</span></p></td>
384<td> the percentage to set on the progress bar
385</td>
386</tr>
387<tr>
388<td><p><span class="term"><em class="parameter"><code>visibility</code></em> :</span></p></td>
389<td> show or hide the progress bar
390</td>
391</tr>
392<tr>
393<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
394<td> TRUE on success, FALSE else
395</td>
396</tr>
397</tbody>
398</table></div>
399</div>
400<hr>
401<div class="refsect2" lang="en">
402<a name="g3d-context-set-update-progress-bar-func"></a><h3>g3d_context_set_update_progress_bar_func ()</h3>
403<pre class="programlisting">void g3d_context_set_update_progress_bar_func
404 (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
405 <a class="link" href="libg3d-context.html#G3DUpdateProgressBarFunc" title="G3DUpdateProgressBarFunc ()">G3DUpdateProgressBarFunc</a> func,
406 <a
407href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
408>gpointer</a> user_data);</pre>
409<p>
410Registers a callback function for updating the progress bar.</p>
411<p>
412
413</p>
414<div class="variablelist"><table border="0">
415<col align="left" valign="top">
416<tbody>
417<tr>
418<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
419<td> a valid context
420</td>
421</tr>
422<tr>
423<td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td>
424<td> the callback function
425</td>
426</tr>
427<tr>
428<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
429<td> user-defined opaque pointer
430</td>
431</tr>
432</tbody>
433</table></div>
434</div>
435<hr>
436<div class="refsect2" lang="en">
437<a name="g3d-context-set-bgcolor"></a><h3>g3d_context_set_bgcolor ()</h3>
438<pre class="programlisting"><a
439href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
440>gboolean</a> g3d_context_set_bgcolor (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
441 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> r,
442 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> g,
443 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> b,
444 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> a);</pre>
445<p>
446Try to set the background color. This will call a function registered
447with <em class="parameter"><code>g3d_context_set_set_bgcolor_func</code></em>.</p>
448<p>
449
450</p>
451<div class="variablelist"><table border="0">
452<col align="left" valign="top">
453<tbody>
454<tr>
455<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
456<td> a valid context
457</td>
458</tr>
459<tr>
460<td><p><span class="term"><em class="parameter"><code>r</code></em> :</span></p></td>
461<td> red component (range: 0.0 .. 1.0)
462</td>
463</tr>
464<tr>
465<td><p><span class="term"><em class="parameter"><code>g</code></em> :</span></p></td>
466<td> green component (range: 0.0 .. 1.0)
467</td>
468</tr>
469<tr>
470<td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td>
471<td> green component (range: 0.0 .. 1.0)
472</td>
473</tr>
474<tr>
475<td><p><span class="term"><em class="parameter"><code>a</code></em> :</span></p></td>
476<td> alpha component
477</td>
478</tr>
479<tr>
480<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
481<td> TRUE on success, FALSE else
482</td>
483</tr>
484</tbody>
485</table></div>
486</div>
487<hr>
488<div class="refsect2" lang="en">
489<a name="g3d-context-set-set-bgcolor-func"></a><h3>g3d_context_set_set_bgcolor_func ()</h3>
490<pre class="programlisting">void g3d_context_set_set_bgcolor_func (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
491 <a class="link" href="libg3d-context.html#G3DSetBgColorFunc" title="G3DSetBgColorFunc ()">G3DSetBgColorFunc</a> func,
492 <a
493href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
494>gpointer</a> user_data);</pre>
495<p>
496Registers a callback function for setting the background color.</p>
497<p>
498
499</p>
500<div class="variablelist"><table border="0">
501<col align="left" valign="top">
502<tbody>
503<tr>
504<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
505<td> a valid context
506</td>
507</tr>
508<tr>
509<td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td>
510<td> the callback function
511</td>
512</tr>
513<tr>
514<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
515<td> user-defined opaque pointer
516</td>
517</tr>
518</tbody>
519</table></div>
520</div>
521</div>
522<div class="refsect1" lang="en">
523<a name="libg3d-context.see-also"></a><h2>See Also</h2>
524<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext"><span class="type">G3DContext</span></a>
525</div>
526</div>
527<div class="footer">
528<hr>
529 Generated by GTK-Doc V1.10</div>
530</body>
531</html>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-face.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-face.html
new file mode 100644
index 0000000..5ae49f3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-face.html
@@ -0,0 +1,255 @@
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>face</title>
6<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7<link rel="start" href="index.html" title="libg3d Reference Manual">
8<link rel="up" href="ch01.html" title="Application interface">
9<link rel="prev" href="libg3d-object.html" title="object">
10<link rel="next" href="libg3d-material.html" title="material">
11<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
12<link rel="stylesheet" href="style.css" type="text/css">
13<link rel="chapter" href="ch01.html" title="Application interface">
14<link rel="chapter" href="ch02.html" title="Plugin interface">
15</head>
16<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
17<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
18<tr valign="middle">
19<td><a accesskey="p" href="libg3d-object.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
20<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
21<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
22<th width="100%" align="center">libg3d Reference Manual</th>
23<td><a accesskey="n" href="libg3d-material.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
24</tr>
25<tr><td colspan="5" class="shortcuts"><nobr><a href="#libg3d-face.synopsis" class="shortcut">Top</a>
26  | 
27 <a href="#libg3d-face.description" class="shortcut">Description</a></nobr></td></tr>
28</table>
29<div class="refentry" lang="en">
30<a name="libg3d-face"></a><div class="titlepage"></div>
31<div class="refnamediv"><table width="100%"><tr>
32<td valign="top">
33<h2><span class="refentrytitle"><a name="libg3d-face.top_of_page"></a>face</span></h2>
34<p>face — Face manipulation</p>
35</td>
36<td valign="top" align="right"></td>
37</tr></table></div>
38<div class="refsynopsisdiv">
39<a name="libg3d-face.synopsis"></a><h2>Synopsis</h2>
40<pre class="synopsis">
41
42#include &lt;g3d/face.h&gt;
43
44#define <a class="link" href="libg3d-face.html#G3D-FLAG-MAT-TWOSIDE:CAPS" title="G3D_FLAG_MAT_TWOSIDE">G3D_FLAG_MAT_TWOSIDE</a>
45#define <a class="link" href="libg3d-face.html#G3D-FLAG-FAC-NORMALS:CAPS" title="G3D_FLAG_FAC_NORMALS">G3D_FLAG_FAC_NORMALS</a>
46#define <a class="link" href="libg3d-face.html#G3D-FLAG-FAC-TEXMAP:CAPS" title="G3D_FLAG_FAC_TEXMAP">G3D_FLAG_FAC_TEXMAP</a>
47 <a class="link" href="libg3d-face.html#G3DFace" title="G3DFace">G3DFace</a>;
48<a
49href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
50>gboolean</a> <a class="link" href="libg3d-face.html#g3d-face-get-normal" title="g3d_face_get_normal ()">g3d_face_get_normal</a> (<a class="link" href="libg3d-face.html#G3DFace" title="G3DFace">G3DFace</a> *face,
51 <a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object,
52 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *nx,
53 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *ny,
54 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *nz);
55void <a class="link" href="libg3d-face.html#g3d-face-free" title="g3d_face_free ()">g3d_face_free</a> (<a class="link" href="libg3d-face.html#G3DFace" title="G3DFace">G3DFace</a> *face);
56</pre>
57</div>
58<div class="refsect1" lang="en">
59<a name="libg3d-face.description"></a><h2>Description</h2>
60<p>
61A face is plane bordered by at least 3 vertices.</p>
62<p>
63
64</p>
65</div>
66<div class="refsect1" lang="en">
67<a name="libg3d-face.details"></a><h2>Details</h2>
68<div class="refsect2" lang="en">
69<a name="G3D-FLAG-MAT-TWOSIDE:CAPS"></a><h3>G3D_FLAG_MAT_TWOSIDE</h3>
70<pre class="programlisting">#define G3D_FLAG_MAT_TWOSIDE (1L &lt;&lt; 0)
71</pre>
72<p>
73Faces using this material should be rendered two-sided as the direction
74is unknown.</p>
75<p>
76
77</p>
78</div>
79<hr>
80<div class="refsect2" lang="en">
81<a name="G3D-FLAG-FAC-NORMALS:CAPS"></a><h3>G3D_FLAG_FAC_NORMALS</h3>
82<pre class="programlisting">#define G3D_FLAG_FAC_NORMALS (1L &lt;&lt; 0)
83</pre>
84<p>
85The face has custom normals.</p>
86<p>
87
88</p>
89</div>
90<hr>
91<div class="refsect2" lang="en">
92<a name="G3D-FLAG-FAC-TEXMAP:CAPS"></a><h3>G3D_FLAG_FAC_TEXMAP</h3>
93<pre class="programlisting">#define G3D_FLAG_FAC_TEXMAP (1L &lt;&lt; 1)
94</pre>
95<p>
96The face has a texture map and texture coordinates.</p>
97<p>
98
99</p>
100</div>
101<hr>
102<div class="refsect2" lang="en">
103<a name="G3DFace"></a><h3>G3DFace</h3>
104<pre class="programlisting">typedef struct {
105 guint32 vertex_count;
106 guint32 *vertex_indices;
107
108 G3DMaterial *material;
109
110 guint32 flags;
111
112 G3DVector *normals;
113
114 G3DImage *tex_image;
115 guint32 tex_vertex_count;
116 G3DVector *tex_vertex_data;
117} G3DFace;
118</pre>
119<p>
120An object representing a surface.</p>
121<p>
122
123</p>
124<div class="variablelist"><table border="0">
125<col align="left" valign="top">
126<tbody>
127<tr>
128<td><p><span class="term"><a
129href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
130>guint32</a> <em class="structfield"><code>vertex_count</code></em>;</span></p></td>
131<td> number of vertices
132</td>
133</tr>
134<tr>
135<td><p><span class="term"><a
136href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
137>guint32</a> *<em class="structfield"><code>vertex_indices</code></em>;</span></p></td>
138<td> indices of vertices in <a class="link" href="libg3d-object.html#G3DObject" title="G3DObject"><span class="type">G3DObject</span></a>
139</td>
140</tr>
141<tr>
142<td><p><span class="term"><a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *<em class="structfield"><code>material</code></em>;</span></p></td>
143<td> material to use for surface
144</td>
145</tr>
146<tr>
147<td><p><span class="term"><a
148href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
149>guint32</a> <em class="structfield"><code>flags</code></em>;</span></p></td>
150<td> flags
151</td>
152</tr>
153<tr>
154<td><p><span class="term"><a class="link" href="libg3d-vector.html#G3DVector" title="G3DVector">G3DVector</a> *<em class="structfield"><code>normals</code></em>;</span></p></td>
155<td> optional normal array (one vector - 3 <a class="link" href="libg3d-vector.html#G3DVector" title="G3DVector"><span class="type">G3DVector</span></a> values - for each
156 vertex)
157</td>
158</tr>
159<tr>
160<td><p><span class="term"><a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *<em class="structfield"><code>tex_image</code></em>;</span></p></td>
161<td> optional texture image
162</td>
163</tr>
164<tr>
165<td><p><span class="term"><a
166href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
167>guint32</a> <em class="structfield"><code>tex_vertex_count</code></em>;</span></p></td>
168<td> number of texture vertices, should be 0 or match
169 vertex_count
170</td>
171</tr>
172<tr>
173<td><p><span class="term"><a class="link" href="libg3d-vector.html#G3DVector" title="G3DVector">G3DVector</a> *<em class="structfield"><code>tex_vertex_data</code></em>;</span></p></td>
174<td> array of texture vertices
175</td>
176</tr>
177</tbody>
178</table></div>
179</div>
180<hr>
181<div class="refsect2" lang="en">
182<a name="g3d-face-get-normal"></a><h3>g3d_face_get_normal ()</h3>
183<pre class="programlisting"><a
184href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
185>gboolean</a> g3d_face_get_normal (<a class="link" href="libg3d-face.html#G3DFace" title="G3DFace">G3DFace</a> *face,
186 <a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object,
187 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *nx,
188 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *ny,
189 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *nz);</pre>
190<p>
191calculates the normal of a face.</p>
192<p>
193
194</p>
195<div class="variablelist"><table border="0">
196<col align="left" valign="top">
197<tbody>
198<tr>
199<td><p><span class="term"><em class="parameter"><code>face</code></em> :</span></p></td>
200<td> face to calculate normal of
201</td>
202</tr>
203<tr>
204<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
205<td> object containing vertices of face
206</td>
207</tr>
208<tr>
209<td><p><span class="term"><em class="parameter"><code>nx</code></em> :</span></p></td>
210<td> x component of resulting normal
211</td>
212</tr>
213<tr>
214<td><p><span class="term"><em class="parameter"><code>ny</code></em> :</span></p></td>
215<td> y component of resulting normal
216</td>
217</tr>
218<tr>
219<td><p><span class="term"><em class="parameter"><code>nz</code></em> :</span></p></td>
220<td> z component of resulting normal
221</td>
222</tr>
223<tr>
224<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
225<td> TRUE on success, FALSE else
226</td>
227</tr>
228</tbody>
229</table></div>
230</div>
231<hr>
232<div class="refsect2" lang="en">
233<a name="g3d-face-free"></a><h3>g3d_face_free ()</h3>
234<pre class="programlisting">void g3d_face_free (<a class="link" href="libg3d-face.html#G3DFace" title="G3DFace">G3DFace</a> *face);</pre>
235<p>
236Frees all memory allocated for this face.</p>
237<p>
238
239</p>
240<div class="variablelist"><table border="0">
241<col align="left" valign="top">
242<tbody><tr>
243<td><p><span class="term"><em class="parameter"><code>face</code></em> :</span></p></td>
244<td> the face to free
245</td>
246</tr></tbody>
247</table></div>
248</div>
249</div>
250</div>
251<div class="footer">
252<hr>
253 Generated by GTK-Doc V1.10</div>
254</body>
255</html>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-iff.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-iff.html
new file mode 100644
index 0000000..69e560e
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-iff.html
@@ -0,0 +1,872 @@
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>iff</title>
6<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7<link rel="start" href="index.html" title="libg3d Reference Manual">
8<link rel="up" href="ch02.html" title="Plugin interface">
9<link rel="prev" href="libg3d-stream.html" title="stream">
10<link rel="next" href="libg3d-read.html" title="read">
11<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
12<link rel="stylesheet" href="style.css" type="text/css">
13<link rel="chapter" href="ch01.html" title="Application interface">
14<link rel="chapter" href="ch02.html" title="Plugin interface">
15</head>
16<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
17<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
18<tr valign="middle">
19<td><a accesskey="p" href="libg3d-stream.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
20<td><a accesskey="u" href="ch02.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
21<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
22<th width="100%" align="center">libg3d Reference Manual</th>
23<td><a accesskey="n" href="libg3d-read.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
24</tr>
25<tr><td colspan="5" class="shortcuts"><nobr><a href="#libg3d-iff.synopsis" class="shortcut">Top</a>
26  | 
27 <a href="#libg3d-iff.description" class="shortcut">Description</a></nobr></td></tr>
28</table>
29<div class="refentry" lang="en">
30<a name="libg3d-iff"></a><div class="titlepage"></div>
31<div class="refnamediv"><table width="100%"><tr>
32<td valign="top">
33<h2><span class="refentrytitle"><a name="libg3d-iff.top_of_page"></a>iff</span></h2>
34<p>iff — IFF file helper functions</p>
35</td>
36<td valign="top" align="right"></td>
37</tr></table></div>
38<div class="refsynopsisdiv">
39<a name="libg3d-iff.synopsis"></a><h2>Synopsis</h2>
40<pre class="synopsis">
41
42#include &lt;g3d/iff.h&gt;
43
44#define <a class="link" href="libg3d-iff.html#G3D-IFF-PAD1:CAPS" title="G3D_IFF_PAD1">G3D_IFF_PAD1</a>
45#define <a class="link" href="libg3d-iff.html#G3D-IFF-PAD2:CAPS" title="G3D_IFF_PAD2">G3D_IFF_PAD2</a>
46#define <a class="link" href="libg3d-iff.html#G3D-IFF-PAD4:CAPS" title="G3D_IFF_PAD4">G3D_IFF_PAD4</a>
47#define <a class="link" href="libg3d-iff.html#G3D-IFF-PAD8:CAPS" title="G3D_IFF_PAD8">G3D_IFF_PAD8</a>
48#define <a class="link" href="libg3d-iff.html#G3D-IFF-LE:CAPS" title="G3D_IFF_LE">G3D_IFF_LE</a>
49#define <a class="link" href="libg3d-iff.html#G3D-IFF-LEN16:CAPS" title="G3D_IFF_LEN16">G3D_IFF_LEN16</a>
50#define <a class="link" href="libg3d-iff.html#G3D-IFF-SUBCHUNK-LEN16:CAPS" title="G3D_IFF_SUBCHUNK_LEN16">G3D_IFF_SUBCHUNK_LEN16</a>
51#define <a class="link" href="libg3d-iff.html#G3D-IFF-MKID:CAPS" title="G3D_IFF_MKID()">G3D_IFF_MKID</a> (a,b,c,d)
52<a
53href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
54>gboolean</a> <a class="link" href="libg3d-iff.html#g3d-iff-check" title="g3d_iff_check ()">g3d_iff_check</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
55 <a
56href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
57>guint32</a> *id,
58 <a
59href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
60>gsize</a> *len);
61<a
62href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
63>gsize</a> <a class="link" href="libg3d-iff.html#g3d-iff-read-chunk" title="g3d_iff_read_chunk ()">g3d_iff_read_chunk</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
64 <a
65href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
66>guint32</a> *id,
67 <a
68href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
69>gsize</a> *len,
70 <a
71href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
72>guint32</a> flags);
73<a
74href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
75>gpointer</a> <a class="link" href="libg3d-iff.html#g3d-iff-handle-chunk" title="g3d_iff_handle_chunk ()">g3d_iff_handle_chunk</a> (<a class="link" href="libg3d-iff.html#G3DIffGlobal" title="G3DIffGlobal">G3DIffGlobal</a> *global,
76 <a class="link" href="libg3d-iff.html#G3DIffLocal" title="G3DIffLocal">G3DIffLocal</a> *plocal,
77 <a class="link" href="libg3d-iff.html#G3DIffChunkInfo" title="G3DIffChunkInfo">G3DIffChunkInfo</a> *chunks,
78 <a
79href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
80>guint32</a> flags);
81<a
82href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
83>gboolean</a> <a class="link" href="libg3d-iff.html#g3d-iff-chunk-matches" title="g3d_iff_chunk_matches ()">g3d_iff_chunk_matches</a> (<a
84href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
85>guint32</a> id,
86 <a
87href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
88>gchar</a> *tid);
89<a
90href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
91>gboolean</a> <a class="link" href="libg3d-iff.html#g3d-iff-read-ctnr" title="g3d_iff_read_ctnr ()">g3d_iff_read_ctnr</a> (<a class="link" href="libg3d-iff.html#G3DIffGlobal" title="G3DIffGlobal">G3DIffGlobal</a> *global,
92 <a class="link" href="libg3d-iff.html#G3DIffLocal" title="G3DIffLocal">G3DIffLocal</a> *local,
93 <a class="link" href="libg3d-iff.html#G3DIffChunkInfo" title="G3DIffChunkInfo">G3DIffChunkInfo</a> *chunks,
94 <a
95href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
96>guint32</a> flags);
97<a
98href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
99>gchar</a>* <a class="link" href="libg3d-iff.html#g3d-iff-id-to-text" title="g3d_iff_id_to_text ()">g3d_iff_id_to_text</a> (<a
100href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
101>guint32</a> id);
102FILE* <a class="link" href="libg3d-iff.html#g3d-iff-open" title="g3d_iff_open ()">g3d_iff_open</a> (const <a
103href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
104>gchar</a> *filename,
105 <a
106href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
107>guint32</a> *id,
108 <a
109href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
110>guint32</a> *len);
111int <a class="link" href="libg3d-iff.html#g3d-iff-readchunk" title="g3d_iff_readchunk ()">g3d_iff_readchunk</a> (FILE *f,
112 <a
113href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
114>guint32</a> *id,
115 <a
116href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
117>guint32</a> *len,
118 <a
119href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
120>guint32</a> flags);
121<a
122href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
123>gboolean</a> (<a class="link" href="libg3d-iff.html#G3DIffChunkCallback" title="G3DIffChunkCallback ()">*G3DIffChunkCallback</a>) (<a class="link" href="libg3d-iff.html#G3DIffGlobal" title="G3DIffGlobal">G3DIffGlobal</a> *global,
124 <a class="link" href="libg3d-iff.html#G3DIffLocal" title="G3DIffLocal">G3DIffLocal</a> *local);
125#define <a class="link" href="libg3d-iff.html#g3d-iff-chunk-callback" title="g3d_iff_chunk_callback">g3d_iff_chunk_callback</a>
126 <a class="link" href="libg3d-iff.html#G3DIffChunkInfo" title="G3DIffChunkInfo">G3DIffChunkInfo</a>;
127#define <a class="link" href="libg3d-iff.html#g3d-iff-chunk-info" title="g3d_iff_chunk_info">g3d_iff_chunk_info</a>
128 <a class="link" href="libg3d-iff.html#G3DIffGlobal" title="G3DIffGlobal">G3DIffGlobal</a>;
129#define <a class="link" href="libg3d-iff.html#g3d-iff-gdata" title="g3d_iff_gdata">g3d_iff_gdata</a>
130 <a class="link" href="libg3d-iff.html#G3DIffLocal" title="G3DIffLocal">G3DIffLocal</a>;
131#define <a class="link" href="libg3d-iff.html#g3d-iff-ldata" title="g3d_iff_ldata">g3d_iff_ldata</a>
132</pre>
133</div>
134<div class="refsect1" lang="en">
135<a name="libg3d-iff.description"></a><h2>Description</h2>
136<p>
137These are helper functions to read data from the Interchange File Format
138(IFF).</p>
139<p>
140
141</p>
142</div>
143<div class="refsect1" lang="en">
144<a name="libg3d-iff.details"></a><h2>Details</h2>
145<div class="refsect2" lang="en">
146<a name="G3D-IFF-PAD1:CAPS"></a><h3>G3D_IFF_PAD1</h3>
147<pre class="programlisting">#define G3D_IFF_PAD1 0x01
148</pre>
149<p>
150No padding is done after chunks.</p>
151<p>
152
153</p>
154</div>
155<hr>
156<div class="refsect2" lang="en">
157<a name="G3D-IFF-PAD2:CAPS"></a><h3>G3D_IFF_PAD2</h3>
158<pre class="programlisting">#define G3D_IFF_PAD2 0x02
159</pre>
160<p>
161Chunks are 2-byte aligned</p>
162<p>
163
164</p>
165</div>
166<hr>
167<div class="refsect2" lang="en">
168<a name="G3D-IFF-PAD4:CAPS"></a><h3>G3D_IFF_PAD4</h3>
169<pre class="programlisting">#define G3D_IFF_PAD4 0x04
170</pre>
171<p>
172Chunks are 4-byte aligned</p>
173<p>
174
175</p>
176</div>
177<hr>
178<div class="refsect2" lang="en">
179<a name="G3D-IFF-PAD8:CAPS"></a><h3>G3D_IFF_PAD8</h3>
180<pre class="programlisting">#define G3D_IFF_PAD8 0x08
181</pre>
182<p>
183Chunks are 8-byte aligned</p>
184<p>
185
186</p>
187</div>
188<hr>
189<div class="refsect2" lang="en">
190<a name="G3D-IFF-LE:CAPS"></a><h3>G3D_IFF_LE</h3>
191<pre class="programlisting">#define G3D_IFF_LE 0x40 /* little endian */
192</pre>
193<p>
194The file has little-endian data.</p>
195<p>
196
197</p>
198</div>
199<hr>
200<div class="refsect2" lang="en">
201<a name="G3D-IFF-LEN16:CAPS"></a><h3>G3D_IFF_LEN16</h3>
202<pre class="programlisting">#define G3D_IFF_LEN16 0x20
203</pre>
204<p>
205All chunks have 16-bit sizes.</p>
206<p>
207
208</p>
209</div>
210<hr>
211<div class="refsect2" lang="en">
212<a name="G3D-IFF-SUBCHUNK-LEN16:CAPS"></a><h3>G3D_IFF_SUBCHUNK_LEN16</h3>
213<pre class="programlisting">#define G3D_IFF_SUBCHUNK_LEN16 0x10
214</pre>
215<p>
216All chunks except the toplevel ones have 16-bit sizes.</p>
217<p>
218
219</p>
220</div>
221<hr>
222<div class="refsect2" lang="en">
223<a name="G3D-IFF-MKID:CAPS"></a><h3>G3D_IFF_MKID()</h3>
224<pre class="programlisting">#define G3D_IFF_MKID(a,b,c,d)</pre>
225<p>
226Generate an IFF chunk identifier from character representation, e.g.
227G3D_IFF_MKID('F','O','R','M').</p>
228<p>
229
230</p>
231<div class="variablelist"><table border="0">
232<col align="left" valign="top">
233<tbody>
234<tr>
235<td><p><span class="term"><em class="parameter"><code>a</code></em> :</span></p></td>
236<td> first byte
237</td>
238</tr>
239<tr>
240<td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td>
241<td> second byte
242</td>
243</tr>
244<tr>
245<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
246<td> third byte
247</td>
248</tr>
249<tr>
250<td><p><span class="term"><em class="parameter"><code>d</code></em> :</span></p></td>
251<td> fourth byte
252</td>
253</tr>
254</tbody>
255</table></div>
256</div>
257<hr>
258<div class="refsect2" lang="en">
259<a name="g3d-iff-check"></a><h3>g3d_iff_check ()</h3>
260<pre class="programlisting"><a
261href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
262>gboolean</a> g3d_iff_check (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
263 <a
264href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
265>guint32</a> *id,
266 <a
267href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
268>gsize</a> *len);</pre>
269<p>
270Checks a stream for a valid IFF signature and reads the top level container.</p>
271<p>
272
273</p>
274<div class="variablelist"><table border="0">
275<col align="left" valign="top">
276<tbody>
277<tr>
278<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
279<td> stream containing IFF file to check
280</td>
281</tr>
282<tr>
283<td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
284<td> top level ID (out)
285</td>
286</tr>
287<tr>
288<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
289<td> length of top level container (out)
290</td>
291</tr>
292<tr>
293<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
294<td> TRUE on success (valid IFF), FALSE else
295</td>
296</tr>
297</tbody>
298</table></div>
299</div>
300<hr>
301<div class="refsect2" lang="en">
302<a name="g3d-iff-read-chunk"></a><h3>g3d_iff_read_chunk ()</h3>
303<pre class="programlisting"><a
304href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
305>gsize</a> g3d_iff_read_chunk (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
306 <a
307href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
308>guint32</a> *id,
309 <a
310href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
311>gsize</a> *len,
312 <a
313href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
314>guint32</a> flags);</pre>
315<p>
316Reads one chunk header from an IFF file.</p>
317<p>
318
319</p>
320<div class="variablelist"><table border="0">
321<col align="left" valign="top">
322<tbody>
323<tr>
324<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
325<td> stream to read from
326</td>
327</tr>
328<tr>
329<td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
330<td> ID of chunk (out)
331</td>
332</tr>
333<tr>
334<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
335<td> length of chunk (excluding header) (out)
336</td>
337</tr>
338<tr>
339<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
340<td> flags
341</td>
342</tr>
343<tr>
344<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
345<td> real length of chunk including header and possible padding byte
346</td>
347</tr>
348</tbody>
349</table></div>
350</div>
351<hr>
352<div class="refsect2" lang="en">
353<a name="g3d-iff-handle-chunk"></a><h3>g3d_iff_handle_chunk ()</h3>
354<pre class="programlisting"><a
355href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
356>gpointer</a> g3d_iff_handle_chunk (<a class="link" href="libg3d-iff.html#G3DIffGlobal" title="G3DIffGlobal">G3DIffGlobal</a> *global,
357 <a class="link" href="libg3d-iff.html#G3DIffLocal" title="G3DIffLocal">G3DIffLocal</a> *plocal,
358 <a class="link" href="libg3d-iff.html#G3DIffChunkInfo" title="G3DIffChunkInfo">G3DIffChunkInfo</a> *chunks,
359 <a
360href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
361>guint32</a> flags);</pre>
362<p>
363Handle an IFF chunk based on chunk description.</p>
364<p>
365
366</p>
367<div class="variablelist"><table border="0">
368<col align="left" valign="top">
369<tbody>
370<tr>
371<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
372<td> global data
373</td>
374</tr>
375<tr>
376<td><p><span class="term"><em class="parameter"><code>plocal</code></em> :</span></p></td>
377<td> local data of parent chunk, must not be NULL
378</td>
379</tr>
380<tr>
381<td><p><span class="term"><em class="parameter"><code>chunks</code></em> :</span></p></td>
382<td> chunk description list
383</td>
384</tr>
385<tr>
386<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
387<td> IFF flags
388</td>
389</tr>
390<tr>
391<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
392<td> level object for siblings, may be NULL.
393</td>
394</tr>
395</tbody>
396</table></div>
397</div>
398<hr>
399<div class="refsect2" lang="en">
400<a name="g3d-iff-chunk-matches"></a><h3>g3d_iff_chunk_matches ()</h3>
401<pre class="programlisting"><a
402href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
403>gboolean</a> g3d_iff_chunk_matches (<a
404href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
405>guint32</a> id,
406 <a
407href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
408>gchar</a> *tid);</pre>
409<p>
410Check whether <em class="parameter"><code>id</code></em> and <em class="parameter"><code>tid</code></em> match.</p>
411<p>
412
413</p>
414<div class="variablelist"><table border="0">
415<col align="left" valign="top">
416<tbody>
417<tr>
418<td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
419<td> IFF identifier
420</td>
421</tr>
422<tr>
423<td><p><span class="term"><em class="parameter"><code>tid</code></em> :</span></p></td>
424<td> textual representation of identifier
425</td>
426</tr>
427<tr>
428<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
429<td> TRUE on match, FALSE else.
430</td>
431</tr>
432</tbody>
433</table></div>
434</div>
435<hr>
436<div class="refsect2" lang="en">
437<a name="g3d-iff-read-ctnr"></a><h3>g3d_iff_read_ctnr ()</h3>
438<pre class="programlisting"><a
439href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
440>gboolean</a> g3d_iff_read_ctnr (<a class="link" href="libg3d-iff.html#G3DIffGlobal" title="G3DIffGlobal">G3DIffGlobal</a> *global,
441 <a class="link" href="libg3d-iff.html#G3DIffLocal" title="G3DIffLocal">G3DIffLocal</a> *local,
442 <a class="link" href="libg3d-iff.html#G3DIffChunkInfo" title="G3DIffChunkInfo">G3DIffChunkInfo</a> *chunks,
443 <a
444href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
445>guint32</a> flags);</pre>
446<p>
447Read subchunks in current chunk and handle them appropriately.</p>
448<p>
449
450</p>
451<div class="variablelist"><table border="0">
452<col align="left" valign="top">
453<tbody>
454<tr>
455<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
456<td> global data
457</td>
458</tr>
459<tr>
460<td><p><span class="term"><em class="parameter"><code>local</code></em> :</span></p></td>
461<td> local data of current chunk, must not be NULL
462</td>
463</tr>
464<tr>
465<td><p><span class="term"><em class="parameter"><code>chunks</code></em> :</span></p></td>
466<td> chunk description list
467</td>
468</tr>
469<tr>
470<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
471<td> IFF flags
472</td>
473</tr>
474<tr>
475<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
476<td> TRUE on success, FALSE else.
477</td>
478</tr>
479</tbody>
480</table></div>
481</div>
482<hr>
483<div class="refsect2" lang="en">
484<a name="g3d-iff-id-to-text"></a><h3>g3d_iff_id_to_text ()</h3>
485<pre class="programlisting"><a
486href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
487>gchar</a>* g3d_iff_id_to_text (<a
488href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
489>guint32</a> id);</pre>
490<p>
491Get the text representation of an IFF chunk identifier.</p>
492<p>
493
494</p>
495<div class="variablelist"><table border="0">
496<col align="left" valign="top">
497<tbody>
498<tr>
499<td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
500<td> an IFF identifier
501</td>
502</tr>
503<tr>
504<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
505<td> a newly allocated string containing the text identifier.
506</td>
507</tr>
508</tbody>
509</table></div>
510</div>
511<hr>
512<div class="refsect2" lang="en">
513<a name="g3d-iff-open"></a><h3>g3d_iff_open ()</h3>
514<pre class="programlisting">FILE* g3d_iff_open (const <a
515href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
516>gchar</a> *filename,
517 <a
518href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
519>guint32</a> *id,
520 <a
521href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
522>guint32</a> *len);</pre>
523<p>
524Opens an IFF file, checks it and reads its top level container.</p>
525<p>
526
527</p>
528<div class="variablelist"><table border="0">
529<col align="left" valign="top">
530<tbody>
531<tr>
532<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
533<td> file name of IFF file
534</td>
535</tr>
536<tr>
537<td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
538<td> top level ID (out)
539</td>
540</tr>
541<tr>
542<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
543<td> length of top level container (out)
544</td>
545</tr>
546<tr>
547<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
548<td> the file pointer of open file or NULL in case of an error
549</td>
550</tr>
551</tbody>
552</table></div>
553</div>
554<hr>
555<div class="refsect2" lang="en">
556<a name="g3d-iff-readchunk"></a><h3>g3d_iff_readchunk ()</h3>
557<pre class="programlisting">int g3d_iff_readchunk (FILE *f,
558 <a
559href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
560>guint32</a> *id,
561 <a
562href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
563>guint32</a> *len,
564 <a
565href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
566>guint32</a> flags);</pre>
567<p>
568Reads one chunk header from an IFF file.</p>
569<p>
570
571</p>
572<div class="variablelist"><table border="0">
573<col align="left" valign="top">
574<tbody>
575<tr>
576<td><p><span class="term"><em class="parameter"><code>f</code></em> :</span></p></td>
577<td> the open IFF file pointer
578</td>
579</tr>
580<tr>
581<td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
582<td> ID of chunk (out)
583</td>
584</tr>
585<tr>
586<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
587<td> length of chunk (excluding header) (out)
588</td>
589</tr>
590<tr>
591<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
592<td> flags
593</td>
594</tr>
595<tr>
596<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
597<td> real length of chunk including header and possible padding byte
598</td>
599</tr>
600</tbody>
601</table></div>
602</div>
603<hr>
604<div class="refsect2" lang="en">
605<a name="G3DIffChunkCallback"></a><h3>G3DIffChunkCallback ()</h3>
606<pre class="programlisting"><a
607href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
608>gboolean</a> (*G3DIffChunkCallback) (<a class="link" href="libg3d-iff.html#G3DIffGlobal" title="G3DIffGlobal">G3DIffGlobal</a> *global,
609 <a class="link" href="libg3d-iff.html#G3DIffLocal" title="G3DIffLocal">G3DIffLocal</a> *local);</pre>
610<p>
611IFF callback function prototype.</p>
612<p>
613
614</p>
615<div class="variablelist"><table border="0">
616<col align="left" valign="top">
617<tbody>
618<tr>
619<td><p><span class="term"><em class="parameter"><code>global</code></em> :</span></p></td>
620<td> the global data
621</td>
622</tr>
623<tr>
624<td><p><span class="term"><em class="parameter"><code>local</code></em> :</span></p></td>
625<td> the local data
626</td>
627</tr>
628<tr>
629<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
630<td> TRUE on success, FALSE else.
631</td>
632</tr>
633</tbody>
634</table></div>
635</div>
636<hr>
637<div class="refsect2" lang="en">
638<a name="g3d-iff-chunk-callback"></a><h3>g3d_iff_chunk_callback</h3>
639<pre class="programlisting">#define g3d_iff_chunk_callback G3DIffChunkCallback
640</pre>
641<p>
642IFF chunk callback (deprecated).</p>
643<p>
644
645</p>
646</div>
647<hr>
648<div class="refsect2" lang="en">
649<a name="G3DIffChunkInfo"></a><h3>G3DIffChunkInfo</h3>
650<pre class="programlisting">typedef struct {
651 gchar *id;
652 gchar *description;
653 gboolean container;
654 G3DIffChunkCallback callback;
655} G3DIffChunkInfo;
656</pre>
657<p>
658A chunk type description.</p>
659<p>
660
661</p>
662<div class="variablelist"><table border="0">
663<col align="left" valign="top">
664<tbody>
665<tr>
666<td><p><span class="term"><a
667href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
668>gchar</a> *<em class="structfield"><code>id</code></em>;</span></p></td>
669<td> identifier of chunk
670</td>
671</tr>
672<tr>
673<td><p><span class="term"><a
674href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
675>gchar</a> *<em class="structfield"><code>description</code></em>;</span></p></td>
676<td> human-readable description of chunk type
677</td>
678</tr>
679<tr>
680<td><p><span class="term"><a
681href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
682>gboolean</a> <em class="structfield"><code>container</code></em>;</span></p></td>
683<td> TRUE if this chunk contains sub-chunks
684</td>
685</tr>
686<tr>
687<td><p><span class="term"><a class="link" href="libg3d-iff.html#G3DIffChunkCallback" title="G3DIffChunkCallback ()">G3DIffChunkCallback</a> <em class="structfield"><code>callback</code></em>;</span></p></td>
688<td> function to be called if such a chunk is found
689</td>
690</tr>
691</tbody>
692</table></div>
693</div>
694<hr>
695<div class="refsect2" lang="en">
696<a name="g3d-iff-chunk-info"></a><h3>g3d_iff_chunk_info</h3>
697<pre class="programlisting">#define g3d_iff_chunk_info G3DIffChunkInfo
698</pre>
699<p>
700IFF chunk description (deprecated).</p>
701<p>
702
703</p>
704</div>
705<hr>
706<div class="refsect2" lang="en">
707<a name="G3DIffGlobal"></a><h3>G3DIffGlobal</h3>
708<pre class="programlisting">typedef struct {
709 G3DContext *context;
710 G3DModel *model;
711 G3DStream *stream;
712 guint32 flags;
713 gpointer user_data;
714 FILE *f;
715 long int max_fpos;
716} G3DIffGlobal;
717</pre>
718<p>
719The plugin-global data to be given to IFF callback functions.</p>
720<p>
721
722</p>
723<div class="variablelist"><table border="0">
724<col align="left" valign="top">
725<tbody>
726<tr>
727<td><p><span class="term"><a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *<em class="structfield"><code>context</code></em>;</span></p></td>
728<td> a valid context
729</td>
730</tr>
731<tr>
732<td><p><span class="term"><a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *<em class="structfield"><code>model</code></em>;</span></p></td>
733<td> a model
734</td>
735</tr>
736<tr>
737<td><p><span class="term"><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *<em class="structfield"><code>stream</code></em>;</span></p></td>
738<td> the stream to read model from
739</td>
740</tr>
741<tr>
742<td><p><span class="term"><a
743href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
744>guint32</a> <em class="structfield"><code>flags</code></em>;</span></p></td>
745<td> IFF flags
746</td>
747</tr>
748<tr>
749<td><p><span class="term"><a
750href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
751>gpointer</a> <em class="structfield"><code>user_data</code></em>;</span></p></td>
752<td> to be used by plugin
753</td>
754</tr>
755<tr>
756<td><p><span class="term">FILE *<em class="structfield"><code>f</code></em>;</span></p></td>
757<td> file to read model from (DEPRECATED)
758</td>
759</tr>
760<tr>
761<td><p><span class="term">long int <em class="structfield"><code>max_fpos</code></em>;</span></p></td>
762<td> maximum file position (DEPRECATED)
763</td>
764</tr>
765</tbody>
766</table></div>
767</div>
768<hr>
769<div class="refsect2" lang="en">
770<a name="g3d-iff-gdata"></a><h3>g3d_iff_gdata</h3>
771<pre class="programlisting">#define g3d_iff_gdata G3DIffGlobal
772</pre>
773<p>
774IFF global data (deprecated).</p>
775<p>
776
777</p>
778</div>
779<hr>
780<div class="refsect2" lang="en">
781<a name="G3DIffLocal"></a><h3>G3DIffLocal</h3>
782<pre class="programlisting">typedef struct {
783 guint32 id;
784 guint32 parent_id;
785 gpointer object;
786 gint32 level;
787 gpointer level_object;
788 gint32 nb;
789 gboolean finalize;
790} G3DIffLocal;
791</pre>
792<p>
793The function-local data for IFF callback functions.</p>
794<p>
795
796</p>
797<div class="variablelist"><table border="0">
798<col align="left" valign="top">
799<tbody>
800<tr>
801<td><p><span class="term"><a
802href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
803>guint32</a> <em class="structfield"><code>id</code></em>;</span></p></td>
804<td> chunk identifier
805</td>
806</tr>
807<tr>
808<td><p><span class="term"><a
809href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
810>guint32</a> <em class="structfield"><code>parent_id</code></em>;</span></p></td>
811<td> parent chunk identifier
812</td>
813</tr>
814<tr>
815<td><p><span class="term"><a
816href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
817>gpointer</a> <em class="structfield"><code>object</code></em>;</span></p></td>
818<td> an object set by parent callbacks, may be NULL
819</td>
820</tr>
821<tr>
822<td><p><span class="term"><a
823href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
824>gint32</a> <em class="structfield"><code>level</code></em>;</span></p></td>
825<td> level of chunk
826</td>
827</tr>
828<tr>
829<td><p><span class="term"><a
830href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
831>gpointer</a> <em class="structfield"><code>level_object</code></em>;</span></p></td>
832<td> object shared by callbacks on the same level, may be NULL
833</td>
834</tr>
835<tr>
836<td><p><span class="term"><a
837href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
838>gint32</a> <em class="structfield"><code>nb</code></em>;</span></p></td>
839<td> number of bytes remaining in chunk, has to be decremented after
840correctly after reading from stream
841</td>
842</tr>
843<tr>
844<td><p><span class="term"><a
845href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
846>gboolean</a> <em class="structfield"><code>finalize</code></em>;</span></p></td>
847<td> for container chunks the callback function is called before
848and after processing possible sub-chunks, the second time <em class="parameter"><code>finalize</code></em> is set
849to TRUE
850</td>
851</tr>
852</tbody>
853</table></div>
854</div>
855<hr>
856<div class="refsect2" lang="en">
857<a name="g3d-iff-ldata"></a><h3>g3d_iff_ldata</h3>
858<pre class="programlisting">#define g3d_iff_ldata G3DIffLocal
859</pre>
860<p>
861IFF local data (deprecated).</p>
862<p>
863
864</p>
865</div>
866</div>
867</div>
868<div class="footer">
869<hr>
870 Generated by GTK-Doc V1.10</div>
871</body>
872</html>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-material.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-material.html
new file mode 100644
index 0000000..e4afa07
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-material.html
@@ -0,0 +1,174 @@
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>material</title>
6<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7<link rel="start" href="index.html" title="libg3d Reference Manual">
8<link rel="up" href="ch01.html" title="Application interface">
9<link rel="prev" href="libg3d-face.html" title="face">
10<link rel="next" href="libg3d-texture.html" title="texture">
11<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
12<link rel="stylesheet" href="style.css" type="text/css">
13<link rel="chapter" href="ch01.html" title="Application interface">
14<link rel="chapter" href="ch02.html" title="Plugin interface">
15</head>
16<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
17<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
18<tr valign="middle">
19<td><a accesskey="p" href="libg3d-face.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
20<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
21<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
22<th width="100%" align="center">libg3d Reference Manual</th>
23<td><a accesskey="n" href="libg3d-texture.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
24</tr>
25<tr><td colspan="5" class="shortcuts"><nobr><a href="#libg3d-material.synopsis" class="shortcut">Top</a>
26  | 
27 <a href="#libg3d-material.description" class="shortcut">Description</a></nobr></td></tr>
28</table>
29<div class="refentry" lang="en">
30<a name="libg3d-material"></a><div class="titlepage"></div>
31<div class="refnamediv"><table width="100%"><tr>
32<td valign="top">
33<h2><span class="refentrytitle"><a name="libg3d-material.top_of_page"></a>material</span></h2>
34<p>material — Material generation and manipulation</p>
35</td>
36<td valign="top" align="right"></td>
37</tr></table></div>
38<div class="refsynopsisdiv">
39<a name="libg3d-material.synopsis"></a><h2>Synopsis</h2>
40<pre class="synopsis">
41
42#include &lt;g3d/material.h&gt;
43
44 <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a>;
45<a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a>* <a class="link" href="libg3d-material.html#g3d-material-new" title="g3d_material_new ()">g3d_material_new</a> (void);
46void <a class="link" href="libg3d-material.html#g3d-material-free" title="g3d_material_free ()">g3d_material_free</a> (<a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material);
47</pre>
48</div>
49<div class="refsect1" lang="en">
50<a name="libg3d-material.description"></a><h2>Description</h2>
51<p>
52A material contains all color, shading and texture information for a
53<a class="link" href="libg3d-face.html#G3DFace" title="G3DFace"><span class="type">G3DFace</span></a>.</p>
54<p>
55
56</p>
57</div>
58<div class="refsect1" lang="en">
59<a name="libg3d-material.details"></a><h2>Details</h2>
60<div class="refsect2" lang="en">
61<a name="G3DMaterial"></a><h3>G3DMaterial</h3>
62<pre class="programlisting">typedef struct {
63 gchar *name;
64 G3DFloat r, g, b, a;
65 G3DFloat shininess;
66 G3DFloat specular[4];
67 guint32 flags;
68
69 G3DImage *tex_image;
70} G3DMaterial;
71</pre>
72<p>
73A material object.</p>
74<p>
75
76</p>
77<div class="variablelist"><table border="0">
78<col align="left" valign="top">
79<tbody>
80<tr>
81<td><p><span class="term"><a
82href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
83>gchar</a> *<em class="structfield"><code>name</code></em>;</span></p></td>
84<td> name of material
85</td>
86</tr>
87<tr>
88<td><p><span class="term"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <em class="structfield"><code>r</code></em>;</span></p></td>
89<td> red component of color
90</td>
91</tr>
92<tr>
93<td><p><span class="term"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <em class="structfield"><code>g</code></em>;</span></p></td>
94<td> green component of color
95</td>
96</tr>
97<tr>
98<td><p><span class="term"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <em class="structfield"><code>b</code></em>;</span></p></td>
99<td> blue component of color
100</td>
101</tr>
102<tr>
103<td><p><span class="term"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <em class="structfield"><code>a</code></em>;</span></p></td>
104<td> alpha component of color
105</td>
106</tr>
107<tr>
108<td><p><span class="term"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <em class="structfield"><code>shininess</code></em>;</span></p></td>
109<td> shiny color
110</td>
111</tr>
112<tr>
113<td><p><span class="term"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <em class="structfield"><code>specular</code></em>[4];</span></p></td>
114<td> specular color
115</td>
116</tr>
117<tr>
118<td><p><span class="term"><a
119href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
120>guint32</a> <em class="structfield"><code>flags</code></em>;</span></p></td>
121<td> flags
122</td>
123</tr>
124<tr>
125<td><p><span class="term"><a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *<em class="structfield"><code>tex_image</code></em>;</span></p></td>
126<td> texture image (optional, may be NULL)
127</td>
128</tr>
129</tbody>
130</table></div>
131</div>
132<hr>
133<div class="refsect2" lang="en">
134<a name="g3d-material-new"></a><h3>g3d_material_new ()</h3>
135<pre class="programlisting"><a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a>* g3d_material_new (void);</pre>
136<p>
137Generates a new material with a default color.</p>
138<p>
139
140</p>
141<div class="variablelist"><table border="0">
142<col align="left" valign="top">
143<tbody><tr>
144<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
145<td> the new material or NULL on error
146</td>
147</tr></tbody>
148</table></div>
149</div>
150<hr>
151<div class="refsect2" lang="en">
152<a name="g3d-material-free"></a><h3>g3d_material_free ()</h3>
153<pre class="programlisting">void g3d_material_free (<a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material);</pre>
154<p>
155Frees all memory allocated for that material.</p>
156<p>
157
158</p>
159<div class="variablelist"><table border="0">
160<col align="left" valign="top">
161<tbody><tr>
162<td><p><span class="term"><em class="parameter"><code>material</code></em> :</span></p></td>
163<td> the material to free
164</td>
165</tr></tbody>
166</table></div>
167</div>
168</div>
169</div>
170<div class="footer">
171<hr>
172 Generated by GTK-Doc V1.10</div>
173</body>
174</html>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-matrix.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-matrix.html
new file mode 100644
index 0000000..2ffe686
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-matrix.html
@@ -0,0 +1,450 @@
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>matrix</title>
6<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7<link rel="start" href="index.html" title="libg3d Reference Manual">
8<link rel="up" href="ch02.html" title="Plugin interface">
9<link rel="prev" href="libg3d-primitive.html" title="primitive">
10<link rel="next" href="libg3d-vector.html" title="vector">
11<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
12<link rel="stylesheet" href="style.css" type="text/css">
13<link rel="chapter" href="ch01.html" title="Application interface">
14<link rel="chapter" href="ch02.html" title="Plugin interface">
15</head>
16<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
17<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
18<tr valign="middle">
19<td><a accesskey="p" href="libg3d-primitive.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
20<td><a accesskey="u" href="ch02.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
21<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
22<th width="100%" align="center">libg3d Reference Manual</th>
23<td><a accesskey="n" href="libg3d-vector.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
24</tr>
25<tr><td colspan="5" class="shortcuts"><nobr><a href="#libg3d-matrix.synopsis" class="shortcut">Top</a>
26  | 
27 <a href="#libg3d-matrix.description" class="shortcut">Description</a></nobr></td></tr>
28</table>
29<div class="refentry" lang="en">
30<a name="libg3d-matrix"></a><div class="titlepage"></div>
31<div class="refnamediv"><table width="100%"><tr>
32<td valign="top">
33<h2><span class="refentrytitle"><a name="libg3d-matrix.top_of_page"></a>matrix</span></h2>
34<p>matrix — Matrix manipulation and calculation</p>
35</td>
36<td valign="top" align="right"></td>
37</tr></table></div>
38<div class="refsynopsisdiv">
39<a name="libg3d-matrix.synopsis"></a><h2>Synopsis</h2>
40<pre class="synopsis">
41
42#include &lt;g3d/matrix.h&gt;
43
44typedef <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a>;
45<a
46href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
47>gboolean</a> <a class="link" href="libg3d-matrix.html#g3d-matrix-identity" title="g3d_matrix_identity ()">g3d_matrix_identity</a> (<a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix);
48<a
49href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
50>gboolean</a> <a class="link" href="libg3d-matrix.html#g3d-matrix-multiply" title="g3d_matrix_multiply ()">g3d_matrix_multiply</a> (<a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *m1,
51 <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *m2,
52 <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *rm);
53<a
54href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
55>gboolean</a> <a class="link" href="libg3d-matrix.html#g3d-matrix-translate" title="g3d_matrix_translate ()">g3d_matrix_translate</a> (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> x,
56 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> y,
57 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> z,
58 <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *rm);
59<a
60href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
61>gboolean</a> <a class="link" href="libg3d-matrix.html#g3d-matrix-rotate" title="g3d_matrix_rotate ()">g3d_matrix_rotate</a> (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> angle,
62 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> ax,
63 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> ay,
64 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> az,
65 <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *rm);
66<a
67href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
68>gboolean</a> <a class="link" href="libg3d-matrix.html#g3d-matrix-rotate-xyz" title="g3d_matrix_rotate_xyz ()">g3d_matrix_rotate_xyz</a> (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> rx,
69 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> ry,
70 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> rz,
71 <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *rm);
72<a
73href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
74>gboolean</a> <a class="link" href="libg3d-matrix.html#g3d-matrix-scale" title="g3d_matrix_scale ()">g3d_matrix_scale</a> (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> x,
75 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> y,
76 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> z,
77 <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *rm);
78<a
79href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
80>gboolean</a> <a class="link" href="libg3d-matrix.html#g3d-matrix-transpose" title="g3d_matrix_transpose ()">g3d_matrix_transpose</a> (<a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix);
81<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <a class="link" href="libg3d-matrix.html#g3d-matrix-determinant" title="g3d_matrix_determinant ()">g3d_matrix_determinant</a> (<a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix);
82<a
83href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
84>gboolean</a> <a class="link" href="libg3d-matrix.html#g3d-matrix-dump" title="g3d_matrix_dump ()">g3d_matrix_dump</a> (<a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix);
85</pre>
86</div>
87<div class="refsect1" lang="en">
88<a name="libg3d-matrix.description"></a><h2>Description</h2>
89<p>
90Matrices in libg3d have the following layout:
91</p>
92<p>
93G3DMatrix matrix[16]:
94</p>
95<p>
96matrix[col * 4 + row] = f;</p>
97<p>
98
99</p>
100</div>
101<div class="refsect1" lang="en">
102<a name="libg3d-matrix.details"></a><h2>Details</h2>
103<div class="refsect2" lang="en">
104<a name="G3DMatrix"></a><h3>G3DMatrix</h3>
105<pre class="programlisting">typedef G3DFloat G3DMatrix;
106</pre>
107<p>
108Matrix element type.</p>
109<p>
110
111</p>
112</div>
113<hr>
114<div class="refsect2" lang="en">
115<a name="g3d-matrix-identity"></a><h3>g3d_matrix_identity ()</h3>
116<pre class="programlisting"><a
117href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
118>gboolean</a> g3d_matrix_identity (<a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix);</pre>
119<p>
120Sets the given matrix to the identity matrix.</p>
121<p>
122
123</p>
124<div class="variablelist"><table border="0">
125<col align="left" valign="top">
126<tbody>
127<tr>
128<td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
129<td> 4x4 matrix (float[16])
130</td>
131</tr>
132<tr>
133<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
134<td> TRUE on success, FALSE else
135</td>
136</tr>
137</tbody>
138</table></div>
139</div>
140<hr>
141<div class="refsect2" lang="en">
142<a name="g3d-matrix-multiply"></a><h3>g3d_matrix_multiply ()</h3>
143<pre class="programlisting"><a
144href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
145>gboolean</a> g3d_matrix_multiply (<a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *m1,
146 <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *m2,
147 <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *rm);</pre>
148<p>
149Multiplies the matrixes.</p>
150<p>
151
152</p>
153<div class="variablelist"><table border="0">
154<col align="left" valign="top">
155<tbody>
156<tr>
157<td><p><span class="term"><em class="parameter"><code>m1</code></em> :</span></p></td>
158<td> first matrix
159</td>
160</tr>
161<tr>
162<td><p><span class="term"><em class="parameter"><code>m2</code></em> :</span></p></td>
163<td> second matrix
164</td>
165</tr>
166<tr>
167<td><p><span class="term"><em class="parameter"><code>rm</code></em> :</span></p></td>
168<td> resulting matrix
169</td>
170</tr>
171<tr>
172<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
173<td> TRUE on success, FALSE else
174</td>
175</tr>
176</tbody>
177</table></div>
178</div>
179<hr>
180<div class="refsect2" lang="en">
181<a name="g3d-matrix-translate"></a><h3>g3d_matrix_translate ()</h3>
182<pre class="programlisting"><a
183href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
184>gboolean</a> g3d_matrix_translate (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> x,
185 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> y,
186 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> z,
187 <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *rm);</pre>
188<p>
189Adds a translation to the the matrix.</p>
190<p>
191
192</p>
193<div class="variablelist"><table border="0">
194<col align="left" valign="top">
195<tbody>
196<tr>
197<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
198<td> x translation
199</td>
200</tr>
201<tr>
202<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
203<td> y translation
204</td>
205</tr>
206<tr>
207<td><p><span class="term"><em class="parameter"><code>z</code></em> :</span></p></td>
208<td> z translation
209</td>
210</tr>
211<tr>
212<td><p><span class="term"><em class="parameter"><code>rm</code></em> :</span></p></td>
213<td> resulting matrix
214</td>
215</tr>
216<tr>
217<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
218<td> TRUE on success, FALSE else
219</td>
220</tr>
221</tbody>
222</table></div>
223</div>
224<hr>
225<div class="refsect2" lang="en">
226<a name="g3d-matrix-rotate"></a><h3>g3d_matrix_rotate ()</h3>
227<pre class="programlisting"><a
228href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
229>gboolean</a> g3d_matrix_rotate (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> angle,
230 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> ax,
231 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> ay,
232 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> az,
233 <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *rm);</pre>
234<p>
235Adds a rotation to the matrix.</p>
236<p>
237
238</p>
239<div class="variablelist"><table border="0">
240<col align="left" valign="top">
241<tbody>
242<tr>
243<td><p><span class="term"><em class="parameter"><code>angle</code></em> :</span></p></td>
244<td> rotation angle
245</td>
246</tr>
247<tr>
248<td><p><span class="term"><em class="parameter"><code>ax</code></em> :</span></p></td>
249<td> x component of rotation axis
250</td>
251</tr>
252<tr>
253<td><p><span class="term"><em class="parameter"><code>ay</code></em> :</span></p></td>
254<td> y component of rotation axis
255</td>
256</tr>
257<tr>
258<td><p><span class="term"><em class="parameter"><code>az</code></em> :</span></p></td>
259<td> z component of rotation axis
260</td>
261</tr>
262<tr>
263<td><p><span class="term"><em class="parameter"><code>rm</code></em> :</span></p></td>
264<td> resulting matrix
265</td>
266</tr>
267<tr>
268<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
269<td> TRUE on success, FALSE else
270</td>
271</tr>
272</tbody>
273</table></div>
274</div>
275<hr>
276<div class="refsect2" lang="en">
277<a name="g3d-matrix-rotate-xyz"></a><h3>g3d_matrix_rotate_xyz ()</h3>
278<pre class="programlisting"><a
279href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
280>gboolean</a> g3d_matrix_rotate_xyz (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> rx,
281 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> ry,
282 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> rz,
283 <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *rm);</pre>
284<p>
285Adds a rotation around the 3 coordinate system axes to the matrix.</p>
286<p>
287
288</p>
289<div class="variablelist"><table border="0">
290<col align="left" valign="top">
291<tbody>
292<tr>
293<td><p><span class="term"><em class="parameter"><code>rx</code></em> :</span></p></td>
294<td> rotation around x axis
295</td>
296</tr>
297<tr>
298<td><p><span class="term"><em class="parameter"><code>ry</code></em> :</span></p></td>
299<td> rotation around y axis
300</td>
301</tr>
302<tr>
303<td><p><span class="term"><em class="parameter"><code>rz</code></em> :</span></p></td>
304<td> rotation around z axis
305</td>
306</tr>
307<tr>
308<td><p><span class="term"><em class="parameter"><code>rm</code></em> :</span></p></td>
309<td> resulting matrix
310</td>
311</tr>
312<tr>
313<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
314<td> TRUE on success, FALSE else
315</td>
316</tr>
317</tbody>
318</table></div>
319</div>
320<hr>
321<div class="refsect2" lang="en">
322<a name="g3d-matrix-scale"></a><h3>g3d_matrix_scale ()</h3>
323<pre class="programlisting"><a
324href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
325>gboolean</a> g3d_matrix_scale (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> x,
326 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> y,
327 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> z,
328 <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *rm);</pre>
329<p>
330Adds a scaling to the matrix.</p>
331<p>
332
333</p>
334<div class="variablelist"><table border="0">
335<col align="left" valign="top">
336<tbody>
337<tr>
338<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
339<td> x factor
340</td>
341</tr>
342<tr>
343<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
344<td> y factor
345</td>
346</tr>
347<tr>
348<td><p><span class="term"><em class="parameter"><code>z</code></em> :</span></p></td>
349<td> z factor
350</td>
351</tr>
352<tr>
353<td><p><span class="term"><em class="parameter"><code>rm</code></em> :</span></p></td>
354<td> resulting matrix
355</td>
356</tr>
357<tr>
358<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
359<td> TRUE on success, FALSE else
360</td>
361</tr>
362</tbody>
363</table></div>
364</div>
365<hr>
366<div class="refsect2" lang="en">
367<a name="g3d-matrix-transpose"></a><h3>g3d_matrix_transpose ()</h3>
368<pre class="programlisting"><a
369href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
370>gboolean</a> g3d_matrix_transpose (<a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix);</pre>
371<p>
372Transposes the matrix.</p>
373<p>
374
375</p>
376<div class="variablelist"><table border="0">
377<col align="left" valign="top">
378<tbody>
379<tr>
380<td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
381<td> the matrix
382</td>
383</tr>
384<tr>
385<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
386<td> TRUE on success, FALSE else
387</td>
388</tr>
389</tbody>
390</table></div>
391</div>
392<hr>
393<div class="refsect2" lang="en">
394<a name="g3d-matrix-determinant"></a><h3>g3d_matrix_determinant ()</h3>
395<pre class="programlisting"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> g3d_matrix_determinant (<a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix);</pre>
396<p>
397Calculate the determinant of the matrix (FIXME: not verified).</p>
398<p>
399
400</p>
401<div class="variablelist"><table border="0">
402<col align="left" valign="top">
403<tbody>
404<tr>
405<td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
406<td> the matrix
407</td>
408</tr>
409<tr>
410<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
411<td> the determinant.
412</td>
413</tr>
414</tbody>
415</table></div>
416</div>
417<hr>
418<div class="refsect2" lang="en">
419<a name="g3d-matrix-dump"></a><h3>g3d_matrix_dump ()</h3>
420<pre class="programlisting"><a
421href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
422>gboolean</a> g3d_matrix_dump (<a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix);</pre>
423<p>
424If debugging is enabled, this function dump the matrix to stderr.</p>
425<p>
426
427</p>
428<div class="variablelist"><table border="0">
429<col align="left" valign="top">
430<tbody>
431<tr>
432<td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
433<td> the matrix
434</td>
435</tr>
436<tr>
437<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
438<td> TRUE if matrix is dumped, FALSE else
439</td>
440</tr>
441</tbody>
442</table></div>
443</div>
444</div>
445</div>
446<div class="footer">
447<hr>
448 Generated by GTK-Doc V1.10</div>
449</body>
450</html>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-model.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-model.html
new file mode 100644
index 0000000..3c28b34
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-model.html
@@ -0,0 +1,438 @@
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>model</title>
6<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7<link rel="start" href="index.html" title="libg3d Reference Manual">
8<link rel="up" href="ch01.html" title="Application interface">
9<link rel="prev" href="libg3d-context.html" title="context">
10<link rel="next" href="libg3d-object.html" title="object">
11<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
12<link rel="stylesheet" href="style.css" type="text/css">
13<link rel="chapter" href="ch01.html" title="Application interface">
14<link rel="chapter" href="ch02.html" title="Plugin interface">
15</head>
16<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
17<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
18<tr valign="middle">
19<td><a accesskey="p" href="libg3d-context.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
20<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
21<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
22<th width="100%" align="center">libg3d Reference Manual</th>
23<td><a accesskey="n" href="libg3d-object.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
24</tr>
25<tr><td colspan="5" class="shortcuts"><nobr><a href="#libg3d-model.synopsis" class="shortcut">Top</a>
26  | 
27 <a href="#libg3d-model.description" class="shortcut">Description</a></nobr></td></tr>
28</table>
29<div class="refentry" lang="en">
30<a name="libg3d-model"></a><div class="titlepage"></div>
31<div class="refnamediv"><table width="100%"><tr>
32<td valign="top">
33<h2><span class="refentrytitle"><a name="libg3d-model.top_of_page"></a>model</span></h2>
34<p>model — Model manipulation functions</p>
35</td>
36<td valign="top" align="right"></td>
37</tr></table></div>
38<div class="refsynopsisdiv">
39<a name="libg3d-model.synopsis"></a><h2>Synopsis</h2>
40<pre class="synopsis">
41
42#include &lt;g3d/g3d.h&gt;
43
44#define <a class="link" href="libg3d-model.html#G3D-MODEL-CENTER:CAPS" title="G3D_MODEL_CENTER">G3D_MODEL_CENTER</a>
45#define <a class="link" href="libg3d-model.html#G3D-MODEL-NOCHECK:CAPS" title="G3D_MODEL_NOCHECK">G3D_MODEL_NOCHECK</a>
46#define <a class="link" href="libg3d-model.html#G3D-MODEL-OPTIMIZE:CAPS" title="G3D_MODEL_OPTIMIZE">G3D_MODEL_OPTIMIZE</a>
47#define <a class="link" href="libg3d-model.html#G3D-MODEL-SCALE:CAPS" title="G3D_MODEL_SCALE">G3D_MODEL_SCALE</a>
48 <a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a>;
49<a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a>* <a class="link" href="libg3d-model.html#g3d-model-new" title="g3d_model_new ()">g3d_model_new</a> (void);
50<a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a>* <a class="link" href="libg3d-model.html#g3d-model-load" title="g3d_model_load ()">g3d_model_load</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
51 const <a
52href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
53>gchar</a> *filename);
54<a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a>* <a class="link" href="libg3d-model.html#g3d-model-load-full" title="g3d_model_load_full ()">g3d_model_load_full</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
55 const <a
56href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
57>gchar</a> *filename,
58 <a
59href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
60>guint32</a> flags);
61<a
62href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
63>gboolean</a> <a class="link" href="libg3d-model.html#g3d-model-check" title="g3d_model_check ()">g3d_model_check</a> (<a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model);
64<a
65href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
66>gboolean</a> <a class="link" href="libg3d-model.html#g3d-model-center" title="g3d_model_center ()">g3d_model_center</a> (<a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model);
67<a
68href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
69>gboolean</a> <a class="link" href="libg3d-model.html#g3d-model-transform" title="g3d_model_transform ()">g3d_model_transform</a> (<a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model,
70 <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix);
71void <a class="link" href="libg3d-model.html#g3d-model-clear" title="g3d_model_clear ()">g3d_model_clear</a> (<a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model);
72void <a class="link" href="libg3d-model.html#g3d-model-free" title="g3d_model_free ()">g3d_model_free</a> (<a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model);
73<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* <a class="link" href="libg3d-model.html#g3d-model-get-object-by-name" title="g3d_model_get_object_by_name ()">g3d_model_get_object_by_name</a> (<a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model,
74 const <a
75href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
76>gchar</a> *name);
77</pre>
78</div>
79<div class="refsect1" lang="en">
80<a name="libg3d-model.description"></a><h2>Description</h2>
81<p>
82A model is a group of objects. All information loaded from a file by libg3d
83is found in this model.</p>
84<p>
85
86</p>
87</div>
88<div class="refsect1" lang="en">
89<a name="libg3d-model.details"></a><h2>Details</h2>
90<div class="refsect2" lang="en">
91<a name="G3D-MODEL-CENTER:CAPS"></a><h3>G3D_MODEL_CENTER</h3>
92<pre class="programlisting">#define G3D_MODEL_CENTER (1 &lt;&lt; 1)
93</pre>
94<p>
95The model should be centered around the (0,0,0).</p>
96<p>
97
98</p>
99</div>
100<hr>
101<div class="refsect2" lang="en">
102<a name="G3D-MODEL-NOCHECK:CAPS"></a><h3>G3D_MODEL_NOCHECK</h3>
103<pre class="programlisting">#define G3D_MODEL_NOCHECK (1 &lt;&lt; 3)
104</pre>
105<p>
106The common checks should be disabled. The checks include:
107</p>
108<div class="itemizedlist"><ul type="disc">
109<li>faces have at least 3 indices</li>
110<li>face indices are &lt;= number of vertices</li>
111<li>material of faces is not NULL</li>
112</ul></div>
113<p>
114
115</p>
116</div>
117<hr>
118<div class="refsect2" lang="en">
119<a name="G3D-MODEL-OPTIMIZE:CAPS"></a><h3>G3D_MODEL_OPTIMIZE</h3>
120<pre class="programlisting">#define G3D_MODEL_OPTIMIZE (1 &lt;&lt; 2)
121</pre>
122<p>
123The model material/object/face lists should be serialized to some private
124arrays (deprecated).</p>
125<p>
126
127</p>
128</div>
129<hr>
130<div class="refsect2" lang="en">
131<a name="G3D-MODEL-SCALE:CAPS"></a><h3>G3D_MODEL_SCALE</h3>
132<pre class="programlisting">#define G3D_MODEL_SCALE (1 &lt;&lt; 0)
133</pre>
134<p>
135The model should be scaled to a maximum extension of +/- 10.0.</p>
136<p>
137
138</p>
139</div>
140<hr>
141<div class="refsect2" lang="en">
142<a name="G3DModel"></a><h3>G3DModel</h3>
143<pre class="programlisting">typedef struct {
144 gchar *filename;
145 GSList *materials;
146 GSList *objects;
147} G3DModel;
148</pre>
149<p>
150A 3D model.</p>
151<p>
152
153</p>
154<div class="variablelist"><table border="0">
155<col align="left" valign="top">
156<tbody>
157<tr>
158<td><p><span class="term"><a
159href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
160>gchar</a> *<em class="structfield"><code>filename</code></em>;</span></p></td>
161<td> file name or URI of loaded model, may be set by application
162</td>
163</tr>
164<tr>
165<td><p><span class="term"><a
166href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"
167>GSList</a> *<em class="structfield"><code>materials</code></em>;</span></p></td>
168<td> list of materials (<a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial"><span class="type">G3DMaterial</span></a>)
169</td>
170</tr>
171<tr>
172<td><p><span class="term"><a
173href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"
174>GSList</a> *<em class="structfield"><code>objects</code></em>;</span></p></td>
175<td> list of objects (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject"><span class="type">G3DObject</span></a>)
176</td>
177</tr>
178</tbody>
179</table></div>
180</div>
181<hr>
182<div class="refsect2" lang="en">
183<a name="g3d-model-new"></a><h3>g3d_model_new ()</h3>
184<pre class="programlisting"><a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a>* g3d_model_new (void);</pre>
185<p>
186This functions allocates and initializes a new G3DModel.</p>
187<p>
188
189</p>
190<div class="variablelist"><table border="0">
191<col align="left" valign="top">
192<tbody><tr>
193<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
194<td> a newly allocated G3DModel
195</td>
196</tr></tbody>
197</table></div>
198</div>
199<hr>
200<div class="refsect2" lang="en">
201<a name="g3d-model-load"></a><h3>g3d_model_load ()</h3>
202<pre class="programlisting"><a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a>* g3d_model_load (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
203 const <a
204href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
205>gchar</a> *filename);</pre>
206<p>
207Loads a model from a file. The model is checked, centered, resized,
208optimized.</p>
209<p>
210
211</p>
212<div class="variablelist"><table border="0">
213<col align="left" valign="top">
214<tbody>
215<tr>
216<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
217<td> a valid context
218</td>
219</tr>
220<tr>
221<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
222<td> the file name of the model to load
223</td>
224</tr>
225<tr>
226<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
227<td> the loaded model or NULL in case of an error
228</td>
229</tr>
230</tbody>
231</table></div>
232</div>
233<hr>
234<div class="refsect2" lang="en">
235<a name="g3d-model-load-full"></a><h3>g3d_model_load_full ()</h3>
236<pre class="programlisting"><a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a>* g3d_model_load_full (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
237 const <a
238href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
239>gchar</a> *filename,
240 <a
241href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
242>guint32</a> flags);</pre>
243<p>
244Loads a model from a file. Depending on <em class="parameter"><code>flags</code></em> the model is checked,
245centered, resized, optimized.</p>
246<p>
247
248</p>
249<div class="variablelist"><table border="0">
250<col align="left" valign="top">
251<tbody>
252<tr>
253<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
254<td> a valid context
255</td>
256</tr>
257<tr>
258<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
259<td> the file name of the model to load
260</td>
261</tr>
262<tr>
263<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
264<td> object manipulation flags
265</td>
266</tr>
267<tr>
268<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
269<td> the loaded model or NULL in case of an error.
270</td>
271</tr>
272</tbody>
273</table></div>
274</div>
275<hr>
276<div class="refsect2" lang="en">
277<a name="g3d-model-check"></a><h3>g3d_model_check ()</h3>
278<pre class="programlisting"><a
279href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
280>gboolean</a> g3d_model_check (<a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model);</pre>
281<p>
282Checks whether a model returned by plugin is valid.</p>
283<p>
284
285</p>
286<div class="variablelist"><table border="0">
287<col align="left" valign="top">
288<tbody>
289<tr>
290<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
291<td> the model to check
292</td>
293</tr>
294<tr>
295<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
296<td> TRUE on success, FALSE on error
297</td>
298</tr>
299</tbody>
300</table></div>
301</div>
302<hr>
303<div class="refsect2" lang="en">
304<a name="g3d-model-center"></a><h3>g3d_model_center ()</h3>
305<pre class="programlisting"><a
306href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
307>gboolean</a> g3d_model_center (<a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model);</pre>
308<p>
309Translates all object coordinates that the object center is at (0, 0, 0)</p>
310<p>
311
312</p>
313<div class="variablelist"><table border="0">
314<col align="left" valign="top">
315<tbody>
316<tr>
317<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
318<td> the model to center
319</td>
320</tr>
321<tr>
322<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
323<td> TRUE on success, FALSE on error
324</td>
325</tr>
326</tbody>
327</table></div>
328</div>
329<hr>
330<div class="refsect2" lang="en">
331<a name="g3d-model-transform"></a><h3>g3d_model_transform ()</h3>
332<pre class="programlisting"><a
333href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
334>gboolean</a> g3d_model_transform (<a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model,
335 <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix);</pre>
336<p>
337Transform all toplevel objects in model with matrix.</p>
338<p>
339
340</p>
341<div class="variablelist"><table border="0">
342<col align="left" valign="top">
343<tbody>
344<tr>
345<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
346<td> the model
347</td>
348</tr>
349<tr>
350<td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
351<td> transformation matrix
352</td>
353</tr>
354<tr>
355<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
356<td> TRUE on success, FALSE else
357</td>
358</tr>
359</tbody>
360</table></div>
361</div>
362<hr>
363<div class="refsect2" lang="en">
364<a name="g3d-model-clear"></a><h3>g3d_model_clear ()</h3>
365<pre class="programlisting">void g3d_model_clear (<a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model);</pre>
366<p>
367Removes all objects from a model.</p>
368<p>
369
370</p>
371<div class="variablelist"><table border="0">
372<col align="left" valign="top">
373<tbody><tr>
374<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
375<td> the model to clear
376</td>
377</tr></tbody>
378</table></div>
379</div>
380<hr>
381<div class="refsect2" lang="en">
382<a name="g3d-model-free"></a><h3>g3d_model_free ()</h3>
383<pre class="programlisting">void g3d_model_free (<a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model);</pre>
384<p>
385Frees all memory allocated for the model including all objects, materials
386and textures.</p>
387<p>
388
389</p>
390<div class="variablelist"><table border="0">
391<col align="left" valign="top">
392<tbody><tr>
393<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
394<td> the model to free
395</td>
396</tr></tbody>
397</table></div>
398</div>
399<hr>
400<div class="refsect2" lang="en">
401<a name="g3d-model-get-object-by-name"></a><h3>g3d_model_get_object_by_name ()</h3>
402<pre class="programlisting"><a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* g3d_model_get_object_by_name (<a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model,
403 const <a
404href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
405>gchar</a> *name);</pre>
406<p>
407Searches the object tree for an object with the given name.</p>
408<p>
409
410</p>
411<div class="variablelist"><table border="0">
412<col align="left" valign="top">
413<tbody>
414<tr>
415<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
416<td> the model containing all objects
417</td>
418</tr>
419<tr>
420<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
421<td> the name of the requested object
422</td>
423</tr>
424<tr>
425<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
426<td> the requested object or NULL if non was found
427</td>
428</tr>
429</tbody>
430</table></div>
431</div>
432</div>
433</div>
434<div class="footer">
435<hr>
436 Generated by GTK-Doc V1.10</div>
437</body>
438</html>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-object.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-object.html
new file mode 100644
index 0000000..c06bc24
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-object.html
@@ -0,0 +1,466 @@
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>object</title>
6<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7<link rel="start" href="index.html" title="libg3d Reference Manual">
8<link rel="up" href="ch01.html" title="Application interface">
9<link rel="prev" href="libg3d-model.html" title="model">
10<link rel="next" href="libg3d-face.html" title="face">
11<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
12<link rel="stylesheet" href="style.css" type="text/css">
13<link rel="chapter" href="ch01.html" title="Application interface">
14<link rel="chapter" href="ch02.html" title="Plugin interface">
15</head>
16<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
17<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
18<tr valign="middle">
19<td><a accesskey="p" href="libg3d-model.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
20<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
21<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
22<th width="100%" align="center">libg3d Reference Manual</th>
23<td><a accesskey="n" href="libg3d-face.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
24</tr>
25<tr><td colspan="5" class="shortcuts"><nobr><a href="#libg3d-object.synopsis" class="shortcut">Top</a>
26  | 
27 <a href="#libg3d-object.description" class="shortcut">Description</a></nobr></td></tr>
28</table>
29<div class="refentry" lang="en">
30<a name="libg3d-object"></a><div class="titlepage"></div>
31<div class="refnamediv"><table width="100%"><tr>
32<td valign="top">
33<h2><span class="refentrytitle"><a name="libg3d-object.top_of_page"></a>object</span></h2>
34<p>object — Object manipulation</p>
35</td>
36<td valign="top" align="right"></td>
37</tr></table></div>
38<div class="refsynopsisdiv">
39<a name="libg3d-object.synopsis"></a><h2>Synopsis</h2>
40<pre class="synopsis">
41
42#include &lt;g3d/object.h&gt;
43
44 <a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>;
45 <a class="link" href="libg3d-object.html#G3DTransformation" title="G3DTransformation">G3DTransformation</a>;
46void <a class="link" href="libg3d-object.html#g3d-object-free" title="g3d_object_free ()">g3d_object_free</a> (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object);
47<a
48href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
49>gdouble</a> <a class="link" href="libg3d-object.html#g3d-object-radius" title="g3d_object_radius ()">g3d_object_radius</a> (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object);
50<a
51href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
52>gboolean</a> <a class="link" href="libg3d-object.html#g3d-object-scale" title="g3d_object_scale ()">g3d_object_scale</a> (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object,
53 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> scale);
54<a
55href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
56>gboolean</a> <a class="link" href="libg3d-object.html#g3d-object-transform" title="g3d_object_transform ()">g3d_object_transform</a> (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object,
57 <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix);
58<a
59href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
60>gboolean</a> <a class="link" href="libg3d-object.html#g3d-object-transform-normals" title="g3d_object_transform_normals ()">g3d_object_transform_normals</a> (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object,
61 <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix);
62<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* <a class="link" href="libg3d-object.html#g3d-object-duplicate" title="g3d_object_duplicate ()">g3d_object_duplicate</a> (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object);
63<a
64href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
65>gboolean</a> <a class="link" href="libg3d-object.html#g3d-object-optimize" title="g3d_object_optimize ()">g3d_object_optimize</a> (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object);
66<a
67href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
68>gboolean</a> <a class="link" href="libg3d-object.html#g3d-object-smooth" title="g3d_object_smooth ()">g3d_object_smooth</a> (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object);
69<a
70href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
71>gboolean</a> <a class="link" href="libg3d-object.html#g3d-object-merge" title="g3d_object_merge ()">g3d_object_merge</a> (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *o1,
72 <a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *o2);
73</pre>
74</div>
75<div class="refsect1" lang="en">
76<a name="libg3d-object.description"></a><h2>Description</h2>
77<p>
78Objects are parts of a model. In most file formats vertices and faces are
79grouped in some way into objects. Objects can be hierarchical, so what a
80model contains is basically an object tree.</p>
81<p>
82
83</p>
84</div>
85<div class="refsect1" lang="en">
86<a name="libg3d-object.details"></a><h2>Details</h2>
87<div class="refsect2" lang="en">
88<a name="G3DObject"></a><h3>G3DObject</h3>
89<pre class="programlisting">typedef struct {
90 gchar *name;
91
92 GSList *materials;
93 GSList *faces;
94 GSList *objects;
95
96 /* transformation, may be NULL */
97 G3DTransformation *transformation;
98
99 /* don't render this object */
100 gboolean hide;
101
102 /* vertices */
103 guint32 vertex_count;
104 G3DVector *vertex_data;
105} G3DObject;
106</pre>
107<p>
108A three-dimensional object.</p>
109<p>
110
111</p>
112<div class="variablelist"><table border="0">
113<col align="left" valign="top">
114<tbody>
115<tr>
116<td><p><span class="term"><a
117href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
118>gchar</a> *<em class="structfield"><code>name</code></em>;</span></p></td>
119<td> name of object
120</td>
121</tr>
122<tr>
123<td><p><span class="term"><a
124href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"
125>GSList</a> *<em class="structfield"><code>materials</code></em>;</span></p></td>
126<td> list of materials
127</td>
128</tr>
129<tr>
130<td><p><span class="term"><a
131href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"
132>GSList</a> *<em class="structfield"><code>faces</code></em>;</span></p></td>
133<td> list of faces
134</td>
135</tr>
136<tr>
137<td><p><span class="term"><a
138href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"
139>GSList</a> *<em class="structfield"><code>objects</code></em>;</span></p></td>
140<td> list of sub-objects
141</td>
142</tr>
143<tr>
144<td><p><span class="term"><a class="link" href="libg3d-object.html#G3DTransformation" title="G3DTransformation">G3DTransformation</a> *<em class="structfield"><code>transformation</code></em>;</span></p></td>
145<td> optional transformation
146</td>
147</tr>
148<tr>
149<td><p><span class="term"><a
150href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
151>gboolean</a> <em class="structfield"><code>hide</code></em>;</span></p></td>
152<td> flag to disable object rendering
153</td>
154</tr>
155<tr>
156<td><p><span class="term"><a
157href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
158>guint32</a> <em class="structfield"><code>vertex_count</code></em>;</span></p></td>
159<td> number of vertices
160</td>
161</tr>
162<tr>
163<td><p><span class="term"><a class="link" href="libg3d-vector.html#G3DVector" title="G3DVector">G3DVector</a> *<em class="structfield"><code>vertex_data</code></em>;</span></p></td>
164<td> vertex vector data
165</td>
166</tr>
167</tbody>
168</table></div>
169</div>
170<hr>
171<div class="refsect2" lang="en">
172<a name="G3DTransformation"></a><h3>G3DTransformation</h3>
173<pre class="programlisting">typedef struct {
174 G3DMatrix matrix[16];
175 guint32 flags;
176} G3DTransformation;
177</pre>
178<p>
179A three-dimensional matrix transformation object.</p>
180<p>
181
182</p>
183<div class="variablelist"><table border="0">
184<col align="left" valign="top">
185<tbody>
186<tr>
187<td><p><span class="term"><a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> <em class="structfield"><code>matrix</code></em>[16];</span></p></td>
188<td> the transformation matrix
189</td>
190</tr>
191<tr>
192<td><p><span class="term"><a
193href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
194>guint32</a> <em class="structfield"><code>flags</code></em>;</span></p></td>
195<td> flags
196</td>
197</tr>
198</tbody>
199</table></div>
200</div>
201<hr>
202<div class="refsect2" lang="en">
203<a name="g3d-object-free"></a><h3>g3d_object_free ()</h3>
204<pre class="programlisting">void g3d_object_free (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object);</pre>
205<p>
206Frees all memory allocated for that object.</p>
207<p>
208
209</p>
210<div class="variablelist"><table border="0">
211<col align="left" valign="top">
212<tbody><tr>
213<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
214<td> the object to free
215</td>
216</tr></tbody>
217</table></div>
218</div>
219<hr>
220<div class="refsect2" lang="en">
221<a name="g3d-object-radius"></a><h3>g3d_object_radius ()</h3>
222<pre class="programlisting"><a
223href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
224>gdouble</a> g3d_object_radius (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object);</pre>
225<p>
226Calculates the radius of the object. This is the maximum from the
227center to a vertex.</p>
228<p>
229
230</p>
231<div class="variablelist"><table border="0">
232<col align="left" valign="top">
233<tbody>
234<tr>
235<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
236<td> the object to measure
237</td>
238</tr>
239<tr>
240<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
241<td> the radius of the given object
242</td>
243</tr>
244</tbody>
245</table></div>
246</div>
247<hr>
248<div class="refsect2" lang="en">
249<a name="g3d-object-scale"></a><h3>g3d_object_scale ()</h3>
250<pre class="programlisting"><a
251href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
252>gboolean</a> g3d_object_scale (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object,
253 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> scale);</pre>
254<p>
255Resizes the object by the factor <em class="parameter"><code>scale</code></em>.</p>
256<p>
257
258</p>
259<div class="variablelist"><table border="0">
260<col align="left" valign="top">
261<tbody>
262<tr>
263<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
264<td> the object to scale
265</td>
266</tr>
267<tr>
268<td><p><span class="term"><em class="parameter"><code>scale</code></em> :</span></p></td>
269<td> scale factor
270</td>
271</tr>
272<tr>
273<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
274<td> TRUE on success, FALSE else
275</td>
276</tr>
277</tbody>
278</table></div>
279</div>
280<hr>
281<div class="refsect2" lang="en">
282<a name="g3d-object-transform"></a><h3>g3d_object_transform ()</h3>
283<pre class="programlisting"><a
284href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
285>gboolean</a> g3d_object_transform (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object,
286 <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix);</pre>
287<p>
288Multiplies all vertices of the object with the transformation matrix.</p>
289<p>
290
291</p>
292<div class="variablelist"><table border="0">
293<col align="left" valign="top">
294<tbody>
295<tr>
296<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
297<td> the object to transform
298</td>
299</tr>
300<tr>
301<td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
302<td> the transformation matrix
303</td>
304</tr>
305<tr>
306<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
307<td> TRUE on success, FALSE else
308</td>
309</tr>
310</tbody>
311</table></div>
312</div>
313<hr>
314<div class="refsect2" lang="en">
315<a name="g3d-object-transform-normals"></a><h3>g3d_object_transform_normals ()</h3>
316<pre class="programlisting"><a
317href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
318>gboolean</a> g3d_object_transform_normals (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object,
319 <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix);</pre>
320<p>
321Multiplies all normals of the object with the transformation matrix.</p>
322<p>
323
324</p>
325<div class="variablelist"><table border="0">
326<col align="left" valign="top">
327<tbody>
328<tr>
329<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
330<td> the object to transform
331</td>
332</tr>
333<tr>
334<td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
335<td> the transformation matrix
336</td>
337</tr>
338<tr>
339<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
340<td> TRUE on success, FALSE else
341</td>
342</tr>
343</tbody>
344</table></div>
345</div>
346<hr>
347<div class="refsect2" lang="en">
348<a name="g3d-object-duplicate"></a><h3>g3d_object_duplicate ()</h3>
349<pre class="programlisting"><a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* g3d_object_duplicate (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object);</pre>
350<p>
351Duplicates an object with all vertices, faces and materials.</p>
352<p>
353
354</p>
355<div class="variablelist"><table border="0">
356<col align="left" valign="top">
357<tbody>
358<tr>
359<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
360<td> the object to duplicate
361</td>
362</tr>
363<tr>
364<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
365<td> the new clone object
366</td>
367</tr>
368</tbody>
369</table></div>
370</div>
371<hr>
372<div class="refsect2" lang="en">
373<a name="g3d-object-optimize"></a><h3>g3d_object_optimize ()</h3>
374<pre class="programlisting"><a
375href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
376>gboolean</a> g3d_object_optimize (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object);</pre>
377<p>
378Puts all vertex and face information into special arrays for faster
379rendering. It is deprecated and should not be used.</p>
380<p>
381
382</p>
383<div class="variablelist"><table border="0">
384<col align="left" valign="top">
385<tbody>
386<tr>
387<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
388<td> the object to optimize
389</td>
390</tr>
391<tr>
392<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
393<td> TRUE on success, FALSE else
394</td>
395</tr>
396</tbody>
397</table></div>
398</div>
399<hr>
400<div class="refsect2" lang="en">
401<a name="g3d-object-smooth"></a><h3>g3d_object_smooth ()</h3>
402<pre class="programlisting"><a
403href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
404>gboolean</a> g3d_object_smooth (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *object);</pre>
405<p>
406FIXME: unimplemented.</p>
407<p>
408
409</p>
410<div class="variablelist"><table border="0">
411<col align="left" valign="top">
412<tbody>
413<tr>
414<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
415<td> the object to smooth
416</td>
417</tr>
418<tr>
419<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
420<td> TRUE on success, FALSE else
421</td>
422</tr>
423</tbody>
424</table></div>
425</div>
426<hr>
427<div class="refsect2" lang="en">
428<a name="g3d-object-merge"></a><h3>g3d_object_merge ()</h3>
429<pre class="programlisting"><a
430href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
431>gboolean</a> g3d_object_merge (<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *o1,
432 <a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a> *o2);</pre>
433<p>
434Merges both objects into <em class="parameter"><code>o1</code></em>.
435FIXME: needs cleanup</p>
436<p>
437
438</p>
439<div class="variablelist"><table border="0">
440<col align="left" valign="top">
441<tbody>
442<tr>
443<td><p><span class="term"><em class="parameter"><code>o1</code></em> :</span></p></td>
444<td> first and target object
445</td>
446</tr>
447<tr>
448<td><p><span class="term"><em class="parameter"><code>o2</code></em> :</span></p></td>
449<td> second object
450</td>
451</tr>
452<tr>
453<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
454<td> TRUE on success, FALSE else
455</td>
456</tr>
457</tbody>
458</table></div>
459</div>
460</div>
461</div>
462<div class="footer">
463<hr>
464 Generated by GTK-Doc V1.10</div>
465</body>
466</html>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-plugins.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-plugins.html
new file mode 100644
index 0000000..d7efa02
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-plugins.html
@@ -0,0 +1,727 @@
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>plugins</title>
6<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7<link rel="start" href="index.html" title="libg3d Reference Manual">
8<link rel="up" href="ch02.html" title="Plugin interface">
9<link rel="prev" href="ch02.html" title="Plugin interface">
10<link rel="next" href="libg3d-stream.html" title="stream">
11<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
12<link rel="stylesheet" href="style.css" type="text/css">
13<link rel="chapter" href="ch01.html" title="Application interface">
14<link rel="chapter" href="ch02.html" title="Plugin interface">
15</head>
16<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
17<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
18<tr valign="middle">
19<td><a accesskey="p" href="ch02.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
20<td><a accesskey="u" href="ch02.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
21<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
22<th width="100%" align="center">libg3d Reference Manual</th>
23<td><a accesskey="n" href="libg3d-stream.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
24</tr>
25<tr><td colspan="5" class="shortcuts"><nobr><a href="#libg3d-plugins.synopsis" class="shortcut">Top</a>
26  | 
27 <a href="#libg3d-plugins.description" class="shortcut">Description</a></nobr></td></tr>
28</table>
29<div class="refentry" lang="en">
30<a name="libg3d-plugins"></a><div class="titlepage"></div>
31<div class="refnamediv"><table width="100%"><tr>
32<td valign="top">
33<h2><span class="refentrytitle"><a name="libg3d-plugins.top_of_page"></a>plugins</span></h2>
34<p>plugins — G3DPlugin interface</p>
35</td>
36<td valign="top" align="right"></td>
37</tr></table></div>
38<div class="refsynopsisdiv">
39<a name="libg3d-plugins.synopsis"></a><h2>Synopsis</h2>
40<pre class="synopsis">
41
42#include &lt;g3d/plugins.h&gt;
43
44enum <a class="link" href="libg3d-plugins.html#G3DPluginType" title="enum G3DPluginType">G3DPluginType</a>;
45<a
46href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
47>gpointer</a> (<a class="link" href="libg3d-plugins.html#G3DPluginInitFunc" title="G3DPluginInitFunc ()">*G3DPluginInitFunc</a>) (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context);
48void (<a class="link" href="libg3d-plugins.html#G3DPluginCleanupFunc" title="G3DPluginCleanupFunc ()">*G3DPluginCleanupFunc</a>) (<a
49href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
50>gpointer</a> user_data);
51<a
52href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
53>gboolean</a> (<a class="link" href="libg3d-plugins.html#G3DPluginLoadModelFunc" title="G3DPluginLoadModelFunc ()">*G3DPluginLoadModelFunc</a>) (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
54 const <a
55href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
56>gchar</a> *filename,
57 <a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model,
58 <a
59href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
60>gpointer</a> user_data);
61<a
62href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
63>gboolean</a> (<a class="link" href="libg3d-plugins.html#G3DPluginLoadModelFromStreamFunc" title="G3DPluginLoadModelFromStreamFunc ()">*G3DPluginLoadModelFromStreamFunc</a>) (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
64 <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
65 <a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model,
66 <a
67href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
68>gpointer</a> user_data);
69<a
70href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
71>gboolean</a> (<a class="link" href="libg3d-plugins.html#G3DPluginLoadImageFunc" title="G3DPluginLoadImageFunc ()">*G3DPluginLoadImageFunc</a>) (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
72 const <a
73href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
74>gchar</a> *filename,
75 <a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *image,
76 <a
77href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
78>gpointer</a> user_data);
79<a
80href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
81>gboolean</a> (<a class="link" href="libg3d-plugins.html#G3DPluginLoadImageStreamFunc" title="G3DPluginLoadImageStreamFunc ()">*G3DPluginLoadImageStreamFunc</a>) (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
82 <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
83 <a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *image,
84 <a
85href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
86>gpointer</a> user_data);
87<a
88href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
89>gchar</a>* (<a class="link" href="libg3d-plugins.html#G3DPluginGetDescFunc" title="G3DPluginGetDescFunc ()">*G3DPluginGetDescFunc</a>) (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context);
90<a
91href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
92>gchar</a>** (<a class="link" href="libg3d-plugins.html#G3DPluginGetExtFunc" title="G3DPluginGetExtFunc ()">*G3DPluginGetExtFunc</a>) (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context);
93 <a class="link" href="libg3d-plugins.html#G3DPlugin" title="G3DPlugin">G3DPlugin</a>;
94<a
95href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
96>gboolean</a> <a class="link" href="libg3d-plugins.html#g3d-plugins-init" title="g3d_plugins_init ()">g3d_plugins_init</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context);
97void <a class="link" href="libg3d-plugins.html#g3d-plugins-cleanup" title="g3d_plugins_cleanup ()">g3d_plugins_cleanup</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context);
98<a
99href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
100>gboolean</a> <a class="link" href="libg3d-plugins.html#g3d-plugins-load-model" title="g3d_plugins_load_model ()">g3d_plugins_load_model</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
101 const <a
102href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
103>gchar</a> *filename,
104 <a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model);
105<a
106href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
107>gboolean</a> <a class="link" href="libg3d-plugins.html#g3d-plugins-load-model-from-stream" title="g3d_plugins_load_model_from_stream ()">g3d_plugins_load_model_from_stream</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
108 <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
109 <a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model);
110<a
111href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
112>gboolean</a> <a class="link" href="libg3d-plugins.html#g3d-plugins-load-image" title="g3d_plugins_load_image ()">g3d_plugins_load_image</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
113 const <a
114href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
115>gchar</a> *filename,
116 <a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *image);
117<a
118href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
119>gboolean</a> <a class="link" href="libg3d-plugins.html#g3d-plugins-load-image-from-stream" title="g3d_plugins_load_image_from_stream ()">g3d_plugins_load_image_from_stream</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
120 <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
121 <a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *image);
122<a
123href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
124>gchar</a>** <a class="link" href="libg3d-plugins.html#g3d-plugins-get-image-extensions" title="g3d_plugins_get_image_extensions ()">g3d_plugins_get_image_extensions</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context);
125</pre>
126</div>
127<div class="refsect1" lang="en">
128<a name="libg3d-plugins.description"></a><h2>Description</h2>
129<p>
130Direct interaction with the plugin system is normally not needed when using
131libg3d. It may be required when writing a plugin which should load a
132<a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage"><span class="type">G3DImage</span></a> or a <a class="link" href="libg3d-model.html#G3DModel" title="G3DModel"><span class="type">G3DModel</span></a> with another plugin.</p>
133<p>
134
135</p>
136</div>
137<div class="refsect1" lang="en">
138<a name="libg3d-plugins.details"></a><h2>Details</h2>
139<div class="refsect2" lang="en">
140<a name="G3DPluginType"></a><h3>enum G3DPluginType</h3>
141<pre class="programlisting">typedef enum {
142 G3D_PLUGIN_UNKNOWN = 0x00,
143 G3D_PLUGIN_IMPORT,
144 G3D_PLUGIN_IMAGE
145} G3DPluginType;
146</pre>
147<p>
148Type of plugin.</p>
149<p>
150
151</p>
152<div class="variablelist"><table border="0">
153<col align="left" valign="top">
154<tbody>
155<tr>
156<td><p><a name="G3D-PLUGIN-UNKNOWN:CAPS"></a><span class="term"><code class="literal">G3D_PLUGIN_UNKNOWN</code></span></p></td>
157<td> unknown plugin type
158</td>
159</tr>
160<tr>
161<td><p><a name="G3D-PLUGIN-IMPORT:CAPS"></a><span class="term"><code class="literal">G3D_PLUGIN_IMPORT</code></span></p></td>
162<td> model import plugin
163</td>
164</tr>
165<tr>
166<td><p><a name="G3D-PLUGIN-IMAGE:CAPS"></a><span class="term"><code class="literal">G3D_PLUGIN_IMAGE</code></span></p></td>
167<td> image loading plugin
168</td>
169</tr>
170</tbody>
171</table></div>
172</div>
173<hr>
174<div class="refsect2" lang="en">
175<a name="G3DPluginInitFunc"></a><h3>G3DPluginInitFunc ()</h3>
176<pre class="programlisting"><a
177href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
178>gpointer</a> (*G3DPluginInitFunc) (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context);</pre>
179<p>
180Prototype for <code class="function">plugin_init()</code>.</p>
181<p>
182
183</p>
184<div class="variablelist"><table border="0">
185<col align="left" valign="top">
186<tbody>
187<tr>
188<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
189<td> the context
190</td>
191</tr>
192<tr>
193<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
194<td> opaque plugin data.
195</td>
196</tr>
197</tbody>
198</table></div>
199</div>
200<hr>
201<div class="refsect2" lang="en">
202<a name="G3DPluginCleanupFunc"></a><h3>G3DPluginCleanupFunc ()</h3>
203<pre class="programlisting">void (*G3DPluginCleanupFunc) (<a
204href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
205>gpointer</a> user_data);</pre>
206<p>
207Prototype for <code class="function">plugin_cleanup()</code>.</p>
208<p>
209
210</p>
211<div class="variablelist"><table border="0">
212<col align="left" valign="top">
213<tbody><tr>
214<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
215<td> opaque plugin data
216</td>
217</tr></tbody>
218</table></div>
219</div>
220<hr>
221<div class="refsect2" lang="en">
222<a name="G3DPluginLoadModelFunc"></a><h3>G3DPluginLoadModelFunc ()</h3>
223<pre class="programlisting"><a
224href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
225>gboolean</a> (*G3DPluginLoadModelFunc) (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
226 const <a
227href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
228>gchar</a> *filename,
229 <a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model,
230 <a
231href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
232>gpointer</a> user_data);</pre>
233<p>
234Prototype for <code class="function">plugin_load_model()</code>.</p>
235<p>
236
237</p>
238<div class="variablelist"><table border="0">
239<col align="left" valign="top">
240<tbody>
241<tr>
242<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
243<td> the context
244</td>
245</tr>
246<tr>
247<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
248<td> file name of model
249</td>
250</tr>
251<tr>
252<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
253<td> the model structure to fill
254</td>
255</tr>
256<tr>
257<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
258<td> opaque plugin data
259</td>
260</tr>
261<tr>
262<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
263<td> TRUE on success, FALSE else.
264</td>
265</tr>
266</tbody>
267</table></div>
268</div>
269<hr>
270<div class="refsect2" lang="en">
271<a name="G3DPluginLoadModelFromStreamFunc"></a><h3>G3DPluginLoadModelFromStreamFunc ()</h3>
272<pre class="programlisting"><a
273href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
274>gboolean</a> (*G3DPluginLoadModelFromStreamFunc) (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
275 <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
276 <a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model,
277 <a
278href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
279>gpointer</a> user_data);</pre>
280<p>
281Prototype for <code class="function">plugin_load_model_from_stream()</code>.</p>
282<p>
283
284</p>
285<div class="variablelist"><table border="0">
286<col align="left" valign="top">
287<tbody>
288<tr>
289<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
290<td> the context
291</td>
292</tr>
293<tr>
294<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
295<td> the stream to load from
296</td>
297</tr>
298<tr>
299<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
300<td> the model structure to fill
301</td>
302</tr>
303<tr>
304<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
305<td> opaque plugin data
306</td>
307</tr>
308<tr>
309<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
310<td> TRUE on success, FALSE else.
311</td>
312</tr>
313</tbody>
314</table></div>
315</div>
316<hr>
317<div class="refsect2" lang="en">
318<a name="G3DPluginLoadImageFunc"></a><h3>G3DPluginLoadImageFunc ()</h3>
319<pre class="programlisting"><a
320href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
321>gboolean</a> (*G3DPluginLoadImageFunc) (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
322 const <a
323href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
324>gchar</a> *filename,
325 <a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *image,
326 <a
327href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
328>gpointer</a> user_data);</pre>
329<p>
330Prototype for <code class="function">plugin_load_image()</code>.</p>
331<p>
332
333</p>
334<div class="variablelist"><table border="0">
335<col align="left" valign="top">
336<tbody>
337<tr>
338<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
339<td> the context
340</td>
341</tr>
342<tr>
343<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
344<td> file name of image
345</td>
346</tr>
347<tr>
348<td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td>
349<td> image structure to fill
350</td>
351</tr>
352<tr>
353<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
354<td> opaque plugin data
355</td>
356</tr>
357<tr>
358<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
359<td> TRUE on success, FALSE else.
360</td>
361</tr>
362</tbody>
363</table></div>
364</div>
365<hr>
366<div class="refsect2" lang="en">
367<a name="G3DPluginLoadImageStreamFunc"></a><h3>G3DPluginLoadImageStreamFunc ()</h3>
368<pre class="programlisting"><a
369href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
370>gboolean</a> (*G3DPluginLoadImageStreamFunc) (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
371 <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
372 <a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *image,
373 <a
374href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
375>gpointer</a> user_data);</pre>
376<p>
377Prototype for <code class="function">plugin_load_image_from_stream()</code>.</p>
378<p>
379
380</p>
381<div class="variablelist"><table border="0">
382<col align="left" valign="top">
383<tbody>
384<tr>
385<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
386<td> the context
387</td>
388</tr>
389<tr>
390<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
391<td> the stream to load from
392</td>
393</tr>
394<tr>
395<td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td>
396<td> image structure to fill
397</td>
398</tr>
399<tr>
400<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
401<td> opaque plugin data
402</td>
403</tr>
404<tr>
405<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
406<td> TRUE on success, FALSE else.
407</td>
408</tr>
409</tbody>
410</table></div>
411</div>
412<hr>
413<div class="refsect2" lang="en">
414<a name="G3DPluginGetDescFunc"></a><h3>G3DPluginGetDescFunc ()</h3>
415<pre class="programlisting"><a
416href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
417>gchar</a>* (*G3DPluginGetDescFunc) (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context);</pre>
418<p>
419Prototype for <code class="function">plugin_description()</code>.</p>
420<p>
421
422</p>
423<div class="variablelist"><table border="0">
424<col align="left" valign="top">
425<tbody>
426<tr>
427<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
428<td> the context
429</td>
430</tr>
431<tr>
432<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
433<td> a newly-allocated string containing the description of the plugin.
434</td>
435</tr>
436</tbody>
437</table></div>
438</div>
439<hr>
440<div class="refsect2" lang="en">
441<a name="G3DPluginGetExtFunc"></a><h3>G3DPluginGetExtFunc ()</h3>
442<pre class="programlisting"><a
443href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
444>gchar</a>** (*G3DPluginGetExtFunc) (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context);</pre>
445<p>
446Prototype for <code class="function">plugin_extensions()</code>.</p>
447<p>
448
449</p>
450<div class="variablelist"><table border="0">
451<col align="left" valign="top">
452<tbody>
453<tr>
454<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
455<td> the context
456</td>
457</tr>
458<tr>
459<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
460<td> NULL-terminated list of file extensions supported by this plugin.
461Free with <a
462href="/usr/share/gtk-doc/html/glib/glib-String-Utility-Functions.html#g-strfreev"
463><code class="function">g_strfreev()</code></a>.
464</td>
465</tr>
466</tbody>
467</table></div>
468</div>
469<hr>
470<div class="refsect2" lang="en">
471<a name="G3DPlugin"></a><h3>G3DPlugin</h3>
472<pre class="programlisting">typedef struct {
473} G3DPlugin;
474</pre>
475<p>
476A libg3d plugin.</p>
477<p>
478
479</p>
480</div>
481<hr>
482<div class="refsect2" lang="en">
483<a name="g3d-plugins-init"></a><h3>g3d_plugins_init ()</h3>
484<pre class="programlisting"><a
485href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
486>gboolean</a> g3d_plugins_init (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context);</pre>
487<p>
488Initializes the plugin system. This is implicitly done when using
489<a class="link" href="libg3d-context.html#g3d-context-new" title="g3d_context_new ()"><code class="function">g3d_context_new()</code></a>.</p>
490<p>
491
492</p>
493<div class="variablelist"><table border="0">
494<col align="left" valign="top">
495<tbody>
496<tr>
497<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
498<td> a valid <a class="link" href="libg3d-context.html#G3DContext" title="G3DContext"><span class="type">G3DContext</span></a>
499</td>
500</tr>
501<tr>
502<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
503<td> TRUE on success, FALSE else.
504</td>
505</tr>
506</tbody>
507</table></div>
508</div>
509<hr>
510<div class="refsect2" lang="en">
511<a name="g3d-plugins-cleanup"></a><h3>g3d_plugins_cleanup ()</h3>
512<pre class="programlisting">void g3d_plugins_cleanup (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context);</pre>
513<p>
514Clean up the plugin system. Usually done by <a class="link" href="libg3d-context.html#g3d-context-free" title="g3d_context_free ()"><code class="function">g3d_context_free()</code></a>.</p>
515<p>
516
517</p>
518<div class="variablelist"><table border="0">
519<col align="left" valign="top">
520<tbody><tr>
521<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
522<td> a valid context
523</td>
524</tr></tbody>
525</table></div>
526</div>
527<hr>
528<div class="refsect2" lang="en">
529<a name="g3d-plugins-load-model"></a><h3>g3d_plugins_load_model ()</h3>
530<pre class="programlisting"><a
531href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
532>gboolean</a> g3d_plugins_load_model (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
533 const <a
534href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
535>gchar</a> *filename,
536 <a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model);</pre>
537<p>
538Try to load a model from file using import plugins.</p>
539<p>
540
541</p>
542<div class="variablelist"><table border="0">
543<col align="left" valign="top">
544<tbody>
545<tr>
546<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
547<td> a valid context
548</td>
549</tr>
550<tr>
551<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
552<td> file name of model to load
553</td>
554</tr>
555<tr>
556<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
557<td> model structure to fill
558</td>
559</tr>
560<tr>
561<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
562<td> TRUE on success, FALSE else.
563</td>
564</tr>
565</tbody>
566</table></div>
567</div>
568<hr>
569<div class="refsect2" lang="en">
570<a name="g3d-plugins-load-model-from-stream"></a><h3>g3d_plugins_load_model_from_stream ()</h3>
571<pre class="programlisting"><a
572href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
573>gboolean</a> g3d_plugins_load_model_from_stream (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
574 <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
575 <a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model);</pre>
576<p>
577Try to load a model from stream using import plugins.</p>
578<p>
579
580</p>
581<div class="variablelist"><table border="0">
582<col align="left" valign="top">
583<tbody>
584<tr>
585<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
586<td> a valid context
587</td>
588</tr>
589<tr>
590<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
591<td> stream to load model from
592</td>
593</tr>
594<tr>
595<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
596<td> model structure to fill
597</td>
598</tr>
599<tr>
600<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
601<td> TRUE on success, FALSE else.
602</td>
603</tr>
604</tbody>
605</table></div>
606</div>
607<hr>
608<div class="refsect2" lang="en">
609<a name="g3d-plugins-load-image"></a><h3>g3d_plugins_load_image ()</h3>
610<pre class="programlisting"><a
611href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
612>gboolean</a> g3d_plugins_load_image (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
613 const <a
614href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
615>gchar</a> *filename,
616 <a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *image);</pre>
617<p>
618Try to load an image from file using import plugins.</p>
619<p>
620
621</p>
622<div class="variablelist"><table border="0">
623<col align="left" valign="top">
624<tbody>
625<tr>
626<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
627<td> a valid context
628</td>
629</tr>
630<tr>
631<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
632<td> file name of image to load
633</td>
634</tr>
635<tr>
636<td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td>
637<td> image structure to fill
638</td>
639</tr>
640<tr>
641<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
642<td> TRUE on success, FALSE else.
643</td>
644</tr>
645</tbody>
646</table></div>
647</div>
648<hr>
649<div class="refsect2" lang="en">
650<a name="g3d-plugins-load-image-from-stream"></a><h3>g3d_plugins_load_image_from_stream ()</h3>
651<pre class="programlisting"><a
652href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
653>gboolean</a> g3d_plugins_load_image_from_stream (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
654 <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
655 <a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *image);</pre>
656<p>
657Try to load an image from stream using import plugins.</p>
658<p>
659
660</p>
661<div class="variablelist"><table border="0">
662<col align="left" valign="top">
663<tbody>
664<tr>
665<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
666<td> a valid context
667</td>
668</tr>
669<tr>
670<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
671<td> stream to load image from
672</td>
673</tr>
674<tr>
675<td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td>
676<td> image structure to fill
677</td>
678</tr>
679<tr>
680<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
681<td> TRUE on success, FALSE else.
682</td>
683</tr>
684</tbody>
685</table></div>
686</div>
687<hr>
688<div class="refsect2" lang="en">
689<a name="g3d-plugins-get-image-extensions"></a><h3>g3d_plugins_get_image_extensions ()</h3>
690<pre class="programlisting"><a
691href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
692>gchar</a>** g3d_plugins_get_image_extensions (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context);</pre>
693<p>
694Get the supported image type extensions.</p>
695<p>
696
697</p>
698<div class="variablelist"><table border="0">
699<col align="left" valign="top">
700<tbody>
701<tr>
702<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
703<td> a valid context
704</td>
705</tr>
706<tr>
707<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
708<td> NULL-terminated list of image file extensions supported by this
709plugin. Free with <a
710href="/usr/share/gtk-doc/html/glib/glib-String-Utility-Functions.html#g-strfreev"
711><code class="function">g_strfreev()</code></a>.
712</td>
713</tr>
714</tbody>
715</table></div>
716</div>
717</div>
718<div class="refsect1" lang="en">
719<a name="libg3d-plugins.see-also"></a><h2>See Also</h2>
720<a class="link" href="libg3d-plugins.html#G3DPlugin" title="G3DPlugin"><span class="type">G3DPlugin</span></a>
721</div>
722</div>
723<div class="footer">
724<hr>
725 Generated by GTK-Doc V1.10</div>
726</body>
727</html>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-primitive.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-primitive.html
new file mode 100644
index 0000000..cf7facc
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-primitive.html
@@ -0,0 +1,508 @@
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>primitive</title>
6<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7<link rel="start" href="index.html" title="libg3d Reference Manual">
8<link rel="up" href="ch02.html" title="Plugin interface">
9<link rel="prev" href="libg3d-read.html" title="read">
10<link rel="next" href="libg3d-matrix.html" title="matrix">
11<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
12<link rel="stylesheet" href="style.css" type="text/css">
13<link rel="chapter" href="ch01.html" title="Application interface">
14<link rel="chapter" href="ch02.html" title="Plugin interface">
15</head>
16<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
17<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
18<tr valign="middle">
19<td><a accesskey="p" href="libg3d-read.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
20<td><a accesskey="u" href="ch02.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
21<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
22<th width="100%" align="center">libg3d Reference Manual</th>
23<td><a accesskey="n" href="libg3d-matrix.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
24</tr>
25<tr><td colspan="5" class="shortcuts"><nobr><a href="#libg3d-primitive.synopsis" class="shortcut">Top</a>
26  | 
27 <a href="#libg3d-primitive.description" class="shortcut">Description</a></nobr></td></tr>
28</table>
29<div class="refentry" lang="en">
30<a name="libg3d-primitive"></a><div class="titlepage"></div>
31<div class="refnamediv"><table width="100%"><tr>
32<td valign="top">
33<h2><span class="refentrytitle"><a name="libg3d-primitive.top_of_page"></a>primitive</span></h2>
34<p>primitive — 3D primitive generation functions</p>
35</td>
36<td valign="top" align="right"></td>
37</tr></table></div>
38<div class="refsynopsisdiv">
39<a name="libg3d-primitive.synopsis"></a><h2>Synopsis</h2>
40<pre class="synopsis">
41
42#include &lt;g3d/primitive.h&gt;
43
44<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* <a class="link" href="libg3d-primitive.html#g3d-primitive-cube" title="g3d_primitive_cube ()">g3d_primitive_cube</a> (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> width,
45 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> height,
46 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> depth,
47 <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material);
48<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* <a class="link" href="libg3d-primitive.html#g3d-primitive-box" title="g3d_primitive_box ()">g3d_primitive_box</a> (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> width,
49 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> height,
50 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> depth,
51 <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material);
52<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* <a class="link" href="libg3d-primitive.html#g3d-primitive-box-strip-2d" title="g3d_primitive_box_strip_2d ()">g3d_primitive_box_strip_2d</a> (<a
53href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
54>guint32</a> vcnt,
55 <a
56href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
57>gdouble</a> *vdata,
58 <a
59href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
60>gdouble</a> height,
61 <a
62href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
63>gdouble</a> width,
64 <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material);
65<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* <a class="link" href="libg3d-primitive.html#g3d-primitive-mesh" title="g3d_primitive_mesh ()">g3d_primitive_mesh</a> (<a
66href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
67>guint32</a> m,
68 <a
69href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
70>guint32</a> n,
71 <a
72href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
73>gboolean</a> wrap_m,
74 <a
75href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
76>gboolean</a> wrap_n,
77 <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material);
78<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* <a class="link" href="libg3d-primitive.html#g3d-primitive-cylinder" title="g3d_primitive_cylinder ()">g3d_primitive_cylinder</a> (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> radius,
79 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> height,
80 <a
81href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
82>guint32</a> sides,
83 <a
84href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
85>gboolean</a> top,
86 <a
87href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
88>gboolean</a> bottom,
89 <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material);
90<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* <a class="link" href="libg3d-primitive.html#g3d-primitive-tube" title="g3d_primitive_tube ()">g3d_primitive_tube</a> (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> r_in,
91 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> r_out,
92 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> height,
93 <a
94href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
95>guint32</a> sides,
96 <a
97href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
98>gboolean</a> top,
99 <a
100href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
101>gboolean</a> bottom,
102 <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material);
103<a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* <a class="link" href="libg3d-primitive.html#g3d-primitive-sphere" title="g3d_primitive_sphere ()">g3d_primitive_sphere</a> (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> radius,
104 <a
105href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
106>guint32</a> vseg,
107 <a
108href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
109>guint32</a> hseg,
110 <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material);
111</pre>
112</div>
113<div class="refsect1" lang="en">
114<a name="libg3d-primitive.description"></a><h2>Description</h2>
115<p>
116Primitives are objects containing basic 3D geometrical structures. A
117variety of them can be created using these functions.</p>
118<p>
119
120</p>
121</div>
122<div class="refsect1" lang="en">
123<a name="libg3d-primitive.details"></a><h2>Details</h2>
124<div class="refsect2" lang="en">
125<a name="g3d-primitive-cube"></a><h3>g3d_primitive_cube ()</h3>
126<pre class="programlisting"><a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* g3d_primitive_cube (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> width,
127 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> height,
128 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> depth,
129 <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material);</pre>
130<p>
131Generates an object containing a box. It is deprecated and now a wrapper for
132<a class="link" href="libg3d-primitive.html#g3d-primitive-box" title="g3d_primitive_box ()"><code class="function">g3d_primitive_box()</code></a>.</p>
133<p>
134
135</p>
136<div class="variablelist"><table border="0">
137<col align="left" valign="top">
138<tbody>
139<tr>
140<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
141<td> the width of the box
142</td>
143</tr>
144<tr>
145<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
146<td> the height of the box
147</td>
148</tr>
149<tr>
150<td><p><span class="term"><em class="parameter"><code>depth</code></em> :</span></p></td>
151<td> the depth of the box
152</td>
153</tr>
154<tr>
155<td><p><span class="term"><em class="parameter"><code>material</code></em> :</span></p></td>
156<td> the material to use for all faces
157</td>
158</tr>
159<tr>
160<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
161<td> the box object
162</td>
163</tr>
164</tbody>
165</table></div>
166</div>
167<hr>
168<div class="refsect2" lang="en">
169<a name="g3d-primitive-box"></a><h3>g3d_primitive_box ()</h3>
170<pre class="programlisting"><a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* g3d_primitive_box (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> width,
171 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> height,
172 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> depth,
173 <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material);</pre>
174<p>
175Generates an object containing a box.</p>
176<p>
177
178</p>
179<div class="variablelist"><table border="0">
180<col align="left" valign="top">
181<tbody>
182<tr>
183<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
184<td> the width of the box
185</td>
186</tr>
187<tr>
188<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
189<td> the height of the box
190</td>
191</tr>
192<tr>
193<td><p><span class="term"><em class="parameter"><code>depth</code></em> :</span></p></td>
194<td> the depth of the box
195</td>
196</tr>
197<tr>
198<td><p><span class="term"><em class="parameter"><code>material</code></em> :</span></p></td>
199<td> the material to use for all faces
200</td>
201</tr>
202<tr>
203<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
204<td> the box object
205</td>
206</tr>
207</tbody>
208</table></div>
209</div>
210<hr>
211<div class="refsect2" lang="en">
212<a name="g3d-primitive-box-strip-2d"></a><h3>g3d_primitive_box_strip_2d ()</h3>
213<pre class="programlisting"><a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* g3d_primitive_box_strip_2d (<a
214href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
215>guint32</a> vcnt,
216 <a
217href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
218>gdouble</a> *vdata,
219 <a
220href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
221>gdouble</a> height,
222 <a
223href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
224>gdouble</a> width,
225 <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material);</pre>
226<p>
227Generates a strip of box segments defined by corner center points
228using two-dimensional data (x/z plane).</p>
229<p>
230
231</p>
232<div class="variablelist"><table border="0">
233<col align="left" valign="top">
234<tbody>
235<tr>
236<td><p><span class="term"><em class="parameter"><code>vcnt</code></em> :</span></p></td>
237<td> number of control points
238</td>
239</tr>
240<tr>
241<td><p><span class="term"><em class="parameter"><code>vdata</code></em> :</span></p></td>
242<td> 2-dimensional control point data (2 * vcnt * gdouble)
243</td>
244</tr>
245<tr>
246<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
247<td> height of resulting strip (y component)
248</td>
249</tr>
250<tr>
251<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
252<td> width of strip (corner diameter)
253</td>
254</tr>
255<tr>
256<td><p><span class="term"><em class="parameter"><code>material</code></em> :</span></p></td>
257<td> material to use for faces
258</td>
259</tr>
260<tr>
261<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
262<td> strip object
263</td>
264</tr>
265</tbody>
266</table></div>
267</div>
268<hr>
269<div class="refsect2" lang="en">
270<a name="g3d-primitive-mesh"></a><h3>g3d_primitive_mesh ()</h3>
271<pre class="programlisting"><a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* g3d_primitive_mesh (<a
272href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
273>guint32</a> m,
274 <a
275href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
276>guint32</a> n,
277 <a
278href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
279>gboolean</a> wrap_m,
280 <a
281href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
282>gboolean</a> wrap_n,
283 <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material);</pre>
284<p>
285Generate a mesh consisting of m * n vertices. The vertex data is
286initialized with (0.0, 0.0, 0.0) and has to be set to something
287useful.</p>
288<p>
289
290</p>
291<div class="variablelist"><table border="0">
292<col align="left" valign="top">
293<tbody>
294<tr>
295<td><p><span class="term"><em class="parameter"><code>m</code></em> :</span></p></td>
296<td> number of vertices in m direction
297</td>
298</tr>
299<tr>
300<td><p><span class="term"><em class="parameter"><code>n</code></em> :</span></p></td>
301<td> number of vertices in n direction
302</td>
303</tr>
304<tr>
305<td><p><span class="term"><em class="parameter"><code>wrap_m</code></em> :</span></p></td>
306<td> wrap around in m direction
307</td>
308</tr>
309<tr>
310<td><p><span class="term"><em class="parameter"><code>wrap_n</code></em> :</span></p></td>
311<td> wrap around in n direction
312</td>
313</tr>
314<tr>
315<td><p><span class="term"><em class="parameter"><code>material</code></em> :</span></p></td>
316<td> material to use for faces
317</td>
318</tr>
319<tr>
320<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
321<td> mesh object
322</td>
323</tr>
324</tbody>
325</table></div>
326</div>
327<hr>
328<div class="refsect2" lang="en">
329<a name="g3d-primitive-cylinder"></a><h3>g3d_primitive_cylinder ()</h3>
330<pre class="programlisting"><a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* g3d_primitive_cylinder (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> radius,
331 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> height,
332 <a
333href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
334>guint32</a> sides,
335 <a
336href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
337>gboolean</a> top,
338 <a
339href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
340>gboolean</a> bottom,
341 <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material);</pre>
342<p>
343Generates an object containing a cylinder.</p>
344<p>
345
346</p>
347<div class="variablelist"><table border="0">
348<col align="left" valign="top">
349<tbody>
350<tr>
351<td><p><span class="term"><em class="parameter"><code>radius</code></em> :</span></p></td>
352<td> the radius of the cylinder
353</td>
354</tr>
355<tr>
356<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
357<td> the height of the side faces
358</td>
359</tr>
360<tr>
361<td><p><span class="term"><em class="parameter"><code>sides</code></em> :</span></p></td>
362<td> number of side faces (number of circle segments)
363</td>
364</tr>
365<tr>
366<td><p><span class="term"><em class="parameter"><code>top</code></em> :</span></p></td>
367<td> add top faces
368</td>
369</tr>
370<tr>
371<td><p><span class="term"><em class="parameter"><code>bottom</code></em> :</span></p></td>
372<td> add bottom faces
373</td>
374</tr>
375<tr>
376<td><p><span class="term"><em class="parameter"><code>material</code></em> :</span></p></td>
377<td> material to use for faces
378</td>
379</tr>
380<tr>
381<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
382<td> cylinder object
383</td>
384</tr>
385</tbody>
386</table></div>
387</div>
388<hr>
389<div class="refsect2" lang="en">
390<a name="g3d-primitive-tube"></a><h3>g3d_primitive_tube ()</h3>
391<pre class="programlisting"><a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* g3d_primitive_tube (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> r_in,
392 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> r_out,
393 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> height,
394 <a
395href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
396>guint32</a> sides,
397 <a
398href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
399>gboolean</a> top,
400 <a
401href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
402>gboolean</a> bottom,
403 <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material);</pre>
404<p>
405Generates an object containing a tube (a cylinder with a hole).</p>
406<p>
407
408</p>
409<div class="variablelist"><table border="0">
410<col align="left" valign="top">
411<tbody>
412<tr>
413<td><p><span class="term"><em class="parameter"><code>r_in</code></em> :</span></p></td>
414<td> inner radius
415</td>
416</tr>
417<tr>
418<td><p><span class="term"><em class="parameter"><code>r_out</code></em> :</span></p></td>
419<td> outer radius
420</td>
421</tr>
422<tr>
423<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
424<td> the height of the side faces
425</td>
426</tr>
427<tr>
428<td><p><span class="term"><em class="parameter"><code>sides</code></em> :</span></p></td>
429<td> number of side faces (number of circle segments)
430</td>
431</tr>
432<tr>
433<td><p><span class="term"><em class="parameter"><code>top</code></em> :</span></p></td>
434<td> add top faces
435</td>
436</tr>
437<tr>
438<td><p><span class="term"><em class="parameter"><code>bottom</code></em> :</span></p></td>
439<td> add bottom faces
440</td>
441</tr>
442<tr>
443<td><p><span class="term"><em class="parameter"><code>material</code></em> :</span></p></td>
444<td> material to use for faces
445</td>
446</tr>
447<tr>
448<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
449<td> tube object
450</td>
451</tr>
452</tbody>
453</table></div>
454</div>
455<hr>
456<div class="refsect2" lang="en">
457<a name="g3d-primitive-sphere"></a><h3>g3d_primitive_sphere ()</h3>
458<pre class="programlisting"><a class="link" href="libg3d-object.html#G3DObject" title="G3DObject">G3DObject</a>* g3d_primitive_sphere (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> radius,
459 <a
460href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
461>guint32</a> vseg,
462 <a
463href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
464>guint32</a> hseg,
465 <a class="link" href="libg3d-material.html#G3DMaterial" title="G3DMaterial">G3DMaterial</a> *material);</pre>
466<p>
467Generates an object containing a sphere.</p>
468<p>
469
470</p>
471<div class="variablelist"><table border="0">
472<col align="left" valign="top">
473<tbody>
474<tr>
475<td><p><span class="term"><em class="parameter"><code>radius</code></em> :</span></p></td>
476<td> radius
477</td>
478</tr>
479<tr>
480<td><p><span class="term"><em class="parameter"><code>vseg</code></em> :</span></p></td>
481<td> number of vertical segments
482</td>
483</tr>
484<tr>
485<td><p><span class="term"><em class="parameter"><code>hseg</code></em> :</span></p></td>
486<td> number of horizontal segments
487</td>
488</tr>
489<tr>
490<td><p><span class="term"><em class="parameter"><code>material</code></em> :</span></p></td>
491<td> material to use for faces
492</td>
493</tr>
494<tr>
495<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
496<td> sphere object
497</td>
498</tr>
499</tbody>
500</table></div>
501</div>
502</div>
503</div>
504<div class="footer">
505<hr>
506 Generated by GTK-Doc V1.10</div>
507</body>
508</html>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-quat.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-quat.html
new file mode 100644
index 0000000..af4e6aa
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-quat.html
@@ -0,0 +1,346 @@
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>quat</title>
6<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7<link rel="start" href="index.html" title="libg3d Reference Manual">
8<link rel="up" href="ch02.html" title="Plugin interface">
9<link rel="prev" href="libg3d-vector.html" title="vector">
10<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
11<link rel="stylesheet" href="style.css" type="text/css">
12<link rel="chapter" href="ch01.html" title="Application interface">
13<link rel="chapter" href="ch02.html" title="Plugin interface">
14</head>
15<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
16<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
17<tr valign="middle">
18<td><a accesskey="p" href="libg3d-vector.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
19<td><a accesskey="u" href="ch02.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
20<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
21<th width="100%" align="center">libg3d Reference Manual</th>
22<td> </td>
23</tr>
24<tr><td colspan="5" class="shortcuts"><nobr><a href="#libg3d-quat.synopsis" class="shortcut">Top</a>
25  | 
26 <a href="#libg3d-quat.description" class="shortcut">Description</a></nobr></td></tr>
27</table>
28<div class="refentry" lang="en">
29<a name="libg3d-quat"></a><div class="titlepage"></div>
30<div class="refnamediv"><table width="100%"><tr>
31<td valign="top">
32<h2><span class="refentrytitle"><a name="libg3d-quat.top_of_page"></a>quat</span></h2>
33<p>quat — quaternion helpers</p>
34</td>
35<td valign="top" align="right"></td>
36</tr></table></div>
37<div class="refsynopsisdiv">
38<a name="libg3d-quat.synopsis"></a><h2>Synopsis</h2>
39<pre class="synopsis">
40
41#include &lt;g3d/quat.h&gt;
42
43typedef <a class="link" href="libg3d-quat.html#G3DQuat" title="G3DQuat">G3DQuat</a>;
44<a
45href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
46>gboolean</a> <a class="link" href="libg3d-quat.html#g3d-quat-add" title="g3d_quat_add ()">g3d_quat_add</a> (<a class="link" href="libg3d-quat.html#G3DQuat" title="G3DQuat">G3DQuat</a> *qr,
47 <a class="link" href="libg3d-quat.html#G3DQuat" title="G3DQuat">G3DQuat</a> *q1,
48 <a class="link" href="libg3d-quat.html#G3DQuat" title="G3DQuat">G3DQuat</a> *q2);
49<a
50href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
51>gboolean</a> <a class="link" href="libg3d-quat.html#g3d-quat-normalize" title="g3d_quat_normalize ()">g3d_quat_normalize</a> (<a class="link" href="libg3d-quat.html#G3DQuat" title="G3DQuat">G3DQuat</a> *q);
52<a
53href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
54>gboolean</a> <a class="link" href="libg3d-quat.html#g3d-quat-rotate" title="g3d_quat_rotate ()">g3d_quat_rotate</a> (<a class="link" href="libg3d-quat.html#G3DQuat" title="G3DQuat">G3DQuat</a> *q,
55 <a class="link" href="libg3d-vector.html#G3DVector" title="G3DVector">G3DVector</a> *axis,
56 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> angle);
57<a
58href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
59>gboolean</a> <a class="link" href="libg3d-quat.html#g3d-quat-to-matrix" title="g3d_quat_to_matrix ()">g3d_quat_to_matrix</a> (<a class="link" href="libg3d-quat.html#G3DQuat" title="G3DQuat">G3DQuat</a> *q,
60 <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix);
61<a
62href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
63>gboolean</a> <a class="link" href="libg3d-quat.html#g3d-quat-to-rotation-xyz" title="g3d_quat_to_rotation_xyz ()">g3d_quat_to_rotation_xyz</a> (<a class="link" href="libg3d-quat.html#G3DQuat" title="G3DQuat">G3DQuat</a> *q,
64 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *rx,
65 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *ry,
66 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *rz);
67<a
68href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
69>gboolean</a> <a class="link" href="libg3d-quat.html#g3d-quat-trackball" title="g3d_quat_trackball ()">g3d_quat_trackball</a> (<a class="link" href="libg3d-quat.html#G3DQuat" title="G3DQuat">G3DQuat</a> *q,
70 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> x1,
71 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> y1,
72 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> x2,
73 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> y2,
74 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> r);
75</pre>
76</div>
77<div class="refsect1" lang="en">
78<a name="libg3d-quat.description"></a><h2>Description</h2>
79<p>
80</p>
81<p>
82
83</p>
84</div>
85<div class="refsect1" lang="en">
86<a name="libg3d-quat.details"></a><h2>Details</h2>
87<div class="refsect2" lang="en">
88<a name="G3DQuat"></a><h3>G3DQuat</h3>
89<pre class="programlisting">typedef G3DFloat G3DQuat;
90</pre>
91<p>
92Quaternion element type.</p>
93<p>
94
95</p>
96</div>
97<hr>
98<div class="refsect2" lang="en">
99<a name="g3d-quat-add"></a><h3>g3d_quat_add ()</h3>
100<pre class="programlisting"><a
101href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
102>gboolean</a> g3d_quat_add (<a class="link" href="libg3d-quat.html#G3DQuat" title="G3DQuat">G3DQuat</a> *qr,
103 <a class="link" href="libg3d-quat.html#G3DQuat" title="G3DQuat">G3DQuat</a> *q1,
104 <a class="link" href="libg3d-quat.html#G3DQuat" title="G3DQuat">G3DQuat</a> *q2);</pre>
105<p>
106Add two quats.</p>
107<p>
108
109</p>
110<div class="variablelist"><table border="0">
111<col align="left" valign="top">
112<tbody>
113<tr>
114<td><p><span class="term"><em class="parameter"><code>qr</code></em> :</span></p></td>
115<td> result quat
116</td>
117</tr>
118<tr>
119<td><p><span class="term"><em class="parameter"><code>q1</code></em> :</span></p></td>
120<td> first quat
121</td>
122</tr>
123<tr>
124<td><p><span class="term"><em class="parameter"><code>q2</code></em> :</span></p></td>
125<td> second quat
126</td>
127</tr>
128<tr>
129<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
130<td> TRUE on success, FALSE else
131</td>
132</tr>
133</tbody>
134</table></div>
135</div>
136<hr>
137<div class="refsect2" lang="en">
138<a name="g3d-quat-normalize"></a><h3>g3d_quat_normalize ()</h3>
139<pre class="programlisting"><a
140href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
141>gboolean</a> g3d_quat_normalize (<a class="link" href="libg3d-quat.html#G3DQuat" title="G3DQuat">G3DQuat</a> *q);</pre>
142<p>
143normalize the quaternion to a length of 1.0.</p>
144<p>
145
146</p>
147<div class="variablelist"><table border="0">
148<col align="left" valign="top">
149<tbody>
150<tr>
151<td><p><span class="term"><em class="parameter"><code>q</code></em> :</span></p></td>
152<td> a quaternion
153</td>
154</tr>
155<tr>
156<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
157<td> TRUE on success, FALSE else
158</td>
159</tr>
160</tbody>
161</table></div>
162</div>
163<hr>
164<div class="refsect2" lang="en">
165<a name="g3d-quat-rotate"></a><h3>g3d_quat_rotate ()</h3>
166<pre class="programlisting"><a
167href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
168>gboolean</a> g3d_quat_rotate (<a class="link" href="libg3d-quat.html#G3DQuat" title="G3DQuat">G3DQuat</a> *q,
169 <a class="link" href="libg3d-vector.html#G3DVector" title="G3DVector">G3DVector</a> *axis,
170 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> angle);</pre>
171<p>
172Encode a rotation around an axis into quaternion.</p>
173<p>
174
175</p>
176<div class="variablelist"><table border="0">
177<col align="left" valign="top">
178<tbody>
179<tr>
180<td><p><span class="term"><em class="parameter"><code>q</code></em> :</span></p></td>
181<td> resulting quat
182</td>
183</tr>
184<tr>
185<td><p><span class="term"><em class="parameter"><code>axis</code></em> :</span></p></td>
186<td> rotation axis
187</td>
188</tr>
189<tr>
190<td><p><span class="term"><em class="parameter"><code>angle</code></em> :</span></p></td>
191<td> rotation angle
192</td>
193</tr>
194<tr>
195<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
196<td> TRUE on success, FALSE else
197</td>
198</tr>
199</tbody>
200</table></div>
201</div>
202<hr>
203<div class="refsect2" lang="en">
204<a name="g3d-quat-to-matrix"></a><h3>g3d_quat_to_matrix ()</h3>
205<pre class="programlisting"><a
206href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
207>gboolean</a> g3d_quat_to_matrix (<a class="link" href="libg3d-quat.html#G3DQuat" title="G3DQuat">G3DQuat</a> *q,
208 <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix);</pre>
209<p>
210Convert a quaternion to a transformation matrix.</p>
211<p>
212
213</p>
214<div class="variablelist"><table border="0">
215<col align="left" valign="top">
216<tbody>
217<tr>
218<td><p><span class="term"><em class="parameter"><code>q</code></em> :</span></p></td>
219<td> source quat
220</td>
221</tr>
222<tr>
223<td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
224<td> resulting matrix
225</td>
226</tr>
227<tr>
228<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
229<td> TRUE on success, FALSE else
230</td>
231</tr>
232</tbody>
233</table></div>
234</div>
235<hr>
236<div class="refsect2" lang="en">
237<a name="g3d-quat-to-rotation-xyz"></a><h3>g3d_quat_to_rotation_xyz ()</h3>
238<pre class="programlisting"><a
239href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
240>gboolean</a> g3d_quat_to_rotation_xyz (<a class="link" href="libg3d-quat.html#G3DQuat" title="G3DQuat">G3DQuat</a> *q,
241 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *rx,
242 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *ry,
243 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *rz);</pre>
244<p>
245Calculate the rotation around the three coordinate axes from a given
246quaternion.</p>
247<p>
248
249</p>
250<div class="variablelist"><table border="0">
251<col align="left" valign="top">
252<tbody>
253<tr>
254<td><p><span class="term"><em class="parameter"><code>q</code></em> :</span></p></td>
255<td> a quaternion
256</td>
257</tr>
258<tr>
259<td><p><span class="term"><em class="parameter"><code>rx</code></em> :</span></p></td>
260<td> rotation around x axis
261</td>
262</tr>
263<tr>
264<td><p><span class="term"><em class="parameter"><code>ry</code></em> :</span></p></td>
265<td> rotation around y axis
266</td>
267</tr>
268<tr>
269<td><p><span class="term"><em class="parameter"><code>rz</code></em> :</span></p></td>
270<td> rotation around z axis
271</td>
272</tr>
273<tr>
274<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
275<td> TRUE on success, FALSE else
276</td>
277</tr>
278</tbody>
279</table></div>
280</div>
281<hr>
282<div class="refsect2" lang="en">
283<a name="g3d-quat-trackball"></a><h3>g3d_quat_trackball ()</h3>
284<pre class="programlisting"><a
285href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
286>gboolean</a> g3d_quat_trackball (<a class="link" href="libg3d-quat.html#G3DQuat" title="G3DQuat">G3DQuat</a> *q,
287 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> x1,
288 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> y1,
289 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> x2,
290 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> y2,
291 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> r);</pre>
292<p>
293Emulate a virtual trackball movement and return rotation as quaternion.
294The x and y values of the starting and end point of the movement have
295to be in the range -1.0 .. 1.0.</p>
296<p>
297
298</p>
299<div class="variablelist"><table border="0">
300<col align="left" valign="top">
301<tbody>
302<tr>
303<td><p><span class="term"><em class="parameter"><code>q</code></em> :</span></p></td>
304<td> resulting quaternion
305</td>
306</tr>
307<tr>
308<td><p><span class="term"><em class="parameter"><code>x1</code></em> :</span></p></td>
309<td> x value of first point
310</td>
311</tr>
312<tr>
313<td><p><span class="term"><em class="parameter"><code>y1</code></em> :</span></p></td>
314<td> y value of first point
315</td>
316</tr>
317<tr>
318<td><p><span class="term"><em class="parameter"><code>x2</code></em> :</span></p></td>
319<td> x value of second point
320</td>
321</tr>
322<tr>
323<td><p><span class="term"><em class="parameter"><code>y2</code></em> :</span></p></td>
324<td> y value of second point
325</td>
326</tr>
327<tr>
328<td><p><span class="term"><em class="parameter"><code>r</code></em> :</span></p></td>
329<td> radius of virtual trackball, usually 0.8
330</td>
331</tr>
332<tr>
333<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
334<td> TRUE on success, FALSE else
335</td>
336</tr>
337</tbody>
338</table></div>
339</div>
340</div>
341</div>
342<div class="footer">
343<hr>
344 Generated by GTK-Doc V1.10</div>
345</body>
346</html>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-read.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-read.html
new file mode 100644
index 0000000..b731d3c
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-read.html
@@ -0,0 +1,373 @@
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>read</title>
6<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7<link rel="start" href="index.html" title="libg3d Reference Manual">
8<link rel="up" href="ch02.html" title="Plugin interface">
9<link rel="prev" href="libg3d-iff.html" title="iff">
10<link rel="next" href="libg3d-primitive.html" title="primitive">
11<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
12<link rel="stylesheet" href="style.css" type="text/css">
13<link rel="chapter" href="ch01.html" title="Application interface">
14<link rel="chapter" href="ch02.html" title="Plugin interface">
15</head>
16<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
17<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
18<tr valign="middle">
19<td><a accesskey="p" href="libg3d-iff.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
20<td><a accesskey="u" href="ch02.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
21<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
22<th width="100%" align="center">libg3d Reference Manual</th>
23<td><a accesskey="n" href="libg3d-primitive.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
24</tr>
25<tr><td colspan="5" class="shortcuts"><nobr><a href="#libg3d-read.synopsis" class="shortcut">Top</a>
26  | 
27 <a href="#libg3d-read.description" class="shortcut">Description</a></nobr></td></tr>
28</table>
29<div class="refentry" lang="en">
30<a name="libg3d-read"></a><div class="titlepage"></div>
31<div class="refnamediv"><table width="100%"><tr>
32<td valign="top">
33<h2><span class="refentrytitle"><a name="libg3d-read.top_of_page"></a>read</span></h2>
34<p>read — file reading abstraction (deprecated)</p>
35</td>
36<td valign="top" align="right"></td>
37</tr></table></div>
38<div class="refsynopsisdiv">
39<a name="libg3d-read.synopsis"></a><h2>Synopsis</h2>
40<pre class="synopsis">
41
42#include &lt;g3d/read.h&gt;
43
44<a
45href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
46>gint32</a> <a class="link" href="libg3d-read.html#g3d-read-int8" title="g3d_read_int8 ()">g3d_read_int8</a> (FILE *f);
47<a
48href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
49>gint32</a> <a class="link" href="libg3d-read.html#g3d-read-int16-be" title="g3d_read_int16_be ()">g3d_read_int16_be</a> (FILE *f);
50<a
51href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
52>gint32</a> <a class="link" href="libg3d-read.html#g3d-read-int16-le" title="g3d_read_int16_le ()">g3d_read_int16_le</a> (FILE *f);
53<a
54href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
55>gint32</a> <a class="link" href="libg3d-read.html#g3d-read-int32-be" title="g3d_read_int32_be ()">g3d_read_int32_be</a> (FILE *f);
56<a
57href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
58>gint32</a> <a class="link" href="libg3d-read.html#g3d-read-int32-le" title="g3d_read_int32_le ()">g3d_read_int32_le</a> (FILE *f);
59<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <a class="link" href="libg3d-read.html#g3d-read-float-be" title="g3d_read_float_be ()">g3d_read_float_be</a> (FILE *f);
60<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <a class="link" href="libg3d-read.html#g3d-read-float-le" title="g3d_read_float_le ()">g3d_read_float_le</a> (FILE *f);
61<a class="link" href="libg3d-types.html#G3DDouble" title="G3DDouble">G3DDouble</a> <a class="link" href="libg3d-read.html#g3d-read-double-be" title="g3d_read_double_be ()">g3d_read_double_be</a> (FILE *f);
62<a class="link" href="libg3d-types.html#G3DDouble" title="G3DDouble">G3DDouble</a> <a class="link" href="libg3d-read.html#g3d-read-double-le" title="g3d_read_double_le ()">g3d_read_double_le</a> (FILE *f);
63<a
64href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
65>gint32</a> <a class="link" href="libg3d-read.html#g3d-read-cstr" title="g3d_read_cstr ()">g3d_read_cstr</a> (FILE *f,
66 <a
67href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
68>gchar</a> *buffer,
69 <a
70href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
71>gint32</a> max_len);
72</pre>
73</div>
74<div class="refsect1" lang="en">
75<a name="libg3d-read.description"></a><h2>Description</h2>
76<p>
77The g3d_read_* family of functions is deprecated in favour of the <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a>
78interface.</p>
79<p>
80
81</p>
82</div>
83<div class="refsect1" lang="en">
84<a name="libg3d-read.details"></a><h2>Details</h2>
85<div class="refsect2" lang="en">
86<a name="g3d-read-int8"></a><h3>g3d_read_int8 ()</h3>
87<pre class="programlisting"><a
88href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
89>gint32</a> g3d_read_int8 (FILE *f);</pre>
90<p>
91Read a 1 byte signed integer from file.</p>
92<p>
93
94</p>
95<div class="variablelist"><table border="0">
96<col align="left" valign="top">
97<tbody>
98<tr>
99<td><p><span class="term"><em class="parameter"><code>f</code></em> :</span></p></td>
100<td> the file to read from
101</td>
102</tr>
103<tr>
104<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
105<td> The read value, 0 in case of error
106</td>
107</tr>
108</tbody>
109</table></div>
110</div>
111<hr>
112<div class="refsect2" lang="en">
113<a name="g3d-read-int16-be"></a><h3>g3d_read_int16_be ()</h3>
114<pre class="programlisting"><a
115href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
116>gint32</a> g3d_read_int16_be (FILE *f);</pre>
117<p>
118Read a 2 byte big-endian signed integer from file.</p>
119<p>
120
121</p>
122<div class="variablelist"><table border="0">
123<col align="left" valign="top">
124<tbody>
125<tr>
126<td><p><span class="term"><em class="parameter"><code>f</code></em> :</span></p></td>
127<td> the file to read from
128</td>
129</tr>
130<tr>
131<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
132<td> The read value, 0 in case of error
133</td>
134</tr>
135</tbody>
136</table></div>
137</div>
138<hr>
139<div class="refsect2" lang="en">
140<a name="g3d-read-int16-le"></a><h3>g3d_read_int16_le ()</h3>
141<pre class="programlisting"><a
142href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
143>gint32</a> g3d_read_int16_le (FILE *f);</pre>
144<p>
145Read a 2 byte little-endian signed integer from file.</p>
146<p>
147
148</p>
149<div class="variablelist"><table border="0">
150<col align="left" valign="top">
151<tbody>
152<tr>
153<td><p><span class="term"><em class="parameter"><code>f</code></em> :</span></p></td>
154<td> the file to read from
155</td>
156</tr>
157<tr>
158<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
159<td> The read value, 0 in case of error
160</td>
161</tr>
162</tbody>
163</table></div>
164</div>
165<hr>
166<div class="refsect2" lang="en">
167<a name="g3d-read-int32-be"></a><h3>g3d_read_int32_be ()</h3>
168<pre class="programlisting"><a
169href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
170>gint32</a> g3d_read_int32_be (FILE *f);</pre>
171<p>
172Read a 4 byte big-endian signed integer from file.</p>
173<p>
174
175</p>
176<div class="variablelist"><table border="0">
177<col align="left" valign="top">
178<tbody>
179<tr>
180<td><p><span class="term"><em class="parameter"><code>f</code></em> :</span></p></td>
181<td> the file to read from
182</td>
183</tr>
184<tr>
185<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
186<td> The read value, 0 in case of error
187</td>
188</tr>
189</tbody>
190</table></div>
191</div>
192<hr>
193<div class="refsect2" lang="en">
194<a name="g3d-read-int32-le"></a><h3>g3d_read_int32_le ()</h3>
195<pre class="programlisting"><a
196href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
197>gint32</a> g3d_read_int32_le (FILE *f);</pre>
198<p>
199Read a 4 byte little-endian signed integer from file.</p>
200<p>
201
202</p>
203<div class="variablelist"><table border="0">
204<col align="left" valign="top">
205<tbody>
206<tr>
207<td><p><span class="term"><em class="parameter"><code>f</code></em> :</span></p></td>
208<td> the file to read from
209</td>
210</tr>
211<tr>
212<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
213<td> The read value, 0 in case of error
214</td>
215</tr>
216</tbody>
217</table></div>
218</div>
219<hr>
220<div class="refsect2" lang="en">
221<a name="g3d-read-float-be"></a><h3>g3d_read_float_be ()</h3>
222<pre class="programlisting"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> g3d_read_float_be (FILE *f);</pre>
223<p>
224Read a 4 byte big-endian floating point number from file.</p>
225<p>
226
227</p>
228<div class="variablelist"><table border="0">
229<col align="left" valign="top">
230<tbody>
231<tr>
232<td><p><span class="term"><em class="parameter"><code>f</code></em> :</span></p></td>
233<td> the file to read from
234</td>
235</tr>
236<tr>
237<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
238<td> The read value, 0 in case of error
239</td>
240</tr>
241</tbody>
242</table></div>
243</div>
244<hr>
245<div class="refsect2" lang="en">
246<a name="g3d-read-float-le"></a><h3>g3d_read_float_le ()</h3>
247<pre class="programlisting"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> g3d_read_float_le (FILE *f);</pre>
248<p>
249Read a 4 byte little-endian floating point number from file.</p>
250<p>
251
252</p>
253<div class="variablelist"><table border="0">
254<col align="left" valign="top">
255<tbody>
256<tr>
257<td><p><span class="term"><em class="parameter"><code>f</code></em> :</span></p></td>
258<td> the file to read from
259</td>
260</tr>
261<tr>
262<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
263<td> The read value, 0 in case of error
264</td>
265</tr>
266</tbody>
267</table></div>
268</div>
269<hr>
270<div class="refsect2" lang="en">
271<a name="g3d-read-double-be"></a><h3>g3d_read_double_be ()</h3>
272<pre class="programlisting"><a class="link" href="libg3d-types.html#G3DDouble" title="G3DDouble">G3DDouble</a> g3d_read_double_be (FILE *f);</pre>
273<p>
274Read a 8 byte big-endian double-precision floating point number from file.</p>
275<p>
276
277</p>
278<div class="variablelist"><table border="0">
279<col align="left" valign="top">
280<tbody>
281<tr>
282<td><p><span class="term"><em class="parameter"><code>f</code></em> :</span></p></td>
283<td> the file to read from
284</td>
285</tr>
286<tr>
287<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
288<td> The read value, 0 in case of error
289</td>
290</tr>
291</tbody>
292</table></div>
293</div>
294<hr>
295<div class="refsect2" lang="en">
296<a name="g3d-read-double-le"></a><h3>g3d_read_double_le ()</h3>
297<pre class="programlisting"><a class="link" href="libg3d-types.html#G3DDouble" title="G3DDouble">G3DDouble</a> g3d_read_double_le (FILE *f);</pre>
298<p>
299Read a 8 byte little-endian double-precision floating point number from
300file.</p>
301<p>
302
303</p>
304<div class="variablelist"><table border="0">
305<col align="left" valign="top">
306<tbody>
307<tr>
308<td><p><span class="term"><em class="parameter"><code>f</code></em> :</span></p></td>
309<td> the file to read from
310</td>
311</tr>
312<tr>
313<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
314<td> The read value, 0 in case of error
315</td>
316</tr>
317</tbody>
318</table></div>
319</div>
320<hr>
321<div class="refsect2" lang="en">
322<a name="g3d-read-cstr"></a><h3>g3d_read_cstr ()</h3>
323<pre class="programlisting"><a
324href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
325>gint32</a> g3d_read_cstr (FILE *f,
326 <a
327href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
328>gchar</a> *buffer,
329 <a
330href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
331>gint32</a> max_len);</pre>
332<p>
333Read a zero-terminated string from file.</p>
334<p>
335
336</p>
337<div class="variablelist"><table border="0">
338<col align="left" valign="top">
339<tbody>
340<tr>
341<td><p><span class="term"><em class="parameter"><code>f</code></em> :</span></p></td>
342<td> the file to read from
343</td>
344</tr>
345<tr>
346<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
347<td> the buffer to store line in
348</td>
349</tr>
350<tr>
351<td><p><span class="term"><em class="parameter"><code>max_len</code></em> :</span></p></td>
352<td> maximum length of string including termination character
353</td>
354</tr>
355<tr>
356<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
357<td> number of bytes read from file.
358</td>
359</tr>
360</tbody>
361</table></div>
362</div>
363</div>
364<div class="refsect1" lang="en">
365<a name="libg3d-read.see-also"></a><h2>See Also</h2>
366g3d_stream_open_file
367</div>
368</div>
369<div class="footer">
370<hr>
371 Generated by GTK-Doc V1.10</div>
372</body>
373</html>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-stream.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-stream.html
new file mode 100644
index 0000000..a03c89f
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-stream.html
@@ -0,0 +1,1535 @@
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>stream</title>
6<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7<link rel="start" href="index.html" title="libg3d Reference Manual">
8<link rel="up" href="ch02.html" title="Plugin interface">
9<link rel="prev" href="libg3d-plugins.html" title="plugins">
10<link rel="next" href="libg3d-iff.html" title="iff">
11<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
12<link rel="stylesheet" href="style.css" type="text/css">
13<link rel="chapter" href="ch01.html" title="Application interface">
14<link rel="chapter" href="ch02.html" title="Plugin interface">
15</head>
16<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
17<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
18<tr valign="middle">
19<td><a accesskey="p" href="libg3d-plugins.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
20<td><a accesskey="u" href="ch02.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
21<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
22<th width="100%" align="center">libg3d Reference Manual</th>
23<td><a accesskey="n" href="libg3d-iff.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
24</tr>
25<tr><td colspan="5" class="shortcuts"><nobr><a href="#libg3d-stream.synopsis" class="shortcut">Top</a>
26  | 
27 <a href="#libg3d-stream.description" class="shortcut">Description</a></nobr></td></tr>
28</table>
29<div class="refentry" lang="en">
30<a name="libg3d-stream"></a><div class="titlepage"></div>
31<div class="refnamediv"><table width="100%"><tr>
32<td valign="top">
33<h2><span class="refentrytitle"><a name="libg3d-stream.top_of_page"></a>stream</span></h2>
34<p>stream — I/O abstraction layer for plugins</p>
35</td>
36<td valign="top" align="right"></td>
37</tr></table></div>
38<div class="refsynopsisdiv">
39<a name="libg3d-stream.synopsis"></a><h2>Synopsis</h2>
40<pre class="synopsis">
41
42#include &lt;g3d/stream.h&gt;
43
44 <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>;
45<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* <a class="link" href="libg3d-stream.html#g3d-stream-open-file" title="g3d_stream_open_file ()">g3d_stream_open_file</a> (const <a
46href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
47>gchar</a> *filename,
48 const <a
49href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
50>gchar</a> *mode);
51<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* <a class="link" href="libg3d-stream.html#g3d-stream-open-structured-file" title="g3d_stream_open_structured_file ()">g3d_stream_open_structured_file</a> (const <a
52href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
53>gchar</a> *filename,
54 const <a
55href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
56>gchar</a> *subfile);
57<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* <a class="link" href="libg3d-stream.html#g3d-stream-open-structured-file-from-stream" title="g3d_stream_open_structured_file_from_stream ()">g3d_stream_open_structured_file_from_stream</a>
58 (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
59 const <a
60href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
61>gchar</a> *subfile);
62<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* <a class="link" href="libg3d-stream.html#g3d-stream-open-zip" title="g3d_stream_open_zip ()">g3d_stream_open_zip</a> (const <a
63href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
64>gchar</a> *filename,
65 const <a
66href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
67>gchar</a> *subfile);
68<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* <a class="link" href="libg3d-stream.html#g3d-stream-open-zip-from-stream" title="g3d_stream_open_zip_from_stream ()">g3d_stream_open_zip_from_stream</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
69 const <a
70href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
71>gchar</a> *subfile);
72<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* <a class="link" href="libg3d-stream.html#g3d-stream-open-gzip-from-stream" title="g3d_stream_open_gzip_from_stream ()">g3d_stream_open_gzip_from_stream</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);
73<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* <a class="link" href="libg3d-stream.html#g3d-stream-from-buffer" title="g3d_stream_from_buffer ()">g3d_stream_from_buffer</a> (<a
74href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"
75>guint8</a> *buffer,
76 <a
77href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
78>gsize</a> size,
79 const <a
80href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
81>gchar</a> *title,
82 <a
83href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
84>gboolean</a> free_buffer);
85<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* <a class="link" href="libg3d-stream.html#g3d-stream-zlib-inflate-stream" title="g3d_stream_zlib_inflate_stream ()">g3d_stream_zlib_inflate_stream</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
86 <a
87href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
88>gsize</a> cmp_size);
89<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* <a class="link" href="libg3d-stream.html#g3d-stream-new-custom" title="g3d_stream_new_custom ()">g3d_stream_new_custom</a> (<a
90href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
91>guint32</a> flags,
92 const <a
93href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
94>gchar</a> *uri,
95 <a class="link" href="libg3d-stream.html#G3DStreamReadFunc" title="G3DStreamReadFunc ()">G3DStreamReadFunc</a> readfunc,
96 <a class="link" href="libg3d-stream.html#G3DStreamReadLineFunc" title="G3DStreamReadLineFunc ()">G3DStreamReadLineFunc</a> readlinefunc,
97 <a class="link" href="libg3d-stream.html#G3DStreamSeekFunc" title="G3DStreamSeekFunc ()">G3DStreamSeekFunc</a> seekfunc,
98 <a class="link" href="libg3d-stream.html#G3DStreamTellFunc" title="G3DStreamTellFunc ()">G3DStreamTellFunc</a> tellfunc,
99 <a class="link" href="libg3d-stream.html#G3DStreamSizeFunc" title="G3DStreamSizeFunc ()">G3DStreamSizeFunc</a> sizefunc,
100 <a class="link" href="libg3d-stream.html#G3DStreamEofFunc" title="G3DStreamEofFunc ()">G3DStreamEofFunc</a> eoffunc,
101 <a class="link" href="libg3d-stream.html#G3DStreamCloseFunc" title="G3DStreamCloseFunc ()">G3DStreamCloseFunc</a> closefunc,
102 <a
103href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
104>gpointer</a> data);
105<a
106href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
107>gint</a> <a class="link" href="libg3d-stream.html#g3d-stream-close" title="g3d_stream_close ()">g3d_stream_close</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);
108<a
109href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
110>gint</a> <a class="link" href="libg3d-stream.html#g3d-stream-skip" title="g3d_stream_skip ()">g3d_stream_skip</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
111 <a
112href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset"
113>goffset</a> offset);
114<a
115href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
116>gint</a> <a class="link" href="libg3d-stream.html#g3d-stream-seek" title="g3d_stream_seek ()">g3d_stream_seek</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
117 <a
118href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset"
119>goffset</a> offset,
120 <a
121href="/usr/share/gtk-doc/html/glib/glib-IO-Channels.html#GSeekType"
122>GSeekType</a> whence);
123<a
124href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset"
125>goffset</a> <a class="link" href="libg3d-stream.html#g3d-stream-tell" title="g3d_stream_tell ()">g3d_stream_tell</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);
126<a
127href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset"
128>goffset</a> <a class="link" href="libg3d-stream.html#g3d-stream-size" title="g3d_stream_size ()">g3d_stream_size</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);
129<a
130href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
131>gboolean</a> <a class="link" href="libg3d-stream.html#g3d-stream-eof" title="g3d_stream_eof ()">g3d_stream_eof</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);
132<a
133href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
134>gboolean</a> <a class="link" href="libg3d-stream.html#g3d-stream-is-seekable" title="g3d_stream_is_seekable ()">g3d_stream_is_seekable</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);
135<a
136href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
137>gchar</a>* <a class="link" href="libg3d-stream.html#g3d-stream-get-uri" title="g3d_stream_get_uri ()">g3d_stream_get_uri</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);
138<a
139href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
140>guint32</a> <a class="link" href="libg3d-stream.html#g3d-stream-line" title="g3d_stream_line ()">g3d_stream_line</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);
141<a
142href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
143>gsize</a> <a class="link" href="libg3d-stream.html#g3d-stream-read" title="g3d_stream_read ()">g3d_stream_read</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
144 <a
145href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
146>gpointer</a> ptr,
147 <a
148href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
149>gsize</a> size);
150<a
151href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
152>gchar</a>* <a class="link" href="libg3d-stream.html#g3d-stream-read-line" title="g3d_stream_read_line ()">g3d_stream_read_line</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
153 <a
154href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
155>gchar</a> *buf,
156 <a
157href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
158>gsize</a> size);
159<a
160href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
161>gint32</a> <a class="link" href="libg3d-stream.html#g3d-stream-read-int8" title="g3d_stream_read_int8 ()">g3d_stream_read_int8</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);
162<a
163href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
164>gint32</a> <a class="link" href="libg3d-stream.html#g3d-stream-read-int16-be" title="g3d_stream_read_int16_be ()">g3d_stream_read_int16_be</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);
165<a
166href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
167>gint32</a> <a class="link" href="libg3d-stream.html#g3d-stream-read-int16-le" title="g3d_stream_read_int16_le ()">g3d_stream_read_int16_le</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);
168<a
169href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
170>gint32</a> <a class="link" href="libg3d-stream.html#g3d-stream-read-int32-be" title="g3d_stream_read_int32_be ()">g3d_stream_read_int32_be</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);
171<a
172href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
173>gint32</a> <a class="link" href="libg3d-stream.html#g3d-stream-read-int32-le" title="g3d_stream_read_int32_le ()">g3d_stream_read_int32_le</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);
174<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <a class="link" href="libg3d-stream.html#g3d-stream-read-float-be" title="g3d_stream_read_float_be ()">g3d_stream_read_float_be</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);
175<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <a class="link" href="libg3d-stream.html#g3d-stream-read-float-le" title="g3d_stream_read_float_le ()">g3d_stream_read_float_le</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);
176<a class="link" href="libg3d-types.html#G3DDouble" title="G3DDouble">G3DDouble</a> <a class="link" href="libg3d-stream.html#g3d-stream-read-double-be" title="g3d_stream_read_double_be ()">g3d_stream_read_double_be</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);
177<a class="link" href="libg3d-types.html#G3DDouble" title="G3DDouble">G3DDouble</a> <a class="link" href="libg3d-stream.html#g3d-stream-read-double-le" title="g3d_stream_read_double_le ()">g3d_stream_read_double_le</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);
178<a
179href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
180>gint32</a> <a class="link" href="libg3d-stream.html#g3d-stream-read-cstr" title="g3d_stream_read_cstr ()">g3d_stream_read_cstr</a> (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
181 <a
182href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
183>gchar</a> *buffer,
184 <a
185href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
186>gint32</a> max_len);
187<a
188href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
189>gint</a> (<a class="link" href="libg3d-stream.html#G3DStreamCloseFunc" title="G3DStreamCloseFunc ()">*G3DStreamCloseFunc</a>) (<a
190href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
191>gpointer</a> data);
192<a
193href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
194>gboolean</a> (<a class="link" href="libg3d-stream.html#G3DStreamEofFunc" title="G3DStreamEofFunc ()">*G3DStreamEofFunc</a>) (<a
195href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
196>gpointer</a> data);
197<a
198href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
199>gsize</a> (<a class="link" href="libg3d-stream.html#G3DStreamReadFunc" title="G3DStreamReadFunc ()">*G3DStreamReadFunc</a>) (<a
200href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
201>gpointer</a> ptr,
202 <a
203href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
204>gsize</a> size,
205 <a
206href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
207>gpointer</a> data);
208<a
209href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
210>gchar</a>* (<a class="link" href="libg3d-stream.html#G3DStreamReadLineFunc" title="G3DStreamReadLineFunc ()">*G3DStreamReadLineFunc</a>) (<a
211href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
212>gchar</a> *buf,
213 <a
214href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
215>gsize</a> size,
216 <a
217href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
218>gpointer</a> data);
219<a
220href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
221>gint</a> (<a class="link" href="libg3d-stream.html#G3DStreamSeekFunc" title="G3DStreamSeekFunc ()">*G3DStreamSeekFunc</a>) (<a
222href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
223>gpointer</a> data,
224 <a
225href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset"
226>goffset</a> offset,
227 <a
228href="/usr/share/gtk-doc/html/glib/glib-IO-Channels.html#GSeekType"
229>GSeekType</a> whence);
230<a
231href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset"
232>goffset</a> (<a class="link" href="libg3d-stream.html#G3DStreamSizeFunc" title="G3DStreamSizeFunc ()">*G3DStreamSizeFunc</a>) (<a
233href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
234>gpointer</a> data);
235<a
236href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset"
237>goffset</a> (<a class="link" href="libg3d-stream.html#G3DStreamTellFunc" title="G3DStreamTellFunc ()">*G3DStreamTellFunc</a>) (<a
238href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
239>gpointer</a> data);
240</pre>
241</div>
242<div class="refsect1" lang="en">
243<a name="libg3d-stream.description"></a><h2>Description</h2>
244<p>
245A stream is an abstraction for data input. It enables plugins to read
246data from a file, a memory buffer, a container file or some other medium.</p>
247<p>
248
249</p>
250</div>
251<div class="refsect1" lang="en">
252<a name="libg3d-stream.details"></a><h2>Details</h2>
253<div class="refsect2" lang="en">
254<a name="G3DStream"></a><h3>G3DStream</h3>
255<pre class="programlisting">typedef struct {
256} G3DStream;
257</pre>
258<p>
259An abstraction of input handling.</p>
260<p>
261
262</p>
263</div>
264<hr>
265<div class="refsect2" lang="en">
266<a name="g3d-stream-open-file"></a><h3>g3d_stream_open_file ()</h3>
267<pre class="programlisting"><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* g3d_stream_open_file (const <a
268href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
269>gchar</a> *filename,
270 const <a
271href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
272>gchar</a> *mode);</pre>
273<p>
274Opens a file with the C stdio routines.</p>
275<p>
276
277</p>
278<div class="variablelist"><table border="0">
279<col align="left" valign="top">
280<tbody>
281<tr>
282<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
283<td> the name of the file to open
284</td>
285</tr>
286<tr>
287<td><p><span class="term"><em class="parameter"><code>mode</code></em> :</span></p></td>
288<td> the mode to open the file, as given to <code class="function">fopen()</code>
289</td>
290</tr>
291<tr>
292<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
293<td> a newly allocated <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> or NULL in case of an error.
294</td>
295</tr>
296</tbody>
297</table></div>
298</div>
299<hr>
300<div class="refsect2" lang="en">
301<a name="g3d-stream-open-structured-file"></a><h3>g3d_stream_open_structured_file ()</h3>
302<pre class="programlisting"><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* g3d_stream_open_structured_file (const <a
303href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
304>gchar</a> *filename,
305 const <a
306href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
307>gchar</a> *subfile);</pre>
308<p>
309Open a file within a Structured File as <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a>.</p>
310<p>
311
312</p>
313<div class="variablelist"><table border="0">
314<col align="left" valign="top">
315<tbody>
316<tr>
317<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
318<td> name of container file
319</td>
320</tr>
321<tr>
322<td><p><span class="term"><em class="parameter"><code>subfile</code></em> :</span></p></td>
323<td> name of (contained) sub-file
324</td>
325</tr>
326<tr>
327<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
328<td> a newly allocated <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> or NULL in case of an error.
329</td>
330</tr>
331</tbody>
332</table></div>
333</div>
334<hr>
335<div class="refsect2" lang="en">
336<a name="g3d-stream-open-structured-file-from-stream"></a><h3>g3d_stream_open_structured_file_from_stream ()</h3>
337<pre class="programlisting"><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* g3d_stream_open_structured_file_from_stream
338 (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
339 const <a
340href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
341>gchar</a> *subfile);</pre>
342<p>
343Open a file within a Structured File which is opened as a stream. At the
344moment this only works for streams opened by <a class="link" href="libg3d-stream.html#g3d-stream-open-file" title="g3d_stream_open_file ()"><code class="function">g3d_stream_open_file()</code></a> as
345the file is directly opened again.</p>
346<p>
347
348</p>
349<div class="variablelist"><table border="0">
350<col align="left" valign="top">
351<tbody>
352<tr>
353<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
354<td> stream of container file
355</td>
356</tr>
357<tr>
358<td><p><span class="term"><em class="parameter"><code>subfile</code></em> :</span></p></td>
359<td> name of (contained) sub-file
360</td>
361</tr>
362<tr>
363<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
364<td> a newly allocated <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> or NULL in case of an error.
365</td>
366</tr>
367</tbody>
368</table></div>
369</div>
370<hr>
371<div class="refsect2" lang="en">
372<a name="g3d-stream-open-zip"></a><h3>g3d_stream_open_zip ()</h3>
373<pre class="programlisting"><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* g3d_stream_open_zip (const <a
374href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
375>gchar</a> *filename,
376 const <a
377href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
378>gchar</a> *subfile);</pre>
379<p>
380Open a file within a Zip archive.</p>
381<p>
382
383</p>
384<div class="variablelist"><table border="0">
385<col align="left" valign="top">
386<tbody>
387<tr>
388<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
389<td> name of container file
390</td>
391</tr>
392<tr>
393<td><p><span class="term"><em class="parameter"><code>subfile</code></em> :</span></p></td>
394<td> name of (contained) sub-file
395</td>
396</tr>
397<tr>
398<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
399<td> a newly allocated <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> or NULL in case of an error.
400</td>
401</tr>
402</tbody>
403</table></div>
404</div>
405<hr>
406<div class="refsect2" lang="en">
407<a name="g3d-stream-open-zip-from-stream"></a><h3>g3d_stream_open_zip_from_stream ()</h3>
408<pre class="programlisting"><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* g3d_stream_open_zip_from_stream (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
409 const <a
410href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
411>gchar</a> *subfile);</pre>
412<p>
413Open a file within a Zip archive which is opened as a stream. At the
414moment this only works for streams opened by <a class="link" href="libg3d-stream.html#g3d-stream-open-file" title="g3d_stream_open_file ()"><code class="function">g3d_stream_open_file()</code></a> as
415the file is directly opened again.</p>
416<p>
417
418</p>
419<div class="variablelist"><table border="0">
420<col align="left" valign="top">
421<tbody>
422<tr>
423<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
424<td> stream of container file
425</td>
426</tr>
427<tr>
428<td><p><span class="term"><em class="parameter"><code>subfile</code></em> :</span></p></td>
429<td> name of (contained) sub-file
430</td>
431</tr>
432<tr>
433<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
434<td> a newly allocated <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> or NULL in case of an error.
435</td>
436</tr>
437</tbody>
438</table></div>
439</div>
440<hr>
441<div class="refsect2" lang="en">
442<a name="g3d-stream-open-gzip-from-stream"></a><h3>g3d_stream_open_gzip_from_stream ()</h3>
443<pre class="programlisting"><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* g3d_stream_open_gzip_from_stream (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre>
444<p>
445Reads data from a gzip-compressed stream.</p>
446<p>
447
448</p>
449<div class="variablelist"><table border="0">
450<col align="left" valign="top">
451<tbody>
452<tr>
453<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
454<td> stream to read from
455</td>
456</tr>
457<tr>
458<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
459<td> a newly allocated <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> or NULL in case of an error.
460</td>
461</tr>
462</tbody>
463</table></div>
464</div>
465<hr>
466<div class="refsect2" lang="en">
467<a name="g3d-stream-from-buffer"></a><h3>g3d_stream_from_buffer ()</h3>
468<pre class="programlisting"><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* g3d_stream_from_buffer (<a
469href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"
470>guint8</a> *buffer,
471 <a
472href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
473>gsize</a> size,
474 const <a
475href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
476>gchar</a> *title,
477 <a
478href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
479>gboolean</a> free_buffer);</pre>
480<p>
481Use a buffer in memory as <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a>.</p>
482<p>
483
484</p>
485<div class="variablelist"><table border="0">
486<col align="left" valign="top">
487<tbody>
488<tr>
489<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
490<td> memory buffer to use
491</td>
492</tr>
493<tr>
494<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
495<td> size of buffer
496</td>
497</tr>
498<tr>
499<td><p><span class="term"><em class="parameter"><code>title</code></em> :</span></p></td>
500<td> optional title of stream, may be NULL
501</td>
502</tr>
503<tr>
504<td><p><span class="term"><em class="parameter"><code>free_buffer</code></em> :</span></p></td>
505<td> whether to free the memory with <a
506href="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"
507><code class="function">g_free()</code></a> on <a class="link" href="libg3d-stream.html#g3d-stream-close" title="g3d_stream_close ()"><code class="function">g3d_stream_close()</code></a>
508</td>
509</tr>
510<tr>
511<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
512<td> a newly allocated <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> or NULL in case of an error.
513</td>
514</tr>
515</tbody>
516</table></div>
517</div>
518<hr>
519<div class="refsect2" lang="en">
520<a name="g3d-stream-zlib-inflate-stream"></a><h3>g3d_stream_zlib_inflate_stream ()</h3>
521<pre class="programlisting"><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* g3d_stream_zlib_inflate_stream (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
522 <a
523href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
524>gsize</a> cmp_size);</pre>
525<p>
526Opens a new stream to decompress zlib-deflated parts of a stream.</p>
527<p>
528
529</p>
530<div class="variablelist"><table border="0">
531<col align="left" valign="top">
532<tbody>
533<tr>
534<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
535<td> a parent stream
536</td>
537</tr>
538<tr>
539<td><p><span class="term"><em class="parameter"><code>cmp_size</code></em> :</span></p></td>
540<td> the compressed size of the deflated part
541</td>
542</tr>
543<tr>
544<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
545<td> a newly allocated <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> or NULL in case of an error
546</td>
547</tr>
548</tbody>
549</table></div>
550</div>
551<hr>
552<div class="refsect2" lang="en">
553<a name="g3d-stream-new-custom"></a><h3>g3d_stream_new_custom ()</h3>
554<pre class="programlisting"><a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a>* g3d_stream_new_custom (<a
555href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
556>guint32</a> flags,
557 const <a
558href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
559>gchar</a> *uri,
560 <a class="link" href="libg3d-stream.html#G3DStreamReadFunc" title="G3DStreamReadFunc ()">G3DStreamReadFunc</a> readfunc,
561 <a class="link" href="libg3d-stream.html#G3DStreamReadLineFunc" title="G3DStreamReadLineFunc ()">G3DStreamReadLineFunc</a> readlinefunc,
562 <a class="link" href="libg3d-stream.html#G3DStreamSeekFunc" title="G3DStreamSeekFunc ()">G3DStreamSeekFunc</a> seekfunc,
563 <a class="link" href="libg3d-stream.html#G3DStreamTellFunc" title="G3DStreamTellFunc ()">G3DStreamTellFunc</a> tellfunc,
564 <a class="link" href="libg3d-stream.html#G3DStreamSizeFunc" title="G3DStreamSizeFunc ()">G3DStreamSizeFunc</a> sizefunc,
565 <a class="link" href="libg3d-stream.html#G3DStreamEofFunc" title="G3DStreamEofFunc ()">G3DStreamEofFunc</a> eoffunc,
566 <a class="link" href="libg3d-stream.html#G3DStreamCloseFunc" title="G3DStreamCloseFunc ()">G3DStreamCloseFunc</a> closefunc,
567 <a
568href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
569>gpointer</a> data);</pre>
570<p>
571Creates a new <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> with custom callback functions.</p>
572<p>
573
574</p>
575<div class="variablelist"><table border="0">
576<col align="left" valign="top">
577<tbody>
578<tr>
579<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
580<td> stream capability flags
581</td>
582</tr>
583<tr>
584<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
585<td> URI of new stream, must not be NULL
586</td>
587</tr>
588<tr>
589<td><p><span class="term"><em class="parameter"><code>readfunc</code></em> :</span></p></td>
590<td> read callback function
591</td>
592</tr>
593<tr>
594<td><p><span class="term"><em class="parameter"><code>readlinefunc</code></em> :</span></p></td>
595<td> read line callback function, may be NULL in which case
596line reading is emulated with <a class="link" href="libg3d-stream.html#g3d-stream-read" title="g3d_stream_read ()"><code class="function">g3d_stream_read()</code></a>
597</td>
598</tr>
599<tr>
600<td><p><span class="term"><em class="parameter"><code>seekfunc</code></em> :</span></p></td>
601<td> seek callback function
602</td>
603</tr>
604<tr>
605<td><p><span class="term"><em class="parameter"><code>tellfunc</code></em> :</span></p></td>
606<td> tell callback function
607</td>
608</tr>
609<tr>
610<td><p><span class="term"><em class="parameter"><code>sizefunc</code></em> :</span></p></td>
611<td> size callback function
612</td>
613</tr>
614<tr>
615<td><p><span class="term"><em class="parameter"><code>eoffunc</code></em> :</span></p></td>
616<td> end-of-file callback function
617</td>
618</tr>
619<tr>
620<td><p><span class="term"><em class="parameter"><code>closefunc</code></em> :</span></p></td>
621<td> close callback function
622</td>
623</tr>
624<tr>
625<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
626<td> opaque data for all callback functions
627</td>
628</tr>
629<tr>
630<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
631<td> a newly allocated <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a> or NULL in case of an error.
632</td>
633</tr>
634</tbody>
635</table></div>
636</div>
637<hr>
638<div class="refsect2" lang="en">
639<a name="g3d-stream-close"></a><h3>g3d_stream_close ()</h3>
640<pre class="programlisting"><a
641href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
642>gint</a> g3d_stream_close (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre>
643<p>
644Closes an open stream.</p>
645<p>
646
647</p>
648<div class="variablelist"><table border="0">
649<col align="left" valign="top">
650<tbody>
651<tr>
652<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
653<td> the stream
654</td>
655</tr>
656<tr>
657<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
658<td> 0 on success.
659</td>
660</tr>
661</tbody>
662</table></div>
663</div>
664<hr>
665<div class="refsect2" lang="en">
666<a name="g3d-stream-skip"></a><h3>g3d_stream_skip ()</h3>
667<pre class="programlisting"><a
668href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
669>gint</a> g3d_stream_skip (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
670 <a
671href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset"
672>goffset</a> offset);</pre>
673<p>
674Skip a number of bytes (&gt;= 0) in stream even if it does not support
675seeking.</p>
676<p>
677
678</p>
679<div class="variablelist"><table border="0">
680<col align="left" valign="top">
681<tbody>
682<tr>
683<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
684<td> stream to skip bytes from
685</td>
686</tr>
687<tr>
688<td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
689<td> number of bytes to skip
690</td>
691</tr>
692<tr>
693<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
694<td> 0 on success, -1 else
695</td>
696</tr>
697</tbody>
698</table></div>
699</div>
700<hr>
701<div class="refsect2" lang="en">
702<a name="g3d-stream-seek"></a><h3>g3d_stream_seek ()</h3>
703<pre class="programlisting"><a
704href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
705>gint</a> g3d_stream_seek (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
706 <a
707href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset"
708>goffset</a> offset,
709 <a
710href="/usr/share/gtk-doc/html/glib/glib-IO-Channels.html#GSeekType"
711>GSeekType</a> whence);</pre>
712<p>
713Moves around the current position in the stream.</p>
714<p>
715
716</p>
717<div class="variablelist"><table border="0">
718<col align="left" valign="top">
719<tbody>
720<tr>
721<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
722<td> stream to seek in
723</td>
724</tr>
725<tr>
726<td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
727<td> number of bytes to seek
728</td>
729</tr>
730<tr>
731<td><p><span class="term"><em class="parameter"><code>whence</code></em> :</span></p></td>
732<td> seek type
733</td>
734</tr>
735<tr>
736<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
737<td> 0 on success, -1 else
738</td>
739</tr>
740</tbody>
741</table></div>
742</div>
743<hr>
744<div class="refsect2" lang="en">
745<a name="g3d-stream-tell"></a><h3>g3d_stream_tell ()</h3>
746<pre class="programlisting"><a
747href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset"
748>goffset</a> g3d_stream_tell (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre>
749<p>
750Tells the current position in the stream.</p>
751<p>
752
753</p>
754<div class="variablelist"><table border="0">
755<col align="left" valign="top">
756<tbody>
757<tr>
758<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
759<td> stream to get position from
760</td>
761</tr>
762<tr>
763<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
764<td> current stream position
765</td>
766</tr>
767</tbody>
768</table></div>
769</div>
770<hr>
771<div class="refsect2" lang="en">
772<a name="g3d-stream-size"></a><h3>g3d_stream_size ()</h3>
773<pre class="programlisting"><a
774href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset"
775>goffset</a> g3d_stream_size (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre>
776<p>
777Get the size in bytes of a stream.</p>
778<p>
779
780</p>
781<div class="variablelist"><table border="0">
782<col align="left" valign="top">
783<tbody>
784<tr>
785<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
786<td> stream to get size from
787</td>
788</tr>
789<tr>
790<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
791<td> size of stream in bytes
792</td>
793</tr>
794</tbody>
795</table></div>
796</div>
797<hr>
798<div class="refsect2" lang="en">
799<a name="g3d-stream-eof"></a><h3>g3d_stream_eof ()</h3>
800<pre class="programlisting"><a
801href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
802>gboolean</a> g3d_stream_eof (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre>
803<p>
804Checks whether the stream has reached its end.</p>
805<p>
806
807</p>
808<div class="variablelist"><table border="0">
809<col align="left" valign="top">
810<tbody>
811<tr>
812<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
813<td> the stream
814</td>
815</tr>
816<tr>
817<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
818<td> TRUE if no more data can be read, FALSE else.
819</td>
820</tr>
821</tbody>
822</table></div>
823</div>
824<hr>
825<div class="refsect2" lang="en">
826<a name="g3d-stream-is-seekable"></a><h3>g3d_stream_is_seekable ()</h3>
827<pre class="programlisting"><a
828href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
829>gboolean</a> g3d_stream_is_seekable (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre>
830<p>
831Get information whether it is possible to seek in a stream.</p>
832<p>
833
834</p>
835<div class="variablelist"><table border="0">
836<col align="left" valign="top">
837<tbody>
838<tr>
839<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
840<td> the stream
841</td>
842</tr>
843<tr>
844<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
845<td> TRUE if seekable, FALSE else
846</td>
847</tr>
848</tbody>
849</table></div>
850</div>
851<hr>
852<div class="refsect2" lang="en">
853<a name="g3d-stream-get-uri"></a><h3>g3d_stream_get_uri ()</h3>
854<pre class="programlisting"><a
855href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
856>gchar</a>* g3d_stream_get_uri (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre>
857<p>
858Get the URI of a stream</p>
859<p>
860
861</p>
862<div class="variablelist"><table border="0">
863<col align="left" valign="top">
864<tbody>
865<tr>
866<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
867<td> the stream
868</td>
869</tr>
870<tr>
871<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
872<td> a non-NULL, zero-terminated string containing the URI of the
873string. This return value should not be freed.
874</td>
875</tr>
876</tbody>
877</table></div>
878</div>
879<hr>
880<div class="refsect2" lang="en">
881<a name="g3d-stream-line"></a><h3>g3d_stream_line ()</h3>
882<pre class="programlisting"><a
883href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
884>guint32</a> g3d_stream_line (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre>
885<p>
886Get the current line number from stream. This only works if line are
887consequently read with <a class="link" href="libg3d-stream.html#g3d-stream-read-line" title="g3d_stream_read_line ()"><code class="function">g3d_stream_read_line()</code></a>, so it's only applicable
888for text streams.</p>
889<p>
890
891</p>
892<div class="variablelist"><table border="0">
893<col align="left" valign="top">
894<tbody>
895<tr>
896<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
897<td> stream to get line from
898</td>
899</tr>
900<tr>
901<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
902<td> current line number, may be 0
903</td>
904</tr>
905</tbody>
906</table></div>
907</div>
908<hr>
909<div class="refsect2" lang="en">
910<a name="g3d-stream-read"></a><h3>g3d_stream_read ()</h3>
911<pre class="programlisting"><a
912href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
913>gsize</a> g3d_stream_read (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
914 <a
915href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
916>gpointer</a> ptr,
917 <a
918href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
919>gsize</a> size);</pre>
920<p>
921Reads a number of bytes from the stream.</p>
922<p>
923
924</p>
925<div class="variablelist"><table border="0">
926<col align="left" valign="top">
927<tbody>
928<tr>
929<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
930<td> the stream to read from
931</td>
932</tr>
933<tr>
934<td><p><span class="term"><em class="parameter"><code>ptr</code></em> :</span></p></td>
935<td> pointer to memory storage
936</td>
937</tr>
938<tr>
939<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
940<td> number of bytes to read
941</td>
942</tr>
943<tr>
944<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
945<td> number of bytes successfully read.
946</td>
947</tr>
948</tbody>
949</table></div>
950</div>
951<hr>
952<div class="refsect2" lang="en">
953<a name="g3d-stream-read-line"></a><h3>g3d_stream_read_line ()</h3>
954<pre class="programlisting"><a
955href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
956>gchar</a>* g3d_stream_read_line (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
957 <a
958href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
959>gchar</a> *buf,
960 <a
961href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
962>gsize</a> size);</pre>
963<p>
964Read a line (terminated by a newline character or end of file) from a
965stream.</p>
966<p>
967
968</p>
969<div class="variablelist"><table border="0">
970<col align="left" valign="top">
971<tbody>
972<tr>
973<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
974<td> stream to read a line from
975</td>
976</tr>
977<tr>
978<td><p><span class="term"><em class="parameter"><code>buf</code></em> :</span></p></td>
979<td> an allocated buffer to be filled
980</td>
981</tr>
982<tr>
983<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
984<td> maximum length of line including terminating zero
985</td>
986</tr>
987<tr>
988<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
989<td> the read line or NULL in case of an error.
990</td>
991</tr>
992</tbody>
993</table></div>
994</div>
995<hr>
996<div class="refsect2" lang="en">
997<a name="g3d-stream-read-int8"></a><h3>g3d_stream_read_int8 ()</h3>
998<pre class="programlisting"><a
999href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
1000>gint32</a> g3d_stream_read_int8 (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre>
1001<p>
1002Read a 1 byte signed integer from file.</p>
1003<p>
1004
1005</p>
1006<div class="variablelist"><table border="0">
1007<col align="left" valign="top">
1008<tbody>
1009<tr>
1010<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
1011<td> the stream to read from
1012</td>
1013</tr>
1014<tr>
1015<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1016<td> The read value, 0 in case of error
1017</td>
1018</tr>
1019</tbody>
1020</table></div>
1021</div>
1022<hr>
1023<div class="refsect2" lang="en">
1024<a name="g3d-stream-read-int16-be"></a><h3>g3d_stream_read_int16_be ()</h3>
1025<pre class="programlisting"><a
1026href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
1027>gint32</a> g3d_stream_read_int16_be (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre>
1028<p>
1029Read a 2 byte big-endian signed integer from file.</p>
1030<p>
1031
1032</p>
1033<div class="variablelist"><table border="0">
1034<col align="left" valign="top">
1035<tbody>
1036<tr>
1037<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
1038<td> the stream to read from
1039</td>
1040</tr>
1041<tr>
1042<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1043<td> The read value, 0 in case of error
1044</td>
1045</tr>
1046</tbody>
1047</table></div>
1048</div>
1049<hr>
1050<div class="refsect2" lang="en">
1051<a name="g3d-stream-read-int16-le"></a><h3>g3d_stream_read_int16_le ()</h3>
1052<pre class="programlisting"><a
1053href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
1054>gint32</a> g3d_stream_read_int16_le (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre>
1055<p>
1056Read a 2 byte little-endian signed integer from file.</p>
1057<p>
1058
1059</p>
1060<div class="variablelist"><table border="0">
1061<col align="left" valign="top">
1062<tbody>
1063<tr>
1064<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
1065<td> the stream to read from
1066</td>
1067</tr>
1068<tr>
1069<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1070<td> The read value, 0 in case of error
1071</td>
1072</tr>
1073</tbody>
1074</table></div>
1075</div>
1076<hr>
1077<div class="refsect2" lang="en">
1078<a name="g3d-stream-read-int32-be"></a><h3>g3d_stream_read_int32_be ()</h3>
1079<pre class="programlisting"><a
1080href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
1081>gint32</a> g3d_stream_read_int32_be (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre>
1082<p>
1083Read a 4 byte big-endian signed integer from file.</p>
1084<p>
1085
1086</p>
1087<div class="variablelist"><table border="0">
1088<col align="left" valign="top">
1089<tbody>
1090<tr>
1091<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
1092<td> the stream to read from
1093</td>
1094</tr>
1095<tr>
1096<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1097<td> The read value, 0 in case of error
1098</td>
1099</tr>
1100</tbody>
1101</table></div>
1102</div>
1103<hr>
1104<div class="refsect2" lang="en">
1105<a name="g3d-stream-read-int32-le"></a><h3>g3d_stream_read_int32_le ()</h3>
1106<pre class="programlisting"><a
1107href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
1108>gint32</a> g3d_stream_read_int32_le (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre>
1109<p>
1110Read a 4 byte little-endian signed integer from file.</p>
1111<p>
1112
1113</p>
1114<div class="variablelist"><table border="0">
1115<col align="left" valign="top">
1116<tbody>
1117<tr>
1118<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
1119<td> the stream to read from
1120</td>
1121</tr>
1122<tr>
1123<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1124<td> The read value, 0 in case of error
1125</td>
1126</tr>
1127</tbody>
1128</table></div>
1129</div>
1130<hr>
1131<div class="refsect2" lang="en">
1132<a name="g3d-stream-read-float-be"></a><h3>g3d_stream_read_float_be ()</h3>
1133<pre class="programlisting"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> g3d_stream_read_float_be (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre>
1134<p>
1135Read a 4 byte big-endian floating point number from file.</p>
1136<p>
1137
1138</p>
1139<div class="variablelist"><table border="0">
1140<col align="left" valign="top">
1141<tbody>
1142<tr>
1143<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
1144<td> the stream to read from
1145</td>
1146</tr>
1147<tr>
1148<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1149<td> The read value, 0 in case of error
1150</td>
1151</tr>
1152</tbody>
1153</table></div>
1154</div>
1155<hr>
1156<div class="refsect2" lang="en">
1157<a name="g3d-stream-read-float-le"></a><h3>g3d_stream_read_float_le ()</h3>
1158<pre class="programlisting"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> g3d_stream_read_float_le (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre>
1159<p>
1160Read a 4 byte little-endian floating point number from file.</p>
1161<p>
1162
1163</p>
1164<div class="variablelist"><table border="0">
1165<col align="left" valign="top">
1166<tbody>
1167<tr>
1168<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
1169<td> the stream to read from
1170</td>
1171</tr>
1172<tr>
1173<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1174<td> The read value, 0 in case of error
1175</td>
1176</tr>
1177</tbody>
1178</table></div>
1179</div>
1180<hr>
1181<div class="refsect2" lang="en">
1182<a name="g3d-stream-read-double-be"></a><h3>g3d_stream_read_double_be ()</h3>
1183<pre class="programlisting"><a class="link" href="libg3d-types.html#G3DDouble" title="G3DDouble">G3DDouble</a> g3d_stream_read_double_be (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre>
1184<p>
1185Read a 8 byte big-endian double-precision floating point number from file.</p>
1186<p>
1187
1188</p>
1189<div class="variablelist"><table border="0">
1190<col align="left" valign="top">
1191<tbody>
1192<tr>
1193<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
1194<td> the stream to read from
1195</td>
1196</tr>
1197<tr>
1198<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1199<td> The read value, 0 in case of error
1200</td>
1201</tr>
1202</tbody>
1203</table></div>
1204</div>
1205<hr>
1206<div class="refsect2" lang="en">
1207<a name="g3d-stream-read-double-le"></a><h3>g3d_stream_read_double_le ()</h3>
1208<pre class="programlisting"><a class="link" href="libg3d-types.html#G3DDouble" title="G3DDouble">G3DDouble</a> g3d_stream_read_double_le (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre>
1209<p>
1210Read a 8 byte little-endian double-precision floating point number from
1211file.</p>
1212<p>
1213
1214</p>
1215<div class="variablelist"><table border="0">
1216<col align="left" valign="top">
1217<tbody>
1218<tr>
1219<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
1220<td> the stream to read from
1221</td>
1222</tr>
1223<tr>
1224<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1225<td> The read value, 0 in case of error
1226</td>
1227</tr>
1228</tbody>
1229</table></div>
1230</div>
1231<hr>
1232<div class="refsect2" lang="en">
1233<a name="g3d-stream-read-cstr"></a><h3>g3d_stream_read_cstr ()</h3>
1234<pre class="programlisting"><a
1235href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
1236>gint32</a> g3d_stream_read_cstr (<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream,
1237 <a
1238href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
1239>gchar</a> *buffer,
1240 <a
1241href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
1242>gint32</a> max_len);</pre>
1243<p>
1244Read a string (terminated by '\0') from stream</p>
1245<p>
1246
1247</p>
1248<div class="variablelist"><table border="0">
1249<col align="left" valign="top">
1250<tbody>
1251<tr>
1252<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
1253<td> the stream to read from
1254</td>
1255</tr>
1256<tr>
1257<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
1258<td> the buffer to fill
1259</td>
1260</tr>
1261<tr>
1262<td><p><span class="term"><em class="parameter"><code>max_len</code></em> :</span></p></td>
1263<td> maximum number to read from stream
1264</td>
1265</tr>
1266<tr>
1267<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1268<td> number of bytes read from stream
1269</td>
1270</tr>
1271</tbody>
1272</table></div>
1273</div>
1274<hr>
1275<div class="refsect2" lang="en">
1276<a name="G3DStreamCloseFunc"></a><h3>G3DStreamCloseFunc ()</h3>
1277<pre class="programlisting"><a
1278href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
1279>gint</a> (*G3DStreamCloseFunc) (<a
1280href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
1281>gpointer</a> data);</pre>
1282<p>
1283Callback function for <a class="link" href="libg3d-stream.html#g3d-stream-close" title="g3d_stream_close ()"><code class="function">g3d_stream_close()</code></a>.</p>
1284<p>
1285
1286</p>
1287<div class="variablelist"><table border="0">
1288<col align="left" valign="top">
1289<tbody>
1290<tr>
1291<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
1292<td> opaque stream data
1293</td>
1294</tr>
1295<tr>
1296<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1297<td> 0 on success, -1 else.
1298</td>
1299</tr>
1300</tbody>
1301</table></div>
1302</div>
1303<hr>
1304<div class="refsect2" lang="en">
1305<a name="G3DStreamEofFunc"></a><h3>G3DStreamEofFunc ()</h3>
1306<pre class="programlisting"><a
1307href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
1308>gboolean</a> (*G3DStreamEofFunc) (<a
1309href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
1310>gpointer</a> data);</pre>
1311<p>
1312Callback function for <a class="link" href="libg3d-stream.html#g3d-stream-eof" title="g3d_stream_eof ()"><code class="function">g3d_stream_eof()</code></a>.</p>
1313<p>
1314
1315</p>
1316<div class="variablelist"><table border="0">
1317<col align="left" valign="top">
1318<tbody>
1319<tr>
1320<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
1321<td> opaque stream data
1322</td>
1323</tr>
1324<tr>
1325<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1326<td> TRUE on stream end-of-file, FALSE else.
1327</td>
1328</tr>
1329</tbody>
1330</table></div>
1331</div>
1332<hr>
1333<div class="refsect2" lang="en">
1334<a name="G3DStreamReadFunc"></a><h3>G3DStreamReadFunc ()</h3>
1335<pre class="programlisting"><a
1336href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
1337>gsize</a> (*G3DStreamReadFunc) (<a
1338href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
1339>gpointer</a> ptr,
1340 <a
1341href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
1342>gsize</a> size,
1343 <a
1344href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
1345>gpointer</a> data);</pre>
1346<p>
1347Callback function for <a class="link" href="libg3d-stream.html#g3d-stream-read" title="g3d_stream_read ()"><code class="function">g3d_stream_read()</code></a>.</p>
1348<p>
1349
1350</p>
1351<div class="variablelist"><table border="0">
1352<col align="left" valign="top">
1353<tbody>
1354<tr>
1355<td><p><span class="term"><em class="parameter"><code>ptr</code></em> :</span></p></td>
1356<td> buffer to read bytes into
1357</td>
1358</tr>
1359<tr>
1360<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
1361<td> number of bytes to read
1362</td>
1363</tr>
1364<tr>
1365<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
1366<td> opaque stream data
1367</td>
1368</tr>
1369<tr>
1370<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1371<td> number of bytes actually read.
1372</td>
1373</tr>
1374</tbody>
1375</table></div>
1376</div>
1377<hr>
1378<div class="refsect2" lang="en">
1379<a name="G3DStreamReadLineFunc"></a><h3>G3DStreamReadLineFunc ()</h3>
1380<pre class="programlisting"><a
1381href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
1382>gchar</a>* (*G3DStreamReadLineFunc) (<a
1383href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
1384>gchar</a> *buf,
1385 <a
1386href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
1387>gsize</a> size,
1388 <a
1389href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
1390>gpointer</a> data);</pre>
1391<p>
1392Callback function for <a class="link" href="libg3d-stream.html#g3d-stream-read-line" title="g3d_stream_read_line ()"><code class="function">g3d_stream_read_line()</code></a>.</p>
1393<p>
1394
1395</p>
1396<div class="variablelist"><table border="0">
1397<col align="left" valign="top">
1398<tbody>
1399<tr>
1400<td><p><span class="term"><em class="parameter"><code>buf</code></em> :</span></p></td>
1401<td> buffer to read bytes into
1402</td>
1403</tr>
1404<tr>
1405<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
1406<td> maximum size of buffer
1407</td>
1408</tr>
1409<tr>
1410<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
1411<td> opaque stream data
1412</td>
1413</tr>
1414<tr>
1415<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1416<td> The line buffer or NULL in case of an error.
1417</td>
1418</tr>
1419</tbody>
1420</table></div>
1421</div>
1422<hr>
1423<div class="refsect2" lang="en">
1424<a name="G3DStreamSeekFunc"></a><h3>G3DStreamSeekFunc ()</h3>
1425<pre class="programlisting"><a
1426href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
1427>gint</a> (*G3DStreamSeekFunc) (<a
1428href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
1429>gpointer</a> data,
1430 <a
1431href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset"
1432>goffset</a> offset,
1433 <a
1434href="/usr/share/gtk-doc/html/glib/glib-IO-Channels.html#GSeekType"
1435>GSeekType</a> whence);</pre>
1436<p>
1437Callback function for <a class="link" href="libg3d-stream.html#g3d-stream-seek" title="g3d_stream_seek ()"><code class="function">g3d_stream_seek()</code></a>.</p>
1438<p>
1439
1440</p>
1441<div class="variablelist"><table border="0">
1442<col align="left" valign="top">
1443<tbody>
1444<tr>
1445<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
1446<td> opaque stream data
1447</td>
1448</tr>
1449<tr>
1450<td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
1451<td> seek offset
1452</td>
1453</tr>
1454<tr>
1455<td><p><span class="term"><em class="parameter"><code>whence</code></em> :</span></p></td>
1456<td> seek type
1457</td>
1458</tr>
1459<tr>
1460<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1461<td> 0 on success, -1 else.
1462</td>
1463</tr>
1464</tbody>
1465</table></div>
1466</div>
1467<hr>
1468<div class="refsect2" lang="en">
1469<a name="G3DStreamSizeFunc"></a><h3>G3DStreamSizeFunc ()</h3>
1470<pre class="programlisting"><a
1471href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset"
1472>goffset</a> (*G3DStreamSizeFunc) (<a
1473href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
1474>gpointer</a> data);</pre>
1475<p>
1476Callback function for <a class="link" href="libg3d-stream.html#g3d-stream-size" title="g3d_stream_size ()"><code class="function">g3d_stream_size()</code></a>.</p>
1477<p>
1478
1479</p>
1480<div class="variablelist"><table border="0">
1481<col align="left" valign="top">
1482<tbody>
1483<tr>
1484<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
1485<td> opaque stream data
1486</td>
1487</tr>
1488<tr>
1489<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1490<td> size of stream.
1491</td>
1492</tr>
1493</tbody>
1494</table></div>
1495</div>
1496<hr>
1497<div class="refsect2" lang="en">
1498<a name="G3DStreamTellFunc"></a><h3>G3DStreamTellFunc ()</h3>
1499<pre class="programlisting"><a
1500href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#goffset"
1501>goffset</a> (*G3DStreamTellFunc) (<a
1502href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
1503>gpointer</a> data);</pre>
1504<p>
1505Callback function for <a class="link" href="libg3d-stream.html#g3d-stream-tell" title="g3d_stream_tell ()"><code class="function">g3d_stream_tell()</code></a>.</p>
1506<p>
1507
1508</p>
1509<div class="variablelist"><table border="0">
1510<col align="left" valign="top">
1511<tbody>
1512<tr>
1513<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
1514<td> opaque stream data
1515</td>
1516</tr>
1517<tr>
1518<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1519<td> current stream position.
1520</td>
1521</tr>
1522</tbody>
1523</table></div>
1524</div>
1525</div>
1526<div class="refsect1" lang="en">
1527<a name="libg3d-stream.see-also"></a><h2>See Also</h2>
1528<a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream"><span class="type">G3DStream</span></a>
1529</div>
1530</div>
1531<div class="footer">
1532<hr>
1533 Generated by GTK-Doc V1.10</div>
1534</body>
1535</html>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-texture.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-texture.html
new file mode 100644
index 0000000..9caa7da
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-texture.html
@@ -0,0 +1,455 @@
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>texture</title>
6<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7<link rel="start" href="index.html" title="libg3d Reference Manual">
8<link rel="up" href="ch01.html" title="Application interface">
9<link rel="prev" href="libg3d-material.html" title="material">
10<link rel="next" href="ch02.html" title="Plugin interface">
11<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
12<link rel="stylesheet" href="style.css" type="text/css">
13<link rel="chapter" href="ch01.html" title="Application interface">
14<link rel="chapter" href="ch02.html" title="Plugin interface">
15</head>
16<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
17<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
18<tr valign="middle">
19<td><a accesskey="p" href="libg3d-material.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
20<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
21<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
22<th width="100%" align="center">libg3d Reference Manual</th>
23<td><a accesskey="n" href="ch02.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
24</tr>
25<tr><td colspan="5" class="shortcuts"><nobr><a href="#libg3d-texture.synopsis" class="shortcut">Top</a>
26  | 
27 <a href="#libg3d-texture.description" class="shortcut">Description</a></nobr></td></tr>
28</table>
29<div class="refentry" lang="en">
30<a name="libg3d-texture"></a><div class="titlepage"></div>
31<div class="refnamediv"><table width="100%"><tr>
32<td valign="top">
33<h2><span class="refentrytitle"><a name="libg3d-texture.top_of_page"></a>texture</span></h2>
34<p>texture — Texture loading and manipulation</p>
35</td>
36<td valign="top" align="right"></td>
37</tr></table></div>
38<div class="refsynopsisdiv">
39<a name="libg3d-texture.synopsis"></a><h2>Synopsis</h2>
40<pre class="synopsis">
41
42#include &lt;g3d/texture.h&gt;
43
44#define <a class="link" href="libg3d-texture.html#G3D-FLAG-IMG-GREYSCALE:CAPS" title="G3D_FLAG_IMG_GREYSCALE">G3D_FLAG_IMG_GREYSCALE</a>
45enum <a class="link" href="libg3d-texture.html#G3DTexEnv" title="enum G3DTexEnv">G3DTexEnv</a>;
46 <a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a>;
47<a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a>* <a class="link" href="libg3d-texture.html#g3d-texture-load-cached" title="g3d_texture_load_cached ()">g3d_texture_load_cached</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
48 <a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model,
49 const <a
50href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
51>gchar</a> *filename);
52<a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a>* <a class="link" href="libg3d-texture.html#g3d-texture-load-from-stream" title="g3d_texture_load_from_stream ()">g3d_texture_load_from_stream</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
53 <a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model,
54 <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);
55<a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a>* <a class="link" href="libg3d-texture.html#g3d-texture-load" title="g3d_texture_load ()">g3d_texture_load</a> (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
56 const <a
57href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
58>gchar</a> *filename);
59void <a class="link" href="libg3d-texture.html#g3d-texture-free" title="g3d_texture_free ()">g3d_texture_free</a> (<a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *texture);
60<a
61href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
62>gboolean</a> <a class="link" href="libg3d-texture.html#g3d-texture-prepare" title="g3d_texture_prepare ()">g3d_texture_prepare</a> (<a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *texture);
63<a
64href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
65>gboolean</a> <a class="link" href="libg3d-texture.html#g3d-texture-flip-y" title="g3d_texture_flip_y ()">g3d_texture_flip_y</a> (<a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *texture);
66<a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a>* <a class="link" href="libg3d-texture.html#g3d-texture-merge-alpha" title="g3d_texture_merge_alpha ()">g3d_texture_merge_alpha</a> (<a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *image,
67 <a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *aimage);
68</pre>
69</div>
70<div class="refsect1" lang="en">
71<a name="libg3d-texture.description"></a><h2>Description</h2>
72<p>
73A texture is an image used in materials. Here are some helper functions,
74mostly for cached loading of a <a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage"><span class="type">G3DImage</span></a>.</p>
75<p>
76
77</p>
78</div>
79<div class="refsect1" lang="en">
80<a name="libg3d-texture.details"></a><h2>Details</h2>
81<div class="refsect2" lang="en">
82<a name="G3D-FLAG-IMG-GREYSCALE:CAPS"></a><h3>G3D_FLAG_IMG_GREYSCALE</h3>
83<pre class="programlisting">#define G3D_FLAG_IMG_GREYSCALE (1L &lt;&lt; 1)
84</pre>
85<p>
86The image just uses the red channel for grey value</p>
87<p>
88
89</p>
90</div>
91<hr>
92<div class="refsect2" lang="en">
93<a name="G3DTexEnv"></a><h3>enum G3DTexEnv</h3>
94<pre class="programlisting">typedef enum {
95 G3D_TEXENV_UNSPECIFIED = 0,
96 G3D_TEXENV_BLEND,
97 G3D_TEXENV_DECAL,
98 G3D_TEXENV_MODULATE,
99 G3D_TEXENV_REPLACE
100} G3DTexEnv;
101</pre>
102<p>
103Specify how the texture should interact with other material properties.</p>
104<p>
105
106</p>
107<div class="variablelist"><table border="0">
108<col align="left" valign="top">
109<tbody>
110<tr>
111<td><p><a name="G3D-TEXENV-UNSPECIFIED:CAPS"></a><span class="term"><code class="literal">G3D_TEXENV_UNSPECIFIED</code></span></p></td>
112<td> unspecified, application decides
113</td>
114</tr>
115<tr>
116<td><p><a name="G3D-TEXENV-BLEND:CAPS"></a><span class="term"><code class="literal">G3D_TEXENV_BLEND</code></span></p></td>
117<td> use blending
118</td>
119</tr>
120<tr>
121<td><p><a name="G3D-TEXENV-DECAL:CAPS"></a><span class="term"><code class="literal">G3D_TEXENV_DECAL</code></span></p></td>
122<td> use as decal
123</td>
124</tr>
125<tr>
126<td><p><a name="G3D-TEXENV-MODULATE:CAPS"></a><span class="term"><code class="literal">G3D_TEXENV_MODULATE</code></span></p></td>
127<td> use modulate
128</td>
129</tr>
130<tr>
131<td><p><a name="G3D-TEXENV-REPLACE:CAPS"></a><span class="term"><code class="literal">G3D_TEXENV_REPLACE</code></span></p></td>
132<td> replace color
133</td>
134</tr>
135</tbody>
136</table></div>
137</div>
138<hr>
139<div class="refsect2" lang="en">
140<a name="G3DImage"></a><h3>G3DImage</h3>
141<pre class="programlisting">typedef struct {
142 gchar *name;
143 guint32 width;
144 guint32 height;
145 guint8 depth;
146 guint32 flags;
147 guint8 *pixeldata;
148
149 guint32 tex_id;
150 G3DTexEnv tex_env;
151 G3DFloat tex_scale_u;
152 G3DFloat tex_scale_v;
153} G3DImage;
154</pre>
155<p>
156Object containing a two-dimensional pixel image.</p>
157<p>
158
159</p>
160<div class="variablelist"><table border="0">
161<col align="left" valign="top">
162<tbody>
163<tr>
164<td><p><span class="term"><a
165href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
166>gchar</a> *<em class="structfield"><code>name</code></em>;</span></p></td>
167<td> name of image
168</td>
169</tr>
170<tr>
171<td><p><span class="term"><a
172href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
173>guint32</a> <em class="structfield"><code>width</code></em>;</span></p></td>
174<td> width of image in pixels
175</td>
176</tr>
177<tr>
178<td><p><span class="term"><a
179href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
180>guint32</a> <em class="structfield"><code>height</code></em>;</span></p></td>
181<td> height of image in pixels
182</td>
183</tr>
184<tr>
185<td><p><span class="term"><a
186href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"
187>guint8</a> <em class="structfield"><code>depth</code></em>;</span></p></td>
188<td> depth of image in bits
189</td>
190</tr>
191<tr>
192<td><p><span class="term"><a
193href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
194>guint32</a> <em class="structfield"><code>flags</code></em>;</span></p></td>
195<td> flags
196</td>
197</tr>
198<tr>
199<td><p><span class="term"><a
200href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"
201>guint8</a> *<em class="structfield"><code>pixeldata</code></em>;</span></p></td>
202<td> the binary image data
203</td>
204</tr>
205<tr>
206<td><p><span class="term"><a
207href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
208>guint32</a> <em class="structfield"><code>tex_id</code></em>;</span></p></td>
209<td> the OpenGL texture id, should be unique model-wide
210</td>
211</tr>
212<tr>
213<td><p><span class="term"><a class="link" href="libg3d-texture.html#G3DTexEnv" title="enum G3DTexEnv">G3DTexEnv</a> <em class="structfield"><code>tex_env</code></em>;</span></p></td>
214<td> texture environment flags
215</td>
216</tr>
217<tr>
218<td><p><span class="term"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <em class="structfield"><code>tex_scale_u</code></em>;</span></p></td>
219<td> factor scaling texture width, should be 1.0 for most cases
220</td>
221</tr>
222<tr>
223<td><p><span class="term"><a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> <em class="structfield"><code>tex_scale_v</code></em>;</span></p></td>
224<td> factor scaling texture height, should be 1.0 for most cases
225</td>
226</tr>
227</tbody>
228</table></div>
229</div>
230<hr>
231<div class="refsect2" lang="en">
232<a name="g3d-texture-load-cached"></a><h3>g3d_texture_load_cached ()</h3>
233<pre class="programlisting"><a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a>* g3d_texture_load_cached (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
234 <a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model,
235 const <a
236href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
237>gchar</a> *filename);</pre>
238<p>
239Loads a texture image from file and attaches it to a hash table in the
240model. On a second try to load this texture it is returned from cache.</p>
241<p>
242
243</p>
244<div class="variablelist"><table border="0">
245<col align="left" valign="top">
246<tbody>
247<tr>
248<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
249<td> a valid context
250</td>
251</tr>
252<tr>
253<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
254<td> a valid model
255</td>
256</tr>
257<tr>
258<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
259<td> the file name of the texture to load
260</td>
261</tr>
262<tr>
263<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
264<td> the texture image
265</td>
266</tr>
267</tbody>
268</table></div>
269</div>
270<hr>
271<div class="refsect2" lang="en">
272<a name="g3d-texture-load-from-stream"></a><h3>g3d_texture_load_from_stream ()</h3>
273<pre class="programlisting"><a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a>* g3d_texture_load_from_stream (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
274 <a class="link" href="libg3d-model.html#G3DModel" title="G3DModel">G3DModel</a> *model,
275 <a class="link" href="libg3d-stream.html#G3DStream" title="G3DStream">G3DStream</a> *stream);</pre>
276<p>
277Load a texture image from a stream. The file type is determined by the
278extension of the stream URI, so it should be valid. If <em class="parameter"><code>model</code></em> is not NULL
279the texture image is cached (or retrieved from cache if available).</p>
280<p>
281
282</p>
283<div class="variablelist"><table border="0">
284<col align="left" valign="top">
285<tbody>
286<tr>
287<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
288<td> a valid context
289</td>
290</tr>
291<tr>
292<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
293<td> a valid model or NULL
294</td>
295</tr>
296<tr>
297<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
298<td> an open stream
299</td>
300</tr>
301<tr>
302<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
303<td> the texture image or NULL in case of an error.
304</td>
305</tr>
306</tbody>
307</table></div>
308</div>
309<hr>
310<div class="refsect2" lang="en">
311<a name="g3d-texture-load"></a><h3>g3d_texture_load ()</h3>
312<pre class="programlisting"><a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a>* g3d_texture_load (<a class="link" href="libg3d-context.html#G3DContext" title="G3DContext">G3DContext</a> *context,
313 const <a
314href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
315>gchar</a> *filename);</pre>
316<p>
317Load a texture from a file. The type of file is determined by the file
318extension.</p>
319<p>
320
321</p>
322<div class="variablelist"><table border="0">
323<col align="left" valign="top">
324<tbody>
325<tr>
326<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
327<td> a valid context
328</td>
329</tr>
330<tr>
331<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
332<td> the file name of the texture
333</td>
334</tr>
335<tr>
336<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
337<td> the texture image or NULL in case of an error.
338</td>
339</tr>
340</tbody>
341</table></div>
342</div>
343<hr>
344<div class="refsect2" lang="en">
345<a name="g3d-texture-free"></a><h3>g3d_texture_free ()</h3>
346<pre class="programlisting">void g3d_texture_free (<a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *texture);</pre>
347<p>
348Frees all memory used by this texture image.</p>
349<p>
350
351</p>
352<div class="variablelist"><table border="0">
353<col align="left" valign="top">
354<tbody><tr>
355<td><p><span class="term"><em class="parameter"><code>texture</code></em> :</span></p></td>
356<td> a texture image
357</td>
358</tr></tbody>
359</table></div>
360</div>
361<hr>
362<div class="refsect2" lang="en">
363<a name="g3d-texture-prepare"></a><h3>g3d_texture_prepare ()</h3>
364<pre class="programlisting"><a
365href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
366>gboolean</a> g3d_texture_prepare (<a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *texture);</pre>
367<p>
368Resizes the image to dimensions which are a power of 2 to be
369usable as an OpenGL texture.
370(FIXME: unimplemented)</p>
371<p>
372
373</p>
374<div class="variablelist"><table border="0">
375<col align="left" valign="top">
376<tbody>
377<tr>
378<td><p><span class="term"><em class="parameter"><code>texture</code></em> :</span></p></td>
379<td> a texture image
380</td>
381</tr>
382<tr>
383<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
384<td> TRUE on success, FALSE else
385</td>
386</tr>
387</tbody>
388</table></div>
389</div>
390<hr>
391<div class="refsect2" lang="en">
392<a name="g3d-texture-flip-y"></a><h3>g3d_texture_flip_y ()</h3>
393<pre class="programlisting"><a
394href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
395>gboolean</a> g3d_texture_flip_y (<a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *texture);</pre>
396<p>
397Mirror the image along the x axis - all y coordinates are inverted.</p>
398<p>
399
400</p>
401<div class="variablelist"><table border="0">
402<col align="left" valign="top">
403<tbody>
404<tr>
405<td><p><span class="term"><em class="parameter"><code>texture</code></em> :</span></p></td>
406<td> a texture image
407</td>
408</tr>
409<tr>
410<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
411<td> TRUE on success, FALSE on error.
412</td>
413</tr>
414</tbody>
415</table></div>
416</div>
417<hr>
418<div class="refsect2" lang="en">
419<a name="g3d-texture-merge-alpha"></a><h3>g3d_texture_merge_alpha ()</h3>
420<pre class="programlisting"><a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a>* g3d_texture_merge_alpha (<a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *image,
421 <a class="link" href="libg3d-texture.html#G3DImage" title="G3DImage">G3DImage</a> *aimage);</pre>
422<p>
423Merges alpha information from <em class="parameter"><code>aimage</code></em> into output image. If <em class="parameter"><code>image</code></em> is NULL a
424new image is created, else <em class="parameter"><code>image</code></em> is returned with alpha from <em class="parameter"><code>aimage</code></em>.</p>
425<p>
426
427</p>
428<div class="variablelist"><table border="0">
429<col align="left" valign="top">
430<tbody>
431<tr>
432<td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td>
433<td> a texture image or NULL
434</td>
435</tr>
436<tr>
437<td><p><span class="term"><em class="parameter"><code>aimage</code></em> :</span></p></td>
438<td> an image with alpha information
439</td>
440</tr>
441<tr>
442<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
443<td> a texture image or NULL in case of an error.
444</td>
445</tr>
446</tbody>
447</table></div>
448</div>
449</div>
450</div>
451<div class="footer">
452<hr>
453 Generated by GTK-Doc V1.10</div>
454</body>
455</html>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-types.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-types.html
new file mode 100644
index 0000000..b7f076d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-types.html
@@ -0,0 +1,109 @@
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>types</title>
6<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7<link rel="start" href="index.html" title="libg3d Reference Manual">
8<link rel="up" href="ch01.html" title="Application interface">
9<link rel="prev" href="ch01.html" title="Application interface">
10<link rel="next" href="libg3d-context.html" title="context">
11<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
12<link rel="stylesheet" href="style.css" type="text/css">
13<link rel="chapter" href="ch01.html" title="Application interface">
14<link rel="chapter" href="ch02.html" title="Plugin interface">
15</head>
16<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
17<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
18<tr valign="middle">
19<td><a accesskey="p" href="ch01.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
20<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
21<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
22<th width="100%" align="center">libg3d Reference Manual</th>
23<td><a accesskey="n" href="libg3d-context.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
24</tr>
25<tr><td colspan="5" class="shortcuts"><nobr><a href="#libg3d-types.synopsis" class="shortcut">Top</a>
26  | 
27 <a href="#libg3d-types.description" class="shortcut">Description</a></nobr></td></tr>
28</table>
29<div class="refentry" lang="en">
30<a name="libg3d-types"></a><div class="titlepage"></div>
31<div class="refnamediv"><table width="100%"><tr>
32<td valign="top">
33<h2><span class="refentrytitle"><a name="libg3d-types.top_of_page"></a>types</span></h2>
34<p>types — Basic types</p>
35</td>
36<td valign="top" align="right"></td>
37</tr></table></div>
38<div class="refsynopsisdiv">
39<a name="libg3d-types.synopsis"></a><h2>Synopsis</h2>
40<pre class="synopsis">
41
42#include &lt;g3d/types.h&gt;
43
44typedef <a class="link" href="libg3d-types.html#G3DSingle" title="G3DSingle">G3DSingle</a>;
45typedef <a class="link" href="libg3d-types.html#G3DDouble" title="G3DDouble">G3DDouble</a>;
46typedef <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a>;
47#define <a class="link" href="libg3d-types.html#G3D-FLOAT-IS-DOUBLE:CAPS" title="G3D_FLOAT_IS_DOUBLE">G3D_FLOAT_IS_DOUBLE</a>
48</pre>
49</div>
50<div class="refsect1" lang="en">
51<a name="libg3d-types.description"></a><h2>Description</h2>
52<p>
53Some basic type abstractions used in libg3d.</p>
54<p>
55
56</p>
57</div>
58<div class="refsect1" lang="en">
59<a name="libg3d-types.details"></a><h2>Details</h2>
60<div class="refsect2" lang="en">
61<a name="G3DSingle"></a><h3>G3DSingle</h3>
62<pre class="programlisting">typedef gfloat G3DSingle;
63</pre>
64<p>
65Single-precision floating point number.</p>
66<p>
67
68</p>
69</div>
70<hr>
71<div class="refsect2" lang="en">
72<a name="G3DDouble"></a><h3>G3DDouble</h3>
73<pre class="programlisting">typedef gdouble G3DDouble;
74</pre>
75<p>
76Double-precision floating point number.</p>
77<p>
78
79</p>
80</div>
81<hr>
82<div class="refsect2" lang="en">
83<a name="G3DFloat"></a><h3>G3DFloat</h3>
84<p>
85Default floating point type. If used consistently in the library (not the
86case at the moment) this type can be switched between single and double
87precision at compile-time.</p>
88<p>
89
90</p>
91</div>
92<hr>
93<div class="refsect2" lang="en">
94<a name="G3D-FLOAT-IS-DOUBLE:CAPS"></a><h3>G3D_FLOAT_IS_DOUBLE</h3>
95<pre class="programlisting">#define G3D_FLOAT_IS_DOUBLE</pre>
96<p>
97A flag indicating type of <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat"><span class="type">G3DFloat</span></a>. It is TRUE if <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat"><span class="type">G3DFloat</span></a> is double and
98FALSE if <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat"><span class="type">G3DFloat</span></a> is single precision.</p>
99<p>
100
101</p>
102</div>
103</div>
104</div>
105<div class="footer">
106<hr>
107 Generated by GTK-Doc V1.10</div>
108</body>
109</html>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-vector.html b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-vector.html
new file mode 100644
index 0000000..7c2ed8f
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d-vector.html
@@ -0,0 +1,266 @@
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>vector</title>
6<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7<link rel="start" href="index.html" title="libg3d Reference Manual">
8<link rel="up" href="ch02.html" title="Plugin interface">
9<link rel="prev" href="libg3d-matrix.html" title="matrix">
10<link rel="next" href="libg3d-quat.html" title="quat">
11<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
12<link rel="stylesheet" href="style.css" type="text/css">
13<link rel="chapter" href="ch01.html" title="Application interface">
14<link rel="chapter" href="ch02.html" title="Plugin interface">
15</head>
16<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
17<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
18<tr valign="middle">
19<td><a accesskey="p" href="libg3d-matrix.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
20<td><a accesskey="u" href="ch02.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
21<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
22<th width="100%" align="center">libg3d Reference Manual</th>
23<td><a accesskey="n" href="libg3d-quat.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
24</tr>
25<tr><td colspan="5" class="shortcuts"><nobr><a href="#libg3d-vector.synopsis" class="shortcut">Top</a>
26  | 
27 <a href="#libg3d-vector.description" class="shortcut">Description</a></nobr></td></tr>
28</table>
29<div class="refentry" lang="en">
30<a name="libg3d-vector"></a><div class="titlepage"></div>
31<div class="refnamediv"><table width="100%"><tr>
32<td valign="top">
33<h2><span class="refentrytitle"><a name="libg3d-vector.top_of_page"></a>vector</span></h2>
34<p>vector — Vector manipulation and calculation</p>
35</td>
36<td valign="top" align="right"></td>
37</tr></table></div>
38<div class="refsynopsisdiv">
39<a name="libg3d-vector.synopsis"></a><h2>Synopsis</h2>
40<pre class="synopsis">
41
42#include &lt;g3d/vector.h&gt;
43
44typedef <a class="link" href="libg3d-vector.html#G3DVector" title="G3DVector">G3DVector</a>;
45<a
46href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
47>gboolean</a> <a class="link" href="libg3d-vector.html#g3d-vector-normal" title="g3d_vector_normal ()">g3d_vector_normal</a> (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> ax,
48 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> ay,
49 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> az,
50 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> bx,
51 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> by,
52 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> bz,
53 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *nx,
54 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *ny,
55 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *nz);
56<a
57href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
58>gboolean</a> <a class="link" href="libg3d-vector.html#g3d-vector-unify" title="g3d_vector_unify ()">g3d_vector_unify</a> (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *nx,
59 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *ny,
60 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *nz);
61<a
62href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
63>gboolean</a> <a class="link" href="libg3d-vector.html#g3d-vector-transform" title="g3d_vector_transform ()">g3d_vector_transform</a> (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *x,
64 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *y,
65 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *z,
66 <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix);
67</pre>
68</div>
69<div class="refsect1" lang="en">
70<a name="libg3d-vector.description"></a><h2>Description</h2>
71<p>
72A vector is a one-dimensional array of floating point data.
73</p>
74<p>
75Declare it as statically as:
76</p>
77<p>
78G3DVector vector[3];
79</p>
80<p>
81or allocate it dynamically with:
82</p>
83<p>
84G3DVector *vector = g3d_vector_new(3, 1);</p>
85<p>
86
87</p>
88</div>
89<div class="refsect1" lang="en">
90<a name="libg3d-vector.details"></a><h2>Details</h2>
91<div class="refsect2" lang="en">
92<a name="G3DVector"></a><h3>G3DVector</h3>
93<pre class="programlisting">typedef G3DFloat G3DVector;
94</pre>
95<p>
96Vector element type.</p>
97<p>
98
99</p>
100</div>
101<hr>
102<div class="refsect2" lang="en">
103<a name="g3d-vector-normal"></a><h3>g3d_vector_normal ()</h3>
104<pre class="programlisting"><a
105href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
106>gboolean</a> g3d_vector_normal (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> ax,
107 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> ay,
108 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> az,
109 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> bx,
110 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> by,
111 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> bz,
112 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *nx,
113 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *ny,
114 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *nz);</pre>
115<p>
116calculate the normal from a plane defined by two vectors</p>
117<p>
118
119</p>
120<div class="variablelist"><table border="0">
121<col align="left" valign="top">
122<tbody>
123<tr>
124<td><p><span class="term"><em class="parameter"><code>ax</code></em> :</span></p></td>
125<td> x component first vector
126</td>
127</tr>
128<tr>
129<td><p><span class="term"><em class="parameter"><code>ay</code></em> :</span></p></td>
130<td> y component first vector
131</td>
132</tr>
133<tr>
134<td><p><span class="term"><em class="parameter"><code>az</code></em> :</span></p></td>
135<td> z component first vector
136</td>
137</tr>
138<tr>
139<td><p><span class="term"><em class="parameter"><code>bx</code></em> :</span></p></td>
140<td> x component second vector
141</td>
142</tr>
143<tr>
144<td><p><span class="term"><em class="parameter"><code>by</code></em> :</span></p></td>
145<td> y component second vector
146</td>
147</tr>
148<tr>
149<td><p><span class="term"><em class="parameter"><code>bz</code></em> :</span></p></td>
150<td> z component second vector
151</td>
152</tr>
153<tr>
154<td><p><span class="term"><em class="parameter"><code>nx</code></em> :</span></p></td>
155<td> x component resulting normal
156</td>
157</tr>
158<tr>
159<td><p><span class="term"><em class="parameter"><code>ny</code></em> :</span></p></td>
160<td> y component resulting normal
161</td>
162</tr>
163<tr>
164<td><p><span class="term"><em class="parameter"><code>nz</code></em> :</span></p></td>
165<td> z component resulting normal
166</td>
167</tr>
168<tr>
169<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
170<td> TRUE on success, FALSE else
171</td>
172</tr>
173</tbody>
174</table></div>
175</div>
176<hr>
177<div class="refsect2" lang="en">
178<a name="g3d-vector-unify"></a><h3>g3d_vector_unify ()</h3>
179<pre class="programlisting"><a
180href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
181>gboolean</a> g3d_vector_unify (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *nx,
182 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *ny,
183 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *nz);</pre>
184<p>
185Transforms the given vector to the unit vector.</p>
186<p>
187
188</p>
189<div class="variablelist"><table border="0">
190<col align="left" valign="top">
191<tbody>
192<tr>
193<td><p><span class="term"><em class="parameter"><code>nx</code></em> :</span></p></td>
194<td> x component of vector
195</td>
196</tr>
197<tr>
198<td><p><span class="term"><em class="parameter"><code>ny</code></em> :</span></p></td>
199<td> y component of vector
200</td>
201</tr>
202<tr>
203<td><p><span class="term"><em class="parameter"><code>nz</code></em> :</span></p></td>
204<td> z component of vector
205</td>
206</tr>
207<tr>
208<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
209<td> TRUE on success, FALSE else
210</td>
211</tr>
212</tbody>
213</table></div>
214</div>
215<hr>
216<div class="refsect2" lang="en">
217<a name="g3d-vector-transform"></a><h3>g3d_vector_transform ()</h3>
218<pre class="programlisting"><a
219href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
220>gboolean</a> g3d_vector_transform (<a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *x,
221 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *y,
222 <a class="link" href="libg3d-types.html#G3DFloat" title="G3DFloat">G3DFloat</a> *z,
223 <a class="link" href="libg3d-matrix.html#G3DMatrix" title="G3DMatrix">G3DMatrix</a> *matrix);</pre>
224<p>
225Transforms the given vector corresponding to the given matrix</p>
226<p>
227
228</p>
229<div class="variablelist"><table border="0">
230<col align="left" valign="top">
231<tbody>
232<tr>
233<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
234<td> x component of vector
235</td>
236</tr>
237<tr>
238<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
239<td> y component of vector
240</td>
241</tr>
242<tr>
243<td><p><span class="term"><em class="parameter"><code>z</code></em> :</span></p></td>
244<td> z component of vector
245</td>
246</tr>
247<tr>
248<td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
249<td> transformation matrix (4x4)
250</td>
251</tr>
252<tr>
253<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
254<td> TRUE on success, FALSE else
255</td>
256</tr>
257</tbody>
258</table></div>
259</div>
260</div>
261</div>
262<div class="footer">
263<hr>
264 Generated by GTK-Doc V1.10</div>
265</body>
266</html>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d.devhelp b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d.devhelp
new file mode 100644
index 0000000..4d1df55
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d.devhelp
@@ -0,0 +1,204 @@
1<?xml version="1.0" encoding="utf-8" standalone="no"?>
2<!DOCTYPE book PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
3<book xmlns="http://www.devhelp.net/book" title="libg3d Reference Manual" link="index.html" author="" name="libg3d">
4 <chapters>
5 <sub name="Application interface" link="ch01.html">
6 <sub name="types" link="libg3d-types.html"/>
7 <sub name="context" link="libg3d-context.html"/>
8 <sub name="model" link="libg3d-model.html"/>
9 <sub name="object" link="libg3d-object.html"/>
10 <sub name="face" link="libg3d-face.html"/>
11 <sub name="material" link="libg3d-material.html"/>
12 <sub name="texture" link="libg3d-texture.html"/>
13 </sub>
14 <sub name="Plugin interface" link="ch02.html">
15 <sub name="plugins" link="libg3d-plugins.html"/>
16 <sub name="stream" link="libg3d-stream.html"/>
17 <sub name="iff" link="libg3d-iff.html"/>
18 <sub name="read" link="libg3d-read.html"/>
19 <sub name="primitive" link="libg3d-primitive.html"/>
20 <sub name="matrix" link="libg3d-matrix.html"/>
21 <sub name="vector" link="libg3d-vector.html"/>
22 <sub name="quat" link="libg3d-quat.html"/>
23 </sub>
24 </chapters>
25 <functions>
26 <function name="G3DSingle" link="libg3d-types.html#G3DSingle"/>
27 <function name="G3DDouble" link="libg3d-types.html#G3DDouble"/>
28 <function name="G3DFloat" link="libg3d-types.html#G3DFloat"/>
29 <function name="G3D_FLOAT_IS_DOUBLE" link="libg3d-types.html#G3D-FLOAT-IS-DOUBLE:CAPS"/>
30 <function name="G3DContext" link="libg3d-context.html#G3DContext"/>
31 <function name="g3d_context_new ()" link="libg3d-context.html#g3d-context-new"/>
32 <function name="g3d_context_free ()" link="libg3d-context.html#g3d-context-free"/>
33 <function name="G3DSetBgColorFunc ()" link="libg3d-context.html#G3DSetBgColorFunc"/>
34 <function name="G3DUpdateInterfaceFunc ()" link="libg3d-context.html#G3DUpdateInterfaceFunc"/>
35 <function name="G3DUpdateProgressBarFunc ()" link="libg3d-context.html#G3DUpdateProgressBarFunc"/>
36 <function name="g3d_context_update_interface ()" link="libg3d-context.html#g3d-context-update-interface"/>
37 <function name="g3d_context_set_update_interface_func ()" link="libg3d-context.html#g3d-context-set-update-interface-func"/>
38 <function name="g3d_context_update_progress_bar ()" link="libg3d-context.html#g3d-context-update-progress-bar"/>
39 <function name="g3d_context_set_update_progress_bar_func ()" link="libg3d-context.html#g3d-context-set-update-progress-bar-func"/>
40 <function name="g3d_context_set_bgcolor ()" link="libg3d-context.html#g3d-context-set-bgcolor"/>
41 <function name="g3d_context_set_set_bgcolor_func ()" link="libg3d-context.html#g3d-context-set-set-bgcolor-func"/>
42 <function name="G3D_MODEL_CENTER" link="libg3d-model.html#G3D-MODEL-CENTER:CAPS"/>
43 <function name="G3D_MODEL_NOCHECK" link="libg3d-model.html#G3D-MODEL-NOCHECK:CAPS"/>
44 <function name="G3D_MODEL_OPTIMIZE" link="libg3d-model.html#G3D-MODEL-OPTIMIZE:CAPS"/>
45 <function name="G3D_MODEL_SCALE" link="libg3d-model.html#G3D-MODEL-SCALE:CAPS"/>
46 <function name="G3DModel" link="libg3d-model.html#G3DModel"/>
47 <function name="g3d_model_new ()" link="libg3d-model.html#g3d-model-new"/>
48 <function name="g3d_model_load ()" link="libg3d-model.html#g3d-model-load"/>
49 <function name="g3d_model_load_full ()" link="libg3d-model.html#g3d-model-load-full"/>
50 <function name="g3d_model_check ()" link="libg3d-model.html#g3d-model-check"/>
51 <function name="g3d_model_center ()" link="libg3d-model.html#g3d-model-center"/>
52 <function name="g3d_model_transform ()" link="libg3d-model.html#g3d-model-transform"/>
53 <function name="g3d_model_clear ()" link="libg3d-model.html#g3d-model-clear"/>
54 <function name="g3d_model_free ()" link="libg3d-model.html#g3d-model-free"/>
55 <function name="g3d_model_get_object_by_name ()" link="libg3d-model.html#g3d-model-get-object-by-name"/>
56 <function name="G3DObject" link="libg3d-object.html#G3DObject"/>
57 <function name="G3DTransformation" link="libg3d-object.html#G3DTransformation"/>
58 <function name="g3d_object_free ()" link="libg3d-object.html#g3d-object-free"/>
59 <function name="g3d_object_radius ()" link="libg3d-object.html#g3d-object-radius"/>
60 <function name="g3d_object_scale ()" link="libg3d-object.html#g3d-object-scale"/>
61 <function name="g3d_object_transform ()" link="libg3d-object.html#g3d-object-transform"/>
62 <function name="g3d_object_transform_normals ()" link="libg3d-object.html#g3d-object-transform-normals"/>
63 <function name="g3d_object_duplicate ()" link="libg3d-object.html#g3d-object-duplicate"/>
64 <function name="g3d_object_optimize ()" link="libg3d-object.html#g3d-object-optimize"/>
65 <function name="g3d_object_smooth ()" link="libg3d-object.html#g3d-object-smooth"/>
66 <function name="g3d_object_merge ()" link="libg3d-object.html#g3d-object-merge"/>
67 <function name="G3D_FLAG_MAT_TWOSIDE" link="libg3d-face.html#G3D-FLAG-MAT-TWOSIDE:CAPS"/>
68 <function name="G3D_FLAG_FAC_NORMALS" link="libg3d-face.html#G3D-FLAG-FAC-NORMALS:CAPS"/>
69 <function name="G3D_FLAG_FAC_TEXMAP" link="libg3d-face.html#G3D-FLAG-FAC-TEXMAP:CAPS"/>
70 <function name="G3DFace" link="libg3d-face.html#G3DFace"/>
71 <function name="g3d_face_get_normal ()" link="libg3d-face.html#g3d-face-get-normal"/>
72 <function name="g3d_face_free ()" link="libg3d-face.html#g3d-face-free"/>
73 <function name="G3DMaterial" link="libg3d-material.html#G3DMaterial"/>
74 <function name="g3d_material_new ()" link="libg3d-material.html#g3d-material-new"/>
75 <function name="g3d_material_free ()" link="libg3d-material.html#g3d-material-free"/>
76 <function name="G3D_FLAG_IMG_GREYSCALE" link="libg3d-texture.html#G3D-FLAG-IMG-GREYSCALE:CAPS"/>
77 <function name="enum G3DTexEnv" link="libg3d-texture.html#G3DTexEnv"/>
78 <function name="G3DImage" link="libg3d-texture.html#G3DImage"/>
79 <function name="g3d_texture_load_cached ()" link="libg3d-texture.html#g3d-texture-load-cached"/>
80 <function name="g3d_texture_load_from_stream ()" link="libg3d-texture.html#g3d-texture-load-from-stream"/>
81 <function name="g3d_texture_load ()" link="libg3d-texture.html#g3d-texture-load"/>
82 <function name="g3d_texture_free ()" link="libg3d-texture.html#g3d-texture-free"/>
83 <function name="g3d_texture_prepare ()" link="libg3d-texture.html#g3d-texture-prepare"/>
84 <function name="g3d_texture_flip_y ()" link="libg3d-texture.html#g3d-texture-flip-y"/>
85 <function name="g3d_texture_merge_alpha ()" link="libg3d-texture.html#g3d-texture-merge-alpha"/>
86 <function name="enum G3DPluginType" link="libg3d-plugins.html#G3DPluginType"/>
87 <function name="G3DPluginInitFunc ()" link="libg3d-plugins.html#G3DPluginInitFunc"/>
88 <function name="G3DPluginCleanupFunc ()" link="libg3d-plugins.html#G3DPluginCleanupFunc"/>
89 <function name="G3DPluginLoadModelFunc ()" link="libg3d-plugins.html#G3DPluginLoadModelFunc"/>
90 <function name="G3DPluginLoadModelFromStreamFunc ()" link="libg3d-plugins.html#G3DPluginLoadModelFromStreamFunc"/>
91 <function name="G3DPluginLoadImageFunc ()" link="libg3d-plugins.html#G3DPluginLoadImageFunc"/>
92 <function name="G3DPluginLoadImageStreamFunc ()" link="libg3d-plugins.html#G3DPluginLoadImageStreamFunc"/>
93 <function name="G3DPluginGetDescFunc ()" link="libg3d-plugins.html#G3DPluginGetDescFunc"/>
94 <function name="G3DPluginGetExtFunc ()" link="libg3d-plugins.html#G3DPluginGetExtFunc"/>
95 <function name="G3DPlugin" link="libg3d-plugins.html#G3DPlugin"/>
96 <function name="g3d_plugins_init ()" link="libg3d-plugins.html#g3d-plugins-init"/>
97 <function name="g3d_plugins_cleanup ()" link="libg3d-plugins.html#g3d-plugins-cleanup"/>
98 <function name="g3d_plugins_load_model ()" link="libg3d-plugins.html#g3d-plugins-load-model"/>
99 <function name="g3d_plugins_load_model_from_stream ()" link="libg3d-plugins.html#g3d-plugins-load-model-from-stream"/>
100 <function name="g3d_plugins_load_image ()" link="libg3d-plugins.html#g3d-plugins-load-image"/>
101 <function name="g3d_plugins_load_image_from_stream ()" link="libg3d-plugins.html#g3d-plugins-load-image-from-stream"/>
102 <function name="g3d_plugins_get_image_extensions ()" link="libg3d-plugins.html#g3d-plugins-get-image-extensions"/>
103 <function name="G3DStream" link="libg3d-stream.html#G3DStream"/>
104 <function name="g3d_stream_open_file ()" link="libg3d-stream.html#g3d-stream-open-file"/>
105 <function name="g3d_stream_open_structured_file ()" link="libg3d-stream.html#g3d-stream-open-structured-file"/>
106 <function name="g3d_stream_open_structured_file_from_stream ()" link="libg3d-stream.html#g3d-stream-open-structured-file-from-stream"/>
107 <function name="g3d_stream_open_zip ()" link="libg3d-stream.html#g3d-stream-open-zip"/>
108 <function name="g3d_stream_open_zip_from_stream ()" link="libg3d-stream.html#g3d-stream-open-zip-from-stream"/>
109 <function name="g3d_stream_open_gzip_from_stream ()" link="libg3d-stream.html#g3d-stream-open-gzip-from-stream"/>
110 <function name="g3d_stream_from_buffer ()" link="libg3d-stream.html#g3d-stream-from-buffer"/>
111 <function name="g3d_stream_zlib_inflate_stream ()" link="libg3d-stream.html#g3d-stream-zlib-inflate-stream"/>
112 <function name="g3d_stream_new_custom ()" link="libg3d-stream.html#g3d-stream-new-custom"/>
113 <function name="g3d_stream_close ()" link="libg3d-stream.html#g3d-stream-close"/>
114 <function name="g3d_stream_skip ()" link="libg3d-stream.html#g3d-stream-skip"/>
115 <function name="g3d_stream_seek ()" link="libg3d-stream.html#g3d-stream-seek"/>
116 <function name="g3d_stream_tell ()" link="libg3d-stream.html#g3d-stream-tell"/>
117 <function name="g3d_stream_size ()" link="libg3d-stream.html#g3d-stream-size"/>
118 <function name="g3d_stream_eof ()" link="libg3d-stream.html#g3d-stream-eof"/>
119 <function name="g3d_stream_is_seekable ()" link="libg3d-stream.html#g3d-stream-is-seekable"/>
120 <function name="g3d_stream_get_uri ()" link="libg3d-stream.html#g3d-stream-get-uri"/>
121 <function name="g3d_stream_line ()" link="libg3d-stream.html#g3d-stream-line"/>
122 <function name="g3d_stream_read ()" link="libg3d-stream.html#g3d-stream-read"/>
123 <function name="g3d_stream_read_line ()" link="libg3d-stream.html#g3d-stream-read-line"/>
124 <function name="g3d_stream_read_int8 ()" link="libg3d-stream.html#g3d-stream-read-int8"/>
125 <function name="g3d_stream_read_int16_be ()" link="libg3d-stream.html#g3d-stream-read-int16-be"/>
126 <function name="g3d_stream_read_int16_le ()" link="libg3d-stream.html#g3d-stream-read-int16-le"/>
127 <function name="g3d_stream_read_int32_be ()" link="libg3d-stream.html#g3d-stream-read-int32-be"/>
128 <function name="g3d_stream_read_int32_le ()" link="libg3d-stream.html#g3d-stream-read-int32-le"/>
129 <function name="g3d_stream_read_float_be ()" link="libg3d-stream.html#g3d-stream-read-float-be"/>
130 <function name="g3d_stream_read_float_le ()" link="libg3d-stream.html#g3d-stream-read-float-le"/>
131 <function name="g3d_stream_read_double_be ()" link="libg3d-stream.html#g3d-stream-read-double-be"/>
132 <function name="g3d_stream_read_double_le ()" link="libg3d-stream.html#g3d-stream-read-double-le"/>
133 <function name="g3d_stream_read_cstr ()" link="libg3d-stream.html#g3d-stream-read-cstr"/>
134 <function name="G3DStreamCloseFunc ()" link="libg3d-stream.html#G3DStreamCloseFunc"/>
135 <function name="G3DStreamEofFunc ()" link="libg3d-stream.html#G3DStreamEofFunc"/>
136 <function name="G3DStreamReadFunc ()" link="libg3d-stream.html#G3DStreamReadFunc"/>
137 <function name="G3DStreamReadLineFunc ()" link="libg3d-stream.html#G3DStreamReadLineFunc"/>
138 <function name="G3DStreamSeekFunc ()" link="libg3d-stream.html#G3DStreamSeekFunc"/>
139 <function name="G3DStreamSizeFunc ()" link="libg3d-stream.html#G3DStreamSizeFunc"/>
140 <function name="G3DStreamTellFunc ()" link="libg3d-stream.html#G3DStreamTellFunc"/>
141 <function name="G3D_IFF_PAD1" link="libg3d-iff.html#G3D-IFF-PAD1:CAPS"/>
142 <function name="G3D_IFF_PAD2" link="libg3d-iff.html#G3D-IFF-PAD2:CAPS"/>
143 <function name="G3D_IFF_PAD4" link="libg3d-iff.html#G3D-IFF-PAD4:CAPS"/>
144 <function name="G3D_IFF_PAD8" link="libg3d-iff.html#G3D-IFF-PAD8:CAPS"/>
145 <function name="G3D_IFF_LE" link="libg3d-iff.html#G3D-IFF-LE:CAPS"/>
146 <function name="G3D_IFF_LEN16" link="libg3d-iff.html#G3D-IFF-LEN16:CAPS"/>
147 <function name="G3D_IFF_SUBCHUNK_LEN16" link="libg3d-iff.html#G3D-IFF-SUBCHUNK-LEN16:CAPS"/>
148 <function name="G3D_IFF_MKID()" link="libg3d-iff.html#G3D-IFF-MKID:CAPS"/>
149 <function name="g3d_iff_check ()" link="libg3d-iff.html#g3d-iff-check"/>
150 <function name="g3d_iff_read_chunk ()" link="libg3d-iff.html#g3d-iff-read-chunk"/>
151 <function name="g3d_iff_handle_chunk ()" link="libg3d-iff.html#g3d-iff-handle-chunk"/>
152 <function name="g3d_iff_chunk_matches ()" link="libg3d-iff.html#g3d-iff-chunk-matches"/>
153 <function name="g3d_iff_read_ctnr ()" link="libg3d-iff.html#g3d-iff-read-ctnr"/>
154 <function name="g3d_iff_id_to_text ()" link="libg3d-iff.html#g3d-iff-id-to-text"/>
155 <function name="g3d_iff_open ()" link="libg3d-iff.html#g3d-iff-open"/>
156 <function name="g3d_iff_readchunk ()" link="libg3d-iff.html#g3d-iff-readchunk"/>
157 <function name="G3DIffChunkCallback ()" link="libg3d-iff.html#G3DIffChunkCallback"/>
158 <function name="g3d_iff_chunk_callback" link="libg3d-iff.html#g3d-iff-chunk-callback"/>
159 <function name="G3DIffChunkInfo" link="libg3d-iff.html#G3DIffChunkInfo"/>
160 <function name="g3d_iff_chunk_info" link="libg3d-iff.html#g3d-iff-chunk-info"/>
161 <function name="G3DIffGlobal" link="libg3d-iff.html#G3DIffGlobal"/>
162 <function name="g3d_iff_gdata" link="libg3d-iff.html#g3d-iff-gdata"/>
163 <function name="G3DIffLocal" link="libg3d-iff.html#G3DIffLocal"/>
164 <function name="g3d_iff_ldata" link="libg3d-iff.html#g3d-iff-ldata"/>
165 <function name="g3d_read_int8 ()" link="libg3d-read.html#g3d-read-int8"/>
166 <function name="g3d_read_int16_be ()" link="libg3d-read.html#g3d-read-int16-be"/>
167 <function name="g3d_read_int16_le ()" link="libg3d-read.html#g3d-read-int16-le"/>
168 <function name="g3d_read_int32_be ()" link="libg3d-read.html#g3d-read-int32-be"/>
169 <function name="g3d_read_int32_le ()" link="libg3d-read.html#g3d-read-int32-le"/>
170 <function name="g3d_read_float_be ()" link="libg3d-read.html#g3d-read-float-be"/>
171 <function name="g3d_read_float_le ()" link="libg3d-read.html#g3d-read-float-le"/>
172 <function name="g3d_read_double_be ()" link="libg3d-read.html#g3d-read-double-be"/>
173 <function name="g3d_read_double_le ()" link="libg3d-read.html#g3d-read-double-le"/>
174 <function name="g3d_read_cstr ()" link="libg3d-read.html#g3d-read-cstr"/>
175 <function name="g3d_primitive_cube ()" link="libg3d-primitive.html#g3d-primitive-cube"/>
176 <function name="g3d_primitive_box ()" link="libg3d-primitive.html#g3d-primitive-box"/>
177 <function name="g3d_primitive_box_strip_2d ()" link="libg3d-primitive.html#g3d-primitive-box-strip-2d"/>
178 <function name="g3d_primitive_mesh ()" link="libg3d-primitive.html#g3d-primitive-mesh"/>
179 <function name="g3d_primitive_cylinder ()" link="libg3d-primitive.html#g3d-primitive-cylinder"/>
180 <function name="g3d_primitive_tube ()" link="libg3d-primitive.html#g3d-primitive-tube"/>
181 <function name="g3d_primitive_sphere ()" link="libg3d-primitive.html#g3d-primitive-sphere"/>
182 <function name="G3DMatrix" link="libg3d-matrix.html#G3DMatrix"/>
183 <function name="g3d_matrix_identity ()" link="libg3d-matrix.html#g3d-matrix-identity"/>
184 <function name="g3d_matrix_multiply ()" link="libg3d-matrix.html#g3d-matrix-multiply"/>
185 <function name="g3d_matrix_translate ()" link="libg3d-matrix.html#g3d-matrix-translate"/>
186 <function name="g3d_matrix_rotate ()" link="libg3d-matrix.html#g3d-matrix-rotate"/>
187 <function name="g3d_matrix_rotate_xyz ()" link="libg3d-matrix.html#g3d-matrix-rotate-xyz"/>
188 <function name="g3d_matrix_scale ()" link="libg3d-matrix.html#g3d-matrix-scale"/>
189 <function name="g3d_matrix_transpose ()" link="libg3d-matrix.html#g3d-matrix-transpose"/>
190 <function name="g3d_matrix_determinant ()" link="libg3d-matrix.html#g3d-matrix-determinant"/>
191 <function name="g3d_matrix_dump ()" link="libg3d-matrix.html#g3d-matrix-dump"/>
192 <function name="G3DVector" link="libg3d-vector.html#G3DVector"/>
193 <function name="g3d_vector_normal ()" link="libg3d-vector.html#g3d-vector-normal"/>
194 <function name="g3d_vector_unify ()" link="libg3d-vector.html#g3d-vector-unify"/>
195 <function name="g3d_vector_transform ()" link="libg3d-vector.html#g3d-vector-transform"/>
196 <function name="G3DQuat" link="libg3d-quat.html#G3DQuat"/>
197 <function name="g3d_quat_add ()" link="libg3d-quat.html#g3d-quat-add"/>
198 <function name="g3d_quat_normalize ()" link="libg3d-quat.html#g3d-quat-normalize"/>
199 <function name="g3d_quat_rotate ()" link="libg3d-quat.html#g3d-quat-rotate"/>
200 <function name="g3d_quat_to_matrix ()" link="libg3d-quat.html#g3d-quat-to-matrix"/>
201 <function name="g3d_quat_to_rotation_xyz ()" link="libg3d-quat.html#g3d-quat-to-rotation-xyz"/>
202 <function name="g3d_quat_trackball ()" link="libg3d-quat.html#g3d-quat-trackball"/>
203 </functions>
204</book>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d.devhelp2 b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d.devhelp2
new file mode 100644
index 0000000..07a1733
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/libg3d.devhelp2
@@ -0,0 +1,204 @@
1<?xml version="1.0" encoding="utf-8" standalone="no"?>
2<!DOCTYPE book PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
3<book xmlns="http://www.devhelp.net/book" title="libg3d Reference Manual" link="index.html" author="" name="libg3d" version="2">
4 <chapters>
5 <sub name="Application interface" link="ch01.html">
6 <sub name="types" link="libg3d-types.html"/>
7 <sub name="context" link="libg3d-context.html"/>
8 <sub name="model" link="libg3d-model.html"/>
9 <sub name="object" link="libg3d-object.html"/>
10 <sub name="face" link="libg3d-face.html"/>
11 <sub name="material" link="libg3d-material.html"/>
12 <sub name="texture" link="libg3d-texture.html"/>
13 </sub>
14 <sub name="Plugin interface" link="ch02.html">
15 <sub name="plugins" link="libg3d-plugins.html"/>
16 <sub name="stream" link="libg3d-stream.html"/>
17 <sub name="iff" link="libg3d-iff.html"/>
18 <sub name="read" link="libg3d-read.html"/>
19 <sub name="primitive" link="libg3d-primitive.html"/>
20 <sub name="matrix" link="libg3d-matrix.html"/>
21 <sub name="vector" link="libg3d-vector.html"/>
22 <sub name="quat" link="libg3d-quat.html"/>
23 </sub>
24 </chapters>
25 <functions>
26 <keyword type="typedef" name="G3DSingle" link="libg3d-types.html#G3DSingle"/>
27 <keyword type="typedef" name="G3DDouble" link="libg3d-types.html#G3DDouble"/>
28 <keyword type="typedef" name="G3DFloat" link="libg3d-types.html#G3DFloat"/>
29 <keyword type="macro" name="G3D_FLOAT_IS_DOUBLE" link="libg3d-types.html#G3D-FLOAT-IS-DOUBLE:CAPS"/>
30 <keyword type="struct" name="G3DContext" link="libg3d-context.html#G3DContext"/>
31 <keyword type="function" name="g3d_context_new ()" link="libg3d-context.html#g3d-context-new"/>
32 <keyword type="function" name="g3d_context_free ()" link="libg3d-context.html#g3d-context-free"/>
33 <keyword type="function" name="G3DSetBgColorFunc ()" link="libg3d-context.html#G3DSetBgColorFunc"/>
34 <keyword type="function" name="G3DUpdateInterfaceFunc ()" link="libg3d-context.html#G3DUpdateInterfaceFunc"/>
35 <keyword type="function" name="G3DUpdateProgressBarFunc ()" link="libg3d-context.html#G3DUpdateProgressBarFunc"/>
36 <keyword type="function" name="g3d_context_update_interface ()" link="libg3d-context.html#g3d-context-update-interface"/>
37 <keyword type="function" name="g3d_context_set_update_interface_func ()" link="libg3d-context.html#g3d-context-set-update-interface-func"/>
38 <keyword type="function" name="g3d_context_update_progress_bar ()" link="libg3d-context.html#g3d-context-update-progress-bar"/>
39 <keyword type="function" name="g3d_context_set_update_progress_bar_func ()" link="libg3d-context.html#g3d-context-set-update-progress-bar-func"/>
40 <keyword type="function" name="g3d_context_set_bgcolor ()" link="libg3d-context.html#g3d-context-set-bgcolor"/>
41 <keyword type="function" name="g3d_context_set_set_bgcolor_func ()" link="libg3d-context.html#g3d-context-set-set-bgcolor-func"/>
42 <keyword type="macro" name="G3D_MODEL_CENTER" link="libg3d-model.html#G3D-MODEL-CENTER:CAPS"/>
43 <keyword type="macro" name="G3D_MODEL_NOCHECK" link="libg3d-model.html#G3D-MODEL-NOCHECK:CAPS"/>
44 <keyword type="macro" name="G3D_MODEL_OPTIMIZE" link="libg3d-model.html#G3D-MODEL-OPTIMIZE:CAPS"/>
45 <keyword type="macro" name="G3D_MODEL_SCALE" link="libg3d-model.html#G3D-MODEL-SCALE:CAPS"/>
46 <keyword type="struct" name="G3DModel" link="libg3d-model.html#G3DModel"/>
47 <keyword type="function" name="g3d_model_new ()" link="libg3d-model.html#g3d-model-new"/>
48 <keyword type="function" name="g3d_model_load ()" link="libg3d-model.html#g3d-model-load"/>
49 <keyword type="function" name="g3d_model_load_full ()" link="libg3d-model.html#g3d-model-load-full"/>
50 <keyword type="function" name="g3d_model_check ()" link="libg3d-model.html#g3d-model-check"/>
51 <keyword type="function" name="g3d_model_center ()" link="libg3d-model.html#g3d-model-center"/>
52 <keyword type="function" name="g3d_model_transform ()" link="libg3d-model.html#g3d-model-transform"/>
53 <keyword type="function" name="g3d_model_clear ()" link="libg3d-model.html#g3d-model-clear"/>
54 <keyword type="function" name="g3d_model_free ()" link="libg3d-model.html#g3d-model-free"/>
55 <keyword type="function" name="g3d_model_get_object_by_name ()" link="libg3d-model.html#g3d-model-get-object-by-name"/>
56 <keyword type="struct" name="G3DObject" link="libg3d-object.html#G3DObject"/>
57 <keyword type="struct" name="G3DTransformation" link="libg3d-object.html#G3DTransformation"/>
58 <keyword type="function" name="g3d_object_free ()" link="libg3d-object.html#g3d-object-free"/>
59 <keyword type="function" name="g3d_object_radius ()" link="libg3d-object.html#g3d-object-radius"/>
60 <keyword type="function" name="g3d_object_scale ()" link="libg3d-object.html#g3d-object-scale"/>
61 <keyword type="function" name="g3d_object_transform ()" link="libg3d-object.html#g3d-object-transform"/>
62 <keyword type="function" name="g3d_object_transform_normals ()" link="libg3d-object.html#g3d-object-transform-normals"/>
63 <keyword type="function" name="g3d_object_duplicate ()" link="libg3d-object.html#g3d-object-duplicate"/>
64 <keyword type="function" name="g3d_object_optimize ()" link="libg3d-object.html#g3d-object-optimize"/>
65 <keyword type="function" name="g3d_object_smooth ()" link="libg3d-object.html#g3d-object-smooth"/>
66 <keyword type="function" name="g3d_object_merge ()" link="libg3d-object.html#g3d-object-merge"/>
67 <keyword type="macro" name="G3D_FLAG_MAT_TWOSIDE" link="libg3d-face.html#G3D-FLAG-MAT-TWOSIDE:CAPS"/>
68 <keyword type="macro" name="G3D_FLAG_FAC_NORMALS" link="libg3d-face.html#G3D-FLAG-FAC-NORMALS:CAPS"/>
69 <keyword type="macro" name="G3D_FLAG_FAC_TEXMAP" link="libg3d-face.html#G3D-FLAG-FAC-TEXMAP:CAPS"/>
70 <keyword type="struct" name="G3DFace" link="libg3d-face.html#G3DFace"/>
71 <keyword type="function" name="g3d_face_get_normal ()" link="libg3d-face.html#g3d-face-get-normal"/>
72 <keyword type="function" name="g3d_face_free ()" link="libg3d-face.html#g3d-face-free"/>
73 <keyword type="struct" name="G3DMaterial" link="libg3d-material.html#G3DMaterial"/>
74 <keyword type="function" name="g3d_material_new ()" link="libg3d-material.html#g3d-material-new"/>
75 <keyword type="function" name="g3d_material_free ()" link="libg3d-material.html#g3d-material-free"/>
76 <keyword type="macro" name="G3D_FLAG_IMG_GREYSCALE" link="libg3d-texture.html#G3D-FLAG-IMG-GREYSCALE:CAPS"/>
77 <keyword type="enum" name="enum G3DTexEnv" link="libg3d-texture.html#G3DTexEnv"/>
78 <keyword type="struct" name="G3DImage" link="libg3d-texture.html#G3DImage"/>
79 <keyword type="function" name="g3d_texture_load_cached ()" link="libg3d-texture.html#g3d-texture-load-cached"/>
80 <keyword type="function" name="g3d_texture_load_from_stream ()" link="libg3d-texture.html#g3d-texture-load-from-stream"/>
81 <keyword type="function" name="g3d_texture_load ()" link="libg3d-texture.html#g3d-texture-load"/>
82 <keyword type="function" name="g3d_texture_free ()" link="libg3d-texture.html#g3d-texture-free"/>
83 <keyword type="function" name="g3d_texture_prepare ()" link="libg3d-texture.html#g3d-texture-prepare"/>
84 <keyword type="function" name="g3d_texture_flip_y ()" link="libg3d-texture.html#g3d-texture-flip-y"/>
85 <keyword type="function" name="g3d_texture_merge_alpha ()" link="libg3d-texture.html#g3d-texture-merge-alpha"/>
86 <keyword type="enum" name="enum G3DPluginType" link="libg3d-plugins.html#G3DPluginType"/>
87 <keyword type="function" name="G3DPluginInitFunc ()" link="libg3d-plugins.html#G3DPluginInitFunc"/>
88 <keyword type="function" name="G3DPluginCleanupFunc ()" link="libg3d-plugins.html#G3DPluginCleanupFunc"/>
89 <keyword type="function" name="G3DPluginLoadModelFunc ()" link="libg3d-plugins.html#G3DPluginLoadModelFunc"/>
90 <keyword type="function" name="G3DPluginLoadModelFromStreamFunc ()" link="libg3d-plugins.html#G3DPluginLoadModelFromStreamFunc"/>
91 <keyword type="function" name="G3DPluginLoadImageFunc ()" link="libg3d-plugins.html#G3DPluginLoadImageFunc"/>
92 <keyword type="function" name="G3DPluginLoadImageStreamFunc ()" link="libg3d-plugins.html#G3DPluginLoadImageStreamFunc"/>
93 <keyword type="function" name="G3DPluginGetDescFunc ()" link="libg3d-plugins.html#G3DPluginGetDescFunc"/>
94 <keyword type="function" name="G3DPluginGetExtFunc ()" link="libg3d-plugins.html#G3DPluginGetExtFunc"/>
95 <keyword type="struct" name="G3DPlugin" link="libg3d-plugins.html#G3DPlugin"/>
96 <keyword type="function" name="g3d_plugins_init ()" link="libg3d-plugins.html#g3d-plugins-init"/>
97 <keyword type="function" name="g3d_plugins_cleanup ()" link="libg3d-plugins.html#g3d-plugins-cleanup"/>
98 <keyword type="function" name="g3d_plugins_load_model ()" link="libg3d-plugins.html#g3d-plugins-load-model"/>
99 <keyword type="function" name="g3d_plugins_load_model_from_stream ()" link="libg3d-plugins.html#g3d-plugins-load-model-from-stream"/>
100 <keyword type="function" name="g3d_plugins_load_image ()" link="libg3d-plugins.html#g3d-plugins-load-image"/>
101 <keyword type="function" name="g3d_plugins_load_image_from_stream ()" link="libg3d-plugins.html#g3d-plugins-load-image-from-stream"/>
102 <keyword type="function" name="g3d_plugins_get_image_extensions ()" link="libg3d-plugins.html#g3d-plugins-get-image-extensions"/>
103 <keyword type="struct" name="G3DStream" link="libg3d-stream.html#G3DStream"/>
104 <keyword type="function" name="g3d_stream_open_file ()" link="libg3d-stream.html#g3d-stream-open-file"/>
105 <keyword type="function" name="g3d_stream_open_structured_file ()" link="libg3d-stream.html#g3d-stream-open-structured-file"/>
106 <keyword type="function" name="g3d_stream_open_structured_file_from_stream ()" link="libg3d-stream.html#g3d-stream-open-structured-file-from-stream"/>
107 <keyword type="function" name="g3d_stream_open_zip ()" link="libg3d-stream.html#g3d-stream-open-zip"/>
108 <keyword type="function" name="g3d_stream_open_zip_from_stream ()" link="libg3d-stream.html#g3d-stream-open-zip-from-stream"/>
109 <keyword type="function" name="g3d_stream_open_gzip_from_stream ()" link="libg3d-stream.html#g3d-stream-open-gzip-from-stream"/>
110 <keyword type="function" name="g3d_stream_from_buffer ()" link="libg3d-stream.html#g3d-stream-from-buffer"/>
111 <keyword type="function" name="g3d_stream_zlib_inflate_stream ()" link="libg3d-stream.html#g3d-stream-zlib-inflate-stream"/>
112 <keyword type="function" name="g3d_stream_new_custom ()" link="libg3d-stream.html#g3d-stream-new-custom"/>
113 <keyword type="function" name="g3d_stream_close ()" link="libg3d-stream.html#g3d-stream-close"/>
114 <keyword type="function" name="g3d_stream_skip ()" link="libg3d-stream.html#g3d-stream-skip"/>
115 <keyword type="function" name="g3d_stream_seek ()" link="libg3d-stream.html#g3d-stream-seek"/>
116 <keyword type="function" name="g3d_stream_tell ()" link="libg3d-stream.html#g3d-stream-tell"/>
117 <keyword type="function" name="g3d_stream_size ()" link="libg3d-stream.html#g3d-stream-size"/>
118 <keyword type="function" name="g3d_stream_eof ()" link="libg3d-stream.html#g3d-stream-eof"/>
119 <keyword type="function" name="g3d_stream_is_seekable ()" link="libg3d-stream.html#g3d-stream-is-seekable"/>
120 <keyword type="function" name="g3d_stream_get_uri ()" link="libg3d-stream.html#g3d-stream-get-uri"/>
121 <keyword type="function" name="g3d_stream_line ()" link="libg3d-stream.html#g3d-stream-line"/>
122 <keyword type="function" name="g3d_stream_read ()" link="libg3d-stream.html#g3d-stream-read"/>
123 <keyword type="function" name="g3d_stream_read_line ()" link="libg3d-stream.html#g3d-stream-read-line"/>
124 <keyword type="function" name="g3d_stream_read_int8 ()" link="libg3d-stream.html#g3d-stream-read-int8"/>
125 <keyword type="function" name="g3d_stream_read_int16_be ()" link="libg3d-stream.html#g3d-stream-read-int16-be"/>
126 <keyword type="function" name="g3d_stream_read_int16_le ()" link="libg3d-stream.html#g3d-stream-read-int16-le"/>
127 <keyword type="function" name="g3d_stream_read_int32_be ()" link="libg3d-stream.html#g3d-stream-read-int32-be"/>
128 <keyword type="function" name="g3d_stream_read_int32_le ()" link="libg3d-stream.html#g3d-stream-read-int32-le"/>
129 <keyword type="function" name="g3d_stream_read_float_be ()" link="libg3d-stream.html#g3d-stream-read-float-be"/>
130 <keyword type="function" name="g3d_stream_read_float_le ()" link="libg3d-stream.html#g3d-stream-read-float-le"/>
131 <keyword type="function" name="g3d_stream_read_double_be ()" link="libg3d-stream.html#g3d-stream-read-double-be"/>
132 <keyword type="function" name="g3d_stream_read_double_le ()" link="libg3d-stream.html#g3d-stream-read-double-le"/>
133 <keyword type="function" name="g3d_stream_read_cstr ()" link="libg3d-stream.html#g3d-stream-read-cstr"/>
134 <keyword type="function" name="G3DStreamCloseFunc ()" link="libg3d-stream.html#G3DStreamCloseFunc"/>
135 <keyword type="function" name="G3DStreamEofFunc ()" link="libg3d-stream.html#G3DStreamEofFunc"/>
136 <keyword type="function" name="G3DStreamReadFunc ()" link="libg3d-stream.html#G3DStreamReadFunc"/>
137 <keyword type="function" name="G3DStreamReadLineFunc ()" link="libg3d-stream.html#G3DStreamReadLineFunc"/>
138 <keyword type="function" name="G3DStreamSeekFunc ()" link="libg3d-stream.html#G3DStreamSeekFunc"/>
139 <keyword type="function" name="G3DStreamSizeFunc ()" link="libg3d-stream.html#G3DStreamSizeFunc"/>
140 <keyword type="function" name="G3DStreamTellFunc ()" link="libg3d-stream.html#G3DStreamTellFunc"/>
141 <keyword type="macro" name="G3D_IFF_PAD1" link="libg3d-iff.html#G3D-IFF-PAD1:CAPS"/>
142 <keyword type="macro" name="G3D_IFF_PAD2" link="libg3d-iff.html#G3D-IFF-PAD2:CAPS"/>
143 <keyword type="macro" name="G3D_IFF_PAD4" link="libg3d-iff.html#G3D-IFF-PAD4:CAPS"/>
144 <keyword type="macro" name="G3D_IFF_PAD8" link="libg3d-iff.html#G3D-IFF-PAD8:CAPS"/>
145 <keyword type="macro" name="G3D_IFF_LE" link="libg3d-iff.html#G3D-IFF-LE:CAPS"/>
146 <keyword type="macro" name="G3D_IFF_LEN16" link="libg3d-iff.html#G3D-IFF-LEN16:CAPS"/>
147 <keyword type="macro" name="G3D_IFF_SUBCHUNK_LEN16" link="libg3d-iff.html#G3D-IFF-SUBCHUNK-LEN16:CAPS"/>
148 <keyword type="macro" name="G3D_IFF_MKID()" link="libg3d-iff.html#G3D-IFF-MKID:CAPS"/>
149 <keyword type="function" name="g3d_iff_check ()" link="libg3d-iff.html#g3d-iff-check"/>
150 <keyword type="function" name="g3d_iff_read_chunk ()" link="libg3d-iff.html#g3d-iff-read-chunk"/>
151 <keyword type="function" name="g3d_iff_handle_chunk ()" link="libg3d-iff.html#g3d-iff-handle-chunk"/>
152 <keyword type="function" name="g3d_iff_chunk_matches ()" link="libg3d-iff.html#g3d-iff-chunk-matches"/>
153 <keyword type="function" name="g3d_iff_read_ctnr ()" link="libg3d-iff.html#g3d-iff-read-ctnr"/>
154 <keyword type="function" name="g3d_iff_id_to_text ()" link="libg3d-iff.html#g3d-iff-id-to-text"/>
155 <keyword type="function" name="g3d_iff_open ()" link="libg3d-iff.html#g3d-iff-open"/>
156 <keyword type="function" name="g3d_iff_readchunk ()" link="libg3d-iff.html#g3d-iff-readchunk"/>
157 <keyword type="function" name="G3DIffChunkCallback ()" link="libg3d-iff.html#G3DIffChunkCallback"/>
158 <keyword type="macro" name="g3d_iff_chunk_callback" link="libg3d-iff.html#g3d-iff-chunk-callback"/>
159 <keyword type="struct" name="G3DIffChunkInfo" link="libg3d-iff.html#G3DIffChunkInfo"/>
160 <keyword type="macro" name="g3d_iff_chunk_info" link="libg3d-iff.html#g3d-iff-chunk-info"/>
161 <keyword type="struct" name="G3DIffGlobal" link="libg3d-iff.html#G3DIffGlobal"/>
162 <keyword type="macro" name="g3d_iff_gdata" link="libg3d-iff.html#g3d-iff-gdata"/>
163 <keyword type="struct" name="G3DIffLocal" link="libg3d-iff.html#G3DIffLocal"/>
164 <keyword type="macro" name="g3d_iff_ldata" link="libg3d-iff.html#g3d-iff-ldata"/>
165 <keyword type="function" name="g3d_read_int8 ()" link="libg3d-read.html#g3d-read-int8"/>
166 <keyword type="function" name="g3d_read_int16_be ()" link="libg3d-read.html#g3d-read-int16-be"/>
167 <keyword type="function" name="g3d_read_int16_le ()" link="libg3d-read.html#g3d-read-int16-le"/>
168 <keyword type="function" name="g3d_read_int32_be ()" link="libg3d-read.html#g3d-read-int32-be"/>
169 <keyword type="function" name="g3d_read_int32_le ()" link="libg3d-read.html#g3d-read-int32-le"/>
170 <keyword type="function" name="g3d_read_float_be ()" link="libg3d-read.html#g3d-read-float-be"/>
171 <keyword type="function" name="g3d_read_float_le ()" link="libg3d-read.html#g3d-read-float-le"/>
172 <keyword type="function" name="g3d_read_double_be ()" link="libg3d-read.html#g3d-read-double-be"/>
173 <keyword type="function" name="g3d_read_double_le ()" link="libg3d-read.html#g3d-read-double-le"/>
174 <keyword type="function" name="g3d_read_cstr ()" link="libg3d-read.html#g3d-read-cstr"/>
175 <keyword type="function" name="g3d_primitive_cube ()" link="libg3d-primitive.html#g3d-primitive-cube"/>
176 <keyword type="function" name="g3d_primitive_box ()" link="libg3d-primitive.html#g3d-primitive-box"/>
177 <keyword type="function" name="g3d_primitive_box_strip_2d ()" link="libg3d-primitive.html#g3d-primitive-box-strip-2d"/>
178 <keyword type="function" name="g3d_primitive_mesh ()" link="libg3d-primitive.html#g3d-primitive-mesh"/>
179 <keyword type="function" name="g3d_primitive_cylinder ()" link="libg3d-primitive.html#g3d-primitive-cylinder"/>
180 <keyword type="function" name="g3d_primitive_tube ()" link="libg3d-primitive.html#g3d-primitive-tube"/>
181 <keyword type="function" name="g3d_primitive_sphere ()" link="libg3d-primitive.html#g3d-primitive-sphere"/>
182 <keyword type="typedef" name="G3DMatrix" link="libg3d-matrix.html#G3DMatrix"/>
183 <keyword type="function" name="g3d_matrix_identity ()" link="libg3d-matrix.html#g3d-matrix-identity"/>
184 <keyword type="function" name="g3d_matrix_multiply ()" link="libg3d-matrix.html#g3d-matrix-multiply"/>
185 <keyword type="function" name="g3d_matrix_translate ()" link="libg3d-matrix.html#g3d-matrix-translate"/>
186 <keyword type="function" name="g3d_matrix_rotate ()" link="libg3d-matrix.html#g3d-matrix-rotate"/>
187 <keyword type="function" name="g3d_matrix_rotate_xyz ()" link="libg3d-matrix.html#g3d-matrix-rotate-xyz"/>
188 <keyword type="function" name="g3d_matrix_scale ()" link="libg3d-matrix.html#g3d-matrix-scale"/>
189 <keyword type="function" name="g3d_matrix_transpose ()" link="libg3d-matrix.html#g3d-matrix-transpose"/>
190 <keyword type="function" name="g3d_matrix_determinant ()" link="libg3d-matrix.html#g3d-matrix-determinant"/>
191 <keyword type="function" name="g3d_matrix_dump ()" link="libg3d-matrix.html#g3d-matrix-dump"/>
192 <keyword type="typedef" name="G3DVector" link="libg3d-vector.html#G3DVector"/>
193 <keyword type="function" name="g3d_vector_normal ()" link="libg3d-vector.html#g3d-vector-normal"/>
194 <keyword type="function" name="g3d_vector_unify ()" link="libg3d-vector.html#g3d-vector-unify"/>
195 <keyword type="function" name="g3d_vector_transform ()" link="libg3d-vector.html#g3d-vector-transform"/>
196 <keyword type="typedef" name="G3DQuat" link="libg3d-quat.html#G3DQuat"/>
197 <keyword type="function" name="g3d_quat_add ()" link="libg3d-quat.html#g3d-quat-add"/>
198 <keyword type="function" name="g3d_quat_normalize ()" link="libg3d-quat.html#g3d-quat-normalize"/>
199 <keyword type="function" name="g3d_quat_rotate ()" link="libg3d-quat.html#g3d-quat-rotate"/>
200 <keyword type="function" name="g3d_quat_to_matrix ()" link="libg3d-quat.html#g3d-quat-to-matrix"/>
201 <keyword type="function" name="g3d_quat_to_rotation_xyz ()" link="libg3d-quat.html#g3d-quat-to-rotation-xyz"/>
202 <keyword type="function" name="g3d_quat_trackball ()" link="libg3d-quat.html#g3d-quat-trackball"/>
203 </functions>
204</book>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/right.png b/src/others/mimesh/libg3d-0.0.8/doc/api/html/right.png
new file mode 100644
index 0000000..92832e3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/right.png
Binary files differ
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/style.css b/src/others/mimesh/libg3d-0.0.8/doc/api/html/style.css
new file mode 100644
index 0000000..4c57e41
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/style.css
@@ -0,0 +1,160 @@
1.synopsis, .classsynopsis
2{
3 background: #eeeeee;
4 border: solid 1px #aaaaaa;
5 padding: 0.5em;
6}
7.programlisting
8{
9 background: #eeeeff;
10 border: solid 1px #aaaaff;
11 padding: 0.5em;
12}
13.variablelist
14{
15 padding: 4px;
16 margin-left: 3em;
17}
18.variablelist td:first-child
19{
20 vertical-align: top;
21}
22
23/* this is needed so that the local anchors are displayed below the naviagtion */
24@media screen {
25 sup a.footnote
26 {
27 position: relative;
28 top: 0em ! important;
29 }
30 div.refnamediv a[name], div.refsect1 a[name]
31 {
32 position: relative;
33 top: -4.5em;
34 }
35 table.navigation#top
36 {
37 background: #ffeeee;
38 border: solid 1px #ffaaaa;
39 margin-top: 0;
40 margin-bottom: 0;
41 position: fixed;
42 top: 0;
43 left: 0;
44 height: 2em;
45 z-index: 1;
46 }
47 .navigation a
48 {
49 color: #770000;
50 }
51 .navigation a:visited
52 {
53 color: #550000;
54 }
55 td.shortcuts
56 {
57 color: #770000;
58 font-size: 80%;
59 }
60 div.refentry, div.chapter, div.reference, div.part, div.book, div.index, div.glossary, div.sect1, div.appendix, div.preface
61 {
62 position: relative;
63 top: 3em;
64 z-index: 0;
65 }
66 div.refnamediv
67 {
68 margin-top: 2em;
69 }
70 body
71 {
72 padding-bottom: 20em;
73 }
74}
75@media print {
76 table.navigation {
77 visibility: collapse;
78 display: none;
79 }
80 div.titlepage table.navigation {
81 visibility: visible;
82 display: table;
83 background: #ffeeee;
84 border: solid 1px #ffaaaa;
85 margin-top: 0;
86 margin-bottom: 0;
87 top: 0;
88 left: 0;
89 height: 2em;
90 }
91}
92
93.navigation .title
94{
95 font-size: 200%;
96}
97
98
99div.gallery-float
100{
101 float: left;
102 padding: 10px;
103}
104div.gallery-float img
105{
106 border-style: none;
107}
108div.gallery-spacer
109{
110 clear: both;
111}
112a
113{
114 text-decoration: none;
115}
116a:hover
117{
118 text-decoration: underline;
119 color: #FF0000;
120}
121
122div.table table
123{
124 border-collapse: collapse;
125 border-spacing: 0px;
126 border-style: solid;
127 border-color: #777777;
128 border-width: 1px;
129}
130
131div.table table td, div.table table th
132{
133 border-style: solid;
134 border-color: #777777;
135 border-width: 1px;
136 padding: 3px;
137 vertical-align: top;
138}
139
140div.table table th
141{
142 background-color: #eeeeee;
143}
144
145hr
146{
147 color: #777777;
148 background: #777777;
149 border: 0;
150 height: 1px;
151 clear: both;
152}
153
154.footer
155{
156 padding-top: 3.5em;
157 color: #777777;
158 text-align: center;
159 font-size: 80%;
160}
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/html/up.png b/src/others/mimesh/libg3d-0.0.8/doc/api/html/up.png
new file mode 100644
index 0000000..85b3e2a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/html/up.png
Binary files differ
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/libg3d-docs.sgml b/src/others/mimesh/libg3d-0.0.8/doc/api/libg3d-docs.sgml
new file mode 100644
index 0000000..0af9198
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/libg3d-docs.sgml
@@ -0,0 +1,35 @@
1<?xml version="1.0"?>
2<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
4<book id="index" xmlns:xi="http://www.w3.org/2003/XInclude">
5 <bookinfo>
6 <title>libg3d Reference Manual</title>
7 <releaseinfo>
8 for libg3d 0.0.7
9 The latest version of this documentation can be found on-line at
10 <ulink role="online-location" url="http://automagically.de/libg3d/index.html">http://automagically.de/libg3d/</ulink>.
11 </releaseinfo>
12 </bookinfo>
13
14<chapter>
15 <title>Application interface</title>
16 <xi:include href="xml/types.xml"/>
17 <xi:include href="xml/context.xml"/>
18 <xi:include href="xml/model.xml"/>
19 <xi:include href="xml/object.xml"/>
20 <xi:include href="xml/face.xml"/>
21 <xi:include href="xml/material.xml"/>
22 <xi:include href="xml/texture.xml"/>
23</chapter>
24<chapter>
25 <title>Plugin interface</title>
26 <xi:include href="xml/plugins.xml"/>
27 <xi:include href="xml/stream.xml"/>
28 <xi:include href="xml/iff.xml"/>
29 <xi:include href="xml/read.xml"/>
30 <xi:include href="xml/primitive.xml"/>
31 <xi:include href="xml/matrix.xml"/>
32 <xi:include href="xml/vector.xml"/>
33 <xi:include href="xml/quat.xml"/>
34</chapter>
35</book>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/libg3d-overrides.txt b/src/others/mimesh/libg3d-0.0.8/doc/api/libg3d-overrides.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/libg3d-overrides.txt
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/libg3d-sections.txt b/src/others/mimesh/libg3d-0.0.8/doc/api/libg3d-sections.txt
new file mode 100644
index 0000000..a7f6fae
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/libg3d-sections.txt
@@ -0,0 +1,256 @@
1<SECTION>
2<FILE>types</FILE>
3G3DSingle
4G3DDouble
5G3DFloat
6G3D_FLOAT_IS_DOUBLE
7</SECTION>
8
9<SECTION>
10<FILE>context</FILE>
11G3DContext
12g3d_context_new
13g3d_context_free
14
15G3DSetBgColorFunc
16G3DUpdateInterfaceFunc
17G3DUpdateProgressBarFunc
18
19g3d_context_update_interface
20g3d_context_set_update_interface_func
21
22g3d_context_update_progress_bar
23g3d_context_set_update_progress_bar_func
24
25g3d_context_set_bgcolor
26g3d_context_set_set_bgcolor_func
27</SECTION>
28
29<SECTION>
30<FILE>model</FILE>
31G3D_MODEL_CENTER
32G3D_MODEL_NOCHECK
33G3D_MODEL_OPTIMIZE
34G3D_MODEL_SCALE
35G3DModel
36g3d_model_new
37g3d_model_load
38g3d_model_load_full
39g3d_model_check
40g3d_model_center
41g3d_model_transform
42g3d_model_clear
43g3d_model_free
44g3d_model_get_object_by_name
45</SECTION>
46
47<SECTION>
48<FILE>object</FILE>
49G3DObject
50G3DTransformation
51g3d_object_free
52g3d_object_radius
53g3d_object_scale
54g3d_object_transform
55g3d_object_transform_normals
56g3d_object_duplicate
57g3d_object_optimize
58g3d_object_smooth
59g3d_object_merge
60</SECTION>
61
62<SECTION>
63<FILE>face</FILE>
64G3D_FLAG_MAT_TWOSIDE
65G3D_FLAG_FAC_NORMALS
66G3D_FLAG_FAC_TEXMAP
67G3DFace
68g3d_face_new_tri
69g3d_face_get_normal
70g3d_face_free
71</SECTION>
72
73<SECTION>
74<FILE>material</FILE>
75G3DMaterial
76g3d_material_new
77g3d_material_free
78</SECTION>
79
80<SECTION>
81<FILE>texture</FILE>
82G3D_FLAG_IMG_GREYSCALE
83G3DTexEnv
84G3DImage
85
86g3d_texture_load_cached
87g3d_texture_load_from_stream
88g3d_texture_load
89g3d_texture_free
90g3d_texture_prepare
91g3d_texture_flip_y
92g3d_texture_merge_alpha
93</SECTION>
94
95<SECTION>
96<FILE>plugins</FILE>
97G3DPluginType
98G3DPluginInitFunc
99G3DPluginCleanupFunc
100G3DPluginLoadModelFunc
101G3DPluginLoadModelFromStreamFunc
102G3DPluginLoadImageFunc
103G3DPluginLoadImageStreamFunc
104G3DPluginGetDescFunc
105G3DPluginGetExtFunc
106G3DPlugin
107
108g3d_plugins_init
109g3d_plugins_cleanup
110
111g3d_plugins_load_model
112g3d_plugins_load_model_from_stream
113g3d_plugins_load_image
114g3d_plugins_load_image_from_stream
115
116g3d_plugins_get_image_extensions
117</SECTION>
118
119<SECTION>
120<FILE>stream</FILE>
121G3DStream
122
123g3d_stream_open_file
124g3d_stream_open_structured_file
125g3d_stream_open_structured_file_from_stream
126g3d_stream_open_zip
127g3d_stream_open_zip_from_stream
128g3d_stream_open_gzip_from_stream
129g3d_stream_from_buffer
130g3d_stream_zlib_inflate_stream
131g3d_stream_new_custom
132
133g3d_stream_close
134g3d_stream_skip
135g3d_stream_seek
136g3d_stream_tell
137g3d_stream_size
138g3d_stream_eof
139g3d_stream_is_seekable
140g3d_stream_get_uri
141g3d_stream_line
142
143g3d_stream_read
144g3d_stream_read_line
145g3d_stream_read_int8
146g3d_stream_read_int16_be
147g3d_stream_read_int16_le
148g3d_stream_read_int32_be
149g3d_stream_read_int32_le
150g3d_stream_read_float_be
151g3d_stream_read_float_le
152g3d_stream_read_double_be
153g3d_stream_read_double_le
154g3d_stream_read_cstr
155
156G3DStreamCloseFunc
157G3DStreamEofFunc
158G3DStreamReadFunc
159G3DStreamReadLineFunc
160G3DStreamSeekFunc
161G3DStreamSizeFunc
162G3DStreamTellFunc
163</SECTION>
164
165<SECTION>
166<FILE>iff</FILE>
167G3D_IFF_PAD1
168G3D_IFF_PAD2
169G3D_IFF_PAD4
170G3D_IFF_PAD8
171G3D_IFF_LE
172G3D_IFF_LEN16
173G3D_IFF_SUBCHUNK_LEN16
174G3D_IFF_MKID
175
176g3d_iff_check
177g3d_iff_read_chunk
178g3d_iff_handle_chunk
179g3d_iff_chunk_matches
180g3d_iff_read_ctnr
181g3d_iff_id_to_text
182
183g3d_iff_open
184g3d_iff_readchunk
185
186G3DIffChunkCallback
187g3d_iff_chunk_callback
188G3DIffChunkInfo
189g3d_iff_chunk_info
190G3DIffGlobal
191g3d_iff_gdata
192G3DIffLocal
193g3d_iff_ldata
194</SECTION>
195
196<SECTION>
197<FILE>read</FILE>
198g3d_read_int8
199g3d_read_int16_be
200g3d_read_int16_le
201g3d_read_int32_be
202g3d_read_int32_le
203g3d_read_float_be
204g3d_read_float_le
205g3d_read_double_be
206g3d_read_double_le
207g3d_read_cstr
208</SECTION>
209
210<SECTION>
211<FILE>primitive</FILE>
212g3d_primitive_cube
213g3d_primitive_box
214g3d_primitive_box_strip_2d
215g3d_primitive_mesh
216g3d_primitive_cylinder
217g3d_primitive_tube
218g3d_primitive_sphere
219</SECTION>
220
221<SECTION>
222<FILE>matrix</FILE>
223G3DMatrix
224g3d_matrix_new
225g3d_matrix_free
226g3d_matrix_identity
227g3d_matrix_multiply
228g3d_matrix_translate
229g3d_matrix_rotate
230g3d_matrix_rotate_xyz
231g3d_matrix_scale
232g3d_matrix_transpose
233g3d_matrix_determinant
234g3d_matrix_dump
235</SECTION>
236
237<SECTION>
238<FILE>vector</FILE>
239G3DVector
240g3d_vector_new
241g3d_vector_free
242g3d_vector_normal
243g3d_vector_unify
244g3d_vector_transform
245</SECTION>
246
247<SECTION>
248<FILE>quat</FILE>
249G3DQuat
250g3d_quat_add
251g3d_quat_normalize
252g3d_quat_rotate
253g3d_quat_to_matrix
254g3d_quat_to_rotation_xyz
255g3d_quat_trackball
256</SECTION>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/libg3d.types b/src/others/mimesh/libg3d-0.0.8/doc/api/libg3d.types
new file mode 100644
index 0000000..d3585f4
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/libg3d.types
@@ -0,0 +1,2 @@
1#include <g3d/g3d.h>
2#include <glib-object.h>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/context.sgml b/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/context.sgml
new file mode 100644
index 0000000..5f6a3cc
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/context.sgml
@@ -0,0 +1,137 @@
1<!-- ##### SECTION Title ##### -->
2context
3
4<!-- ##### SECTION Short_Description ##### -->
5
6
7<!-- ##### SECTION Long_Description ##### -->
8<para>
9
10</para>
11
12<!-- ##### SECTION See_Also ##### -->
13<para>
14
15</para>
16
17<!-- ##### SECTION Stability_Level ##### -->
18
19
20<!-- ##### STRUCT G3DContext ##### -->
21<para>
22
23</para>
24
25
26<!-- ##### FUNCTION g3d_context_new ##### -->
27<para>
28
29</para>
30
31@Returns:
32
33
34<!-- ##### FUNCTION g3d_context_free ##### -->
35<para>
36
37</para>
38
39@context:
40
41
42<!-- ##### USER_FUNCTION G3DSetBgColorFunc ##### -->
43<para>
44
45</para>
46
47@r:
48@g:
49@b:
50@a:
51@user_data:
52@Returns:
53
54
55<!-- ##### USER_FUNCTION G3DUpdateInterfaceFunc ##### -->
56<para>
57
58</para>
59
60@user_data:
61@Returns:
62
63
64<!-- ##### USER_FUNCTION G3DUpdateProgressBarFunc ##### -->
65<para>
66
67</para>
68
69@percentage:
70@show:
71@user_data:
72@Returns:
73
74
75<!-- ##### FUNCTION g3d_context_update_interface ##### -->
76<para>
77
78</para>
79
80@context:
81@Returns:
82
83
84<!-- ##### FUNCTION g3d_context_set_update_interface_func ##### -->
85<para>
86
87</para>
88
89@context:
90@func:
91@user_data:
92
93
94<!-- ##### FUNCTION g3d_context_update_progress_bar ##### -->
95<para>
96
97</para>
98
99@context:
100@percentage:
101@visibility:
102@Returns:
103
104
105<!-- ##### FUNCTION g3d_context_set_update_progress_bar_func ##### -->
106<para>
107
108</para>
109
110@context:
111@func:
112@user_data:
113
114
115<!-- ##### FUNCTION g3d_context_set_bgcolor ##### -->
116<para>
117
118</para>
119
120@context:
121@r:
122@g:
123@b:
124@a:
125@Returns:
126
127
128<!-- ##### FUNCTION g3d_context_set_set_bgcolor_func ##### -->
129<para>
130
131</para>
132
133@context:
134@func:
135@user_data:
136
137
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/face.sgml b/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/face.sgml
new file mode 100644
index 0000000..6d31806
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/face.sgml
@@ -0,0 +1,75 @@
1<!-- ##### SECTION Title ##### -->
2face
3
4<!-- ##### SECTION Short_Description ##### -->
5
6
7<!-- ##### SECTION Long_Description ##### -->
8<para>
9
10</para>
11
12<!-- ##### SECTION See_Also ##### -->
13<para>
14
15</para>
16
17<!-- ##### SECTION Stability_Level ##### -->
18
19
20<!-- ##### MACRO G3D_FLAG_MAT_TWOSIDE ##### -->
21<para>
22
23</para>
24
25
26
27<!-- ##### MACRO G3D_FLAG_FAC_NORMALS ##### -->
28<para>
29
30</para>
31
32
33
34<!-- ##### MACRO G3D_FLAG_FAC_TEXMAP ##### -->
35<para>
36
37</para>
38
39
40
41<!-- ##### STRUCT G3DFace ##### -->
42<para>
43
44</para>
45
46@vertex_count:
47@vertex_indices:
48@material:
49@flags:
50@normals:
51@tex_image:
52@tex_vertex_count:
53@tex_vertex_data:
54
55<!-- ##### FUNCTION g3d_face_get_normal ##### -->
56<para>
57
58</para>
59
60@face:
61@object:
62@nx:
63@ny:
64@nz:
65@Returns:
66
67
68<!-- ##### FUNCTION g3d_face_free ##### -->
69<para>
70
71</para>
72
73@face:
74
75
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/iff.sgml b/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/iff.sgml
new file mode 100644
index 0000000..38fb1cb
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/iff.sgml
@@ -0,0 +1,242 @@
1<!-- ##### SECTION Title ##### -->
2iff
3
4<!-- ##### SECTION Short_Description ##### -->
5
6
7<!-- ##### SECTION Long_Description ##### -->
8<para>
9
10</para>
11
12<!-- ##### SECTION See_Also ##### -->
13<para>
14
15</para>
16
17<!-- ##### SECTION Stability_Level ##### -->
18
19
20<!-- ##### MACRO G3D_IFF_PAD1 ##### -->
21<para>
22
23</para>
24
25
26
27<!-- ##### MACRO G3D_IFF_PAD2 ##### -->
28<para>
29
30</para>
31
32
33
34<!-- ##### MACRO G3D_IFF_PAD4 ##### -->
35<para>
36
37</para>
38
39
40
41<!-- ##### MACRO G3D_IFF_PAD8 ##### -->
42<para>
43
44</para>
45
46
47
48<!-- ##### MACRO G3D_IFF_LE ##### -->
49<para>
50
51</para>
52
53
54
55<!-- ##### MACRO G3D_IFF_LEN16 ##### -->
56<para>
57
58</para>
59
60
61
62<!-- ##### MACRO G3D_IFF_SUBCHUNK_LEN16 ##### -->
63<para>
64
65</para>
66
67
68
69<!-- ##### MACRO G3D_IFF_MKID ##### -->
70<para>
71
72</para>
73
74@a:
75@b:
76@c:
77@d:
78
79
80<!-- ##### FUNCTION g3d_iff_check ##### -->
81<para>
82
83</para>
84
85@stream:
86@id:
87@len:
88@Returns:
89
90
91<!-- ##### FUNCTION g3d_iff_read_chunk ##### -->
92<para>
93
94</para>
95
96@stream:
97@id:
98@len:
99@flags:
100@Returns:
101
102
103<!-- ##### FUNCTION g3d_iff_handle_chunk ##### -->
104<para>
105
106</para>
107
108@global:
109@plocal:
110@chunks:
111@flags:
112@Returns:
113
114
115<!-- ##### FUNCTION g3d_iff_chunk_matches ##### -->
116<para>
117
118</para>
119
120@id:
121@tid:
122@Returns:
123
124
125<!-- ##### FUNCTION g3d_iff_read_ctnr ##### -->
126<para>
127
128</para>
129
130@global:
131@local:
132@chunks:
133@flags:
134@Returns:
135
136
137<!-- ##### FUNCTION g3d_iff_id_to_text ##### -->
138<para>
139
140</para>
141
142@id:
143@Returns:
144
145
146<!-- ##### FUNCTION g3d_iff_open ##### -->
147<para>
148
149</para>
150
151@filename:
152@id:
153@len:
154@Returns:
155
156
157<!-- ##### FUNCTION g3d_iff_readchunk ##### -->
158<para>
159
160</para>
161
162@f:
163@id:
164@len:
165@flags:
166@Returns:
167
168
169<!-- ##### USER_FUNCTION G3DIffChunkCallback ##### -->
170<para>
171
172</para>
173
174@global:
175@local:
176@Returns:
177
178
179<!-- ##### MACRO g3d_iff_chunk_callback ##### -->
180<para>
181
182</para>
183
184
185
186<!-- ##### STRUCT G3DIffChunkInfo ##### -->
187<para>
188
189</para>
190
191@id:
192@description:
193@container:
194@callback:
195
196<!-- ##### MACRO g3d_iff_chunk_info ##### -->
197<para>
198
199</para>
200
201
202
203<!-- ##### STRUCT G3DIffGlobal ##### -->
204<para>
205
206</para>
207
208@context:
209@model:
210@stream:
211@flags:
212@user_data:
213@f:
214@max_fpos:
215
216<!-- ##### MACRO g3d_iff_gdata ##### -->
217<para>
218
219</para>
220
221
222
223<!-- ##### STRUCT G3DIffLocal ##### -->
224<para>
225
226</para>
227
228@id:
229@parent_id:
230@object:
231@level:
232@level_object:
233@nb:
234@finalize:
235
236<!-- ##### MACRO g3d_iff_ldata ##### -->
237<para>
238
239</para>
240
241
242
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/libg3d-unused.sgml b/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/libg3d-unused.sgml
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/libg3d-unused.sgml
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/material.sgml b/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/material.sgml
new file mode 100644
index 0000000..926d72d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/material.sgml
@@ -0,0 +1,50 @@
1<!-- ##### SECTION Title ##### -->
2material
3
4<!-- ##### SECTION Short_Description ##### -->
5
6
7<!-- ##### SECTION Long_Description ##### -->
8<para>
9
10</para>
11
12<!-- ##### SECTION See_Also ##### -->
13<para>
14
15</para>
16
17<!-- ##### SECTION Stability_Level ##### -->
18
19
20<!-- ##### STRUCT G3DMaterial ##### -->
21<para>
22
23</para>
24
25@name:
26@r:
27@g:
28@b:
29@a:
30@shininess:
31@specular:
32@flags:
33@tex_image:
34
35<!-- ##### FUNCTION g3d_material_new ##### -->
36<para>
37
38</para>
39
40@Returns:
41
42
43<!-- ##### FUNCTION g3d_material_free ##### -->
44<para>
45
46</para>
47
48@material:
49
50
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/matrix.sgml b/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/matrix.sgml
new file mode 100644
index 0000000..1ecdbed
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/matrix.sgml
@@ -0,0 +1,121 @@
1<!-- ##### SECTION Title ##### -->
2matrix
3
4<!-- ##### SECTION Short_Description ##### -->
5
6
7<!-- ##### SECTION Long_Description ##### -->
8<para>
9
10</para>
11
12<!-- ##### SECTION See_Also ##### -->
13<para>
14
15</para>
16
17<!-- ##### SECTION Stability_Level ##### -->
18
19
20<!-- ##### TYPEDEF G3DMatrix ##### -->
21<para>
22
23</para>
24
25
26<!-- ##### FUNCTION g3d_matrix_identity ##### -->
27<para>
28
29</para>
30
31@matrix:
32@Returns:
33
34
35<!-- ##### FUNCTION g3d_matrix_multiply ##### -->
36<para>
37
38</para>
39
40@m1:
41@m2:
42@rm:
43@Returns:
44
45
46<!-- ##### FUNCTION g3d_matrix_translate ##### -->
47<para>
48
49</para>
50
51@x:
52@y:
53@z:
54@rm:
55@Returns:
56
57
58<!-- ##### FUNCTION g3d_matrix_rotate ##### -->
59<para>
60
61</para>
62
63@angle:
64@ax:
65@ay:
66@az:
67@rm:
68@Returns:
69
70
71<!-- ##### FUNCTION g3d_matrix_rotate_xyz ##### -->
72<para>
73
74</para>
75
76@rx:
77@ry:
78@rz:
79@rm:
80@Returns:
81
82
83<!-- ##### FUNCTION g3d_matrix_scale ##### -->
84<para>
85
86</para>
87
88@x:
89@y:
90@z:
91@rm:
92@Returns:
93
94
95<!-- ##### FUNCTION g3d_matrix_transpose ##### -->
96<para>
97
98</para>
99
100@matrix:
101@Returns:
102
103
104<!-- ##### FUNCTION g3d_matrix_determinant ##### -->
105<para>
106
107</para>
108
109@matrix:
110@Returns:
111
112
113<!-- ##### FUNCTION g3d_matrix_dump ##### -->
114<para>
115
116</para>
117
118@matrix:
119@Returns:
120
121
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/model.sgml b/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/model.sgml
new file mode 100644
index 0000000..067ba2a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/model.sgml
@@ -0,0 +1,139 @@
1<!-- ##### SECTION Title ##### -->
2model
3
4<!-- ##### SECTION Short_Description ##### -->
5
6
7<!-- ##### SECTION Long_Description ##### -->
8<para>
9
10</para>
11
12<!-- ##### SECTION See_Also ##### -->
13<para>
14
15</para>
16
17<!-- ##### SECTION Stability_Level ##### -->
18
19
20<!-- ##### MACRO G3D_MODEL_CENTER ##### -->
21<para>
22
23</para>
24
25
26
27<!-- ##### MACRO G3D_MODEL_NOCHECK ##### -->
28<para>
29
30</para>
31
32
33
34<!-- ##### MACRO G3D_MODEL_OPTIMIZE ##### -->
35<para>
36
37</para>
38
39
40
41<!-- ##### MACRO G3D_MODEL_SCALE ##### -->
42<para>
43
44</para>
45
46
47
48<!-- ##### STRUCT G3DModel ##### -->
49<para>
50
51</para>
52
53@filename:
54@materials:
55@objects:
56
57<!-- ##### FUNCTION g3d_model_new ##### -->
58<para>
59
60</para>
61
62@Returns:
63
64
65<!-- ##### FUNCTION g3d_model_load ##### -->
66<para>
67
68</para>
69
70@context:
71@filename:
72@Returns:
73
74
75<!-- ##### FUNCTION g3d_model_load_full ##### -->
76<para>
77
78</para>
79
80@context:
81@filename:
82@flags:
83@Returns:
84
85
86<!-- ##### FUNCTION g3d_model_check ##### -->
87<para>
88
89</para>
90
91@model:
92@Returns:
93
94
95<!-- ##### FUNCTION g3d_model_center ##### -->
96<para>
97
98</para>
99
100@model:
101@Returns:
102
103
104<!-- ##### FUNCTION g3d_model_transform ##### -->
105<para>
106
107</para>
108
109@model:
110@matrix:
111@Returns:
112
113
114<!-- ##### FUNCTION g3d_model_clear ##### -->
115<para>
116
117</para>
118
119@model:
120
121
122<!-- ##### FUNCTION g3d_model_free ##### -->
123<para>
124
125</para>
126
127@model:
128
129
130<!-- ##### FUNCTION g3d_model_get_object_by_name ##### -->
131<para>
132
133</para>
134
135@model:
136@name:
137@Returns:
138
139
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/object.sgml b/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/object.sgml
new file mode 100644
index 0000000..84f920d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/object.sgml
@@ -0,0 +1,125 @@
1<!-- ##### SECTION Title ##### -->
2object
3
4<!-- ##### SECTION Short_Description ##### -->
5
6
7<!-- ##### SECTION Long_Description ##### -->
8<para>
9
10</para>
11
12<!-- ##### SECTION See_Also ##### -->
13<para>
14
15</para>
16
17<!-- ##### SECTION Stability_Level ##### -->
18
19
20<!-- ##### STRUCT G3DObject ##### -->
21<para>
22
23</para>
24
25@name:
26@materials:
27@faces:
28@objects:
29@transformation:
30@hide:
31@vertex_count:
32@vertex_data:
33
34<!-- ##### STRUCT G3DTransformation ##### -->
35<para>
36
37</para>
38
39@matrix:
40@flags:
41
42<!-- ##### FUNCTION g3d_object_free ##### -->
43<para>
44
45</para>
46
47@object:
48
49
50<!-- ##### FUNCTION g3d_object_radius ##### -->
51<para>
52
53</para>
54
55@object:
56@Returns:
57
58
59<!-- ##### FUNCTION g3d_object_scale ##### -->
60<para>
61
62</para>
63
64@object:
65@scale:
66@Returns:
67
68
69<!-- ##### FUNCTION g3d_object_transform ##### -->
70<para>
71
72</para>
73
74@object:
75@matrix:
76@Returns:
77
78
79<!-- ##### FUNCTION g3d_object_transform_normals ##### -->
80<para>
81
82</para>
83
84@object:
85@matrix:
86@Returns:
87
88
89<!-- ##### FUNCTION g3d_object_duplicate ##### -->
90<para>
91
92</para>
93
94@object:
95@Returns:
96
97
98<!-- ##### FUNCTION g3d_object_optimize ##### -->
99<para>
100
101</para>
102
103@object:
104@Returns:
105
106
107<!-- ##### FUNCTION g3d_object_smooth ##### -->
108<para>
109
110</para>
111
112@object:
113@Returns:
114
115
116<!-- ##### FUNCTION g3d_object_merge ##### -->
117<para>
118
119</para>
120
121@o1:
122@o2:
123@Returns:
124
125
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/plugins.sgml b/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/plugins.sgml
new file mode 100644
index 0000000..1dfdcc7
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/plugins.sgml
@@ -0,0 +1,187 @@
1<!-- ##### SECTION Title ##### -->
2plugins
3
4<!-- ##### SECTION Short_Description ##### -->
5
6
7<!-- ##### SECTION Long_Description ##### -->
8<para>
9
10</para>
11
12<!-- ##### SECTION See_Also ##### -->
13<para>
14
15</para>
16
17<!-- ##### SECTION Stability_Level ##### -->
18
19
20<!-- ##### ENUM G3DPluginType ##### -->
21<para>
22
23</para>
24
25@G3D_PLUGIN_UNKNOWN:
26@G3D_PLUGIN_IMPORT:
27@G3D_PLUGIN_IMAGE:
28
29<!-- ##### USER_FUNCTION G3DPluginInitFunc ##### -->
30<para>
31
32</para>
33
34@context:
35@Returns:
36
37
38<!-- ##### USER_FUNCTION G3DPluginCleanupFunc ##### -->
39<para>
40
41</para>
42
43@user_data:
44
45
46<!-- ##### USER_FUNCTION G3DPluginLoadModelFunc ##### -->
47<para>
48
49</para>
50
51@context:
52@filename:
53@model:
54@user_data:
55@Returns:
56
57
58<!-- ##### USER_FUNCTION G3DPluginLoadModelFromStreamFunc ##### -->
59<para>
60
61</para>
62
63@context:
64@stream:
65@model:
66@user_data:
67@Returns:
68
69
70<!-- ##### USER_FUNCTION G3DPluginLoadImageFunc ##### -->
71<para>
72
73</para>
74
75@context:
76@filename:
77@image:
78@user_data:
79@Returns:
80
81
82<!-- ##### USER_FUNCTION G3DPluginLoadImageStreamFunc ##### -->
83<para>
84
85</para>
86
87@context:
88@stream:
89@image:
90@user_data:
91@Returns:
92
93
94<!-- ##### USER_FUNCTION G3DPluginGetDescFunc ##### -->
95<para>
96
97</para>
98
99@context:
100@Returns:
101
102
103<!-- ##### USER_FUNCTION G3DPluginGetExtFunc ##### -->
104<para>
105
106</para>
107
108@context:
109@Returns:
110
111
112<!-- ##### STRUCT G3DPlugin ##### -->
113<para>
114
115</para>
116
117
118<!-- ##### FUNCTION g3d_plugins_init ##### -->
119<para>
120
121</para>
122
123@context:
124@Returns:
125
126
127<!-- ##### FUNCTION g3d_plugins_cleanup ##### -->
128<para>
129
130</para>
131
132@context:
133
134
135<!-- ##### FUNCTION g3d_plugins_load_model ##### -->
136<para>
137
138</para>
139
140@context:
141@filename:
142@model:
143@Returns:
144
145
146<!-- ##### FUNCTION g3d_plugins_load_model_from_stream ##### -->
147<para>
148
149</para>
150
151@context:
152@stream:
153@model:
154@Returns:
155
156
157<!-- ##### FUNCTION g3d_plugins_load_image ##### -->
158<para>
159
160</para>
161
162@context:
163@filename:
164@image:
165@Returns:
166
167
168<!-- ##### FUNCTION g3d_plugins_load_image_from_stream ##### -->
169<para>
170
171</para>
172
173@context:
174@stream:
175@image:
176@Returns:
177
178
179<!-- ##### FUNCTION g3d_plugins_get_image_extensions ##### -->
180<para>
181
182</para>
183
184@context:
185@Returns:
186
187
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/primitive.sgml b/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/primitive.sgml
new file mode 100644
index 0000000..64d6d60
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/primitive.sgml
@@ -0,0 +1,110 @@
1<!-- ##### SECTION Title ##### -->
2primitive
3
4<!-- ##### SECTION Short_Description ##### -->
5
6
7<!-- ##### SECTION Long_Description ##### -->
8<para>
9
10</para>
11
12<!-- ##### SECTION See_Also ##### -->
13<para>
14
15</para>
16
17<!-- ##### SECTION Stability_Level ##### -->
18
19
20<!-- ##### FUNCTION g3d_primitive_cube ##### -->
21<para>
22
23</para>
24
25@width:
26@height:
27@depth:
28@material:
29@Returns:
30
31
32<!-- ##### FUNCTION g3d_primitive_box ##### -->
33<para>
34
35</para>
36
37@width:
38@height:
39@depth:
40@material:
41@Returns:
42
43
44<!-- ##### FUNCTION g3d_primitive_box_strip_2d ##### -->
45<para>
46
47</para>
48
49@vcnt:
50@vdata:
51@height:
52@width:
53@material:
54@Returns:
55
56
57<!-- ##### FUNCTION g3d_primitive_mesh ##### -->
58<para>
59
60</para>
61
62@m:
63@n:
64@wrap_m:
65@wrap_n:
66@material:
67@Returns:
68
69
70<!-- ##### FUNCTION g3d_primitive_cylinder ##### -->
71<para>
72
73</para>
74
75@radius:
76@height:
77@sides:
78@top:
79@bottom:
80@material:
81@Returns:
82
83
84<!-- ##### FUNCTION g3d_primitive_tube ##### -->
85<para>
86
87</para>
88
89@r_in:
90@r_out:
91@height:
92@sides:
93@top:
94@bottom:
95@material:
96@Returns:
97
98
99<!-- ##### FUNCTION g3d_primitive_sphere ##### -->
100<para>
101
102</para>
103
104@radius:
105@vseg:
106@hseg:
107@material:
108@Returns:
109
110
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/quat.sgml b/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/quat.sgml
new file mode 100644
index 0000000..d32c7b1
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/quat.sgml
@@ -0,0 +1,92 @@
1<!-- ##### SECTION Title ##### -->
2quat
3
4<!-- ##### SECTION Short_Description ##### -->
5
6
7<!-- ##### SECTION Long_Description ##### -->
8<para>
9
10</para>
11
12<!-- ##### SECTION See_Also ##### -->
13<para>
14
15</para>
16
17<!-- ##### SECTION Stability_Level ##### -->
18
19
20<!-- ##### TYPEDEF G3DQuat ##### -->
21<para>
22
23</para>
24
25
26<!-- ##### FUNCTION g3d_quat_add ##### -->
27<para>
28
29</para>
30
31@qr:
32@q1:
33@q2:
34@Returns:
35
36
37<!-- ##### FUNCTION g3d_quat_normalize ##### -->
38<para>
39
40</para>
41
42@q:
43@Returns:
44
45
46<!-- ##### FUNCTION g3d_quat_rotate ##### -->
47<para>
48
49</para>
50
51@q:
52@axis:
53@angle:
54@Returns:
55
56
57<!-- ##### FUNCTION g3d_quat_to_matrix ##### -->
58<para>
59
60</para>
61
62@q:
63@matrix:
64@Returns:
65
66
67<!-- ##### FUNCTION g3d_quat_to_rotation_xyz ##### -->
68<para>
69
70</para>
71
72@q:
73@rx:
74@ry:
75@rz:
76@Returns:
77
78
79<!-- ##### FUNCTION g3d_quat_trackball ##### -->
80<para>
81
82</para>
83
84@q:
85@x1:
86@y1:
87@x2:
88@y2:
89@r:
90@Returns:
91
92
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/read.sgml b/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/read.sgml
new file mode 100644
index 0000000..c4a3151
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/read.sgml
@@ -0,0 +1,111 @@
1<!-- ##### SECTION Title ##### -->
2read
3
4<!-- ##### SECTION Short_Description ##### -->
5
6
7<!-- ##### SECTION Long_Description ##### -->
8<para>
9
10</para>
11
12<!-- ##### SECTION See_Also ##### -->
13<para>
14
15</para>
16
17<!-- ##### SECTION Stability_Level ##### -->
18
19
20<!-- ##### FUNCTION g3d_read_int8 ##### -->
21<para>
22
23</para>
24
25@f:
26@Returns:
27
28
29<!-- ##### FUNCTION g3d_read_int16_be ##### -->
30<para>
31
32</para>
33
34@f:
35@Returns:
36
37
38<!-- ##### FUNCTION g3d_read_int16_le ##### -->
39<para>
40
41</para>
42
43@f:
44@Returns:
45
46
47<!-- ##### FUNCTION g3d_read_int32_be ##### -->
48<para>
49
50</para>
51
52@f:
53@Returns:
54
55
56<!-- ##### FUNCTION g3d_read_int32_le ##### -->
57<para>
58
59</para>
60
61@f:
62@Returns:
63
64
65<!-- ##### FUNCTION g3d_read_float_be ##### -->
66<para>
67
68</para>
69
70@f:
71@Returns:
72
73
74<!-- ##### FUNCTION g3d_read_float_le ##### -->
75<para>
76
77</para>
78
79@f:
80@Returns:
81
82
83<!-- ##### FUNCTION g3d_read_double_be ##### -->
84<para>
85
86</para>
87
88@f:
89@Returns:
90
91
92<!-- ##### FUNCTION g3d_read_double_le ##### -->
93<para>
94
95</para>
96
97@f:
98@Returns:
99
100
101<!-- ##### FUNCTION g3d_read_cstr ##### -->
102<para>
103
104</para>
105
106@f:
107@buffer:
108@max_len:
109@Returns:
110
111
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/stream.sgml b/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/stream.sgml
new file mode 100644
index 0000000..c487c34
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/stream.sgml
@@ -0,0 +1,391 @@
1<!-- ##### SECTION Title ##### -->
2stream
3
4<!-- ##### SECTION Short_Description ##### -->
5
6
7<!-- ##### SECTION Long_Description ##### -->
8<para>
9
10</para>
11
12<!-- ##### SECTION See_Also ##### -->
13<para>
14
15</para>
16
17<!-- ##### SECTION Stability_Level ##### -->
18
19
20<!-- ##### STRUCT G3DStream ##### -->
21<para>
22
23</para>
24
25
26<!-- ##### FUNCTION g3d_stream_open_file ##### -->
27<para>
28
29</para>
30
31@filename:
32@mode:
33@Returns:
34
35
36<!-- ##### FUNCTION g3d_stream_open_structured_file ##### -->
37<para>
38
39</para>
40
41@filename:
42@subfile:
43@Returns:
44
45
46<!-- ##### FUNCTION g3d_stream_open_structured_file_from_stream ##### -->
47<para>
48
49</para>
50
51@stream:
52@subfile:
53@Returns:
54
55
56<!-- ##### FUNCTION g3d_stream_open_zip ##### -->
57<para>
58
59</para>
60
61@filename:
62@subfile:
63@Returns:
64
65
66<!-- ##### FUNCTION g3d_stream_open_zip_from_stream ##### -->
67<para>
68
69</para>
70
71@stream:
72@subfile:
73@Returns:
74
75
76<!-- ##### FUNCTION g3d_stream_open_gzip_from_stream ##### -->
77<para>
78
79</para>
80
81@stream:
82@Returns:
83
84
85<!-- ##### FUNCTION g3d_stream_from_buffer ##### -->
86<para>
87
88</para>
89
90@buffer:
91@size:
92@title:
93@free_buffer:
94@Returns:
95
96
97<!-- ##### FUNCTION g3d_stream_zlib_inflate_stream ##### -->
98<para>
99
100</para>
101
102@stream:
103@cmp_size:
104@Returns:
105
106
107<!-- ##### FUNCTION g3d_stream_new_custom ##### -->
108<para>
109
110</para>
111
112@flags:
113@uri:
114@readfunc:
115@readlinefunc:
116@seekfunc:
117@tellfunc:
118@sizefunc:
119@eoffunc:
120@closefunc:
121@data:
122@Returns:
123
124
125<!-- ##### FUNCTION g3d_stream_close ##### -->
126<para>
127
128</para>
129
130@stream:
131@Returns:
132
133
134<!-- ##### FUNCTION g3d_stream_skip ##### -->
135<para>
136
137</para>
138
139@stream:
140@offset:
141@Returns:
142
143
144<!-- ##### FUNCTION g3d_stream_seek ##### -->
145<para>
146
147</para>
148
149@stream:
150@offset:
151@whence:
152@Returns:
153
154
155<!-- ##### FUNCTION g3d_stream_tell ##### -->
156<para>
157
158</para>
159
160@stream:
161@Returns:
162
163
164<!-- ##### FUNCTION g3d_stream_size ##### -->
165<para>
166
167</para>
168
169@stream:
170@Returns:
171
172
173<!-- ##### FUNCTION g3d_stream_eof ##### -->
174<para>
175
176</para>
177
178@stream:
179@Returns:
180
181
182<!-- ##### FUNCTION g3d_stream_is_seekable ##### -->
183<para>
184
185</para>
186
187@stream:
188@Returns:
189
190
191<!-- ##### FUNCTION g3d_stream_get_uri ##### -->
192<para>
193
194</para>
195
196@stream:
197@Returns:
198
199
200<!-- ##### FUNCTION g3d_stream_line ##### -->
201<para>
202
203</para>
204
205@stream:
206@Returns:
207
208
209<!-- ##### FUNCTION g3d_stream_read ##### -->
210<para>
211
212</para>
213
214@stream:
215@ptr:
216@size:
217@Returns:
218
219
220<!-- ##### FUNCTION g3d_stream_read_line ##### -->
221<para>
222
223</para>
224
225@stream:
226@buf:
227@size:
228@Returns:
229
230
231<!-- ##### FUNCTION g3d_stream_read_int8 ##### -->
232<para>
233
234</para>
235
236@stream:
237@Returns:
238
239
240<!-- ##### FUNCTION g3d_stream_read_int16_be ##### -->
241<para>
242
243</para>
244
245@stream:
246@Returns:
247
248
249<!-- ##### FUNCTION g3d_stream_read_int16_le ##### -->
250<para>
251
252</para>
253
254@stream:
255@Returns:
256
257
258<!-- ##### FUNCTION g3d_stream_read_int32_be ##### -->
259<para>
260
261</para>
262
263@stream:
264@Returns:
265
266
267<!-- ##### FUNCTION g3d_stream_read_int32_le ##### -->
268<para>
269
270</para>
271
272@stream:
273@Returns:
274
275
276<!-- ##### FUNCTION g3d_stream_read_float_be ##### -->
277<para>
278
279</para>
280
281@stream:
282@Returns:
283
284
285<!-- ##### FUNCTION g3d_stream_read_float_le ##### -->
286<para>
287
288</para>
289
290@stream:
291@Returns:
292
293
294<!-- ##### FUNCTION g3d_stream_read_double_be ##### -->
295<para>
296
297</para>
298
299@stream:
300@Returns:
301
302
303<!-- ##### FUNCTION g3d_stream_read_double_le ##### -->
304<para>
305
306</para>
307
308@stream:
309@Returns:
310
311
312<!-- ##### FUNCTION g3d_stream_read_cstr ##### -->
313<para>
314
315</para>
316
317@stream:
318@buffer:
319@max_len:
320@Returns:
321
322
323<!-- ##### USER_FUNCTION G3DStreamCloseFunc ##### -->
324<para>
325
326</para>
327
328@data:
329@Returns:
330
331
332<!-- ##### USER_FUNCTION G3DStreamEofFunc ##### -->
333<para>
334
335</para>
336
337@data:
338@Returns:
339
340
341<!-- ##### USER_FUNCTION G3DStreamReadFunc ##### -->
342<para>
343
344</para>
345
346@ptr:
347@size:
348@data:
349@Returns:
350
351
352<!-- ##### USER_FUNCTION G3DStreamReadLineFunc ##### -->
353<para>
354
355</para>
356
357@buf:
358@size:
359@data:
360@Returns:
361
362
363<!-- ##### USER_FUNCTION G3DStreamSeekFunc ##### -->
364<para>
365
366</para>
367
368@data:
369@offset:
370@whence:
371@Returns:
372
373
374<!-- ##### USER_FUNCTION G3DStreamSizeFunc ##### -->
375<para>
376
377</para>
378
379@data:
380@Returns:
381
382
383<!-- ##### USER_FUNCTION G3DStreamTellFunc ##### -->
384<para>
385
386</para>
387
388@data:
389@Returns:
390
391
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/texture.sgml b/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/texture.sgml
new file mode 100644
index 0000000..5a2d7e7
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/texture.sgml
@@ -0,0 +1,121 @@
1<!-- ##### SECTION Title ##### -->
2texture
3
4<!-- ##### SECTION Short_Description ##### -->
5
6
7<!-- ##### SECTION Long_Description ##### -->
8<para>
9
10</para>
11
12<!-- ##### SECTION See_Also ##### -->
13<para>
14
15</para>
16
17<!-- ##### SECTION Stability_Level ##### -->
18
19
20<!-- ##### MACRO G3D_FLAG_IMG_GREYSCALE ##### -->
21<para>
22
23</para>
24
25
26
27<!-- ##### ENUM G3DTexEnv ##### -->
28<para>
29
30</para>
31
32@G3D_TEXENV_UNSPECIFIED:
33@G3D_TEXENV_BLEND:
34@G3D_TEXENV_DECAL:
35@G3D_TEXENV_MODULATE:
36@G3D_TEXENV_REPLACE:
37
38<!-- ##### STRUCT G3DImage ##### -->
39<para>
40
41</para>
42
43@name:
44@width:
45@height:
46@depth:
47@flags:
48@pixeldata:
49@tex_id:
50@tex_env:
51@tex_scale_u:
52@tex_scale_v:
53
54<!-- ##### FUNCTION g3d_texture_load_cached ##### -->
55<para>
56
57</para>
58
59@context:
60@model:
61@filename:
62@Returns:
63
64
65<!-- ##### FUNCTION g3d_texture_load_from_stream ##### -->
66<para>
67
68</para>
69
70@context:
71@model:
72@stream:
73@Returns:
74
75
76<!-- ##### FUNCTION g3d_texture_load ##### -->
77<para>
78
79</para>
80
81@context:
82@filename:
83@Returns:
84
85
86<!-- ##### FUNCTION g3d_texture_free ##### -->
87<para>
88
89</para>
90
91@texture:
92
93
94<!-- ##### FUNCTION g3d_texture_prepare ##### -->
95<para>
96
97</para>
98
99@texture:
100@Returns:
101
102
103<!-- ##### FUNCTION g3d_texture_flip_y ##### -->
104<para>
105
106</para>
107
108@texture:
109@Returns:
110
111
112<!-- ##### FUNCTION g3d_texture_merge_alpha ##### -->
113<para>
114
115</para>
116
117@image:
118@aimage:
119@Returns:
120
121
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/types.sgml b/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/types.sgml
new file mode 100644
index 0000000..85adfb6
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/types.sgml
@@ -0,0 +1,44 @@
1<!-- ##### SECTION Title ##### -->
2types
3
4<!-- ##### SECTION Short_Description ##### -->
5
6
7<!-- ##### SECTION Long_Description ##### -->
8<para>
9
10</para>
11
12<!-- ##### SECTION See_Also ##### -->
13<para>
14
15</para>
16
17<!-- ##### SECTION Stability_Level ##### -->
18
19
20<!-- ##### TYPEDEF G3DSingle ##### -->
21<para>
22
23</para>
24
25
26<!-- ##### TYPEDEF G3DDouble ##### -->
27<para>
28
29</para>
30
31
32<!-- ##### TYPEDEF G3DFloat ##### -->
33<para>
34
35</para>
36
37
38<!-- ##### MACRO G3D_FLOAT_IS_DOUBLE ##### -->
39<para>
40
41</para>
42
43
44
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/vector.sgml b/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/vector.sgml
new file mode 100644
index 0000000..f1c9f52
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/tmpl/vector.sgml
@@ -0,0 +1,65 @@
1<!-- ##### SECTION Title ##### -->
2vector
3
4<!-- ##### SECTION Short_Description ##### -->
5
6
7<!-- ##### SECTION Long_Description ##### -->
8<para>
9
10</para>
11
12<!-- ##### SECTION See_Also ##### -->
13<para>
14
15</para>
16
17<!-- ##### SECTION Stability_Level ##### -->
18
19
20<!-- ##### TYPEDEF G3DVector ##### -->
21<para>
22
23</para>
24
25
26<!-- ##### FUNCTION g3d_vector_normal ##### -->
27<para>
28
29</para>
30
31@ax:
32@ay:
33@az:
34@bx:
35@by:
36@bz:
37@nx:
38@ny:
39@nz:
40@Returns:
41
42
43<!-- ##### FUNCTION g3d_vector_unify ##### -->
44<para>
45
46</para>
47
48@nx:
49@ny:
50@nz:
51@Returns:
52
53
54<!-- ##### FUNCTION g3d_vector_transform ##### -->
55<para>
56
57</para>
58
59@x:
60@y:
61@z:
62@matrix:
63@Returns:
64
65
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/xml/context.xml b/src/others/mimesh/libg3d-0.0.8/doc/api/xml/context.xml
new file mode 100644
index 0000000..d9d6e36
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/xml/context.xml
@@ -0,0 +1,321 @@
1<?xml version="1.0"?>
2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
4<refentry id="libg3d-context">
5<refmeta>
6<refentrytitle role="top_of_page" id="libg3d-context.top_of_page">context</refentrytitle>
7<manvolnum>3</manvolnum>
8<refmiscinfo>LIBG3D Library</refmiscinfo>
9</refmeta>
10
11<refnamediv>
12<refname>context</refname>
13<refpurpose>Libg3d initialization and configuration</refpurpose>
14<!--[<xref linkend="desc" endterm="desc.title"/>]-->
15</refnamediv>
16
17<refsynopsisdiv id="libg3d-context.synopsis" role="synopsis">
18<title role="synopsis.title">Synopsis</title>
19
20<synopsis>
21
22#include &lt;g3d/g3d.h&gt;
23
24 <link linkend="G3DContext">G3DContext</link>;
25<link linkend="G3DContext">G3DContext</link>* <link linkend="g3d-context-new">g3d_context_new</link> (void);
26<link linkend="void">void</link> <link linkend="g3d-context-free">g3d_context_free</link> (<link linkend="G3DContext">G3DContext</link> *context);
27<link linkend="gboolean">gboolean</link> (<link linkend="G3DSetBgColorFunc">*G3DSetBgColorFunc</link>) (<link linkend="G3DFloat">G3DFloat</link> r,
28 <link linkend="G3DFloat">G3DFloat</link> g,
29 <link linkend="G3DFloat">G3DFloat</link> b,
30 <link linkend="G3DFloat">G3DFloat</link> a,
31 <link linkend="gpointer">gpointer</link> user_data);
32<link linkend="gboolean">gboolean</link> (<link linkend="G3DUpdateInterfaceFunc">*G3DUpdateInterfaceFunc</link>) (<link linkend="gpointer">gpointer</link> user_data);
33<link linkend="gboolean">gboolean</link> (<link linkend="G3DUpdateProgressBarFunc">*G3DUpdateProgressBarFunc</link>) (<link linkend="G3DFloat">G3DFloat</link> percentage,
34 <link linkend="gboolean">gboolean</link> show,
35 <link linkend="gpointer">gpointer</link> user_data);
36<link linkend="gboolean">gboolean</link> <link linkend="g3d-context-update-interface">g3d_context_update_interface</link> (<link linkend="G3DContext">G3DContext</link> *context);
37<link linkend="void">void</link> <link linkend="g3d-context-set-update-interface-func">g3d_context_set_update_interface_func</link>
38 (<link linkend="G3DContext">G3DContext</link> *context,
39 <link linkend="G3DUpdateInterfaceFunc">G3DUpdateInterfaceFunc</link> func,
40 <link linkend="gpointer">gpointer</link> user_data);
41<link linkend="gboolean">gboolean</link> <link linkend="g3d-context-update-progress-bar">g3d_context_update_progress_bar</link> (<link linkend="G3DContext">G3DContext</link> *context,
42 <link linkend="G3DFloat">G3DFloat</link> percentage,
43 <link linkend="gboolean">gboolean</link> visibility);
44<link linkend="void">void</link> <link linkend="g3d-context-set-update-progress-bar-func">g3d_context_set_update_progress_bar_func</link>
45 (<link linkend="G3DContext">G3DContext</link> *context,
46 <link linkend="G3DUpdateProgressBarFunc">G3DUpdateProgressBarFunc</link> func,
47 <link linkend="gpointer">gpointer</link> user_data);
48<link linkend="gboolean">gboolean</link> <link linkend="g3d-context-set-bgcolor">g3d_context_set_bgcolor</link> (<link linkend="G3DContext">G3DContext</link> *context,
49 <link linkend="G3DFloat">G3DFloat</link> r,
50 <link linkend="G3DFloat">G3DFloat</link> g,
51 <link linkend="G3DFloat">G3DFloat</link> b,
52 <link linkend="G3DFloat">G3DFloat</link> a);
53<link linkend="void">void</link> <link linkend="g3d-context-set-set-bgcolor-func">g3d_context_set_set_bgcolor_func</link> (<link linkend="G3DContext">G3DContext</link> *context,
54 <link linkend="G3DSetBgColorFunc">G3DSetBgColorFunc</link> func,
55 <link linkend="gpointer">gpointer</link> user_data);
56</synopsis>
57</refsynopsisdiv>
58
59
60
61
62
63
64
65
66
67<refsect1 id="libg3d-context.description" role="desc">
68<title role="desc.title">Description</title>
69<para>
70All state information is saved in the context. It also serves as an
71interface to the application.</para>
72<para>
73
74</para>
75</refsect1>
76
77<refsect1 id="libg3d-context.details" role="details">
78<title role="details.title">Details</title>
79<refsect2 id="G3DContext" role="struct">
80<title>G3DContext</title>
81<indexterm zone="G3DContext"><primary>G3DContext</primary></indexterm><programlisting>typedef struct {
82} G3DContext;
83</programlisting>
84<para>
85Internal stuff for libg3d.</para>
86<para>
87
88</para></refsect2>
89<refsect2 id="g3d-context-new" role="function">
90<title>g3d_context_new ()</title>
91<indexterm zone="g3d-context-new"><primary>g3d_context_new</primary></indexterm><programlisting><link linkend="G3DContext">G3DContext</link>* g3d_context_new (void);</programlisting>
92<para>
93Create a new context. This initializes the library (and also the
94plugin system so this has not to be done seperately).</para>
95<para>
96
97</para><variablelist role="params">
98<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a valid context, or NULL on failure.
99</simpara></listitem></varlistentry>
100</variablelist></refsect2>
101<refsect2 id="g3d-context-free" role="function">
102<title>g3d_context_free ()</title>
103<indexterm zone="g3d-context-free"><primary>g3d_context_free</primary></indexterm><programlisting><link linkend="void">void</link> g3d_context_free (<link linkend="G3DContext">G3DContext</link> *context);</programlisting>
104<para>
105Cleans up the context and the plugin system and frees all reserved
106memory.</para>
107<para>
108
109</para><variablelist role="params">
110<varlistentry><term><parameter>context</parameter>&nbsp;:</term>
111<listitem><simpara> the context to free
112</simpara></listitem></varlistentry>
113</variablelist></refsect2>
114<refsect2 id="G3DSetBgColorFunc" role="function">
115<title>G3DSetBgColorFunc ()</title>
116<indexterm zone="G3DSetBgColorFunc"><primary>G3DSetBgColorFunc</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> (*G3DSetBgColorFunc) (<link linkend="G3DFloat">G3DFloat</link> r,
117 <link linkend="G3DFloat">G3DFloat</link> g,
118 <link linkend="G3DFloat">G3DFloat</link> b,
119 <link linkend="G3DFloat">G3DFloat</link> a,
120 <link linkend="gpointer">gpointer</link> user_data);</programlisting>
121<para>
122Background color setting callback.</para>
123<para>
124
125</para><variablelist role="params">
126<varlistentry><term><parameter>r</parameter>&nbsp;:</term>
127<listitem><simpara> red component
128</simpara></listitem></varlistentry>
129<varlistentry><term><parameter>g</parameter>&nbsp;:</term>
130<listitem><simpara> green component
131</simpara></listitem></varlistentry>
132<varlistentry><term><parameter>b</parameter>&nbsp;:</term>
133<listitem><simpara> blue component
134</simpara></listitem></varlistentry>
135<varlistentry><term><parameter>a</parameter>&nbsp;:</term>
136<listitem><simpara> alpha component
137</simpara></listitem></varlistentry>
138<varlistentry><term><parameter>user_data</parameter>&nbsp;:</term>
139<listitem><simpara> opaque data as given to <link linkend="g3d-context-set-set-bgcolor-func"><function>g3d_context_set_set_bgcolor_func()</function></link>
140</simpara></listitem></varlistentry>
141<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else.
142</simpara></listitem></varlistentry>
143</variablelist></refsect2>
144<refsect2 id="G3DUpdateInterfaceFunc" role="function">
145<title>G3DUpdateInterfaceFunc ()</title>
146<indexterm zone="G3DUpdateInterfaceFunc"><primary>G3DUpdateInterfaceFunc</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> (*G3DUpdateInterfaceFunc) (<link linkend="gpointer">gpointer</link> user_data);</programlisting>
147<para>
148Interface updating callback.</para>
149<para>
150
151</para><variablelist role="params">
152<varlistentry><term><parameter>user_data</parameter>&nbsp;:</term>
153<listitem><simpara> opaque data as given to <link linkend="g3d-context-set-update-interface-func"><function>g3d_context_set_update_interface_func()</function></link>
154</simpara></listitem></varlistentry>
155<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else.
156</simpara></listitem></varlistentry>
157</variablelist></refsect2>
158<refsect2 id="G3DUpdateProgressBarFunc" role="function">
159<title>G3DUpdateProgressBarFunc ()</title>
160<indexterm zone="G3DUpdateProgressBarFunc"><primary>G3DUpdateProgressBarFunc</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> (*G3DUpdateProgressBarFunc) (<link linkend="G3DFloat">G3DFloat</link> percentage,
161 <link linkend="gboolean">gboolean</link> show,
162 <link linkend="gpointer">gpointer</link> user_data);</programlisting>
163<para>
164Progress updating callback.</para>
165<para>
166
167</para><variablelist role="params">
168<varlistentry><term><parameter>percentage</parameter>&nbsp;:</term>
169<listitem><simpara> progress of plugin operation
170</simpara></listitem></varlistentry>
171<varlistentry><term><parameter>show</parameter>&nbsp;:</term>
172<listitem><simpara> <link linkend="TRUE:CAPS"><type>TRUE</type></link> if the progress bar should be visible, <link linkend="FALSE:CAPS"><type>FALSE</type></link> else
173</simpara></listitem></varlistentry>
174<varlistentry><term><parameter>user_data</parameter>&nbsp;:</term>
175<listitem><simpara> opaque data as given to
176<link linkend="g3d-context-set-update-progress-bar-func"><function>g3d_context_set_update_progress_bar_func()</function></link>
177</simpara></listitem></varlistentry>
178<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else.
179</simpara></listitem></varlistentry>
180</variablelist></refsect2>
181<refsect2 id="g3d-context-update-interface" role="function">
182<title>g3d_context_update_interface ()</title>
183<indexterm zone="g3d-context-update-interface"><primary>g3d_context_update_interface</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_context_update_interface (<link linkend="G3DContext">G3DContext</link> *context);</programlisting>
184<para>
185Try to update the interface. This will call a function registered with
186<parameter>g3d_context_set_update_interface_func</parameter>.</para>
187<para>
188
189</para><variablelist role="params">
190<varlistentry><term><parameter>context</parameter>&nbsp;:</term>
191<listitem><simpara> a valid context
192</simpara></listitem></varlistentry>
193<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else
194</simpara></listitem></varlistentry>
195</variablelist></refsect2>
196<refsect2 id="g3d-context-set-update-interface-func" role="function">
197<title>g3d_context_set_update_interface_func ()</title>
198<indexterm zone="g3d-context-set-update-interface-func"><primary>g3d_context_set_update_interface_func</primary></indexterm><programlisting><link linkend="void">void</link> g3d_context_set_update_interface_func
199 (<link linkend="G3DContext">G3DContext</link> *context,
200 <link linkend="G3DUpdateInterfaceFunc">G3DUpdateInterfaceFunc</link> func,
201 <link linkend="gpointer">gpointer</link> user_data);</programlisting>
202<para>
203Registers a callback function for updating the interface.</para>
204<para>
205
206</para><variablelist role="params">
207<varlistentry><term><parameter>context</parameter>&nbsp;:</term>
208<listitem><simpara> a valid context
209</simpara></listitem></varlistentry>
210<varlistentry><term><parameter>func</parameter>&nbsp;:</term>
211<listitem><simpara> the callback function
212</simpara></listitem></varlistentry>
213<varlistentry><term><parameter>user_data</parameter>&nbsp;:</term>
214<listitem><simpara> user-defined opaque pointer
215</simpara></listitem></varlistentry>
216</variablelist></refsect2>
217<refsect2 id="g3d-context-update-progress-bar" role="function">
218<title>g3d_context_update_progress_bar ()</title>
219<indexterm zone="g3d-context-update-progress-bar"><primary>g3d_context_update_progress_bar</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_context_update_progress_bar (<link linkend="G3DContext">G3DContext</link> *context,
220 <link linkend="G3DFloat">G3DFloat</link> percentage,
221 <link linkend="gboolean">gboolean</link> visibility);</programlisting>
222<para>
223Try to update the progress bar.</para>
224<para>
225
226</para><variablelist role="params">
227<varlistentry><term><parameter>context</parameter>&nbsp;:</term>
228<listitem><simpara> a valid context
229</simpara></listitem></varlistentry>
230<varlistentry><term><parameter>percentage</parameter>&nbsp;:</term>
231<listitem><simpara> the percentage to set on the progress bar
232</simpara></listitem></varlistentry>
233<varlistentry><term><parameter>visibility</parameter>&nbsp;:</term>
234<listitem><simpara> show or hide the progress bar
235</simpara></listitem></varlistentry>
236<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else
237</simpara></listitem></varlistentry>
238</variablelist></refsect2>
239<refsect2 id="g3d-context-set-update-progress-bar-func" role="function">
240<title>g3d_context_set_update_progress_bar_func ()</title>
241<indexterm zone="g3d-context-set-update-progress-bar-func"><primary>g3d_context_set_update_progress_bar_func</primary></indexterm><programlisting><link linkend="void">void</link> g3d_context_set_update_progress_bar_func
242 (<link linkend="G3DContext">G3DContext</link> *context,
243 <link linkend="G3DUpdateProgressBarFunc">G3DUpdateProgressBarFunc</link> func,
244 <link linkend="gpointer">gpointer</link> user_data);</programlisting>
245<para>
246Registers a callback function for updating the progress bar.</para>
247<para>
248
249</para><variablelist role="params">
250<varlistentry><term><parameter>context</parameter>&nbsp;:</term>
251<listitem><simpara> a valid context
252</simpara></listitem></varlistentry>
253<varlistentry><term><parameter>func</parameter>&nbsp;:</term>
254<listitem><simpara> the callback function
255</simpara></listitem></varlistentry>
256<varlistentry><term><parameter>user_data</parameter>&nbsp;:</term>
257<listitem><simpara> user-defined opaque pointer
258</simpara></listitem></varlistentry>
259</variablelist></refsect2>
260<refsect2 id="g3d-context-set-bgcolor" role="function">
261<title>g3d_context_set_bgcolor ()</title>
262<indexterm zone="g3d-context-set-bgcolor"><primary>g3d_context_set_bgcolor</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_context_set_bgcolor (<link linkend="G3DContext">G3DContext</link> *context,
263 <link linkend="G3DFloat">G3DFloat</link> r,
264 <link linkend="G3DFloat">G3DFloat</link> g,
265 <link linkend="G3DFloat">G3DFloat</link> b,
266 <link linkend="G3DFloat">G3DFloat</link> a);</programlisting>
267<para>
268Try to set the background color. This will call a function registered
269with <link><parameter>g3d_context_set_set_bgcolor_func</parameter></link>.</para>
270<para>
271
272</para><variablelist role="params">
273<varlistentry><term><parameter>context</parameter>&nbsp;:</term>
274<listitem><simpara> a valid context
275</simpara></listitem></varlistentry>
276<varlistentry><term><parameter>r</parameter>&nbsp;:</term>
277<listitem><simpara> red component (range: 0.0 .. 1.0)
278</simpara></listitem></varlistentry>
279<varlistentry><term><parameter>g</parameter>&nbsp;:</term>
280<listitem><simpara> green component (range: 0.0 .. 1.0)
281</simpara></listitem></varlistentry>
282<varlistentry><term><parameter>b</parameter>&nbsp;:</term>
283<listitem><simpara> green component (range: 0.0 .. 1.0)
284</simpara></listitem></varlistentry>
285<varlistentry><term><parameter>a</parameter>&nbsp;:</term>
286<listitem><simpara> alpha component
287</simpara></listitem></varlistentry>
288<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else
289</simpara></listitem></varlistentry>
290</variablelist></refsect2>
291<refsect2 id="g3d-context-set-set-bgcolor-func" role="function">
292<title>g3d_context_set_set_bgcolor_func ()</title>
293<indexterm zone="g3d-context-set-set-bgcolor-func"><primary>g3d_context_set_set_bgcolor_func</primary></indexterm><programlisting><link linkend="void">void</link> g3d_context_set_set_bgcolor_func (<link linkend="G3DContext">G3DContext</link> *context,
294 <link linkend="G3DSetBgColorFunc">G3DSetBgColorFunc</link> func,
295 <link linkend="gpointer">gpointer</link> user_data);</programlisting>
296<para>
297Registers a callback function for setting the background color.</para>
298<para>
299
300</para><variablelist role="params">
301<varlistentry><term><parameter>context</parameter>&nbsp;:</term>
302<listitem><simpara> a valid context
303</simpara></listitem></varlistentry>
304<varlistentry><term><parameter>func</parameter>&nbsp;:</term>
305<listitem><simpara> the callback function
306</simpara></listitem></varlistentry>
307<varlistentry><term><parameter>user_data</parameter>&nbsp;:</term>
308<listitem><simpara> user-defined opaque pointer
309</simpara></listitem></varlistentry>
310</variablelist></refsect2>
311
312</refsect1>
313
314
315
316<refsect1 id="libg3d-context.see-also">
317<title>See Also</title>
318<link linkend="G3DContext"><type>G3DContext</type></link>
319</refsect1>
320
321</refentry>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/xml/face.xml b/src/others/mimesh/libg3d-0.0.8/doc/api/xml/face.xml
new file mode 100644
index 0000000..cb8059a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/xml/face.xml
@@ -0,0 +1,197 @@
1<?xml version="1.0"?>
2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
4<refentry id="libg3d-face">
5<refmeta>
6<refentrytitle role="top_of_page" id="libg3d-face.top_of_page">face</refentrytitle>
7<manvolnum>3</manvolnum>
8<refmiscinfo>LIBG3D Library</refmiscinfo>
9</refmeta>
10
11<refnamediv>
12<refname>face</refname>
13<refpurpose>Face manipulation</refpurpose>
14<!--[<xref linkend="desc" endterm="desc.title"/>]-->
15</refnamediv>
16
17<refsynopsisdiv id="libg3d-face.synopsis" role="synopsis">
18<title role="synopsis.title">Synopsis</title>
19
20<synopsis>
21
22#include &lt;g3d/face.h&gt;
23
24#define <link linkend="G3D-FLAG-MAT-TWOSIDE:CAPS">G3D_FLAG_MAT_TWOSIDE</link>
25#define <link linkend="G3D-FLAG-FAC-NORMALS:CAPS">G3D_FLAG_FAC_NORMALS</link>
26#define <link linkend="G3D-FLAG-FAC-TEXMAP:CAPS">G3D_FLAG_FAC_TEXMAP</link>
27 <link linkend="G3DFace">G3DFace</link>;
28<link linkend="gboolean">gboolean</link> <link linkend="g3d-face-get-normal">g3d_face_get_normal</link> (<link linkend="G3DFace">G3DFace</link> *face,
29 <link linkend="G3DObject">G3DObject</link> *object,
30 <link linkend="G3DFloat">G3DFloat</link> *nx,
31 <link linkend="G3DFloat">G3DFloat</link> *ny,
32 <link linkend="G3DFloat">G3DFloat</link> *nz);
33<link linkend="void">void</link> <link linkend="g3d-face-free">g3d_face_free</link> (<link linkend="G3DFace">G3DFace</link> *face);
34</synopsis>
35</refsynopsisdiv>
36
37
38
39
40
41
42
43
44
45<refsect1 id="libg3d-face.description" role="desc">
46<title role="desc.title">Description</title>
47<para>
48A face is plane bordered by at least 3 vertices.</para>
49<para>
50
51</para>
52</refsect1>
53
54<refsect1 id="libg3d-face.details" role="details">
55<title role="details.title">Details</title>
56<refsect2 id="G3D-FLAG-MAT-TWOSIDE:CAPS" role="macro">
57<title>G3D_FLAG_MAT_TWOSIDE</title>
58<indexterm zone="G3D-FLAG-MAT-TWOSIDE:CAPS"><primary>G3D_FLAG_MAT_TWOSIDE</primary></indexterm><programlisting>#define G3D_FLAG_MAT_TWOSIDE (1L &lt;&lt; 0)
59</programlisting>
60<para>
61Faces using this material should be rendered two-sided as the direction
62is unknown.</para>
63<para>
64
65</para></refsect2>
66<refsect2 id="G3D-FLAG-FAC-NORMALS:CAPS" role="macro">
67<title>G3D_FLAG_FAC_NORMALS</title>
68<indexterm zone="G3D-FLAG-FAC-NORMALS:CAPS"><primary>G3D_FLAG_FAC_NORMALS</primary></indexterm><programlisting>#define G3D_FLAG_FAC_NORMALS (1L &lt;&lt; 0)
69</programlisting>
70<para>
71The face has custom normals.</para>
72<para>
73
74</para></refsect2>
75<refsect2 id="G3D-FLAG-FAC-TEXMAP:CAPS" role="macro">
76<title>G3D_FLAG_FAC_TEXMAP</title>
77<indexterm zone="G3D-FLAG-FAC-TEXMAP:CAPS"><primary>G3D_FLAG_FAC_TEXMAP</primary></indexterm><programlisting>#define G3D_FLAG_FAC_TEXMAP (1L &lt;&lt; 1)
78</programlisting>
79<para>
80The face has a texture map and texture coordinates.</para>
81<para>
82
83</para></refsect2>
84<refsect2 id="G3DFace" role="struct">
85<title>G3DFace</title>
86<indexterm zone="G3DFace"><primary>G3DFace</primary></indexterm><programlisting>typedef struct {
87 guint32 vertex_count;
88 guint32 *vertex_indices;
89
90 G3DMaterial *material;
91
92 guint32 flags;
93
94 G3DVector *normals;
95
96 G3DImage *tex_image;
97 guint32 tex_vertex_count;
98 G3DVector *tex_vertex_data;
99} G3DFace;
100</programlisting>
101<para>
102An object representing a surface.</para>
103<para>
104
105</para><variablelist role="struct">
106<varlistentry>
107<term><link linkend="guint32">guint32</link>&nbsp;<structfield>vertex_count</structfield>;</term>
108<listitem><simpara> number of vertices
109</simpara></listitem>
110</varlistentry>
111<varlistentry>
112<term><link linkend="guint32">guint32</link>&nbsp;*<structfield>vertex_indices</structfield>;</term>
113<listitem><simpara> indices of vertices in <link linkend="G3DObject"><type>G3DObject</type></link>
114</simpara></listitem>
115</varlistentry>
116<varlistentry>
117<term><link linkend="G3DMaterial">G3DMaterial</link>&nbsp;*<structfield>material</structfield>;</term>
118<listitem><simpara> material to use for surface
119</simpara></listitem>
120</varlistentry>
121<varlistentry>
122<term><link linkend="guint32">guint32</link>&nbsp;<structfield>flags</structfield>;</term>
123<listitem><simpara> flags
124</simpara></listitem>
125</varlistentry>
126<varlistentry>
127<term><link linkend="G3DVector">G3DVector</link>&nbsp;*<structfield>normals</structfield>;</term>
128<listitem><simpara> optional normal array (one vector - 3 <link linkend="G3DVector"><type>G3DVector</type></link> values - for each
129 vertex)
130</simpara></listitem>
131</varlistentry>
132<varlistentry>
133<term><link linkend="G3DImage">G3DImage</link>&nbsp;*<structfield>tex_image</structfield>;</term>
134<listitem><simpara> optional texture image
135</simpara></listitem>
136</varlistentry>
137<varlistentry>
138<term><link linkend="guint32">guint32</link>&nbsp;<structfield>tex_vertex_count</structfield>;</term>
139<listitem><simpara> number of texture vertices, should be 0 or match
140 vertex_count
141</simpara></listitem>
142</varlistentry>
143<varlistentry>
144<term><link linkend="G3DVector">G3DVector</link>&nbsp;*<structfield>tex_vertex_data</structfield>;</term>
145<listitem><simpara> array of texture vertices
146</simpara></listitem>
147</varlistentry>
148</variablelist></refsect2>
149<refsect2 id="g3d-face-get-normal" role="function">
150<title>g3d_face_get_normal ()</title>
151<indexterm zone="g3d-face-get-normal"><primary>g3d_face_get_normal</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_face_get_normal (<link linkend="G3DFace">G3DFace</link> *face,
152 <link linkend="G3DObject">G3DObject</link> *object,
153 <link linkend="G3DFloat">G3DFloat</link> *nx,
154 <link linkend="G3DFloat">G3DFloat</link> *ny,
155 <link linkend="G3DFloat">G3DFloat</link> *nz);</programlisting>
156<para>
157calculates the normal of a face.</para>
158<para>
159
160</para><variablelist role="params">
161<varlistentry><term><parameter>face</parameter>&nbsp;:</term>
162<listitem><simpara> face to calculate normal of
163</simpara></listitem></varlistentry>
164<varlistentry><term><parameter>object</parameter>&nbsp;:</term>
165<listitem><simpara> object containing vertices of face
166</simpara></listitem></varlistentry>
167<varlistentry><term><parameter>nx</parameter>&nbsp;:</term>
168<listitem><simpara> x component of resulting normal
169</simpara></listitem></varlistentry>
170<varlistentry><term><parameter>ny</parameter>&nbsp;:</term>
171<listitem><simpara> y component of resulting normal
172</simpara></listitem></varlistentry>
173<varlistentry><term><parameter>nz</parameter>&nbsp;:</term>
174<listitem><simpara> z component of resulting normal
175</simpara></listitem></varlistentry>
176<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else
177</simpara></listitem></varlistentry>
178</variablelist></refsect2>
179<refsect2 id="g3d-face-free" role="function">
180<title>g3d_face_free ()</title>
181<indexterm zone="g3d-face-free"><primary>g3d_face_free</primary></indexterm><programlisting><link linkend="void">void</link> g3d_face_free (<link linkend="G3DFace">G3DFace</link> *face);</programlisting>
182<para>
183Frees all memory allocated for this face.</para>
184<para>
185
186</para><variablelist role="params">
187<varlistentry><term><parameter>face</parameter>&nbsp;:</term>
188<listitem><simpara> the face to free
189</simpara></listitem></varlistentry>
190</variablelist></refsect2>
191
192</refsect1>
193
194
195
196
197</refentry>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/xml/iff.xml b/src/others/mimesh/libg3d-0.0.8/doc/api/xml/iff.xml
new file mode 100644
index 0000000..73b9ca6
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/xml/iff.xml
@@ -0,0 +1,558 @@
1<?xml version="1.0"?>
2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
4<refentry id="libg3d-iff">
5<refmeta>
6<refentrytitle role="top_of_page" id="libg3d-iff.top_of_page">iff</refentrytitle>
7<manvolnum>3</manvolnum>
8<refmiscinfo>LIBG3D Library</refmiscinfo>
9</refmeta>
10
11<refnamediv>
12<refname>iff</refname>
13<refpurpose>IFF file helper functions</refpurpose>
14<!--[<xref linkend="desc" endterm="desc.title"/>]-->
15</refnamediv>
16
17<refsynopsisdiv id="libg3d-iff.synopsis" role="synopsis">
18<title role="synopsis.title">Synopsis</title>
19
20<synopsis>
21
22#include &lt;g3d/iff.h&gt;
23
24#define <link linkend="G3D-IFF-PAD1:CAPS">G3D_IFF_PAD1</link>
25#define <link linkend="G3D-IFF-PAD2:CAPS">G3D_IFF_PAD2</link>
26#define <link linkend="G3D-IFF-PAD4:CAPS">G3D_IFF_PAD4</link>
27#define <link linkend="G3D-IFF-PAD8:CAPS">G3D_IFF_PAD8</link>
28#define <link linkend="G3D-IFF-LE:CAPS">G3D_IFF_LE</link>
29#define <link linkend="G3D-IFF-LEN16:CAPS">G3D_IFF_LEN16</link>
30#define <link linkend="G3D-IFF-SUBCHUNK-LEN16:CAPS">G3D_IFF_SUBCHUNK_LEN16</link>
31#define <link linkend="G3D-IFF-MKID:CAPS">G3D_IFF_MKID</link> (a,b,c,d)
32<link linkend="gboolean">gboolean</link> <link linkend="g3d-iff-check">g3d_iff_check</link> (<link linkend="G3DStream">G3DStream</link> *stream,
33 <link linkend="guint32">guint32</link> *id,
34 <link linkend="gsize">gsize</link> *len);
35<link linkend="gsize">gsize</link> <link linkend="g3d-iff-read-chunk">g3d_iff_read_chunk</link> (<link linkend="G3DStream">G3DStream</link> *stream,
36 <link linkend="guint32">guint32</link> *id,
37 <link linkend="gsize">gsize</link> *len,
38 <link linkend="guint32">guint32</link> flags);
39<link linkend="gpointer">gpointer</link> <link linkend="g3d-iff-handle-chunk">g3d_iff_handle_chunk</link> (<link linkend="G3DIffGlobal">G3DIffGlobal</link> *global,
40 <link linkend="G3DIffLocal">G3DIffLocal</link> *plocal,
41 <link linkend="G3DIffChunkInfo">G3DIffChunkInfo</link> *chunks,
42 <link linkend="guint32">guint32</link> flags);
43<link linkend="gboolean">gboolean</link> <link linkend="g3d-iff-chunk-matches">g3d_iff_chunk_matches</link> (<link linkend="guint32">guint32</link> id,
44 <link linkend="gchar">gchar</link> *tid);
45<link linkend="gboolean">gboolean</link> <link linkend="g3d-iff-read-ctnr">g3d_iff_read_ctnr</link> (<link linkend="G3DIffGlobal">G3DIffGlobal</link> *global,
46 <link linkend="G3DIffLocal">G3DIffLocal</link> *local,
47 <link linkend="G3DIffChunkInfo">G3DIffChunkInfo</link> *chunks,
48 <link linkend="guint32">guint32</link> flags);
49<link linkend="gchar">gchar</link>* <link linkend="g3d-iff-id-to-text">g3d_iff_id_to_text</link> (<link linkend="guint32">guint32</link> id);
50<link linkend="FILE:CAPS">FILE</link>* <link linkend="g3d-iff-open">g3d_iff_open</link> (const <link linkend="gchar">gchar</link> *filename,
51 <link linkend="guint32">guint32</link> *id,
52 <link linkend="guint32">guint32</link> *len);
53<link linkend="int">int</link> <link linkend="g3d-iff-readchunk">g3d_iff_readchunk</link> (<link linkend="FILE:CAPS">FILE</link> *f,
54 <link linkend="guint32">guint32</link> *id,
55 <link linkend="guint32">guint32</link> *len,
56 <link linkend="guint32">guint32</link> flags);
57<link linkend="gboolean">gboolean</link> (<link linkend="G3DIffChunkCallback">*G3DIffChunkCallback</link>) (<link linkend="G3DIffGlobal">G3DIffGlobal</link> *global,
58 <link linkend="G3DIffLocal">G3DIffLocal</link> *local);
59#define <link linkend="g3d-iff-chunk-callback">g3d_iff_chunk_callback</link>
60 <link linkend="G3DIffChunkInfo">G3DIffChunkInfo</link>;
61#define <link linkend="g3d-iff-chunk-info">g3d_iff_chunk_info</link>
62 <link linkend="G3DIffGlobal">G3DIffGlobal</link>;
63#define <link linkend="g3d-iff-gdata">g3d_iff_gdata</link>
64 <link linkend="G3DIffLocal">G3DIffLocal</link>;
65#define <link linkend="g3d-iff-ldata">g3d_iff_ldata</link>
66</synopsis>
67</refsynopsisdiv>
68
69
70
71
72
73
74
75
76
77<refsect1 id="libg3d-iff.description" role="desc">
78<title role="desc.title">Description</title>
79<para>
80These are helper functions to read data from the Interchange File Format
81(IFF).</para>
82<para>
83
84</para>
85</refsect1>
86
87<refsect1 id="libg3d-iff.details" role="details">
88<title role="details.title">Details</title>
89<refsect2 id="G3D-IFF-PAD1:CAPS" role="macro">
90<title>G3D_IFF_PAD1</title>
91<indexterm zone="G3D-IFF-PAD1:CAPS"><primary>G3D_IFF_PAD1</primary></indexterm><programlisting>#define G3D_IFF_PAD1 0x01
92</programlisting>
93<para>
94No padding is done after chunks.</para>
95<para>
96
97</para></refsect2>
98<refsect2 id="G3D-IFF-PAD2:CAPS" role="macro">
99<title>G3D_IFF_PAD2</title>
100<indexterm zone="G3D-IFF-PAD2:CAPS"><primary>G3D_IFF_PAD2</primary></indexterm><programlisting>#define G3D_IFF_PAD2 0x02
101</programlisting>
102<para>
103Chunks are 2-byte aligned</para>
104<para>
105
106</para></refsect2>
107<refsect2 id="G3D-IFF-PAD4:CAPS" role="macro">
108<title>G3D_IFF_PAD4</title>
109<indexterm zone="G3D-IFF-PAD4:CAPS"><primary>G3D_IFF_PAD4</primary></indexterm><programlisting>#define G3D_IFF_PAD4 0x04
110</programlisting>
111<para>
112Chunks are 4-byte aligned</para>
113<para>
114
115</para></refsect2>
116<refsect2 id="G3D-IFF-PAD8:CAPS" role="macro">
117<title>G3D_IFF_PAD8</title>
118<indexterm zone="G3D-IFF-PAD8:CAPS"><primary>G3D_IFF_PAD8</primary></indexterm><programlisting>#define G3D_IFF_PAD8 0x08
119</programlisting>
120<para>
121Chunks are 8-byte aligned</para>
122<para>
123
124</para></refsect2>
125<refsect2 id="G3D-IFF-LE:CAPS" role="macro">
126<title>G3D_IFF_LE</title>
127<indexterm zone="G3D-IFF-LE:CAPS"><primary>G3D_IFF_LE</primary></indexterm><programlisting>#define G3D_IFF_LE 0x40 /* little endian */
128</programlisting>
129<para>
130The file has little-endian data.</para>
131<para>
132
133</para></refsect2>
134<refsect2 id="G3D-IFF-LEN16:CAPS" role="macro">
135<title>G3D_IFF_LEN16</title>
136<indexterm zone="G3D-IFF-LEN16:CAPS"><primary>G3D_IFF_LEN16</primary></indexterm><programlisting>#define G3D_IFF_LEN16 0x20
137</programlisting>
138<para>
139All chunks have 16-bit sizes.</para>
140<para>
141
142</para></refsect2>
143<refsect2 id="G3D-IFF-SUBCHUNK-LEN16:CAPS" role="macro">
144<title>G3D_IFF_SUBCHUNK_LEN16</title>
145<indexterm zone="G3D-IFF-SUBCHUNK-LEN16:CAPS"><primary>G3D_IFF_SUBCHUNK_LEN16</primary></indexterm><programlisting>#define G3D_IFF_SUBCHUNK_LEN16 0x10
146</programlisting>
147<para>
148All chunks except the toplevel ones have 16-bit sizes.</para>
149<para>
150
151</para></refsect2>
152<refsect2 id="G3D-IFF-MKID:CAPS" role="macro">
153<title>G3D_IFF_MKID()</title>
154<indexterm zone="G3D-IFF-MKID:CAPS"><primary>G3D_IFF_MKID</primary></indexterm><programlisting>#define G3D_IFF_MKID(a,b,c,d)</programlisting>
155<para>
156Generate an IFF chunk identifier from character representation, e.g.
157G3D_IFF_MKID('F','O','R','M').</para>
158<para>
159
160</para><variablelist role="params">
161<varlistentry><term><parameter>a</parameter>&nbsp;:</term>
162<listitem><simpara> first byte
163</simpara></listitem></varlistentry>
164<varlistentry><term><parameter>b</parameter>&nbsp;:</term>
165<listitem><simpara> second byte
166</simpara></listitem></varlistentry>
167<varlistentry><term><parameter>c</parameter>&nbsp;:</term>
168<listitem><simpara> third byte
169</simpara></listitem></varlistentry>
170<varlistentry><term><parameter>d</parameter>&nbsp;:</term>
171<listitem><simpara> fourth byte
172</simpara></listitem></varlistentry>
173</variablelist></refsect2>
174<refsect2 id="g3d-iff-check" role="function">
175<title>g3d_iff_check ()</title>
176<indexterm zone="g3d-iff-check"><primary>g3d_iff_check</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_iff_check (<link linkend="G3DStream">G3DStream</link> *stream,
177 <link linkend="guint32">guint32</link> *id,
178 <link linkend="gsize">gsize</link> *len);</programlisting>
179<para>
180Checks a stream for a valid IFF signature and reads the top level container.</para>
181<para>
182
183</para><variablelist role="params">
184<varlistentry><term><parameter>stream</parameter>&nbsp;:</term>
185<listitem><simpara> stream containing IFF file to check
186</simpara></listitem></varlistentry>
187<varlistentry><term><parameter>id</parameter>&nbsp;:</term>
188<listitem><simpara> top level ID (out)
189</simpara></listitem></varlistentry>
190<varlistentry><term><parameter>len</parameter>&nbsp;:</term>
191<listitem><simpara> length of top level container (out)
192</simpara></listitem></varlistentry>
193<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success (valid IFF), FALSE else
194</simpara></listitem></varlistentry>
195</variablelist></refsect2>
196<refsect2 id="g3d-iff-read-chunk" role="function">
197<title>g3d_iff_read_chunk ()</title>
198<indexterm zone="g3d-iff-read-chunk"><primary>g3d_iff_read_chunk</primary></indexterm><programlisting><link linkend="gsize">gsize</link> g3d_iff_read_chunk (<link linkend="G3DStream">G3DStream</link> *stream,
199 <link linkend="guint32">guint32</link> *id,
200 <link linkend="gsize">gsize</link> *len,
201 <link linkend="guint32">guint32</link> flags);</programlisting>
202<para>
203Reads one chunk header from an IFF file.</para>
204<para>
205
206</para><variablelist role="params">
207<varlistentry><term><parameter>stream</parameter>&nbsp;:</term>
208<listitem><simpara> stream to read from
209</simpara></listitem></varlistentry>
210<varlistentry><term><parameter>id</parameter>&nbsp;:</term>
211<listitem><simpara> ID of chunk (out)
212</simpara></listitem></varlistentry>
213<varlistentry><term><parameter>len</parameter>&nbsp;:</term>
214<listitem><simpara> length of chunk (excluding header) (out)
215</simpara></listitem></varlistentry>
216<varlistentry><term><parameter>flags</parameter>&nbsp;:</term>
217<listitem><simpara> flags
218</simpara></listitem></varlistentry>
219<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> real length of chunk including header and possible padding byte
220</simpara></listitem></varlistentry>
221</variablelist></refsect2>
222<refsect2 id="g3d-iff-handle-chunk" role="function">
223<title>g3d_iff_handle_chunk ()</title>
224<indexterm zone="g3d-iff-handle-chunk"><primary>g3d_iff_handle_chunk</primary></indexterm><programlisting><link linkend="gpointer">gpointer</link> g3d_iff_handle_chunk (<link linkend="G3DIffGlobal">G3DIffGlobal</link> *global,
225 <link linkend="G3DIffLocal">G3DIffLocal</link> *plocal,
226 <link linkend="G3DIffChunkInfo">G3DIffChunkInfo</link> *chunks,
227 <link linkend="guint32">guint32</link> flags);</programlisting>
228<para>
229Handle an IFF chunk based on chunk description.</para>
230<para>
231
232</para><variablelist role="params">
233<varlistentry><term><parameter>global</parameter>&nbsp;:</term>
234<listitem><simpara> global data
235</simpara></listitem></varlistentry>
236<varlistentry><term><parameter>plocal</parameter>&nbsp;:</term>
237<listitem><simpara> local data of parent chunk, must not be NULL
238</simpara></listitem></varlistentry>
239<varlistentry><term><parameter>chunks</parameter>&nbsp;:</term>
240<listitem><simpara> chunk description list
241</simpara></listitem></varlistentry>
242<varlistentry><term><parameter>flags</parameter>&nbsp;:</term>
243<listitem><simpara> IFF flags
244</simpara></listitem></varlistentry>
245<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> level object for siblings, may be NULL.
246</simpara></listitem></varlistentry>
247</variablelist></refsect2>
248<refsect2 id="g3d-iff-chunk-matches" role="function">
249<title>g3d_iff_chunk_matches ()</title>
250<indexterm zone="g3d-iff-chunk-matches"><primary>g3d_iff_chunk_matches</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_iff_chunk_matches (<link linkend="guint32">guint32</link> id,
251 <link linkend="gchar">gchar</link> *tid);</programlisting>
252<para>
253Check whether <parameter>id</parameter> and <parameter>tid</parameter> match.</para>
254<para>
255
256</para><variablelist role="params">
257<varlistentry><term><parameter>id</parameter>&nbsp;:</term>
258<listitem><simpara> IFF identifier
259</simpara></listitem></varlistentry>
260<varlistentry><term><parameter>tid</parameter>&nbsp;:</term>
261<listitem><simpara> textual representation of identifier
262</simpara></listitem></varlistentry>
263<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on match, FALSE else.
264</simpara></listitem></varlistentry>
265</variablelist></refsect2>
266<refsect2 id="g3d-iff-read-ctnr" role="function">
267<title>g3d_iff_read_ctnr ()</title>
268<indexterm zone="g3d-iff-read-ctnr"><primary>g3d_iff_read_ctnr</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_iff_read_ctnr (<link linkend="G3DIffGlobal">G3DIffGlobal</link> *global,
269 <link linkend="G3DIffLocal">G3DIffLocal</link> *local,
270 <link linkend="G3DIffChunkInfo">G3DIffChunkInfo</link> *chunks,
271 <link linkend="guint32">guint32</link> flags);</programlisting>
272<para>
273Read subchunks in current chunk and handle them appropriately.</para>
274<para>
275
276</para><variablelist role="params">
277<varlistentry><term><parameter>global</parameter>&nbsp;:</term>
278<listitem><simpara> global data
279</simpara></listitem></varlistentry>
280<varlistentry><term><parameter>local</parameter>&nbsp;:</term>
281<listitem><simpara> local data of current chunk, must not be NULL
282</simpara></listitem></varlistentry>
283<varlistentry><term><parameter>chunks</parameter>&nbsp;:</term>
284<listitem><simpara> chunk description list
285</simpara></listitem></varlistentry>
286<varlistentry><term><parameter>flags</parameter>&nbsp;:</term>
287<listitem><simpara> IFF flags
288</simpara></listitem></varlistentry>
289<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else.
290</simpara></listitem></varlistentry>
291</variablelist></refsect2>
292<refsect2 id="g3d-iff-id-to-text" role="function">
293<title>g3d_iff_id_to_text ()</title>
294<indexterm zone="g3d-iff-id-to-text"><primary>g3d_iff_id_to_text</primary></indexterm><programlisting><link linkend="gchar">gchar</link>* g3d_iff_id_to_text (<link linkend="guint32">guint32</link> id);</programlisting>
295<para>
296Get the text representation of an IFF chunk identifier.</para>
297<para>
298
299</para><variablelist role="params">
300<varlistentry><term><parameter>id</parameter>&nbsp;:</term>
301<listitem><simpara> an IFF identifier
302</simpara></listitem></varlistentry>
303<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a newly allocated string containing the text identifier.
304</simpara></listitem></varlistentry>
305</variablelist></refsect2>
306<refsect2 id="g3d-iff-open" role="function">
307<title>g3d_iff_open ()</title>
308<indexterm zone="g3d-iff-open"><primary>g3d_iff_open</primary></indexterm><programlisting><link linkend="FILE:CAPS">FILE</link>* g3d_iff_open (const <link linkend="gchar">gchar</link> *filename,
309 <link linkend="guint32">guint32</link> *id,
310 <link linkend="guint32">guint32</link> *len);</programlisting>
311<para>
312Opens an IFF file, checks it and reads its top level container.</para>
313<para>
314
315</para><variablelist role="params">
316<varlistentry><term><parameter>filename</parameter>&nbsp;:</term>
317<listitem><simpara> file name of IFF file
318</simpara></listitem></varlistentry>
319<varlistentry><term><parameter>id</parameter>&nbsp;:</term>
320<listitem><simpara> top level ID (out)
321</simpara></listitem></varlistentry>
322<varlistentry><term><parameter>len</parameter>&nbsp;:</term>
323<listitem><simpara> length of top level container (out)
324</simpara></listitem></varlistentry>
325<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the file pointer of open file or NULL in case of an error
326</simpara></listitem></varlistentry>
327</variablelist></refsect2>
328<refsect2 id="g3d-iff-readchunk" role="function">
329<title>g3d_iff_readchunk ()</title>
330<indexterm zone="g3d-iff-readchunk"><primary>g3d_iff_readchunk</primary></indexterm><programlisting><link linkend="int">int</link> g3d_iff_readchunk (<link linkend="FILE:CAPS">FILE</link> *f,
331 <link linkend="guint32">guint32</link> *id,
332 <link linkend="guint32">guint32</link> *len,
333 <link linkend="guint32">guint32</link> flags);</programlisting>
334<para>
335Reads one chunk header from an IFF file.</para>
336<para>
337
338</para><variablelist role="params">
339<varlistentry><term><parameter>f</parameter>&nbsp;:</term>
340<listitem><simpara> the open IFF file pointer
341</simpara></listitem></varlistentry>
342<varlistentry><term><parameter>id</parameter>&nbsp;:</term>
343<listitem><simpara> ID of chunk (out)
344</simpara></listitem></varlistentry>
345<varlistentry><term><parameter>len</parameter>&nbsp;:</term>
346<listitem><simpara> length of chunk (excluding header) (out)
347</simpara></listitem></varlistentry>
348<varlistentry><term><parameter>flags</parameter>&nbsp;:</term>
349<listitem><simpara> flags
350</simpara></listitem></varlistentry>
351<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> real length of chunk including header and possible padding byte
352</simpara></listitem></varlistentry>
353</variablelist></refsect2>
354<refsect2 id="G3DIffChunkCallback" role="function">
355<title>G3DIffChunkCallback ()</title>
356<indexterm zone="G3DIffChunkCallback"><primary>G3DIffChunkCallback</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> (*G3DIffChunkCallback) (<link linkend="G3DIffGlobal">G3DIffGlobal</link> *global,
357 <link linkend="G3DIffLocal">G3DIffLocal</link> *local);</programlisting>
358<para>
359IFF callback function prototype.</para>
360<para>
361
362</para><variablelist role="params">
363<varlistentry><term><parameter>global</parameter>&nbsp;:</term>
364<listitem><simpara> the global data
365</simpara></listitem></varlistentry>
366<varlistentry><term><parameter>local</parameter>&nbsp;:</term>
367<listitem><simpara> the local data
368</simpara></listitem></varlistentry>
369<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else.
370</simpara></listitem></varlistentry>
371</variablelist></refsect2>
372<refsect2 id="g3d-iff-chunk-callback" role="macro">
373<title>g3d_iff_chunk_callback</title>
374<indexterm zone="g3d-iff-chunk-callback"><primary>g3d_iff_chunk_callback</primary></indexterm><programlisting>#define g3d_iff_chunk_callback G3DIffChunkCallback
375</programlisting>
376<para>
377IFF chunk callback (deprecated).</para>
378<para>
379
380</para></refsect2>
381<refsect2 id="G3DIffChunkInfo" role="struct">
382<title>G3DIffChunkInfo</title>
383<indexterm zone="G3DIffChunkInfo"><primary>G3DIffChunkInfo</primary></indexterm><programlisting>typedef struct {
384 gchar *id;
385 gchar *description;
386 gboolean container;
387 G3DIffChunkCallback callback;
388} G3DIffChunkInfo;
389</programlisting>
390<para>
391A chunk type description.</para>
392<para>
393
394</para><variablelist role="struct">
395<varlistentry>
396<term><link linkend="gchar">gchar</link>&nbsp;*<structfield>id</structfield>;</term>
397<listitem><simpara> identifier of chunk
398</simpara></listitem>
399</varlistentry>
400<varlistentry>
401<term><link linkend="gchar">gchar</link>&nbsp;*<structfield>description</structfield>;</term>
402<listitem><simpara> human-readable description of chunk type
403</simpara></listitem>
404</varlistentry>
405<varlistentry>
406<term><link linkend="gboolean">gboolean</link>&nbsp;<structfield>container</structfield>;</term>
407<listitem><simpara> TRUE if this chunk contains sub-chunks
408</simpara></listitem>
409</varlistentry>
410<varlistentry>
411<term><link linkend="G3DIffChunkCallback">G3DIffChunkCallback</link>&nbsp;<structfield>callback</structfield>;</term>
412<listitem><simpara> function to be called if such a chunk is found
413</simpara></listitem>
414</varlistentry>
415</variablelist></refsect2>
416<refsect2 id="g3d-iff-chunk-info" role="macro">
417<title>g3d_iff_chunk_info</title>
418<indexterm zone="g3d-iff-chunk-info"><primary>g3d_iff_chunk_info</primary></indexterm><programlisting>#define g3d_iff_chunk_info G3DIffChunkInfo
419</programlisting>
420<para>
421IFF chunk description (deprecated).</para>
422<para>
423
424</para></refsect2>
425<refsect2 id="G3DIffGlobal" role="struct">
426<title>G3DIffGlobal</title>
427<indexterm zone="G3DIffGlobal"><primary>G3DIffGlobal</primary></indexterm><programlisting>typedef struct {
428 G3DContext *context;
429 G3DModel *model;
430 G3DStream *stream;
431 guint32 flags;
432 gpointer user_data;
433 FILE *f;
434 long int max_fpos;
435} G3DIffGlobal;
436</programlisting>
437<para>
438The plugin-global data to be given to IFF callback functions.</para>
439<para>
440
441</para><variablelist role="struct">
442<varlistentry>
443<term><link linkend="G3DContext">G3DContext</link>&nbsp;*<structfield>context</structfield>;</term>
444<listitem><simpara> a valid context
445</simpara></listitem>
446</varlistentry>
447<varlistentry>
448<term><link linkend="G3DModel">G3DModel</link>&nbsp;*<structfield>model</structfield>;</term>
449<listitem><simpara> a model
450</simpara></listitem>
451</varlistentry>
452<varlistentry>
453<term><link linkend="G3DStream">G3DStream</link>&nbsp;*<structfield>stream</structfield>;</term>
454<listitem><simpara> the stream to read model from
455</simpara></listitem>
456</varlistentry>
457<varlistentry>
458<term><link linkend="guint32">guint32</link>&nbsp;<structfield>flags</structfield>;</term>
459<listitem><simpara> IFF flags
460</simpara></listitem>
461</varlistentry>
462<varlistentry>
463<term><link linkend="gpointer">gpointer</link>&nbsp;<structfield>user_data</structfield>;</term>
464<listitem><simpara> to be used by plugin
465</simpara></listitem>
466</varlistentry>
467<varlistentry>
468<term><link linkend="FILE:CAPS">FILE</link>&nbsp;*<structfield>f</structfield>;</term>
469<listitem><simpara> file to read model from (DEPRECATED)
470</simpara></listitem>
471</varlistentry>
472<varlistentry>
473<term>long&nbsp;<link linkend="int">int</link>&nbsp;<structfield>max_fpos</structfield>;</term>
474<listitem><simpara> maximum file position (DEPRECATED)
475</simpara></listitem>
476</varlistentry>
477</variablelist></refsect2>
478<refsect2 id="g3d-iff-gdata" role="macro">
479<title>g3d_iff_gdata</title>
480<indexterm zone="g3d-iff-gdata"><primary>g3d_iff_gdata</primary></indexterm><programlisting>#define g3d_iff_gdata G3DIffGlobal
481</programlisting>
482<para>
483IFF global data (deprecated).</para>
484<para>
485
486</para></refsect2>
487<refsect2 id="G3DIffLocal" role="struct">
488<title>G3DIffLocal</title>
489<indexterm zone="G3DIffLocal"><primary>G3DIffLocal</primary></indexterm><programlisting>typedef struct {
490 guint32 id;
491 guint32 parent_id;
492 gpointer object;
493 gint32 level;
494 gpointer level_object;
495 gint32 nb;
496 gboolean finalize;
497} G3DIffLocal;
498</programlisting>
499<para>
500The function-local data for IFF callback functions.</para>
501<para>
502
503</para><variablelist role="struct">
504<varlistentry>
505<term><link linkend="guint32">guint32</link>&nbsp;<structfield>id</structfield>;</term>
506<listitem><simpara> chunk identifier
507</simpara></listitem>
508</varlistentry>
509<varlistentry>
510<term><link linkend="guint32">guint32</link>&nbsp;<structfield>parent_id</structfield>;</term>
511<listitem><simpara> parent chunk identifier
512</simpara></listitem>
513</varlistentry>
514<varlistentry>
515<term><link linkend="gpointer">gpointer</link>&nbsp;<structfield>object</structfield>;</term>
516<listitem><simpara> an object set by parent callbacks, may be NULL
517</simpara></listitem>
518</varlistentry>
519<varlistentry>
520<term><link linkend="gint32">gint32</link>&nbsp;<structfield>level</structfield>;</term>
521<listitem><simpara> level of chunk
522</simpara></listitem>
523</varlistentry>
524<varlistentry>
525<term><link linkend="gpointer">gpointer</link>&nbsp;<structfield>level_object</structfield>;</term>
526<listitem><simpara> object shared by callbacks on the same level, may be NULL
527</simpara></listitem>
528</varlistentry>
529<varlistentry>
530<term><link linkend="gint32">gint32</link>&nbsp;<structfield>nb</structfield>;</term>
531<listitem><simpara> number of bytes remaining in chunk, has to be decremented after
532correctly after reading from stream
533</simpara></listitem>
534</varlistentry>
535<varlistentry>
536<term><link linkend="gboolean">gboolean</link>&nbsp;<structfield>finalize</structfield>;</term>
537<listitem><simpara> for container chunks the callback function is called before
538and after processing possible sub-chunks, the second time <parameter>finalize</parameter> is set
539to TRUE
540</simpara></listitem>
541</varlistentry>
542</variablelist></refsect2>
543<refsect2 id="g3d-iff-ldata" role="macro">
544<title>g3d_iff_ldata</title>
545<indexterm zone="g3d-iff-ldata"><primary>g3d_iff_ldata</primary></indexterm><programlisting>#define g3d_iff_ldata G3DIffLocal
546</programlisting>
547<para>
548IFF local data (deprecated).</para>
549<para>
550
551</para></refsect2>
552
553</refsect1>
554
555
556
557
558</refentry>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/xml/material.xml b/src/others/mimesh/libg3d-0.0.8/doc/api/xml/material.xml
new file mode 100644
index 0000000..e7240da
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/xml/material.xml
@@ -0,0 +1,142 @@
1<?xml version="1.0"?>
2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
4<refentry id="libg3d-material">
5<refmeta>
6<refentrytitle role="top_of_page" id="libg3d-material.top_of_page">material</refentrytitle>
7<manvolnum>3</manvolnum>
8<refmiscinfo>LIBG3D Library</refmiscinfo>
9</refmeta>
10
11<refnamediv>
12<refname>material</refname>
13<refpurpose>Material generation and manipulation</refpurpose>
14<!--[<xref linkend="desc" endterm="desc.title"/>]-->
15</refnamediv>
16
17<refsynopsisdiv id="libg3d-material.synopsis" role="synopsis">
18<title role="synopsis.title">Synopsis</title>
19
20<synopsis>
21
22#include &lt;g3d/material.h&gt;
23
24 <link linkend="G3DMaterial">G3DMaterial</link>;
25<link linkend="G3DMaterial">G3DMaterial</link>* <link linkend="g3d-material-new">g3d_material_new</link> (void);
26<link linkend="void">void</link> <link linkend="g3d-material-free">g3d_material_free</link> (<link linkend="G3DMaterial">G3DMaterial</link> *material);
27</synopsis>
28</refsynopsisdiv>
29
30
31
32
33
34
35
36
37
38<refsect1 id="libg3d-material.description" role="desc">
39<title role="desc.title">Description</title>
40<para>
41A material contains all color, shading and texture information for a
42<link linkend="G3DFace"><type>G3DFace</type></link>.</para>
43<para>
44
45</para>
46</refsect1>
47
48<refsect1 id="libg3d-material.details" role="details">
49<title role="details.title">Details</title>
50<refsect2 id="G3DMaterial" role="struct">
51<title>G3DMaterial</title>
52<indexterm zone="G3DMaterial"><primary>G3DMaterial</primary></indexterm><programlisting>typedef struct {
53 gchar *name;
54 G3DFloat r, g, b, a;
55 G3DFloat shininess;
56 G3DFloat specular[4];
57 guint32 flags;
58
59 G3DImage *tex_image;
60} G3DMaterial;
61</programlisting>
62<para>
63A material object.</para>
64<para>
65
66</para><variablelist role="struct">
67<varlistentry>
68<term><link linkend="gchar">gchar</link>&nbsp;*<structfield>name</structfield>;</term>
69<listitem><simpara> name of material
70</simpara></listitem>
71</varlistentry>
72<varlistentry>
73<term><link linkend="G3DFloat">G3DFloat</link>&nbsp;<structfield>r</structfield>;</term>
74<listitem><simpara> red component of color
75</simpara></listitem>
76</varlistentry>
77<varlistentry>
78<term><link linkend="G3DFloat">G3DFloat</link>&nbsp;<structfield>g</structfield>;</term>
79<listitem><simpara> green component of color
80</simpara></listitem>
81</varlistentry>
82<varlistentry>
83<term><link linkend="G3DFloat">G3DFloat</link>&nbsp;<structfield>b</structfield>;</term>
84<listitem><simpara> blue component of color
85</simpara></listitem>
86</varlistentry>
87<varlistentry>
88<term><link linkend="G3DFloat">G3DFloat</link>&nbsp;<structfield>a</structfield>;</term>
89<listitem><simpara> alpha component of color
90</simpara></listitem>
91</varlistentry>
92<varlistentry>
93<term><link linkend="G3DFloat">G3DFloat</link>&nbsp;<structfield>shininess</structfield>;</term>
94<listitem><simpara> shiny color
95</simpara></listitem>
96</varlistentry>
97<varlistentry>
98<term><link linkend="G3DFloat">G3DFloat</link>&nbsp;<structfield>specular</structfield>[4];</term>
99<listitem><simpara> specular color
100</simpara></listitem>
101</varlistentry>
102<varlistentry>
103<term><link linkend="guint32">guint32</link>&nbsp;<structfield>flags</structfield>;</term>
104<listitem><simpara> flags
105</simpara></listitem>
106</varlistentry>
107<varlistentry>
108<term><link linkend="G3DImage">G3DImage</link>&nbsp;*<structfield>tex_image</structfield>;</term>
109<listitem><simpara> texture image (optional, may be NULL)
110</simpara></listitem>
111</varlistentry>
112</variablelist></refsect2>
113<refsect2 id="g3d-material-new" role="function">
114<title>g3d_material_new ()</title>
115<indexterm zone="g3d-material-new"><primary>g3d_material_new</primary></indexterm><programlisting><link linkend="G3DMaterial">G3DMaterial</link>* g3d_material_new (void);</programlisting>
116<para>
117Generates a new material with a default color.</para>
118<para>
119
120</para><variablelist role="params">
121<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the new material or NULL on error
122</simpara></listitem></varlistentry>
123</variablelist></refsect2>
124<refsect2 id="g3d-material-free" role="function">
125<title>g3d_material_free ()</title>
126<indexterm zone="g3d-material-free"><primary>g3d_material_free</primary></indexterm><programlisting><link linkend="void">void</link> g3d_material_free (<link linkend="G3DMaterial">G3DMaterial</link> *material);</programlisting>
127<para>
128Frees all memory allocated for that material.</para>
129<para>
130
131</para><variablelist role="params">
132<varlistentry><term><parameter>material</parameter>&nbsp;:</term>
133<listitem><simpara> the material to free
134</simpara></listitem></varlistentry>
135</variablelist></refsect2>
136
137</refsect1>
138
139
140
141
142</refentry>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/xml/matrix.xml b/src/others/mimesh/libg3d-0.0.8/doc/api/xml/matrix.xml
new file mode 100644
index 0000000..be65522
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/xml/matrix.xml
@@ -0,0 +1,278 @@
1<?xml version="1.0"?>
2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
4<refentry id="libg3d-matrix">
5<refmeta>
6<refentrytitle role="top_of_page" id="libg3d-matrix.top_of_page">matrix</refentrytitle>
7<manvolnum>3</manvolnum>
8<refmiscinfo>LIBG3D Library</refmiscinfo>
9</refmeta>
10
11<refnamediv>
12<refname>matrix</refname>
13<refpurpose>Matrix manipulation and calculation</refpurpose>
14<!--[<xref linkend="desc" endterm="desc.title"/>]-->
15</refnamediv>
16
17<refsynopsisdiv id="libg3d-matrix.synopsis" role="synopsis">
18<title role="synopsis.title">Synopsis</title>
19
20<synopsis>
21
22#include &lt;g3d/matrix.h&gt;
23
24typedef <link linkend="G3DMatrix">G3DMatrix</link>;
25<link linkend="gboolean">gboolean</link> <link linkend="g3d-matrix-identity">g3d_matrix_identity</link> (<link linkend="G3DMatrix">G3DMatrix</link> *matrix);
26<link linkend="gboolean">gboolean</link> <link linkend="g3d-matrix-multiply">g3d_matrix_multiply</link> (<link linkend="G3DMatrix">G3DMatrix</link> *m1,
27 <link linkend="G3DMatrix">G3DMatrix</link> *m2,
28 <link linkend="G3DMatrix">G3DMatrix</link> *rm);
29<link linkend="gboolean">gboolean</link> <link linkend="g3d-matrix-translate">g3d_matrix_translate</link> (<link linkend="G3DFloat">G3DFloat</link> x,
30 <link linkend="G3DFloat">G3DFloat</link> y,
31 <link linkend="G3DFloat">G3DFloat</link> z,
32 <link linkend="G3DMatrix">G3DMatrix</link> *rm);
33<link linkend="gboolean">gboolean</link> <link linkend="g3d-matrix-rotate">g3d_matrix_rotate</link> (<link linkend="G3DFloat">G3DFloat</link> angle,
34 <link linkend="G3DFloat">G3DFloat</link> ax,
35 <link linkend="G3DFloat">G3DFloat</link> ay,
36 <link linkend="G3DFloat">G3DFloat</link> az,
37 <link linkend="G3DMatrix">G3DMatrix</link> *rm);
38<link linkend="gboolean">gboolean</link> <link linkend="g3d-matrix-rotate-xyz">g3d_matrix_rotate_xyz</link> (<link linkend="G3DFloat">G3DFloat</link> rx,
39 <link linkend="G3DFloat">G3DFloat</link> ry,
40 <link linkend="G3DFloat">G3DFloat</link> rz,
41 <link linkend="G3DMatrix">G3DMatrix</link> *rm);
42<link linkend="gboolean">gboolean</link> <link linkend="g3d-matrix-scale">g3d_matrix_scale</link> (<link linkend="G3DFloat">G3DFloat</link> x,
43 <link linkend="G3DFloat">G3DFloat</link> y,
44 <link linkend="G3DFloat">G3DFloat</link> z,
45 <link linkend="G3DMatrix">G3DMatrix</link> *rm);
46<link linkend="gboolean">gboolean</link> <link linkend="g3d-matrix-transpose">g3d_matrix_transpose</link> (<link linkend="G3DMatrix">G3DMatrix</link> *matrix);
47<link linkend="G3DFloat">G3DFloat</link> <link linkend="g3d-matrix-determinant">g3d_matrix_determinant</link> (<link linkend="G3DMatrix">G3DMatrix</link> *matrix);
48<link linkend="gboolean">gboolean</link> <link linkend="g3d-matrix-dump">g3d_matrix_dump</link> (<link linkend="G3DMatrix">G3DMatrix</link> *matrix);
49</synopsis>
50</refsynopsisdiv>
51
52
53
54
55
56
57
58
59
60<refsect1 id="libg3d-matrix.description" role="desc">
61<title role="desc.title">Description</title>
62<para>
63Matrices in libg3d have the following layout:
64</para>
65<para>
66G3DMatrix matrix[16]:
67</para>
68<para>
69matrix[col * 4 + row] = f;</para>
70<para>
71
72</para>
73</refsect1>
74
75<refsect1 id="libg3d-matrix.details" role="details">
76<title role="details.title">Details</title>
77<refsect2 id="G3DMatrix" role="typedef">
78<title>G3DMatrix</title>
79<indexterm zone="G3DMatrix"><primary>G3DMatrix</primary></indexterm><programlisting>typedef G3DFloat G3DMatrix;
80</programlisting>
81<para>
82Matrix element type.</para>
83<para>
84
85</para></refsect2>
86<refsect2 id="g3d-matrix-identity" role="function">
87<title>g3d_matrix_identity ()</title>
88<indexterm zone="g3d-matrix-identity"><primary>g3d_matrix_identity</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_matrix_identity (<link linkend="G3DMatrix">G3DMatrix</link> *matrix);</programlisting>
89<para>
90Sets the given matrix to the identity matrix.</para>
91<para>
92
93</para><variablelist role="params">
94<varlistentry><term><parameter>matrix</parameter>&nbsp;:</term>
95<listitem><simpara> 4x4 matrix (float[16])
96</simpara></listitem></varlistentry>
97<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else
98</simpara></listitem></varlistentry>
99</variablelist></refsect2>
100<refsect2 id="g3d-matrix-multiply" role="function">
101<title>g3d_matrix_multiply ()</title>
102<indexterm zone="g3d-matrix-multiply"><primary>g3d_matrix_multiply</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_matrix_multiply (<link linkend="G3DMatrix">G3DMatrix</link> *m1,
103 <link linkend="G3DMatrix">G3DMatrix</link> *m2,
104 <link linkend="G3DMatrix">G3DMatrix</link> *rm);</programlisting>
105<para>
106Multiplies the matrixes.</para>
107<para>
108
109</para><variablelist role="params">
110<varlistentry><term><parameter>m1</parameter>&nbsp;:</term>
111<listitem><simpara> first matrix
112</simpara></listitem></varlistentry>
113<varlistentry><term><parameter>m2</parameter>&nbsp;:</term>
114<listitem><simpara> second matrix
115</simpara></listitem></varlistentry>
116<varlistentry><term><parameter>rm</parameter>&nbsp;:</term>
117<listitem><simpara> resulting matrix
118</simpara></listitem></varlistentry>
119<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else
120</simpara></listitem></varlistentry>
121</variablelist></refsect2>
122<refsect2 id="g3d-matrix-translate" role="function">
123<title>g3d_matrix_translate ()</title>
124<indexterm zone="g3d-matrix-translate"><primary>g3d_matrix_translate</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_matrix_translate (<link linkend="G3DFloat">G3DFloat</link> x,
125 <link linkend="G3DFloat">G3DFloat</link> y,
126 <link linkend="G3DFloat">G3DFloat</link> z,
127 <link linkend="G3DMatrix">G3DMatrix</link> *rm);</programlisting>
128<para>
129Adds a translation to the the matrix.</para>
130<para>
131
132</para><variablelist role="params">
133<varlistentry><term><parameter>x</parameter>&nbsp;:</term>
134<listitem><simpara> x translation
135</simpara></listitem></varlistentry>
136<varlistentry><term><parameter>y</parameter>&nbsp;:</term>
137<listitem><simpara> y translation
138</simpara></listitem></varlistentry>
139<varlistentry><term><parameter>z</parameter>&nbsp;:</term>
140<listitem><simpara> z translation
141</simpara></listitem></varlistentry>
142<varlistentry><term><parameter>rm</parameter>&nbsp;:</term>
143<listitem><simpara> resulting matrix
144</simpara></listitem></varlistentry>
145<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else
146</simpara></listitem></varlistentry>
147</variablelist></refsect2>
148<refsect2 id="g3d-matrix-rotate" role="function">
149<title>g3d_matrix_rotate ()</title>
150<indexterm zone="g3d-matrix-rotate"><primary>g3d_matrix_rotate</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_matrix_rotate (<link linkend="G3DFloat">G3DFloat</link> angle,
151 <link linkend="G3DFloat">G3DFloat</link> ax,
152 <link linkend="G3DFloat">G3DFloat</link> ay,
153 <link linkend="G3DFloat">G3DFloat</link> az,
154 <link linkend="G3DMatrix">G3DMatrix</link> *rm);</programlisting>
155<para>
156Adds a rotation to the matrix.</para>
157<para>
158
159</para><variablelist role="params">
160<varlistentry><term><parameter>angle</parameter>&nbsp;:</term>
161<listitem><simpara> rotation angle
162</simpara></listitem></varlistentry>
163<varlistentry><term><parameter>ax</parameter>&nbsp;:</term>
164<listitem><simpara> x component of rotation axis
165</simpara></listitem></varlistentry>
166<varlistentry><term><parameter>ay</parameter>&nbsp;:</term>
167<listitem><simpara> y component of rotation axis
168</simpara></listitem></varlistentry>
169<varlistentry><term><parameter>az</parameter>&nbsp;:</term>
170<listitem><simpara> z component of rotation axis
171</simpara></listitem></varlistentry>
172<varlistentry><term><parameter>rm</parameter>&nbsp;:</term>
173<listitem><simpara> resulting matrix
174</simpara></listitem></varlistentry>
175<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else
176</simpara></listitem></varlistentry>
177</variablelist></refsect2>
178<refsect2 id="g3d-matrix-rotate-xyz" role="function">
179<title>g3d_matrix_rotate_xyz ()</title>
180<indexterm zone="g3d-matrix-rotate-xyz"><primary>g3d_matrix_rotate_xyz</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_matrix_rotate_xyz (<link linkend="G3DFloat">G3DFloat</link> rx,
181 <link linkend="G3DFloat">G3DFloat</link> ry,
182 <link linkend="G3DFloat">G3DFloat</link> rz,
183 <link linkend="G3DMatrix">G3DMatrix</link> *rm);</programlisting>
184<para>
185Adds a rotation around the 3 coordinate system axes to the matrix.</para>
186<para>
187
188</para><variablelist role="params">
189<varlistentry><term><parameter>rx</parameter>&nbsp;:</term>
190<listitem><simpara> rotation around x axis
191</simpara></listitem></varlistentry>
192<varlistentry><term><parameter>ry</parameter>&nbsp;:</term>
193<listitem><simpara> rotation around y axis
194</simpara></listitem></varlistentry>
195<varlistentry><term><parameter>rz</parameter>&nbsp;:</term>
196<listitem><simpara> rotation around z axis
197</simpara></listitem></varlistentry>
198<varlistentry><term><parameter>rm</parameter>&nbsp;:</term>
199<listitem><simpara> resulting matrix
200</simpara></listitem></varlistentry>
201<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else
202</simpara></listitem></varlistentry>
203</variablelist></refsect2>
204<refsect2 id="g3d-matrix-scale" role="function">
205<title>g3d_matrix_scale ()</title>
206<indexterm zone="g3d-matrix-scale"><primary>g3d_matrix_scale</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_matrix_scale (<link linkend="G3DFloat">G3DFloat</link> x,
207 <link linkend="G3DFloat">G3DFloat</link> y,
208 <link linkend="G3DFloat">G3DFloat</link> z,
209 <link linkend="G3DMatrix">G3DMatrix</link> *rm);</programlisting>
210<para>
211Adds a scaling to the matrix.</para>
212<para>
213
214</para><variablelist role="params">
215<varlistentry><term><parameter>x</parameter>&nbsp;:</term>
216<listitem><simpara> x factor
217</simpara></listitem></varlistentry>
218<varlistentry><term><parameter>y</parameter>&nbsp;:</term>
219<listitem><simpara> y factor
220</simpara></listitem></varlistentry>
221<varlistentry><term><parameter>z</parameter>&nbsp;:</term>
222<listitem><simpara> z factor
223</simpara></listitem></varlistentry>
224<varlistentry><term><parameter>rm</parameter>&nbsp;:</term>
225<listitem><simpara> resulting matrix
226</simpara></listitem></varlistentry>
227<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else
228</simpara></listitem></varlistentry>
229</variablelist></refsect2>
230<refsect2 id="g3d-matrix-transpose" role="function">
231<title>g3d_matrix_transpose ()</title>
232<indexterm zone="g3d-matrix-transpose"><primary>g3d_matrix_transpose</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_matrix_transpose (<link linkend="G3DMatrix">G3DMatrix</link> *matrix);</programlisting>
233<para>
234Transposes the matrix.</para>
235<para>
236
237</para><variablelist role="params">
238<varlistentry><term><parameter>matrix</parameter>&nbsp;:</term>
239<listitem><simpara> the matrix
240</simpara></listitem></varlistentry>
241<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else
242</simpara></listitem></varlistentry>
243</variablelist></refsect2>
244<refsect2 id="g3d-matrix-determinant" role="function">
245<title>g3d_matrix_determinant ()</title>
246<indexterm zone="g3d-matrix-determinant"><primary>g3d_matrix_determinant</primary></indexterm><programlisting><link linkend="G3DFloat">G3DFloat</link> g3d_matrix_determinant (<link linkend="G3DMatrix">G3DMatrix</link> *matrix);</programlisting>
247<para>
248Calculate the determinant of the matrix (FIXME: not verified).</para>
249<para>
250
251</para><variablelist role="params">
252<varlistentry><term><parameter>matrix</parameter>&nbsp;:</term>
253<listitem><simpara> the matrix
254</simpara></listitem></varlistentry>
255<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the determinant.
256</simpara></listitem></varlistentry>
257</variablelist></refsect2>
258<refsect2 id="g3d-matrix-dump" role="function">
259<title>g3d_matrix_dump ()</title>
260<indexterm zone="g3d-matrix-dump"><primary>g3d_matrix_dump</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_matrix_dump (<link linkend="G3DMatrix">G3DMatrix</link> *matrix);</programlisting>
261<para>
262If debugging is enabled, this function dump the matrix to stderr.</para>
263<para>
264
265</para><variablelist role="params">
266<varlistentry><term><parameter>matrix</parameter>&nbsp;:</term>
267<listitem><simpara> the matrix
268</simpara></listitem></varlistentry>
269<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE if matrix is dumped, FALSE else
270</simpara></listitem></varlistentry>
271</variablelist></refsect2>
272
273</refsect1>
274
275
276
277
278</refentry>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/xml/model.xml b/src/others/mimesh/libg3d-0.0.8/doc/api/xml/model.xml
new file mode 100644
index 0000000..1392763
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/xml/model.xml
@@ -0,0 +1,285 @@
1<?xml version="1.0"?>
2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
4<refentry id="libg3d-model">
5<refmeta>
6<refentrytitle role="top_of_page" id="libg3d-model.top_of_page">model</refentrytitle>
7<manvolnum>3</manvolnum>
8<refmiscinfo>LIBG3D Library</refmiscinfo>
9</refmeta>
10
11<refnamediv>
12<refname>model</refname>
13<refpurpose>Model manipulation functions</refpurpose>
14<!--[<xref linkend="desc" endterm="desc.title"/>]-->
15</refnamediv>
16
17<refsynopsisdiv id="libg3d-model.synopsis" role="synopsis">
18<title role="synopsis.title">Synopsis</title>
19
20<synopsis>
21
22#include &lt;g3d/g3d.h&gt;
23
24#define <link linkend="G3D-MODEL-CENTER:CAPS">G3D_MODEL_CENTER</link>
25#define <link linkend="G3D-MODEL-NOCHECK:CAPS">G3D_MODEL_NOCHECK</link>
26#define <link linkend="G3D-MODEL-OPTIMIZE:CAPS">G3D_MODEL_OPTIMIZE</link>
27#define <link linkend="G3D-MODEL-SCALE:CAPS">G3D_MODEL_SCALE</link>
28 <link linkend="G3DModel">G3DModel</link>;
29<link linkend="G3DModel">G3DModel</link>* <link linkend="g3d-model-new">g3d_model_new</link> (void);
30<link linkend="G3DModel">G3DModel</link>* <link linkend="g3d-model-load">g3d_model_load</link> (<link linkend="G3DContext">G3DContext</link> *context,
31 const <link linkend="gchar">gchar</link> *filename);
32<link linkend="G3DModel">G3DModel</link>* <link linkend="g3d-model-load-full">g3d_model_load_full</link> (<link linkend="G3DContext">G3DContext</link> *context,
33 const <link linkend="gchar">gchar</link> *filename,
34 <link linkend="guint32">guint32</link> flags);
35<link linkend="gboolean">gboolean</link> <link linkend="g3d-model-check">g3d_model_check</link> (<link linkend="G3DModel">G3DModel</link> *model);
36<link linkend="gboolean">gboolean</link> <link linkend="g3d-model-center">g3d_model_center</link> (<link linkend="G3DModel">G3DModel</link> *model);
37<link linkend="gboolean">gboolean</link> <link linkend="g3d-model-transform">g3d_model_transform</link> (<link linkend="G3DModel">G3DModel</link> *model,
38 <link linkend="G3DMatrix">G3DMatrix</link> *matrix);
39<link linkend="void">void</link> <link linkend="g3d-model-clear">g3d_model_clear</link> (<link linkend="G3DModel">G3DModel</link> *model);
40<link linkend="void">void</link> <link linkend="g3d-model-free">g3d_model_free</link> (<link linkend="G3DModel">G3DModel</link> *model);
41<link linkend="G3DObject">G3DObject</link>* <link linkend="g3d-model-get-object-by-name">g3d_model_get_object_by_name</link> (<link linkend="G3DModel">G3DModel</link> *model,
42 const <link linkend="gchar">gchar</link> *name);
43</synopsis>
44</refsynopsisdiv>
45
46
47
48
49
50
51
52
53
54<refsect1 id="libg3d-model.description" role="desc">
55<title role="desc.title">Description</title>
56<para>
57A model is a group of objects. All information loaded from a file by libg3d
58is found in this model.</para>
59<para>
60
61</para>
62</refsect1>
63
64<refsect1 id="libg3d-model.details" role="details">
65<title role="details.title">Details</title>
66<refsect2 id="G3D-MODEL-CENTER:CAPS" role="macro">
67<title>G3D_MODEL_CENTER</title>
68<indexterm zone="G3D-MODEL-CENTER:CAPS"><primary>G3D_MODEL_CENTER</primary></indexterm><programlisting>#define G3D_MODEL_CENTER (1 &lt;&lt; 1)
69</programlisting>
70<para>
71The model should be centered around the (0,0,0).</para>
72<para>
73
74</para></refsect2>
75<refsect2 id="G3D-MODEL-NOCHECK:CAPS" role="macro">
76<title>G3D_MODEL_NOCHECK</title>
77<indexterm zone="G3D-MODEL-NOCHECK:CAPS"><primary>G3D_MODEL_NOCHECK</primary></indexterm><programlisting>#define G3D_MODEL_NOCHECK (1 &lt;&lt; 3)
78</programlisting>
79<para>
80The common checks should be disabled. The checks include:
81<itemizedlist>
82<listitem>faces have at least 3 indices</listitem>
83<listitem>face indices are &lt;= number of vertices</listitem>
84<listitem>material of faces is not NULL</listitem>
85</itemizedlist></para>
86<para>
87
88</para></refsect2>
89<refsect2 id="G3D-MODEL-OPTIMIZE:CAPS" role="macro">
90<title>G3D_MODEL_OPTIMIZE</title>
91<indexterm zone="G3D-MODEL-OPTIMIZE:CAPS"><primary>G3D_MODEL_OPTIMIZE</primary></indexterm><programlisting>#define G3D_MODEL_OPTIMIZE (1 &lt;&lt; 2)
92</programlisting>
93<para>
94The model material/object/face lists should be serialized to some private
95arrays (deprecated).</para>
96<para>
97
98</para></refsect2>
99<refsect2 id="G3D-MODEL-SCALE:CAPS" role="macro">
100<title>G3D_MODEL_SCALE</title>
101<indexterm zone="G3D-MODEL-SCALE:CAPS"><primary>G3D_MODEL_SCALE</primary></indexterm><programlisting>#define G3D_MODEL_SCALE (1 &lt;&lt; 0)
102</programlisting>
103<para>
104The model should be scaled to a maximum extension of +/- 10.0.</para>
105<para>
106
107</para></refsect2>
108<refsect2 id="G3DModel" role="struct">
109<title>G3DModel</title>
110<indexterm zone="G3DModel"><primary>G3DModel</primary></indexterm><programlisting>typedef struct {
111 gchar *filename;
112 GSList *materials;
113 GSList *objects;
114} G3DModel;
115</programlisting>
116<para>
117A 3D model.</para>
118<para>
119
120</para><variablelist role="struct">
121<varlistentry>
122<term><link linkend="gchar">gchar</link>&nbsp;*<structfield>filename</structfield>;</term>
123<listitem><simpara> file name or URI of loaded model, may be set by application
124</simpara></listitem>
125</varlistentry>
126<varlistentry>
127<term><link linkend="GSList">GSList</link>&nbsp;*<structfield>materials</structfield>;</term>
128<listitem><simpara> list of materials (<link linkend="G3DMaterial"><type>G3DMaterial</type></link>)
129</simpara></listitem>
130</varlistentry>
131<varlistentry>
132<term><link linkend="GSList">GSList</link>&nbsp;*<structfield>objects</structfield>;</term>
133<listitem><simpara> list of objects (<link linkend="G3DObject"><type>G3DObject</type></link>)
134</simpara></listitem>
135</varlistentry>
136</variablelist></refsect2>
137<refsect2 id="g3d-model-new" role="function">
138<title>g3d_model_new ()</title>
139<indexterm zone="g3d-model-new"><primary>g3d_model_new</primary></indexterm><programlisting><link linkend="G3DModel">G3DModel</link>* g3d_model_new (void);</programlisting>
140<para>
141This functions allocates and initializes a new G3DModel.</para>
142<para>
143
144</para><variablelist role="params">
145<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a newly allocated G3DModel
146</simpara></listitem></varlistentry>
147</variablelist></refsect2>
148<refsect2 id="g3d-model-load" role="function">
149<title>g3d_model_load ()</title>
150<indexterm zone="g3d-model-load"><primary>g3d_model_load</primary></indexterm><programlisting><link linkend="G3DModel">G3DModel</link>* g3d_model_load (<link linkend="G3DContext">G3DContext</link> *context,
151 const <link linkend="gchar">gchar</link> *filename);</programlisting>
152<para>
153Loads a model from a file. The model is checked, centered, resized,
154optimized.</para>
155<para>
156
157</para><variablelist role="params">
158<varlistentry><term><parameter>context</parameter>&nbsp;:</term>
159<listitem><simpara> a valid context
160</simpara></listitem></varlistentry>
161<varlistentry><term><parameter>filename</parameter>&nbsp;:</term>
162<listitem><simpara> the file name of the model to load
163</simpara></listitem></varlistentry>
164<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the loaded model or NULL in case of an error
165</simpara></listitem></varlistentry>
166</variablelist></refsect2>
167<refsect2 id="g3d-model-load-full" role="function">
168<title>g3d_model_load_full ()</title>
169<indexterm zone="g3d-model-load-full"><primary>g3d_model_load_full</primary></indexterm><programlisting><link linkend="G3DModel">G3DModel</link>* g3d_model_load_full (<link linkend="G3DContext">G3DContext</link> *context,
170 const <link linkend="gchar">gchar</link> *filename,
171 <link linkend="guint32">guint32</link> flags);</programlisting>
172<para>
173Loads a model from a file. Depending on <parameter>flags</parameter> the model is checked,
174centered, resized, optimized.</para>
175<para>
176
177</para><variablelist role="params">
178<varlistentry><term><parameter>context</parameter>&nbsp;:</term>
179<listitem><simpara> a valid context
180</simpara></listitem></varlistentry>
181<varlistentry><term><parameter>filename</parameter>&nbsp;:</term>
182<listitem><simpara> the file name of the model to load
183</simpara></listitem></varlistentry>
184<varlistentry><term><parameter>flags</parameter>&nbsp;:</term>
185<listitem><simpara> object manipulation flags
186</simpara></listitem></varlistentry>
187<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the loaded model or NULL in case of an error.
188</simpara></listitem></varlistentry>
189</variablelist></refsect2>
190<refsect2 id="g3d-model-check" role="function">
191<title>g3d_model_check ()</title>
192<indexterm zone="g3d-model-check"><primary>g3d_model_check</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_model_check (<link linkend="G3DModel">G3DModel</link> *model);</programlisting>
193<para>
194Checks whether a model returned by plugin is valid.</para>
195<para>
196
197</para><variablelist role="params">
198<varlistentry><term><parameter>model</parameter>&nbsp;:</term>
199<listitem><simpara> the model to check
200</simpara></listitem></varlistentry>
201<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE on error
202</simpara></listitem></varlistentry>
203</variablelist></refsect2>
204<refsect2 id="g3d-model-center" role="function">
205<title>g3d_model_center ()</title>
206<indexterm zone="g3d-model-center"><primary>g3d_model_center</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_model_center (<link linkend="G3DModel">G3DModel</link> *model);</programlisting>
207<para>
208Translates all object coordinates that the object center is at (0, 0, 0)</para>
209<para>
210
211</para><variablelist role="params">
212<varlistentry><term><parameter>model</parameter>&nbsp;:</term>
213<listitem><simpara> the model to center
214</simpara></listitem></varlistentry>
215<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE on error
216</simpara></listitem></varlistentry>
217</variablelist></refsect2>
218<refsect2 id="g3d-model-transform" role="function">
219<title>g3d_model_transform ()</title>
220<indexterm zone="g3d-model-transform"><primary>g3d_model_transform</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_model_transform (<link linkend="G3DModel">G3DModel</link> *model,
221 <link linkend="G3DMatrix">G3DMatrix</link> *matrix);</programlisting>
222<para>
223Transform all toplevel objects in model with matrix.</para>
224<para>
225
226</para><variablelist role="params">
227<varlistentry><term><parameter>model</parameter>&nbsp;:</term>
228<listitem><simpara> the model
229</simpara></listitem></varlistentry>
230<varlistentry><term><parameter>matrix</parameter>&nbsp;:</term>
231<listitem><simpara> transformation matrix
232</simpara></listitem></varlistentry>
233<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else
234</simpara></listitem></varlistentry>
235</variablelist></refsect2>
236<refsect2 id="g3d-model-clear" role="function">
237<title>g3d_model_clear ()</title>
238<indexterm zone="g3d-model-clear"><primary>g3d_model_clear</primary></indexterm><programlisting><link linkend="void">void</link> g3d_model_clear (<link linkend="G3DModel">G3DModel</link> *model);</programlisting>
239<para>
240Removes all objects from a model.</para>
241<para>
242
243</para><variablelist role="params">
244<varlistentry><term><parameter>model</parameter>&nbsp;:</term>
245<listitem><simpara> the model to clear
246</simpara></listitem></varlistentry>
247</variablelist></refsect2>
248<refsect2 id="g3d-model-free" role="function">
249<title>g3d_model_free ()</title>
250<indexterm zone="g3d-model-free"><primary>g3d_model_free</primary></indexterm><programlisting><link linkend="void">void</link> g3d_model_free (<link linkend="G3DModel">G3DModel</link> *model);</programlisting>
251<para>
252Frees all memory allocated for the model including all objects, materials
253and textures.</para>
254<para>
255
256</para><variablelist role="params">
257<varlistentry><term><parameter>model</parameter>&nbsp;:</term>
258<listitem><simpara> the model to free
259</simpara></listitem></varlistentry>
260</variablelist></refsect2>
261<refsect2 id="g3d-model-get-object-by-name" role="function">
262<title>g3d_model_get_object_by_name ()</title>
263<indexterm zone="g3d-model-get-object-by-name"><primary>g3d_model_get_object_by_name</primary></indexterm><programlisting><link linkend="G3DObject">G3DObject</link>* g3d_model_get_object_by_name (<link linkend="G3DModel">G3DModel</link> *model,
264 const <link linkend="gchar">gchar</link> *name);</programlisting>
265<para>
266Searches the object tree for an object with the given name.</para>
267<para>
268
269</para><variablelist role="params">
270<varlistentry><term><parameter>model</parameter>&nbsp;:</term>
271<listitem><simpara> the model containing all objects
272</simpara></listitem></varlistentry>
273<varlistentry><term><parameter>name</parameter>&nbsp;:</term>
274<listitem><simpara> the name of the requested object
275</simpara></listitem></varlistentry>
276<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the requested object or NULL if non was found
277</simpara></listitem></varlistentry>
278</variablelist></refsect2>
279
280</refsect1>
281
282
283
284
285</refentry>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/xml/object.xml b/src/others/mimesh/libg3d-0.0.8/doc/api/xml/object.xml
new file mode 100644
index 0000000..5aa5baa
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/xml/object.xml
@@ -0,0 +1,301 @@
1<?xml version="1.0"?>
2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
4<refentry id="libg3d-object">
5<refmeta>
6<refentrytitle role="top_of_page" id="libg3d-object.top_of_page">object</refentrytitle>
7<manvolnum>3</manvolnum>
8<refmiscinfo>LIBG3D Library</refmiscinfo>
9</refmeta>
10
11<refnamediv>
12<refname>object</refname>
13<refpurpose>Object manipulation</refpurpose>
14<!--[<xref linkend="desc" endterm="desc.title"/>]-->
15</refnamediv>
16
17<refsynopsisdiv id="libg3d-object.synopsis" role="synopsis">
18<title role="synopsis.title">Synopsis</title>
19
20<synopsis>
21
22#include &lt;g3d/object.h&gt;
23
24 <link linkend="G3DObject">G3DObject</link>;
25 <link linkend="G3DTransformation">G3DTransformation</link>;
26<link linkend="void">void</link> <link linkend="g3d-object-free">g3d_object_free</link> (<link linkend="G3DObject">G3DObject</link> *object);
27<link linkend="gdouble">gdouble</link> <link linkend="g3d-object-radius">g3d_object_radius</link> (<link linkend="G3DObject">G3DObject</link> *object);
28<link linkend="gboolean">gboolean</link> <link linkend="g3d-object-scale">g3d_object_scale</link> (<link linkend="G3DObject">G3DObject</link> *object,
29 <link linkend="G3DFloat">G3DFloat</link> scale);
30<link linkend="gboolean">gboolean</link> <link linkend="g3d-object-transform">g3d_object_transform</link> (<link linkend="G3DObject">G3DObject</link> *object,
31 <link linkend="G3DMatrix">G3DMatrix</link> *matrix);
32<link linkend="gboolean">gboolean</link> <link linkend="g3d-object-transform-normals">g3d_object_transform_normals</link> (<link linkend="G3DObject">G3DObject</link> *object,
33 <link linkend="G3DMatrix">G3DMatrix</link> *matrix);
34<link linkend="G3DObject">G3DObject</link>* <link linkend="g3d-object-duplicate">g3d_object_duplicate</link> (<link linkend="G3DObject">G3DObject</link> *object);
35<link linkend="gboolean">gboolean</link> <link linkend="g3d-object-optimize">g3d_object_optimize</link> (<link linkend="G3DObject">G3DObject</link> *object);
36<link linkend="gboolean">gboolean</link> <link linkend="g3d-object-smooth">g3d_object_smooth</link> (<link linkend="G3DObject">G3DObject</link> *object);
37<link linkend="gboolean">gboolean</link> <link linkend="g3d-object-merge">g3d_object_merge</link> (<link linkend="G3DObject">G3DObject</link> *o1,
38 <link linkend="G3DObject">G3DObject</link> *o2);
39</synopsis>
40</refsynopsisdiv>
41
42
43
44
45
46
47
48
49
50<refsect1 id="libg3d-object.description" role="desc">
51<title role="desc.title">Description</title>
52<para>
53Objects are parts of a model. In most file formats vertices and faces are
54grouped in some way into objects. Objects can be hierarchical, so what a
55model contains is basically an object tree.</para>
56<para>
57
58</para>
59</refsect1>
60
61<refsect1 id="libg3d-object.details" role="details">
62<title role="details.title">Details</title>
63<refsect2 id="G3DObject" role="struct">
64<title>G3DObject</title>
65<indexterm zone="G3DObject"><primary>G3DObject</primary></indexterm><programlisting>typedef struct {
66 gchar *name;
67
68 GSList *materials;
69 GSList *faces;
70 GSList *objects;
71
72 /* transformation, may be NULL */
73 G3DTransformation *transformation;
74
75 /* don't render this object */
76 gboolean hide;
77
78 /* vertices */
79 guint32 vertex_count;
80 G3DVector *vertex_data;
81} G3DObject;
82</programlisting>
83<para>
84A three-dimensional object.</para>
85<para>
86
87</para><variablelist role="struct">
88<varlistentry>
89<term><link linkend="gchar">gchar</link>&nbsp;*<structfield>name</structfield>;</term>
90<listitem><simpara> name of object
91</simpara></listitem>
92</varlistentry>
93<varlistentry>
94<term><link linkend="GSList">GSList</link>&nbsp;*<structfield>materials</structfield>;</term>
95<listitem><simpara> list of materials
96</simpara></listitem>
97</varlistentry>
98<varlistentry>
99<term><link linkend="GSList">GSList</link>&nbsp;*<structfield>faces</structfield>;</term>
100<listitem><simpara> list of faces
101</simpara></listitem>
102</varlistentry>
103<varlistentry>
104<term><link linkend="GSList">GSList</link>&nbsp;*<structfield>objects</structfield>;</term>
105<listitem><simpara> list of sub-objects
106</simpara></listitem>
107</varlistentry>
108<varlistentry>
109<term><link linkend="G3DTransformation">G3DTransformation</link>&nbsp;*<structfield>transformation</structfield>;</term>
110<listitem><simpara> optional transformation
111</simpara></listitem>
112</varlistentry>
113<varlistentry>
114<term><link linkend="gboolean">gboolean</link>&nbsp;<structfield>hide</structfield>;</term>
115<listitem><simpara> flag to disable object rendering
116</simpara></listitem>
117</varlistentry>
118<varlistentry>
119<term><link linkend="guint32">guint32</link>&nbsp;<structfield>vertex_count</structfield>;</term>
120<listitem><simpara> number of vertices
121</simpara></listitem>
122</varlistentry>
123<varlistentry>
124<term><link linkend="G3DVector">G3DVector</link>&nbsp;*<structfield>vertex_data</structfield>;</term>
125<listitem><simpara> vertex vector data
126</simpara></listitem>
127</varlistentry>
128</variablelist></refsect2>
129<refsect2 id="G3DTransformation" role="struct">
130<title>G3DTransformation</title>
131<indexterm zone="G3DTransformation"><primary>G3DTransformation</primary></indexterm><programlisting>typedef struct {
132 G3DMatrix matrix[16];
133 guint32 flags;
134} G3DTransformation;
135</programlisting>
136<para>
137A three-dimensional matrix transformation object.</para>
138<para>
139
140</para><variablelist role="struct">
141<varlistentry>
142<term><link linkend="G3DMatrix">G3DMatrix</link>&nbsp;<structfield>matrix</structfield>[16];</term>
143<listitem><simpara> the transformation matrix
144</simpara></listitem>
145</varlistentry>
146<varlistentry>
147<term><link linkend="guint32">guint32</link>&nbsp;<structfield>flags</structfield>;</term>
148<listitem><simpara> flags
149</simpara></listitem>
150</varlistentry>
151</variablelist></refsect2>
152<refsect2 id="g3d-object-free" role="function">
153<title>g3d_object_free ()</title>
154<indexterm zone="g3d-object-free"><primary>g3d_object_free</primary></indexterm><programlisting><link linkend="void">void</link> g3d_object_free (<link linkend="G3DObject">G3DObject</link> *object);</programlisting>
155<para>
156Frees all memory allocated for that object.</para>
157<para>
158
159</para><variablelist role="params">
160<varlistentry><term><parameter>object</parameter>&nbsp;:</term>
161<listitem><simpara> the object to free
162</simpara></listitem></varlistentry>
163</variablelist></refsect2>
164<refsect2 id="g3d-object-radius" role="function">
165<title>g3d_object_radius ()</title>
166<indexterm zone="g3d-object-radius"><primary>g3d_object_radius</primary></indexterm><programlisting><link linkend="gdouble">gdouble</link> g3d_object_radius (<link linkend="G3DObject">G3DObject</link> *object);</programlisting>
167<para>
168Calculates the radius of the object. This is the maximum from the
169center to a vertex.</para>
170<para>
171
172</para><variablelist role="params">
173<varlistentry><term><parameter>object</parameter>&nbsp;:</term>
174<listitem><simpara> the object to measure
175</simpara></listitem></varlistentry>
176<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the radius of the given object
177</simpara></listitem></varlistentry>
178</variablelist></refsect2>
179<refsect2 id="g3d-object-scale" role="function">
180<title>g3d_object_scale ()</title>
181<indexterm zone="g3d-object-scale"><primary>g3d_object_scale</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_object_scale (<link linkend="G3DObject">G3DObject</link> *object,
182 <link linkend="G3DFloat">G3DFloat</link> scale);</programlisting>
183<para>
184Resizes the object by the factor <parameter>scale</parameter>.</para>
185<para>
186
187</para><variablelist role="params">
188<varlistentry><term><parameter>object</parameter>&nbsp;:</term>
189<listitem><simpara> the object to scale
190</simpara></listitem></varlistentry>
191<varlistentry><term><parameter>scale</parameter>&nbsp;:</term>
192<listitem><simpara> scale factor
193</simpara></listitem></varlistentry>
194<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else
195</simpara></listitem></varlistentry>
196</variablelist></refsect2>
197<refsect2 id="g3d-object-transform" role="function">
198<title>g3d_object_transform ()</title>
199<indexterm zone="g3d-object-transform"><primary>g3d_object_transform</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_object_transform (<link linkend="G3DObject">G3DObject</link> *object,
200 <link linkend="G3DMatrix">G3DMatrix</link> *matrix);</programlisting>
201<para>
202Multiplies all vertices of the object with the transformation matrix.</para>
203<para>
204
205</para><variablelist role="params">
206<varlistentry><term><parameter>object</parameter>&nbsp;:</term>
207<listitem><simpara> the object to transform
208</simpara></listitem></varlistentry>
209<varlistentry><term><parameter>matrix</parameter>&nbsp;:</term>
210<listitem><simpara> the transformation matrix
211</simpara></listitem></varlistentry>
212<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else
213</simpara></listitem></varlistentry>
214</variablelist></refsect2>
215<refsect2 id="g3d-object-transform-normals" role="function">
216<title>g3d_object_transform_normals ()</title>
217<indexterm zone="g3d-object-transform-normals"><primary>g3d_object_transform_normals</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_object_transform_normals (<link linkend="G3DObject">G3DObject</link> *object,
218 <link linkend="G3DMatrix">G3DMatrix</link> *matrix);</programlisting>
219<para>
220Multiplies all normals of the object with the transformation matrix.</para>
221<para>
222
223</para><variablelist role="params">
224<varlistentry><term><parameter>object</parameter>&nbsp;:</term>
225<listitem><simpara> the object to transform
226</simpara></listitem></varlistentry>
227<varlistentry><term><parameter>matrix</parameter>&nbsp;:</term>
228<listitem><simpara> the transformation matrix
229</simpara></listitem></varlistentry>
230<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else
231</simpara></listitem></varlistentry>
232</variablelist></refsect2>
233<refsect2 id="g3d-object-duplicate" role="function">
234<title>g3d_object_duplicate ()</title>
235<indexterm zone="g3d-object-duplicate"><primary>g3d_object_duplicate</primary></indexterm><programlisting><link linkend="G3DObject">G3DObject</link>* g3d_object_duplicate (<link linkend="G3DObject">G3DObject</link> *object);</programlisting>
236<para>
237Duplicates an object with all vertices, faces and materials.</para>
238<para>
239
240</para><variablelist role="params">
241<varlistentry><term><parameter>object</parameter>&nbsp;:</term>
242<listitem><simpara> the object to duplicate
243</simpara></listitem></varlistentry>
244<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the new clone object
245</simpara></listitem></varlistentry>
246</variablelist></refsect2>
247<refsect2 id="g3d-object-optimize" role="function">
248<title>g3d_object_optimize ()</title>
249<indexterm zone="g3d-object-optimize"><primary>g3d_object_optimize</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_object_optimize (<link linkend="G3DObject">G3DObject</link> *object);</programlisting>
250<para>
251Puts all vertex and face information into special arrays for faster
252rendering. It is deprecated and should not be used.</para>
253<para>
254
255</para><variablelist role="params">
256<varlistentry><term><parameter>object</parameter>&nbsp;:</term>
257<listitem><simpara> the object to optimize
258</simpara></listitem></varlistentry>
259<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else
260</simpara></listitem></varlistentry>
261</variablelist></refsect2>
262<refsect2 id="g3d-object-smooth" role="function">
263<title>g3d_object_smooth ()</title>
264<indexterm zone="g3d-object-smooth"><primary>g3d_object_smooth</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_object_smooth (<link linkend="G3DObject">G3DObject</link> *object);</programlisting>
265<para>
266FIXME: unimplemented.</para>
267<para>
268
269</para><variablelist role="params">
270<varlistentry><term><parameter>object</parameter>&nbsp;:</term>
271<listitem><simpara> the object to smooth
272</simpara></listitem></varlistentry>
273<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else
274</simpara></listitem></varlistentry>
275</variablelist></refsect2>
276<refsect2 id="g3d-object-merge" role="function">
277<title>g3d_object_merge ()</title>
278<indexterm zone="g3d-object-merge"><primary>g3d_object_merge</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_object_merge (<link linkend="G3DObject">G3DObject</link> *o1,
279 <link linkend="G3DObject">G3DObject</link> *o2);</programlisting>
280<para>
281Merges both objects into <parameter>o1</parameter>.
282FIXME: needs cleanup</para>
283<para>
284
285</para><variablelist role="params">
286<varlistentry><term><parameter>o1</parameter>&nbsp;:</term>
287<listitem><simpara> first and target object
288</simpara></listitem></varlistentry>
289<varlistentry><term><parameter>o2</parameter>&nbsp;:</term>
290<listitem><simpara> second object
291</simpara></listitem></varlistentry>
292<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else
293</simpara></listitem></varlistentry>
294</variablelist></refsect2>
295
296</refsect1>
297
298
299
300
301</refentry>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/xml/plugins.xml b/src/others/mimesh/libg3d-0.0.8/doc/api/xml/plugins.xml
new file mode 100644
index 0000000..567293e
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/xml/plugins.xml
@@ -0,0 +1,423 @@
1<?xml version="1.0"?>
2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
4<refentry id="libg3d-plugins">
5<refmeta>
6<refentrytitle role="top_of_page" id="libg3d-plugins.top_of_page">plugins</refentrytitle>
7<manvolnum>3</manvolnum>
8<refmiscinfo>LIBG3D Library</refmiscinfo>
9</refmeta>
10
11<refnamediv>
12<refname>plugins</refname>
13<refpurpose>G3DPlugin interface</refpurpose>
14<!--[<xref linkend="desc" endterm="desc.title"/>]-->
15</refnamediv>
16
17<refsynopsisdiv id="libg3d-plugins.synopsis" role="synopsis">
18<title role="synopsis.title">Synopsis</title>
19
20<synopsis>
21
22#include &lt;g3d/plugins.h&gt;
23
24enum <link linkend="G3DPluginType">G3DPluginType</link>;
25<link linkend="gpointer">gpointer</link> (<link linkend="G3DPluginInitFunc">*G3DPluginInitFunc</link>) (<link linkend="G3DContext">G3DContext</link> *context);
26<link linkend="void">void</link> (<link linkend="G3DPluginCleanupFunc">*G3DPluginCleanupFunc</link>) (<link linkend="gpointer">gpointer</link> user_data);
27<link linkend="gboolean">gboolean</link> (<link linkend="G3DPluginLoadModelFunc">*G3DPluginLoadModelFunc</link>) (<link linkend="G3DContext">G3DContext</link> *context,
28 const <link linkend="gchar">gchar</link> *filename,
29 <link linkend="G3DModel">G3DModel</link> *model,
30 <link linkend="gpointer">gpointer</link> user_data);
31<link linkend="gboolean">gboolean</link> (<link linkend="G3DPluginLoadModelFromStreamFunc">*G3DPluginLoadModelFromStreamFunc</link>) (<link linkend="G3DContext">G3DContext</link> *context,
32 <link linkend="G3DStream">G3DStream</link> *stream,
33 <link linkend="G3DModel">G3DModel</link> *model,
34 <link linkend="gpointer">gpointer</link> user_data);
35<link linkend="gboolean">gboolean</link> (<link linkend="G3DPluginLoadImageFunc">*G3DPluginLoadImageFunc</link>) (<link linkend="G3DContext">G3DContext</link> *context,
36 const <link linkend="gchar">gchar</link> *filename,
37 <link linkend="G3DImage">G3DImage</link> *image,
38 <link linkend="gpointer">gpointer</link> user_data);
39<link linkend="gboolean">gboolean</link> (<link linkend="G3DPluginLoadImageStreamFunc">*G3DPluginLoadImageStreamFunc</link>) (<link linkend="G3DContext">G3DContext</link> *context,
40 <link linkend="G3DStream">G3DStream</link> *stream,
41 <link linkend="G3DImage">G3DImage</link> *image,
42 <link linkend="gpointer">gpointer</link> user_data);
43<link linkend="gchar">gchar</link>* (<link linkend="G3DPluginGetDescFunc">*G3DPluginGetDescFunc</link>) (<link linkend="G3DContext">G3DContext</link> *context);
44<link linkend="gchar">gchar</link>** (<link linkend="G3DPluginGetExtFunc">*G3DPluginGetExtFunc</link>) (<link linkend="G3DContext">G3DContext</link> *context);
45 <link linkend="G3DPlugin">G3DPlugin</link>;
46<link linkend="gboolean">gboolean</link> <link linkend="g3d-plugins-init">g3d_plugins_init</link> (<link linkend="G3DContext">G3DContext</link> *context);
47<link linkend="void">void</link> <link linkend="g3d-plugins-cleanup">g3d_plugins_cleanup</link> (<link linkend="G3DContext">G3DContext</link> *context);
48<link linkend="gboolean">gboolean</link> <link linkend="g3d-plugins-load-model">g3d_plugins_load_model</link> (<link linkend="G3DContext">G3DContext</link> *context,
49 const <link linkend="gchar">gchar</link> *filename,
50 <link linkend="G3DModel">G3DModel</link> *model);
51<link linkend="gboolean">gboolean</link> <link linkend="g3d-plugins-load-model-from-stream">g3d_plugins_load_model_from_stream</link> (<link linkend="G3DContext">G3DContext</link> *context,
52 <link linkend="G3DStream">G3DStream</link> *stream,
53 <link linkend="G3DModel">G3DModel</link> *model);
54<link linkend="gboolean">gboolean</link> <link linkend="g3d-plugins-load-image">g3d_plugins_load_image</link> (<link linkend="G3DContext">G3DContext</link> *context,
55 const <link linkend="gchar">gchar</link> *filename,
56 <link linkend="G3DImage">G3DImage</link> *image);
57<link linkend="gboolean">gboolean</link> <link linkend="g3d-plugins-load-image-from-stream">g3d_plugins_load_image_from_stream</link> (<link linkend="G3DContext">G3DContext</link> *context,
58 <link linkend="G3DStream">G3DStream</link> *stream,
59 <link linkend="G3DImage">G3DImage</link> *image);
60<link linkend="gchar">gchar</link>** <link linkend="g3d-plugins-get-image-extensions">g3d_plugins_get_image_extensions</link> (<link linkend="G3DContext">G3DContext</link> *context);
61</synopsis>
62</refsynopsisdiv>
63
64
65
66
67
68
69
70
71
72<refsect1 id="libg3d-plugins.description" role="desc">
73<title role="desc.title">Description</title>
74<para>
75Direct interaction with the plugin system is normally not needed when using
76libg3d. It may be required when writing a plugin which should load a
77<link linkend="G3DImage"><type>G3DImage</type></link> or a <link linkend="G3DModel"><type>G3DModel</type></link> with another plugin.</para>
78<para>
79
80</para>
81</refsect1>
82
83<refsect1 id="libg3d-plugins.details" role="details">
84<title role="details.title">Details</title>
85<refsect2 id="G3DPluginType" role="enum">
86<title>enum G3DPluginType</title>
87<indexterm zone="G3DPluginType"><primary>G3DPluginType</primary></indexterm><programlisting>typedef enum {
88 G3D_PLUGIN_UNKNOWN = 0x00,
89 G3D_PLUGIN_IMPORT,
90 G3D_PLUGIN_IMAGE
91} G3DPluginType;
92</programlisting>
93<para>
94Type of plugin.</para>
95<para>
96
97</para><variablelist role="enum">
98<varlistentry id="G3D-PLUGIN-UNKNOWN:CAPS" role="constant">
99<term><literal>G3D_PLUGIN_UNKNOWN</literal></term>
100<listitem><simpara> unknown plugin type
101</simpara></listitem>
102</varlistentry>
103<varlistentry id="G3D-PLUGIN-IMPORT:CAPS" role="constant">
104<term><literal>G3D_PLUGIN_IMPORT</literal></term>
105<listitem><simpara> model import plugin
106</simpara></listitem>
107</varlistentry>
108<varlistentry id="G3D-PLUGIN-IMAGE:CAPS" role="constant">
109<term><literal>G3D_PLUGIN_IMAGE</literal></term>
110<listitem><simpara> image loading plugin
111</simpara></listitem>
112</varlistentry>
113</variablelist></refsect2>
114<refsect2 id="G3DPluginInitFunc" role="function">
115<title>G3DPluginInitFunc ()</title>
116<indexterm zone="G3DPluginInitFunc"><primary>G3DPluginInitFunc</primary></indexterm><programlisting><link linkend="gpointer">gpointer</link> (*G3DPluginInitFunc) (<link linkend="G3DContext">G3DContext</link> *context);</programlisting>
117<para>
118Prototype for <link linkend="plugin-init"><function>plugin_init()</function></link>.</para>
119<para>
120
121</para><variablelist role="params">
122<varlistentry><term><parameter>context</parameter>&nbsp;:</term>
123<listitem><simpara> the context
124</simpara></listitem></varlistentry>
125<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> opaque plugin data.
126</simpara></listitem></varlistentry>
127</variablelist></refsect2>
128<refsect2 id="G3DPluginCleanupFunc" role="function">
129<title>G3DPluginCleanupFunc ()</title>
130<indexterm zone="G3DPluginCleanupFunc"><primary>G3DPluginCleanupFunc</primary></indexterm><programlisting><link linkend="void">void</link> (*G3DPluginCleanupFunc) (<link linkend="gpointer">gpointer</link> user_data);</programlisting>
131<para>
132Prototype for <link linkend="plugin-cleanup"><function>plugin_cleanup()</function></link>.</para>
133<para>
134
135</para><variablelist role="params">
136<varlistentry><term><parameter>user_data</parameter>&nbsp;:</term>
137<listitem><simpara> opaque plugin data
138</simpara></listitem></varlistentry>
139</variablelist></refsect2>
140<refsect2 id="G3DPluginLoadModelFunc" role="function">
141<title>G3DPluginLoadModelFunc ()</title>
142<indexterm zone="G3DPluginLoadModelFunc"><primary>G3DPluginLoadModelFunc</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> (*G3DPluginLoadModelFunc) (<link linkend="G3DContext">G3DContext</link> *context,
143 const <link linkend="gchar">gchar</link> *filename,
144 <link linkend="G3DModel">G3DModel</link> *model,
145 <link linkend="gpointer">gpointer</link> user_data);</programlisting>
146<para>
147Prototype for <link linkend="plugin-load-model"><function>plugin_load_model()</function></link>.</para>
148<para>
149
150</para><variablelist role="params">
151<varlistentry><term><parameter>context</parameter>&nbsp;:</term>
152<listitem><simpara> the context
153</simpara></listitem></varlistentry>
154<varlistentry><term><parameter>filename</parameter>&nbsp;:</term>
155<listitem><simpara> file name of model
156</simpara></listitem></varlistentry>
157<varlistentry><term><parameter>model</parameter>&nbsp;:</term>
158<listitem><simpara> the model structure to fill
159</simpara></listitem></varlistentry>
160<varlistentry><term><parameter>user_data</parameter>&nbsp;:</term>
161<listitem><simpara> opaque plugin data
162</simpara></listitem></varlistentry>
163<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else.
164</simpara></listitem></varlistentry>
165</variablelist></refsect2>
166<refsect2 id="G3DPluginLoadModelFromStreamFunc" role="function">
167<title>G3DPluginLoadModelFromStreamFunc ()</title>
168<indexterm zone="G3DPluginLoadModelFromStreamFunc"><primary>G3DPluginLoadModelFromStreamFunc</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> (*G3DPluginLoadModelFromStreamFunc) (<link linkend="G3DContext">G3DContext</link> *context,
169 <link linkend="G3DStream">G3DStream</link> *stream,
170 <link linkend="G3DModel">G3DModel</link> *model,
171 <link linkend="gpointer">gpointer</link> user_data);</programlisting>
172<para>
173Prototype for <link linkend="plugin-load-model-from-stream"><function>plugin_load_model_from_stream()</function></link>.</para>
174<para>
175
176</para><variablelist role="params">
177<varlistentry><term><parameter>context</parameter>&nbsp;:</term>
178<listitem><simpara> the context
179</simpara></listitem></varlistentry>
180<varlistentry><term><parameter>stream</parameter>&nbsp;:</term>
181<listitem><simpara> the stream to load from
182</simpara></listitem></varlistentry>
183<varlistentry><term><parameter>model</parameter>&nbsp;:</term>
184<listitem><simpara> the model structure to fill
185</simpara></listitem></varlistentry>
186<varlistentry><term><parameter>user_data</parameter>&nbsp;:</term>
187<listitem><simpara> opaque plugin data
188</simpara></listitem></varlistentry>
189<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else.
190</simpara></listitem></varlistentry>
191</variablelist></refsect2>
192<refsect2 id="G3DPluginLoadImageFunc" role="function">
193<title>G3DPluginLoadImageFunc ()</title>
194<indexterm zone="G3DPluginLoadImageFunc"><primary>G3DPluginLoadImageFunc</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> (*G3DPluginLoadImageFunc) (<link linkend="G3DContext">G3DContext</link> *context,
195 const <link linkend="gchar">gchar</link> *filename,
196 <link linkend="G3DImage">G3DImage</link> *image,
197 <link linkend="gpointer">gpointer</link> user_data);</programlisting>
198<para>
199Prototype for <link linkend="plugin-load-image"><function>plugin_load_image()</function></link>.</para>
200<para>
201
202</para><variablelist role="params">
203<varlistentry><term><parameter>context</parameter>&nbsp;:</term>
204<listitem><simpara> the context
205</simpara></listitem></varlistentry>
206<varlistentry><term><parameter>filename</parameter>&nbsp;:</term>
207<listitem><simpara> file name of image
208</simpara></listitem></varlistentry>
209<varlistentry><term><parameter>image</parameter>&nbsp;:</term>
210<listitem><simpara> image structure to fill
211</simpara></listitem></varlistentry>
212<varlistentry><term><parameter>user_data</parameter>&nbsp;:</term>
213<listitem><simpara> opaque plugin data
214</simpara></listitem></varlistentry>
215<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else.
216</simpara></listitem></varlistentry>
217</variablelist></refsect2>
218<refsect2 id="G3DPluginLoadImageStreamFunc" role="function">
219<title>G3DPluginLoadImageStreamFunc ()</title>
220<indexterm zone="G3DPluginLoadImageStreamFunc"><primary>G3DPluginLoadImageStreamFunc</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> (*G3DPluginLoadImageStreamFunc) (<link linkend="G3DContext">G3DContext</link> *context,
221 <link linkend="G3DStream">G3DStream</link> *stream,
222 <link linkend="G3DImage">G3DImage</link> *image,
223 <link linkend="gpointer">gpointer</link> user_data);</programlisting>
224<para>
225Prototype for <link linkend="plugin-load-image-from-stream"><function>plugin_load_image_from_stream()</function></link>.</para>
226<para>
227
228</para><variablelist role="params">
229<varlistentry><term><parameter>context</parameter>&nbsp;:</term>
230<listitem><simpara> the context
231</simpara></listitem></varlistentry>
232<varlistentry><term><parameter>stream</parameter>&nbsp;:</term>
233<listitem><simpara> the stream to load from
234</simpara></listitem></varlistentry>
235<varlistentry><term><parameter>image</parameter>&nbsp;:</term>
236<listitem><simpara> image structure to fill
237</simpara></listitem></varlistentry>
238<varlistentry><term><parameter>user_data</parameter>&nbsp;:</term>
239<listitem><simpara> opaque plugin data
240</simpara></listitem></varlistentry>
241<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else.
242</simpara></listitem></varlistentry>
243</variablelist></refsect2>
244<refsect2 id="G3DPluginGetDescFunc" role="function">
245<title>G3DPluginGetDescFunc ()</title>
246<indexterm zone="G3DPluginGetDescFunc"><primary>G3DPluginGetDescFunc</primary></indexterm><programlisting><link linkend="gchar">gchar</link>* (*G3DPluginGetDescFunc) (<link linkend="G3DContext">G3DContext</link> *context);</programlisting>
247<para>
248Prototype for <link linkend="plugin-description"><function>plugin_description()</function></link>.</para>
249<para>
250
251</para><variablelist role="params">
252<varlistentry><term><parameter>context</parameter>&nbsp;:</term>
253<listitem><simpara> the context
254</simpara></listitem></varlistentry>
255<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a newly-allocated string containing the description of the plugin.
256</simpara></listitem></varlistentry>
257</variablelist></refsect2>
258<refsect2 id="G3DPluginGetExtFunc" role="function">
259<title>G3DPluginGetExtFunc ()</title>
260<indexterm zone="G3DPluginGetExtFunc"><primary>G3DPluginGetExtFunc</primary></indexterm><programlisting><link linkend="gchar">gchar</link>** (*G3DPluginGetExtFunc) (<link linkend="G3DContext">G3DContext</link> *context);</programlisting>
261<para>
262Prototype for <link linkend="plugin-extensions"><function>plugin_extensions()</function></link>.</para>
263<para>
264
265</para><variablelist role="params">
266<varlistentry><term><parameter>context</parameter>&nbsp;:</term>
267<listitem><simpara> the context
268</simpara></listitem></varlistentry>
269<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> NULL-terminated list of file extensions supported by this plugin.
270Free with <link linkend="g-strfreev"><function>g_strfreev()</function></link>.
271</simpara></listitem></varlistentry>
272</variablelist></refsect2>
273<refsect2 id="G3DPlugin" role="struct">
274<title>G3DPlugin</title>
275<indexterm zone="G3DPlugin"><primary>G3DPlugin</primary></indexterm><programlisting>typedef struct {
276} G3DPlugin;
277</programlisting>
278<para>
279A libg3d plugin.</para>
280<para>
281
282</para></refsect2>
283<refsect2 id="g3d-plugins-init" role="function">
284<title>g3d_plugins_init ()</title>
285<indexterm zone="g3d-plugins-init"><primary>g3d_plugins_init</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_plugins_init (<link linkend="G3DContext">G3DContext</link> *context);</programlisting>
286<para>
287Initializes the plugin system. This is implicitly done when using
288<link linkend="g3d-context-new"><function>g3d_context_new()</function></link>.</para>
289<para>
290
291</para><variablelist role="params">
292<varlistentry><term><parameter>context</parameter>&nbsp;:</term>
293<listitem><simpara> a valid <link linkend="G3DContext"><type>G3DContext</type></link>
294</simpara></listitem></varlistentry>
295<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else.
296</simpara></listitem></varlistentry>
297</variablelist></refsect2>
298<refsect2 id="g3d-plugins-cleanup" role="function">
299<title>g3d_plugins_cleanup ()</title>
300<indexterm zone="g3d-plugins-cleanup"><primary>g3d_plugins_cleanup</primary></indexterm><programlisting><link linkend="void">void</link> g3d_plugins_cleanup (<link linkend="G3DContext">G3DContext</link> *context);</programlisting>
301<para>
302Clean up the plugin system. Usually done by <link linkend="g3d-context-free"><function>g3d_context_free()</function></link>.</para>
303<para>
304
305</para><variablelist role="params">
306<varlistentry><term><parameter>context</parameter>&nbsp;:</term>
307<listitem><simpara> a valid context
308</simpara></listitem></varlistentry>
309</variablelist></refsect2>
310<refsect2 id="g3d-plugins-load-model" role="function">
311<title>g3d_plugins_load_model ()</title>
312<indexterm zone="g3d-plugins-load-model"><primary>g3d_plugins_load_model</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_plugins_load_model (<link linkend="G3DContext">G3DContext</link> *context,
313 const <link linkend="gchar">gchar</link> *filename,
314 <link linkend="G3DModel">G3DModel</link> *model);</programlisting>
315<para>
316Try to load a model from file using import plugins.</para>
317<para>
318
319</para><variablelist role="params">
320<varlistentry><term><parameter>context</parameter>&nbsp;:</term>
321<listitem><simpara> a valid context
322</simpara></listitem></varlistentry>
323<varlistentry><term><parameter>filename</parameter>&nbsp;:</term>
324<listitem><simpara> file name of model to load
325</simpara></listitem></varlistentry>
326<varlistentry><term><parameter>model</parameter>&nbsp;:</term>
327<listitem><simpara> model structure to fill
328</simpara></listitem></varlistentry>
329<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else.
330</simpara></listitem></varlistentry>
331</variablelist></refsect2>
332<refsect2 id="g3d-plugins-load-model-from-stream" role="function">
333<title>g3d_plugins_load_model_from_stream ()</title>
334<indexterm zone="g3d-plugins-load-model-from-stream"><primary>g3d_plugins_load_model_from_stream</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_plugins_load_model_from_stream (<link linkend="G3DContext">G3DContext</link> *context,
335 <link linkend="G3DStream">G3DStream</link> *stream,
336 <link linkend="G3DModel">G3DModel</link> *model);</programlisting>
337<para>
338Try to load a model from stream using import plugins.</para>
339<para>
340
341</para><variablelist role="params">
342<varlistentry><term><parameter>context</parameter>&nbsp;:</term>
343<listitem><simpara> a valid context
344</simpara></listitem></varlistentry>
345<varlistentry><term><parameter>stream</parameter>&nbsp;:</term>
346<listitem><simpara> stream to load model from
347</simpara></listitem></varlistentry>
348<varlistentry><term><parameter>model</parameter>&nbsp;:</term>
349<listitem><simpara> model structure to fill
350</simpara></listitem></varlistentry>
351<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else.
352</simpara></listitem></varlistentry>
353</variablelist></refsect2>
354<refsect2 id="g3d-plugins-load-image" role="function">
355<title>g3d_plugins_load_image ()</title>
356<indexterm zone="g3d-plugins-load-image"><primary>g3d_plugins_load_image</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_plugins_load_image (<link linkend="G3DContext">G3DContext</link> *context,
357 const <link linkend="gchar">gchar</link> *filename,
358 <link linkend="G3DImage">G3DImage</link> *image);</programlisting>
359<para>
360Try to load an image from file using import plugins.</para>
361<para>
362
363</para><variablelist role="params">
364<varlistentry><term><parameter>context</parameter>&nbsp;:</term>
365<listitem><simpara> a valid context
366</simpara></listitem></varlistentry>
367<varlistentry><term><parameter>filename</parameter>&nbsp;:</term>
368<listitem><simpara> file name of image to load
369</simpara></listitem></varlistentry>
370<varlistentry><term><parameter>image</parameter>&nbsp;:</term>
371<listitem><simpara> image structure to fill
372</simpara></listitem></varlistentry>
373<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else.
374</simpara></listitem></varlistentry>
375</variablelist></refsect2>
376<refsect2 id="g3d-plugins-load-image-from-stream" role="function">
377<title>g3d_plugins_load_image_from_stream ()</title>
378<indexterm zone="g3d-plugins-load-image-from-stream"><primary>g3d_plugins_load_image_from_stream</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_plugins_load_image_from_stream (<link linkend="G3DContext">G3DContext</link> *context,
379 <link linkend="G3DStream">G3DStream</link> *stream,
380 <link linkend="G3DImage">G3DImage</link> *image);</programlisting>
381<para>
382Try to load an image from stream using import plugins.</para>
383<para>
384
385</para><variablelist role="params">
386<varlistentry><term><parameter>context</parameter>&nbsp;:</term>
387<listitem><simpara> a valid context
388</simpara></listitem></varlistentry>
389<varlistentry><term><parameter>stream</parameter>&nbsp;:</term>
390<listitem><simpara> stream to load image from
391</simpara></listitem></varlistentry>
392<varlistentry><term><parameter>image</parameter>&nbsp;:</term>
393<listitem><simpara> image structure to fill
394</simpara></listitem></varlistentry>
395<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else.
396</simpara></listitem></varlistentry>
397</variablelist></refsect2>
398<refsect2 id="g3d-plugins-get-image-extensions" role="function">
399<title>g3d_plugins_get_image_extensions ()</title>
400<indexterm zone="g3d-plugins-get-image-extensions"><primary>g3d_plugins_get_image_extensions</primary></indexterm><programlisting><link linkend="gchar">gchar</link>** g3d_plugins_get_image_extensions (<link linkend="G3DContext">G3DContext</link> *context);</programlisting>
401<para>
402Get the supported image type extensions.</para>
403<para>
404
405</para><variablelist role="params">
406<varlistentry><term><parameter>context</parameter>&nbsp;:</term>
407<listitem><simpara> a valid context
408</simpara></listitem></varlistentry>
409<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> NULL-terminated list of image file extensions supported by this
410plugin. Free with <link linkend="g-strfreev"><function>g_strfreev()</function></link>.
411</simpara></listitem></varlistentry>
412</variablelist></refsect2>
413
414</refsect1>
415
416
417
418<refsect1 id="libg3d-plugins.see-also">
419<title>See Also</title>
420<link linkend="G3DPlugin"><type>G3DPlugin</type></link>
421</refsect1>
422
423</refentry>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/xml/primitive.xml b/src/others/mimesh/libg3d-0.0.8/doc/api/xml/primitive.xml
new file mode 100644
index 0000000..bb2f8c8
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/xml/primitive.xml
@@ -0,0 +1,302 @@
1<?xml version="1.0"?>
2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
4<refentry id="libg3d-primitive">
5<refmeta>
6<refentrytitle role="top_of_page" id="libg3d-primitive.top_of_page">primitive</refentrytitle>
7<manvolnum>3</manvolnum>
8<refmiscinfo>LIBG3D Library</refmiscinfo>
9</refmeta>
10
11<refnamediv>
12<refname>primitive</refname>
13<refpurpose>3D primitive generation functions</refpurpose>
14<!--[<xref linkend="desc" endterm="desc.title"/>]-->
15</refnamediv>
16
17<refsynopsisdiv id="libg3d-primitive.synopsis" role="synopsis">
18<title role="synopsis.title">Synopsis</title>
19
20<synopsis>
21
22#include &lt;g3d/primitive.h&gt;
23
24<link linkend="G3DObject">G3DObject</link>* <link linkend="g3d-primitive-cube">g3d_primitive_cube</link> (<link linkend="G3DFloat">G3DFloat</link> width,
25 <link linkend="G3DFloat">G3DFloat</link> height,
26 <link linkend="G3DFloat">G3DFloat</link> depth,
27 <link linkend="G3DMaterial">G3DMaterial</link> *material);
28<link linkend="G3DObject">G3DObject</link>* <link linkend="g3d-primitive-box">g3d_primitive_box</link> (<link linkend="G3DFloat">G3DFloat</link> width,
29 <link linkend="G3DFloat">G3DFloat</link> height,
30 <link linkend="G3DFloat">G3DFloat</link> depth,
31 <link linkend="G3DMaterial">G3DMaterial</link> *material);
32<link linkend="G3DObject">G3DObject</link>* <link linkend="g3d-primitive-box-strip-2d">g3d_primitive_box_strip_2d</link> (<link linkend="guint32">guint32</link> vcnt,
33 <link linkend="gdouble">gdouble</link> *vdata,
34 <link linkend="gdouble">gdouble</link> height,
35 <link linkend="gdouble">gdouble</link> width,
36 <link linkend="G3DMaterial">G3DMaterial</link> *material);
37<link linkend="G3DObject">G3DObject</link>* <link linkend="g3d-primitive-mesh">g3d_primitive_mesh</link> (<link linkend="guint32">guint32</link> m,
38 <link linkend="guint32">guint32</link> n,
39 <link linkend="gboolean">gboolean</link> wrap_m,
40 <link linkend="gboolean">gboolean</link> wrap_n,
41 <link linkend="G3DMaterial">G3DMaterial</link> *material);
42<link linkend="G3DObject">G3DObject</link>* <link linkend="g3d-primitive-cylinder">g3d_primitive_cylinder</link> (<link linkend="G3DFloat">G3DFloat</link> radius,
43 <link linkend="G3DFloat">G3DFloat</link> height,
44 <link linkend="guint32">guint32</link> sides,
45 <link linkend="gboolean">gboolean</link> top,
46 <link linkend="gboolean">gboolean</link> bottom,
47 <link linkend="G3DMaterial">G3DMaterial</link> *material);
48<link linkend="G3DObject">G3DObject</link>* <link linkend="g3d-primitive-tube">g3d_primitive_tube</link> (<link linkend="G3DFloat">G3DFloat</link> r_in,
49 <link linkend="G3DFloat">G3DFloat</link> r_out,
50 <link linkend="G3DFloat">G3DFloat</link> height,
51 <link linkend="guint32">guint32</link> sides,
52 <link linkend="gboolean">gboolean</link> top,
53 <link linkend="gboolean">gboolean</link> bottom,
54 <link linkend="G3DMaterial">G3DMaterial</link> *material);
55<link linkend="G3DObject">G3DObject</link>* <link linkend="g3d-primitive-sphere">g3d_primitive_sphere</link> (<link linkend="G3DFloat">G3DFloat</link> radius,
56 <link linkend="guint32">guint32</link> vseg,
57 <link linkend="guint32">guint32</link> hseg,
58 <link linkend="G3DMaterial">G3DMaterial</link> *material);
59</synopsis>
60</refsynopsisdiv>
61
62
63
64
65
66
67
68
69
70<refsect1 id="libg3d-primitive.description" role="desc">
71<title role="desc.title">Description</title>
72<para>
73Primitives are objects containing basic 3D geometrical structures. A
74variety of them can be created using these functions.</para>
75<para>
76
77</para>
78</refsect1>
79
80<refsect1 id="libg3d-primitive.details" role="details">
81<title role="details.title">Details</title>
82<refsect2 id="g3d-primitive-cube" role="function">
83<title>g3d_primitive_cube ()</title>
84<indexterm zone="g3d-primitive-cube"><primary>g3d_primitive_cube</primary></indexterm><programlisting><link linkend="G3DObject">G3DObject</link>* g3d_primitive_cube (<link linkend="G3DFloat">G3DFloat</link> width,
85 <link linkend="G3DFloat">G3DFloat</link> height,
86 <link linkend="G3DFloat">G3DFloat</link> depth,
87 <link linkend="G3DMaterial">G3DMaterial</link> *material);</programlisting>
88<para>
89Generates an object containing a box. It is deprecated and now a wrapper for
90<link linkend="g3d-primitive-box"><function>g3d_primitive_box()</function></link>.</para>
91<para>
92
93</para><variablelist role="params">
94<varlistentry><term><parameter>width</parameter>&nbsp;:</term>
95<listitem><simpara> the width of the box
96</simpara></listitem></varlistentry>
97<varlistentry><term><parameter>height</parameter>&nbsp;:</term>
98<listitem><simpara> the height of the box
99</simpara></listitem></varlistentry>
100<varlistentry><term><parameter>depth</parameter>&nbsp;:</term>
101<listitem><simpara> the depth of the box
102</simpara></listitem></varlistentry>
103<varlistentry><term><parameter>material</parameter>&nbsp;:</term>
104<listitem><simpara> the material to use for all faces
105</simpara></listitem></varlistentry>
106<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the box object
107</simpara></listitem></varlistentry>
108</variablelist></refsect2>
109<refsect2 id="g3d-primitive-box" role="function">
110<title>g3d_primitive_box ()</title>
111<indexterm zone="g3d-primitive-box"><primary>g3d_primitive_box</primary></indexterm><programlisting><link linkend="G3DObject">G3DObject</link>* g3d_primitive_box (<link linkend="G3DFloat">G3DFloat</link> width,
112 <link linkend="G3DFloat">G3DFloat</link> height,
113 <link linkend="G3DFloat">G3DFloat</link> depth,
114 <link linkend="G3DMaterial">G3DMaterial</link> *material);</programlisting>
115<para>
116Generates an object containing a box.</para>
117<para>
118
119</para><variablelist role="params">
120<varlistentry><term><parameter>width</parameter>&nbsp;:</term>
121<listitem><simpara> the width of the box
122</simpara></listitem></varlistentry>
123<varlistentry><term><parameter>height</parameter>&nbsp;:</term>
124<listitem><simpara> the height of the box
125</simpara></listitem></varlistentry>
126<varlistentry><term><parameter>depth</parameter>&nbsp;:</term>
127<listitem><simpara> the depth of the box
128</simpara></listitem></varlistentry>
129<varlistentry><term><parameter>material</parameter>&nbsp;:</term>
130<listitem><simpara> the material to use for all faces
131</simpara></listitem></varlistentry>
132<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the box object
133</simpara></listitem></varlistentry>
134</variablelist></refsect2>
135<refsect2 id="g3d-primitive-box-strip-2d" role="function">
136<title>g3d_primitive_box_strip_2d ()</title>
137<indexterm zone="g3d-primitive-box-strip-2d"><primary>g3d_primitive_box_strip_2d</primary></indexterm><programlisting><link linkend="G3DObject">G3DObject</link>* g3d_primitive_box_strip_2d (<link linkend="guint32">guint32</link> vcnt,
138 <link linkend="gdouble">gdouble</link> *vdata,
139 <link linkend="gdouble">gdouble</link> height,
140 <link linkend="gdouble">gdouble</link> width,
141 <link linkend="G3DMaterial">G3DMaterial</link> *material);</programlisting>
142<para>
143Generates a strip of box segments defined by corner center points
144using two-dimensional data (x/z plane).</para>
145<para>
146
147</para><variablelist role="params">
148<varlistentry><term><parameter>vcnt</parameter>&nbsp;:</term>
149<listitem><simpara> number of control points
150</simpara></listitem></varlistentry>
151<varlistentry><term><parameter>vdata</parameter>&nbsp;:</term>
152<listitem><simpara> 2-dimensional control point data (2 * vcnt * gdouble)
153</simpara></listitem></varlistentry>
154<varlistentry><term><parameter>height</parameter>&nbsp;:</term>
155<listitem><simpara> height of resulting strip (y component)
156</simpara></listitem></varlistentry>
157<varlistentry><term><parameter>width</parameter>&nbsp;:</term>
158<listitem><simpara> width of strip (corner diameter)
159</simpara></listitem></varlistentry>
160<varlistentry><term><parameter>material</parameter>&nbsp;:</term>
161<listitem><simpara> material to use for faces
162</simpara></listitem></varlistentry>
163<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> strip object
164</simpara></listitem></varlistentry>
165</variablelist></refsect2>
166<refsect2 id="g3d-primitive-mesh" role="function">
167<title>g3d_primitive_mesh ()</title>
168<indexterm zone="g3d-primitive-mesh"><primary>g3d_primitive_mesh</primary></indexterm><programlisting><link linkend="G3DObject">G3DObject</link>* g3d_primitive_mesh (<link linkend="guint32">guint32</link> m,
169 <link linkend="guint32">guint32</link> n,
170 <link linkend="gboolean">gboolean</link> wrap_m,
171 <link linkend="gboolean">gboolean</link> wrap_n,
172 <link linkend="G3DMaterial">G3DMaterial</link> *material);</programlisting>
173<para>
174Generate a mesh consisting of m * n vertices. The vertex data is
175initialized with (0.0, 0.0, 0.0) and has to be set to something
176useful.</para>
177<para>
178
179</para><variablelist role="params">
180<varlistentry><term><parameter>m</parameter>&nbsp;:</term>
181<listitem><simpara> number of vertices in m direction
182</simpara></listitem></varlistentry>
183<varlistentry><term><parameter>n</parameter>&nbsp;:</term>
184<listitem><simpara> number of vertices in n direction
185</simpara></listitem></varlistentry>
186<varlistentry><term><parameter>wrap_m</parameter>&nbsp;:</term>
187<listitem><simpara> wrap around in m direction
188</simpara></listitem></varlistentry>
189<varlistentry><term><parameter>wrap_n</parameter>&nbsp;:</term>
190<listitem><simpara> wrap around in n direction
191</simpara></listitem></varlistentry>
192<varlistentry><term><parameter>material</parameter>&nbsp;:</term>
193<listitem><simpara> material to use for faces
194</simpara></listitem></varlistentry>
195<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> mesh object
196</simpara></listitem></varlistentry>
197</variablelist></refsect2>
198<refsect2 id="g3d-primitive-cylinder" role="function">
199<title>g3d_primitive_cylinder ()</title>
200<indexterm zone="g3d-primitive-cylinder"><primary>g3d_primitive_cylinder</primary></indexterm><programlisting><link linkend="G3DObject">G3DObject</link>* g3d_primitive_cylinder (<link linkend="G3DFloat">G3DFloat</link> radius,
201 <link linkend="G3DFloat">G3DFloat</link> height,
202 <link linkend="guint32">guint32</link> sides,
203 <link linkend="gboolean">gboolean</link> top,
204 <link linkend="gboolean">gboolean</link> bottom,
205 <link linkend="G3DMaterial">G3DMaterial</link> *material);</programlisting>
206<para>
207Generates an object containing a cylinder.</para>
208<para>
209
210</para><variablelist role="params">
211<varlistentry><term><parameter>radius</parameter>&nbsp;:</term>
212<listitem><simpara> the radius of the cylinder
213</simpara></listitem></varlistentry>
214<varlistentry><term><parameter>height</parameter>&nbsp;:</term>
215<listitem><simpara> the height of the side faces
216</simpara></listitem></varlistentry>
217<varlistentry><term><parameter>sides</parameter>&nbsp;:</term>
218<listitem><simpara> number of side faces (number of circle segments)
219</simpara></listitem></varlistentry>
220<varlistentry><term><parameter>top</parameter>&nbsp;:</term>
221<listitem><simpara> add top faces
222</simpara></listitem></varlistentry>
223<varlistentry><term><parameter>bottom</parameter>&nbsp;:</term>
224<listitem><simpara> add bottom faces
225</simpara></listitem></varlistentry>
226<varlistentry><term><parameter>material</parameter>&nbsp;:</term>
227<listitem><simpara> material to use for faces
228</simpara></listitem></varlistentry>
229<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> cylinder object
230</simpara></listitem></varlistentry>
231</variablelist></refsect2>
232<refsect2 id="g3d-primitive-tube" role="function">
233<title>g3d_primitive_tube ()</title>
234<indexterm zone="g3d-primitive-tube"><primary>g3d_primitive_tube</primary></indexterm><programlisting><link linkend="G3DObject">G3DObject</link>* g3d_primitive_tube (<link linkend="G3DFloat">G3DFloat</link> r_in,
235 <link linkend="G3DFloat">G3DFloat</link> r_out,
236 <link linkend="G3DFloat">G3DFloat</link> height,
237 <link linkend="guint32">guint32</link> sides,
238 <link linkend="gboolean">gboolean</link> top,
239 <link linkend="gboolean">gboolean</link> bottom,
240 <link linkend="G3DMaterial">G3DMaterial</link> *material);</programlisting>
241<para>
242Generates an object containing a tube (a cylinder with a hole).</para>
243<para>
244
245</para><variablelist role="params">
246<varlistentry><term><parameter>r_in</parameter>&nbsp;:</term>
247<listitem><simpara> inner radius
248</simpara></listitem></varlistentry>
249<varlistentry><term><parameter>r_out</parameter>&nbsp;:</term>
250<listitem><simpara> outer radius
251</simpara></listitem></varlistentry>
252<varlistentry><term><parameter>height</parameter>&nbsp;:</term>
253<listitem><simpara> the height of the side faces
254</simpara></listitem></varlistentry>
255<varlistentry><term><parameter>sides</parameter>&nbsp;:</term>
256<listitem><simpara> number of side faces (number of circle segments)
257</simpara></listitem></varlistentry>
258<varlistentry><term><parameter>top</parameter>&nbsp;:</term>
259<listitem><simpara> add top faces
260</simpara></listitem></varlistentry>
261<varlistentry><term><parameter>bottom</parameter>&nbsp;:</term>
262<listitem><simpara> add bottom faces
263</simpara></listitem></varlistentry>
264<varlistentry><term><parameter>material</parameter>&nbsp;:</term>
265<listitem><simpara> material to use for faces
266</simpara></listitem></varlistentry>
267<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> tube object
268</simpara></listitem></varlistentry>
269</variablelist></refsect2>
270<refsect2 id="g3d-primitive-sphere" role="function">
271<title>g3d_primitive_sphere ()</title>
272<indexterm zone="g3d-primitive-sphere"><primary>g3d_primitive_sphere</primary></indexterm><programlisting><link linkend="G3DObject">G3DObject</link>* g3d_primitive_sphere (<link linkend="G3DFloat">G3DFloat</link> radius,
273 <link linkend="guint32">guint32</link> vseg,
274 <link linkend="guint32">guint32</link> hseg,
275 <link linkend="G3DMaterial">G3DMaterial</link> *material);</programlisting>
276<para>
277Generates an object containing a sphere.</para>
278<para>
279
280</para><variablelist role="params">
281<varlistentry><term><parameter>radius</parameter>&nbsp;:</term>
282<listitem><simpara> radius
283</simpara></listitem></varlistentry>
284<varlistentry><term><parameter>vseg</parameter>&nbsp;:</term>
285<listitem><simpara> number of vertical segments
286</simpara></listitem></varlistentry>
287<varlistentry><term><parameter>hseg</parameter>&nbsp;:</term>
288<listitem><simpara> number of horizontal segments
289</simpara></listitem></varlistentry>
290<varlistentry><term><parameter>material</parameter>&nbsp;:</term>
291<listitem><simpara> material to use for faces
292</simpara></listitem></varlistentry>
293<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> sphere object
294</simpara></listitem></varlistentry>
295</variablelist></refsect2>
296
297</refsect1>
298
299
300
301
302</refentry>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/xml/quat.xml b/src/others/mimesh/libg3d-0.0.8/doc/api/xml/quat.xml
new file mode 100644
index 0000000..efb65d4
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/xml/quat.xml
@@ -0,0 +1,220 @@
1<?xml version="1.0"?>
2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
4<refentry id="libg3d-quat">
5<refmeta>
6<refentrytitle role="top_of_page" id="libg3d-quat.top_of_page">quat</refentrytitle>
7<manvolnum>3</manvolnum>
8<refmiscinfo>LIBG3D Library</refmiscinfo>
9</refmeta>
10
11<refnamediv>
12<refname>quat</refname>
13<refpurpose>quaternion helpers</refpurpose>
14<!--[<xref linkend="desc" endterm="desc.title"/>]-->
15</refnamediv>
16
17<refsynopsisdiv id="libg3d-quat.synopsis" role="synopsis">
18<title role="synopsis.title">Synopsis</title>
19
20<synopsis>
21
22#include &lt;g3d/quat.h&gt;
23
24typedef <link linkend="G3DQuat">G3DQuat</link>;
25<link linkend="gboolean">gboolean</link> <link linkend="g3d-quat-add">g3d_quat_add</link> (<link linkend="G3DQuat">G3DQuat</link> *qr,
26 <link linkend="G3DQuat">G3DQuat</link> *q1,
27 <link linkend="G3DQuat">G3DQuat</link> *q2);
28<link linkend="gboolean">gboolean</link> <link linkend="g3d-quat-normalize">g3d_quat_normalize</link> (<link linkend="G3DQuat">G3DQuat</link> *q);
29<link linkend="gboolean">gboolean</link> <link linkend="g3d-quat-rotate">g3d_quat_rotate</link> (<link linkend="G3DQuat">G3DQuat</link> *q,
30 <link linkend="G3DVector">G3DVector</link> *axis,
31 <link linkend="G3DFloat">G3DFloat</link> angle);
32<link linkend="gboolean">gboolean</link> <link linkend="g3d-quat-to-matrix">g3d_quat_to_matrix</link> (<link linkend="G3DQuat">G3DQuat</link> *q,
33 <link linkend="G3DMatrix">G3DMatrix</link> *matrix);
34<link linkend="gboolean">gboolean</link> <link linkend="g3d-quat-to-rotation-xyz">g3d_quat_to_rotation_xyz</link> (<link linkend="G3DQuat">G3DQuat</link> *q,
35 <link linkend="G3DFloat">G3DFloat</link> *rx,
36 <link linkend="G3DFloat">G3DFloat</link> *ry,
37 <link linkend="G3DFloat">G3DFloat</link> *rz);
38<link linkend="gboolean">gboolean</link> <link linkend="g3d-quat-trackball">g3d_quat_trackball</link> (<link linkend="G3DQuat">G3DQuat</link> *q,
39 <link linkend="G3DFloat">G3DFloat</link> x1,
40 <link linkend="G3DFloat">G3DFloat</link> y1,
41 <link linkend="G3DFloat">G3DFloat</link> x2,
42 <link linkend="G3DFloat">G3DFloat</link> y2,
43 <link linkend="G3DFloat">G3DFloat</link> r);
44</synopsis>
45</refsynopsisdiv>
46
47
48
49
50
51
52
53
54
55<refsect1 id="libg3d-quat.description" role="desc">
56<title role="desc.title">Description</title>
57<para>
58</para>
59<para>
60
61</para>
62</refsect1>
63
64<refsect1 id="libg3d-quat.details" role="details">
65<title role="details.title">Details</title>
66<refsect2 id="G3DQuat" role="typedef">
67<title>G3DQuat</title>
68<indexterm zone="G3DQuat"><primary>G3DQuat</primary></indexterm><programlisting>typedef G3DFloat G3DQuat;
69</programlisting>
70<para>
71Quaternion element type.</para>
72<para>
73
74</para></refsect2>
75<refsect2 id="g3d-quat-add" role="function">
76<title>g3d_quat_add ()</title>
77<indexterm zone="g3d-quat-add"><primary>g3d_quat_add</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_quat_add (<link linkend="G3DQuat">G3DQuat</link> *qr,
78 <link linkend="G3DQuat">G3DQuat</link> *q1,
79 <link linkend="G3DQuat">G3DQuat</link> *q2);</programlisting>
80<para>
81Add two quats.</para>
82<para>
83
84</para><variablelist role="params">
85<varlistentry><term><parameter>qr</parameter>&nbsp;:</term>
86<listitem><simpara> result quat
87</simpara></listitem></varlistentry>
88<varlistentry><term><parameter>q1</parameter>&nbsp;:</term>
89<listitem><simpara> first quat
90</simpara></listitem></varlistentry>
91<varlistentry><term><parameter>q2</parameter>&nbsp;:</term>
92<listitem><simpara> second quat
93</simpara></listitem></varlistentry>
94<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else
95</simpara></listitem></varlistentry>
96</variablelist></refsect2>
97<refsect2 id="g3d-quat-normalize" role="function">
98<title>g3d_quat_normalize ()</title>
99<indexterm zone="g3d-quat-normalize"><primary>g3d_quat_normalize</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_quat_normalize (<link linkend="G3DQuat">G3DQuat</link> *q);</programlisting>
100<para>
101normalize the quaternion to a length of 1.0.</para>
102<para>
103
104</para><variablelist role="params">
105<varlistentry><term><parameter>q</parameter>&nbsp;:</term>
106<listitem><simpara> a quaternion
107</simpara></listitem></varlistentry>
108<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else
109</simpara></listitem></varlistentry>
110</variablelist></refsect2>
111<refsect2 id="g3d-quat-rotate" role="function">
112<title>g3d_quat_rotate ()</title>
113<indexterm zone="g3d-quat-rotate"><primary>g3d_quat_rotate</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_quat_rotate (<link linkend="G3DQuat">G3DQuat</link> *q,
114 <link linkend="G3DVector">G3DVector</link> *axis,
115 <link linkend="G3DFloat">G3DFloat</link> angle);</programlisting>
116<para>
117Encode a rotation around an axis into quaternion.</para>
118<para>
119
120</para><variablelist role="params">
121<varlistentry><term><parameter>q</parameter>&nbsp;:</term>
122<listitem><simpara> resulting quat
123</simpara></listitem></varlistentry>
124<varlistentry><term><parameter>axis</parameter>&nbsp;:</term>
125<listitem><simpara> rotation axis
126</simpara></listitem></varlistentry>
127<varlistentry><term><parameter>angle</parameter>&nbsp;:</term>
128<listitem><simpara> rotation angle
129</simpara></listitem></varlistentry>
130<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else
131</simpara></listitem></varlistentry>
132</variablelist></refsect2>
133<refsect2 id="g3d-quat-to-matrix" role="function">
134<title>g3d_quat_to_matrix ()</title>
135<indexterm zone="g3d-quat-to-matrix"><primary>g3d_quat_to_matrix</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_quat_to_matrix (<link linkend="G3DQuat">G3DQuat</link> *q,
136 <link linkend="G3DMatrix">G3DMatrix</link> *matrix);</programlisting>
137<para>
138Convert a quaternion to a transformation matrix.</para>
139<para>
140
141</para><variablelist role="params">
142<varlistentry><term><parameter>q</parameter>&nbsp;:</term>
143<listitem><simpara> source quat
144</simpara></listitem></varlistentry>
145<varlistentry><term><parameter>matrix</parameter>&nbsp;:</term>
146<listitem><simpara> resulting matrix
147</simpara></listitem></varlistentry>
148<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else
149</simpara></listitem></varlistentry>
150</variablelist></refsect2>
151<refsect2 id="g3d-quat-to-rotation-xyz" role="function">
152<title>g3d_quat_to_rotation_xyz ()</title>
153<indexterm zone="g3d-quat-to-rotation-xyz"><primary>g3d_quat_to_rotation_xyz</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_quat_to_rotation_xyz (<link linkend="G3DQuat">G3DQuat</link> *q,
154 <link linkend="G3DFloat">G3DFloat</link> *rx,
155 <link linkend="G3DFloat">G3DFloat</link> *ry,
156 <link linkend="G3DFloat">G3DFloat</link> *rz);</programlisting>
157<para>
158Calculate the rotation around the three coordinate axes from a given
159quaternion.</para>
160<para>
161
162</para><variablelist role="params">
163<varlistentry><term><parameter>q</parameter>&nbsp;:</term>
164<listitem><simpara> a quaternion
165</simpara></listitem></varlistentry>
166<varlistentry><term><parameter>rx</parameter>&nbsp;:</term>
167<listitem><simpara> rotation around x axis
168</simpara></listitem></varlistentry>
169<varlistentry><term><parameter>ry</parameter>&nbsp;:</term>
170<listitem><simpara> rotation around y axis
171</simpara></listitem></varlistentry>
172<varlistentry><term><parameter>rz</parameter>&nbsp;:</term>
173<listitem><simpara> rotation around z axis
174</simpara></listitem></varlistentry>
175<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else
176</simpara></listitem></varlistentry>
177</variablelist></refsect2>
178<refsect2 id="g3d-quat-trackball" role="function">
179<title>g3d_quat_trackball ()</title>
180<indexterm zone="g3d-quat-trackball"><primary>g3d_quat_trackball</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_quat_trackball (<link linkend="G3DQuat">G3DQuat</link> *q,
181 <link linkend="G3DFloat">G3DFloat</link> x1,
182 <link linkend="G3DFloat">G3DFloat</link> y1,
183 <link linkend="G3DFloat">G3DFloat</link> x2,
184 <link linkend="G3DFloat">G3DFloat</link> y2,
185 <link linkend="G3DFloat">G3DFloat</link> r);</programlisting>
186<para>
187Emulate a virtual trackball movement and return rotation as quaternion.
188The x and y values of the starting and end point of the movement have
189to be in the range -1.0 .. 1.0.</para>
190<para>
191
192</para><variablelist role="params">
193<varlistentry><term><parameter>q</parameter>&nbsp;:</term>
194<listitem><simpara> resulting quaternion
195</simpara></listitem></varlistentry>
196<varlistentry><term><parameter>x1</parameter>&nbsp;:</term>
197<listitem><simpara> x value of first point
198</simpara></listitem></varlistentry>
199<varlistentry><term><parameter>y1</parameter>&nbsp;:</term>
200<listitem><simpara> y value of first point
201</simpara></listitem></varlistentry>
202<varlistentry><term><parameter>x2</parameter>&nbsp;:</term>
203<listitem><simpara> x value of second point
204</simpara></listitem></varlistentry>
205<varlistentry><term><parameter>y2</parameter>&nbsp;:</term>
206<listitem><simpara> y value of second point
207</simpara></listitem></varlistentry>
208<varlistentry><term><parameter>r</parameter>&nbsp;:</term>
209<listitem><simpara> radius of virtual trackball, usually 0.8
210</simpara></listitem></varlistentry>
211<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else
212</simpara></listitem></varlistentry>
213</variablelist></refsect2>
214
215</refsect1>
216
217
218
219
220</refentry>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/xml/read.xml b/src/others/mimesh/libg3d-0.0.8/doc/api/xml/read.xml
new file mode 100644
index 0000000..08f1473
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/xml/read.xml
@@ -0,0 +1,218 @@
1<?xml version="1.0"?>
2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
4<refentry id="libg3d-read">
5<refmeta>
6<refentrytitle role="top_of_page" id="libg3d-read.top_of_page">read</refentrytitle>
7<manvolnum>3</manvolnum>
8<refmiscinfo>LIBG3D Library</refmiscinfo>
9</refmeta>
10
11<refnamediv>
12<refname>read</refname>
13<refpurpose>file reading abstraction (deprecated)</refpurpose>
14<!--[<xref linkend="desc" endterm="desc.title"/>]-->
15</refnamediv>
16
17<refsynopsisdiv id="libg3d-read.synopsis" role="synopsis">
18<title role="synopsis.title">Synopsis</title>
19
20<synopsis>
21
22#include &lt;g3d/read.h&gt;
23
24<link linkend="gint32">gint32</link> <link linkend="g3d-read-int8">g3d_read_int8</link> (<link linkend="FILE:CAPS">FILE</link> *f);
25<link linkend="gint32">gint32</link> <link linkend="g3d-read-int16-be">g3d_read_int16_be</link> (<link linkend="FILE:CAPS">FILE</link> *f);
26<link linkend="gint32">gint32</link> <link linkend="g3d-read-int16-le">g3d_read_int16_le</link> (<link linkend="FILE:CAPS">FILE</link> *f);
27<link linkend="gint32">gint32</link> <link linkend="g3d-read-int32-be">g3d_read_int32_be</link> (<link linkend="FILE:CAPS">FILE</link> *f);
28<link linkend="gint32">gint32</link> <link linkend="g3d-read-int32-le">g3d_read_int32_le</link> (<link linkend="FILE:CAPS">FILE</link> *f);
29<link linkend="G3DFloat">G3DFloat</link> <link linkend="g3d-read-float-be">g3d_read_float_be</link> (<link linkend="FILE:CAPS">FILE</link> *f);
30<link linkend="G3DFloat">G3DFloat</link> <link linkend="g3d-read-float-le">g3d_read_float_le</link> (<link linkend="FILE:CAPS">FILE</link> *f);
31<link linkend="G3DDouble">G3DDouble</link> <link linkend="g3d-read-double-be">g3d_read_double_be</link> (<link linkend="FILE:CAPS">FILE</link> *f);
32<link linkend="G3DDouble">G3DDouble</link> <link linkend="g3d-read-double-le">g3d_read_double_le</link> (<link linkend="FILE:CAPS">FILE</link> *f);
33<link linkend="gint32">gint32</link> <link linkend="g3d-read-cstr">g3d_read_cstr</link> (<link linkend="FILE:CAPS">FILE</link> *f,
34 <link linkend="gchar">gchar</link> *buffer,
35 <link linkend="gint32">gint32</link> max_len);
36</synopsis>
37</refsynopsisdiv>
38
39
40
41
42
43
44
45
46
47<refsect1 id="libg3d-read.description" role="desc">
48<title role="desc.title">Description</title>
49<para>
50The g3d_read_* family of functions is deprecated in favour of the <link linkend="G3DStream"><type>G3DStream</type></link>
51interface.</para>
52<para>
53
54</para>
55</refsect1>
56
57<refsect1 id="libg3d-read.details" role="details">
58<title role="details.title">Details</title>
59<refsect2 id="g3d-read-int8" role="function">
60<title>g3d_read_int8 ()</title>
61<indexterm zone="g3d-read-int8"><primary>g3d_read_int8</primary></indexterm><programlisting><link linkend="gint32">gint32</link> g3d_read_int8 (<link linkend="FILE:CAPS">FILE</link> *f);</programlisting>
62<para>
63Read a 1 byte signed integer from file.</para>
64<para>
65
66</para><variablelist role="params">
67<varlistentry><term><parameter>f</parameter>&nbsp;:</term>
68<listitem><simpara> the file to read from
69</simpara></listitem></varlistentry>
70<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> The read value, 0 in case of error
71</simpara></listitem></varlistentry>
72</variablelist></refsect2>
73<refsect2 id="g3d-read-int16-be" role="function">
74<title>g3d_read_int16_be ()</title>
75<indexterm zone="g3d-read-int16-be"><primary>g3d_read_int16_be</primary></indexterm><programlisting><link linkend="gint32">gint32</link> g3d_read_int16_be (<link linkend="FILE:CAPS">FILE</link> *f);</programlisting>
76<para>
77Read a 2 byte big-endian signed integer from file.</para>
78<para>
79
80</para><variablelist role="params">
81<varlistentry><term><parameter>f</parameter>&nbsp;:</term>
82<listitem><simpara> the file to read from
83</simpara></listitem></varlistentry>
84<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> The read value, 0 in case of error
85</simpara></listitem></varlistentry>
86</variablelist></refsect2>
87<refsect2 id="g3d-read-int16-le" role="function">
88<title>g3d_read_int16_le ()</title>
89<indexterm zone="g3d-read-int16-le"><primary>g3d_read_int16_le</primary></indexterm><programlisting><link linkend="gint32">gint32</link> g3d_read_int16_le (<link linkend="FILE:CAPS">FILE</link> *f);</programlisting>
90<para>
91Read a 2 byte little-endian signed integer from file.</para>
92<para>
93
94</para><variablelist role="params">
95<varlistentry><term><parameter>f</parameter>&nbsp;:</term>
96<listitem><simpara> the file to read from
97</simpara></listitem></varlistentry>
98<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> The read value, 0 in case of error
99</simpara></listitem></varlistentry>
100</variablelist></refsect2>
101<refsect2 id="g3d-read-int32-be" role="function">
102<title>g3d_read_int32_be ()</title>
103<indexterm zone="g3d-read-int32-be"><primary>g3d_read_int32_be</primary></indexterm><programlisting><link linkend="gint32">gint32</link> g3d_read_int32_be (<link linkend="FILE:CAPS">FILE</link> *f);</programlisting>
104<para>
105Read a 4 byte big-endian signed integer from file.</para>
106<para>
107
108</para><variablelist role="params">
109<varlistentry><term><parameter>f</parameter>&nbsp;:</term>
110<listitem><simpara> the file to read from
111</simpara></listitem></varlistentry>
112<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> The read value, 0 in case of error
113</simpara></listitem></varlistentry>
114</variablelist></refsect2>
115<refsect2 id="g3d-read-int32-le" role="function">
116<title>g3d_read_int32_le ()</title>
117<indexterm zone="g3d-read-int32-le"><primary>g3d_read_int32_le</primary></indexterm><programlisting><link linkend="gint32">gint32</link> g3d_read_int32_le (<link linkend="FILE:CAPS">FILE</link> *f);</programlisting>
118<para>
119Read a 4 byte little-endian signed integer from file.</para>
120<para>
121
122</para><variablelist role="params">
123<varlistentry><term><parameter>f</parameter>&nbsp;:</term>
124<listitem><simpara> the file to read from
125</simpara></listitem></varlistentry>
126<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> The read value, 0 in case of error
127</simpara></listitem></varlistentry>
128</variablelist></refsect2>
129<refsect2 id="g3d-read-float-be" role="function">
130<title>g3d_read_float_be ()</title>
131<indexterm zone="g3d-read-float-be"><primary>g3d_read_float_be</primary></indexterm><programlisting><link linkend="G3DFloat">G3DFloat</link> g3d_read_float_be (<link linkend="FILE:CAPS">FILE</link> *f);</programlisting>
132<para>
133Read a 4 byte big-endian floating point number from file.</para>
134<para>
135
136</para><variablelist role="params">
137<varlistentry><term><parameter>f</parameter>&nbsp;:</term>
138<listitem><simpara> the file to read from
139</simpara></listitem></varlistentry>
140<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> The read value, 0 in case of error
141</simpara></listitem></varlistentry>
142</variablelist></refsect2>
143<refsect2 id="g3d-read-float-le" role="function">
144<title>g3d_read_float_le ()</title>
145<indexterm zone="g3d-read-float-le"><primary>g3d_read_float_le</primary></indexterm><programlisting><link linkend="G3DFloat">G3DFloat</link> g3d_read_float_le (<link linkend="FILE:CAPS">FILE</link> *f);</programlisting>
146<para>
147Read a 4 byte little-endian floating point number from file.</para>
148<para>
149
150</para><variablelist role="params">
151<varlistentry><term><parameter>f</parameter>&nbsp;:</term>
152<listitem><simpara> the file to read from
153</simpara></listitem></varlistentry>
154<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> The read value, 0 in case of error
155</simpara></listitem></varlistentry>
156</variablelist></refsect2>
157<refsect2 id="g3d-read-double-be" role="function">
158<title>g3d_read_double_be ()</title>
159<indexterm zone="g3d-read-double-be"><primary>g3d_read_double_be</primary></indexterm><programlisting><link linkend="G3DDouble">G3DDouble</link> g3d_read_double_be (<link linkend="FILE:CAPS">FILE</link> *f);</programlisting>
160<para>
161Read a 8 byte big-endian double-precision floating point number from file.</para>
162<para>
163
164</para><variablelist role="params">
165<varlistentry><term><parameter>f</parameter>&nbsp;:</term>
166<listitem><simpara> the file to read from
167</simpara></listitem></varlistentry>
168<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> The read value, 0 in case of error
169</simpara></listitem></varlistentry>
170</variablelist></refsect2>
171<refsect2 id="g3d-read-double-le" role="function">
172<title>g3d_read_double_le ()</title>
173<indexterm zone="g3d-read-double-le"><primary>g3d_read_double_le</primary></indexterm><programlisting><link linkend="G3DDouble">G3DDouble</link> g3d_read_double_le (<link linkend="FILE:CAPS">FILE</link> *f);</programlisting>
174<para>
175Read a 8 byte little-endian double-precision floating point number from
176file.</para>
177<para>
178
179</para><variablelist role="params">
180<varlistentry><term><parameter>f</parameter>&nbsp;:</term>
181<listitem><simpara> the file to read from
182</simpara></listitem></varlistentry>
183<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> The read value, 0 in case of error
184</simpara></listitem></varlistentry>
185</variablelist></refsect2>
186<refsect2 id="g3d-read-cstr" role="function">
187<title>g3d_read_cstr ()</title>
188<indexterm zone="g3d-read-cstr"><primary>g3d_read_cstr</primary></indexterm><programlisting><link linkend="gint32">gint32</link> g3d_read_cstr (<link linkend="FILE:CAPS">FILE</link> *f,
189 <link linkend="gchar">gchar</link> *buffer,
190 <link linkend="gint32">gint32</link> max_len);</programlisting>
191<para>
192Read a zero-terminated string from file.</para>
193<para>
194
195</para><variablelist role="params">
196<varlistentry><term><parameter>f</parameter>&nbsp;:</term>
197<listitem><simpara> the file to read from
198</simpara></listitem></varlistentry>
199<varlistentry><term><parameter>buffer</parameter>&nbsp;:</term>
200<listitem><simpara> the buffer to store line in
201</simpara></listitem></varlistentry>
202<varlistentry><term><parameter>max_len</parameter>&nbsp;:</term>
203<listitem><simpara> maximum length of string including termination character
204</simpara></listitem></varlistentry>
205<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> number of bytes read from file.
206</simpara></listitem></varlistentry>
207</variablelist></refsect2>
208
209</refsect1>
210
211
212
213<refsect1 id="libg3d-read.see-also">
214<title>See Also</title>
215g3d_stream_open_file
216</refsect1>
217
218</refentry>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/xml/stream.xml b/src/others/mimesh/libg3d-0.0.8/doc/api/xml/stream.xml
new file mode 100644
index 0000000..99d7bfb
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/xml/stream.xml
@@ -0,0 +1,801 @@
1<?xml version="1.0"?>
2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
4<refentry id="libg3d-stream">
5<refmeta>
6<refentrytitle role="top_of_page" id="libg3d-stream.top_of_page">stream</refentrytitle>
7<manvolnum>3</manvolnum>
8<refmiscinfo>LIBG3D Library</refmiscinfo>
9</refmeta>
10
11<refnamediv>
12<refname>stream</refname>
13<refpurpose>I/O abstraction layer for plugins</refpurpose>
14<!--[<xref linkend="desc" endterm="desc.title"/>]-->
15</refnamediv>
16
17<refsynopsisdiv id="libg3d-stream.synopsis" role="synopsis">
18<title role="synopsis.title">Synopsis</title>
19
20<synopsis>
21
22#include &lt;g3d/stream.h&gt;
23
24 <link linkend="G3DStream">G3DStream</link>;
25<link linkend="G3DStream">G3DStream</link>* <link linkend="g3d-stream-open-file">g3d_stream_open_file</link> (const <link linkend="gchar">gchar</link> *filename,
26 const <link linkend="gchar">gchar</link> *mode);
27<link linkend="G3DStream">G3DStream</link>* <link linkend="g3d-stream-open-structured-file">g3d_stream_open_structured_file</link> (const <link linkend="gchar">gchar</link> *filename,
28 const <link linkend="gchar">gchar</link> *subfile);
29<link linkend="G3DStream">G3DStream</link>* <link linkend="g3d-stream-open-structured-file-from-stream">g3d_stream_open_structured_file_from_stream</link>
30 (<link linkend="G3DStream">G3DStream</link> *stream,
31 const <link linkend="gchar">gchar</link> *subfile);
32<link linkend="G3DStream">G3DStream</link>* <link linkend="g3d-stream-open-zip">g3d_stream_open_zip</link> (const <link linkend="gchar">gchar</link> *filename,
33 const <link linkend="gchar">gchar</link> *subfile);
34<link linkend="G3DStream">G3DStream</link>* <link linkend="g3d-stream-open-zip-from-stream">g3d_stream_open_zip_from_stream</link> (<link linkend="G3DStream">G3DStream</link> *stream,
35 const <link linkend="gchar">gchar</link> *subfile);
36<link linkend="G3DStream">G3DStream</link>* <link linkend="g3d-stream-open-gzip-from-stream">g3d_stream_open_gzip_from_stream</link> (<link linkend="G3DStream">G3DStream</link> *stream);
37<link linkend="G3DStream">G3DStream</link>* <link linkend="g3d-stream-from-buffer">g3d_stream_from_buffer</link> (<link linkend="guint8">guint8</link> *buffer,
38 <link linkend="gsize">gsize</link> size,
39 const <link linkend="gchar">gchar</link> *title,
40 <link linkend="gboolean">gboolean</link> free_buffer);
41<link linkend="G3DStream">G3DStream</link>* <link linkend="g3d-stream-zlib-inflate-stream">g3d_stream_zlib_inflate_stream</link> (<link linkend="G3DStream">G3DStream</link> *stream,
42 <link linkend="gsize">gsize</link> cmp_size);
43<link linkend="G3DStream">G3DStream</link>* <link linkend="g3d-stream-new-custom">g3d_stream_new_custom</link> (<link linkend="guint32">guint32</link> flags,
44 const <link linkend="gchar">gchar</link> *uri,
45 <link linkend="G3DStreamReadFunc">G3DStreamReadFunc</link> readfunc,
46 <link linkend="G3DStreamReadLineFunc">G3DStreamReadLineFunc</link> readlinefunc,
47 <link linkend="G3DStreamSeekFunc">G3DStreamSeekFunc</link> seekfunc,
48 <link linkend="G3DStreamTellFunc">G3DStreamTellFunc</link> tellfunc,
49 <link linkend="G3DStreamSizeFunc">G3DStreamSizeFunc</link> sizefunc,
50 <link linkend="G3DStreamEofFunc">G3DStreamEofFunc</link> eoffunc,
51 <link linkend="G3DStreamCloseFunc">G3DStreamCloseFunc</link> closefunc,
52 <link linkend="gpointer">gpointer</link> data);
53<link linkend="gint">gint</link> <link linkend="g3d-stream-close">g3d_stream_close</link> (<link linkend="G3DStream">G3DStream</link> *stream);
54<link linkend="gint">gint</link> <link linkend="g3d-stream-skip">g3d_stream_skip</link> (<link linkend="G3DStream">G3DStream</link> *stream,
55 <link linkend="goffset">goffset</link> offset);
56<link linkend="gint">gint</link> <link linkend="g3d-stream-seek">g3d_stream_seek</link> (<link linkend="G3DStream">G3DStream</link> *stream,
57 <link linkend="goffset">goffset</link> offset,
58 <link linkend="GSeekType">GSeekType</link> whence);
59<link linkend="goffset">goffset</link> <link linkend="g3d-stream-tell">g3d_stream_tell</link> (<link linkend="G3DStream">G3DStream</link> *stream);
60<link linkend="goffset">goffset</link> <link linkend="g3d-stream-size">g3d_stream_size</link> (<link linkend="G3DStream">G3DStream</link> *stream);
61<link linkend="gboolean">gboolean</link> <link linkend="g3d-stream-eof">g3d_stream_eof</link> (<link linkend="G3DStream">G3DStream</link> *stream);
62<link linkend="gboolean">gboolean</link> <link linkend="g3d-stream-is-seekable">g3d_stream_is_seekable</link> (<link linkend="G3DStream">G3DStream</link> *stream);
63<link linkend="gchar">gchar</link>* <link linkend="g3d-stream-get-uri">g3d_stream_get_uri</link> (<link linkend="G3DStream">G3DStream</link> *stream);
64<link linkend="guint32">guint32</link> <link linkend="g3d-stream-line">g3d_stream_line</link> (<link linkend="G3DStream">G3DStream</link> *stream);
65<link linkend="gsize">gsize</link> <link linkend="g3d-stream-read">g3d_stream_read</link> (<link linkend="G3DStream">G3DStream</link> *stream,
66 <link linkend="gpointer">gpointer</link> ptr,
67 <link linkend="gsize">gsize</link> size);
68<link linkend="gchar">gchar</link>* <link linkend="g3d-stream-read-line">g3d_stream_read_line</link> (<link linkend="G3DStream">G3DStream</link> *stream,
69 <link linkend="gchar">gchar</link> *buf,
70 <link linkend="gsize">gsize</link> size);
71<link linkend="gint32">gint32</link> <link linkend="g3d-stream-read-int8">g3d_stream_read_int8</link> (<link linkend="G3DStream">G3DStream</link> *stream);
72<link linkend="gint32">gint32</link> <link linkend="g3d-stream-read-int16-be">g3d_stream_read_int16_be</link> (<link linkend="G3DStream">G3DStream</link> *stream);
73<link linkend="gint32">gint32</link> <link linkend="g3d-stream-read-int16-le">g3d_stream_read_int16_le</link> (<link linkend="G3DStream">G3DStream</link> *stream);
74<link linkend="gint32">gint32</link> <link linkend="g3d-stream-read-int32-be">g3d_stream_read_int32_be</link> (<link linkend="G3DStream">G3DStream</link> *stream);
75<link linkend="gint32">gint32</link> <link linkend="g3d-stream-read-int32-le">g3d_stream_read_int32_le</link> (<link linkend="G3DStream">G3DStream</link> *stream);
76<link linkend="G3DFloat">G3DFloat</link> <link linkend="g3d-stream-read-float-be">g3d_stream_read_float_be</link> (<link linkend="G3DStream">G3DStream</link> *stream);
77<link linkend="G3DFloat">G3DFloat</link> <link linkend="g3d-stream-read-float-le">g3d_stream_read_float_le</link> (<link linkend="G3DStream">G3DStream</link> *stream);
78<link linkend="G3DDouble">G3DDouble</link> <link linkend="g3d-stream-read-double-be">g3d_stream_read_double_be</link> (<link linkend="G3DStream">G3DStream</link> *stream);
79<link linkend="G3DDouble">G3DDouble</link> <link linkend="g3d-stream-read-double-le">g3d_stream_read_double_le</link> (<link linkend="G3DStream">G3DStream</link> *stream);
80<link linkend="gint32">gint32</link> <link linkend="g3d-stream-read-cstr">g3d_stream_read_cstr</link> (<link linkend="G3DStream">G3DStream</link> *stream,
81 <link linkend="gchar">gchar</link> *buffer,
82 <link linkend="gint32">gint32</link> max_len);
83<link linkend="gint">gint</link> (<link linkend="G3DStreamCloseFunc">*G3DStreamCloseFunc</link>) (<link linkend="gpointer">gpointer</link> data);
84<link linkend="gboolean">gboolean</link> (<link linkend="G3DStreamEofFunc">*G3DStreamEofFunc</link>) (<link linkend="gpointer">gpointer</link> data);
85<link linkend="gsize">gsize</link> (<link linkend="G3DStreamReadFunc">*G3DStreamReadFunc</link>) (<link linkend="gpointer">gpointer</link> ptr,
86 <link linkend="gsize">gsize</link> size,
87 <link linkend="gpointer">gpointer</link> data);
88<link linkend="gchar">gchar</link>* (<link linkend="G3DStreamReadLineFunc">*G3DStreamReadLineFunc</link>) (<link linkend="gchar">gchar</link> *buf,
89 <link linkend="gsize">gsize</link> size,
90 <link linkend="gpointer">gpointer</link> data);
91<link linkend="gint">gint</link> (<link linkend="G3DStreamSeekFunc">*G3DStreamSeekFunc</link>) (<link linkend="gpointer">gpointer</link> data,
92 <link linkend="goffset">goffset</link> offset,
93 <link linkend="GSeekType">GSeekType</link> whence);
94<link linkend="goffset">goffset</link> (<link linkend="G3DStreamSizeFunc">*G3DStreamSizeFunc</link>) (<link linkend="gpointer">gpointer</link> data);
95<link linkend="goffset">goffset</link> (<link linkend="G3DStreamTellFunc">*G3DStreamTellFunc</link>) (<link linkend="gpointer">gpointer</link> data);
96</synopsis>
97</refsynopsisdiv>
98
99
100
101
102
103
104
105
106
107<refsect1 id="libg3d-stream.description" role="desc">
108<title role="desc.title">Description</title>
109<para>
110A stream is an abstraction for data input. It enables plugins to read
111data from a file, a memory buffer, a container file or some other medium.</para>
112<para>
113
114</para>
115</refsect1>
116
117<refsect1 id="libg3d-stream.details" role="details">
118<title role="details.title">Details</title>
119<refsect2 id="G3DStream" role="struct">
120<title>G3DStream</title>
121<indexterm zone="G3DStream"><primary>G3DStream</primary></indexterm><programlisting>typedef struct {
122} G3DStream;
123</programlisting>
124<para>
125An abstraction of input handling.</para>
126<para>
127
128</para></refsect2>
129<refsect2 id="g3d-stream-open-file" role="function">
130<title>g3d_stream_open_file ()</title>
131<indexterm zone="g3d-stream-open-file"><primary>g3d_stream_open_file</primary></indexterm><programlisting><link linkend="G3DStream">G3DStream</link>* g3d_stream_open_file (const <link linkend="gchar">gchar</link> *filename,
132 const <link linkend="gchar">gchar</link> *mode);</programlisting>
133<para>
134Opens a file with the C stdio routines.</para>
135<para>
136
137</para><variablelist role="params">
138<varlistentry><term><parameter>filename</parameter>&nbsp;:</term>
139<listitem><simpara> the name of the file to open
140</simpara></listitem></varlistentry>
141<varlistentry><term><parameter>mode</parameter>&nbsp;:</term>
142<listitem><simpara> the mode to open the file, as given to <link linkend="fopen"><function>fopen()</function></link>
143</simpara></listitem></varlistentry>
144<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a newly allocated <link linkend="G3DStream"><type>G3DStream</type></link> or NULL in case of an error.
145</simpara></listitem></varlistentry>
146</variablelist></refsect2>
147<refsect2 id="g3d-stream-open-structured-file" role="function">
148<title>g3d_stream_open_structured_file ()</title>
149<indexterm zone="g3d-stream-open-structured-file"><primary>g3d_stream_open_structured_file</primary></indexterm><programlisting><link linkend="G3DStream">G3DStream</link>* g3d_stream_open_structured_file (const <link linkend="gchar">gchar</link> *filename,
150 const <link linkend="gchar">gchar</link> *subfile);</programlisting>
151<para>
152Open a file within a Structured File as <link linkend="G3DStream"><type>G3DStream</type></link>.</para>
153<para>
154
155</para><variablelist role="params">
156<varlistentry><term><parameter>filename</parameter>&nbsp;:</term>
157<listitem><simpara> name of container file
158</simpara></listitem></varlistentry>
159<varlistentry><term><parameter>subfile</parameter>&nbsp;:</term>
160<listitem><simpara> name of (contained) sub-file
161</simpara></listitem></varlistentry>
162<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a newly allocated <link linkend="G3DStream"><type>G3DStream</type></link> or NULL in case of an error.
163</simpara></listitem></varlistentry>
164</variablelist></refsect2>
165<refsect2 id="g3d-stream-open-structured-file-from-stream" role="function">
166<title>g3d_stream_open_structured_file_from_stream ()</title>
167<indexterm zone="g3d-stream-open-structured-file-from-stream"><primary>g3d_stream_open_structured_file_from_stream</primary></indexterm><programlisting><link linkend="G3DStream">G3DStream</link>* g3d_stream_open_structured_file_from_stream
168 (<link linkend="G3DStream">G3DStream</link> *stream,
169 const <link linkend="gchar">gchar</link> *subfile);</programlisting>
170<para>
171Open a file within a Structured File which is opened as a stream. At the
172moment this only works for streams opened by <link linkend="g3d-stream-open-file"><function>g3d_stream_open_file()</function></link> as
173the file is directly opened again.</para>
174<para>
175
176</para><variablelist role="params">
177<varlistentry><term><parameter>stream</parameter>&nbsp;:</term>
178<listitem><simpara> stream of container file
179</simpara></listitem></varlistentry>
180<varlistentry><term><parameter>subfile</parameter>&nbsp;:</term>
181<listitem><simpara> name of (contained) sub-file
182</simpara></listitem></varlistentry>
183<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a newly allocated <link linkend="G3DStream"><type>G3DStream</type></link> or NULL in case of an error.
184</simpara></listitem></varlistentry>
185</variablelist></refsect2>
186<refsect2 id="g3d-stream-open-zip" role="function">
187<title>g3d_stream_open_zip ()</title>
188<indexterm zone="g3d-stream-open-zip"><primary>g3d_stream_open_zip</primary></indexterm><programlisting><link linkend="G3DStream">G3DStream</link>* g3d_stream_open_zip (const <link linkend="gchar">gchar</link> *filename,
189 const <link linkend="gchar">gchar</link> *subfile);</programlisting>
190<para>
191Open a file within a Zip archive.</para>
192<para>
193
194</para><variablelist role="params">
195<varlistentry><term><parameter>filename</parameter>&nbsp;:</term>
196<listitem><simpara> name of container file
197</simpara></listitem></varlistentry>
198<varlistentry><term><parameter>subfile</parameter>&nbsp;:</term>
199<listitem><simpara> name of (contained) sub-file
200</simpara></listitem></varlistentry>
201<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a newly allocated <link linkend="G3DStream"><type>G3DStream</type></link> or NULL in case of an error.
202</simpara></listitem></varlistentry>
203</variablelist></refsect2>
204<refsect2 id="g3d-stream-open-zip-from-stream" role="function">
205<title>g3d_stream_open_zip_from_stream ()</title>
206<indexterm zone="g3d-stream-open-zip-from-stream"><primary>g3d_stream_open_zip_from_stream</primary></indexterm><programlisting><link linkend="G3DStream">G3DStream</link>* g3d_stream_open_zip_from_stream (<link linkend="G3DStream">G3DStream</link> *stream,
207 const <link linkend="gchar">gchar</link> *subfile);</programlisting>
208<para>
209Open a file within a Zip archive which is opened as a stream. At the
210moment this only works for streams opened by <link linkend="g3d-stream-open-file"><function>g3d_stream_open_file()</function></link> as
211the file is directly opened again.</para>
212<para>
213
214</para><variablelist role="params">
215<varlistentry><term><parameter>stream</parameter>&nbsp;:</term>
216<listitem><simpara> stream of container file
217</simpara></listitem></varlistentry>
218<varlistentry><term><parameter>subfile</parameter>&nbsp;:</term>
219<listitem><simpara> name of (contained) sub-file
220</simpara></listitem></varlistentry>
221<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a newly allocated <link linkend="G3DStream"><type>G3DStream</type></link> or NULL in case of an error.
222</simpara></listitem></varlistentry>
223</variablelist></refsect2>
224<refsect2 id="g3d-stream-open-gzip-from-stream" role="function">
225<title>g3d_stream_open_gzip_from_stream ()</title>
226<indexterm zone="g3d-stream-open-gzip-from-stream"><primary>g3d_stream_open_gzip_from_stream</primary></indexterm><programlisting><link linkend="G3DStream">G3DStream</link>* g3d_stream_open_gzip_from_stream (<link linkend="G3DStream">G3DStream</link> *stream);</programlisting>
227<para>
228Reads data from a gzip-compressed stream.</para>
229<para>
230
231</para><variablelist role="params">
232<varlistentry><term><parameter>stream</parameter>&nbsp;:</term>
233<listitem><simpara> stream to read from
234</simpara></listitem></varlistentry>
235<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a newly allocated <link linkend="G3DStream"><type>G3DStream</type></link> or NULL in case of an error.
236</simpara></listitem></varlistentry>
237</variablelist></refsect2>
238<refsect2 id="g3d-stream-from-buffer" role="function">
239<title>g3d_stream_from_buffer ()</title>
240<indexterm zone="g3d-stream-from-buffer"><primary>g3d_stream_from_buffer</primary></indexterm><programlisting><link linkend="G3DStream">G3DStream</link>* g3d_stream_from_buffer (<link linkend="guint8">guint8</link> *buffer,
241 <link linkend="gsize">gsize</link> size,
242 const <link linkend="gchar">gchar</link> *title,
243 <link linkend="gboolean">gboolean</link> free_buffer);</programlisting>
244<para>
245Use a buffer in memory as <link linkend="G3DStream"><type>G3DStream</type></link>.</para>
246<para>
247
248</para><variablelist role="params">
249<varlistentry><term><parameter>buffer</parameter>&nbsp;:</term>
250<listitem><simpara> memory buffer to use
251</simpara></listitem></varlistentry>
252<varlistentry><term><parameter>size</parameter>&nbsp;:</term>
253<listitem><simpara> size of buffer
254</simpara></listitem></varlistentry>
255<varlistentry><term><parameter>title</parameter>&nbsp;:</term>
256<listitem><simpara> optional title of stream, may be NULL
257</simpara></listitem></varlistentry>
258<varlistentry><term><parameter>free_buffer</parameter>&nbsp;:</term>
259<listitem><simpara> whether to free the memory with <link linkend="g-free"><function>g_free()</function></link> on <link linkend="g3d-stream-close"><function>g3d_stream_close()</function></link>
260</simpara></listitem></varlistentry>
261<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a newly allocated <link linkend="G3DStream"><type>G3DStream</type></link> or NULL in case of an error.
262</simpara></listitem></varlistentry>
263</variablelist></refsect2>
264<refsect2 id="g3d-stream-zlib-inflate-stream" role="function">
265<title>g3d_stream_zlib_inflate_stream ()</title>
266<indexterm zone="g3d-stream-zlib-inflate-stream"><primary>g3d_stream_zlib_inflate_stream</primary></indexterm><programlisting><link linkend="G3DStream">G3DStream</link>* g3d_stream_zlib_inflate_stream (<link linkend="G3DStream">G3DStream</link> *stream,
267 <link linkend="gsize">gsize</link> cmp_size);</programlisting>
268<para>
269Opens a new stream to decompress zlib-deflated parts of a stream.</para>
270<para>
271
272</para><variablelist role="params">
273<varlistentry><term><parameter>stream</parameter>&nbsp;:</term>
274<listitem><simpara> a parent stream
275</simpara></listitem></varlistentry>
276<varlistentry><term><parameter>cmp_size</parameter>&nbsp;:</term>
277<listitem><simpara> the compressed size of the deflated part
278</simpara></listitem></varlistentry>
279<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a newly allocated <link linkend="G3DStream"><type>G3DStream</type></link> or NULL in case of an error
280</simpara></listitem></varlistentry>
281</variablelist></refsect2>
282<refsect2 id="g3d-stream-new-custom" role="function">
283<title>g3d_stream_new_custom ()</title>
284<indexterm zone="g3d-stream-new-custom"><primary>g3d_stream_new_custom</primary></indexterm><programlisting><link linkend="G3DStream">G3DStream</link>* g3d_stream_new_custom (<link linkend="guint32">guint32</link> flags,
285 const <link linkend="gchar">gchar</link> *uri,
286 <link linkend="G3DStreamReadFunc">G3DStreamReadFunc</link> readfunc,
287 <link linkend="G3DStreamReadLineFunc">G3DStreamReadLineFunc</link> readlinefunc,
288 <link linkend="G3DStreamSeekFunc">G3DStreamSeekFunc</link> seekfunc,
289 <link linkend="G3DStreamTellFunc">G3DStreamTellFunc</link> tellfunc,
290 <link linkend="G3DStreamSizeFunc">G3DStreamSizeFunc</link> sizefunc,
291 <link linkend="G3DStreamEofFunc">G3DStreamEofFunc</link> eoffunc,
292 <link linkend="G3DStreamCloseFunc">G3DStreamCloseFunc</link> closefunc,
293 <link linkend="gpointer">gpointer</link> data);</programlisting>
294<para>
295Creates a new <link linkend="G3DStream"><type>G3DStream</type></link> with custom callback functions.</para>
296<para>
297
298</para><variablelist role="params">
299<varlistentry><term><parameter>flags</parameter>&nbsp;:</term>
300<listitem><simpara> stream capability flags
301</simpara></listitem></varlistentry>
302<varlistentry><term><parameter>uri</parameter>&nbsp;:</term>
303<listitem><simpara> URI of new stream, must not be NULL
304</simpara></listitem></varlistentry>
305<varlistentry><term><parameter>readfunc</parameter>&nbsp;:</term>
306<listitem><simpara> read callback function
307</simpara></listitem></varlistentry>
308<varlistentry><term><parameter>readlinefunc</parameter>&nbsp;:</term>
309<listitem><simpara> read line callback function, may be NULL in which case
310line reading is emulated with <link linkend="g3d-stream-read"><function>g3d_stream_read()</function></link>
311</simpara></listitem></varlistentry>
312<varlistentry><term><parameter>seekfunc</parameter>&nbsp;:</term>
313<listitem><simpara> seek callback function
314</simpara></listitem></varlistentry>
315<varlistentry><term><parameter>tellfunc</parameter>&nbsp;:</term>
316<listitem><simpara> tell callback function
317</simpara></listitem></varlistentry>
318<varlistentry><term><parameter>sizefunc</parameter>&nbsp;:</term>
319<listitem><simpara> size callback function
320</simpara></listitem></varlistentry>
321<varlistentry><term><parameter>eoffunc</parameter>&nbsp;:</term>
322<listitem><simpara> end-of-file callback function
323</simpara></listitem></varlistentry>
324<varlistentry><term><parameter>closefunc</parameter>&nbsp;:</term>
325<listitem><simpara> close callback function
326</simpara></listitem></varlistentry>
327<varlistentry><term><parameter>data</parameter>&nbsp;:</term>
328<listitem><simpara> opaque data for all callback functions
329</simpara></listitem></varlistentry>
330<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a newly allocated <link linkend="G3DStream"><type>G3DStream</type></link> or NULL in case of an error.
331</simpara></listitem></varlistentry>
332</variablelist></refsect2>
333<refsect2 id="g3d-stream-close" role="function">
334<title>g3d_stream_close ()</title>
335<indexterm zone="g3d-stream-close"><primary>g3d_stream_close</primary></indexterm><programlisting><link linkend="gint">gint</link> g3d_stream_close (<link linkend="G3DStream">G3DStream</link> *stream);</programlisting>
336<para>
337Closes an open stream.</para>
338<para>
339
340</para><variablelist role="params">
341<varlistentry><term><parameter>stream</parameter>&nbsp;:</term>
342<listitem><simpara> the stream
343</simpara></listitem></varlistentry>
344<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> 0 on success.
345</simpara></listitem></varlistentry>
346</variablelist></refsect2>
347<refsect2 id="g3d-stream-skip" role="function">
348<title>g3d_stream_skip ()</title>
349<indexterm zone="g3d-stream-skip"><primary>g3d_stream_skip</primary></indexterm><programlisting><link linkend="gint">gint</link> g3d_stream_skip (<link linkend="G3DStream">G3DStream</link> *stream,
350 <link linkend="goffset">goffset</link> offset);</programlisting>
351<para>
352Skip a number of bytes (&gt;= 0) in stream even if it does not support
353seeking.</para>
354<para>
355
356</para><variablelist role="params">
357<varlistentry><term><parameter>stream</parameter>&nbsp;:</term>
358<listitem><simpara> stream to skip bytes from
359</simpara></listitem></varlistentry>
360<varlistentry><term><parameter>offset</parameter>&nbsp;:</term>
361<listitem><simpara> number of bytes to skip
362</simpara></listitem></varlistentry>
363<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> 0 on success, -1 else
364</simpara></listitem></varlistentry>
365</variablelist></refsect2>
366<refsect2 id="g3d-stream-seek" role="function">
367<title>g3d_stream_seek ()</title>
368<indexterm zone="g3d-stream-seek"><primary>g3d_stream_seek</primary></indexterm><programlisting><link linkend="gint">gint</link> g3d_stream_seek (<link linkend="G3DStream">G3DStream</link> *stream,
369 <link linkend="goffset">goffset</link> offset,
370 <link linkend="GSeekType">GSeekType</link> whence);</programlisting>
371<para>
372Moves around the current position in the stream.</para>
373<para>
374
375</para><variablelist role="params">
376<varlistentry><term><parameter>stream</parameter>&nbsp;:</term>
377<listitem><simpara> stream to seek in
378</simpara></listitem></varlistentry>
379<varlistentry><term><parameter>offset</parameter>&nbsp;:</term>
380<listitem><simpara> number of bytes to seek
381</simpara></listitem></varlistentry>
382<varlistentry><term><parameter>whence</parameter>&nbsp;:</term>
383<listitem><simpara> seek type
384</simpara></listitem></varlistentry>
385<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> 0 on success, -1 else
386</simpara></listitem></varlistentry>
387</variablelist></refsect2>
388<refsect2 id="g3d-stream-tell" role="function">
389<title>g3d_stream_tell ()</title>
390<indexterm zone="g3d-stream-tell"><primary>g3d_stream_tell</primary></indexterm><programlisting><link linkend="goffset">goffset</link> g3d_stream_tell (<link linkend="G3DStream">G3DStream</link> *stream);</programlisting>
391<para>
392Tells the current position in the stream.</para>
393<para>
394
395</para><variablelist role="params">
396<varlistentry><term><parameter>stream</parameter>&nbsp;:</term>
397<listitem><simpara> stream to get position from
398</simpara></listitem></varlistentry>
399<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> current stream position
400</simpara></listitem></varlistentry>
401</variablelist></refsect2>
402<refsect2 id="g3d-stream-size" role="function">
403<title>g3d_stream_size ()</title>
404<indexterm zone="g3d-stream-size"><primary>g3d_stream_size</primary></indexterm><programlisting><link linkend="goffset">goffset</link> g3d_stream_size (<link linkend="G3DStream">G3DStream</link> *stream);</programlisting>
405<para>
406Get the size in bytes of a stream.</para>
407<para>
408
409</para><variablelist role="params">
410<varlistentry><term><parameter>stream</parameter>&nbsp;:</term>
411<listitem><simpara> stream to get size from
412</simpara></listitem></varlistentry>
413<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> size of stream in bytes
414</simpara></listitem></varlistentry>
415</variablelist></refsect2>
416<refsect2 id="g3d-stream-eof" role="function">
417<title>g3d_stream_eof ()</title>
418<indexterm zone="g3d-stream-eof"><primary>g3d_stream_eof</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_stream_eof (<link linkend="G3DStream">G3DStream</link> *stream);</programlisting>
419<para>
420Checks whether the stream has reached its end.</para>
421<para>
422
423</para><variablelist role="params">
424<varlistentry><term><parameter>stream</parameter>&nbsp;:</term>
425<listitem><simpara> the stream
426</simpara></listitem></varlistentry>
427<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE if no more data can be read, FALSE else.
428</simpara></listitem></varlistentry>
429</variablelist></refsect2>
430<refsect2 id="g3d-stream-is-seekable" role="function">
431<title>g3d_stream_is_seekable ()</title>
432<indexterm zone="g3d-stream-is-seekable"><primary>g3d_stream_is_seekable</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_stream_is_seekable (<link linkend="G3DStream">G3DStream</link> *stream);</programlisting>
433<para>
434Get information whether it is possible to seek in a stream.</para>
435<para>
436
437</para><variablelist role="params">
438<varlistentry><term><parameter>stream</parameter>&nbsp;:</term>
439<listitem><simpara> the stream
440</simpara></listitem></varlistentry>
441<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE if seekable, FALSE else
442</simpara></listitem></varlistentry>
443</variablelist></refsect2>
444<refsect2 id="g3d-stream-get-uri" role="function">
445<title>g3d_stream_get_uri ()</title>
446<indexterm zone="g3d-stream-get-uri"><primary>g3d_stream_get_uri</primary></indexterm><programlisting><link linkend="gchar">gchar</link>* g3d_stream_get_uri (<link linkend="G3DStream">G3DStream</link> *stream);</programlisting>
447<para>
448Get the URI of a stream</para>
449<para>
450
451</para><variablelist role="params">
452<varlistentry><term><parameter>stream</parameter>&nbsp;:</term>
453<listitem><simpara> the stream
454</simpara></listitem></varlistentry>
455<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a non-NULL, zero-terminated string containing the URI of the
456string. This return value should not be freed.
457</simpara></listitem></varlistentry>
458</variablelist></refsect2>
459<refsect2 id="g3d-stream-line" role="function">
460<title>g3d_stream_line ()</title>
461<indexterm zone="g3d-stream-line"><primary>g3d_stream_line</primary></indexterm><programlisting><link linkend="guint32">guint32</link> g3d_stream_line (<link linkend="G3DStream">G3DStream</link> *stream);</programlisting>
462<para>
463Get the current line number from stream. This only works if line are
464consequently read with <link linkend="g3d-stream-read-line"><function>g3d_stream_read_line()</function></link>, so it's only applicable
465for text streams.</para>
466<para>
467
468</para><variablelist role="params">
469<varlistentry><term><parameter>stream</parameter>&nbsp;:</term>
470<listitem><simpara> stream to get line from
471</simpara></listitem></varlistentry>
472<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> current line number, may be 0
473</simpara></listitem></varlistentry>
474</variablelist></refsect2>
475<refsect2 id="g3d-stream-read" role="function">
476<title>g3d_stream_read ()</title>
477<indexterm zone="g3d-stream-read"><primary>g3d_stream_read</primary></indexterm><programlisting><link linkend="gsize">gsize</link> g3d_stream_read (<link linkend="G3DStream">G3DStream</link> *stream,
478 <link linkend="gpointer">gpointer</link> ptr,
479 <link linkend="gsize">gsize</link> size);</programlisting>
480<para>
481Reads a number of bytes from the stream.</para>
482<para>
483
484</para><variablelist role="params">
485<varlistentry><term><parameter>stream</parameter>&nbsp;:</term>
486<listitem><simpara> the stream to read from
487</simpara></listitem></varlistentry>
488<varlistentry><term><parameter>ptr</parameter>&nbsp;:</term>
489<listitem><simpara> pointer to memory storage
490</simpara></listitem></varlistentry>
491<varlistentry><term><parameter>size</parameter>&nbsp;:</term>
492<listitem><simpara> number of bytes to read
493</simpara></listitem></varlistentry>
494<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> number of bytes successfully read.
495</simpara></listitem></varlistentry>
496</variablelist></refsect2>
497<refsect2 id="g3d-stream-read-line" role="function">
498<title>g3d_stream_read_line ()</title>
499<indexterm zone="g3d-stream-read-line"><primary>g3d_stream_read_line</primary></indexterm><programlisting><link linkend="gchar">gchar</link>* g3d_stream_read_line (<link linkend="G3DStream">G3DStream</link> *stream,
500 <link linkend="gchar">gchar</link> *buf,
501 <link linkend="gsize">gsize</link> size);</programlisting>
502<para>
503Read a line (terminated by a newline character or end of file) from a
504stream.</para>
505<para>
506
507</para><variablelist role="params">
508<varlistentry><term><parameter>stream</parameter>&nbsp;:</term>
509<listitem><simpara> stream to read a line from
510</simpara></listitem></varlistentry>
511<varlistentry><term><parameter>buf</parameter>&nbsp;:</term>
512<listitem><simpara> an allocated buffer to be filled
513</simpara></listitem></varlistentry>
514<varlistentry><term><parameter>size</parameter>&nbsp;:</term>
515<listitem><simpara> maximum length of line including terminating zero
516</simpara></listitem></varlistentry>
517<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the read line or NULL in case of an error.
518</simpara></listitem></varlistentry>
519</variablelist></refsect2>
520<refsect2 id="g3d-stream-read-int8" role="function">
521<title>g3d_stream_read_int8 ()</title>
522<indexterm zone="g3d-stream-read-int8"><primary>g3d_stream_read_int8</primary></indexterm><programlisting><link linkend="gint32">gint32</link> g3d_stream_read_int8 (<link linkend="G3DStream">G3DStream</link> *stream);</programlisting>
523<para>
524Read a 1 byte signed integer from file.</para>
525<para>
526
527</para><variablelist role="params">
528<varlistentry><term><parameter>stream</parameter>&nbsp;:</term>
529<listitem><simpara> the stream to read from
530</simpara></listitem></varlistentry>
531<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> The read value, 0 in case of error
532</simpara></listitem></varlistentry>
533</variablelist></refsect2>
534<refsect2 id="g3d-stream-read-int16-be" role="function">
535<title>g3d_stream_read_int16_be ()</title>
536<indexterm zone="g3d-stream-read-int16-be"><primary>g3d_stream_read_int16_be</primary></indexterm><programlisting><link linkend="gint32">gint32</link> g3d_stream_read_int16_be (<link linkend="G3DStream">G3DStream</link> *stream);</programlisting>
537<para>
538Read a 2 byte big-endian signed integer from file.</para>
539<para>
540
541</para><variablelist role="params">
542<varlistentry><term><parameter>stream</parameter>&nbsp;:</term>
543<listitem><simpara> the stream to read from
544</simpara></listitem></varlistentry>
545<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> The read value, 0 in case of error
546</simpara></listitem></varlistentry>
547</variablelist></refsect2>
548<refsect2 id="g3d-stream-read-int16-le" role="function">
549<title>g3d_stream_read_int16_le ()</title>
550<indexterm zone="g3d-stream-read-int16-le"><primary>g3d_stream_read_int16_le</primary></indexterm><programlisting><link linkend="gint32">gint32</link> g3d_stream_read_int16_le (<link linkend="G3DStream">G3DStream</link> *stream);</programlisting>
551<para>
552Read a 2 byte little-endian signed integer from file.</para>
553<para>
554
555</para><variablelist role="params">
556<varlistentry><term><parameter>stream</parameter>&nbsp;:</term>
557<listitem><simpara> the stream to read from
558</simpara></listitem></varlistentry>
559<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> The read value, 0 in case of error
560</simpara></listitem></varlistentry>
561</variablelist></refsect2>
562<refsect2 id="g3d-stream-read-int32-be" role="function">
563<title>g3d_stream_read_int32_be ()</title>
564<indexterm zone="g3d-stream-read-int32-be"><primary>g3d_stream_read_int32_be</primary></indexterm><programlisting><link linkend="gint32">gint32</link> g3d_stream_read_int32_be (<link linkend="G3DStream">G3DStream</link> *stream);</programlisting>
565<para>
566Read a 4 byte big-endian signed integer from file.</para>
567<para>
568
569</para><variablelist role="params">
570<varlistentry><term><parameter>stream</parameter>&nbsp;:</term>
571<listitem><simpara> the stream to read from
572</simpara></listitem></varlistentry>
573<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> The read value, 0 in case of error
574</simpara></listitem></varlistentry>
575</variablelist></refsect2>
576<refsect2 id="g3d-stream-read-int32-le" role="function">
577<title>g3d_stream_read_int32_le ()</title>
578<indexterm zone="g3d-stream-read-int32-le"><primary>g3d_stream_read_int32_le</primary></indexterm><programlisting><link linkend="gint32">gint32</link> g3d_stream_read_int32_le (<link linkend="G3DStream">G3DStream</link> *stream);</programlisting>
579<para>
580Read a 4 byte little-endian signed integer from file.</para>
581<para>
582
583</para><variablelist role="params">
584<varlistentry><term><parameter>stream</parameter>&nbsp;:</term>
585<listitem><simpara> the stream to read from
586</simpara></listitem></varlistentry>
587<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> The read value, 0 in case of error
588</simpara></listitem></varlistentry>
589</variablelist></refsect2>
590<refsect2 id="g3d-stream-read-float-be" role="function">
591<title>g3d_stream_read_float_be ()</title>
592<indexterm zone="g3d-stream-read-float-be"><primary>g3d_stream_read_float_be</primary></indexterm><programlisting><link linkend="G3DFloat">G3DFloat</link> g3d_stream_read_float_be (<link linkend="G3DStream">G3DStream</link> *stream);</programlisting>
593<para>
594Read a 4 byte big-endian floating point number from file.</para>
595<para>
596
597</para><variablelist role="params">
598<varlistentry><term><parameter>stream</parameter>&nbsp;:</term>
599<listitem><simpara> the stream to read from
600</simpara></listitem></varlistentry>
601<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> The read value, 0 in case of error
602</simpara></listitem></varlistentry>
603</variablelist></refsect2>
604<refsect2 id="g3d-stream-read-float-le" role="function">
605<title>g3d_stream_read_float_le ()</title>
606<indexterm zone="g3d-stream-read-float-le"><primary>g3d_stream_read_float_le</primary></indexterm><programlisting><link linkend="G3DFloat">G3DFloat</link> g3d_stream_read_float_le (<link linkend="G3DStream">G3DStream</link> *stream);</programlisting>
607<para>
608Read a 4 byte little-endian floating point number from file.</para>
609<para>
610
611</para><variablelist role="params">
612<varlistentry><term><parameter>stream</parameter>&nbsp;:</term>
613<listitem><simpara> the stream to read from
614</simpara></listitem></varlistentry>
615<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> The read value, 0 in case of error
616</simpara></listitem></varlistentry>
617</variablelist></refsect2>
618<refsect2 id="g3d-stream-read-double-be" role="function">
619<title>g3d_stream_read_double_be ()</title>
620<indexterm zone="g3d-stream-read-double-be"><primary>g3d_stream_read_double_be</primary></indexterm><programlisting><link linkend="G3DDouble">G3DDouble</link> g3d_stream_read_double_be (<link linkend="G3DStream">G3DStream</link> *stream);</programlisting>
621<para>
622Read a 8 byte big-endian double-precision floating point number from file.</para>
623<para>
624
625</para><variablelist role="params">
626<varlistentry><term><parameter>stream</parameter>&nbsp;:</term>
627<listitem><simpara> the stream to read from
628</simpara></listitem></varlistentry>
629<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> The read value, 0 in case of error
630</simpara></listitem></varlistentry>
631</variablelist></refsect2>
632<refsect2 id="g3d-stream-read-double-le" role="function">
633<title>g3d_stream_read_double_le ()</title>
634<indexterm zone="g3d-stream-read-double-le"><primary>g3d_stream_read_double_le</primary></indexterm><programlisting><link linkend="G3DDouble">G3DDouble</link> g3d_stream_read_double_le (<link linkend="G3DStream">G3DStream</link> *stream);</programlisting>
635<para>
636Read a 8 byte little-endian double-precision floating point number from
637file.</para>
638<para>
639
640</para><variablelist role="params">
641<varlistentry><term><parameter>stream</parameter>&nbsp;:</term>
642<listitem><simpara> the stream to read from
643</simpara></listitem></varlistentry>
644<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> The read value, 0 in case of error
645</simpara></listitem></varlistentry>
646</variablelist></refsect2>
647<refsect2 id="g3d-stream-read-cstr" role="function">
648<title>g3d_stream_read_cstr ()</title>
649<indexterm zone="g3d-stream-read-cstr"><primary>g3d_stream_read_cstr</primary></indexterm><programlisting><link linkend="gint32">gint32</link> g3d_stream_read_cstr (<link linkend="G3DStream">G3DStream</link> *stream,
650 <link linkend="gchar">gchar</link> *buffer,
651 <link linkend="gint32">gint32</link> max_len);</programlisting>
652<para>
653Read a string (terminated by '\0') from stream</para>
654<para>
655
656</para><variablelist role="params">
657<varlistentry><term><parameter>stream</parameter>&nbsp;:</term>
658<listitem><simpara> the stream to read from
659</simpara></listitem></varlistentry>
660<varlistentry><term><parameter>buffer</parameter>&nbsp;:</term>
661<listitem><simpara> the buffer to fill
662</simpara></listitem></varlistentry>
663<varlistentry><term><parameter>max_len</parameter>&nbsp;:</term>
664<listitem><simpara> maximum number to read from stream
665</simpara></listitem></varlistentry>
666<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> number of bytes read from stream
667</simpara></listitem></varlistentry>
668</variablelist></refsect2>
669<refsect2 id="G3DStreamCloseFunc" role="function">
670<title>G3DStreamCloseFunc ()</title>
671<indexterm zone="G3DStreamCloseFunc"><primary>G3DStreamCloseFunc</primary></indexterm><programlisting><link linkend="gint">gint</link> (*G3DStreamCloseFunc) (<link linkend="gpointer">gpointer</link> data);</programlisting>
672<para>
673Callback function for <link linkend="g3d-stream-close"><function>g3d_stream_close()</function></link>.</para>
674<para>
675
676</para><variablelist role="params">
677<varlistentry><term><parameter>data</parameter>&nbsp;:</term>
678<listitem><simpara> opaque stream data
679</simpara></listitem></varlistentry>
680<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> 0 on success, -1 else.
681</simpara></listitem></varlistentry>
682</variablelist></refsect2>
683<refsect2 id="G3DStreamEofFunc" role="function">
684<title>G3DStreamEofFunc ()</title>
685<indexterm zone="G3DStreamEofFunc"><primary>G3DStreamEofFunc</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> (*G3DStreamEofFunc) (<link linkend="gpointer">gpointer</link> data);</programlisting>
686<para>
687Callback function for <link linkend="g3d-stream-eof"><function>g3d_stream_eof()</function></link>.</para>
688<para>
689
690</para><variablelist role="params">
691<varlistentry><term><parameter>data</parameter>&nbsp;:</term>
692<listitem><simpara> opaque stream data
693</simpara></listitem></varlistentry>
694<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on stream end-of-file, FALSE else.
695</simpara></listitem></varlistentry>
696</variablelist></refsect2>
697<refsect2 id="G3DStreamReadFunc" role="function">
698<title>G3DStreamReadFunc ()</title>
699<indexterm zone="G3DStreamReadFunc"><primary>G3DStreamReadFunc</primary></indexterm><programlisting><link linkend="gsize">gsize</link> (*G3DStreamReadFunc) (<link linkend="gpointer">gpointer</link> ptr,
700 <link linkend="gsize">gsize</link> size,
701 <link linkend="gpointer">gpointer</link> data);</programlisting>
702<para>
703Callback function for <link linkend="g3d-stream-read"><function>g3d_stream_read()</function></link>.</para>
704<para>
705
706</para><variablelist role="params">
707<varlistentry><term><parameter>ptr</parameter>&nbsp;:</term>
708<listitem><simpara> buffer to read bytes into
709</simpara></listitem></varlistentry>
710<varlistentry><term><parameter>size</parameter>&nbsp;:</term>
711<listitem><simpara> number of bytes to read
712</simpara></listitem></varlistentry>
713<varlistentry><term><parameter>data</parameter>&nbsp;:</term>
714<listitem><simpara> opaque stream data
715</simpara></listitem></varlistentry>
716<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> number of bytes actually read.
717</simpara></listitem></varlistentry>
718</variablelist></refsect2>
719<refsect2 id="G3DStreamReadLineFunc" role="function">
720<title>G3DStreamReadLineFunc ()</title>
721<indexterm zone="G3DStreamReadLineFunc"><primary>G3DStreamReadLineFunc</primary></indexterm><programlisting><link linkend="gchar">gchar</link>* (*G3DStreamReadLineFunc) (<link linkend="gchar">gchar</link> *buf,
722 <link linkend="gsize">gsize</link> size,
723 <link linkend="gpointer">gpointer</link> data);</programlisting>
724<para>
725Callback function for <link linkend="g3d-stream-read-line"><function>g3d_stream_read_line()</function></link>.</para>
726<para>
727
728</para><variablelist role="params">
729<varlistentry><term><parameter>buf</parameter>&nbsp;:</term>
730<listitem><simpara> buffer to read bytes into
731</simpara></listitem></varlistentry>
732<varlistentry><term><parameter>size</parameter>&nbsp;:</term>
733<listitem><simpara> maximum size of buffer
734</simpara></listitem></varlistentry>
735<varlistentry><term><parameter>data</parameter>&nbsp;:</term>
736<listitem><simpara> opaque stream data
737</simpara></listitem></varlistentry>
738<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> The line buffer or NULL in case of an error.
739</simpara></listitem></varlistentry>
740</variablelist></refsect2>
741<refsect2 id="G3DStreamSeekFunc" role="function">
742<title>G3DStreamSeekFunc ()</title>
743<indexterm zone="G3DStreamSeekFunc"><primary>G3DStreamSeekFunc</primary></indexterm><programlisting><link linkend="gint">gint</link> (*G3DStreamSeekFunc) (<link linkend="gpointer">gpointer</link> data,
744 <link linkend="goffset">goffset</link> offset,
745 <link linkend="GSeekType">GSeekType</link> whence);</programlisting>
746<para>
747Callback function for <link linkend="g3d-stream-seek"><function>g3d_stream_seek()</function></link>.</para>
748<para>
749
750</para><variablelist role="params">
751<varlistentry><term><parameter>data</parameter>&nbsp;:</term>
752<listitem><simpara> opaque stream data
753</simpara></listitem></varlistentry>
754<varlistentry><term><parameter>offset</parameter>&nbsp;:</term>
755<listitem><simpara> seek offset
756</simpara></listitem></varlistentry>
757<varlistentry><term><parameter>whence</parameter>&nbsp;:</term>
758<listitem><simpara> seek type
759</simpara></listitem></varlistentry>
760<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> 0 on success, -1 else.
761</simpara></listitem></varlistentry>
762</variablelist></refsect2>
763<refsect2 id="G3DStreamSizeFunc" role="function">
764<title>G3DStreamSizeFunc ()</title>
765<indexterm zone="G3DStreamSizeFunc"><primary>G3DStreamSizeFunc</primary></indexterm><programlisting><link linkend="goffset">goffset</link> (*G3DStreamSizeFunc) (<link linkend="gpointer">gpointer</link> data);</programlisting>
766<para>
767Callback function for <link linkend="g3d-stream-size"><function>g3d_stream_size()</function></link>.</para>
768<para>
769
770</para><variablelist role="params">
771<varlistentry><term><parameter>data</parameter>&nbsp;:</term>
772<listitem><simpara> opaque stream data
773</simpara></listitem></varlistentry>
774<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> size of stream.
775</simpara></listitem></varlistentry>
776</variablelist></refsect2>
777<refsect2 id="G3DStreamTellFunc" role="function">
778<title>G3DStreamTellFunc ()</title>
779<indexterm zone="G3DStreamTellFunc"><primary>G3DStreamTellFunc</primary></indexterm><programlisting><link linkend="goffset">goffset</link> (*G3DStreamTellFunc) (<link linkend="gpointer">gpointer</link> data);</programlisting>
780<para>
781Callback function for <link linkend="g3d-stream-tell"><function>g3d_stream_tell()</function></link>.</para>
782<para>
783
784</para><variablelist role="params">
785<varlistentry><term><parameter>data</parameter>&nbsp;:</term>
786<listitem><simpara> opaque stream data
787</simpara></listitem></varlistentry>
788<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> current stream position.
789</simpara></listitem></varlistentry>
790</variablelist></refsect2>
791
792</refsect1>
793
794
795
796<refsect1 id="libg3d-stream.see-also">
797<title>See Also</title>
798<link linkend="G3DStream"><type>G3DStream</type></link>
799</refsect1>
800
801</refentry>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/xml/texture.xml b/src/others/mimesh/libg3d-0.0.8/doc/api/xml/texture.xml
new file mode 100644
index 0000000..7720977
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/xml/texture.xml
@@ -0,0 +1,318 @@
1<?xml version="1.0"?>
2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
4<refentry id="libg3d-texture">
5<refmeta>
6<refentrytitle role="top_of_page" id="libg3d-texture.top_of_page">texture</refentrytitle>
7<manvolnum>3</manvolnum>
8<refmiscinfo>LIBG3D Library</refmiscinfo>
9</refmeta>
10
11<refnamediv>
12<refname>texture</refname>
13<refpurpose>Texture loading and manipulation</refpurpose>
14<!--[<xref linkend="desc" endterm="desc.title"/>]-->
15</refnamediv>
16
17<refsynopsisdiv id="libg3d-texture.synopsis" role="synopsis">
18<title role="synopsis.title">Synopsis</title>
19
20<synopsis>
21
22#include &lt;g3d/texture.h&gt;
23
24#define <link linkend="G3D-FLAG-IMG-GREYSCALE:CAPS">G3D_FLAG_IMG_GREYSCALE</link>
25enum <link linkend="G3DTexEnv">G3DTexEnv</link>;
26 <link linkend="G3DImage">G3DImage</link>;
27<link linkend="G3DImage">G3DImage</link>* <link linkend="g3d-texture-load-cached">g3d_texture_load_cached</link> (<link linkend="G3DContext">G3DContext</link> *context,
28 <link linkend="G3DModel">G3DModel</link> *model,
29 const <link linkend="gchar">gchar</link> *filename);
30<link linkend="G3DImage">G3DImage</link>* <link linkend="g3d-texture-load-from-stream">g3d_texture_load_from_stream</link> (<link linkend="G3DContext">G3DContext</link> *context,
31 <link linkend="G3DModel">G3DModel</link> *model,
32 <link linkend="G3DStream">G3DStream</link> *stream);
33<link linkend="G3DImage">G3DImage</link>* <link linkend="g3d-texture-load">g3d_texture_load</link> (<link linkend="G3DContext">G3DContext</link> *context,
34 const <link linkend="gchar">gchar</link> *filename);
35<link linkend="void">void</link> <link linkend="g3d-texture-free">g3d_texture_free</link> (<link linkend="G3DImage">G3DImage</link> *texture);
36<link linkend="gboolean">gboolean</link> <link linkend="g3d-texture-prepare">g3d_texture_prepare</link> (<link linkend="G3DImage">G3DImage</link> *texture);
37<link linkend="gboolean">gboolean</link> <link linkend="g3d-texture-flip-y">g3d_texture_flip_y</link> (<link linkend="G3DImage">G3DImage</link> *texture);
38<link linkend="G3DImage">G3DImage</link>* <link linkend="g3d-texture-merge-alpha">g3d_texture_merge_alpha</link> (<link linkend="G3DImage">G3DImage</link> *image,
39 <link linkend="G3DImage">G3DImage</link> *aimage);
40</synopsis>
41</refsynopsisdiv>
42
43
44
45
46
47
48
49
50
51<refsect1 id="libg3d-texture.description" role="desc">
52<title role="desc.title">Description</title>
53<para>
54A texture is an image used in materials. Here are some helper functions,
55mostly for cached loading of a <link linkend="G3DImage"><type>G3DImage</type></link>.</para>
56<para>
57
58</para>
59</refsect1>
60
61<refsect1 id="libg3d-texture.details" role="details">
62<title role="details.title">Details</title>
63<refsect2 id="G3D-FLAG-IMG-GREYSCALE:CAPS" role="macro">
64<title>G3D_FLAG_IMG_GREYSCALE</title>
65<indexterm zone="G3D-FLAG-IMG-GREYSCALE:CAPS"><primary>G3D_FLAG_IMG_GREYSCALE</primary></indexterm><programlisting>#define G3D_FLAG_IMG_GREYSCALE (1L &lt;&lt; 1)
66</programlisting>
67<para>
68The image just uses the red channel for grey value</para>
69<para>
70
71</para></refsect2>
72<refsect2 id="G3DTexEnv" role="enum">
73<title>enum G3DTexEnv</title>
74<indexterm zone="G3DTexEnv"><primary>G3DTexEnv</primary></indexterm><programlisting>typedef enum {
75 G3D_TEXENV_UNSPECIFIED = 0,
76 G3D_TEXENV_BLEND,
77 G3D_TEXENV_DECAL,
78 G3D_TEXENV_MODULATE,
79 G3D_TEXENV_REPLACE
80} G3DTexEnv;
81</programlisting>
82<para>
83Specify how the texture should interact with other material properties.</para>
84<para>
85
86</para><variablelist role="enum">
87<varlistentry id="G3D-TEXENV-UNSPECIFIED:CAPS" role="constant">
88<term><literal>G3D_TEXENV_UNSPECIFIED</literal></term>
89<listitem><simpara> unspecified, application decides
90</simpara></listitem>
91</varlistentry>
92<varlistentry id="G3D-TEXENV-BLEND:CAPS" role="constant">
93<term><literal>G3D_TEXENV_BLEND</literal></term>
94<listitem><simpara> use blending
95</simpara></listitem>
96</varlistentry>
97<varlistentry id="G3D-TEXENV-DECAL:CAPS" role="constant">
98<term><literal>G3D_TEXENV_DECAL</literal></term>
99<listitem><simpara> use as decal
100</simpara></listitem>
101</varlistentry>
102<varlistentry id="G3D-TEXENV-MODULATE:CAPS" role="constant">
103<term><literal>G3D_TEXENV_MODULATE</literal></term>
104<listitem><simpara> use modulate
105</simpara></listitem>
106</varlistentry>
107<varlistentry id="G3D-TEXENV-REPLACE:CAPS" role="constant">
108<term><literal>G3D_TEXENV_REPLACE</literal></term>
109<listitem><simpara> replace color
110</simpara></listitem>
111</varlistentry>
112</variablelist></refsect2>
113<refsect2 id="G3DImage" role="struct">
114<title>G3DImage</title>
115<indexterm zone="G3DImage"><primary>G3DImage</primary></indexterm><programlisting>typedef struct {
116 gchar *name;
117 guint32 width;
118 guint32 height;
119 guint8 depth;
120 guint32 flags;
121 guint8 *pixeldata;
122
123 guint32 tex_id;
124 G3DTexEnv tex_env;
125 G3DFloat tex_scale_u;
126 G3DFloat tex_scale_v;
127} G3DImage;
128</programlisting>
129<para>
130Object containing a two-dimensional pixel image.</para>
131<para>
132
133</para><variablelist role="struct">
134<varlistentry>
135<term><link linkend="gchar">gchar</link>&nbsp;*<structfield>name</structfield>;</term>
136<listitem><simpara> name of image
137</simpara></listitem>
138</varlistentry>
139<varlistentry>
140<term><link linkend="guint32">guint32</link>&nbsp;<structfield>width</structfield>;</term>
141<listitem><simpara> width of image in pixels
142</simpara></listitem>
143</varlistentry>
144<varlistentry>
145<term><link linkend="guint32">guint32</link>&nbsp;<structfield>height</structfield>;</term>
146<listitem><simpara> height of image in pixels
147</simpara></listitem>
148</varlistentry>
149<varlistentry>
150<term><link linkend="guint8">guint8</link>&nbsp;<structfield>depth</structfield>;</term>
151<listitem><simpara> depth of image in bits
152</simpara></listitem>
153</varlistentry>
154<varlistentry>
155<term><link linkend="guint32">guint32</link>&nbsp;<structfield>flags</structfield>;</term>
156<listitem><simpara> flags
157</simpara></listitem>
158</varlistentry>
159<varlistentry>
160<term><link linkend="guint8">guint8</link>&nbsp;*<structfield>pixeldata</structfield>;</term>
161<listitem><simpara> the binary image data
162</simpara></listitem>
163</varlistentry>
164<varlistentry>
165<term><link linkend="guint32">guint32</link>&nbsp;<structfield>tex_id</structfield>;</term>
166<listitem><simpara> the OpenGL texture id, should be unique model-wide
167</simpara></listitem>
168</varlistentry>
169<varlistentry>
170<term><link linkend="G3DTexEnv">G3DTexEnv</link>&nbsp;<structfield>tex_env</structfield>;</term>
171<listitem><simpara> texture environment flags
172</simpara></listitem>
173</varlistentry>
174<varlistentry>
175<term><link linkend="G3DFloat">G3DFloat</link>&nbsp;<structfield>tex_scale_u</structfield>;</term>
176<listitem><simpara> factor scaling texture width, should be 1.0 for most cases
177</simpara></listitem>
178</varlistentry>
179<varlistentry>
180<term><link linkend="G3DFloat">G3DFloat</link>&nbsp;<structfield>tex_scale_v</structfield>;</term>
181<listitem><simpara> factor scaling texture height, should be 1.0 for most cases
182</simpara></listitem>
183</varlistentry>
184</variablelist></refsect2>
185<refsect2 id="g3d-texture-load-cached" role="function">
186<title>g3d_texture_load_cached ()</title>
187<indexterm zone="g3d-texture-load-cached"><primary>g3d_texture_load_cached</primary></indexterm><programlisting><link linkend="G3DImage">G3DImage</link>* g3d_texture_load_cached (<link linkend="G3DContext">G3DContext</link> *context,
188 <link linkend="G3DModel">G3DModel</link> *model,
189 const <link linkend="gchar">gchar</link> *filename);</programlisting>
190<para>
191Loads a texture image from file and attaches it to a hash table in the
192model. On a second try to load this texture it is returned from cache.</para>
193<para>
194
195</para><variablelist role="params">
196<varlistentry><term><parameter>context</parameter>&nbsp;:</term>
197<listitem><simpara> a valid context
198</simpara></listitem></varlistentry>
199<varlistentry><term><parameter>model</parameter>&nbsp;:</term>
200<listitem><simpara> a valid model
201</simpara></listitem></varlistentry>
202<varlistentry><term><parameter>filename</parameter>&nbsp;:</term>
203<listitem><simpara> the file name of the texture to load
204</simpara></listitem></varlistentry>
205<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the texture image
206</simpara></listitem></varlistentry>
207</variablelist></refsect2>
208<refsect2 id="g3d-texture-load-from-stream" role="function">
209<title>g3d_texture_load_from_stream ()</title>
210<indexterm zone="g3d-texture-load-from-stream"><primary>g3d_texture_load_from_stream</primary></indexterm><programlisting><link linkend="G3DImage">G3DImage</link>* g3d_texture_load_from_stream (<link linkend="G3DContext">G3DContext</link> *context,
211 <link linkend="G3DModel">G3DModel</link> *model,
212 <link linkend="G3DStream">G3DStream</link> *stream);</programlisting>
213<para>
214Load a texture image from a stream. The file type is determined by the
215extension of the stream URI, so it should be valid. If <parameter>model</parameter> is not NULL
216the texture image is cached (or retrieved from cache if available).</para>
217<para>
218
219</para><variablelist role="params">
220<varlistentry><term><parameter>context</parameter>&nbsp;:</term>
221<listitem><simpara> a valid context
222</simpara></listitem></varlistentry>
223<varlistentry><term><parameter>model</parameter>&nbsp;:</term>
224<listitem><simpara> a valid model or NULL
225</simpara></listitem></varlistentry>
226<varlistentry><term><parameter>stream</parameter>&nbsp;:</term>
227<listitem><simpara> an open stream
228</simpara></listitem></varlistentry>
229<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the texture image or NULL in case of an error.
230</simpara></listitem></varlistentry>
231</variablelist></refsect2>
232<refsect2 id="g3d-texture-load" role="function">
233<title>g3d_texture_load ()</title>
234<indexterm zone="g3d-texture-load"><primary>g3d_texture_load</primary></indexterm><programlisting><link linkend="G3DImage">G3DImage</link>* g3d_texture_load (<link linkend="G3DContext">G3DContext</link> *context,
235 const <link linkend="gchar">gchar</link> *filename);</programlisting>
236<para>
237Load a texture from a file. The type of file is determined by the file
238extension.</para>
239<para>
240
241</para><variablelist role="params">
242<varlistentry><term><parameter>context</parameter>&nbsp;:</term>
243<listitem><simpara> a valid context
244</simpara></listitem></varlistentry>
245<varlistentry><term><parameter>filename</parameter>&nbsp;:</term>
246<listitem><simpara> the file name of the texture
247</simpara></listitem></varlistentry>
248<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the texture image or NULL in case of an error.
249</simpara></listitem></varlistentry>
250</variablelist></refsect2>
251<refsect2 id="g3d-texture-free" role="function">
252<title>g3d_texture_free ()</title>
253<indexterm zone="g3d-texture-free"><primary>g3d_texture_free</primary></indexterm><programlisting><link linkend="void">void</link> g3d_texture_free (<link linkend="G3DImage">G3DImage</link> *texture);</programlisting>
254<para>
255Frees all memory used by this texture image.</para>
256<para>
257
258</para><variablelist role="params">
259<varlistentry><term><parameter>texture</parameter>&nbsp;:</term>
260<listitem><simpara> a texture image
261</simpara></listitem></varlistentry>
262</variablelist></refsect2>
263<refsect2 id="g3d-texture-prepare" role="function">
264<title>g3d_texture_prepare ()</title>
265<indexterm zone="g3d-texture-prepare"><primary>g3d_texture_prepare</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_texture_prepare (<link linkend="G3DImage">G3DImage</link> *texture);</programlisting>
266<para>
267Resizes the image to dimensions which are a power of 2 to be
268usable as an OpenGL texture.
269(FIXME: unimplemented)</para>
270<para>
271
272</para><variablelist role="params">
273<varlistentry><term><parameter>texture</parameter>&nbsp;:</term>
274<listitem><simpara> a texture image
275</simpara></listitem></varlistentry>
276<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else
277</simpara></listitem></varlistentry>
278</variablelist></refsect2>
279<refsect2 id="g3d-texture-flip-y" role="function">
280<title>g3d_texture_flip_y ()</title>
281<indexterm zone="g3d-texture-flip-y"><primary>g3d_texture_flip_y</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_texture_flip_y (<link linkend="G3DImage">G3DImage</link> *texture);</programlisting>
282<para>
283Mirror the image along the x axis - all y coordinates are inverted.</para>
284<para>
285
286</para><variablelist role="params">
287<varlistentry><term><parameter>texture</parameter>&nbsp;:</term>
288<listitem><simpara> a texture image
289</simpara></listitem></varlistentry>
290<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE on error.
291</simpara></listitem></varlistentry>
292</variablelist></refsect2>
293<refsect2 id="g3d-texture-merge-alpha" role="function">
294<title>g3d_texture_merge_alpha ()</title>
295<indexterm zone="g3d-texture-merge-alpha"><primary>g3d_texture_merge_alpha</primary></indexterm><programlisting><link linkend="G3DImage">G3DImage</link>* g3d_texture_merge_alpha (<link linkend="G3DImage">G3DImage</link> *image,
296 <link linkend="G3DImage">G3DImage</link> *aimage);</programlisting>
297<para>
298Merges alpha information from <parameter>aimage</parameter> into output image. If <parameter>image</parameter> is NULL a
299new image is created, else <parameter>image</parameter> is returned with alpha from <parameter>aimage</parameter>.</para>
300<para>
301
302</para><variablelist role="params">
303<varlistentry><term><parameter>image</parameter>&nbsp;:</term>
304<listitem><simpara> a texture image or NULL
305</simpara></listitem></varlistentry>
306<varlistentry><term><parameter>aimage</parameter>&nbsp;:</term>
307<listitem><simpara> an image with alpha information
308</simpara></listitem></varlistentry>
309<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a texture image or NULL in case of an error.
310</simpara></listitem></varlistentry>
311</variablelist></refsect2>
312
313</refsect1>
314
315
316
317
318</refentry>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/xml/types.xml b/src/others/mimesh/libg3d-0.0.8/doc/api/xml/types.xml
new file mode 100644
index 0000000..c12d48b
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/xml/types.xml
@@ -0,0 +1,92 @@
1<?xml version="1.0"?>
2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
4<refentry id="libg3d-types">
5<refmeta>
6<refentrytitle role="top_of_page" id="libg3d-types.top_of_page">types</refentrytitle>
7<manvolnum>3</manvolnum>
8<refmiscinfo>LIBG3D Library</refmiscinfo>
9</refmeta>
10
11<refnamediv>
12<refname>types</refname>
13<refpurpose>Basic types</refpurpose>
14<!--[<xref linkend="desc" endterm="desc.title"/>]-->
15</refnamediv>
16
17<refsynopsisdiv id="libg3d-types.synopsis" role="synopsis">
18<title role="synopsis.title">Synopsis</title>
19
20<synopsis>
21
22#include &lt;g3d/types.h&gt;
23
24typedef <link linkend="G3DSingle">G3DSingle</link>;
25typedef <link linkend="G3DDouble">G3DDouble</link>;
26typedef <link linkend="G3DFloat">G3DFloat</link>;
27#define <link linkend="G3D-FLOAT-IS-DOUBLE:CAPS">G3D_FLOAT_IS_DOUBLE</link>
28</synopsis>
29</refsynopsisdiv>
30
31
32
33
34
35
36
37
38
39<refsect1 id="libg3d-types.description" role="desc">
40<title role="desc.title">Description</title>
41<para>
42Some basic type abstractions used in libg3d.</para>
43<para>
44
45</para>
46</refsect1>
47
48<refsect1 id="libg3d-types.details" role="details">
49<title role="details.title">Details</title>
50<refsect2 id="G3DSingle" role="typedef">
51<title>G3DSingle</title>
52<indexterm zone="G3DSingle"><primary>G3DSingle</primary></indexterm><programlisting>typedef gfloat G3DSingle;
53</programlisting>
54<para>
55Single-precision floating point number.</para>
56<para>
57
58</para></refsect2>
59<refsect2 id="G3DDouble" role="typedef">
60<title>G3DDouble</title>
61<indexterm zone="G3DDouble"><primary>G3DDouble</primary></indexterm><programlisting>typedef gdouble G3DDouble;
62</programlisting>
63<para>
64Double-precision floating point number.</para>
65<para>
66
67</para></refsect2>
68<refsect2 id="G3DFloat" role="typedef">
69<title>G3DFloat</title>
70<indexterm zone="G3DFloat"><primary>G3DFloat</primary></indexterm><para>
71Default floating point type. If used consistently in the library (not the
72case at the moment) this type can be switched between single and double
73precision at compile-time.</para>
74<para>
75
76</para></refsect2>
77<refsect2 id="G3D-FLOAT-IS-DOUBLE:CAPS" role="macro">
78<title>G3D_FLOAT_IS_DOUBLE</title>
79<indexterm zone="G3D-FLOAT-IS-DOUBLE:CAPS"><primary>G3D_FLOAT_IS_DOUBLE</primary></indexterm><programlisting>#define G3D_FLOAT_IS_DOUBLE</programlisting>
80<para>
81A flag indicating type of <link linkend="G3DFloat"><type>G3DFloat</type></link>. It is TRUE if <link linkend="G3DFloat"><type>G3DFloat</type></link> is double and
82FALSE if <link linkend="G3DFloat"><type>G3DFloat</type></link> is single precision.</para>
83<para>
84
85</para></refsect2>
86
87</refsect1>
88
89
90
91
92</refentry>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/api/xml/vector.xml b/src/others/mimesh/libg3d-0.0.8/doc/api/xml/vector.xml
new file mode 100644
index 0000000..d306c67
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/api/xml/vector.xml
@@ -0,0 +1,184 @@
1<?xml version="1.0"?>
2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
4<refentry id="libg3d-vector">
5<refmeta>
6<refentrytitle role="top_of_page" id="libg3d-vector.top_of_page">vector</refentrytitle>
7<manvolnum>3</manvolnum>
8<refmiscinfo>LIBG3D Library</refmiscinfo>
9</refmeta>
10
11<refnamediv>
12<refname>vector</refname>
13<refpurpose>Vector manipulation and calculation</refpurpose>
14<!--[<xref linkend="desc" endterm="desc.title"/>]-->
15</refnamediv>
16
17<refsynopsisdiv id="libg3d-vector.synopsis" role="synopsis">
18<title role="synopsis.title">Synopsis</title>
19
20<synopsis>
21
22#include &lt;g3d/vector.h&gt;
23
24typedef <link linkend="G3DVector">G3DVector</link>;
25<link linkend="gboolean">gboolean</link> <link linkend="g3d-vector-normal">g3d_vector_normal</link> (<link linkend="G3DFloat">G3DFloat</link> ax,
26 <link linkend="G3DFloat">G3DFloat</link> ay,
27 <link linkend="G3DFloat">G3DFloat</link> az,
28 <link linkend="G3DFloat">G3DFloat</link> bx,
29 <link linkend="G3DFloat">G3DFloat</link> by,
30 <link linkend="G3DFloat">G3DFloat</link> bz,
31 <link linkend="G3DFloat">G3DFloat</link> *nx,
32 <link linkend="G3DFloat">G3DFloat</link> *ny,
33 <link linkend="G3DFloat">G3DFloat</link> *nz);
34<link linkend="gboolean">gboolean</link> <link linkend="g3d-vector-unify">g3d_vector_unify</link> (<link linkend="G3DFloat">G3DFloat</link> *nx,
35 <link linkend="G3DFloat">G3DFloat</link> *ny,
36 <link linkend="G3DFloat">G3DFloat</link> *nz);
37<link linkend="gboolean">gboolean</link> <link linkend="g3d-vector-transform">g3d_vector_transform</link> (<link linkend="G3DFloat">G3DFloat</link> *x,
38 <link linkend="G3DFloat">G3DFloat</link> *y,
39 <link linkend="G3DFloat">G3DFloat</link> *z,
40 <link linkend="G3DMatrix">G3DMatrix</link> *matrix);
41</synopsis>
42</refsynopsisdiv>
43
44
45
46
47
48
49
50
51
52<refsect1 id="libg3d-vector.description" role="desc">
53<title role="desc.title">Description</title>
54<para>
55A vector is a one-dimensional array of floating point data.
56</para>
57<para>
58Declare it as statically as:
59</para>
60<para>
61G3DVector vector[3];
62</para>
63<para>
64or allocate it dynamically with:
65</para>
66<para>
67G3DVector *vector = g3d_vector_new(3, 1);</para>
68<para>
69
70</para>
71</refsect1>
72
73<refsect1 id="libg3d-vector.details" role="details">
74<title role="details.title">Details</title>
75<refsect2 id="G3DVector" role="typedef">
76<title>G3DVector</title>
77<indexterm zone="G3DVector"><primary>G3DVector</primary></indexterm><programlisting>typedef G3DFloat G3DVector;
78</programlisting>
79<para>
80Vector element type.</para>
81<para>
82
83</para></refsect2>
84<refsect2 id="g3d-vector-normal" role="function">
85<title>g3d_vector_normal ()</title>
86<indexterm zone="g3d-vector-normal"><primary>g3d_vector_normal</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_vector_normal (<link linkend="G3DFloat">G3DFloat</link> ax,
87 <link linkend="G3DFloat">G3DFloat</link> ay,
88 <link linkend="G3DFloat">G3DFloat</link> az,
89 <link linkend="G3DFloat">G3DFloat</link> bx,
90 <link linkend="G3DFloat">G3DFloat</link> by,
91 <link linkend="G3DFloat">G3DFloat</link> bz,
92 <link linkend="G3DFloat">G3DFloat</link> *nx,
93 <link linkend="G3DFloat">G3DFloat</link> *ny,
94 <link linkend="G3DFloat">G3DFloat</link> *nz);</programlisting>
95<para>
96calculate the normal from a plane defined by two vectors</para>
97<para>
98
99</para><variablelist role="params">
100<varlistentry><term><parameter>ax</parameter>&nbsp;:</term>
101<listitem><simpara> x component first vector
102</simpara></listitem></varlistentry>
103<varlistentry><term><parameter>ay</parameter>&nbsp;:</term>
104<listitem><simpara> y component first vector
105</simpara></listitem></varlistentry>
106<varlistentry><term><parameter>az</parameter>&nbsp;:</term>
107<listitem><simpara> z component first vector
108</simpara></listitem></varlistentry>
109<varlistentry><term><parameter>bx</parameter>&nbsp;:</term>
110<listitem><simpara> x component second vector
111</simpara></listitem></varlistentry>
112<varlistentry><term><parameter>by</parameter>&nbsp;:</term>
113<listitem><simpara> y component second vector
114</simpara></listitem></varlistentry>
115<varlistentry><term><parameter>bz</parameter>&nbsp;:</term>
116<listitem><simpara> z component second vector
117</simpara></listitem></varlistentry>
118<varlistentry><term><parameter>nx</parameter>&nbsp;:</term>
119<listitem><simpara> x component resulting normal
120</simpara></listitem></varlistentry>
121<varlistentry><term><parameter>ny</parameter>&nbsp;:</term>
122<listitem><simpara> y component resulting normal
123</simpara></listitem></varlistentry>
124<varlistentry><term><parameter>nz</parameter>&nbsp;:</term>
125<listitem><simpara> z component resulting normal
126</simpara></listitem></varlistentry>
127<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else
128</simpara></listitem></varlistentry>
129</variablelist></refsect2>
130<refsect2 id="g3d-vector-unify" role="function">
131<title>g3d_vector_unify ()</title>
132<indexterm zone="g3d-vector-unify"><primary>g3d_vector_unify</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_vector_unify (<link linkend="G3DFloat">G3DFloat</link> *nx,
133 <link linkend="G3DFloat">G3DFloat</link> *ny,
134 <link linkend="G3DFloat">G3DFloat</link> *nz);</programlisting>
135<para>
136Transforms the given vector to the unit vector.</para>
137<para>
138
139</para><variablelist role="params">
140<varlistentry><term><parameter>nx</parameter>&nbsp;:</term>
141<listitem><simpara> x component of vector
142</simpara></listitem></varlistentry>
143<varlistentry><term><parameter>ny</parameter>&nbsp;:</term>
144<listitem><simpara> y component of vector
145</simpara></listitem></varlistentry>
146<varlistentry><term><parameter>nz</parameter>&nbsp;:</term>
147<listitem><simpara> z component of vector
148</simpara></listitem></varlistentry>
149<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else
150</simpara></listitem></varlistentry>
151</variablelist></refsect2>
152<refsect2 id="g3d-vector-transform" role="function">
153<title>g3d_vector_transform ()</title>
154<indexterm zone="g3d-vector-transform"><primary>g3d_vector_transform</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> g3d_vector_transform (<link linkend="G3DFloat">G3DFloat</link> *x,
155 <link linkend="G3DFloat">G3DFloat</link> *y,
156 <link linkend="G3DFloat">G3DFloat</link> *z,
157 <link linkend="G3DMatrix">G3DMatrix</link> *matrix);</programlisting>
158<para>
159Transforms the given vector corresponding to the given matrix</para>
160<para>
161
162</para><variablelist role="params">
163<varlistentry><term><parameter>x</parameter>&nbsp;:</term>
164<listitem><simpara> x component of vector
165</simpara></listitem></varlistentry>
166<varlistentry><term><parameter>y</parameter>&nbsp;:</term>
167<listitem><simpara> y component of vector
168</simpara></listitem></varlistentry>
169<varlistentry><term><parameter>z</parameter>&nbsp;:</term>
170<listitem><simpara> z component of vector
171</simpara></listitem></varlistentry>
172<varlistentry><term><parameter>matrix</parameter>&nbsp;:</term>
173<listitem><simpara> transformation matrix (4x4)
174</simpara></listitem></varlistentry>
175<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> TRUE on success, FALSE else
176</simpara></listitem></varlistentry>
177</variablelist></refsect2>
178
179</refsect1>
180
181
182
183
184</refentry>
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/support_matrix/Makefile b/src/others/mimesh/libg3d-0.0.8/doc/support_matrix/Makefile
new file mode 100644
index 0000000..597b308
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/support_matrix/Makefile
@@ -0,0 +1,360 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# doc/support_matrix/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17pkgdatadir = $(datadir)/libg3d
18pkglibdir = $(libdir)/libg3d
19pkgincludedir = $(includedir)/libg3d
20am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
21install_sh_DATA = $(install_sh) -c -m 644
22install_sh_PROGRAM = $(install_sh) -c
23install_sh_SCRIPT = $(install_sh) -c
24INSTALL_HEADER = $(INSTALL_DATA)
25transform = $(program_transform_name)
26NORMAL_INSTALL = :
27PRE_INSTALL = :
28POST_INSTALL = :
29NORMAL_UNINSTALL = :
30PRE_UNINSTALL = :
31POST_UNINSTALL = :
32build_triplet = x86_64-unknown-linux-gnu
33host_triplet = x86_64-unknown-linux-gnu
34subdir = doc/support_matrix
35DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
36ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
37am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
38 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
39 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
40 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
41 $(top_srcdir)/configure.in
42am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43 $(ACLOCAL_M4)
44mkinstalldirs = $(install_sh) -d
45CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
46CONFIG_CLEAN_FILES =
47SOURCES =
48DIST_SOURCES =
49DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
50ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
51AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
52AR = ar
53AS = as
54AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
55AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
56AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
57AWK = gawk
58CC = gcc
59CCDEPMODE = depmode=gcc3
60CFLAGS = -g -O2
61CPP = gcc -E
62CPPFLAGS =
63CXX = g++
64CXXCPP = g++ -E
65CXXDEPMODE = depmode=gcc3
66CXXFLAGS = -g -O2
67CYGPATH_W = echo
68DBG_CFLAGS = -O2
69DEBUG = 0
70DEFS = -DHAVE_CONFIG_H
71DEPDIR = .deps
72DLLTOOL = dlltool
73ECHO = echo
74ECHO_C =
75ECHO_N = -n
76ECHO_T =
77EGREP = /bin/grep -E
78EXEEXT =
79F77 =
80FFLAGS =
81GDKPIXBUF_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
82GDKPIXBUF_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
83GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
84GLIB_GENMARSHAL = glib-genmarshal
85GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
86GLIB_MKENUMS = glib-mkenums
87GOBJECT_QUERY = gobject-query
88GREP = /bin/grep
89GTKDOC_CHECK = /usr/bin/gtkdoc-check
90GTK_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
91GTK_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
92HTML_DIR = ${datadir}/gtk-doc/html
93INSTALL = /usr/bin/install -c
94INSTALL_DATA = ${INSTALL} -m 644
95INSTALL_PROGRAM = ${INSTALL}
96INSTALL_SCRIPT = ${INSTALL}
97INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
98LDFLAGS =
99LEX = flex
100LEXLIB = -lfl
101LEX_OUTPUT_ROOT = lex.yy
102LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
103LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
104LIBOBJS =
105LIBS = -lm
106LIBTOOL = $(SHELL) $(top_builddir)/libtool
107LIBXML2_CFLAGS = -I/usr/include/libxml2
108LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
109LN_S = ln -s
110LTLIBOBJS =
111LTVERSION = 0:8:0
112MAGIC_LIBS = -lmagic
113MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
114MATH_LIBS = -lm
115MKDIR_P = /bin/mkdir -p
116OBJDUMP = objdump
117OBJEXT = o
118PACKAGE = libg3d
119PACKAGE_BUGREPORT =
120PACKAGE_NAME =
121PACKAGE_STRING =
122PACKAGE_TARNAME =
123PACKAGE_VERSION =
124PATH_SEPARATOR = :
125PKG_CONFIG = /usr/bin/pkg-config
126PLUGINS_LDFLAGS = -avoid-version -export-dynamic
127RANLIB = ranlib
128SET_MAKE =
129SHELL = /bin/bash
130STRIP = strip
131VERSION = 0.0.8
132XML2_CONFIG = /usr/bin/xml2-config
133XML_CPPFLAGS = -I/usr/include/libxml2
134XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
135Z_CFLAGS =
136Z_LIBS = -lz
137abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/doc/support_matrix
138abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/doc/support_matrix
139abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
140abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
141ac_ct_CC = gcc
142ac_ct_CXX = g++
143ac_ct_F77 =
144am__include = include
145am__leading_dot = .
146am__quote =
147am__tar = ${AMTAR} chof - "$$tardir"
148am__untar = ${AMTAR} xf -
149bindir = ${exec_prefix}/bin
150build = x86_64-unknown-linux-gnu
151build_alias =
152build_cpu = x86_64
153build_os = linux-gnu
154build_vendor = unknown
155builddir = .
156datadir = ${datarootdir}
157datarootdir = ${prefix}/share
158docdir = ${datarootdir}/doc/${PACKAGE}
159dvidir = ${docdir}
160exec_prefix = ${prefix}
161host = x86_64-unknown-linux-gnu
162host_alias =
163host_cpu = x86_64
164host_os = linux-gnu
165host_vendor = unknown
166htmldir = ${docdir}
167includedir = ${prefix}/include
168infodir = ${datarootdir}/info
169install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
170libdir = ${exec_prefix}/lib
171libexecdir = ${exec_prefix}/libexec
172localedir = ${datarootdir}/locale
173localstatedir = ${prefix}/var
174mandir = ${datarootdir}/man
175mkdir_p = /bin/mkdir -p
176oldincludedir = /usr/include
177pdfdir = ${docdir}
178prefix = /usr/local
179program_transform_name = s,x,x,
180psdir = ${docdir}
181sbindir = ${exec_prefix}/sbin
182sharedstatedir = ${prefix}/com
183srcdir = .
184sysconfdir = ${prefix}/etc
185target_alias =
186top_builddir = ../..
187top_srcdir = ../..
188EXTRA_DIST = matrix.html
189all: all-am
190
191.SUFFIXES:
192$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
193 @for dep in $?; do \
194 case '$(am__configure_deps)' in \
195 *$$dep*) \
196 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
197 && exit 0; \
198 exit 1;; \
199 esac; \
200 done; \
201 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/support_matrix/Makefile'; \
202 cd $(top_srcdir) && \
203 $(AUTOMAKE) --gnu doc/support_matrix/Makefile
204.PRECIOUS: Makefile
205Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
206 @case '$?' in \
207 *config.status*) \
208 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
209 *) \
210 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
211 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
212 esac;
213
214$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
215 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
216
217$(top_srcdir)/configure: $(am__configure_deps)
218 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
219$(ACLOCAL_M4): $(am__aclocal_m4_deps)
220 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
221
222mostlyclean-libtool:
223 -rm -f *.lo
224
225clean-libtool:
226 -rm -rf .libs _libs
227tags: TAGS
228TAGS:
229
230ctags: CTAGS
231CTAGS:
232
233
234distdir: $(DISTFILES)
235 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
236 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
237 list='$(DISTFILES)'; \
238 dist_files=`for file in $$list; do echo $$file; done | \
239 sed -e "s|^$$srcdirstrip/||;t" \
240 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
241 case $$dist_files in \
242 */*) $(MKDIR_P) `echo "$$dist_files" | \
243 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
244 sort -u` ;; \
245 esac; \
246 for file in $$dist_files; do \
247 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
248 if test -d $$d/$$file; then \
249 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
250 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
251 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
252 fi; \
253 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
254 else \
255 test -f $(distdir)/$$file \
256 || cp -p $$d/$$file $(distdir)/$$file \
257 || exit 1; \
258 fi; \
259 done
260check-am: all-am
261check: check-am
262all-am: Makefile
263installdirs:
264install: install-am
265install-exec: install-exec-am
266install-data: install-data-am
267uninstall: uninstall-am
268
269install-am: all-am
270 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
271
272installcheck: installcheck-am
273install-strip:
274 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
275 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
276 `test -z '$(STRIP)' || \
277 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
278mostlyclean-generic:
279
280clean-generic:
281
282distclean-generic:
283 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
284
285maintainer-clean-generic:
286 @echo "This command is intended for maintainers to use"
287 @echo "it deletes files that may require special tools to rebuild."
288clean: clean-am
289
290clean-am: clean-generic clean-libtool mostlyclean-am
291
292distclean: distclean-am
293 -rm -f Makefile
294distclean-am: clean-am distclean-generic
295
296dvi: dvi-am
297
298dvi-am:
299
300html: html-am
301
302info: info-am
303
304info-am:
305
306install-data-am:
307
308install-dvi: install-dvi-am
309
310install-exec-am:
311
312install-html: install-html-am
313
314install-info: install-info-am
315
316install-man:
317
318install-pdf: install-pdf-am
319
320install-ps: install-ps-am
321
322installcheck-am:
323
324maintainer-clean: maintainer-clean-am
325 -rm -f Makefile
326maintainer-clean-am: distclean-am maintainer-clean-generic
327
328mostlyclean: mostlyclean-am
329
330mostlyclean-am: mostlyclean-generic mostlyclean-libtool
331
332pdf: pdf-am
333
334pdf-am:
335
336ps: ps-am
337
338ps-am:
339
340uninstall-am:
341
342.MAKE: install-am install-strip
343
344.PHONY: all all-am check check-am clean clean-generic clean-libtool \
345 distclean distclean-generic distclean-libtool distdir dvi \
346 dvi-am html html-am info info-am install install-am \
347 install-data install-data-am install-dvi install-dvi-am \
348 install-exec install-exec-am install-html install-html-am \
349 install-info install-info-am install-man install-pdf \
350 install-pdf-am install-ps install-ps-am install-strip \
351 installcheck installcheck-am installdirs maintainer-clean \
352 maintainer-clean-generic mostlyclean mostlyclean-generic \
353 mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
354
355doc:
356 ./update_import_plugins.pl
357 ./generate_html_page.pl
358# Tell versions [3.59,3.63) of GNU make to not export all variables.
359# Otherwise a system limit (for SysV at least) may be exceeded.
360.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/support_matrix/Makefile.am b/src/others/mimesh/libg3d-0.0.8/doc/support_matrix/Makefile.am
new file mode 100644
index 0000000..0a88ed7
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/support_matrix/Makefile.am
@@ -0,0 +1,5 @@
1doc:
2 ./update_import_plugins.pl
3 ./generate_html_page.pl
4
5EXTRA_DIST = matrix.html
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/support_matrix/Makefile.in b/src/others/mimesh/libg3d-0.0.8/doc/support_matrix/Makefile.in
new file mode 100644
index 0000000..b381be7
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/support_matrix/Makefile.in
@@ -0,0 +1,360 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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@
16VPATH = @srcdir@
17pkgdatadir = $(datadir)/@PACKAGE@
18pkglibdir = $(libdir)/@PACKAGE@
19pkgincludedir = $(includedir)/@PACKAGE@
20am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
21install_sh_DATA = $(install_sh) -c -m 644
22install_sh_PROGRAM = $(install_sh) -c
23install_sh_SCRIPT = $(install_sh) -c
24INSTALL_HEADER = $(INSTALL_DATA)
25transform = $(program_transform_name)
26NORMAL_INSTALL = :
27PRE_INSTALL = :
28POST_INSTALL = :
29NORMAL_UNINSTALL = :
30PRE_UNINSTALL = :
31POST_UNINSTALL = :
32build_triplet = @build@
33host_triplet = @host@
34subdir = doc/support_matrix
35DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
36ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
37am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
38 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
39 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
40 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
41 $(top_srcdir)/configure.in
42am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43 $(ACLOCAL_M4)
44mkinstalldirs = $(install_sh) -d
45CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
46CONFIG_CLEAN_FILES =
47SOURCES =
48DIST_SOURCES =
49DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
50ACLOCAL = @ACLOCAL@
51AMTAR = @AMTAR@
52AR = @AR@
53AS = @AS@
54AUTOCONF = @AUTOCONF@
55AUTOHEADER = @AUTOHEADER@
56AUTOMAKE = @AUTOMAKE@
57AWK = @AWK@
58CC = @CC@
59CCDEPMODE = @CCDEPMODE@
60CFLAGS = @CFLAGS@
61CPP = @CPP@
62CPPFLAGS = @CPPFLAGS@
63CXX = @CXX@
64CXXCPP = @CXXCPP@
65CXXDEPMODE = @CXXDEPMODE@
66CXXFLAGS = @CXXFLAGS@
67CYGPATH_W = @CYGPATH_W@
68DBG_CFLAGS = @DBG_CFLAGS@
69DEBUG = @DEBUG@
70DEFS = @DEFS@
71DEPDIR = @DEPDIR@
72DLLTOOL = @DLLTOOL@
73ECHO = @ECHO@
74ECHO_C = @ECHO_C@
75ECHO_N = @ECHO_N@
76ECHO_T = @ECHO_T@
77EGREP = @EGREP@
78EXEEXT = @EXEEXT@
79F77 = @F77@
80FFLAGS = @FFLAGS@
81GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
82GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
83GLIB_CFLAGS = @GLIB_CFLAGS@
84GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
85GLIB_LIBS = @GLIB_LIBS@
86GLIB_MKENUMS = @GLIB_MKENUMS@
87GOBJECT_QUERY = @GOBJECT_QUERY@
88GREP = @GREP@
89GTKDOC_CHECK = @GTKDOC_CHECK@
90GTK_CFLAGS = @GTK_CFLAGS@
91GTK_LIBS = @GTK_LIBS@
92HTML_DIR = @HTML_DIR@
93INSTALL = @INSTALL@
94INSTALL_DATA = @INSTALL_DATA@
95INSTALL_PROGRAM = @INSTALL_PROGRAM@
96INSTALL_SCRIPT = @INSTALL_SCRIPT@
97INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
98LDFLAGS = @LDFLAGS@
99LEX = @LEX@
100LEXLIB = @LEXLIB@
101LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
102LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
103LIBGSF_LIBS = @LIBGSF_LIBS@
104LIBOBJS = @LIBOBJS@
105LIBS = @LIBS@
106LIBTOOL = @LIBTOOL@
107LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
108LIBXML2_LIBS = @LIBXML2_LIBS@
109LN_S = @LN_S@
110LTLIBOBJS = @LTLIBOBJS@
111LTVERSION = @LTVERSION@
112MAGIC_LIBS = @MAGIC_LIBS@
113MAKEINFO = @MAKEINFO@
114MATH_LIBS = @MATH_LIBS@
115MKDIR_P = @MKDIR_P@
116OBJDUMP = @OBJDUMP@
117OBJEXT = @OBJEXT@
118PACKAGE = @PACKAGE@
119PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
120PACKAGE_NAME = @PACKAGE_NAME@
121PACKAGE_STRING = @PACKAGE_STRING@
122PACKAGE_TARNAME = @PACKAGE_TARNAME@
123PACKAGE_VERSION = @PACKAGE_VERSION@
124PATH_SEPARATOR = @PATH_SEPARATOR@
125PKG_CONFIG = @PKG_CONFIG@
126PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
127RANLIB = @RANLIB@
128SET_MAKE = @SET_MAKE@
129SHELL = @SHELL@
130STRIP = @STRIP@
131VERSION = @VERSION@
132XML2_CONFIG = @XML2_CONFIG@
133XML_CPPFLAGS = @XML_CPPFLAGS@
134XML_LIBS = @XML_LIBS@
135Z_CFLAGS = @Z_CFLAGS@
136Z_LIBS = @Z_LIBS@
137abs_builddir = @abs_builddir@
138abs_srcdir = @abs_srcdir@
139abs_top_builddir = @abs_top_builddir@
140abs_top_srcdir = @abs_top_srcdir@
141ac_ct_CC = @ac_ct_CC@
142ac_ct_CXX = @ac_ct_CXX@
143ac_ct_F77 = @ac_ct_F77@
144am__include = @am__include@
145am__leading_dot = @am__leading_dot@
146am__quote = @am__quote@
147am__tar = @am__tar@
148am__untar = @am__untar@
149bindir = @bindir@
150build = @build@
151build_alias = @build_alias@
152build_cpu = @build_cpu@
153build_os = @build_os@
154build_vendor = @build_vendor@
155builddir = @builddir@
156datadir = @datadir@
157datarootdir = @datarootdir@
158docdir = @docdir@
159dvidir = @dvidir@
160exec_prefix = @exec_prefix@
161host = @host@
162host_alias = @host_alias@
163host_cpu = @host_cpu@
164host_os = @host_os@
165host_vendor = @host_vendor@
166htmldir = @htmldir@
167includedir = @includedir@
168infodir = @infodir@
169install_sh = @install_sh@
170libdir = @libdir@
171libexecdir = @libexecdir@
172localedir = @localedir@
173localstatedir = @localstatedir@
174mandir = @mandir@
175mkdir_p = @mkdir_p@
176oldincludedir = @oldincludedir@
177pdfdir = @pdfdir@
178prefix = @prefix@
179program_transform_name = @program_transform_name@
180psdir = @psdir@
181sbindir = @sbindir@
182sharedstatedir = @sharedstatedir@
183srcdir = @srcdir@
184sysconfdir = @sysconfdir@
185target_alias = @target_alias@
186top_builddir = @top_builddir@
187top_srcdir = @top_srcdir@
188EXTRA_DIST = matrix.html
189all: all-am
190
191.SUFFIXES:
192$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
193 @for dep in $?; do \
194 case '$(am__configure_deps)' in \
195 *$$dep*) \
196 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
197 && exit 0; \
198 exit 1;; \
199 esac; \
200 done; \
201 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/support_matrix/Makefile'; \
202 cd $(top_srcdir) && \
203 $(AUTOMAKE) --gnu doc/support_matrix/Makefile
204.PRECIOUS: Makefile
205Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
206 @case '$?' in \
207 *config.status*) \
208 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
209 *) \
210 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
211 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
212 esac;
213
214$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
215 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
216
217$(top_srcdir)/configure: $(am__configure_deps)
218 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
219$(ACLOCAL_M4): $(am__aclocal_m4_deps)
220 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
221
222mostlyclean-libtool:
223 -rm -f *.lo
224
225clean-libtool:
226 -rm -rf .libs _libs
227tags: TAGS
228TAGS:
229
230ctags: CTAGS
231CTAGS:
232
233
234distdir: $(DISTFILES)
235 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
236 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
237 list='$(DISTFILES)'; \
238 dist_files=`for file in $$list; do echo $$file; done | \
239 sed -e "s|^$$srcdirstrip/||;t" \
240 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
241 case $$dist_files in \
242 */*) $(MKDIR_P) `echo "$$dist_files" | \
243 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
244 sort -u` ;; \
245 esac; \
246 for file in $$dist_files; do \
247 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
248 if test -d $$d/$$file; then \
249 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
250 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
251 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
252 fi; \
253 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
254 else \
255 test -f $(distdir)/$$file \
256 || cp -p $$d/$$file $(distdir)/$$file \
257 || exit 1; \
258 fi; \
259 done
260check-am: all-am
261check: check-am
262all-am: Makefile
263installdirs:
264install: install-am
265install-exec: install-exec-am
266install-data: install-data-am
267uninstall: uninstall-am
268
269install-am: all-am
270 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
271
272installcheck: installcheck-am
273install-strip:
274 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
275 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
276 `test -z '$(STRIP)' || \
277 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
278mostlyclean-generic:
279
280clean-generic:
281
282distclean-generic:
283 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
284
285maintainer-clean-generic:
286 @echo "This command is intended for maintainers to use"
287 @echo "it deletes files that may require special tools to rebuild."
288clean: clean-am
289
290clean-am: clean-generic clean-libtool mostlyclean-am
291
292distclean: distclean-am
293 -rm -f Makefile
294distclean-am: clean-am distclean-generic
295
296dvi: dvi-am
297
298dvi-am:
299
300html: html-am
301
302info: info-am
303
304info-am:
305
306install-data-am:
307
308install-dvi: install-dvi-am
309
310install-exec-am:
311
312install-html: install-html-am
313
314install-info: install-info-am
315
316install-man:
317
318install-pdf: install-pdf-am
319
320install-ps: install-ps-am
321
322installcheck-am:
323
324maintainer-clean: maintainer-clean-am
325 -rm -f Makefile
326maintainer-clean-am: distclean-am maintainer-clean-generic
327
328mostlyclean: mostlyclean-am
329
330mostlyclean-am: mostlyclean-generic mostlyclean-libtool
331
332pdf: pdf-am
333
334pdf-am:
335
336ps: ps-am
337
338ps-am:
339
340uninstall-am:
341
342.MAKE: install-am install-strip
343
344.PHONY: all all-am check check-am clean clean-generic clean-libtool \
345 distclean distclean-generic distclean-libtool distdir dvi \
346 dvi-am html html-am info info-am install install-am \
347 install-data install-data-am install-dvi install-dvi-am \
348 install-exec install-exec-am install-html install-html-am \
349 install-info install-info-am install-man install-pdf \
350 install-pdf-am install-ps install-ps-am install-strip \
351 installcheck installcheck-am installdirs maintainer-clean \
352 maintainer-clean-generic mostlyclean mostlyclean-generic \
353 mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
354
355doc:
356 ./update_import_plugins.pl
357 ./generate_html_page.pl
358# Tell versions [3.59,3.63) of GNU make to not export all variables.
359# Otherwise a system limit (for SysV at least) may be exceeded.
360.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/doc/support_matrix/matrix.html b/src/others/mimesh/libg3d-0.0.8/doc/support_matrix/matrix.html
new file mode 100644
index 0000000..44d4e8e
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/doc/support_matrix/matrix.html
@@ -0,0 +1,825 @@
1<html>
2 <head>
3 <title>libg3d support matrix</title>
4 <style>
5 <!--
6body { background-color: #FADC46; }
7table { border: 1px solid black; width: 100%; border-collapse: collapse; }
8tr.topline { border-top: 2px solid black; }
9tr.default { }
10td { border: 1px solid gray; margin: 2px; background-color: white;
11 font-size: small; vertical-align: top; }
12span.content { }
13th { text-align: right; background-color: #BBB; font-weight: normal;
14 font-size: small; vertical-align: top; }
15 //-->
16 </style>
17 <script>
18 <!--
19var hidden=false;
20
21function hide_content() {
22 var spans = document.getElementsByTagName("span");
23 for(i = 0; i < spans.length; i ++) {
24 spans[i].style.display = "none";
25 }
26 hidden = true;
27}
28
29function show_content() {
30 var spans = document.getElementsByTagName("span");
31 for(i = 0; i < spans.length; i ++) {
32 spans[i].style.display = "block";
33 }
34 hidden = false;
35}
36 //-->
37 </script>
38 </head>
39 <body>
40 <a href="javascript:hide_content();">hide content</a> |
41 <a href="javascript:show_content();">show content</a>
42 <table>
43 <tr><td>&nbsp;</td>
44<td>3mf<br /> 3dmf<br /> b3d</td>
45<td>3ds<br /> prj</td>
46<td>ac<br /> acc</td>
47<td>acf</td>
48<td>ar<br /> dof</td>
49<td>ase</td>
50<td>blend</td>
51<td>c4d</td>
52<td>cob</td>
53<td>dae</td>
54<td>dpm</td>
55<td>dxf</td>
56<td>flt</td>
57<td>glb</td>
58<td>bmp<br /> sgi<br /> dds<br /> (gdk-pixbuf supported types)</td>
59<td>iob</td>
60<td>joe<br /> car</td>
61<td>kmz</td>
62<td>dat<br /> mpd<br /> ldr</td>
63<td>lcd</td>
64<td>lw<br /> lwb<br /> lwo</td>
65<td>max</td>
66<td>mb</td>
67<td>md2</td>
68<td>md3</td>
69<td>nff</td>
70<td>obj</td>
71<td>osm</td>
72<td>q3o<br /> q3s</td>
73<td>r4</td>
74<td>rbh</td>
75<td>skp</td>
76<td>stl</td>
77<td>3do</td>
78<td>test</td>
79<td>vrml<br /> iv</td>
80<td>wrl</td>
81</tr>
82<tr class="topline"><th id="th-">description</th>
83<td style=""><span class="content">&nbsp;</span></td>
84<td style=""><span class="content">&nbsp;</span></td>
85<td style=""><span class="content">&nbsp;</span></td>
86<td style=""><span class="content">&nbsp;</span></td>
87<td style=""><span class="content">&nbsp;</span></td>
88<td style=""><span class="content">&nbsp;</span></td>
89<td style=""><span class="content">&nbsp;</span></td>
90<td style=""><span class="content">&nbsp;</span></td>
91<td style=""><span class="content">&nbsp;</span></td>
92<td style=""><span class="content">COLLADA</span></td>
93<td style=""><span class="content">DarkPlacesModel</span></td>
94<td style=""><span class="content">&nbsp;</span></td>
95<td style=""><span class="content">OpenFlight</span></td>
96<td style=""><span class="content">UltimateStunts</span></td>
97<td style=""><span class="content">Height field</span></td>
98<td style=""><span class="content">&nbsp;</span></td>
99<td style=""><span class="content">VDrift</span></td>
100<td style=""><span class="content">Google Earth container, models handled by COLLADA plugin (imp_dae)</span></td>
101<td style=""><span class="content">LDraw</span></td>
102<td style=""><span class="content">LeoCAD</span></td>
103<td style=""><span class="content">&nbsp;</span></td>
104<td style=""><span class="content">3D Studio MAX</span></td>
105<td style=""><span class="content">Maya</span></td>
106<td style=""><span class="content">Quake 2 models</span></td>
107<td style=""><span class="content">&nbsp;</span></td>
108<td style=""><span class="content">Neutral file format</span></td>
109<td style=""><span class="content">&nbsp;</span></td>
110<td style=""><span class="content">OpenStreetMap</span></td>
111<td style=""><span class="content">Quick3D</span></td>
112<td style=""><span class="content">Reflections 4</span></td>
113<td style=""><span class="content">Discworld Noir, VERY experimental</span></td>
114<td style=""><span class="content">SketchUp</span></td>
115<td style=""><span class="content">&nbsp;</span></td>
116<td style=""><span class="content">Total Annihilation</span></td>
117<td style=""><span class="content">plugin to test some concepts and routines in libg3d, not loading any files</span></td>
118<td style=""><span class="content">VRMLv1, Inventor</span></td>
119<td style=""><span class="content">VRML97</span></td>
120</tr>
121<tr class="default"><th id="th-">built without EXPERIMENTAL</th>
122<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
123<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
124<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
125<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
126<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
127<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
128<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
129<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
130<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
131<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
132<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
133<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
134<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
135<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
136<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
137<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
138<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
139<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
140<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
141<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
142<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
143<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
144<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
145<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
146<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
147<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
148<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
149<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
150<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
151<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
152<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
153<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
154<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
155<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
156<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
157<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
158<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
159</tr>
160<tr class="default"><th id="th-">depends on libraries except glib</th>
161<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
162<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
163<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
164<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
165<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
166<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
167<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
168<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
169<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
170<td style="background-color: #884;"><span class="content"> libxml2</span></td>
171<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
172<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
173<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
174<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
175<td style="background-color: #4B4;"><span class="content"> gdk-pixbuf for more image types</span></td>
176<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
177<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
178<td style="background-color: #884;"><span class="content"> libxml2, libgsf</span></td>
179<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
180<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
181<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
182<td style="background-color: #884;"><span class="content"> libgsf</span></td>
183<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
184<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
185<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
186<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
187<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
188<td style="background-color: #884;"><span class="content"> libxml2</span></td>
189<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
190<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
191<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
192<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
193<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
194<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
195<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
196<td style="background-color: #884;"><span class="content"> flex</span></td>
197<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
198</tr>
199<tr class="default"><th id="th-">depends on external data files at runtime</th>
200<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
201<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
202<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
203<td style="background-color: #884;"><span class="content"> airfoil data in $AIRFOIL_DIR</span></td>
204<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
205<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
206<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
207<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
208<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
209<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
210<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
211<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
212<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
213<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
214<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
215<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
216<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
217<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
218<td style="background-color: #884;"><span class="content"> LDraw parts library in $LDRAWDIR</span></td>
219<td style="background-color: #884;"><span class="content"> LeoCAD parts library in $LEOCAD_LIB</span></td>
220<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
221<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
222<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
223<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
224<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
225<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
226<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
227<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
228<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
229<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
230<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
231<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
232<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
233<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
234<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
235<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
236<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
237</tr>
238<tr class="topline"><th id="th-">libmagic detector</th>
239<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
240<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
241<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
242<td style="background-color: #F04;"><span class="content"> binary with no magic</span></td>
243<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
244<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
245<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
246<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
247<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
248<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
249<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
250<td style="background-color: #884;"><span class="content">&nbsp;</span></td>
251<td style="background-color: #4B4;"><span class="content">&nbsp;</span></td>
252<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
253<td style="background-color: #F04;"><span class="content"> no static list possible</span></td>
254<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
255<td style="background-color: #884;"><span class="content"> only for .joe files</span></td>
256<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
257<td style="background-color: #884;"><span class="content"> partly, .dat has no real magic</span></td>
258<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
259<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
260<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
261<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
262<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
263<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
264<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
265<td style="background-color: #F04;"><span class="content"> text format w/o magic</span></td>
266<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
267<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
268<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
269<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
270<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
271<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
272<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
273<td style="background-color: #F04;"><span class="content"> </span></td>
274<td style="background-color: #4B4;"><span class="content"> VRML, not Inventor</span></td>
275<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
276</tr>
277<tr class="default"><th id="th-">G3DStream support</th>
278<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
279<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
280<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
281<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
282<td style="background-color: #884;"><span class="content"> ar is decomressed to local files</span></td>
283<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
284<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
285<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
286<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
287<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
288<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
289<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
290<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
291<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
292<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
293<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
294<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
295<td style="background-color: #B44;"><span class="content"> has to be real file</span></td>
296<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
297<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
298<td style="background-color: #4B4;"><span class="content">&nbsp;</span></td>
299<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
300<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
301<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
302<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
303<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
304<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
305<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
306<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
307<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
308<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
309<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
310<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
311<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
312<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
313<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
314<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
315</tr>
316<tr class="default"><th id="th-">Works without seeking</th>
317<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
318<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
319<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
320<td style="background-color: #D24;"><span class="content"> seeking may be removed</span></td>
321<td style=""><span class="content">&nbsp;</span></td>
322<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
323<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
324<td style=""><span class="content">&nbsp;</span></td>
325<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
326<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
327<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
328<td style="background-color: #F04;"><span class="content"> not yet, should be possible</span></td>
329<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
330<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
331<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
332<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
333<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
334<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
335<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
336<td style="background-color: #F04;"><span class="content"> some data at end of file has to be read first</span></td>
337<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
338<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
339<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
340<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
341<td style="background-color: #F04;"><span class="content"> may be possible</span></td>
342<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
343<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
344<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
345<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
346<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
347<td style=""><span class="content">&nbsp;</span></td>
348<td style=""><span class="content">&nbsp;</span></td>
349<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
350<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
351<td style="background-color: #0F4;"><span class="content"> not file-based</span></td>
352<td style=""><span class="content">&nbsp;</span></td>
353<td style=""><span class="content">&nbsp;</span></td>
354</tr>
355<tr class="default"><th id="th-">Progress bar updates</th>
356<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
357<td style=""><span class="content">&nbsp;</span></td>
358<td style=""><span class="content">&nbsp;</span></td>
359<td style=""><span class="content">&nbsp;</span></td>
360<td style=""><span class="content">&nbsp;</span></td>
361<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
362<td style=""><span class="content">&nbsp;</span></td>
363<td style=""><span class="content">&nbsp;</span></td>
364<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
365<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
366<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
367<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
368<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
369<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
370<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
371<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
372<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
373<td style=""><span class="content">&nbsp;</span></td>
374<td style="background-color: #884;"><span class="content"> bigger jumps</span></td>
375<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
376<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
377<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
378<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
379<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
380<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
381<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
382<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
383<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
384<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
385<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
386<td style=""><span class="content">&nbsp;</span></td>
387<td style=""><span class="content">&nbsp;</span></td>
388<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
389<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
390<td style=""><span class="content">&nbsp;</span></td>
391<td style=""><span class="content">&nbsp;</span></td>
392<td style=""><span class="content">&nbsp;</span></td>
393</tr>
394<tr class="default"><th id="th-">Container format</th>
395<td style="background-color: #884;"><span class="content"> ASCII files not supported</span></td>
396<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
397<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
398<td style="background-color: #884;"><span class="content"> just struct serialization, different for every version</span></td>
399<td style=""><span class="content">&nbsp;</span></td>
400<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
401<td style="background-color: #D24;"><span class="content">&nbsp;</span></td>
402<td style="background-color: #884;"><span class="content"> basic support for v5, v6</span></td>
403<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
404<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
405<td style="background-color: #884;"><span class="content">&nbsp;</span></td>
406<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
407<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
408<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
409<td style="background-color: #0F4;"><span class="content"> handled by image plugins</span></td>
410<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
411<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
412<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
413<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
414<td style="background-color: #4B4;"><span class="content"> some versions may be unsupported</span></td>
415<td style="background-color: #4B4;"><span class="content">&nbsp;</span></td>
416<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
417<td style="background-color: #884;"><span class="content"> only binary, no ASCII</span></td>
418<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
419<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
420<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
421<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
422<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
423<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
424<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
425<td style=""><span class="content">&nbsp;</span></td>
426<td style="background-color: #B44;"><span class="content">&nbsp;</span></td>
427<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
428<td style="background-color: #884;"><span class="content"> .3do works, .ufo not</span></td>
429<td style=""><span class="content">&nbsp;</span></td>
430<td style=""><span class="content">&nbsp;</span></td>
431<td style=""><span class="content">&nbsp;</span></td>
432</tr>
433<tr class="default"><th id="th-">Object grouping</th>
434<td style="background-color: #884;"><span class="content"> no hierarchy yet</span></td>
435<td style=""><span class="content">&nbsp;</span></td>
436<td style=""><span class="content">&nbsp;</span></td>
437<td style=""><span class="content">&nbsp;</span></td>
438<td style=""><span class="content">&nbsp;</span></td>
439<td style=""><span class="content">&nbsp;</span></td>
440<td style=""><span class="content">&nbsp;</span></td>
441<td style=""><span class="content">&nbsp;</span></td>
442<td style=""><span class="content">&nbsp;</span></td>
443<td style=""><span class="content">&nbsp;</span></td>
444<td style=""><span class="content">&nbsp;</span></td>
445<td style="background-color: #4B4;"><span class="content">&nbsp;</span></td>
446<td style=""><span class="content">&nbsp;</span></td>
447<td style=""><span class="content">&nbsp;</span></td>
448<td style="background-color: #884;"><span class="content"> just one mesh</span></td>
449<td style=""><span class="content">&nbsp;</span></td>
450<td style=""><span class="content">&nbsp;</span></td>
451<td style=""><span class="content">&nbsp;</span></td>
452<td style=""><span class="content">&nbsp;</span></td>
453<td style=""><span class="content">&nbsp;</span></td>
454<td style=""><span class="content">&nbsp;</span></td>
455<td style=""><span class="content">&nbsp;</span></td>
456<td style=""><span class="content">&nbsp;</span></td>
457<td style=""><span class="content">&nbsp;</span></td>
458<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
459<td style=""><span class="content">&nbsp;</span></td>
460<td style="background-color: #D24;"><span class="content"> optional, but not working yet</span></td>
461<td style=""><span class="content">&nbsp;</span></td>
462<td style=""><span class="content">&nbsp;</span></td>
463<td style=""><span class="content">&nbsp;</span></td>
464<td style=""><span class="content">&nbsp;</span></td>
465<td style=""><span class="content">&nbsp;</span></td>
466<td style=""><span class="content">&nbsp;</span></td>
467<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
468<td style=""><span class="content">&nbsp;</span></td>
469<td style=""><span class="content">&nbsp;</span></td>
470<td style=""><span class="content">&nbsp;</span></td>
471</tr>
472<tr class="default"><th id="th-">Object transformation</th>
473<td style=""><span class="content">&nbsp;</span></td>
474<td style="background-color: #884;"><span class="content">&nbsp;</span></td>
475<td style=""><span class="content">&nbsp;</span></td>
476<td style=""><span class="content">&nbsp;</span></td>
477<td style=""><span class="content">&nbsp;</span></td>
478<td style=""><span class="content">&nbsp;</span></td>
479<td style=""><span class="content">&nbsp;</span></td>
480<td style=""><span class="content">&nbsp;</span></td>
481<td style=""><span class="content">&nbsp;</span></td>
482<td style=""><span class="content">&nbsp;</span></td>
483<td style=""><span class="content">&nbsp;</span></td>
484<td style=""><span class="content">&nbsp;</span></td>
485<td style=""><span class="content">&nbsp;</span></td>
486<td style=""><span class="content">&nbsp;</span></td>
487<td style=""><span class="content">&nbsp;</span></td>
488<td style=""><span class="content">&nbsp;</span></td>
489<td style=""><span class="content">&nbsp;</span></td>
490<td style=""><span class="content">&nbsp;</span></td>
491<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
492<td style=""><span class="content">&nbsp;</span></td>
493<td style=""><span class="content">&nbsp;</span></td>
494<td style=""><span class="content">&nbsp;</span></td>
495<td style=""><span class="content">&nbsp;</span></td>
496<td style=""><span class="content">&nbsp;</span></td>
497<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
498<td style=""><span class="content">&nbsp;</span></td>
499<td style=""><span class="content">&nbsp;</span></td>
500<td style=""><span class="content">&nbsp;</span></td>
501<td style=""><span class="content">&nbsp;</span></td>
502<td style=""><span class="content">&nbsp;</span></td>
503<td style=""><span class="content">&nbsp;</span></td>
504<td style=""><span class="content">&nbsp;</span></td>
505<td style=""><span class="content">&nbsp;</span></td>
506<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
507<td style=""><span class="content">&nbsp;</span></td>
508<td style=""><span class="content">&nbsp;</span></td>
509<td style=""><span class="content">&nbsp;</span></td>
510</tr>
511<tr class="topline"><th id="th-">Vertex data</th>
512<td style="background-color: #4B4;"><span class="content">&nbsp;</span></td>
513<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
514<td style=""><span class="content">&nbsp;</span></td>
515<td style=""><span class="content">&nbsp;</span></td>
516<td style=""><span class="content">&nbsp;</span></td>
517<td style=""><span class="content">&nbsp;</span></td>
518<td style=""><span class="content">&nbsp;</span></td>
519<td style=""><span class="content">&nbsp;</span></td>
520<td style=""><span class="content">&nbsp;</span></td>
521<td style=""><span class="content">&nbsp;</span></td>
522<td style=""><span class="content">&nbsp;</span></td>
523<td style="background-color: #4B4;"><span class="content">&nbsp;</span></td>
524<td style="background-color: #4B4;"><span class="content">&nbsp;</span></td>
525<td style=""><span class="content">&nbsp;</span></td>
526<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
527<td style=""><span class="content">&nbsp;</span></td>
528<td style=""><span class="content">&nbsp;</span></td>
529<td style=""><span class="content">&nbsp;</span></td>
530<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
531<td style=""><span class="content">&nbsp;</span></td>
532<td style="background-color: #4B4;"><span class="content">&nbsp;</span></td>
533<td style="background-color: #884;"><span class="content">&nbsp;</span></td>
534<td style=""><span class="content">&nbsp;</span></td>
535<td style=""><span class="content">&nbsp;</span></td>
536<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
537<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
538<td style="background-color: #4B4;"><span class="content">&nbsp;</span></td>
539<td style="background-color: #4B4;"><span class="content">&nbsp;</span></td>
540<td style=""><span class="content">&nbsp;</span></td>
541<td style=""><span class="content">&nbsp;</span></td>
542<td style=""><span class="content">&nbsp;</span></td>
543<td style=""><span class="content">&nbsp;</span></td>
544<td style=""><span class="content">&nbsp;</span></td>
545<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
546<td style=""><span class="content">&nbsp;</span></td>
547<td style=""><span class="content">&nbsp;</span></td>
548<td style=""><span class="content">&nbsp;</span></td>
549</tr>
550<tr class="default"><th id="th-">Normal data</th>
551<td style=""><span class="content">&nbsp;</span></td>
552<td style="background-color: #4B4;"><span class="content">&nbsp;</span></td>
553<td style=""><span class="content">&nbsp;</span></td>
554<td style=""><span class="content">&nbsp;</span></td>
555<td style=""><span class="content">&nbsp;</span></td>
556<td style=""><span class="content">&nbsp;</span></td>
557<td style=""><span class="content">&nbsp;</span></td>
558<td style=""><span class="content">&nbsp;</span></td>
559<td style=""><span class="content">&nbsp;</span></td>
560<td style=""><span class="content">&nbsp;</span></td>
561<td style=""><span class="content">&nbsp;</span></td>
562<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
563<td style=""><span class="content">&nbsp;</span></td>
564<td style=""><span class="content">&nbsp;</span></td>
565<td style=""><span class="content">&nbsp;</span></td>
566<td style=""><span class="content">&nbsp;</span></td>
567<td style=""><span class="content">&nbsp;</span></td>
568<td style=""><span class="content">&nbsp;</span></td>
569<td style=""><span class="content">&nbsp;</span></td>
570<td style=""><span class="content">&nbsp;</span></td>
571<td style=""><span class="content">&nbsp;</span></td>
572<td style=""><span class="content">&nbsp;</span></td>
573<td style=""><span class="content">&nbsp;</span></td>
574<td style=""><span class="content">&nbsp;</span></td>
575<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
576<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
577<td style="background-color: #F04;"><span class="content"> not yet implemented</span></td>
578<td style=""><span class="content">&nbsp;</span></td>
579<td style=""><span class="content">&nbsp;</span></td>
580<td style=""><span class="content">&nbsp;</span></td>
581<td style=""><span class="content">&nbsp;</span></td>
582<td style=""><span class="content">&nbsp;</span></td>
583<td style=""><span class="content">&nbsp;</span></td>
584<td style=""><span class="content">&nbsp;</span></td>
585<td style=""><span class="content">&nbsp;</span></td>
586<td style=""><span class="content">&nbsp;</span></td>
587<td style=""><span class="content">&nbsp;</span></td>
588</tr>
589<tr class="default"><th id="th-">Face data</th>
590<td style="background-color: #4B4;"><span class="content">&nbsp;</span></td>
591<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
592<td style=""><span class="content">&nbsp;</span></td>
593<td style=""><span class="content">&nbsp;</span></td>
594<td style=""><span class="content">&nbsp;</span></td>
595<td style=""><span class="content">&nbsp;</span></td>
596<td style=""><span class="content">&nbsp;</span></td>
597<td style=""><span class="content">&nbsp;</span></td>
598<td style=""><span class="content">&nbsp;</span></td>
599<td style=""><span class="content">&nbsp;</span></td>
600<td style=""><span class="content">&nbsp;</span></td>
601<td style="background-color: #4B4;"><span class="content">&nbsp;</span></td>
602<td style="background-color: #4B4;"><span class="content">&nbsp;</span></td>
603<td style=""><span class="content">&nbsp;</span></td>
604<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
605<td style=""><span class="content">&nbsp;</span></td>
606<td style=""><span class="content">&nbsp;</span></td>
607<td style=""><span class="content">&nbsp;</span></td>
608<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
609<td style=""><span class="content">&nbsp;</span></td>
610<td style="background-color: #4B4;"><span class="content"> fails: f15compl.lw</span></td>
611<td style="background-color: #884;"><span class="content">&nbsp;</span></td>
612<td style=""><span class="content">&nbsp;</span></td>
613<td style=""><span class="content">&nbsp;</span></td>
614<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
615<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
616<td style="background-color: #4B4;"><span class="content">&nbsp;</span></td>
617<td style=""><span class="content">&nbsp;</span></td>
618<td style=""><span class="content">&nbsp;</span></td>
619<td style=""><span class="content">&nbsp;</span></td>
620<td style=""><span class="content">&nbsp;</span></td>
621<td style=""><span class="content">&nbsp;</span></td>
622<td style=""><span class="content">&nbsp;</span></td>
623<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
624<td style=""><span class="content">&nbsp;</span></td>
625<td style=""><span class="content">&nbsp;</span></td>
626<td style=""><span class="content">&nbsp;</span></td>
627</tr>
628<tr class="default"><th id="th-">Face colors</th>
629<td style="background-color: #884;"><span class="content">&nbsp;</span></td>
630<td style="background-color: #4B4;"><span class="content">&nbsp;</span></td>
631<td style=""><span class="content">&nbsp;</span></td>
632<td style=""><span class="content">&nbsp;</span></td>
633<td style=""><span class="content">&nbsp;</span></td>
634<td style=""><span class="content">&nbsp;</span></td>
635<td style=""><span class="content">&nbsp;</span></td>
636<td style=""><span class="content">&nbsp;</span></td>
637<td style=""><span class="content">&nbsp;</span></td>
638<td style=""><span class="content">&nbsp;</span></td>
639<td style=""><span class="content">&nbsp;</span></td>
640<td style="background-color: #4B4;"><span class="content">&nbsp;</span></td>
641<td style="background-color: #884;"><span class="content">&nbsp;</span></td>
642<td style=""><span class="content">&nbsp;</span></td>
643<td style="background-color: #F04;"><span class="content"> no external color information possible yet</span></td>
644<td style=""><span class="content">&nbsp;</span></td>
645<td style=""><span class="content">&nbsp;</span></td>
646<td style=""><span class="content">&nbsp;</span></td>
647<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
648<td style=""><span class="content">&nbsp;</span></td>
649<td style="background-color: #4B4;"><span class="content"> some fail: wrong color indices</span></td>
650<td style=""><span class="content">&nbsp;</span></td>
651<td style=""><span class="content">&nbsp;</span></td>
652<td style=""><span class="content">&nbsp;</span></td>
653<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
654<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
655<td style="background-color: #884;"><span class="content">&nbsp;</span></td>
656<td style="background-color: #884;"><span class="content"> self-defined</span></td>
657<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
658<td style=""><span class="content">&nbsp;</span></td>
659<td style=""><span class="content">&nbsp;</span></td>
660<td style=""><span class="content">&nbsp;</span></td>
661<td style=""><span class="content">&nbsp;</span></td>
662<td style="background-color: #4B4;"><span class="content">&nbsp;</span></td>
663<td style=""><span class="content">&nbsp;</span></td>
664<td style=""><span class="content">&nbsp;</span></td>
665<td style=""><span class="content">&nbsp;</span></td>
666</tr>
667<tr class="default"><th id="th-">Face transparency</th>
668<td style="background-color: #884;"><span class="content">&nbsp;</span></td>
669<td style="background-color: #4B4;"><span class="content">&nbsp;</span></td>
670<td style=""><span class="content">&nbsp;</span></td>
671<td style=""><span class="content">&nbsp;</span></td>
672<td style=""><span class="content">&nbsp;</span></td>
673<td style=""><span class="content">&nbsp;</span></td>
674<td style=""><span class="content">&nbsp;</span></td>
675<td style=""><span class="content">&nbsp;</span></td>
676<td style=""><span class="content">&nbsp;</span></td>
677<td style=""><span class="content">&nbsp;</span></td>
678<td style=""><span class="content">&nbsp;</span></td>
679<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
680<td style=""><span class="content">&nbsp;</span></td>
681<td style=""><span class="content">&nbsp;</span></td>
682<td style=""><span class="content">&nbsp;</span></td>
683<td style=""><span class="content">&nbsp;</span></td>
684<td style=""><span class="content">&nbsp;</span></td>
685<td style=""><span class="content">&nbsp;</span></td>
686<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
687<td style=""><span class="content">&nbsp;</span></td>
688<td style=""><span class="content">&nbsp;</span></td>
689<td style=""><span class="content">&nbsp;</span></td>
690<td style=""><span class="content">&nbsp;</span></td>
691<td style=""><span class="content">&nbsp;</span></td>
692<td style=""><span class="content">&nbsp;</span></td>
693<td style=""><span class="content">&nbsp;</span></td>
694<td style=""><span class="content">&nbsp;</span></td>
695<td style=""><span class="content">&nbsp;</span></td>
696<td style=""><span class="content">&nbsp;</span></td>
697<td style=""><span class="content">&nbsp;</span></td>
698<td style=""><span class="content">&nbsp;</span></td>
699<td style=""><span class="content">&nbsp;</span></td>
700<td style=""><span class="content">&nbsp;</span></td>
701<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
702<td style=""><span class="content">&nbsp;</span></td>
703<td style=""><span class="content">&nbsp;</span></td>
704<td style=""><span class="content">&nbsp;</span></td>
705</tr>
706<tr class="topline"><th id="th-">Texture images</th>
707<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
708<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
709<td style=""><span class="content">&nbsp;</span></td>
710<td style=""><span class="content">&nbsp;</span></td>
711<td style=""><span class="content">&nbsp;</span></td>
712<td style="background-color: #884;"><span class="content"> partly</span></td>
713<td style=""><span class="content">&nbsp;</span></td>
714<td style=""><span class="content">&nbsp;</span></td>
715<td style=""><span class="content">&nbsp;</span></td>
716<td style=""><span class="content">&nbsp;</span></td>
717<td style=""><span class="content">&nbsp;</span></td>
718<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
719<td style="background-color: #884;"><span class="content">&nbsp;</span></td>
720<td style=""><span class="content">&nbsp;</span></td>
721<td style=""><span class="content">&nbsp;</span></td>
722<td style=""><span class="content">&nbsp;</span></td>
723<td style=""><span class="content">&nbsp;</span></td>
724<td style=""><span class="content">&nbsp;</span></td>
725<td style=""><span class="content">&nbsp;</span></td>
726<td style=""><span class="content">&nbsp;</span></td>
727<td style=""><span class="content">&nbsp;</span></td>
728<td style=""><span class="content">&nbsp;</span></td>
729<td style=""><span class="content">&nbsp;</span></td>
730<td style="background-color: #4B4;"><span class="content">&nbsp;</span></td>
731<td style="background-color: #884;"><span class="content"> some guessing</span></td>
732<td style=""><span class="content">&nbsp;</span></td>
733<td style=""><span class="content">&nbsp;</span></td>
734<td style=""><span class="content">&nbsp;</span></td>
735<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
736<td style=""><span class="content">&nbsp;</span></td>
737<td style=""><span class="content">&nbsp;</span></td>
738<td style=""><span class="content">&nbsp;</span></td>
739<td style=""><span class="content">&nbsp;</span></td>
740<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
741<td style=""><span class="content">&nbsp;</span></td>
742<td style=""><span class="content">&nbsp;</span></td>
743<td style=""><span class="content">&nbsp;</span></td>
744</tr>
745<tr class="default"><th id="th-">Texture coordinates (UV)</th>
746<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
747<td style="background-color: #4B4;"><span class="content">&nbsp;</span></td>
748<td style=""><span class="content">&nbsp;</span></td>
749<td style=""><span class="content">&nbsp;</span></td>
750<td style=""><span class="content">&nbsp;</span></td>
751<td style=""><span class="content">&nbsp;</span></td>
752<td style=""><span class="content">&nbsp;</span></td>
753<td style=""><span class="content">&nbsp;</span></td>
754<td style=""><span class="content">&nbsp;</span></td>
755<td style=""><span class="content">&nbsp;</span></td>
756<td style=""><span class="content">&nbsp;</span></td>
757<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
758<td style="background-color: #4B4;"><span class="content">&nbsp;</span></td>
759<td style=""><span class="content">&nbsp;</span></td>
760<td style=""><span class="content">&nbsp;</span></td>
761<td style=""><span class="content">&nbsp;</span></td>
762<td style=""><span class="content">&nbsp;</span></td>
763<td style=""><span class="content">&nbsp;</span></td>
764<td style=""><span class="content">&nbsp;</span></td>
765<td style=""><span class="content">&nbsp;</span></td>
766<td style="background-color: #884;"><span class="content">&nbsp;</span></td>
767<td style=""><span class="content">&nbsp;</span></td>
768<td style=""><span class="content">&nbsp;</span></td>
769<td style=""><span class="content">&nbsp;</span></td>
770<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
771<td style=""><span class="content">&nbsp;</span></td>
772<td style="background-color: #F04;"><span class="content"> not yet implemented</span></td>
773<td style=""><span class="content">&nbsp;</span></td>
774<td style="background-color: #0F4;"><span class="content">&nbsp;</span></td>
775<td style=""><span class="content">&nbsp;</span></td>
776<td style=""><span class="content">&nbsp;</span></td>
777<td style=""><span class="content">&nbsp;</span></td>
778<td style=""><span class="content">&nbsp;</span></td>
779<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
780<td style=""><span class="content">&nbsp;</span></td>
781<td style=""><span class="content">&nbsp;</span></td>
782<td style=""><span class="content">&nbsp;</span></td>
783</tr>
784<tr class="default"><th id="th-">Texture mapping parameters</th>
785<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
786<td style="background-color: #884;"><span class="content">&nbsp;</span></td>
787<td style=""><span class="content">&nbsp;</span></td>
788<td style=""><span class="content">&nbsp;</span></td>
789<td style=""><span class="content">&nbsp;</span></td>
790<td style=""><span class="content">&nbsp;</span></td>
791<td style=""><span class="content">&nbsp;</span></td>
792<td style=""><span class="content">&nbsp;</span></td>
793<td style=""><span class="content">&nbsp;</span></td>
794<td style=""><span class="content">&nbsp;</span></td>
795<td style=""><span class="content">&nbsp;</span></td>
796<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
797<td style=""><span class="content">&nbsp;</span></td>
798<td style=""><span class="content">&nbsp;</span></td>
799<td style=""><span class="content">&nbsp;</span></td>
800<td style=""><span class="content">&nbsp;</span></td>
801<td style=""><span class="content">&nbsp;</span></td>
802<td style=""><span class="content">&nbsp;</span></td>
803<td style=""><span class="content">&nbsp;</span></td>
804<td style=""><span class="content">&nbsp;</span></td>
805<td style=""><span class="content">&nbsp;</span></td>
806<td style=""><span class="content">&nbsp;</span></td>
807<td style=""><span class="content">&nbsp;</span></td>
808<td style=""><span class="content">&nbsp;</span></td>
809<td style=""><span class="content">&nbsp;</span></td>
810<td style=""><span class="content">&nbsp;</span></td>
811<td style=""><span class="content">&nbsp;</span></td>
812<td style=""><span class="content">&nbsp;</span></td>
813<td style=""><span class="content">&nbsp;</span></td>
814<td style=""><span class="content">&nbsp;</span></td>
815<td style=""><span class="content">&nbsp;</span></td>
816<td style=""><span class="content">&nbsp;</span></td>
817<td style=""><span class="content">&nbsp;</span></td>
818<td style="background-color: #F04;"><span class="content">&nbsp;</span></td>
819<td style=""><span class="content">&nbsp;</span></td>
820<td style=""><span class="content">&nbsp;</span></td>
821<td style=""><span class="content">&nbsp;</span></td>
822</tr>
823</table>
824 </body>
825</html>
diff --git a/src/others/mimesh/libg3d-0.0.8/gtk-doc.make b/src/others/mimesh/libg3d-0.0.8/gtk-doc.make
new file mode 100644
index 0000000..354ffb7
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/gtk-doc.make
@@ -0,0 +1,173 @@
1# -*- mode: makefile -*-
2
3####################################
4# Everything below here is generic #
5####################################
6
7if GTK_DOC_USE_LIBTOOL
8GTKDOC_CC = $(LIBTOOL) --mode=compile $(CC) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
9GTKDOC_LD = $(LIBTOOL) --mode=link $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS)
10else
11GTKDOC_CC = $(CC) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
12GTKDOC_LD = $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS)
13endif
14
15# We set GPATH here; this gives us semantics for GNU make
16# which are more like other make's VPATH, when it comes to
17# whether a source that is a target of one rule is then
18# searched for in VPATH/GPATH.
19#
20GPATH = $(srcdir)
21
22TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)
23
24EXTRA_DIST = \
25 $(content_files) \
26 $(HTML_IMAGES) \
27 $(DOC_MAIN_SGML_FILE) \
28 $(DOC_MODULE)-sections.txt \
29 $(DOC_MODULE)-overrides.txt
30
31DOC_STAMPS=scan-build.stamp tmpl-build.stamp sgml-build.stamp html-build.stamp \
32 $(srcdir)/tmpl.stamp $(srcdir)/sgml.stamp $(srcdir)/html.stamp
33
34SCANOBJ_FILES = \
35 $(DOC_MODULE).args \
36 $(DOC_MODULE).hierarchy \
37 $(DOC_MODULE).interfaces \
38 $(DOC_MODULE).prerequisites \
39 $(DOC_MODULE).signals
40
41REPORT_FILES = \
42 $(DOC_MODULE)-undocumented.txt \
43 $(DOC_MODULE)-undeclared.txt \
44 $(DOC_MODULE)-unused.txt
45
46CLEANFILES = $(SCANOBJ_FILES) $(REPORT_FILES) $(DOC_STAMPS)
47
48if ENABLE_GTK_DOC
49all-local: html-build.stamp
50else
51all-local:
52endif
53
54docs: html-build.stamp
55
56#### scan ####
57
58scan-build.stamp: $(HFILE_GLOB) $(CFILE_GLOB)
59 @echo 'gtk-doc: Scanning header files'
60 @-chmod -R u+w $(srcdir)
61 cd $(srcdir) && \
62 gtkdoc-scan --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --ignore-headers="$(IGNORE_HFILES)" $(SCAN_OPTIONS) $(EXTRA_HFILES)
63 if grep -l '^..*$$' $(srcdir)/$(DOC_MODULE).types > /dev/null 2>&1 ; then \
64 CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" CFLAGS="$(GTKDOC_CFLAGS)" LDFLAGS="$(GTKDOC_LIBS)" gtkdoc-scangobj $(SCANGOBJ_OPTIONS) --module=$(DOC_MODULE) --output-dir=$(srcdir) ; \
65 else \
66 cd $(srcdir) ; \
67 for i in $(SCANOBJ_FILES) ; do \
68 test -f $$i || touch $$i ; \
69 done \
70 fi
71 touch scan-build.stamp
72
73$(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt: scan-build.stamp
74 @true
75
76#### templates ####
77
78tmpl-build.stamp: $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt
79 @echo 'gtk-doc: Rebuilding template files'
80 @-chmod -R u+w $(srcdir)
81 cd $(srcdir) && gtkdoc-mktmpl --module=$(DOC_MODULE) $(MKTMPL_OPTIONS)
82 touch tmpl-build.stamp
83
84tmpl.stamp: tmpl-build.stamp
85 @true
86
87tmpl/*.sgml:
88 @true
89
90
91#### xml ####
92
93sgml-build.stamp: tmpl.stamp $(HFILE_GLOB) $(CFILE_GLOB) $(DOC_MODULE)-sections.txt $(srcdir)/tmpl/*.sgml $(expand_content_files)
94 @echo 'gtk-doc: Building XML'
95 @-chmod -R u+w $(srcdir)
96 cd $(srcdir) && \
97 gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --output-format=xml --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) $(MKDB_OPTIONS)
98 touch sgml-build.stamp
99
100sgml.stamp: sgml-build.stamp
101 @true
102
103#### html ####
104
105html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
106 @echo 'gtk-doc: Building HTML'
107 @-chmod -R u+w $(srcdir)
108 rm -rf $(srcdir)/html
109 mkdir $(srcdir)/html
110 cd $(srcdir)/html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
111 test "x$(HTML_IMAGES)" = "x" || ( cd $(srcdir) && cp $(HTML_IMAGES) html )
112 @echo 'gtk-doc: Fixing cross-references'
113 cd $(srcdir) && gtkdoc-fixxref --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
114 touch html-build.stamp
115
116##############
117
118clean-local:
119 rm -f *~ *.bak
120 rm -rf .libs
121
122distclean-local:
123 cd $(srcdir) && \
124 rm -rf xml $(REPORT_FILES) \
125 $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
126
127maintainer-clean-local: clean
128 cd $(srcdir) && rm -rf xml html
129
130install-data-local:
131 -installfiles=`echo $(srcdir)/html/*`; \
132 if test "$$installfiles" = '$(srcdir)/html/*'; \
133 then echo '-- Nothing to install' ; \
134 else \
135 $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR); \
136 for i in $$installfiles; do \
137 echo '-- Installing '$$i ; \
138 $(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR); \
139 done; \
140 echo '-- Installing $(srcdir)/html/index.sgml' ; \
141 $(INSTALL_DATA) $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR) || :; \
142 which gtkdoc-rebase >/dev/null && \
143 gtkdoc-rebase --relative --dest-dir=$(DESTDIR) --html-dir=$(DESTDIR)$(TARGET_DIR) ; \
144 fi
145
146
147uninstall-local:
148 rm -f $(DESTDIR)$(TARGET_DIR)/*
149
150#
151# Require gtk-doc when making dist
152#
153if ENABLE_GTK_DOC
154dist-check-gtkdoc:
155else
156dist-check-gtkdoc:
157 @echo "*** gtk-doc must be installed and enabled in order to make dist"
158 @false
159endif
160
161dist-hook: dist-check-gtkdoc dist-hook-local
162 mkdir $(distdir)/tmpl
163 mkdir $(distdir)/xml
164 mkdir $(distdir)/html
165 -cp $(srcdir)/tmpl/*.sgml $(distdir)/tmpl
166 -cp $(srcdir)/xml/*.xml $(distdir)/xml
167 cp $(srcdir)/html/* $(distdir)/html
168 -cp $(srcdir)/$(DOC_MODULE).types $(distdir)/
169 -cp $(srcdir)/$(DOC_MODULE)-sections.txt $(distdir)/
170 cd $(distdir) && rm -f $(DISTCLEANFILES)
171 -gtkdoc-rebase --online --relative --html-dir=$(distdir)/html
172
173.PHONY : dist-hook-local docs
diff --git a/src/others/mimesh/libg3d-0.0.8/include/Makefile b/src/others/mimesh/libg3d-0.0.8/include/Makefile
new file mode 100644
index 0000000..aa14086
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/include/Makefile
@@ -0,0 +1,515 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# include/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17pkgdatadir = $(datadir)/libg3d
18pkglibdir = $(libdir)/libg3d
19pkgincludedir = $(includedir)/libg3d
20am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
21install_sh_DATA = $(install_sh) -c -m 644
22install_sh_PROGRAM = $(install_sh) -c
23install_sh_SCRIPT = $(install_sh) -c
24INSTALL_HEADER = $(INSTALL_DATA)
25transform = $(program_transform_name)
26NORMAL_INSTALL = :
27PRE_INSTALL = :
28POST_INSTALL = :
29NORMAL_UNINSTALL = :
30PRE_UNINSTALL = :
31POST_UNINSTALL = :
32build_triplet = x86_64-unknown-linux-gnu
33host_triplet = x86_64-unknown-linux-gnu
34subdir = include
35DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
36ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
37am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
38 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
39 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
40 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
41 $(top_srcdir)/configure.in
42am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43 $(ACLOCAL_M4)
44mkinstalldirs = $(install_sh) -d
45CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
46CONFIG_CLEAN_FILES =
47SOURCES =
48DIST_SOURCES =
49RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
50 html-recursive info-recursive install-data-recursive \
51 install-dvi-recursive install-exec-recursive \
52 install-html-recursive install-info-recursive \
53 install-pdf-recursive install-ps-recursive install-recursive \
54 installcheck-recursive installdirs-recursive pdf-recursive \
55 ps-recursive uninstall-recursive
56RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
57 distclean-recursive maintainer-clean-recursive
58ETAGS = etags
59CTAGS = ctags
60DIST_SUBDIRS = $(SUBDIRS)
61DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
62ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
63AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
64AR = ar
65AS = as
66AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
67AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
68AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
69AWK = gawk
70CC = gcc
71CCDEPMODE = depmode=gcc3
72CFLAGS = -g -O2
73CPP = gcc -E
74CPPFLAGS =
75CXX = g++
76CXXCPP = g++ -E
77CXXDEPMODE = depmode=gcc3
78CXXFLAGS = -g -O2
79CYGPATH_W = echo
80DBG_CFLAGS = -O2
81DEBUG = 0
82DEFS = -DHAVE_CONFIG_H
83DEPDIR = .deps
84DLLTOOL = dlltool
85ECHO = echo
86ECHO_C =
87ECHO_N = -n
88ECHO_T =
89EGREP = /bin/grep -E
90EXEEXT =
91F77 =
92FFLAGS =
93GDKPIXBUF_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
94GDKPIXBUF_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
95GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
96GLIB_GENMARSHAL = glib-genmarshal
97GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
98GLIB_MKENUMS = glib-mkenums
99GOBJECT_QUERY = gobject-query
100GREP = /bin/grep
101GTKDOC_CHECK = /usr/bin/gtkdoc-check
102GTK_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
103GTK_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
104HTML_DIR = ${datadir}/gtk-doc/html
105INSTALL = /usr/bin/install -c
106INSTALL_DATA = ${INSTALL} -m 644
107INSTALL_PROGRAM = ${INSTALL}
108INSTALL_SCRIPT = ${INSTALL}
109INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
110LDFLAGS =
111LEX = flex
112LEXLIB = -lfl
113LEX_OUTPUT_ROOT = lex.yy
114LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
115LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
116LIBOBJS =
117LIBS = -lm
118LIBTOOL = $(SHELL) $(top_builddir)/libtool
119LIBXML2_CFLAGS = -I/usr/include/libxml2
120LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
121LN_S = ln -s
122LTLIBOBJS =
123LTVERSION = 0:8:0
124MAGIC_LIBS = -lmagic
125MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
126MATH_LIBS = -lm
127MKDIR_P = /bin/mkdir -p
128OBJDUMP = objdump
129OBJEXT = o
130PACKAGE = libg3d
131PACKAGE_BUGREPORT =
132PACKAGE_NAME =
133PACKAGE_STRING =
134PACKAGE_TARNAME =
135PACKAGE_VERSION =
136PATH_SEPARATOR = :
137PKG_CONFIG = /usr/bin/pkg-config
138PLUGINS_LDFLAGS = -avoid-version -export-dynamic
139RANLIB = ranlib
140SET_MAKE =
141SHELL = /bin/bash
142STRIP = strip
143VERSION = 0.0.8
144XML2_CONFIG = /usr/bin/xml2-config
145XML_CPPFLAGS = -I/usr/include/libxml2
146XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
147Z_CFLAGS =
148Z_LIBS = -lz
149abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/include
150abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/include
151abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
152abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
153ac_ct_CC = gcc
154ac_ct_CXX = g++
155ac_ct_F77 =
156am__include = include
157am__leading_dot = .
158am__quote =
159am__tar = ${AMTAR} chof - "$$tardir"
160am__untar = ${AMTAR} xf -
161bindir = ${exec_prefix}/bin
162build = x86_64-unknown-linux-gnu
163build_alias =
164build_cpu = x86_64
165build_os = linux-gnu
166build_vendor = unknown
167builddir = .
168datadir = ${datarootdir}
169datarootdir = ${prefix}/share
170docdir = ${datarootdir}/doc/${PACKAGE}
171dvidir = ${docdir}
172exec_prefix = ${prefix}
173host = x86_64-unknown-linux-gnu
174host_alias =
175host_cpu = x86_64
176host_os = linux-gnu
177host_vendor = unknown
178htmldir = ${docdir}
179includedir = ${prefix}/include
180infodir = ${datarootdir}/info
181install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
182libdir = ${exec_prefix}/lib
183libexecdir = ${exec_prefix}/libexec
184localedir = ${datarootdir}/locale
185localstatedir = ${prefix}/var
186mandir = ${datarootdir}/man
187mkdir_p = /bin/mkdir -p
188oldincludedir = /usr/include
189pdfdir = ${docdir}
190prefix = /usr/local
191program_transform_name = s,x,x,
192psdir = ${docdir}
193sbindir = ${exec_prefix}/sbin
194sharedstatedir = ${prefix}/com
195srcdir = .
196sysconfdir = ${prefix}/etc
197target_alias =
198top_builddir = ..
199top_srcdir = ..
200SUBDIRS = g3d
201all: all-recursive
202
203.SUFFIXES:
204$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
205 @for dep in $?; do \
206 case '$(am__configure_deps)' in \
207 *$$dep*) \
208 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
209 && exit 0; \
210 exit 1;; \
211 esac; \
212 done; \
213 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu include/Makefile'; \
214 cd $(top_srcdir) && \
215 $(AUTOMAKE) --gnu include/Makefile
216.PRECIOUS: Makefile
217Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
218 @case '$?' in \
219 *config.status*) \
220 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
221 *) \
222 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
223 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
224 esac;
225
226$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
227 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
228
229$(top_srcdir)/configure: $(am__configure_deps)
230 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
231$(ACLOCAL_M4): $(am__aclocal_m4_deps)
232 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
233
234mostlyclean-libtool:
235 -rm -f *.lo
236
237clean-libtool:
238 -rm -rf .libs _libs
239
240# This directory's subdirectories are mostly independent; you can cd
241# into them and run `make' without going through this Makefile.
242# To change the values of `make' variables: instead of editing Makefiles,
243# (1) if the variable is set in `config.status', edit `config.status'
244# (which will cause the Makefiles to be regenerated when you run `make');
245# (2) otherwise, pass the desired values on the `make' command line.
246$(RECURSIVE_TARGETS):
247 @failcom='exit 1'; \
248 for f in x $$MAKEFLAGS; do \
249 case $$f in \
250 *=* | --[!k]*);; \
251 *k*) failcom='fail=yes';; \
252 esac; \
253 done; \
254 dot_seen=no; \
255 target=`echo $@ | sed s/-recursive//`; \
256 list='$(SUBDIRS)'; for subdir in $$list; do \
257 echo "Making $$target in $$subdir"; \
258 if test "$$subdir" = "."; then \
259 dot_seen=yes; \
260 local_target="$$target-am"; \
261 else \
262 local_target="$$target"; \
263 fi; \
264 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
265 || eval $$failcom; \
266 done; \
267 if test "$$dot_seen" = "no"; then \
268 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
269 fi; test -z "$$fail"
270
271$(RECURSIVE_CLEAN_TARGETS):
272 @failcom='exit 1'; \
273 for f in x $$MAKEFLAGS; do \
274 case $$f in \
275 *=* | --[!k]*);; \
276 *k*) failcom='fail=yes';; \
277 esac; \
278 done; \
279 dot_seen=no; \
280 case "$@" in \
281 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
282 *) list='$(SUBDIRS)' ;; \
283 esac; \
284 rev=''; for subdir in $$list; do \
285 if test "$$subdir" = "."; then :; else \
286 rev="$$subdir $$rev"; \
287 fi; \
288 done; \
289 rev="$$rev ."; \
290 target=`echo $@ | sed s/-recursive//`; \
291 for subdir in $$rev; do \
292 echo "Making $$target in $$subdir"; \
293 if test "$$subdir" = "."; then \
294 local_target="$$target-am"; \
295 else \
296 local_target="$$target"; \
297 fi; \
298 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
299 || eval $$failcom; \
300 done && test -z "$$fail"
301tags-recursive:
302 list='$(SUBDIRS)'; for subdir in $$list; do \
303 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
304 done
305ctags-recursive:
306 list='$(SUBDIRS)'; for subdir in $$list; do \
307 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
308 done
309
310ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
311 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
312 unique=`for i in $$list; do \
313 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
314 done | \
315 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
316 END { if (nonempty) { for (i in files) print i; }; }'`; \
317 mkid -fID $$unique
318tags: TAGS
319
320TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
321 $(TAGS_FILES) $(LISP)
322 tags=; \
323 here=`pwd`; \
324 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
325 include_option=--etags-include; \
326 empty_fix=.; \
327 else \
328 include_option=--include; \
329 empty_fix=; \
330 fi; \
331 list='$(SUBDIRS)'; for subdir in $$list; do \
332 if test "$$subdir" = .; then :; else \
333 test ! -f $$subdir/TAGS || \
334 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
335 fi; \
336 done; \
337 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
338 unique=`for i in $$list; do \
339 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
340 done | \
341 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
342 END { if (nonempty) { for (i in files) print i; }; }'`; \
343 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
344 test -n "$$unique" || unique=$$empty_fix; \
345 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
346 $$tags $$unique; \
347 fi
348ctags: CTAGS
349CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
350 $(TAGS_FILES) $(LISP)
351 tags=; \
352 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
353 unique=`for i in $$list; do \
354 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
355 done | \
356 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
357 END { if (nonempty) { for (i in files) print i; }; }'`; \
358 test -z "$(CTAGS_ARGS)$$tags$$unique" \
359 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
360 $$tags $$unique
361
362GTAGS:
363 here=`$(am__cd) $(top_builddir) && pwd` \
364 && cd $(top_srcdir) \
365 && gtags -i $(GTAGS_ARGS) $$here
366
367distclean-tags:
368 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
369
370distdir: $(DISTFILES)
371 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
372 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
373 list='$(DISTFILES)'; \
374 dist_files=`for file in $$list; do echo $$file; done | \
375 sed -e "s|^$$srcdirstrip/||;t" \
376 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
377 case $$dist_files in \
378 */*) $(MKDIR_P) `echo "$$dist_files" | \
379 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
380 sort -u` ;; \
381 esac; \
382 for file in $$dist_files; do \
383 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
384 if test -d $$d/$$file; then \
385 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
386 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
387 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
388 fi; \
389 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
390 else \
391 test -f $(distdir)/$$file \
392 || cp -p $$d/$$file $(distdir)/$$file \
393 || exit 1; \
394 fi; \
395 done
396 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
397 if test "$$subdir" = .; then :; else \
398 test -d "$(distdir)/$$subdir" \
399 || $(MKDIR_P) "$(distdir)/$$subdir" \
400 || exit 1; \
401 distdir=`$(am__cd) $(distdir) && pwd`; \
402 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
403 (cd $$subdir && \
404 $(MAKE) $(AM_MAKEFLAGS) \
405 top_distdir="$$top_distdir" \
406 distdir="$$distdir/$$subdir" \
407 am__remove_distdir=: \
408 am__skip_length_check=: \
409 distdir) \
410 || exit 1; \
411 fi; \
412 done
413check-am: all-am
414check: check-recursive
415all-am: Makefile
416installdirs: installdirs-recursive
417installdirs-am:
418install: install-recursive
419install-exec: install-exec-recursive
420install-data: install-data-recursive
421uninstall: uninstall-recursive
422
423install-am: all-am
424 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
425
426installcheck: installcheck-recursive
427install-strip:
428 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
429 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
430 `test -z '$(STRIP)' || \
431 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
432mostlyclean-generic:
433
434clean-generic:
435
436distclean-generic:
437 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
438
439maintainer-clean-generic:
440 @echo "This command is intended for maintainers to use"
441 @echo "it deletes files that may require special tools to rebuild."
442clean: clean-recursive
443
444clean-am: clean-generic clean-libtool mostlyclean-am
445
446distclean: distclean-recursive
447 -rm -f Makefile
448distclean-am: clean-am distclean-generic distclean-tags
449
450dvi: dvi-recursive
451
452dvi-am:
453
454html: html-recursive
455
456info: info-recursive
457
458info-am:
459
460install-data-am:
461
462install-dvi: install-dvi-recursive
463
464install-exec-am:
465
466install-html: install-html-recursive
467
468install-info: install-info-recursive
469
470install-man:
471
472install-pdf: install-pdf-recursive
473
474install-ps: install-ps-recursive
475
476installcheck-am:
477
478maintainer-clean: maintainer-clean-recursive
479 -rm -f Makefile
480maintainer-clean-am: distclean-am maintainer-clean-generic
481
482mostlyclean: mostlyclean-recursive
483
484mostlyclean-am: mostlyclean-generic mostlyclean-libtool
485
486pdf: pdf-recursive
487
488pdf-am:
489
490ps: ps-recursive
491
492ps-am:
493
494uninstall-am:
495
496.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
497 install-strip
498
499.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
500 all all-am check check-am clean clean-generic clean-libtool \
501 ctags ctags-recursive distclean distclean-generic \
502 distclean-libtool distclean-tags distdir dvi dvi-am html \
503 html-am info info-am install install-am install-data \
504 install-data-am install-dvi install-dvi-am install-exec \
505 install-exec-am install-html install-html-am install-info \
506 install-info-am install-man install-pdf install-pdf-am \
507 install-ps install-ps-am install-strip installcheck \
508 installcheck-am installdirs installdirs-am maintainer-clean \
509 maintainer-clean-generic mostlyclean mostlyclean-generic \
510 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
511 uninstall uninstall-am
512
513# Tell versions [3.59,3.63) of GNU make to not export all variables.
514# Otherwise a system limit (for SysV at least) may be exceeded.
515.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/include/Makefile.am b/src/others/mimesh/libg3d-0.0.8/include/Makefile.am
new file mode 100644
index 0000000..62829d8
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/include/Makefile.am
@@ -0,0 +1 @@
SUBDIRS = g3d
diff --git a/src/others/mimesh/libg3d-0.0.8/include/Makefile.in b/src/others/mimesh/libg3d-0.0.8/include/Makefile.in
new file mode 100644
index 0000000..870d90f
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/include/Makefile.in
@@ -0,0 +1,515 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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@
16VPATH = @srcdir@
17pkgdatadir = $(datadir)/@PACKAGE@
18pkglibdir = $(libdir)/@PACKAGE@
19pkgincludedir = $(includedir)/@PACKAGE@
20am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
21install_sh_DATA = $(install_sh) -c -m 644
22install_sh_PROGRAM = $(install_sh) -c
23install_sh_SCRIPT = $(install_sh) -c
24INSTALL_HEADER = $(INSTALL_DATA)
25transform = $(program_transform_name)
26NORMAL_INSTALL = :
27PRE_INSTALL = :
28POST_INSTALL = :
29NORMAL_UNINSTALL = :
30PRE_UNINSTALL = :
31POST_UNINSTALL = :
32build_triplet = @build@
33host_triplet = @host@
34subdir = include
35DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
36ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
37am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
38 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
39 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
40 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
41 $(top_srcdir)/configure.in
42am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43 $(ACLOCAL_M4)
44mkinstalldirs = $(install_sh) -d
45CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
46CONFIG_CLEAN_FILES =
47SOURCES =
48DIST_SOURCES =
49RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
50 html-recursive info-recursive install-data-recursive \
51 install-dvi-recursive install-exec-recursive \
52 install-html-recursive install-info-recursive \
53 install-pdf-recursive install-ps-recursive install-recursive \
54 installcheck-recursive installdirs-recursive pdf-recursive \
55 ps-recursive uninstall-recursive
56RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
57 distclean-recursive maintainer-clean-recursive
58ETAGS = etags
59CTAGS = ctags
60DIST_SUBDIRS = $(SUBDIRS)
61DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
62ACLOCAL = @ACLOCAL@
63AMTAR = @AMTAR@
64AR = @AR@
65AS = @AS@
66AUTOCONF = @AUTOCONF@
67AUTOHEADER = @AUTOHEADER@
68AUTOMAKE = @AUTOMAKE@
69AWK = @AWK@
70CC = @CC@
71CCDEPMODE = @CCDEPMODE@
72CFLAGS = @CFLAGS@
73CPP = @CPP@
74CPPFLAGS = @CPPFLAGS@
75CXX = @CXX@
76CXXCPP = @CXXCPP@
77CXXDEPMODE = @CXXDEPMODE@
78CXXFLAGS = @CXXFLAGS@
79CYGPATH_W = @CYGPATH_W@
80DBG_CFLAGS = @DBG_CFLAGS@
81DEBUG = @DEBUG@
82DEFS = @DEFS@
83DEPDIR = @DEPDIR@
84DLLTOOL = @DLLTOOL@
85ECHO = @ECHO@
86ECHO_C = @ECHO_C@
87ECHO_N = @ECHO_N@
88ECHO_T = @ECHO_T@
89EGREP = @EGREP@
90EXEEXT = @EXEEXT@
91F77 = @F77@
92FFLAGS = @FFLAGS@
93GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
94GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
95GLIB_CFLAGS = @GLIB_CFLAGS@
96GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
97GLIB_LIBS = @GLIB_LIBS@
98GLIB_MKENUMS = @GLIB_MKENUMS@
99GOBJECT_QUERY = @GOBJECT_QUERY@
100GREP = @GREP@
101GTKDOC_CHECK = @GTKDOC_CHECK@
102GTK_CFLAGS = @GTK_CFLAGS@
103GTK_LIBS = @GTK_LIBS@
104HTML_DIR = @HTML_DIR@
105INSTALL = @INSTALL@
106INSTALL_DATA = @INSTALL_DATA@
107INSTALL_PROGRAM = @INSTALL_PROGRAM@
108INSTALL_SCRIPT = @INSTALL_SCRIPT@
109INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
110LDFLAGS = @LDFLAGS@
111LEX = @LEX@
112LEXLIB = @LEXLIB@
113LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
114LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
115LIBGSF_LIBS = @LIBGSF_LIBS@
116LIBOBJS = @LIBOBJS@
117LIBS = @LIBS@
118LIBTOOL = @LIBTOOL@
119LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
120LIBXML2_LIBS = @LIBXML2_LIBS@
121LN_S = @LN_S@
122LTLIBOBJS = @LTLIBOBJS@
123LTVERSION = @LTVERSION@
124MAGIC_LIBS = @MAGIC_LIBS@
125MAKEINFO = @MAKEINFO@
126MATH_LIBS = @MATH_LIBS@
127MKDIR_P = @MKDIR_P@
128OBJDUMP = @OBJDUMP@
129OBJEXT = @OBJEXT@
130PACKAGE = @PACKAGE@
131PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
132PACKAGE_NAME = @PACKAGE_NAME@
133PACKAGE_STRING = @PACKAGE_STRING@
134PACKAGE_TARNAME = @PACKAGE_TARNAME@
135PACKAGE_VERSION = @PACKAGE_VERSION@
136PATH_SEPARATOR = @PATH_SEPARATOR@
137PKG_CONFIG = @PKG_CONFIG@
138PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
139RANLIB = @RANLIB@
140SET_MAKE = @SET_MAKE@
141SHELL = @SHELL@
142STRIP = @STRIP@
143VERSION = @VERSION@
144XML2_CONFIG = @XML2_CONFIG@
145XML_CPPFLAGS = @XML_CPPFLAGS@
146XML_LIBS = @XML_LIBS@
147Z_CFLAGS = @Z_CFLAGS@
148Z_LIBS = @Z_LIBS@
149abs_builddir = @abs_builddir@
150abs_srcdir = @abs_srcdir@
151abs_top_builddir = @abs_top_builddir@
152abs_top_srcdir = @abs_top_srcdir@
153ac_ct_CC = @ac_ct_CC@
154ac_ct_CXX = @ac_ct_CXX@
155ac_ct_F77 = @ac_ct_F77@
156am__include = @am__include@
157am__leading_dot = @am__leading_dot@
158am__quote = @am__quote@
159am__tar = @am__tar@
160am__untar = @am__untar@
161bindir = @bindir@
162build = @build@
163build_alias = @build_alias@
164build_cpu = @build_cpu@
165build_os = @build_os@
166build_vendor = @build_vendor@
167builddir = @builddir@
168datadir = @datadir@
169datarootdir = @datarootdir@
170docdir = @docdir@
171dvidir = @dvidir@
172exec_prefix = @exec_prefix@
173host = @host@
174host_alias = @host_alias@
175host_cpu = @host_cpu@
176host_os = @host_os@
177host_vendor = @host_vendor@
178htmldir = @htmldir@
179includedir = @includedir@
180infodir = @infodir@
181install_sh = @install_sh@
182libdir = @libdir@
183libexecdir = @libexecdir@
184localedir = @localedir@
185localstatedir = @localstatedir@
186mandir = @mandir@
187mkdir_p = @mkdir_p@
188oldincludedir = @oldincludedir@
189pdfdir = @pdfdir@
190prefix = @prefix@
191program_transform_name = @program_transform_name@
192psdir = @psdir@
193sbindir = @sbindir@
194sharedstatedir = @sharedstatedir@
195srcdir = @srcdir@
196sysconfdir = @sysconfdir@
197target_alias = @target_alias@
198top_builddir = @top_builddir@
199top_srcdir = @top_srcdir@
200SUBDIRS = g3d
201all: all-recursive
202
203.SUFFIXES:
204$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
205 @for dep in $?; do \
206 case '$(am__configure_deps)' in \
207 *$$dep*) \
208 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
209 && exit 0; \
210 exit 1;; \
211 esac; \
212 done; \
213 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu include/Makefile'; \
214 cd $(top_srcdir) && \
215 $(AUTOMAKE) --gnu include/Makefile
216.PRECIOUS: Makefile
217Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
218 @case '$?' in \
219 *config.status*) \
220 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
221 *) \
222 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
223 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
224 esac;
225
226$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
227 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
228
229$(top_srcdir)/configure: $(am__configure_deps)
230 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
231$(ACLOCAL_M4): $(am__aclocal_m4_deps)
232 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
233
234mostlyclean-libtool:
235 -rm -f *.lo
236
237clean-libtool:
238 -rm -rf .libs _libs
239
240# This directory's subdirectories are mostly independent; you can cd
241# into them and run `make' without going through this Makefile.
242# To change the values of `make' variables: instead of editing Makefiles,
243# (1) if the variable is set in `config.status', edit `config.status'
244# (which will cause the Makefiles to be regenerated when you run `make');
245# (2) otherwise, pass the desired values on the `make' command line.
246$(RECURSIVE_TARGETS):
247 @failcom='exit 1'; \
248 for f in x $$MAKEFLAGS; do \
249 case $$f in \
250 *=* | --[!k]*);; \
251 *k*) failcom='fail=yes';; \
252 esac; \
253 done; \
254 dot_seen=no; \
255 target=`echo $@ | sed s/-recursive//`; \
256 list='$(SUBDIRS)'; for subdir in $$list; do \
257 echo "Making $$target in $$subdir"; \
258 if test "$$subdir" = "."; then \
259 dot_seen=yes; \
260 local_target="$$target-am"; \
261 else \
262 local_target="$$target"; \
263 fi; \
264 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
265 || eval $$failcom; \
266 done; \
267 if test "$$dot_seen" = "no"; then \
268 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
269 fi; test -z "$$fail"
270
271$(RECURSIVE_CLEAN_TARGETS):
272 @failcom='exit 1'; \
273 for f in x $$MAKEFLAGS; do \
274 case $$f in \
275 *=* | --[!k]*);; \
276 *k*) failcom='fail=yes';; \
277 esac; \
278 done; \
279 dot_seen=no; \
280 case "$@" in \
281 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
282 *) list='$(SUBDIRS)' ;; \
283 esac; \
284 rev=''; for subdir in $$list; do \
285 if test "$$subdir" = "."; then :; else \
286 rev="$$subdir $$rev"; \
287 fi; \
288 done; \
289 rev="$$rev ."; \
290 target=`echo $@ | sed s/-recursive//`; \
291 for subdir in $$rev; do \
292 echo "Making $$target in $$subdir"; \
293 if test "$$subdir" = "."; then \
294 local_target="$$target-am"; \
295 else \
296 local_target="$$target"; \
297 fi; \
298 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
299 || eval $$failcom; \
300 done && test -z "$$fail"
301tags-recursive:
302 list='$(SUBDIRS)'; for subdir in $$list; do \
303 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
304 done
305ctags-recursive:
306 list='$(SUBDIRS)'; for subdir in $$list; do \
307 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
308 done
309
310ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
311 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
312 unique=`for i in $$list; do \
313 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
314 done | \
315 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
316 END { if (nonempty) { for (i in files) print i; }; }'`; \
317 mkid -fID $$unique
318tags: TAGS
319
320TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
321 $(TAGS_FILES) $(LISP)
322 tags=; \
323 here=`pwd`; \
324 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
325 include_option=--etags-include; \
326 empty_fix=.; \
327 else \
328 include_option=--include; \
329 empty_fix=; \
330 fi; \
331 list='$(SUBDIRS)'; for subdir in $$list; do \
332 if test "$$subdir" = .; then :; else \
333 test ! -f $$subdir/TAGS || \
334 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
335 fi; \
336 done; \
337 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
338 unique=`for i in $$list; do \
339 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
340 done | \
341 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
342 END { if (nonempty) { for (i in files) print i; }; }'`; \
343 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
344 test -n "$$unique" || unique=$$empty_fix; \
345 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
346 $$tags $$unique; \
347 fi
348ctags: CTAGS
349CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
350 $(TAGS_FILES) $(LISP)
351 tags=; \
352 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
353 unique=`for i in $$list; do \
354 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
355 done | \
356 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
357 END { if (nonempty) { for (i in files) print i; }; }'`; \
358 test -z "$(CTAGS_ARGS)$$tags$$unique" \
359 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
360 $$tags $$unique
361
362GTAGS:
363 here=`$(am__cd) $(top_builddir) && pwd` \
364 && cd $(top_srcdir) \
365 && gtags -i $(GTAGS_ARGS) $$here
366
367distclean-tags:
368 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
369
370distdir: $(DISTFILES)
371 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
372 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
373 list='$(DISTFILES)'; \
374 dist_files=`for file in $$list; do echo $$file; done | \
375 sed -e "s|^$$srcdirstrip/||;t" \
376 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
377 case $$dist_files in \
378 */*) $(MKDIR_P) `echo "$$dist_files" | \
379 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
380 sort -u` ;; \
381 esac; \
382 for file in $$dist_files; do \
383 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
384 if test -d $$d/$$file; then \
385 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
386 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
387 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
388 fi; \
389 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
390 else \
391 test -f $(distdir)/$$file \
392 || cp -p $$d/$$file $(distdir)/$$file \
393 || exit 1; \
394 fi; \
395 done
396 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
397 if test "$$subdir" = .; then :; else \
398 test -d "$(distdir)/$$subdir" \
399 || $(MKDIR_P) "$(distdir)/$$subdir" \
400 || exit 1; \
401 distdir=`$(am__cd) $(distdir) && pwd`; \
402 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
403 (cd $$subdir && \
404 $(MAKE) $(AM_MAKEFLAGS) \
405 top_distdir="$$top_distdir" \
406 distdir="$$distdir/$$subdir" \
407 am__remove_distdir=: \
408 am__skip_length_check=: \
409 distdir) \
410 || exit 1; \
411 fi; \
412 done
413check-am: all-am
414check: check-recursive
415all-am: Makefile
416installdirs: installdirs-recursive
417installdirs-am:
418install: install-recursive
419install-exec: install-exec-recursive
420install-data: install-data-recursive
421uninstall: uninstall-recursive
422
423install-am: all-am
424 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
425
426installcheck: installcheck-recursive
427install-strip:
428 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
429 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
430 `test -z '$(STRIP)' || \
431 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
432mostlyclean-generic:
433
434clean-generic:
435
436distclean-generic:
437 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
438
439maintainer-clean-generic:
440 @echo "This command is intended for maintainers to use"
441 @echo "it deletes files that may require special tools to rebuild."
442clean: clean-recursive
443
444clean-am: clean-generic clean-libtool mostlyclean-am
445
446distclean: distclean-recursive
447 -rm -f Makefile
448distclean-am: clean-am distclean-generic distclean-tags
449
450dvi: dvi-recursive
451
452dvi-am:
453
454html: html-recursive
455
456info: info-recursive
457
458info-am:
459
460install-data-am:
461
462install-dvi: install-dvi-recursive
463
464install-exec-am:
465
466install-html: install-html-recursive
467
468install-info: install-info-recursive
469
470install-man:
471
472install-pdf: install-pdf-recursive
473
474install-ps: install-ps-recursive
475
476installcheck-am:
477
478maintainer-clean: maintainer-clean-recursive
479 -rm -f Makefile
480maintainer-clean-am: distclean-am maintainer-clean-generic
481
482mostlyclean: mostlyclean-recursive
483
484mostlyclean-am: mostlyclean-generic mostlyclean-libtool
485
486pdf: pdf-recursive
487
488pdf-am:
489
490ps: ps-recursive
491
492ps-am:
493
494uninstall-am:
495
496.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
497 install-strip
498
499.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
500 all all-am check check-am clean clean-generic clean-libtool \
501 ctags ctags-recursive distclean distclean-generic \
502 distclean-libtool distclean-tags distdir dvi dvi-am html \
503 html-am info info-am install install-am install-data \
504 install-data-am install-dvi install-dvi-am install-exec \
505 install-exec-am install-html install-html-am install-info \
506 install-info-am install-man install-pdf install-pdf-am \
507 install-ps install-ps-am install-strip installcheck \
508 installcheck-am installdirs installdirs-am maintainer-clean \
509 maintainer-clean-generic mostlyclean mostlyclean-generic \
510 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
511 uninstall uninstall-am
512
513# Tell versions [3.59,3.63) of GNU make to not export all variables.
514# Otherwise a system limit (for SysV at least) may be exceeded.
515.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/include/g3d/Makefile b/src/others/mimesh/libg3d-0.0.8/include/g3d/Makefile
new file mode 100644
index 0000000..524e64c
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/include/g3d/Makefile
@@ -0,0 +1,470 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# include/g3d/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = include/g3d
36DIST_COMMON = $(g3dinclude_HEADERS) $(srcdir)/Makefile.am \
37 $(srcdir)/Makefile.in $(srcdir)/config.h.in
38ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
39am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
40 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
41 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
42 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
43 $(top_srcdir)/configure.in
44am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
45 $(ACLOCAL_M4)
46mkinstalldirs = $(install_sh) -d
47CONFIG_HEADER = config.h
48CONFIG_CLEAN_FILES =
49SOURCES =
50DIST_SOURCES =
51am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
52am__vpath_adj = case $$p in \
53 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
54 *) f=$$p;; \
55 esac;
56am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
57am__installdirs = "$(DESTDIR)$(g3dincludedir)"
58g3dincludeHEADERS_INSTALL = $(INSTALL_HEADER)
59HEADERS = $(g3dinclude_HEADERS)
60ETAGS = etags
61CTAGS = ctags
62DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
63ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
64AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
65AR = ar
66AS = as
67AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
68AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
69AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
70AWK = gawk
71CC = gcc
72CCDEPMODE = depmode=gcc3
73CFLAGS = -g -O2
74CPP = gcc -E
75CPPFLAGS =
76CXX = g++
77CXXCPP = g++ -E
78CXXDEPMODE = depmode=gcc3
79CXXFLAGS = -g -O2
80CYGPATH_W = echo
81DBG_CFLAGS = -O2
82DEBUG = 0
83DEFS = -DHAVE_CONFIG_H
84DEPDIR = .deps
85DLLTOOL = dlltool
86ECHO = echo
87ECHO_C =
88ECHO_N = -n
89ECHO_T =
90EGREP = /bin/grep -E
91EXEEXT =
92F77 =
93FFLAGS =
94GDKPIXBUF_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
95GDKPIXBUF_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
96GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
97GLIB_GENMARSHAL = glib-genmarshal
98GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
99GLIB_MKENUMS = glib-mkenums
100GOBJECT_QUERY = gobject-query
101GREP = /bin/grep
102GTKDOC_CHECK = /usr/bin/gtkdoc-check
103GTK_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
104GTK_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
105HTML_DIR = ${datadir}/gtk-doc/html
106INSTALL = /usr/bin/install -c
107INSTALL_DATA = ${INSTALL} -m 644
108INSTALL_PROGRAM = ${INSTALL}
109INSTALL_SCRIPT = ${INSTALL}
110INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
111LDFLAGS =
112LEX = flex
113LEXLIB = -lfl
114LEX_OUTPUT_ROOT = lex.yy
115LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
116LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
117LIBOBJS =
118LIBS = -lm
119LIBTOOL = $(SHELL) $(top_builddir)/libtool
120LIBXML2_CFLAGS = -I/usr/include/libxml2
121LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
122LN_S = ln -s
123LTLIBOBJS =
124LTVERSION = 0:8:0
125MAGIC_LIBS = -lmagic
126MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
127MATH_LIBS = -lm
128MKDIR_P = /bin/mkdir -p
129OBJDUMP = objdump
130OBJEXT = o
131PACKAGE = libg3d
132PACKAGE_BUGREPORT =
133PACKAGE_NAME =
134PACKAGE_STRING =
135PACKAGE_TARNAME =
136PACKAGE_VERSION =
137PATH_SEPARATOR = :
138PKG_CONFIG = /usr/bin/pkg-config
139PLUGINS_LDFLAGS = -avoid-version -export-dynamic
140RANLIB = ranlib
141SET_MAKE =
142SHELL = /bin/bash
143STRIP = strip
144VERSION = 0.0.8
145XML2_CONFIG = /usr/bin/xml2-config
146XML_CPPFLAGS = -I/usr/include/libxml2
147XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
148Z_CFLAGS =
149Z_LIBS = -lz
150abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/include/g3d
151abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/include/g3d
152abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
153abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
154ac_ct_CC = gcc
155ac_ct_CXX = g++
156ac_ct_F77 =
157am__include = include
158am__leading_dot = .
159am__quote =
160am__tar = ${AMTAR} chof - "$$tardir"
161am__untar = ${AMTAR} xf -
162bindir = ${exec_prefix}/bin
163build = x86_64-unknown-linux-gnu
164build_alias =
165build_cpu = x86_64
166build_os = linux-gnu
167build_vendor = unknown
168builddir = .
169datadir = ${datarootdir}
170datarootdir = ${prefix}/share
171docdir = ${datarootdir}/doc/${PACKAGE}
172dvidir = ${docdir}
173exec_prefix = ${prefix}
174host = x86_64-unknown-linux-gnu
175host_alias =
176host_cpu = x86_64
177host_os = linux-gnu
178host_vendor = unknown
179htmldir = ${docdir}
180includedir = ${prefix}/include
181infodir = ${datarootdir}/info
182install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
183libdir = ${exec_prefix}/lib
184libexecdir = ${exec_prefix}/libexec
185localedir = ${datarootdir}/locale
186localstatedir = ${prefix}/var
187mandir = ${datarootdir}/man
188mkdir_p = /bin/mkdir -p
189oldincludedir = /usr/include
190pdfdir = ${docdir}
191prefix = /usr/local
192program_transform_name = s,x,x,
193psdir = ${docdir}
194sbindir = ${exec_prefix}/sbin
195sharedstatedir = ${prefix}/com
196srcdir = .
197sysconfdir = ${prefix}/etc
198target_alias =
199top_builddir = ../..
200top_srcdir = ../..
201g3dincludedir = $(includedir)/g3d
202g3dinclude_HEADERS = \
203 debug.h \
204 g3d.h \
205 types.h \
206 context.h \
207 plugins.h \
208 model.h \
209 object.h \
210 face.h \
211 material.h \
212 texture.h \
213 stream.h \
214 read.h \
215 iff.h \
216 primitive.h \
217 vector.h \
218 matrix.h \
219 quat.h
220
221all: config.h
222 $(MAKE) $(AM_MAKEFLAGS) all-am
223
224.SUFFIXES:
225$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
226 @for dep in $?; do \
227 case '$(am__configure_deps)' in \
228 *$$dep*) \
229 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
230 && exit 0; \
231 exit 1;; \
232 esac; \
233 done; \
234 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu include/g3d/Makefile'; \
235 cd $(top_srcdir) && \
236 $(AUTOMAKE) --gnu include/g3d/Makefile
237.PRECIOUS: Makefile
238Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
239 @case '$?' in \
240 *config.status*) \
241 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
242 *) \
243 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
244 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
245 esac;
246
247$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
248 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
249
250$(top_srcdir)/configure: $(am__configure_deps)
251 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
252$(ACLOCAL_M4): $(am__aclocal_m4_deps)
253 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
254
255config.h: stamp-h1
256 @if test ! -f $@; then \
257 rm -f stamp-h1; \
258 $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
259 else :; fi
260
261stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
262 @rm -f stamp-h1
263 cd $(top_builddir) && $(SHELL) ./config.status include/g3d/config.h
264$(srcdir)/config.h.in: $(am__configure_deps)
265 cd $(top_srcdir) && $(AUTOHEADER)
266 rm -f stamp-h1
267 touch $@
268
269distclean-hdr:
270 -rm -f config.h stamp-h1
271
272mostlyclean-libtool:
273 -rm -f *.lo
274
275clean-libtool:
276 -rm -rf .libs _libs
277install-g3dincludeHEADERS: $(g3dinclude_HEADERS)
278 @$(NORMAL_INSTALL)
279 test -z "$(g3dincludedir)" || $(MKDIR_P) "$(DESTDIR)$(g3dincludedir)"
280 @list='$(g3dinclude_HEADERS)'; for p in $$list; do \
281 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
282 f=$(am__strip_dir) \
283 echo " $(g3dincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(g3dincludedir)/$$f'"; \
284 $(g3dincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(g3dincludedir)/$$f"; \
285 done
286
287uninstall-g3dincludeHEADERS:
288 @$(NORMAL_UNINSTALL)
289 @list='$(g3dinclude_HEADERS)'; for p in $$list; do \
290 f=$(am__strip_dir) \
291 echo " rm -f '$(DESTDIR)$(g3dincludedir)/$$f'"; \
292 rm -f "$(DESTDIR)$(g3dincludedir)/$$f"; \
293 done
294
295ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
296 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
297 unique=`for i in $$list; do \
298 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
299 done | \
300 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
301 END { if (nonempty) { for (i in files) print i; }; }'`; \
302 mkid -fID $$unique
303tags: TAGS
304
305TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
306 $(TAGS_FILES) $(LISP)
307 tags=; \
308 here=`pwd`; \
309 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
310 unique=`for i in $$list; do \
311 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
312 done | \
313 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
314 END { if (nonempty) { for (i in files) print i; }; }'`; \
315 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
316 test -n "$$unique" || unique=$$empty_fix; \
317 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
318 $$tags $$unique; \
319 fi
320ctags: CTAGS
321CTAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
322 $(TAGS_FILES) $(LISP)
323 tags=; \
324 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
325 unique=`for i in $$list; do \
326 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
327 done | \
328 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
329 END { if (nonempty) { for (i in files) print i; }; }'`; \
330 test -z "$(CTAGS_ARGS)$$tags$$unique" \
331 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
332 $$tags $$unique
333
334GTAGS:
335 here=`$(am__cd) $(top_builddir) && pwd` \
336 && cd $(top_srcdir) \
337 && gtags -i $(GTAGS_ARGS) $$here
338
339distclean-tags:
340 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
341
342distdir: $(DISTFILES)
343 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
344 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
345 list='$(DISTFILES)'; \
346 dist_files=`for file in $$list; do echo $$file; done | \
347 sed -e "s|^$$srcdirstrip/||;t" \
348 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
349 case $$dist_files in \
350 */*) $(MKDIR_P) `echo "$$dist_files" | \
351 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
352 sort -u` ;; \
353 esac; \
354 for file in $$dist_files; do \
355 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
356 if test -d $$d/$$file; then \
357 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
358 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
359 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
360 fi; \
361 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
362 else \
363 test -f $(distdir)/$$file \
364 || cp -p $$d/$$file $(distdir)/$$file \
365 || exit 1; \
366 fi; \
367 done
368check-am: all-am
369check: check-am
370all-am: Makefile $(HEADERS) config.h
371installdirs:
372 for dir in "$(DESTDIR)$(g3dincludedir)"; do \
373 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
374 done
375install: install-am
376install-exec: install-exec-am
377install-data: install-data-am
378uninstall: uninstall-am
379
380install-am: all-am
381 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
382
383installcheck: installcheck-am
384install-strip:
385 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
386 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
387 `test -z '$(STRIP)' || \
388 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
389mostlyclean-generic:
390
391clean-generic:
392
393distclean-generic:
394 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
395
396maintainer-clean-generic:
397 @echo "This command is intended for maintainers to use"
398 @echo "it deletes files that may require special tools to rebuild."
399clean: clean-am
400
401clean-am: clean-generic clean-libtool mostlyclean-am
402
403distclean: distclean-am
404 -rm -f Makefile
405distclean-am: clean-am distclean-generic distclean-hdr distclean-tags
406
407dvi: dvi-am
408
409dvi-am:
410
411html: html-am
412
413info: info-am
414
415info-am:
416
417install-data-am: install-g3dincludeHEADERS
418
419install-dvi: install-dvi-am
420
421install-exec-am:
422
423install-html: install-html-am
424
425install-info: install-info-am
426
427install-man:
428
429install-pdf: install-pdf-am
430
431install-ps: install-ps-am
432
433installcheck-am:
434
435maintainer-clean: maintainer-clean-am
436 -rm -f Makefile
437maintainer-clean-am: distclean-am maintainer-clean-generic
438
439mostlyclean: mostlyclean-am
440
441mostlyclean-am: mostlyclean-generic mostlyclean-libtool
442
443pdf: pdf-am
444
445pdf-am:
446
447ps: ps-am
448
449ps-am:
450
451uninstall-am: uninstall-g3dincludeHEADERS
452
453.MAKE: install-am install-strip
454
455.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
456 clean-libtool ctags distclean distclean-generic distclean-hdr \
457 distclean-libtool distclean-tags distdir dvi dvi-am html \
458 html-am info info-am install install-am install-data \
459 install-data-am install-dvi install-dvi-am install-exec \
460 install-exec-am install-g3dincludeHEADERS install-html \
461 install-html-am install-info install-info-am install-man \
462 install-pdf install-pdf-am install-ps install-ps-am \
463 install-strip installcheck installcheck-am installdirs \
464 maintainer-clean maintainer-clean-generic mostlyclean \
465 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
466 tags uninstall uninstall-am uninstall-g3dincludeHEADERS
467
468# Tell versions [3.59,3.63) of GNU make to not export all variables.
469# Otherwise a system limit (for SysV at least) may be exceeded.
470.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/include/g3d/Makefile.am b/src/others/mimesh/libg3d-0.0.8/include/g3d/Makefile.am
new file mode 100644
index 0000000..9b31564
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/include/g3d/Makefile.am
@@ -0,0 +1,21 @@
1g3dincludedir = $(includedir)/g3d
2
3g3dinclude_HEADERS = \
4 debug.h \
5 g3d.h \
6 types.h \
7 context.h \
8 plugins.h \
9 model.h \
10 object.h \
11 face.h \
12 material.h \
13 texture.h \
14 stream.h \
15 read.h \
16 iff.h \
17 primitive.h \
18 vector.h \
19 matrix.h \
20 quat.h
21
diff --git a/src/others/mimesh/libg3d-0.0.8/include/g3d/Makefile.in b/src/others/mimesh/libg3d-0.0.8/include/g3d/Makefile.in
new file mode 100644
index 0000000..9b863f4
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/include/g3d/Makefile.in
@@ -0,0 +1,470 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = include/g3d
36DIST_COMMON = $(g3dinclude_HEADERS) $(srcdir)/Makefile.am \
37 $(srcdir)/Makefile.in $(srcdir)/config.h.in
38ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
39am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
40 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
41 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
42 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
43 $(top_srcdir)/configure.in
44am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
45 $(ACLOCAL_M4)
46mkinstalldirs = $(install_sh) -d
47CONFIG_HEADER = config.h
48CONFIG_CLEAN_FILES =
49SOURCES =
50DIST_SOURCES =
51am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
52am__vpath_adj = case $$p in \
53 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
54 *) f=$$p;; \
55 esac;
56am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
57am__installdirs = "$(DESTDIR)$(g3dincludedir)"
58g3dincludeHEADERS_INSTALL = $(INSTALL_HEADER)
59HEADERS = $(g3dinclude_HEADERS)
60ETAGS = etags
61CTAGS = ctags
62DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
63ACLOCAL = @ACLOCAL@
64AMTAR = @AMTAR@
65AR = @AR@
66AS = @AS@
67AUTOCONF = @AUTOCONF@
68AUTOHEADER = @AUTOHEADER@
69AUTOMAKE = @AUTOMAKE@
70AWK = @AWK@
71CC = @CC@
72CCDEPMODE = @CCDEPMODE@
73CFLAGS = @CFLAGS@
74CPP = @CPP@
75CPPFLAGS = @CPPFLAGS@
76CXX = @CXX@
77CXXCPP = @CXXCPP@
78CXXDEPMODE = @CXXDEPMODE@
79CXXFLAGS = @CXXFLAGS@
80CYGPATH_W = @CYGPATH_W@
81DBG_CFLAGS = @DBG_CFLAGS@
82DEBUG = @DEBUG@
83DEFS = @DEFS@
84DEPDIR = @DEPDIR@
85DLLTOOL = @DLLTOOL@
86ECHO = @ECHO@
87ECHO_C = @ECHO_C@
88ECHO_N = @ECHO_N@
89ECHO_T = @ECHO_T@
90EGREP = @EGREP@
91EXEEXT = @EXEEXT@
92F77 = @F77@
93FFLAGS = @FFLAGS@
94GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
95GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
96GLIB_CFLAGS = @GLIB_CFLAGS@
97GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
98GLIB_LIBS = @GLIB_LIBS@
99GLIB_MKENUMS = @GLIB_MKENUMS@
100GOBJECT_QUERY = @GOBJECT_QUERY@
101GREP = @GREP@
102GTKDOC_CHECK = @GTKDOC_CHECK@
103GTK_CFLAGS = @GTK_CFLAGS@
104GTK_LIBS = @GTK_LIBS@
105HTML_DIR = @HTML_DIR@
106INSTALL = @INSTALL@
107INSTALL_DATA = @INSTALL_DATA@
108INSTALL_PROGRAM = @INSTALL_PROGRAM@
109INSTALL_SCRIPT = @INSTALL_SCRIPT@
110INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
111LDFLAGS = @LDFLAGS@
112LEX = @LEX@
113LEXLIB = @LEXLIB@
114LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
115LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
116LIBGSF_LIBS = @LIBGSF_LIBS@
117LIBOBJS = @LIBOBJS@
118LIBS = @LIBS@
119LIBTOOL = @LIBTOOL@
120LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
121LIBXML2_LIBS = @LIBXML2_LIBS@
122LN_S = @LN_S@
123LTLIBOBJS = @LTLIBOBJS@
124LTVERSION = @LTVERSION@
125MAGIC_LIBS = @MAGIC_LIBS@
126MAKEINFO = @MAKEINFO@
127MATH_LIBS = @MATH_LIBS@
128MKDIR_P = @MKDIR_P@
129OBJDUMP = @OBJDUMP@
130OBJEXT = @OBJEXT@
131PACKAGE = @PACKAGE@
132PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
133PACKAGE_NAME = @PACKAGE_NAME@
134PACKAGE_STRING = @PACKAGE_STRING@
135PACKAGE_TARNAME = @PACKAGE_TARNAME@
136PACKAGE_VERSION = @PACKAGE_VERSION@
137PATH_SEPARATOR = @PATH_SEPARATOR@
138PKG_CONFIG = @PKG_CONFIG@
139PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
140RANLIB = @RANLIB@
141SET_MAKE = @SET_MAKE@
142SHELL = @SHELL@
143STRIP = @STRIP@
144VERSION = @VERSION@
145XML2_CONFIG = @XML2_CONFIG@
146XML_CPPFLAGS = @XML_CPPFLAGS@
147XML_LIBS = @XML_LIBS@
148Z_CFLAGS = @Z_CFLAGS@
149Z_LIBS = @Z_LIBS@
150abs_builddir = @abs_builddir@
151abs_srcdir = @abs_srcdir@
152abs_top_builddir = @abs_top_builddir@
153abs_top_srcdir = @abs_top_srcdir@
154ac_ct_CC = @ac_ct_CC@
155ac_ct_CXX = @ac_ct_CXX@
156ac_ct_F77 = @ac_ct_F77@
157am__include = @am__include@
158am__leading_dot = @am__leading_dot@
159am__quote = @am__quote@
160am__tar = @am__tar@
161am__untar = @am__untar@
162bindir = @bindir@
163build = @build@
164build_alias = @build_alias@
165build_cpu = @build_cpu@
166build_os = @build_os@
167build_vendor = @build_vendor@
168builddir = @builddir@
169datadir = @datadir@
170datarootdir = @datarootdir@
171docdir = @docdir@
172dvidir = @dvidir@
173exec_prefix = @exec_prefix@
174host = @host@
175host_alias = @host_alias@
176host_cpu = @host_cpu@
177host_os = @host_os@
178host_vendor = @host_vendor@
179htmldir = @htmldir@
180includedir = @includedir@
181infodir = @infodir@
182install_sh = @install_sh@
183libdir = @libdir@
184libexecdir = @libexecdir@
185localedir = @localedir@
186localstatedir = @localstatedir@
187mandir = @mandir@
188mkdir_p = @mkdir_p@
189oldincludedir = @oldincludedir@
190pdfdir = @pdfdir@
191prefix = @prefix@
192program_transform_name = @program_transform_name@
193psdir = @psdir@
194sbindir = @sbindir@
195sharedstatedir = @sharedstatedir@
196srcdir = @srcdir@
197sysconfdir = @sysconfdir@
198target_alias = @target_alias@
199top_builddir = @top_builddir@
200top_srcdir = @top_srcdir@
201g3dincludedir = $(includedir)/g3d
202g3dinclude_HEADERS = \
203 debug.h \
204 g3d.h \
205 types.h \
206 context.h \
207 plugins.h \
208 model.h \
209 object.h \
210 face.h \
211 material.h \
212 texture.h \
213 stream.h \
214 read.h \
215 iff.h \
216 primitive.h \
217 vector.h \
218 matrix.h \
219 quat.h
220
221all: config.h
222 $(MAKE) $(AM_MAKEFLAGS) all-am
223
224.SUFFIXES:
225$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
226 @for dep in $?; do \
227 case '$(am__configure_deps)' in \
228 *$$dep*) \
229 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
230 && exit 0; \
231 exit 1;; \
232 esac; \
233 done; \
234 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu include/g3d/Makefile'; \
235 cd $(top_srcdir) && \
236 $(AUTOMAKE) --gnu include/g3d/Makefile
237.PRECIOUS: Makefile
238Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
239 @case '$?' in \
240 *config.status*) \
241 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
242 *) \
243 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
244 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
245 esac;
246
247$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
248 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
249
250$(top_srcdir)/configure: $(am__configure_deps)
251 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
252$(ACLOCAL_M4): $(am__aclocal_m4_deps)
253 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
254
255config.h: stamp-h1
256 @if test ! -f $@; then \
257 rm -f stamp-h1; \
258 $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
259 else :; fi
260
261stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
262 @rm -f stamp-h1
263 cd $(top_builddir) && $(SHELL) ./config.status include/g3d/config.h
264$(srcdir)/config.h.in: $(am__configure_deps)
265 cd $(top_srcdir) && $(AUTOHEADER)
266 rm -f stamp-h1
267 touch $@
268
269distclean-hdr:
270 -rm -f config.h stamp-h1
271
272mostlyclean-libtool:
273 -rm -f *.lo
274
275clean-libtool:
276 -rm -rf .libs _libs
277install-g3dincludeHEADERS: $(g3dinclude_HEADERS)
278 @$(NORMAL_INSTALL)
279 test -z "$(g3dincludedir)" || $(MKDIR_P) "$(DESTDIR)$(g3dincludedir)"
280 @list='$(g3dinclude_HEADERS)'; for p in $$list; do \
281 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
282 f=$(am__strip_dir) \
283 echo " $(g3dincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(g3dincludedir)/$$f'"; \
284 $(g3dincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(g3dincludedir)/$$f"; \
285 done
286
287uninstall-g3dincludeHEADERS:
288 @$(NORMAL_UNINSTALL)
289 @list='$(g3dinclude_HEADERS)'; for p in $$list; do \
290 f=$(am__strip_dir) \
291 echo " rm -f '$(DESTDIR)$(g3dincludedir)/$$f'"; \
292 rm -f "$(DESTDIR)$(g3dincludedir)/$$f"; \
293 done
294
295ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
296 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
297 unique=`for i in $$list; do \
298 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
299 done | \
300 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
301 END { if (nonempty) { for (i in files) print i; }; }'`; \
302 mkid -fID $$unique
303tags: TAGS
304
305TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
306 $(TAGS_FILES) $(LISP)
307 tags=; \
308 here=`pwd`; \
309 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
310 unique=`for i in $$list; do \
311 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
312 done | \
313 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
314 END { if (nonempty) { for (i in files) print i; }; }'`; \
315 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
316 test -n "$$unique" || unique=$$empty_fix; \
317 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
318 $$tags $$unique; \
319 fi
320ctags: CTAGS
321CTAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
322 $(TAGS_FILES) $(LISP)
323 tags=; \
324 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
325 unique=`for i in $$list; do \
326 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
327 done | \
328 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
329 END { if (nonempty) { for (i in files) print i; }; }'`; \
330 test -z "$(CTAGS_ARGS)$$tags$$unique" \
331 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
332 $$tags $$unique
333
334GTAGS:
335 here=`$(am__cd) $(top_builddir) && pwd` \
336 && cd $(top_srcdir) \
337 && gtags -i $(GTAGS_ARGS) $$here
338
339distclean-tags:
340 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
341
342distdir: $(DISTFILES)
343 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
344 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
345 list='$(DISTFILES)'; \
346 dist_files=`for file in $$list; do echo $$file; done | \
347 sed -e "s|^$$srcdirstrip/||;t" \
348 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
349 case $$dist_files in \
350 */*) $(MKDIR_P) `echo "$$dist_files" | \
351 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
352 sort -u` ;; \
353 esac; \
354 for file in $$dist_files; do \
355 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
356 if test -d $$d/$$file; then \
357 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
358 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
359 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
360 fi; \
361 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
362 else \
363 test -f $(distdir)/$$file \
364 || cp -p $$d/$$file $(distdir)/$$file \
365 || exit 1; \
366 fi; \
367 done
368check-am: all-am
369check: check-am
370all-am: Makefile $(HEADERS) config.h
371installdirs:
372 for dir in "$(DESTDIR)$(g3dincludedir)"; do \
373 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
374 done
375install: install-am
376install-exec: install-exec-am
377install-data: install-data-am
378uninstall: uninstall-am
379
380install-am: all-am
381 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
382
383installcheck: installcheck-am
384install-strip:
385 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
386 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
387 `test -z '$(STRIP)' || \
388 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
389mostlyclean-generic:
390
391clean-generic:
392
393distclean-generic:
394 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
395
396maintainer-clean-generic:
397 @echo "This command is intended for maintainers to use"
398 @echo "it deletes files that may require special tools to rebuild."
399clean: clean-am
400
401clean-am: clean-generic clean-libtool mostlyclean-am
402
403distclean: distclean-am
404 -rm -f Makefile
405distclean-am: clean-am distclean-generic distclean-hdr distclean-tags
406
407dvi: dvi-am
408
409dvi-am:
410
411html: html-am
412
413info: info-am
414
415info-am:
416
417install-data-am: install-g3dincludeHEADERS
418
419install-dvi: install-dvi-am
420
421install-exec-am:
422
423install-html: install-html-am
424
425install-info: install-info-am
426
427install-man:
428
429install-pdf: install-pdf-am
430
431install-ps: install-ps-am
432
433installcheck-am:
434
435maintainer-clean: maintainer-clean-am
436 -rm -f Makefile
437maintainer-clean-am: distclean-am maintainer-clean-generic
438
439mostlyclean: mostlyclean-am
440
441mostlyclean-am: mostlyclean-generic mostlyclean-libtool
442
443pdf: pdf-am
444
445pdf-am:
446
447ps: ps-am
448
449ps-am:
450
451uninstall-am: uninstall-g3dincludeHEADERS
452
453.MAKE: install-am install-strip
454
455.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
456 clean-libtool ctags distclean distclean-generic distclean-hdr \
457 distclean-libtool distclean-tags distdir dvi dvi-am html \
458 html-am info info-am install install-am install-data \
459 install-data-am install-dvi install-dvi-am install-exec \
460 install-exec-am install-g3dincludeHEADERS install-html \
461 install-html-am install-info install-info-am install-man \
462 install-pdf install-pdf-am install-ps install-ps-am \
463 install-strip installcheck installcheck-am installdirs \
464 maintainer-clean maintainer-clean-generic mostlyclean \
465 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
466 tags uninstall uninstall-am uninstall-g3dincludeHEADERS
467
468# Tell versions [3.59,3.63) of GNU make to not export all variables.
469# Otherwise a system limit (for SysV at least) may be exceeded.
470.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/include/g3d/config.h b/src/others/mimesh/libg3d-0.0.8/include/g3d/config.h
new file mode 100644
index 0000000..e3455ba
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/include/g3d/config.h
@@ -0,0 +1,72 @@
1/* include/g3d/config.h. Generated from config.h.in by configure. */
2/* include/g3d/config.h.in. Generated from configure.in by autoheader. */
3
4/* Define to 1 if you have the <dlfcn.h> header file. */
5#define HAVE_DLFCN_H 1
6
7/* Define to 1 if you have the <inttypes.h> header file. */
8#define HAVE_INTTYPES_H 1
9
10/* have GSF library */
11#define HAVE_LIBGSF 1
12
13/* Define to 1 if you have the `m' library (-lm). */
14#define HAVE_LIBM 1
15
16/* Define to 1 if you have the <memory.h> header file. */
17#define HAVE_MEMORY_H 1
18
19/* Define to 1 if you have the <stdint.h> header file. */
20#define HAVE_STDINT_H 1
21
22/* Define to 1 if you have the <stdlib.h> header file. */
23#define HAVE_STDLIB_H 1
24
25/* Define to 1 if you have the <strings.h> header file. */
26#define HAVE_STRINGS_H 1
27
28/* Define to 1 if you have the <string.h> header file. */
29#define HAVE_STRING_H 1
30
31/* Define to 1 if you have the <sys/stat.h> header file. */
32#define HAVE_SYS_STAT_H 1
33
34/* Define to 1 if you have the <sys/types.h> header file. */
35#define HAVE_SYS_TYPES_H 1
36
37/* Define to 1 if you have the <unistd.h> header file. */
38#define HAVE_UNISTD_H 1
39
40/* have zlib */
41#define HAVE_ZLIB 1
42
43/* magic file */
44#define MAGIC_FILENAME "/usr/local/lib/libg3d/libg3d.magic"
45
46/* Define to the address where bug reports for this package should be sent. */
47#define PACKAGE_BUGREPORT ""
48
49/* Define to the full name of this package. */
50#define PACKAGE_NAME ""
51
52/* Define to the full name and version of this package. */
53#define PACKAGE_STRING ""
54
55/* Define to the one symbol short name of this package. */
56#define PACKAGE_TARNAME ""
57
58/* Define to the version of this package. */
59#define PACKAGE_VERSION ""
60
61/* Plugin directory */
62#define PLUGIN_DIR "/usr/local/lib/libg3d/plugins"
63
64/* Define to 1 if you have the ANSI C header files. */
65#define STDC_HEADERS 1
66
67/* use libmagic for file type detection */
68#define USE_LIBMAGIC 1
69
70/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
71 `char[]'. */
72#define YYTEXT_POINTER 1
diff --git a/src/others/mimesh/libg3d-0.0.8/include/g3d/config.h.in b/src/others/mimesh/libg3d-0.0.8/include/g3d/config.h.in
new file mode 100644
index 0000000..4e99250
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/include/g3d/config.h.in
@@ -0,0 +1,71 @@
1/* include/g3d/config.h.in. Generated from configure.in by autoheader. */
2
3/* Define to 1 if you have the <dlfcn.h> header file. */
4#undef HAVE_DLFCN_H
5
6/* Define to 1 if you have the <inttypes.h> header file. */
7#undef HAVE_INTTYPES_H
8
9/* have GSF library */
10#undef HAVE_LIBGSF
11
12/* Define to 1 if you have the `m' library (-lm). */
13#undef HAVE_LIBM
14
15/* Define to 1 if you have the <memory.h> header file. */
16#undef HAVE_MEMORY_H
17
18/* Define to 1 if you have the <stdint.h> header file. */
19#undef HAVE_STDINT_H
20
21/* Define to 1 if you have the <stdlib.h> header file. */
22#undef HAVE_STDLIB_H
23
24/* Define to 1 if you have the <strings.h> header file. */
25#undef HAVE_STRINGS_H
26
27/* Define to 1 if you have the <string.h> header file. */
28#undef HAVE_STRING_H
29
30/* Define to 1 if you have the <sys/stat.h> header file. */
31#undef HAVE_SYS_STAT_H
32
33/* Define to 1 if you have the <sys/types.h> header file. */
34#undef HAVE_SYS_TYPES_H
35
36/* Define to 1 if you have the <unistd.h> header file. */
37#undef HAVE_UNISTD_H
38
39/* have zlib */
40#undef HAVE_ZLIB
41
42/* magic file */
43#undef MAGIC_FILENAME
44
45/* Define to the address where bug reports for this package should be sent. */
46#undef PACKAGE_BUGREPORT
47
48/* Define to the full name of this package. */
49#undef PACKAGE_NAME
50
51/* Define to the full name and version of this package. */
52#undef PACKAGE_STRING
53
54/* Define to the one symbol short name of this package. */
55#undef PACKAGE_TARNAME
56
57/* Define to the version of this package. */
58#undef PACKAGE_VERSION
59
60/* Plugin directory */
61#undef PLUGIN_DIR
62
63/* Define to 1 if you have the ANSI C header files. */
64#undef STDC_HEADERS
65
66/* use libmagic for file type detection */
67#undef USE_LIBMAGIC
68
69/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
70 `char[]'. */
71#undef YYTEXT_POINTER
diff --git a/src/others/mimesh/libg3d-0.0.8/include/g3d/context.h b/src/others/mimesh/libg3d-0.0.8/include/g3d/context.h
new file mode 100644
index 0000000..26b2134
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/include/g3d/context.h
@@ -0,0 +1,149 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef __G3D_CONTEXT_H__
24#define __G3D_CONTEXT_H__
25
26#include <g3d/types.h>
27
28#ifdef __cplusplus
29extern "C" {
30#endif /* ifdef __cplusplus */
31
32
33/**
34 * SECTION:context
35 * @short_description: Libg3d initialization and configuration
36 * @see_also: #G3DContext
37 * @include: g3d/g3d.h
38 *
39 * All state information is saved in the context. It also serves as an
40 * interface to the application.
41 */
42
43
44/**
45 * g3d_context_new:
46 *
47 * Create a new context. This initializes the library (and also the
48 * plugin system so this has not to be done seperately).
49 *
50 * Returns: a valid context, or NULL on failure.
51 */
52EAPI
53G3DContext *g3d_context_new(void);
54
55/**
56 * g3d_context_free:
57 * @context: the context to free
58 *
59 * Cleans up the context and the plugin system and frees all reserved
60 * memory.
61 */
62EAPI
63void g3d_context_free(G3DContext *context);
64
65/**
66 * g3d_context_set_bgcolor:
67 * @context: a valid context
68 * @r: red component (range: 0.0 .. 1.0)
69 * @g: green component (range: 0.0 .. 1.0)
70 * @b: green component (range: 0.0 .. 1.0)
71 * @a: alpha component
72 *
73 * Try to set the background color. This will call a function registered
74 * with <link>@g3d_context_set_set_bgcolor_func</link>.
75 *
76 * Returns: TRUE on success, FALSE else
77 */
78EAPI
79gboolean g3d_context_set_bgcolor(G3DContext *context,
80 G3DFloat r, G3DFloat g, G3DFloat b, G3DFloat a);
81
82/**
83 * g3d_context_update_interface:
84 * @context: a valid context
85 *
86 * Try to update the interface. This will call a function registered with
87 * @g3d_context_set_update_interface_func.
88 *
89 * Returns: TRUE on success, FALSE else
90 */
91EAPI
92gboolean g3d_context_update_interface(G3DContext *context);
93
94/**
95 * g3d_context_update_progress_bar:
96 * @context: a valid context
97 * @percentage: the percentage to set on the progress bar
98 * @visibility: show or hide the progress bar
99 *
100 * Try to update the progress bar.
101 *
102 * Returns: TRUE on success, FALSE else
103 */
104EAPI
105gboolean g3d_context_update_progress_bar(G3DContext *context,
106 G3DFloat percentage, gboolean visibility);
107
108/**
109 * g3d_context_set_set_bgcolor_func:
110 * @context: a valid context
111 * @func: the callback function
112 * @user_data: user-defined opaque pointer
113 *
114 * Registers a callback function for setting the background color.
115 */
116EAPI
117void g3d_context_set_set_bgcolor_func(G3DContext *context,
118 G3DSetBgColorFunc func, gpointer user_data);
119
120/**
121 * g3d_context_set_update_interface_func:
122 * @context: a valid context
123 * @func: the callback function
124 * @user_data: user-defined opaque pointer
125 *
126 * Registers a callback function for updating the interface.
127 */
128EAPI
129void g3d_context_set_update_interface_func(G3DContext *context,
130 G3DUpdateInterfaceFunc func, gpointer user_data);
131
132/**
133 * g3d_context_set_update_progress_bar_func:
134 * @context: a valid context
135 * @func: the callback function
136 * @user_data: user-defined opaque pointer
137 *
138 * Registers a callback function for updating the progress bar.
139 */
140EAPI
141void g3d_context_set_update_progress_bar_func(G3DContext *context,
142 G3DUpdateProgressBarFunc func, gpointer user_data);
143
144#ifdef __cplusplus
145}
146#endif /* ifdef __cplusplus */
147
148#endif /* __G3D_CONTEXT_H__ */
149
diff --git a/src/others/mimesh/libg3d-0.0.8/include/g3d/debug.h b/src/others/mimesh/libg3d-0.0.8/include/g3d/debug.h
new file mode 100644
index 0000000..874764b
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/include/g3d/debug.h
@@ -0,0 +1,44 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _G3D_DEBUG_H
23#define _G3D_DEBUG_H
24
25
26#include <glib.h>
27/* g_debug() is defined since glib 2.6 */
28
29/*< private >*/
30#ifndef g_debug
31#define g_debug(...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, __VA_ARGS__)
32#endif
33/*< public >*/
34
35#if DEBUG > 0
36#include <string.h>
37static const gchar *debug_padding_str = " ";
38static inline const gchar *debug_pad(guint32 level) {
39 return debug_padding_str + (strlen(debug_padding_str) - level);
40}
41#endif
42
43#endif /* _G3D_DEBUG_H */
44
diff --git a/src/others/mimesh/libg3d-0.0.8/include/g3d/face.h b/src/others/mimesh/libg3d-0.0.8/include/g3d/face.h
new file mode 100644
index 0000000..b94b5cf
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/include/g3d/face.h
@@ -0,0 +1,98 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef _G3D_FACE_H
24#define _G3D_FACE_H
25
26#include <g3d/types.h>
27
28#ifdef __cplusplus
29extern "C" {
30#endif /* ifdef __cplusplus */
31
32/**
33 * SECTION:face
34 * @short_description: Face manipulation
35 * @include: g3d/face.h
36 *
37 * A face is plane bordered by at least 3 vertices.
38 */
39
40
41/**
42 * g3d_face_free:
43 * @face: the face to free
44 *
45 * Frees all memory allocated for this face.
46 */
47EAPI
48void g3d_face_free(G3DFace *face);
49
50/**
51 * g3d_face_get_normal:
52 * @face: face to calculate normal of
53 * @object: object containing vertices of face
54 * @nx: x component of resulting normal
55 * @ny: y component of resulting normal
56 * @nz: z component of resulting normal
57 *
58 * calculates the normal of a face.
59 *
60 * Returns: TRUE on success, FALSE else
61 */
62EAPI
63gboolean g3d_face_get_normal(G3DFace *face, G3DObject *object,
64 G3DFloat *nx, G3DFloat *ny, G3DFloat *nz);
65
66/**
67 * g3d_face_new_tri:
68 * @material: material to use for face
69 * @i1: index of first vertex
70 * @i2: index of second vertex
71 * @i3: index of third vertex
72 *
73 * creates a new triangle face.
74 *
75 * Returns: a new face
76 */
77_G3D_STATIC_INLINE G3DFace *g3d_face_new_tri(G3DMaterial *material,
78 guint32 i1, guint32 i2, guint32 i3)
79{
80 G3DFace *face;
81
82 face = g_new0(G3DFace, 1);
83 face->material = material;
84 face->vertex_count = 3;
85 face->vertex_indices = g_new0(guint32, 3);
86 face->vertex_indices[0] = i1;
87 face->vertex_indices[1] = i2;
88 face->vertex_indices[2] = i3;
89
90 return face;
91}
92
93#ifdef __cplusplus
94}
95#endif /* ifdef __cplusplus */
96
97#endif /* _G3D_FACE_H */
98
diff --git a/src/others/mimesh/libg3d-0.0.8/include/g3d/g3d.h b/src/others/mimesh/libg3d-0.0.8/include/g3d/g3d.h
new file mode 100644
index 0000000..ca30be7
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/include/g3d/g3d.h
@@ -0,0 +1,35 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef __G3D_G3D_H__
24#define __G3D_G3D_H__
25
26#include <g3d/context.h>
27#include <g3d/model.h>
28#include <g3d/object.h>
29#include <g3d/face.h>
30#include <g3d/material.h>
31
32#include <g3d/vector.h>
33
34#endif /* __G3D_G3D_H__ */
35
diff --git a/src/others/mimesh/libg3d-0.0.8/include/g3d/iff.h b/src/others/mimesh/libg3d-0.0.8/include/g3d/iff.h
new file mode 100644
index 0000000..a8df77e
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/include/g3d/iff.h
@@ -0,0 +1,325 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef __G3D_IFF_H__
24#define __G3D_IFF_H__
25
26/* FIXME: still needed for FILE until all plugins are converted
27 * #ifndef G3D_DISABLE_DEPRECATED */
28#include <stdio.h>
29/* #endif */
30#include <glib.h>
31
32#include <g3d/types.h>
33
34/**
35 * SECTION:iff
36 * @short_description: IFF file helper functions
37 * @include: g3d/iff.h
38 *
39 * These are helper functions to read data from the Interchange File Format
40 * (IFF).
41 */
42
43
44/**
45 * G3D_IFF_PAD1:
46 *
47 * No padding is done after chunks.
48 */
49#define G3D_IFF_PAD1 0x01
50/**
51 * G3D_IFF_PAD2:
52 *
53 * Chunks are 2-byte aligned
54 */
55#define G3D_IFF_PAD2 0x02
56/**
57 * G3D_IFF_PAD4:
58 *
59 * Chunks are 4-byte aligned
60 */
61#define G3D_IFF_PAD4 0x04
62/**
63 * G3D_IFF_PAD8:
64 *
65 * Chunks are 8-byte aligned
66 */
67#define G3D_IFF_PAD8 0x08
68
69/**
70 * G3D_IFF_SUBCHUNK_LEN16:
71 *
72 * All chunks except the toplevel ones have 16-bit sizes.
73 */
74#define G3D_IFF_SUBCHUNK_LEN16 0x10
75/**
76 * G3D_IFF_LEN16:
77 *
78 * All chunks have 16-bit sizes.
79 */
80#define G3D_IFF_LEN16 0x20
81/**
82 * G3D_IFF_LE:
83 *
84 * The file has little-endian data.
85 */
86#define G3D_IFF_LE 0x40 /* little endian */
87
88/**
89 * G3D_IFF_MKID:
90 * @a: first byte
91 * @b: second byte
92 * @c: third byte
93 * @d: fourth byte
94 *
95 * Generate an IFF chunk identifier from character representation, e.g.
96 * G3D_IFF_MKID('F','O','R','M').
97 *
98 * Returns: unsigned integer identifier.
99 */
100#define G3D_IFF_MKID(a,b,c,d) ( \
101 (((guint32)(a))<<24) | \
102 (((guint32)(b))<<16) | \
103 (((guint32)(c))<< 8) | \
104 (((guint32)(d)) ) )
105
106#ifdef __cplusplus
107extern "C" {
108#endif /* ifdef __cplusplus */
109
110#ifndef G3D_DISABLE_DEPRECATED
111/**
112 * g3d_iff_gdata:
113 *
114 * IFF global data (deprecated).
115 */
116#define g3d_iff_gdata G3DIffGlobal
117/**
118 * g3d_iff_ldata:
119 *
120 * IFF local data (deprecated).
121 */
122#define g3d_iff_ldata G3DIffLocal
123/**
124 * g3d_iff_chunk_callback:
125 *
126 * IFF chunk callback (deprecated).
127 */
128#define g3d_iff_chunk_callback G3DIffChunkCallback
129/**
130 * g3d_iff_chunk_info:
131 *
132 * IFF chunk description (deprecated).
133 */
134#define g3d_iff_chunk_info G3DIffChunkInfo
135#endif
136
137/**
138 * G3DIffGlobal:
139 * @context: a valid context
140 * @model: a model
141 * @stream: the stream to read model from
142 * @flags: IFF flags
143 * @user_data: to be used by plugin
144 * @f: file to read model from (DEPRECATED)
145 * @max_fpos: maximum file position (DEPRECATED)
146 *
147 * The plugin-global data to be given to IFF callback functions.
148 */
149typedef struct {
150 G3DContext *context;
151 G3DModel *model;
152 G3DStream *stream;
153 guint32 flags;
154 gpointer user_data;
155 FILE *f;
156 long int max_fpos;
157} G3DIffGlobal;
158
159/**
160 * G3DIffLocal:
161 * @id: chunk identifier
162 * @parent_id: parent chunk identifier
163 * @object: an object set by parent callbacks, may be NULL
164 * @level: level of chunk
165 * @level_object: object shared by callbacks on the same level, may be NULL
166 * @nb: number of bytes remaining in chunk, has to be decremented after
167 * correctly after reading from stream
168 * @finalize: for container chunks the callback function is called before
169 * and after processing possible sub-chunks, the second time @finalize is set
170 * to TRUE
171 *
172 * The function-local data for IFF callback functions.
173 */
174typedef struct {
175 guint32 id;
176 guint32 parent_id;
177 gpointer object;
178 gint32 level;
179 gpointer level_object;
180 gint32 nb;
181 gboolean finalize;
182} G3DIffLocal;
183
184/**
185 * G3DIffChunkCallback:
186 * @global: the global data
187 * @local: the local data
188 *
189 * IFF callback function prototype.
190 *
191 * Returns: TRUE on success, FALSE else.
192 */
193typedef gboolean (* G3DIffChunkCallback)(
194 G3DIffGlobal *global, G3DIffLocal *local);
195
196/**
197 * G3DIffChunkInfo:
198 * @id: identifier of chunk
199 * @description: human-readable description of chunk type
200 * @container: TRUE if this chunk contains sub-chunks
201 * @callback: function to be called if such a chunk is found
202 *
203 * A chunk type description.
204 */
205typedef struct {
206 gchar *id;
207 gchar *description;
208 gboolean container;
209 G3DIffChunkCallback callback;
210} G3DIffChunkInfo;
211
212/**
213 * g3d_iff_check:
214 * @stream: stream containing IFF file to check
215 * @id: top level ID (out)
216 * @len: length of top level container (out)
217 *
218 * Checks a stream for a valid IFF signature and reads the top level container.
219 *
220 * Returns: TRUE on success (valid IFF), FALSE else
221 */
222EAPI
223gboolean g3d_iff_check(G3DStream *stream, guint32 *id, gsize *len);
224
225/**
226 * g3d_iff_read_chunk:
227 * @stream: stream to read from
228 * @id: ID of chunk (out)
229 * @len: length of chunk (excluding header) (out)
230 * @flags: flags
231 *
232 * Reads one chunk header from an IFF file.
233 *
234 * Returns: real length of chunk including header and possible padding byte
235 */
236EAPI
237gsize g3d_iff_read_chunk(G3DStream *stream, guint32 *id, gsize *len,
238 guint32 flags);
239
240#ifndef G3D_DISABLE_DEPRECATED
241/**
242 * g3d_iff_open:
243 * @filename: file name of IFF file
244 * @id: top level ID (out)
245 * @len: length of top level container (out)
246 *
247 * Opens an IFF file, checks it and reads its top level container.
248 *
249 * Returns: the file pointer of open file or NULL in case of an error
250 */
251FILE *g3d_iff_open(const gchar *filename, guint32 *id, guint32 *len);
252
253/**
254 * g3d_iff_readchunk:
255 * @f: the open IFF file pointer
256 * @id: ID of chunk (out)
257 * @len: length of chunk (excluding header) (out)
258 * @flags: flags
259 *
260 * Reads one chunk header from an IFF file.
261 *
262 * Returns: real length of chunk including header and possible padding byte
263 */
264int g3d_iff_readchunk(FILE *f, guint32 *id, guint32 *len, guint32 flags);
265#endif /* G3D_DISABLE_DEPRECATED */
266
267/**
268 * g3d_iff_id_to_text:
269 * @id: an IFF identifier
270 *
271 * Get the text representation of an IFF chunk identifier.
272 *
273 * Returns: a newly allocated string containing the text identifier.
274 */
275EAPI
276gchar *g3d_iff_id_to_text(guint32 id);
277
278/**
279 * g3d_iff_chunk_matches:
280 * @id: IFF identifier
281 * @tid: textual representation of identifier
282 *
283 * Check whether @id and @tid match.
284 *
285 * Returns: TRUE on match, FALSE else.
286 */
287EAPI
288gboolean g3d_iff_chunk_matches(guint32 id, gchar *tid);
289
290/**
291 * g3d_iff_handle_chunk:
292 * @global: global data
293 * @plocal: local data of parent chunk, must not be NULL
294 * @chunks: chunk description list
295 * @flags: IFF flags
296 *
297 * Handle an IFF chunk based on chunk description.
298 *
299 * Returns: level object for siblings, may be NULL.
300 */
301EAPI
302gpointer g3d_iff_handle_chunk(G3DIffGlobal *global, G3DIffLocal *plocal,
303 G3DIffChunkInfo *chunks, guint32 flags);
304
305/**
306 * g3d_iff_read_ctnr:
307 * @global: global data
308 * @local: local data of current chunk, must not be NULL
309 * @chunks: chunk description list
310 * @flags: IFF flags
311 *
312 * Read subchunks in current chunk and handle them appropriately.
313 *
314 * Returns: TRUE on success, FALSE else.
315 */
316EAPI
317gboolean g3d_iff_read_ctnr(G3DIffGlobal *global, G3DIffLocal *local,
318 G3DIffChunkInfo *chunks, guint32 flags);
319
320#ifdef __cplusplus
321}
322#endif /* ifdef __cplusplus */
323
324#endif
325
diff --git a/src/others/mimesh/libg3d-0.0.8/include/g3d/material.h b/src/others/mimesh/libg3d-0.0.8/include/g3d/material.h
new file mode 100644
index 0000000..d04ea4d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/include/g3d/material.h
@@ -0,0 +1,64 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef __G3D_MATERIAL_H__
24#define __G3D_MATERIAL_H__
25
26#include <g3d/types.h>
27
28#ifdef __cplusplus
29extern "C" {
30#endif /* ifdef __cplusplus */
31
32/**
33 * SECTION:material
34 * @short_description: Material generation and manipulation
35 * @include: g3d/material.h
36 *
37 * A material contains all color, shading and texture information for a
38 * #G3DFace.
39 */
40/**
41 * g3d_material_new
42 *
43 * Generates a new material with a default color.
44 *
45 * Returns: the new material or NULL on error
46 */
47EAPI
48G3DMaterial *g3d_material_new(void);
49
50/**
51 * g3d_material_free:
52 * @material: the material to free
53 *
54 * Frees all memory allocated for that material.
55 */
56EAPI
57void g3d_material_free(G3DMaterial *material);
58
59#ifdef __cplusplus
60}
61#endif /* ifdef __cplusplus */
62
63#endif /* __G3D_MATERIAL_H__ */
64
diff --git a/src/others/mimesh/libg3d-0.0.8/include/g3d/matrix.h b/src/others/mimesh/libg3d-0.0.8/include/g3d/matrix.h
new file mode 100644
index 0000000..df4a7a2
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/include/g3d/matrix.h
@@ -0,0 +1,189 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef _G3D_MATRIX_H
24#define _G3D_MATRIX_H
25
26#include <g3d/types.h>
27
28#ifdef __cplusplus
29extern "C" {
30#endif /* ifdef __cplusplus */
31
32/**
33 * SECTION:matrix
34 * @short_description: Matrix manipulation and calculation
35 * @include: g3d/matrix.h
36 *
37 * Matrices in libg3d have the following layout:
38 *
39 * G3DMatrix matrix[16]:
40 *
41 * matrix[col * 4 + row] = f;
42 */
43
44/**
45 * g3d_matrix_identity:
46 * @matrix: 4x4 matrix (float[16])
47 *
48 * Sets the given matrix to the identity matrix.
49 *
50 * Returns: TRUE on success, FALSE else
51 */
52EAPI
53gboolean g3d_matrix_identity(G3DMatrix *matrix);
54
55/**
56 * g3d_matrix_new:
57 *
58 * Create a new matrix. It is also set to the identity matrix.
59 *
60 * Returns: the new matrix
61 */
62_G3D_STATIC_INLINE G3DMatrix *g3d_matrix_new(void) {
63 G3DMatrix *matrix = g_new(G3DMatrix, 16);
64 g3d_matrix_identity(matrix);
65 return matrix;
66}
67
68/**
69 * g3d_matrix_free:
70 * @matrix: the matrix to free
71 *
72 * Free the memory allocated by a matrix.
73 */
74_G3D_STATIC_INLINE void g3d_matrix_free(G3DMatrix *matrix) {
75 g_free(matrix);
76}
77
78/**
79 * g3d_matrix_multiply:
80 * @m1: first matrix
81 * @m2: second matrix
82 * @rm: resulting matrix
83 *
84 * Multiplies the matrixes.
85 *
86 * Returns: TRUE on success, FALSE else
87 */
88EAPI
89gboolean g3d_matrix_multiply(G3DMatrix *m1, G3DMatrix *m2, G3DMatrix *rm);
90
91/**
92 * g3d_matrix_translate:
93 * @x: x translation
94 * @y: y translation
95 * @z: z translation
96 * @rm: resulting matrix
97 *
98 * Adds a translation to the the matrix.
99 *
100 * Returns: TRUE on success, FALSE else
101 */
102EAPI
103gboolean g3d_matrix_translate(G3DFloat x, G3DFloat y, G3DFloat z,
104 G3DMatrix *rm);
105
106/**
107 * g3d_matrix_rotate:
108 * @angle: rotation angle
109 * @ax: x component of rotation axis
110 * @ay: y component of rotation axis
111 * @az: z component of rotation axis
112 * @rm: resulting matrix
113 *
114 * Adds a rotation to the matrix.
115 *
116 * Returns: TRUE on success, FALSE else
117 */
118EAPI
119gboolean g3d_matrix_rotate(G3DFloat angle, G3DFloat ax, G3DFloat ay,
120 G3DFloat az, G3DMatrix *rm);
121
122/**
123 * g3d_matrix_rotate_xyz
124 * @rx: rotation around x axis
125 * @ry: rotation around y axis
126 * @rz: rotation around z axis
127 * @rm: resulting matrix
128 *
129 * Adds a rotation around the 3 coordinate system axes to the matrix.
130 *
131 * Returns: TRUE on success, FALSE else
132 */
133EAPI
134gboolean g3d_matrix_rotate_xyz(G3DFloat rx, G3DFloat ry, G3DFloat rz,
135 G3DMatrix *rm);
136
137/**
138 * g3d_matrix_scale:
139 * @x: x factor
140 * @y: y factor
141 * @z: z factor
142 * @rm: resulting matrix
143 *
144 * Adds a scaling to the matrix.
145 *
146 * Returns: TRUE on success, FALSE else
147 */
148EAPI
149gboolean g3d_matrix_scale(G3DFloat x, G3DFloat y, G3DFloat z, G3DMatrix *rm);
150
151/**
152 * g3d_matrix_transpose:
153 * @matrix: the matrix
154 *
155 * Transposes the matrix.
156 *
157 * Returns: TRUE on success, FALSE else
158 */
159EAPI
160gboolean g3d_matrix_transpose(G3DMatrix *matrix);
161
162/**
163 * g3d_matrix_determinant:
164 * @matrix: the matrix
165 *
166 * Calculate the determinant of the matrix (FIXME: not verified).
167 *
168 * Returns: the determinant.
169 */
170EAPI
171G3DFloat g3d_matrix_determinant(G3DMatrix *matrix);
172
173/**
174 * g3d_matrix_dump:
175 * @matrix: the matrix
176 *
177 * If debugging is enabled, this function dump the matrix to stderr.
178 *
179 * Returns: TRUE if matrix is dumped, FALSE else
180 */
181EAPI
182gboolean g3d_matrix_dump(G3DMatrix *matrix);
183
184#ifdef __cplusplus
185}
186#endif /* ifdef __cplusplus */
187
188#endif /* _G3D_MATRIX_H */
189
diff --git a/src/others/mimesh/libg3d-0.0.8/include/g3d/model.h b/src/others/mimesh/libg3d-0.0.8/include/g3d/model.h
new file mode 100644
index 0000000..86047a6
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/include/g3d/model.h
@@ -0,0 +1,180 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef __G3D_MODEL_H__
24#define __G3D_MODEL_H__
25
26#include <g3d/types.h>
27
28#ifdef __cplusplus
29extern "C" {
30#endif /* ifdef __cplusplus */
31
32/**
33 * SECTION:model
34 * @short_description: Model manipulation functions
35 * @include: g3d/g3d.h
36 *
37 * A model is a group of objects. All information loaded from a file by libg3d
38 * is found in this model.
39 */
40
41/**
42 * g3d_model_new:
43 *
44 * This functions allocates and initializes a new G3DModel.
45 *
46 * Returns: a newly allocated G3DModel
47 */
48EAPI
49G3DModel *g3d_model_new(void);
50
51/**
52 * G3D_MODEL_SCALE:
53 *
54 * The model should be scaled to a maximum extension of +/- 10.0.
55 */
56#define G3D_MODEL_SCALE (1 << 0)
57/**
58 * G3D_MODEL_CENTER:
59 *
60 * The model should be centered around the (0,0,0).
61 */
62#define G3D_MODEL_CENTER (1 << 1)
63/**
64 * G3D_MODEL_OPTIMIZE:
65 *
66 * The model material/object/face lists should be serialized to some private
67 * arrays (deprecated).
68 */
69#define G3D_MODEL_OPTIMIZE (1 << 2)
70/**
71 * G3D_MODEL_NOCHECK:
72 *
73 * The common checks should be disabled. The checks include:
74 * <itemizedlist>
75 * <listitem>faces have at least 3 indices</listitem>
76 * <listitem>face indices are <= number of vertices</listitem>
77 * <listitem>material of faces is not NULL</listitem>
78 * </itemizedlist>
79 */
80#define G3D_MODEL_NOCHECK (1 << 3)
81
82/**
83 * g3d_model_load_full:
84 * @context: a valid context
85 * @filename: the file name of the model to load
86 * @flags: object manipulation flags
87 *
88 * Loads a model from a file. Depending on @flags the model is checked,
89 * centered, resized, optimized.
90 *
91 * Returns: the loaded model or NULL in case of an error.
92 */
93EAPI
94G3DModel *g3d_model_load_full(G3DContext *context, const gchar *filename,
95 guint32 flags);
96
97/**
98 * g3d_model_load:
99 * @context: a valid context
100 * @filename: the file name of the model to load
101 *
102 * Loads a model from a file. The model is checked, centered, resized,
103 * optimized.
104 *
105 * Returns: the loaded model or NULL in case of an error
106 */
107EAPI
108G3DModel *g3d_model_load(G3DContext *context, const gchar *filename);
109
110/**
111 * g3d_model_check:
112 * @model: the model to check
113 *
114 * Checks whether a model returned by plugin is valid.
115 *
116 * Returns: TRUE on success, FALSE on error
117 */
118EAPI
119gboolean g3d_model_check(G3DModel *model);
120
121/**
122 * g3d_model_center:
123 * @model: the model to center
124 *
125 * Translates all object coordinates that the object center is at (0, 0, 0)
126 *
127 * Returns: TRUE on success, FALSE on error
128 */
129EAPI
130gboolean g3d_model_center(G3DModel *model);
131
132/**
133 * g3d_model_clear:
134 * @model: the model to clear
135 *
136 * Removes all objects from a model.
137 */
138EAPI
139void g3d_model_clear(G3DModel *model);
140
141/**
142 * g3d_model_free:
143 * @model: the model to free
144 *
145 * Frees all memory allocated for the model including all objects, materials
146 * and textures.
147 */
148EAPI
149void g3d_model_free(G3DModel *model);
150
151/**
152 * g3d_model_get_object_by_name:
153 * @model: the model containing all objects
154 * @name: the name of the requested object
155 *
156 * Searches the object tree for an object with the given name.
157 *
158 * Returns: the requested object or NULL if non was found
159 */
160EAPI
161G3DObject *g3d_model_get_object_by_name(G3DModel *model, const gchar *name);
162
163/**
164 * g3d_model_transform:
165 * @model: the model
166 * @matrix: transformation matrix
167 *
168 * Transform all toplevel objects in model with matrix.
169 *
170 * Returns: TRUE on success, FALSE else
171 */
172EAPI
173gboolean g3d_model_transform(G3DModel *model, G3DMatrix *matrix);
174
175#ifdef __cplusplus
176}
177#endif /* ifdef __cplusplus */
178
179#endif /* __G3D_MODEL_H__ */
180
diff --git a/src/others/mimesh/libg3d-0.0.8/include/g3d/object.h b/src/others/mimesh/libg3d-0.0.8/include/g3d/object.h
new file mode 100644
index 0000000..97dfefc
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/include/g3d/object.h
@@ -0,0 +1,151 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef __G3D_OBJECT_H__
24#define __G3D_OBJECT_H__
25
26#include <g3d/types.h>
27
28#ifdef __cplusplus
29extern "C" {
30#endif /* ifdef __cplusplus */
31
32/**
33 * SECTION:object
34 * @short_description: Object manipulation
35 * @include: g3d/object.h
36 *
37 * Objects are parts of a model. In most file formats vertices and faces are
38 * grouped in some way into objects. Objects can be hierarchical, so what a
39 * model contains is basically an object tree.
40 */
41
42/**
43 * g3d_object_free:
44 * @object: the object to free
45 *
46 * Frees all memory allocated for that object.
47 */
48EAPI
49void g3d_object_free(G3DObject *object);
50
51/**
52 * g3d_object_radius:
53 * @object: the object to measure
54 *
55 * Calculates the radius of the object. This is the maximum from the
56 * center to a vertex.
57 *
58 * Returns: the radius of the given object
59 */
60EAPI
61gdouble g3d_object_radius(G3DObject *object);
62
63/**
64 * g3d_object_scale:
65 * @object: the object to scale
66 * @scale: scale factor
67 *
68 * Resizes the object by the factor @scale.
69 *
70 * Returns: TRUE on success, FALSE else
71 */
72EAPI
73gboolean g3d_object_scale(G3DObject *object, G3DFloat scale);
74
75/**
76 * g3d_object_transform:
77 * @object: the object to transform
78 * @matrix: the transformation matrix
79 *
80 * Multiplies all vertices of the object with the transformation matrix.
81 *
82 * Returns: TRUE on success, FALSE else
83 */
84EAPI
85gboolean g3d_object_transform(G3DObject *object, G3DMatrix *matrix);
86
87/**
88 * g3d_object_transform_normals:
89 * @object: the object to transform
90 * @matrix: the transformation matrix
91 *
92 * Multiplies all normals of the object with the transformation matrix.
93 *
94 * Returns: TRUE on success, FALSE else
95 */
96EAPI
97gboolean g3d_object_transform_normals(G3DObject *object, G3DMatrix *matrix);
98
99/**
100 * g3d_object_duplicate:
101 * @object: the object to duplicate
102 *
103 * Duplicates an object with all vertices, faces and materials.
104 *
105 * Returns: the new clone object
106 */
107EAPI
108G3DObject *g3d_object_duplicate(G3DObject *object);
109
110/**
111 * g3d_object_optimize:
112 * @object: the object to optimize
113 *
114 * Puts all vertex and face information into special arrays for faster
115 * rendering. It is deprecated and should not be used.
116 *
117 * Returns: TRUE on success, FALSE else
118 */
119EAPI
120gboolean g3d_object_optimize(G3DObject *object);
121
122/**
123 * g3d_object_smooth:
124 * @object: the object to smooth
125 *
126 * FIXME: unimplemented.
127 *
128 * Returns: TRUE on success, FALSE else
129 */
130EAPI
131gboolean g3d_object_smooth(G3DObject *object);
132
133/**
134 * g3d_object_merge:
135 * @o1: first and target object
136 * @o2: second object
137 *
138 * Merges both objects into @o1.
139 * FIXME: needs cleanup
140 *
141 * Returns: TRUE on success, FALSE else
142 */
143EAPI
144gboolean g3d_object_merge(G3DObject *o1, G3DObject *o2);
145
146#ifdef __cplusplus
147}
148#endif /* ifdef __cplusplus */
149
150#endif /* __G3D_OBJECT_H__ */
151
diff --git a/src/others/mimesh/libg3d-0.0.8/include/g3d/plugins.h b/src/others/mimesh/libg3d-0.0.8/include/g3d/plugins.h
new file mode 100644
index 0000000..0a98dcd
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/include/g3d/plugins.h
@@ -0,0 +1,243 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef __G3D_PLUGINS_H__
24#define __G3D_PLUGINS_H__
25
26#include <gmodule.h>
27#include <g3d/types.h>
28
29#ifdef __cplusplus
30extern "C" {
31#endif /* ifdef __cplusplus */
32
33/**
34 * SECTION:plugins
35 * @short_description: G3DPlugin interface
36 * @see_also: #G3DPlugin
37 * @include: g3d/plugins.h
38 *
39 * Direct interaction with the plugin system is normally not needed when using
40 * libg3d. It may be required when writing a plugin which should load a
41 * #G3DImage or a #G3DModel with another plugin.
42 */
43
44/**
45 * G3DPluginType:
46 * @G3D_PLUGIN_UNKNOWN: unknown plugin type
47 * @G3D_PLUGIN_IMPORT: model import plugin
48 * @G3D_PLUGIN_IMAGE: image loading plugin
49 *
50 * Type of plugin.
51 */
52typedef enum {
53 G3D_PLUGIN_UNKNOWN = 0x00,
54 G3D_PLUGIN_IMPORT,
55 G3D_PLUGIN_IMAGE
56} G3DPluginType;
57
58/**
59 * G3DPluginInitFunc:
60 * @context: the context
61 *
62 * Prototype for plugin_init().
63 *
64 * Returns: opaque plugin data.
65 */
66typedef gpointer (* G3DPluginInitFunc)(G3DContext *context);
67
68/**
69 * G3DPluginCleanupFunc:
70 * @user_data: opaque plugin data
71 *
72 * Prototype for plugin_cleanup().
73 */
74typedef void (* G3DPluginCleanupFunc)(gpointer user_data);
75
76/**
77 * G3DPluginLoadModelFromStreamFunc:
78 * @context: the context
79 * @stream: the stream to load from
80 * @model: the model structure to fill
81 * @user_data: opaque plugin data
82 *
83 * Prototype for plugin_load_model_from_stream().
84 *
85 * Returns: TRUE on success, FALSE else.
86 */
87typedef gboolean (* G3DPluginLoadModelFromStreamFunc)(G3DContext *context,
88 G3DStream *stream, G3DModel *model, gpointer user_data);
89
90/**
91 * G3DPluginLoadImageStreamFunc:
92 * @context: the context
93 * @stream: the stream to load from
94 * @image: image structure to fill
95 * @user_data: opaque plugin data
96 *
97 * Prototype for plugin_load_image_from_stream().
98 *
99 * Returns: TRUE on success, FALSE else.
100 */
101typedef gboolean (* G3DPluginLoadImageStreamFunc)(G3DContext *context,
102 G3DStream *stream, G3DImage *image, gpointer user_data);
103
104/**
105 * G3DPluginGetDescFunc:
106 * @context: the context
107 *
108 * Prototype for plugin_description().
109 *
110 * Returns: a newly-allocated string containing the description of the plugin.
111 */
112typedef gchar *(* G3DPluginGetDescFunc)(G3DContext *context);
113
114/**
115 * G3DPluginGetExtFunc:
116 * @context: the context
117 *
118 * Prototype for plugin_extensions().
119 *
120 * Returns: NULL-terminated list of file extensions supported by this plugin.
121 * Free with g_strfreev().
122 */
123typedef gchar **(* G3DPluginGetExtFunc)(G3DContext *context);
124
125/**
126 * G3DPlugin:
127 *
128 * A libg3d plugin.
129 */
130struct _G3DPlugin {
131 /*< private >*/
132 gchar *name;
133 gchar *path;
134 G3DPluginType type;
135 gchar **extensions;
136
137 G3DPluginInitFunc init_func;
138 G3DPluginCleanupFunc cleanup_func;
139 G3DPluginLoadModelFromStreamFunc loadmodelstream_func;
140 G3DPluginLoadImageStreamFunc loadimagestream_func;
141 G3DPluginGetDescFunc desc_func;
142 G3DPluginGetExtFunc ext_func;
143
144 gpointer user_data;
145
146 GModule *module;
147};
148
149/**
150 * g3d_plugins_init:
151 * @context: a valid #G3DContext
152 *
153 * Initializes the plugin system. This is implicitly done when using
154 * g3d_context_new().
155 *
156 * Returns: TRUE on success, FALSE else.
157 */
158EAPI
159gboolean g3d_plugins_init(G3DContext *context);
160
161/**
162 * g3d_plugins_cleanup:
163 * @context: a valid context
164 *
165 * Clean up the plugin system. Usually done by g3d_context_free().
166 */
167EAPI
168void g3d_plugins_cleanup(G3DContext *context);
169
170/**
171 * g3d_plugins_load_model:
172 * @context: a valid context
173 * @filename: file name of model to load
174 * @model: model structure to fill
175 *
176 * Try to load a model from file using import plugins.
177 *
178 * Returns: TRUE on success, FALSE else.
179 */
180EAPI
181gboolean g3d_plugins_load_model(G3DContext *context, const gchar *filename,
182 G3DModel *model);
183
184/**
185 * g3d_plugins_load_model_from_stream:
186 * @context: a valid context
187 * @stream: stream to load model from
188 * @model: model structure to fill
189 *
190 * Try to load a model from stream using import plugins.
191 *
192 * Returns: TRUE on success, FALSE else.
193 */
194EAPI
195gboolean g3d_plugins_load_model_from_stream(G3DContext *context,
196 G3DStream *stream, G3DModel *model);
197
198/**
199 * g3d_plugins_load_image:
200 * @context: a valid context
201 * @filename: file name of image to load
202 * @image: image structure to fill
203 *
204 * Try to load an image from file using import plugins.
205 *
206 * Returns: TRUE on success, FALSE else.
207 */
208EAPI
209gboolean g3d_plugins_load_image(G3DContext *context, const gchar *filename,
210 G3DImage *image);
211
212/**
213 * g3d_plugins_load_image_from_stream:
214 * @context: a valid context
215 * @stream: stream to load image from
216 * @image: image structure to fill
217 *
218 * Try to load an image from stream using import plugins.
219 *
220 * Returns: TRUE on success, FALSE else.
221 */
222EAPI
223gboolean g3d_plugins_load_image_from_stream(G3DContext *context,
224 G3DStream *stream, G3DImage *image);
225
226/**
227 * g3d_plugins_get_image_extensions:
228 * @context: a valid context
229 *
230 * Get the supported image type extensions.
231 *
232 * Returns: NULL-terminated list of image file extensions supported by this
233 * plugin. Free with g_strfreev().
234 */
235EAPI
236gchar **g3d_plugins_get_image_extensions(G3DContext *context);
237
238#ifdef __cplusplus
239}
240#endif /* ifdef __cplusplus */
241
242#endif /* __G3D_PLUGINS_H__ */
243
diff --git a/src/others/mimesh/libg3d-0.0.8/include/g3d/primitive.h b/src/others/mimesh/libg3d-0.0.8/include/g3d/primitive.h
new file mode 100644
index 0000000..3db23df
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/include/g3d/primitive.h
@@ -0,0 +1,164 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef __G3D_PRIMITIVE_H__
24#define __G3D_PRIMITIVE_H__
25
26#include <g3d/types.h>
27
28#ifdef __cplusplus
29extern "C" {
30#endif /* ifdef __cplusplus */
31
32/**
33 * SECTION:primitive
34 * @short_description: 3D primitive generation functions
35 * @include: g3d/primitive.h
36 *
37 * Primitives are objects containing basic 3D geometrical structures. A
38 * variety of them can be created using these functions.
39 */
40
41/**
42 * g3d_primitive_box:
43 * @width: the width of the box
44 * @height: the height of the box
45 * @depth: the depth of the box
46 * @material: the material to use for all faces
47 *
48 * Generates an object containing a box.
49 *
50 * Returns: the box object
51 */
52EAPI
53G3DObject *g3d_primitive_box(G3DFloat width, G3DFloat height, G3DFloat depth,
54 G3DMaterial *material);
55
56#ifndef G3D_DISABLE_DEPRECATED
57/**
58 * g3d_primitive_cube:
59 * @width: the width of the box
60 * @height: the height of the box
61 * @depth: the depth of the box
62 * @material: the material to use for all faces
63 *
64 * Generates an object containing a box. It is deprecated and now a wrapper for
65 * g3d_primitive_box().
66 *
67 * Returns: the box object
68 */
69EAPI
70G3DObject *g3d_primitive_cube(G3DFloat width, G3DFloat height, G3DFloat depth,
71 G3DMaterial *material);
72#endif
73
74/**
75 * g3d_primitive_cylinder:
76 * @radius: the radius of the cylinder
77 * @height: the height of the side faces
78 * @sides: number of side faces (number of circle segments)
79 * @top: add top faces
80 * @bottom: add bottom faces
81 * @material: material to use for faces
82 *
83 * Generates an object containing a cylinder.
84 *
85 * Returns: cylinder object
86 */
87EAPI
88G3DObject *g3d_primitive_cylinder(G3DFloat radius, G3DFloat height,
89 guint32 sides, gboolean top, gboolean bottom, G3DMaterial *material);
90
91/**
92 * g3d_primitive_tube:
93 * @r_in: inner radius
94 * @r_out: outer radius
95 * @height: the height of the side faces
96 * @sides: number of side faces (number of circle segments)
97 * @top: add top faces
98 * @bottom: add bottom faces
99 * @material: material to use for faces
100 *
101 * Generates an object containing a tube (a cylinder with a hole).
102 *
103 * Returns: tube object
104 */
105EAPI
106G3DObject *g3d_primitive_tube(G3DFloat r_in, G3DFloat r_out, G3DFloat height,
107 guint32 sides, gboolean top, gboolean bottom, G3DMaterial *material);
108
109/**
110 * g3d_primitive_sphere:
111 * @radius: radius
112 * @vseg: number of vertical segments
113 * @hseg: number of horizontal segments
114 * @material: material to use for faces
115 *
116 * Generates an object containing a sphere.
117 *
118 * Returns: sphere object
119 */
120EAPI
121G3DObject *g3d_primitive_sphere(G3DFloat radius, guint32 vseg, guint32 hseg,
122 G3DMaterial *material);
123
124/**
125 * g3d_primitive_box_strip_2d:
126 * @vcnt: number of control points
127 * @vdata: 2-dimensional control point data (2 * vcnt * gdouble)
128 * @height: height of resulting strip (y component)
129 * @width: width of strip (corner diameter)
130 * @material: material to use for faces
131 *
132 * Generates a strip of box segments defined by corner center points
133 * using two-dimensional data (x/z plane).
134 *
135 * Returns: strip object
136 */
137EAPI
138G3DObject *g3d_primitive_box_strip_2d(guint32 vcnt, gdouble *vdata,
139 gdouble height, gdouble width, G3DMaterial *material);
140
141/**
142 * g3d_primitive_mesh:
143 * @m: number of vertices in m direction
144 * @n: number of vertices in n direction
145 * @wrap_m: wrap around in m direction
146 * @wrap_n: wrap around in n direction
147 * @material: material to use for faces
148 *
149 * Generate a mesh consisting of m * n vertices. The vertex data is
150 * initialized with (0.0, 0.0, 0.0) and has to be set to something
151 * useful.
152 *
153 * Returns: mesh object
154 */
155EAPI
156G3DObject *g3d_primitive_mesh(guint32 m, guint32 n, gboolean wrap_m,
157 gboolean wrap_n, G3DMaterial *material);
158
159#ifdef __cplusplus
160}
161#endif /* ifdef __cplusplus */
162
163#endif /* __G3D_PRIMITIVE_H__ */
164
diff --git a/src/others/mimesh/libg3d-0.0.8/include/g3d/quat.h b/src/others/mimesh/libg3d-0.0.8/include/g3d/quat.h
new file mode 100644
index 0000000..2d68907
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/include/g3d/quat.h
@@ -0,0 +1,117 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _G3D_QUAT_H
23#define _G3D_QUAT_H
24
25#include <g3d/types.h>
26
27/**
28 * SECTION:quat
29 * @short_description: quaternion helpers
30 * @include: g3d/quat.h
31 */
32
33/**
34 * g3d_quat_normalize:
35 * @q: a quaternion
36 *
37 * normalize the quaternion to a length of 1.0.
38 *
39 * Returns: TRUE on success, FALSE else
40 */
41EAPI
42gboolean g3d_quat_normalize(G3DQuat *q);
43
44/**
45 * g3d_quat_rotate:
46 * @q: resulting quat
47 * @axis: rotation axis
48 * @angle: rotation angle
49 *
50 * Encode a rotation around an axis into quaternion.
51 *
52 * Returns: TRUE on success, FALSE else
53 */
54EAPI
55gboolean g3d_quat_rotate(G3DQuat *q, G3DVector *axis, G3DFloat angle);
56
57/**
58 * g3d_quat_add:
59 * @qr: result quat
60 * @q1: first quat
61 * @q2: second quat
62 *
63 * Add two quats.
64 *
65 * Returns: TRUE on success, FALSE else
66 */
67EAPI
68gboolean g3d_quat_add(G3DQuat *qr, G3DQuat *q1, G3DQuat *q2);
69
70/**
71 * g3d_quat_trackball:
72 * @q: resulting quaternion
73 * @x1: x value of first point
74 * @y1: y value of first point
75 * @x2: x value of second point
76 * @y2: y value of second point
77 * @r: radius of virtual trackball, usually 0.8
78 *
79 * Emulate a virtual trackball movement and return rotation as quaternion.
80 * The x and y values of the starting and end point of the movement have
81 * to be in the range -1.0 .. 1.0.
82 *
83 * Returns: TRUE on success, FALSE else
84 */
85EAPI
86gboolean g3d_quat_trackball(G3DQuat *q, G3DFloat x1, G3DFloat y1,
87 G3DFloat x2, G3DFloat y2, G3DFloat r);
88
89/**
90 * g3d_quat_to_matrix:
91 * @q: source quat
92 * @matrix: resulting matrix
93 *
94 * Convert a quaternion to a transformation matrix.
95 *
96 * Returns: TRUE on success, FALSE else
97 */
98EAPI
99gboolean g3d_quat_to_matrix(G3DQuat *q, G3DMatrix *matrix);
100
101/**
102 * g3d_quat_to_rotation_xyz:
103 * @q: a quaternion
104 * @rx: rotation around x axis
105 * @ry: rotation around y axis
106 * @rz: rotation around z axis
107 *
108 * Calculate the rotation around the three coordinate axes from a given
109 * quaternion.
110 *
111 * Returns: TRUE on success, FALSE else
112 */
113EAPI
114gboolean g3d_quat_to_rotation_xyz(G3DQuat *q, G3DFloat *rx, G3DFloat *ry,
115 G3DFloat *rz);
116
117#endif /* _G3D_QUAT_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/include/g3d/read.h b/src/others/mimesh/libg3d-0.0.8/include/g3d/read.h
new file mode 100644
index 0000000..08211e3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/include/g3d/read.h
@@ -0,0 +1,156 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef __G3D_READ_H__
24#define __G3D_READ_H__
25
26#ifndef G3D_DISABLE_DEPRECATED
27
28#include <stdio.h>
29#include <glib.h>
30
31#ifdef __cplusplus
32extern "C" {
33#endif /* ifdef __cplusplus */
34
35/**
36 * SECTION:read
37 * @short_description: file reading abstraction (deprecated)
38 * @see_also: g3d_stream_open_file
39 * @include: g3d/read.h
40 *
41 * The g3d_read_* family of functions is deprecated in favour of the #G3DStream
42 * interface.
43 */
44
45
46/**
47 * g3d_read_int8:
48 * @f: the file to read from
49 *
50 * Read a 1 byte signed integer from file.
51 *
52 * Returns: The read value, 0 in case of error
53 */
54gint32 g3d_read_int8(FILE *f);
55
56/**
57 * g3d_read_int16_be:
58 * @f: the file to read from
59 *
60 * Read a 2 byte big-endian signed integer from file.
61 *
62 * Returns: The read value, 0 in case of error
63 */
64gint32 g3d_read_int16_be(FILE *f);
65
66/**
67 * g3d_read_int16_le:
68 * @f: the file to read from
69 *
70 * Read a 2 byte little-endian signed integer from file.
71 *
72 * Returns: The read value, 0 in case of error
73 */
74gint32 g3d_read_int16_le(FILE *f);
75
76/**
77 * g3d_read_int32_be:
78 * @f: the file to read from
79 *
80 * Read a 4 byte big-endian signed integer from file.
81 *
82 * Returns: The read value, 0 in case of error
83 */
84gint32 g3d_read_int32_be(FILE *f);
85
86/**
87 * g3d_read_int32_le:
88 * @f: the file to read from
89 *
90 * Read a 4 byte little-endian signed integer from file.
91 *
92 * Returns: The read value, 0 in case of error
93 */
94gint32 g3d_read_int32_le(FILE *f);
95
96/**
97 * g3d_read_float_be:
98 * @f: the file to read from
99 *
100 * Read a 4 byte big-endian floating point number from file.
101 *
102 * Returns: The read value, 0 in case of error
103 */
104G3DFloat g3d_read_float_be(FILE *f);
105
106/**
107 * g3d_read_float_le:
108 * @f: the file to read from
109 *
110 * Read a 4 byte little-endian floating point number from file.
111 *
112 * Returns: The read value, 0 in case of error
113 */
114G3DFloat g3d_read_float_le(FILE *f);
115
116/**
117 * g3d_read_double_be:
118 * @f: the file to read from
119 *
120 * Read a 8 byte big-endian double-precision floating point number from file.
121 *
122 * Returns: The read value, 0 in case of error
123 */
124G3DDouble g3d_read_double_be(FILE *f);
125
126/**
127 * g3d_read_double_le:
128 * @f: the file to read from
129 *
130 * Read a 8 byte little-endian double-precision floating point number from
131 * file.
132 *
133 * Returns: The read value, 0 in case of error
134 */
135G3DDouble g3d_read_double_le(FILE *f);
136
137/**
138 * g3d_read_cstr:
139 * @f: the file to read from
140 * @buffer: the buffer to store line in
141 * @max_len: maximum length of string including termination character
142 *
143 * Read a zero-terminated string from file.
144 *
145 * Returns: number of bytes read from file.
146 */
147gint32 g3d_read_cstr(FILE *f, gchar *buffer, gint32 max_len);
148
149#ifdef __cplusplus
150}
151#endif /* ifdef __cplusplus */
152
153#endif /* G3D_DISABLE_DEPRECATED */
154
155#endif /* __G3D_READ_H__ */
156
diff --git a/src/others/mimesh/libg3d-0.0.8/include/g3d/stream.h b/src/others/mimesh/libg3d-0.0.8/include/g3d/stream.h
new file mode 100644
index 0000000..f3f9630
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/include/g3d/stream.h
@@ -0,0 +1,541 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef _G3D_STREAM_H
24#define _G3D_STREAM_H
25
26#include <glib.h>
27#include <g3d/types.h>
28
29#ifdef __cplusplus
30extern "C" {
31#endif /* ifdef __cplusplus */
32
33/**
34 * SECTION:stream
35 * @short_description: I/O abstraction layer for plugins
36 * @see_also: #G3DStream
37 * @include: g3d/stream.h
38 *
39 * A stream is an abstraction for data input. It enables plugins to read
40 * data from a file, a memory buffer, a container file or some other medium.
41 */
42
43enum {
44 /* shift offsets */
45 G3D_STREAM_SEEKABLE = 0x00,
46 G3D_STREAM_READABLE = 0x01,
47 G3D_STREAM_WRITABLE = 0x02
48};
49
50/**
51 * G3DStreamReadFunc:
52 * @ptr: buffer to read bytes into
53 * @size: number of bytes to read
54 * @data: opaque stream data
55 *
56 * Callback function for g3d_stream_read().
57 *
58 * Returns: number of bytes actually read.
59 */
60typedef gsize (* G3DStreamReadFunc)(gpointer ptr, gsize size, gpointer data);
61
62/**
63 * G3DStreamReadLineFunc:
64 * @buf: buffer to read bytes into
65 * @size: maximum size of buffer
66 * @data: opaque stream data
67 *
68 * Callback function for g3d_stream_read_line().
69 *
70 * Returns: The line buffer or NULL in case of an error.
71 */
72typedef gchar *(* G3DStreamReadLineFunc)(gchar *buf, gsize size,
73 gpointer data);
74
75/**
76 * G3DStreamSeekFunc:
77 * @data: opaque stream data
78 * @offset: seek offset
79 * @whence: seek type
80 *
81 * Callback function for g3d_stream_seek().
82 *
83 * Returns: 0 on success, -1 else.
84 */
85typedef gint (*G3DStreamSeekFunc)(gpointer data, goffset offset,
86 GSeekType whence);
87
88/**
89 * G3DStreamTellFunc:
90 * @data: opaque stream data
91 *
92 * Callback function for g3d_stream_tell().
93 *
94 * Returns: current stream position.
95 */
96typedef goffset (*G3DStreamTellFunc)(gpointer data);
97
98/**
99 * G3DStreamSizeFunc:
100 * @data: opaque stream data
101 *
102 * Callback function for g3d_stream_size().
103 *
104 * Returns: size of stream.
105 */
106typedef goffset (*G3DStreamSizeFunc)(gpointer data);
107
108/**
109 * G3DStreamEofFunc:
110 * @data: opaque stream data
111 *
112 * Callback function for g3d_stream_eof().
113 *
114 * Returns: TRUE on stream end-of-file, FALSE else.
115 */
116typedef gboolean (*G3DStreamEofFunc)(gpointer data);
117
118/**
119 * G3DStreamCloseFunc:
120 * @data: opaque stream data
121 *
122 * Callback function for g3d_stream_close().
123 *
124 * Returns: 0 on success, -1 else.
125 */
126typedef gint (*G3DStreamCloseFunc)(gpointer data);
127
128/**
129 * G3DStream:
130 *
131 * An abstraction of input handling.
132 */
133struct _G3DStream {
134 /*< private >*/
135 guint32 flags;
136 gchar *uri;
137 G3DStreamReadFunc read;
138 G3DStreamReadLineFunc readline;
139 G3DStreamSeekFunc seek;
140 G3DStreamTellFunc tell;
141 G3DStreamSizeFunc size;
142 G3DStreamEofFunc eof;
143 G3DStreamCloseFunc close;
144 gpointer data;
145 guint32 linecount;
146 struct _G3DStream *zip_container;
147};
148
149/* public interface */
150
151/**
152 * g3d_stream_is_seekable:
153 * @stream: the stream
154 *
155 * Get information whether it is possible to seek in a stream.
156 *
157 * Returns: TRUE if seekable, FALSE else
158 */
159EAPI
160gboolean g3d_stream_is_seekable(G3DStream *stream);
161
162/**
163 * g3d_stream_get_uri:
164 * @stream: the stream
165 *
166 * Get the URI of a stream
167 *
168 * Returns: a non-NULL, zero-terminated string containing the URI of the
169 * string. This return value should not be freed.
170 */
171EAPI
172gchar *g3d_stream_get_uri(G3DStream *stream);
173
174/**
175 * g3d_stream_read_int8:
176 * @stream: the stream to read from
177 *
178 * Read a 1 byte signed integer from file.
179 *
180 * Returns: The read value, 0 in case of error
181 */
182EAPI
183gint32 g3d_stream_read_int8(G3DStream *stream);
184
185/**
186 * g3d_stream_read_int16_be:
187 * @stream: the stream to read from
188 *
189 * Read a 2 byte big-endian signed integer from file.
190 *
191 * Returns: The read value, 0 in case of error
192 */
193EAPI
194gint32 g3d_stream_read_int16_be(G3DStream *stream);
195
196/**
197 * g3d_stream_read_int16_le:
198 * @stream: the stream to read from
199 *
200 * Read a 2 byte little-endian signed integer from file.
201 *
202 * Returns: The read value, 0 in case of error
203 */
204EAPI
205gint32 g3d_stream_read_int16_le(G3DStream *stream);
206
207/**
208 * g3d_stream_read_int32_be:
209 * @stream: the stream to read from
210 *
211 * Read a 4 byte big-endian signed integer from file.
212 *
213 * Returns: The read value, 0 in case of error
214 */
215EAPI
216gint32 g3d_stream_read_int32_be(G3DStream *stream);
217
218/**
219 * g3d_stream_read_int32_le:
220 * @stream: the stream to read from
221 *
222 * Read a 4 byte little-endian signed integer from file.
223 *
224 * Returns: The read value, 0 in case of error
225 */
226EAPI
227gint32 g3d_stream_read_int32_le(G3DStream *stream);
228
229/**
230 * g3d_stream_read_float_be:
231 * @stream: the stream to read from
232 *
233 * Read a 4 byte big-endian floating point number from file.
234 *
235 * Returns: The read value, 0 in case of error
236 */
237EAPI
238G3DFloat g3d_stream_read_float_be(G3DStream *stream);
239
240/**
241 * g3d_stream_read_float_le:
242 * @stream: the stream to read from
243 *
244 * Read a 4 byte little-endian floating point number from file.
245 *
246 * Returns: The read value, 0 in case of error
247 */
248EAPI
249G3DFloat g3d_stream_read_float_le(G3DStream *stream);
250
251/**
252 * g3d_stream_read_double_be:
253 * @stream: the stream to read from
254 *
255 * Read a 8 byte big-endian double-precision floating point number from file.
256 *
257 * Returns: The read value, 0 in case of error
258 */
259EAPI
260G3DDouble g3d_stream_read_double_be(G3DStream *stream);
261
262/**
263 * g3d_stream_read_double_le:
264 * @stream: the stream to read from
265 *
266 * Read a 8 byte little-endian double-precision floating point number from
267 * file.
268 *
269 * Returns: The read value, 0 in case of error
270 */
271EAPI
272G3DDouble g3d_stream_read_double_le(G3DStream *stream);
273
274/**
275 * g3d_stream_read_cstr:
276 * @stream: the stream to read from
277 * @buffer: the buffer to fill
278 * @max_len: maximum number to read from stream
279 *
280 * Read a string (terminated by '\0') from stream
281 *
282 * Returns: number of bytes read from stream
283 */
284EAPI
285gint32 g3d_stream_read_cstr(G3DStream *stream, gchar *buffer, gint32 max_len);
286
287/**
288 * g3d_stream_read:
289 * @stream: the stream to read from
290 * @ptr: pointer to memory storage
291 * @size: number of bytes to read
292 *
293 * Reads a number of bytes from the stream.
294 *
295 * Returns: number of bytes successfully read.
296 */
297EAPI
298gsize g3d_stream_read(G3DStream *stream, gpointer ptr, gsize size);
299
300/**
301 * g3d_stream_read_line:
302 * @stream: stream to read a line from
303 * @buf: an allocated buffer to be filled
304 * @size: maximum length of line including terminating zero
305 *
306 * Read a line (terminated by a newline character or end of file) from a
307 * stream.
308 *
309 * Returns: the read line or NULL in case of an error.
310 */
311EAPI
312gchar *g3d_stream_read_line(G3DStream *stream, gchar *buf, gsize size);
313
314/**
315 * g3d_stream_skip:
316 * @stream: stream to skip bytes from
317 * @offset: number of bytes to skip
318 *
319 * Skip a number of bytes (>= 0) in stream even if it does not support
320 * seeking.
321 *
322 * Returns: 0 on success, -1 else
323 */
324EAPI
325gint g3d_stream_skip(G3DStream *stream, goffset offset);
326
327/**
328 * g3d_stream_seek:
329 * @stream: stream to seek in
330 * @offset: number of bytes to seek
331 * @whence: seek type
332 *
333 * Moves around the current position in the stream.
334 *
335 * Returns: 0 on success, -1 else
336 */
337EAPI
338gint g3d_stream_seek(G3DStream *stream, goffset offset, GSeekType whence);
339
340/**
341 * g3d_stream_tell:
342 * @stream: stream to get position from
343 *
344 * Tells the current position in the stream.
345 *
346 * Returns: current stream position
347 */
348EAPI
349goffset g3d_stream_tell(G3DStream *stream);
350
351/**
352 * g3d_stream_line:
353 * @stream: stream to get line from
354 *
355 * Get the current line number from stream. This only works if line are
356 * consequently read with g3d_stream_read_line(), so it's only applicable
357 * for text streams.
358 *
359 * Returns: current line number, may be 0
360 */
361EAPI
362guint32 g3d_stream_line(G3DStream *stream);
363
364/**
365 * g3d_stream_size:
366 * @stream: stream to get size from
367 *
368 * Get the size in bytes of a stream.
369 *
370 * Returns: size of stream in bytes
371 */
372EAPI
373goffset g3d_stream_size(G3DStream *stream);
374
375/**
376 * g3d_stream_eof:
377 * @stream: the stream
378 *
379 * Checks whether the stream has reached its end.
380 *
381 * Returns: TRUE if no more data can be read, FALSE else.
382 */
383EAPI
384gboolean g3d_stream_eof(G3DStream *stream);
385
386/**
387 * g3d_stream_close:
388 * @stream: the stream
389 *
390 * Closes an open stream.
391 *
392 * Returns: 0 on success.
393 */
394EAPI
395gint g3d_stream_close(G3DStream *stream);
396
397/**
398 * g3d_stream_new_custom:
399 * @flags: stream capability flags
400 * @uri: URI of new stream, must not be NULL
401 * @readfunc: read callback function
402 * @readlinefunc: read line callback function, may be NULL in which case
403 * line reading is emulated with g3d_stream_read()
404 * @seekfunc: seek callback function
405 * @tellfunc: tell callback function
406 * @sizefunc: size callback function
407 * @eoffunc: end-of-file callback function
408 * @closefunc: close callback function
409 * @data: opaque data for all callback functions
410 * @zip_container: original zip container
411 *
412 * Creates a new #G3DStream with custom callback functions.
413 *
414 * Returns: a newly allocated #G3DStream or NULL in case of an error.
415 */
416EAPI
417G3DStream *g3d_stream_new_custom(guint32 flags, const gchar *uri,
418 G3DStreamReadFunc readfunc, G3DStreamReadLineFunc readlinefunc,
419 G3DStreamSeekFunc seekfunc, G3DStreamTellFunc tellfunc,
420 G3DStreamSizeFunc sizefunc,
421 G3DStreamEofFunc eoffunc, G3DStreamCloseFunc closefunc, gpointer data,
422 G3DStream *zip_container);
423
424/**
425 * g3d_stream_open_file:
426 * @filename: the name of the file to open
427 * @mode: the mode to open the file, as given to fopen()
428 *
429 * Opens a file with the C stdio routines.
430 *
431 * Returns: a newly allocated #G3DStream or NULL in case of an error.
432 */
433EAPI
434G3DStream *g3d_stream_open_file(const gchar *filename, const gchar *mode);
435
436/**
437 * g3d_stream_from_buffer:
438 * @buffer: memory buffer to use
439 * @size: size of buffer
440 * @title: optional title of stream, may be NULL
441 * @free_buffer: whether to free the memory with g_free() on g3d_stream_close()
442 *
443 * Use a buffer in memory as #G3DStream.
444 *
445 * Returns: a newly allocated #G3DStream or NULL in case of an error.
446 */
447EAPI
448G3DStream *g3d_stream_from_buffer(guint8 *buffer, gsize size,
449 const gchar *title, gboolean free_buffer);
450
451#ifdef HAVE_ZLIB
452
453/**
454 * g3d_stream_zlib_inflate_stream:
455 * @stream: a parent stream
456 * @cmp_size: the compressed size of the deflated part
457 *
458 * Opens a new stream to decompress zlib-deflated parts of a stream.
459 *
460 * Returns: a newly allocated #G3DStream or NULL in case of an error
461 */
462EAPI
463G3DStream *g3d_stream_zlib_inflate_stream(G3DStream *stream, gsize cmp_size);
464
465#endif /* HAVE_ZLIB */
466
467#ifdef HAVE_LIBGSF
468
469/**
470 * g3d_stream_open_gzip_from_stream:
471 * @stream: stream to read from
472 *
473 * Reads data from a gzip-compressed stream.
474 *
475 * Returns: a newly allocated #G3DStream or NULL in case of an error.
476 */
477EAPI
478G3DStream *g3d_stream_open_gzip_from_stream(G3DStream *stream);
479
480/**
481 * g3d_stream_open_structured_file:
482 * @filename: name of container file
483 * @subfile: name of (contained) sub-file
484 *
485 * Open a file within a Structured File as #G3DStream.
486 *
487 * Returns: a newly allocated #G3DStream or NULL in case of an error.
488 */
489EAPI
490G3DStream *g3d_stream_open_structured_file(const gchar *filename,
491 const gchar *subfile);
492
493/**
494 * g3d_stream_open_structured_file_from_stream:
495 * @stream: stream of container file
496 * @subfile: name of (contained) sub-file
497 *
498 * Open a file within a Structured File which is opened as a stream. At the
499 * moment this only works for streams opened by g3d_stream_open_file() as
500 * the file is directly opened again.
501 *
502 * Returns: a newly allocated #G3DStream or NULL in case of an error.
503 */
504EAPI
505G3DStream *g3d_stream_open_structured_file_from_stream(G3DStream *stream,
506 const gchar *subfile);
507
508/**
509 * g3d_stream_open_zip:
510 * @filename: name of container file
511 * @subfile: name of (contained) sub-file
512 *
513 * Open a file within a Zip archive.
514 *
515 * Returns: a newly allocated #G3DStream or NULL in case of an error.
516 */
517EAPI
518G3DStream *g3d_stream_open_zip(const gchar *filename, const gchar *subfile);
519
520/**
521 * g3d_stream_open_zip_from_stream:
522 * @stream: stream of container file
523 * @subfile: name of (contained) sub-file
524 *
525 * Open a file within a Zip archive which is opened as a stream. At the
526 * moment this only works for streams opened by g3d_stream_open_file() as
527 * the file is directly opened again.
528 *
529 * Returns: a newly allocated #G3DStream or NULL in case of an error.
530 */
531EAPI
532G3DStream *g3d_stream_open_zip_from_stream(G3DStream *stream,
533 const gchar *subfile);
534#endif
535
536#ifdef __cplusplus
537}
538#endif /* ifdef __cplusplus */
539
540#endif /* _G3D_STREAM_H */
541
diff --git a/src/others/mimesh/libg3d-0.0.8/include/g3d/texture.h b/src/others/mimesh/libg3d-0.0.8/include/g3d/texture.h
new file mode 100644
index 0000000..f5643a8
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/include/g3d/texture.h
@@ -0,0 +1,123 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef __G3D_TEXTURE_H__
24#define __G3D_TEXTURE_H__
25
26#include <g3d/types.h>
27
28#ifdef __cplusplus
29extern "C" {
30#endif /* ifdef __cplusplus */
31
32/**
33 * SECTION:texture
34 * @short_description: Texture loading and manipulation
35 * @include: g3d/texture.h
36 *
37 * A texture is an image used in materials. Here are some helper functions,
38 * mostly for cached loading of a #G3DImage.
39 */
40
41/**
42 * g3d_texture_load_from_stream:
43 * @context: a valid context
44 * @model: a valid model or NULL
45 * @stream: an open stream
46 *
47 * Load a texture image from a stream. The file type is determined by the
48 * extension of the stream URI, so it should be valid. If @model is not NULL
49 * the texture image is cached (or retrieved from cache if available).
50 *
51 * Returns: the texture image or NULL in case of an error.
52 */
53EAPI
54G3DImage *g3d_texture_load_from_stream(G3DContext *context, G3DModel *model,
55 G3DStream *stream);
56
57/**
58 * g3d_texture_load_cached:
59 * @context: a valid context
60 * @model: a valid model
61 * @filename: the file name of the texture to load
62 *
63 * Loads a texture image from file and attaches it to a hash table in the
64 * model. On a second try to load this texture it is returned from cache.
65 *
66 * Returns: the texture image
67 */
68EAPI
69G3DImage *g3d_texture_load_cached(G3DContext *context, G3DModel *model,
70 const gchar *filename);
71
72/**
73 * g3d_texture_free:
74 * @texture: a texture image
75 *
76 * Frees all memory used by this texture image.
77 */
78EAPI
79void g3d_texture_free(G3DImage *texture);
80
81/**
82 * g3d_texture_prepare:
83 * @texture: a texture image
84 *
85 * Resizes the image to dimensions which are a power of 2 to be
86 * usable as an OpenGL texture.
87 * (FIXME: unimplemented)
88 *
89 * Returns: TRUE on success, FALSE else
90 */
91EAPI
92gboolean g3d_texture_prepare(G3DImage *texture);
93
94/**
95 * g3d_texture_flip_y:
96 * @texture: a texture image
97 *
98 * Mirror the image along the x axis - all y coordinates are inverted.
99 *
100 * Returns: TRUE on success, FALSE on error.
101 */
102EAPI
103gboolean g3d_texture_flip_y(G3DImage *texture);
104
105/**
106 * g3d_texture_merge_alpha:
107 * @image: a texture image or NULL
108 * @aimage: an image with alpha information
109 *
110 * Merges alpha information from @aimage into output image. If @image is NULL a
111 * new image is created, else @image is returned with alpha from @aimage.
112 *
113 * Returns: a texture image or NULL in case of an error.
114 */
115EAPI
116G3DImage *g3d_texture_merge_alpha(G3DImage *image, G3DImage *aimage);
117
118#ifdef __cplusplus
119}
120#endif /* ifdef __cplusplus */
121
122#endif /* __G3D_TEXTURE_H__ */
123
diff --git a/src/others/mimesh/libg3d-0.0.8/include/g3d/types.h b/src/others/mimesh/libg3d-0.0.8/include/g3d/types.h
new file mode 100644
index 0000000..a2403a0
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/include/g3d/types.h
@@ -0,0 +1,478 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef __G3D_TYPES_H__
24#define __G3D_TYPES_H__
25
26#include <GL/gl.h>
27
28#include <glib.h>
29
30#ifdef USE_LIBMAGIC
31#include <magic.h>
32#endif
33
34#ifdef EAPI
35# undef EAPI
36#endif /* ifdef EAPI */
37
38#ifdef _WIN32
39# ifdef EFL_EET_BUILD
40# ifdef DLL_EXPORT
41# define EAPI __declspec(dllexport)
42# else /* ifdef DLL_EXPORT */
43# define EAPI
44# endif /* ! DLL_EXPORT */
45# else /* ifdef EFL_EET_BUILD */
46# define EAPI __declspec(dllimport)
47# endif /* ! EFL_EET_BUILD */
48#else /* ifdef _WIN32 */
49# ifdef __GNUC__
50# if __GNUC__ >= 4
51# define EAPI __attribute__ ((visibility("default")))
52# else /* if __GNUC__ >= 4 */
53# define EAPI
54# endif /* if __GNUC__ >= 4 */
55# else /* ifdef __GNUC__ */
56# define EAPI
57# endif /* ifdef __GNUC__ */
58#endif /* ! _WIN32 */
59
60
61#ifdef __cplusplus
62extern "C" {
63#endif /* ifdef __cplusplus */
64
65/**
66 * SECTION:types
67 * @short_description: some defined types for libg3d
68 * @include: g3d/g3d.h
69 */
70/* goffset is defined since glib 2.14 */
71#ifndef G_MAXOFFSET
72typedef gint64 goffset;
73#endif
74
75/* supposed to trick gtk-doc not to ignore these functions - not really... */
76#define _G3D_STATIC_INLINE static inline
77
78/*****************************************************************************
79 * basic types
80 *****************************************************************************/
81
82/**
83 * SECTION:types
84 * @short_description: Basic types
85 * @include: g3d/types.h
86 *
87 * Some basic type abstractions used in libg3d.
88 */
89
90/**
91 * G3DFloat:
92 *
93 * Default floating point type. If used consistently in the library (not the
94 * case at the moment) this type can be switched between single and double
95 * precision at compile-time.
96 */
97/**
98 * G3D_FLOAT_IS_DOUBLE
99 *
100 * A flag indicating type of #G3DFloat. It is TRUE if #G3DFloat is double and
101 * FALSE if #G3DFloat is single precision.
102 */
103#if 1
104#define G3D_FLOAT_IS_DOUBLE TRUE
105#define G3D_SCANF_FLOAT "%lf"
106typedef gdouble G3DFloat;
107#else
108#define G3D_FLOAT_IS_DOUBLE FALSE
109#define G3D_SCANF_FLOAT "%f"
110typedef gfloat G3DFloat;
111#endif
112/**
113 * G3DSingle:
114 *
115 * Single-precision floating point number.
116 */
117typedef gfloat G3DSingle;
118/**
119 * G3DDouble:
120 *
121 * Double-precision floating point number.
122 */
123typedef gdouble G3DDouble;
124/**
125 * G3DVector
126 *
127 * Vector element type.
128 */
129typedef G3DFloat G3DVector;
130/**
131 * G3DMatrix:
132 *
133 * Matrix element type.
134 */
135typedef G3DFloat G3DMatrix;
136/**
137 * G3DQuat
138 *
139 * Quaternion element type.
140 */
141typedef G3DFloat G3DQuat;
142
143/*****************************************************************************
144 * G3DImage
145 *****************************************************************************/
146
147/**
148 * G3D_FLAG_IMG_GREYSCALE:
149 *
150 * The image just uses the red channel for grey value
151 */
152#define G3D_FLAG_IMG_GREYSCALE (1L << 1)
153
154/**
155 * G3DTexEnv:
156 * @G3D_TEXENV_UNSPECIFIED: unspecified, application decides
157 * @G3D_TEXENV_BLEND: use blending
158 * @G3D_TEXENV_DECAL: use as decal
159 * @G3D_TEXENV_MODULATE: use modulate
160 * @G3D_TEXENV_REPLACE: replace color
161 *
162 * Specify how the texture should interact with other material properties.
163 */
164typedef enum {
165 G3D_TEXENV_UNSPECIFIED = 0,
166 G3D_TEXENV_BLEND,
167 G3D_TEXENV_DECAL,
168 G3D_TEXENV_MODULATE,
169 G3D_TEXENV_REPLACE
170} G3DTexEnv;
171
172/**
173 * G3DImage:
174 * @name: name of image
175 * @width: width of image in pixels
176 * @height: height of image in pixels
177 * @depth: depth of image in bits
178 * @flags: flags
179 * @pixeldata: the binary image data
180 * @tex_id: the OpenGL texture id, should be unique model-wide
181 * @tex_env: texture environment flags
182 * @tex_scale_u: factor scaling texture width, should be 1.0 for most cases
183 * @tex_scale_v: factor scaling texture height, should be 1.0 for most cases
184 *
185 * Object containing a two-dimensional pixel image.
186 */
187typedef struct {
188 gchar *name;
189 guint32 width;
190 guint32 height;
191 guint8 depth;
192 guint32 flags;
193 guint8 *pixeldata;
194
195 guint32 tex_id;
196 G3DTexEnv tex_env;
197 G3DFloat tex_scale_u;
198 G3DFloat tex_scale_v;
199} G3DImage;
200
201/*****************************************************************************
202 * G3DMaterial
203 *****************************************************************************/
204
205/**
206 * G3D_FLAG_MAT_TWOSIDE:
207 *
208 * Faces using this material should be rendered two-sided as the direction
209 * is unknown.
210 */
211#define G3D_FLAG_MAT_TWOSIDE (1L << 0)
212
213/**
214 * G3DMaterial:
215 * @name: name of material
216 * @r: red component of color
217 * @g: green component of color
218 * @b: blue component of color
219 * @a: alpha component of color
220 * @shininess: shiny color
221 * @specular: specular color
222 * @flags: flags
223 * @tex_image: texture image (optional, may be NULL)
224 *
225 * A material object.
226 */
227
228typedef struct {
229 gchar *name;
230 G3DFloat r, g, b, a;
231 GLfloat shininess;
232 GLfloat specular[4];
233 guint32 flags;
234
235 G3DImage *tex_image;
236} G3DMaterial;
237
238/*****************************************************************************
239 * G3DFace
240 *****************************************************************************/
241
242/**
243 * G3D_FLAG_FAC_NORMALS:
244 *
245 * The face has custom normals.
246 */
247#define G3D_FLAG_FAC_NORMALS (1L << 0)
248/**
249 * G3D_FLAG_FAC_TEXMAP:
250 *
251 * The face has a texture map and texture coordinates.
252 */
253#define G3D_FLAG_FAC_TEXMAP (1L << 1)
254
255/**
256 * G3DFace:
257 * @vertex_count: number of vertices
258 * @vertex_indices: indices of vertices in #G3DObject
259 * @material: material to use for surface
260 * @flags: flags
261 * @normals: optional normal array (one vector - 3 #G3DVector values - for each
262 * vertex)
263 * @tex_image: optional texture image
264 * @tex_vertex_count: number of texture vertices, should be 0 or match
265 * vertex_count
266 * @tex_vertex_data: array of texture vertices
267 *
268 * An object representing a surface.
269 */
270typedef struct {
271 guint32 vertex_count;
272 guint32 *vertex_indices;
273
274 G3DMaterial *material;
275
276 guint32 flags;
277
278 G3DVector *normals;
279
280 G3DImage *tex_image;
281 guint32 tex_vertex_count;
282 G3DVector *tex_vertex_data;
283} G3DFace;
284
285/*****************************************************************************
286 * G3DTransformation
287 *****************************************************************************/
288
289/**
290 * G3DTransformation:
291 * @matrix: the transformation matrix
292 * @flags: flags
293 *
294 * A three-dimensional matrix transformation object.
295 */
296typedef struct {
297 G3DMatrix matrix[16];
298 guint32 flags;
299} G3DTransformation;
300
301
302/*****************************************************************************
303 * G3DObject
304 *****************************************************************************/
305
306/**
307 * G3DObject:
308 * @name: name of object
309 * @materials: list of materials
310 * @faces: list of faces
311 * @objects: list of sub-objects
312 * @transformation: optional transformation
313 * @hide: flag to disable object rendering
314 * @vertex_count: number of vertices
315 * @vertex_data: vertex vector data
316 *
317 * A three-dimensional object.
318 */
319typedef struct {
320 gchar *name;
321
322 GSList *materials;
323 GSList *faces;
324 GSList *objects;
325
326 /* transformation, may be NULL */
327 G3DTransformation *transformation;
328
329 /* don't render this object */
330 gboolean hide;
331
332 /* vertices */
333 guint32 vertex_count;
334 G3DVector *vertex_data;
335
336 /*< private >*/
337 /* FIXME: texture stuff: temporary storage, should be in G3DFace items */
338 guint32 tex_vertex_count;
339 G3DVector *tex_vertex_data;
340 G3DImage *tex_image;
341
342 /*< private >*/
343 /* some fields to speed up rendering, should not be used by plugins */
344 /* FIXME: remove from API (replace with user_data pointer?) */
345 G3DVector *_normals;
346 G3DMaterial **_materials;
347 guint32 _num_faces;
348 guint32 *_indices;
349 guint32 *_flags;
350 guint32 *_tex_images;
351 G3DVector *_tex_coords;
352} G3DObject;
353
354/*****************************************************************************
355 * G3DContext
356 *****************************************************************************/
357
358/**
359 * G3DSetBgColorFunc:
360 * @r: red component
361 * @g: green component
362 * @b: blue component
363 * @a: alpha component
364 * @user_data: opaque data as given to g3d_context_set_set_bgcolor_func()
365 *
366 * Background color setting callback.
367 *
368 * Returns: TRUE on success, FALSE else.
369 */
370typedef gboolean (* G3DSetBgColorFunc)(G3DFloat r, G3DFloat g, G3DFloat b,
371 G3DFloat a, gpointer user_data);
372
373/**
374 * G3DUpdateInterfaceFunc:
375 * @user_data: opaque data as given to g3d_context_set_update_interface_func()
376 *
377 * Interface updating callback.
378 *
379 * Returns: TRUE on success, FALSE else.
380 */
381typedef gboolean (* G3DUpdateInterfaceFunc)(gpointer user_data);
382
383/**
384 * G3DUpdateProgressBarFunc:
385 * @percentage: progress of plugin operation
386 * @show: #TRUE if the progress bar should be visible, #FALSE else
387 * @user_data: opaque data as given to
388 * g3d_context_set_update_progress_bar_func()
389 *
390 * Progress updating callback.
391 *
392 * Returns: TRUE on success, FALSE else.
393 */
394typedef gboolean (* G3DUpdateProgressBarFunc)(G3DFloat percentage,
395 gboolean show, gpointer user_data);
396
397/*< private >*/
398#ifdef USE_LIBMAGIC
399#define MAGIC_PTR_TYPE magic_t
400#else
401#define MAGIC_PTR_TYPE void *
402#endif
403/*< public >*/
404
405/**
406 * G3DContext:
407 *
408 * Internal stuff for libg3d.
409 */
410typedef struct {
411 /*< private >*/
412 GSList *plugins;
413 MAGIC_PTR_TYPE magic_cookie;
414
415 GHashTable *exts_import;
416 GHashTable *exts_image;
417
418 G3DSetBgColorFunc set_bgcolor_func;
419 gpointer set_bgcolor_data;
420 G3DUpdateInterfaceFunc update_interface_func;
421 gpointer update_interface_data;
422 G3DUpdateProgressBarFunc update_progress_bar_func;
423 gpointer update_progress_bar_data;
424
425 GHashTable *modelCache;
426} G3DContext;
427
428/*****************************************************************************
429 * G3DPlugin: real definition in g3d/plugins.h
430 *****************************************************************************/
431
432typedef struct _G3DPlugin G3DPlugin;
433
434/*****************************************************************************
435 * G3DStream
436 *****************************************************************************/
437
438/* declared in stream.h */
439typedef struct _G3DStream G3DStream;
440
441/*****************************************************************************
442 * G3DModel
443 *****************************************************************************/
444
445/**
446 * G3DModel:
447 * @filename: file name or URI of loaded model, may be set by application
448 * @materials: list of materials (#G3DMaterial)
449 * @objects: list of objects (#G3DObject)
450 *
451 * A 3D model.
452 */
453typedef struct {
454 gchar *filename;
455 /*< private >*/
456 G3DContext *context;
457
458 /*< public >*/
459 GSList *materials;
460 GSList *objects;
461
462 /*< private >*/
463 GHashTable *tex_images;
464
465 /* the plugin used to load the model, may be NULL */
466 G3DPlugin *plugin;
467 /* The stream used to load the model, may be NULL */
468 G3DStream *stream;
469
470 int refCount;
471} G3DModel;
472
473#ifdef __cplusplus
474}
475#endif /* ifdef __cplusplus */
476
477#endif /* __G3D_TYPES_H__ */
478
diff --git a/src/others/mimesh/libg3d-0.0.8/include/g3d/vector.h b/src/others/mimesh/libg3d-0.0.8/include/g3d/vector.h
new file mode 100644
index 0000000..aeb838c
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/include/g3d/vector.h
@@ -0,0 +1,125 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef __G3D_VECTOR_H__
24#define __G3D_VECTOR_H__
25
26#include <g3d/types.h>
27
28#ifdef __cplusplus
29extern "C" {
30#endif /* ifdef __cplusplus */
31
32/**
33 * SECTION:vector
34 * @short_description: Vector manipulation and calculation
35 * @include: g3d/vector.h
36 *
37 * A vector is a one-dimensional array of floating point data.
38 *
39 * Declare it as statically as:
40 *
41 * G3DVector vector[3];
42 *
43 * or allocate it dynamically with:
44 *
45 * G3DVector *vector = g3d_vector_new(3, 1);
46 */
47
48/**
49 * g3d_vector_new:
50 * @size: number of items in one vector
51 * @n: number of vectors to allocate
52 *
53 * Allocate memory for a number of vectors.
54 *
55 * Returns: newly allocated vectors
56 */
57_G3D_STATIC_INLINE G3DVector *g3d_vector_new(guint32 size, guint32 n) {
58 return g_new0(G3DVector, size * n);
59}
60
61/**
62 * g3d_vector_free:
63 * @vector: vector to free
64 *
65 * Free memory allocated for vector.
66 */
67_G3D_STATIC_INLINE void g3d_vector_free(G3DVector *vector) {
68 g_free(vector);
69}
70
71/**
72 * g3d_vector_normal:
73 * @ax: x component first vector
74 * @ay: y component first vector
75 * @az: z component first vector
76 * @bx: x component second vector
77 * @by: y component second vector
78 * @bz: z component second vector
79 * @nx: x component resulting normal
80 * @ny: y component resulting normal
81 * @nz: z component resulting normal
82 *
83 * calculate the normal from a plane defined by two vectors
84 *
85 * Returns: TRUE on success, FALSE else
86 */
87EAPI
88gboolean g3d_vector_normal(G3DFloat ax, G3DFloat ay, G3DFloat az,
89 G3DFloat bx, G3DFloat by, G3DFloat bz,
90 G3DFloat *nx, G3DFloat *ny, G3DFloat *nz);
91
92/**
93 * g3d_vector_unify:
94 * @nx: x component of vector
95 * @ny: y component of vector
96 * @nz: z component of vector
97 *
98 * Transforms the given vector to the unit vector.
99 *
100 * Returns: TRUE on success, FALSE else
101 */
102EAPI
103gboolean g3d_vector_unify(G3DFloat *nx, G3DFloat *ny, G3DFloat *nz);
104
105/**
106 * g3d_vector_transform:
107 * @x: x component of vector
108 * @y: y component of vector
109 * @z: z component of vector
110 * @matrix: transformation matrix (4x4)
111 *
112 * Transforms the given vector corresponding to the given matrix
113 *
114 * Returns: TRUE on success, FALSE else
115 */
116EAPI
117gboolean g3d_vector_transform(G3DFloat *x, G3DFloat *y, G3DFloat *z,
118 G3DMatrix *matrix);
119
120#ifdef __cplusplus
121}
122#endif /* ifdef __cplusplus */
123
124#endif /* __G3D_VECTOR_H__ */
125
diff --git a/src/others/mimesh/libg3d-0.0.8/libg3d.magic b/src/others/mimesh/libg3d-0.0.8/libg3d.magic
new file mode 100644
index 0000000..b264bdc
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/libg3d.magic
@@ -0,0 +1,85 @@
1# $Id$
2
3# 3D Studio
40 leshort 0x4d4d 3ds
5
6# 3D Metafiles
70 string 3DMF 3dmf
8
9# AC3D
100 string AC3D ac
11
12# ASE
130 string *3DSMAX_ASCIIEXPORT ase
14
15# Blender
160 string BLENDER blend
17
18# Caligari Truespace
190 string Caligari cob
20
21# Cinema 4D
220 string C4D c4d
231 string C50 c4d
24
25# DXF (FIXME: some files are not detected)
260 search/20 0\nSECTION dxf
270 search/20 0\r\nSECTION dxf
28
29# IFF (Interchange File Format)
300 string FORM
31>8 string TDDD iob
32>8 string LWOB lwo
33>8 string LWO2 lwo
34>8 string REFL r4
35
360 string FOR4
37>8 string Maya maya
38
39# LDraw
400 string 0\ FILE\ ldraw
410 string 0\ Name\ ldraw
42
43# LeoCAD
440 string LeoCAD leocad
45
46# MD2 / VDrift
470 string IDP2
48>4 lelong 0x03 joe
49>4 lelong 0x08 md2
50
51# MD3
520 string IDP3 md3
53
54# Neutral File Format (FIXME: text based without a real magic...)
55
56# OpenFlight
570 beshort 0x0001
58>16 belong <15 flt
59>16 belong >1419 flt
60
61# Quick3D
620 string quick3D q3o
63
64# Racer
650 string AR01 racer
660 string DOF1 racer
67
68# Ultimate Stunts
690 string \000GLB glb
70
71# VRML
720 string/b #VRML\ V1.0\ ascii vrml
730 string/b #VRML\ V2.0\ utf8 vrml2
74
75# XML
760 string \<?xml\ version="
77>20 search/1000/cb \<osm osm
78>20 search/1000/cb \<kml kmz
79>20 search/1000/cb \<COLLADA dae
80
81# Zip
820 string PK
83>16 search/100 doc.kml kmz
84
85# Wavefront Object (FIXME: text based without a real magic...)
diff --git a/src/others/mimesh/libg3d-0.0.8/libg3d.pc.in b/src/others/mimesh/libg3d-0.0.8/libg3d.pc.in
new file mode 100644
index 0000000..5c0205b
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/libg3d.pc.in
@@ -0,0 +1,12 @@
1prefix=@prefix@
2exec_prefix=@exec_prefix@
3libdir=@libdir@
4includedir=@includedir@
5
6Name: libg3d
7Version: @VERSION@
8Description: 3D object loading library
9Requires: glib-2.0
10Libs: -L${libdir} -lg3d
11Libs.private: -lm @MAGIC_LIBS@ @LIBGSF_LIBS@
12Cflags: -I${includedir}
diff --git a/src/others/mimesh/libg3d-0.0.8/m4/Makefile b/src/others/mimesh/libg3d-0.0.8/m4/Makefile
new file mode 100644
index 0000000..38b04a3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/m4/Makefile
@@ -0,0 +1,360 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# m4/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17pkgdatadir = $(datadir)/libg3d
18pkglibdir = $(libdir)/libg3d
19pkgincludedir = $(includedir)/libg3d
20am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
21install_sh_DATA = $(install_sh) -c -m 644
22install_sh_PROGRAM = $(install_sh) -c
23install_sh_SCRIPT = $(install_sh) -c
24INSTALL_HEADER = $(INSTALL_DATA)
25transform = $(program_transform_name)
26NORMAL_INSTALL = :
27PRE_INSTALL = :
28POST_INSTALL = :
29NORMAL_UNINSTALL = :
30PRE_UNINSTALL = :
31POST_UNINSTALL = :
32build_triplet = x86_64-unknown-linux-gnu
33host_triplet = x86_64-unknown-linux-gnu
34subdir = m4
35DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
36ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
37am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
38 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
39 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
40 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
41 $(top_srcdir)/configure.in
42am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43 $(ACLOCAL_M4)
44mkinstalldirs = $(install_sh) -d
45CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
46CONFIG_CLEAN_FILES =
47SOURCES =
48DIST_SOURCES =
49DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
50ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
51AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
52AR = ar
53AS = as
54AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
55AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
56AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
57AWK = gawk
58CC = gcc
59CCDEPMODE = depmode=gcc3
60CFLAGS = -g -O2
61CPP = gcc -E
62CPPFLAGS =
63CXX = g++
64CXXCPP = g++ -E
65CXXDEPMODE = depmode=gcc3
66CXXFLAGS = -g -O2
67CYGPATH_W = echo
68DBG_CFLAGS = -O2
69DEBUG = 0
70DEFS = -DHAVE_CONFIG_H
71DEPDIR = .deps
72DLLTOOL = dlltool
73ECHO = echo
74ECHO_C =
75ECHO_N = -n
76ECHO_T =
77EGREP = /bin/grep -E
78EXEEXT =
79F77 =
80FFLAGS =
81GDKPIXBUF_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
82GDKPIXBUF_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
83GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
84GLIB_GENMARSHAL = glib-genmarshal
85GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
86GLIB_MKENUMS = glib-mkenums
87GOBJECT_QUERY = gobject-query
88GREP = /bin/grep
89GTKDOC_CHECK = /usr/bin/gtkdoc-check
90GTK_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
91GTK_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
92HTML_DIR = ${datadir}/gtk-doc/html
93INSTALL = /usr/bin/install -c
94INSTALL_DATA = ${INSTALL} -m 644
95INSTALL_PROGRAM = ${INSTALL}
96INSTALL_SCRIPT = ${INSTALL}
97INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
98LDFLAGS =
99LEX = flex
100LEXLIB = -lfl
101LEX_OUTPUT_ROOT = lex.yy
102LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
103LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
104LIBOBJS =
105LIBS = -lm
106LIBTOOL = $(SHELL) $(top_builddir)/libtool
107LIBXML2_CFLAGS = -I/usr/include/libxml2
108LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
109LN_S = ln -s
110LTLIBOBJS =
111LTVERSION = 0:8:0
112MAGIC_LIBS = -lmagic
113MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
114MATH_LIBS = -lm
115MKDIR_P = /bin/mkdir -p
116OBJDUMP = objdump
117OBJEXT = o
118PACKAGE = libg3d
119PACKAGE_BUGREPORT =
120PACKAGE_NAME =
121PACKAGE_STRING =
122PACKAGE_TARNAME =
123PACKAGE_VERSION =
124PATH_SEPARATOR = :
125PKG_CONFIG = /usr/bin/pkg-config
126PLUGINS_LDFLAGS = -avoid-version -export-dynamic
127RANLIB = ranlib
128SET_MAKE =
129SHELL = /bin/bash
130STRIP = strip
131VERSION = 0.0.8
132XML2_CONFIG = /usr/bin/xml2-config
133XML_CPPFLAGS = -I/usr/include/libxml2
134XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
135Z_CFLAGS =
136Z_LIBS = -lz
137abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/m4
138abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/m4
139abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
140abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
141ac_ct_CC = gcc
142ac_ct_CXX = g++
143ac_ct_F77 =
144am__include = include
145am__leading_dot = .
146am__quote =
147am__tar = ${AMTAR} chof - "$$tardir"
148am__untar = ${AMTAR} xf -
149bindir = ${exec_prefix}/bin
150build = x86_64-unknown-linux-gnu
151build_alias =
152build_cpu = x86_64
153build_os = linux-gnu
154build_vendor = unknown
155builddir = .
156datadir = ${datarootdir}
157datarootdir = ${prefix}/share
158docdir = ${datarootdir}/doc/${PACKAGE}
159dvidir = ${docdir}
160exec_prefix = ${prefix}
161host = x86_64-unknown-linux-gnu
162host_alias =
163host_cpu = x86_64
164host_os = linux-gnu
165host_vendor = unknown
166htmldir = ${docdir}
167includedir = ${prefix}/include
168infodir = ${datarootdir}/info
169install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
170libdir = ${exec_prefix}/lib
171libexecdir = ${exec_prefix}/libexec
172localedir = ${datarootdir}/locale
173localstatedir = ${prefix}/var
174mandir = ${datarootdir}/man
175mkdir_p = /bin/mkdir -p
176oldincludedir = /usr/include
177pdfdir = ${docdir}
178prefix = /usr/local
179program_transform_name = s,x,x,
180psdir = ${docdir}
181sbindir = ${exec_prefix}/sbin
182sharedstatedir = ${prefix}/com
183srcdir = .
184sysconfdir = ${prefix}/etc
185target_alias =
186top_builddir = ..
187top_srcdir = ..
188EXTRA_DIST = \
189 acinclude.m4 \
190 glib-2.0.m4
191
192all: all-am
193
194.SUFFIXES:
195$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
196 @for dep in $?; do \
197 case '$(am__configure_deps)' in \
198 *$$dep*) \
199 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
200 && exit 0; \
201 exit 1;; \
202 esac; \
203 done; \
204 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu m4/Makefile'; \
205 cd $(top_srcdir) && \
206 $(AUTOMAKE) --gnu m4/Makefile
207.PRECIOUS: Makefile
208Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
209 @case '$?' in \
210 *config.status*) \
211 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
212 *) \
213 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
214 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
215 esac;
216
217$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
218 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
219
220$(top_srcdir)/configure: $(am__configure_deps)
221 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
222$(ACLOCAL_M4): $(am__aclocal_m4_deps)
223 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
224
225mostlyclean-libtool:
226 -rm -f *.lo
227
228clean-libtool:
229 -rm -rf .libs _libs
230tags: TAGS
231TAGS:
232
233ctags: CTAGS
234CTAGS:
235
236
237distdir: $(DISTFILES)
238 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
239 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
240 list='$(DISTFILES)'; \
241 dist_files=`for file in $$list; do echo $$file; done | \
242 sed -e "s|^$$srcdirstrip/||;t" \
243 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
244 case $$dist_files in \
245 */*) $(MKDIR_P) `echo "$$dist_files" | \
246 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
247 sort -u` ;; \
248 esac; \
249 for file in $$dist_files; do \
250 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
251 if test -d $$d/$$file; then \
252 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
253 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
254 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
255 fi; \
256 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
257 else \
258 test -f $(distdir)/$$file \
259 || cp -p $$d/$$file $(distdir)/$$file \
260 || exit 1; \
261 fi; \
262 done
263check-am: all-am
264check: check-am
265all-am: Makefile
266installdirs:
267install: install-am
268install-exec: install-exec-am
269install-data: install-data-am
270uninstall: uninstall-am
271
272install-am: all-am
273 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
274
275installcheck: installcheck-am
276install-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
281mostlyclean-generic:
282
283clean-generic:
284
285distclean-generic:
286 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
287
288maintainer-clean-generic:
289 @echo "This command is intended for maintainers to use"
290 @echo "it deletes files that may require special tools to rebuild."
291clean: clean-am
292
293clean-am: clean-generic clean-libtool mostlyclean-am
294
295distclean: distclean-am
296 -rm -f Makefile
297distclean-am: clean-am distclean-generic
298
299dvi: dvi-am
300
301dvi-am:
302
303html: html-am
304
305info: info-am
306
307info-am:
308
309install-data-am:
310
311install-dvi: install-dvi-am
312
313install-exec-am:
314
315install-html: install-html-am
316
317install-info: install-info-am
318
319install-man:
320
321install-pdf: install-pdf-am
322
323install-ps: install-ps-am
324
325installcheck-am:
326
327maintainer-clean: maintainer-clean-am
328 -rm -f Makefile
329maintainer-clean-am: distclean-am maintainer-clean-generic
330
331mostlyclean: mostlyclean-am
332
333mostlyclean-am: mostlyclean-generic mostlyclean-libtool
334
335pdf: pdf-am
336
337pdf-am:
338
339ps: ps-am
340
341ps-am:
342
343uninstall-am:
344
345.MAKE: install-am install-strip
346
347.PHONY: all all-am check check-am clean clean-generic clean-libtool \
348 distclean distclean-generic distclean-libtool distdir dvi \
349 dvi-am html html-am info info-am install install-am \
350 install-data install-data-am install-dvi install-dvi-am \
351 install-exec install-exec-am install-html install-html-am \
352 install-info install-info-am install-man install-pdf \
353 install-pdf-am install-ps install-ps-am install-strip \
354 installcheck installcheck-am installdirs maintainer-clean \
355 maintainer-clean-generic mostlyclean mostlyclean-generic \
356 mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
357
358# Tell versions [3.59,3.63) of GNU make to not export all variables.
359# Otherwise a system limit (for SysV at least) may be exceeded.
360.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/m4/Makefile.am b/src/others/mimesh/libg3d-0.0.8/m4/Makefile.am
new file mode 100644
index 0000000..f300cd5
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/m4/Makefile.am
@@ -0,0 +1,3 @@
1EXTRA_DIST = \
2 acinclude.m4 \
3 glib-2.0.m4
diff --git a/src/others/mimesh/libg3d-0.0.8/m4/Makefile.in b/src/others/mimesh/libg3d-0.0.8/m4/Makefile.in
new file mode 100644
index 0000000..f23f9f3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/m4/Makefile.in
@@ -0,0 +1,360 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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@
16VPATH = @srcdir@
17pkgdatadir = $(datadir)/@PACKAGE@
18pkglibdir = $(libdir)/@PACKAGE@
19pkgincludedir = $(includedir)/@PACKAGE@
20am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
21install_sh_DATA = $(install_sh) -c -m 644
22install_sh_PROGRAM = $(install_sh) -c
23install_sh_SCRIPT = $(install_sh) -c
24INSTALL_HEADER = $(INSTALL_DATA)
25transform = $(program_transform_name)
26NORMAL_INSTALL = :
27PRE_INSTALL = :
28POST_INSTALL = :
29NORMAL_UNINSTALL = :
30PRE_UNINSTALL = :
31POST_UNINSTALL = :
32build_triplet = @build@
33host_triplet = @host@
34subdir = m4
35DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
36ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
37am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
38 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
39 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
40 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
41 $(top_srcdir)/configure.in
42am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43 $(ACLOCAL_M4)
44mkinstalldirs = $(install_sh) -d
45CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
46CONFIG_CLEAN_FILES =
47SOURCES =
48DIST_SOURCES =
49DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
50ACLOCAL = @ACLOCAL@
51AMTAR = @AMTAR@
52AR = @AR@
53AS = @AS@
54AUTOCONF = @AUTOCONF@
55AUTOHEADER = @AUTOHEADER@
56AUTOMAKE = @AUTOMAKE@
57AWK = @AWK@
58CC = @CC@
59CCDEPMODE = @CCDEPMODE@
60CFLAGS = @CFLAGS@
61CPP = @CPP@
62CPPFLAGS = @CPPFLAGS@
63CXX = @CXX@
64CXXCPP = @CXXCPP@
65CXXDEPMODE = @CXXDEPMODE@
66CXXFLAGS = @CXXFLAGS@
67CYGPATH_W = @CYGPATH_W@
68DBG_CFLAGS = @DBG_CFLAGS@
69DEBUG = @DEBUG@
70DEFS = @DEFS@
71DEPDIR = @DEPDIR@
72DLLTOOL = @DLLTOOL@
73ECHO = @ECHO@
74ECHO_C = @ECHO_C@
75ECHO_N = @ECHO_N@
76ECHO_T = @ECHO_T@
77EGREP = @EGREP@
78EXEEXT = @EXEEXT@
79F77 = @F77@
80FFLAGS = @FFLAGS@
81GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
82GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
83GLIB_CFLAGS = @GLIB_CFLAGS@
84GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
85GLIB_LIBS = @GLIB_LIBS@
86GLIB_MKENUMS = @GLIB_MKENUMS@
87GOBJECT_QUERY = @GOBJECT_QUERY@
88GREP = @GREP@
89GTKDOC_CHECK = @GTKDOC_CHECK@
90GTK_CFLAGS = @GTK_CFLAGS@
91GTK_LIBS = @GTK_LIBS@
92HTML_DIR = @HTML_DIR@
93INSTALL = @INSTALL@
94INSTALL_DATA = @INSTALL_DATA@
95INSTALL_PROGRAM = @INSTALL_PROGRAM@
96INSTALL_SCRIPT = @INSTALL_SCRIPT@
97INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
98LDFLAGS = @LDFLAGS@
99LEX = @LEX@
100LEXLIB = @LEXLIB@
101LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
102LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
103LIBGSF_LIBS = @LIBGSF_LIBS@
104LIBOBJS = @LIBOBJS@
105LIBS = @LIBS@
106LIBTOOL = @LIBTOOL@
107LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
108LIBXML2_LIBS = @LIBXML2_LIBS@
109LN_S = @LN_S@
110LTLIBOBJS = @LTLIBOBJS@
111LTVERSION = @LTVERSION@
112MAGIC_LIBS = @MAGIC_LIBS@
113MAKEINFO = @MAKEINFO@
114MATH_LIBS = @MATH_LIBS@
115MKDIR_P = @MKDIR_P@
116OBJDUMP = @OBJDUMP@
117OBJEXT = @OBJEXT@
118PACKAGE = @PACKAGE@
119PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
120PACKAGE_NAME = @PACKAGE_NAME@
121PACKAGE_STRING = @PACKAGE_STRING@
122PACKAGE_TARNAME = @PACKAGE_TARNAME@
123PACKAGE_VERSION = @PACKAGE_VERSION@
124PATH_SEPARATOR = @PATH_SEPARATOR@
125PKG_CONFIG = @PKG_CONFIG@
126PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
127RANLIB = @RANLIB@
128SET_MAKE = @SET_MAKE@
129SHELL = @SHELL@
130STRIP = @STRIP@
131VERSION = @VERSION@
132XML2_CONFIG = @XML2_CONFIG@
133XML_CPPFLAGS = @XML_CPPFLAGS@
134XML_LIBS = @XML_LIBS@
135Z_CFLAGS = @Z_CFLAGS@
136Z_LIBS = @Z_LIBS@
137abs_builddir = @abs_builddir@
138abs_srcdir = @abs_srcdir@
139abs_top_builddir = @abs_top_builddir@
140abs_top_srcdir = @abs_top_srcdir@
141ac_ct_CC = @ac_ct_CC@
142ac_ct_CXX = @ac_ct_CXX@
143ac_ct_F77 = @ac_ct_F77@
144am__include = @am__include@
145am__leading_dot = @am__leading_dot@
146am__quote = @am__quote@
147am__tar = @am__tar@
148am__untar = @am__untar@
149bindir = @bindir@
150build = @build@
151build_alias = @build_alias@
152build_cpu = @build_cpu@
153build_os = @build_os@
154build_vendor = @build_vendor@
155builddir = @builddir@
156datadir = @datadir@
157datarootdir = @datarootdir@
158docdir = @docdir@
159dvidir = @dvidir@
160exec_prefix = @exec_prefix@
161host = @host@
162host_alias = @host_alias@
163host_cpu = @host_cpu@
164host_os = @host_os@
165host_vendor = @host_vendor@
166htmldir = @htmldir@
167includedir = @includedir@
168infodir = @infodir@
169install_sh = @install_sh@
170libdir = @libdir@
171libexecdir = @libexecdir@
172localedir = @localedir@
173localstatedir = @localstatedir@
174mandir = @mandir@
175mkdir_p = @mkdir_p@
176oldincludedir = @oldincludedir@
177pdfdir = @pdfdir@
178prefix = @prefix@
179program_transform_name = @program_transform_name@
180psdir = @psdir@
181sbindir = @sbindir@
182sharedstatedir = @sharedstatedir@
183srcdir = @srcdir@
184sysconfdir = @sysconfdir@
185target_alias = @target_alias@
186top_builddir = @top_builddir@
187top_srcdir = @top_srcdir@
188EXTRA_DIST = \
189 acinclude.m4 \
190 glib-2.0.m4
191
192all: all-am
193
194.SUFFIXES:
195$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
196 @for dep in $?; do \
197 case '$(am__configure_deps)' in \
198 *$$dep*) \
199 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
200 && exit 0; \
201 exit 1;; \
202 esac; \
203 done; \
204 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu m4/Makefile'; \
205 cd $(top_srcdir) && \
206 $(AUTOMAKE) --gnu m4/Makefile
207.PRECIOUS: Makefile
208Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
209 @case '$?' in \
210 *config.status*) \
211 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
212 *) \
213 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
214 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
215 esac;
216
217$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
218 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
219
220$(top_srcdir)/configure: $(am__configure_deps)
221 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
222$(ACLOCAL_M4): $(am__aclocal_m4_deps)
223 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
224
225mostlyclean-libtool:
226 -rm -f *.lo
227
228clean-libtool:
229 -rm -rf .libs _libs
230tags: TAGS
231TAGS:
232
233ctags: CTAGS
234CTAGS:
235
236
237distdir: $(DISTFILES)
238 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
239 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
240 list='$(DISTFILES)'; \
241 dist_files=`for file in $$list; do echo $$file; done | \
242 sed -e "s|^$$srcdirstrip/||;t" \
243 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
244 case $$dist_files in \
245 */*) $(MKDIR_P) `echo "$$dist_files" | \
246 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
247 sort -u` ;; \
248 esac; \
249 for file in $$dist_files; do \
250 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
251 if test -d $$d/$$file; then \
252 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
253 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
254 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
255 fi; \
256 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
257 else \
258 test -f $(distdir)/$$file \
259 || cp -p $$d/$$file $(distdir)/$$file \
260 || exit 1; \
261 fi; \
262 done
263check-am: all-am
264check: check-am
265all-am: Makefile
266installdirs:
267install: install-am
268install-exec: install-exec-am
269install-data: install-data-am
270uninstall: uninstall-am
271
272install-am: all-am
273 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
274
275installcheck: installcheck-am
276install-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
281mostlyclean-generic:
282
283clean-generic:
284
285distclean-generic:
286 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
287
288maintainer-clean-generic:
289 @echo "This command is intended for maintainers to use"
290 @echo "it deletes files that may require special tools to rebuild."
291clean: clean-am
292
293clean-am: clean-generic clean-libtool mostlyclean-am
294
295distclean: distclean-am
296 -rm -f Makefile
297distclean-am: clean-am distclean-generic
298
299dvi: dvi-am
300
301dvi-am:
302
303html: html-am
304
305info: info-am
306
307info-am:
308
309install-data-am:
310
311install-dvi: install-dvi-am
312
313install-exec-am:
314
315install-html: install-html-am
316
317install-info: install-info-am
318
319install-man:
320
321install-pdf: install-pdf-am
322
323install-ps: install-ps-am
324
325installcheck-am:
326
327maintainer-clean: maintainer-clean-am
328 -rm -f Makefile
329maintainer-clean-am: distclean-am maintainer-clean-generic
330
331mostlyclean: mostlyclean-am
332
333mostlyclean-am: mostlyclean-generic mostlyclean-libtool
334
335pdf: pdf-am
336
337pdf-am:
338
339ps: ps-am
340
341ps-am:
342
343uninstall-am:
344
345.MAKE: install-am install-strip
346
347.PHONY: all all-am check check-am clean clean-generic clean-libtool \
348 distclean distclean-generic distclean-libtool distdir dvi \
349 dvi-am html html-am info info-am install install-am \
350 install-data install-data-am install-dvi install-dvi-am \
351 install-exec install-exec-am install-html install-html-am \
352 install-info install-info-am install-man install-pdf \
353 install-pdf-am install-ps install-ps-am install-strip \
354 installcheck installcheck-am installdirs maintainer-clean \
355 maintainer-clean-generic mostlyclean mostlyclean-generic \
356 mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
357
358# Tell versions [3.59,3.63) of GNU make to not export all variables.
359# Otherwise a system limit (for SysV at least) may be exceeded.
360.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/m4/acinclude.m4 b/src/others/mimesh/libg3d-0.0.8/m4/acinclude.m4
new file mode 100644
index 0000000..2e89a34
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/m4/acinclude.m4
@@ -0,0 +1,27 @@
1dnl @synopsis AC_DEFINE_DIR(VARNAME, DIR [, DESCRIPTION])
2dnl
3dnl This macro _AC_DEFINEs VARNAME to the expansion of the DIR
4dnl variable, taking care of fixing up ${prefix} and such.
5dnl
6dnl Note that the 3 argument form is only supported with autoconf 2.13 and
7dnl later (i.e. only where _AC_DEFINE supports 3 arguments).
8dnl
9dnl Examples:
10dnl
11dnl AC_DEFINE_DIR(DATADIR, datadir)
12dnl AC_DEFINE_DIR(PROG_PATH, bindir, [Location of installed binaries])
13dnl
14dnl @version $Id: acinclude.m4,v 1.1.2.1 2005/08/13 18:14:56 dahms Exp $
15dnl @author Guido Draheim <guidod@gmx.de>, original by Alexandre Oliva
16
17AC_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/libg3d-0.0.8/m4/glib-2.0.m4 b/src/others/mimesh/libg3d-0.0.8/m4/glib-2.0.m4
new file mode 100644
index 0000000..d6413ff
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/m4/glib-2.0.m4
@@ -0,0 +1,215 @@
1# Configure paths for GLIB
2# Owen Taylor 1997-2001
3
4dnl AM_PATH_GLIB_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
5dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if gmodule, gobject or
6dnl gthread is specified in MODULES, pass to pkg-config
7dnl
8AC_DEFUN([AM_PATH_GLIB_2_0],
9[dnl
10dnl Get the cflags and libraries from pkg-config
11dnl
12AC_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"
85dnl
86dnl Now check if the installed GLIB is sufficiently new. (Also sanity
87dnl checks the results of pkg-config to some extent)
88dnl
89 rm -f conf.glibtest
90 AC_TRY_RUN([
91#include <glib.h>
92#include <stdio.h>
93#include <stdlib.h>
94
95int
96main ()
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, &micro) != 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/libg3d-0.0.8/m4/gtk-2.0.m4 b/src/others/mimesh/libg3d-0.0.8/m4/gtk-2.0.m4
new file mode 100644
index 0000000..3deba01
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/m4/gtk-2.0.m4
@@ -0,0 +1,196 @@
1# Configure paths for GTK+
2# Owen Taylor 1997-2001
3
4dnl AM_PATH_GTK_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
5dnl Test for GTK+, and define GTK_CFLAGS and GTK_LIBS, if gthread is specified in MODULES,
6dnl pass to pkg-config
7dnl
8AC_DEFUN([AM_PATH_GTK_2_0],
9[dnl
10dnl Get the cflags and libraries from pkg-config
11dnl
12AC_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"
72dnl
73dnl Now check if the installed GTK+ is sufficiently new. (Also sanity
74dnl checks the results of pkg-config to some extent)
75dnl
76 rm -f conf.gtktest
77 AC_TRY_RUN([
78#include <gtk/gtk.h>
79#include <stdio.h>
80#include <stdlib.h>
81
82int
83main ()
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, &micro) != 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/libg3d-0.0.8/m4/gtk-doc.m4 b/src/others/mimesh/libg3d-0.0.8/m4/gtk-doc.m4
new file mode 100644
index 0000000..bfdfa1d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/m4/gtk-doc.m4
@@ -0,0 +1,39 @@
1dnl -*- mode: autoconf -*-
2
3# serial 1
4
5dnl Usage:
6dnl GTK_DOC_CHECK([minimum-gtk-doc-version])
7AC_DEFUN([GTK_DOC_CHECK],
8[
9 AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
10 AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
11 dnl for overriding the documentation installation directory
12 AC_ARG_WITH([html-dir],
13 AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
14 [with_html_dir='${datadir}/gtk-doc/html'])
15 HTML_DIR="$with_html_dir"
16 AC_SUBST([HTML_DIR])
17
18 dnl enable/disable documentation building
19 AC_ARG_ENABLE([gtk-doc],
20 AS_HELP_STRING([--enable-gtk-doc],
21 [use gtk-doc to build documentation [[default=no]]]),,
22 [enable_gtk_doc=no])
23
24 if test x$enable_gtk_doc = xyes; then
25 ifelse([$1],[],
26 [PKG_CHECK_EXISTS([gtk-doc],,
27 AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
28 [PKG_CHECK_EXISTS([gtk-doc >= $1],,
29 AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build gtk-doc]))])
30 fi
31
32 AC_MSG_CHECKING([whether to build gtk-doc documentation])
33 AC_MSG_RESULT($enable_gtk_doc)
34
35 AC_PATH_PROGS(GTKDOC_CHECK,gtkdoc-check,)
36
37 AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
38 AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
39])
diff --git a/src/others/mimesh/libg3d-0.0.8/m4/libtool.m4 b/src/others/mimesh/libg3d-0.0.8/m4/libtool.m4
new file mode 100644
index 0000000..4f5ac79
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/m4/libtool.m4
@@ -0,0 +1,5951 @@
1# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2## Copyright 1996, 1997, 1998, 1999, 2000, 2001
3## Free Software Foundation, Inc.
4## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 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 of the License, or
9## (at your option) any later version.
10##
11## This program is distributed in the hope that it will be useful, but
12## WITHOUT ANY WARRANTY; without even the implied warranty of
13## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14## 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 02111-1307, USA.
19##
20## As a special exception to the GNU General Public License, if you
21## distribute this file as part of a program that contains a
22## configuration script generated by Autoconf, you may include it under
23## the same distribution terms that you use for the rest of that program.
24
25# serial 47 AC_PROG_LIBTOOL
26# Debian $Rev: 214 $
27
28
29# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
30# -----------------------------------------------------------
31# If this macro is not defined by Autoconf, define it here.
32m4_ifdef([AC_PROVIDE_IFELSE],
33 [],
34 [m4_define([AC_PROVIDE_IFELSE],
35 [m4_ifdef([AC_PROVIDE_$1],
36 [$2], [$3])])])
37
38
39# AC_PROG_LIBTOOL
40# ---------------
41AC_DEFUN([AC_PROG_LIBTOOL],
42[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
43dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
44dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
45 AC_PROVIDE_IFELSE([AC_PROG_CXX],
46 [AC_LIBTOOL_CXX],
47 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
48 ])])
49dnl And a similar setup for Fortran 77 support
50 AC_PROVIDE_IFELSE([AC_PROG_F77],
51 [AC_LIBTOOL_F77],
52 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
53])])
54
55dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
56dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
57dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
58 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
59 [AC_LIBTOOL_GCJ],
60 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
61 [AC_LIBTOOL_GCJ],
62 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
63 [AC_LIBTOOL_GCJ],
64 [ifdef([AC_PROG_GCJ],
65 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
66 ifdef([A][M_PROG_GCJ],
67 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
68 ifdef([LT_AC_PROG_GCJ],
69 [define([LT_AC_PROG_GCJ],
70 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
71])])# AC_PROG_LIBTOOL
72
73
74# _AC_PROG_LIBTOOL
75# ----------------
76AC_DEFUN([_AC_PROG_LIBTOOL],
77[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
78AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
79AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
80AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
81
82# This can be used to rebuild libtool when needed
83LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
84
85# Always use our own libtool.
86LIBTOOL='$(SHELL) $(top_builddir)/libtool'
87AC_SUBST(LIBTOOL)dnl
88
89# Prevent multiple expansion
90define([AC_PROG_LIBTOOL], [])
91])# _AC_PROG_LIBTOOL
92
93
94# AC_LIBTOOL_SETUP
95# ----------------
96AC_DEFUN([AC_LIBTOOL_SETUP],
97[AC_PREREQ(2.50)dnl
98AC_REQUIRE([AC_ENABLE_SHARED])dnl
99AC_REQUIRE([AC_ENABLE_STATIC])dnl
100AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
101AC_REQUIRE([AC_CANONICAL_HOST])dnl
102AC_REQUIRE([AC_CANONICAL_BUILD])dnl
103AC_REQUIRE([AC_PROG_CC])dnl
104AC_REQUIRE([AC_PROG_LD])dnl
105AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
106AC_REQUIRE([AC_PROG_NM])dnl
107
108AC_REQUIRE([AC_PROG_LN_S])dnl
109AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
110# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
111AC_REQUIRE([AC_OBJEXT])dnl
112AC_REQUIRE([AC_EXEEXT])dnl
113dnl
114
115AC_LIBTOOL_SYS_MAX_CMD_LEN
116AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
117AC_LIBTOOL_OBJDIR
118
119AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
120_LT_AC_PROG_ECHO_BACKSLASH
121
122case $host_os in
123aix3*)
124 # AIX sometimes has problems with the GCC collect2 program. For some
125 # reason, if we set the COLLECT_NAMES environment variable, the problems
126 # vanish in a puff of smoke.
127 if test "X${COLLECT_NAMES+set}" != Xset; then
128 COLLECT_NAMES=
129 export COLLECT_NAMES
130 fi
131 ;;
132esac
133
134# Sed substitution that helps us do robust quoting. It backslashifies
135# metacharacters that are still active within double-quoted strings.
136Xsed='sed -e s/^X//'
137[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
138
139# Same as above, but do not quote variable references.
140[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
141
142# Sed substitution to delay expansion of an escaped shell variable in a
143# double_quote_subst'ed string.
144delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
145
146# Sed substitution to avoid accidental globbing in evaled expressions
147no_glob_subst='s/\*/\\\*/g'
148
149# Constants:
150rm="rm -f"
151
152# Global variables:
153default_ofile=libtool
154can_build_shared=yes
155
156# All known linkers require a `.a' archive for static linking (except M$VC,
157# which needs '.lib').
158libext=a
159ltmain="$ac_aux_dir/ltmain.sh"
160ofile="$default_ofile"
161with_gnu_ld="$lt_cv_prog_gnu_ld"
162
163AC_CHECK_TOOL(AR, ar, false)
164AC_CHECK_TOOL(RANLIB, ranlib, :)
165AC_CHECK_TOOL(STRIP, strip, :)
166
167old_CC="$CC"
168old_CFLAGS="$CFLAGS"
169
170# Set sane defaults for various variables
171test -z "$AR" && AR=ar
172test -z "$AR_FLAGS" && AR_FLAGS=cru
173test -z "$AS" && AS=as
174test -z "$CC" && CC=cc
175test -z "$LTCC" && LTCC=$CC
176test -z "$DLLTOOL" && DLLTOOL=dlltool
177test -z "$LD" && LD=ld
178test -z "$LN_S" && LN_S="ln -s"
179test -z "$MAGIC_CMD" && MAGIC_CMD=file
180test -z "$NM" && NM=nm
181test -z "$SED" && SED=sed
182test -z "$OBJDUMP" && OBJDUMP=objdump
183test -z "$RANLIB" && RANLIB=:
184test -z "$STRIP" && STRIP=:
185test -z "$ac_objext" && ac_objext=o
186
187# Determine commands to create old-style static archives.
188old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
189old_postinstall_cmds='chmod 644 $oldlib'
190old_postuninstall_cmds=
191
192if test -n "$RANLIB"; then
193 case $host_os in
194 openbsd*)
195 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
196 ;;
197 *)
198 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
199 ;;
200 esac
201 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
202fi
203
204# Only perform the check for file, if the check method requires it
205case $deplibs_check_method in
206file_magic*)
207 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
208 AC_PATH_MAGIC
209 fi
210 ;;
211esac
212
213AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
214AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
215enable_win32_dll=yes, enable_win32_dll=no)
216
217AC_ARG_ENABLE([libtool-lock],
218 [AC_HELP_STRING([--disable-libtool-lock],
219 [avoid locking (might break parallel builds)])])
220test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
221
222AC_ARG_WITH([pic],
223 [AC_HELP_STRING([--with-pic],
224 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
225 [pic_mode="$withval"],
226 [pic_mode=default])
227test -z "$pic_mode" && pic_mode=default
228
229# Use C for the default configuration in the libtool script
230tagname=
231AC_LIBTOOL_LANG_C_CONFIG
232_LT_AC_TAGCONFIG
233])# AC_LIBTOOL_SETUP
234
235
236# _LT_AC_SYS_COMPILER
237# -------------------
238AC_DEFUN([_LT_AC_SYS_COMPILER],
239[AC_REQUIRE([AC_PROG_CC])dnl
240
241# If no C compiler was specified, use CC.
242LTCC=${LTCC-"$CC"}
243
244# Allow CC to be a program name with arguments.
245compiler=$CC
246])# _LT_AC_SYS_COMPILER
247
248
249# _LT_AC_SYS_LIBPATH_AIX
250# ----------------------
251# Links a minimal program and checks the executable
252# for the system default hardcoded library path. In most cases,
253# this is /usr/lib:/lib, but when the MPI compilers are used
254# the location of the communication and MPI libs are included too.
255# If we don't find anything, use the default library path according
256# to the aix ld manual.
257AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
258[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
259aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
260}'`
261# Check for a 64-bit object if we didn't find anything.
262if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
263}'`; fi],[])
264if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
265])# _LT_AC_SYS_LIBPATH_AIX
266
267
268# _LT_AC_SHELL_INIT(ARG)
269# ----------------------
270AC_DEFUN([_LT_AC_SHELL_INIT],
271[ifdef([AC_DIVERSION_NOTICE],
272 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
273 [AC_DIVERT_PUSH(NOTICE)])
274$1
275AC_DIVERT_POP
276])# _LT_AC_SHELL_INIT
277
278
279# _LT_AC_PROG_ECHO_BACKSLASH
280# --------------------------
281# Add some code to the start of the generated configure script which
282# will find an echo command which doesn't interpret backslashes.
283AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
284[_LT_AC_SHELL_INIT([
285# Check that we are running under the correct shell.
286SHELL=${CONFIG_SHELL-/bin/sh}
287
288case X$ECHO in
289X*--fallback-echo)
290 # Remove one level of quotation (which was required for Make).
291 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
292 ;;
293esac
294
295echo=${ECHO-echo}
296if test "X[$]1" = X--no-reexec; then
297 # Discard the --no-reexec flag, and continue.
298 shift
299elif test "X[$]1" = X--fallback-echo; then
300 # Avoid inline document here, it may be left over
301 :
302elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
303 # Yippee, $echo works!
304 :
305else
306 # Restart under the correct shell.
307 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
308fi
309
310if test "X[$]1" = X--fallback-echo; then
311 # used as fallback echo
312 shift
313 cat <<EOF
314[$]*
315EOF
316 exit 0
317fi
318
319# The HP-UX ksh and POSIX shell print the target directory to stdout
320# if CDPATH is set.
321if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
322
323if test -z "$ECHO"; then
324if test "X${echo_test_string+set}" != Xset; then
325# find a string as large as possible, as long as the shell can cope with it
326 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
327 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
328 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
329 echo_test_string="`eval $cmd`" &&
330 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
331 then
332 break
333 fi
334 done
335fi
336
337if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
338 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
339 test "X$echo_testing_string" = "X$echo_test_string"; then
340 :
341else
342 # The Solaris, AIX, and Digital Unix default echo programs unquote
343 # backslashes. This makes it impossible to quote backslashes using
344 # echo "$something" | sed 's/\\/\\\\/g'
345 #
346 # So, first we look for a working echo in the user's PATH.
347
348 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
349 for dir in $PATH /usr/ucb; do
350 IFS="$lt_save_ifs"
351 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
352 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
353 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
354 test "X$echo_testing_string" = "X$echo_test_string"; then
355 echo="$dir/echo"
356 break
357 fi
358 done
359 IFS="$lt_save_ifs"
360
361 if test "X$echo" = Xecho; then
362 # We didn't find a better echo, so look for alternatives.
363 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
364 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
365 test "X$echo_testing_string" = "X$echo_test_string"; then
366 # This shell has a builtin print -r that does the trick.
367 echo='print -r'
368 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
369 test "X$CONFIG_SHELL" != X/bin/ksh; then
370 # If we have ksh, try running configure again with it.
371 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
372 export ORIGINAL_CONFIG_SHELL
373 CONFIG_SHELL=/bin/ksh
374 export CONFIG_SHELL
375 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
376 else
377 # Try using printf.
378 echo='printf %s\n'
379 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
380 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
381 test "X$echo_testing_string" = "X$echo_test_string"; then
382 # Cool, printf works
383 :
384 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
385 test "X$echo_testing_string" = 'X\t' &&
386 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
387 test "X$echo_testing_string" = "X$echo_test_string"; then
388 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
389 export CONFIG_SHELL
390 SHELL="$CONFIG_SHELL"
391 export SHELL
392 echo="$CONFIG_SHELL [$]0 --fallback-echo"
393 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
394 test "X$echo_testing_string" = 'X\t' &&
395 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
396 test "X$echo_testing_string" = "X$echo_test_string"; then
397 echo="$CONFIG_SHELL [$]0 --fallback-echo"
398 else
399 # maybe with a smaller string...
400 prev=:
401
402 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
403 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
404 then
405 break
406 fi
407 prev="$cmd"
408 done
409
410 if test "$prev" != 'sed 50q "[$]0"'; then
411 echo_test_string=`eval $prev`
412 export echo_test_string
413 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
414 else
415 # Oops. We lost completely, so just stick with echo.
416 echo=echo
417 fi
418 fi
419 fi
420 fi
421fi
422fi
423
424# Copy echo and quote the copy suitably for passing to libtool from
425# the Makefile, instead of quoting the original, which is used later.
426ECHO=$echo
427if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
428 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
429fi
430
431AC_SUBST(ECHO)
432])])# _LT_AC_PROG_ECHO_BACKSLASH
433
434
435# _LT_AC_LOCK
436# -----------
437AC_DEFUN([_LT_AC_LOCK],
438[AC_ARG_ENABLE([libtool-lock],
439 [AC_HELP_STRING([--disable-libtool-lock],
440 [avoid locking (might break parallel builds)])])
441test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
442
443# Some flags need to be propagated to the compiler or linker for good
444# libtool support.
445case $host in
446ia64-*-hpux*)
447 # Find out which ABI we are using.
448 echo 'int i;' > conftest.$ac_ext
449 if AC_TRY_EVAL(ac_compile); then
450 case `/usr/bin/file conftest.$ac_objext` in
451 *ELF-32*)
452 HPUX_IA64_MODE="32"
453 ;;
454 *ELF-64*)
455 HPUX_IA64_MODE="64"
456 ;;
457 esac
458 fi
459 rm -rf conftest*
460 ;;
461*-*-irix6*)
462 # Find out which ABI we are using.
463 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
464 if AC_TRY_EVAL(ac_compile); then
465 if test "$lt_cv_prog_gnu_ld" = yes; then
466 case `/usr/bin/file conftest.$ac_objext` in
467 *32-bit*)
468 LD="${LD-ld} -melf32bsmip"
469 ;;
470 *N32*)
471 LD="${LD-ld} -melf32bmipn32"
472 ;;
473 *64-bit*)
474 LD="${LD-ld} -melf64bmip"
475 ;;
476 esac
477 else
478 case `/usr/bin/file conftest.$ac_objext` in
479 *32-bit*)
480 LD="${LD-ld} -32"
481 ;;
482 *N32*)
483 LD="${LD-ld} -n32"
484 ;;
485 *64-bit*)
486 LD="${LD-ld} -64"
487 ;;
488 esac
489 fi
490 fi
491 rm -rf conftest*
492 ;;
493
494x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
495 # Find out which ABI we are using.
496 echo 'int i;' > conftest.$ac_ext
497 if AC_TRY_EVAL(ac_compile); then
498 case "`/usr/bin/file conftest.o`" in
499 *32-bit*)
500 case $host in
501 x86_64-*linux*)
502 LD="${LD-ld} -m elf_i386"
503 ;;
504 ppc64-*linux*|powerpc64-*linux*)
505 LD="${LD-ld} -m elf32ppclinux"
506 ;;
507 s390x-*linux*)
508 LD="${LD-ld} -m elf_s390"
509 ;;
510 sparc64-*linux*)
511 LD="${LD-ld} -m elf32_sparc"
512 ;;
513 esac
514 ;;
515 *64-bit*)
516 case $host in
517 x86_64-*linux*)
518 LD="${LD-ld} -m elf_x86_64"
519 ;;
520 ppc*-*linux*|powerpc*-*linux*)
521 LD="${LD-ld} -m elf64ppc"
522 ;;
523 s390*-*linux*)
524 LD="${LD-ld} -m elf64_s390"
525 ;;
526 sparc*-*linux*)
527 LD="${LD-ld} -m elf64_sparc"
528 ;;
529 esac
530 ;;
531 esac
532 fi
533 rm -rf conftest*
534 ;;
535
536*-*-sco3.2v5*)
537 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
538 SAVE_CFLAGS="$CFLAGS"
539 CFLAGS="$CFLAGS -belf"
540 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
541 [AC_LANG_PUSH(C)
542 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
543 AC_LANG_POP])
544 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
545 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
546 CFLAGS="$SAVE_CFLAGS"
547 fi
548 ;;
549AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
550[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
551 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
552 AC_CHECK_TOOL(AS, as, false)
553 AC_CHECK_TOOL(OBJDUMP, objdump, false)
554 ;;
555 ])
556esac
557
558need_locks="$enable_libtool_lock"
559
560])# _LT_AC_LOCK
561
562
563# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
564# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
565# ----------------------------------------------------------------
566# Check whether the given compiler option works
567AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
568[AC_REQUIRE([LT_AC_PROG_SED])
569AC_CACHE_CHECK([$1], [$2],
570 [$2=no
571 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
572 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
573 lt_compiler_flag="$3"
574 # Insert the option either (1) after the last *FLAGS variable, or
575 # (2) before a word containing "conftest.", or (3) at the end.
576 # Note that $ac_compile itself does not contain backslashes and begins
577 # with a dollar sign (not a hyphen), so the echo should work correctly.
578 # The option is referenced via a variable to avoid confusing sed.
579 lt_compile=`echo "$ac_compile" | $SED \
580 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
581 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
582 -e 's:$: $lt_compiler_flag:'`
583 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
584 (eval "$lt_compile" 2>conftest.err)
585 ac_status=$?
586 cat conftest.err >&AS_MESSAGE_LOG_FD
587 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
588 if (exit $ac_status) && test -s "$ac_outfile"; then
589 # The compiler can only warn and ignore the option if not recognized
590 # So say no if there are warnings
591 if test ! -s conftest.err; then
592 $2=yes
593 fi
594 fi
595 $rm conftest*
596])
597
598if test x"[$]$2" = xyes; then
599 ifelse([$5], , :, [$5])
600else
601 ifelse([$6], , :, [$6])
602fi
603])# AC_LIBTOOL_COMPILER_OPTION
604
605
606# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
607# [ACTION-SUCCESS], [ACTION-FAILURE])
608# ------------------------------------------------------------
609# Check whether the given compiler option works
610AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
611[AC_CACHE_CHECK([$1], [$2],
612 [$2=no
613 save_LDFLAGS="$LDFLAGS"
614 LDFLAGS="$LDFLAGS $3"
615 printf "$lt_simple_link_test_code" > conftest.$ac_ext
616 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
617 # The compiler can only warn and ignore the option if not recognized
618 # So say no if there are warnings
619 if test -s conftest.err; then
620 # Append any errors to the config.log.
621 cat conftest.err 1>&AS_MESSAGE_LOG_FD
622 else
623 $2=yes
624 fi
625 fi
626 $rm conftest*
627 LDFLAGS="$save_LDFLAGS"
628])
629
630if test x"[$]$2" = xyes; then
631 ifelse([$4], , :, [$4])
632else
633 ifelse([$5], , :, [$5])
634fi
635])# AC_LIBTOOL_LINKER_OPTION
636
637
638# AC_LIBTOOL_SYS_MAX_CMD_LEN
639# --------------------------
640AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
641[# find the maximum length of command line arguments
642AC_MSG_CHECKING([the maximum length of command line arguments])
643AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
644 i=0
645 teststring="ABCD"
646
647 case $build_os in
648 msdosdjgpp*)
649 # On DJGPP, this test can blow up pretty badly due to problems in libc
650 # (any single argument exceeding 2000 bytes causes a buffer overrun
651 # during glob expansion). Even if it were fixed, the result of this
652 # check would be larger than it should be.
653 lt_cv_sys_max_cmd_len=12288; # 12K is about right
654 ;;
655
656 gnu*)
657 # Under GNU Hurd, this test is not required because there is
658 # no limit to the length of command line arguments.
659 # Libtool will interpret -1 as no limit whatsoever
660 lt_cv_sys_max_cmd_len=-1;
661 ;;
662
663 cygwin* | mingw*)
664 # On Win9x/ME, this test blows up -- it succeeds, but takes
665 # about 5 minutes as the teststring grows exponentially.
666 # Worse, since 9x/ME are not pre-emptively multitasking,
667 # you end up with a "frozen" computer, even though with patience
668 # the test eventually succeeds (with a max line length of 256k).
669 # Instead, let's just punt: use the minimum linelength reported by
670 # all of the supported platforms: 8192 (on NT/2K/XP).
671 lt_cv_sys_max_cmd_len=8192;
672 ;;
673
674 amigaos*)
675 # On AmigaOS with pdksh, this test takes hours, literally.
676 # So we just punt and use a minimum line length of 8192.
677 lt_cv_sys_max_cmd_len=8192;
678 ;;
679
680 *)
681 # If test is not a shell built-in, we'll probably end up computing a
682 # maximum length that is only half of the actual maximum length, but
683 # we can't tell.
684 while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
685 = "XX$teststring") >/dev/null 2>&1 &&
686 new_result=`expr "X$teststring" : ".*" 2>&1` &&
687 lt_cv_sys_max_cmd_len=$new_result &&
688 test $i != 17 # 1/2 MB should be enough
689 do
690 i=`expr $i + 1`
691 teststring=$teststring$teststring
692 done
693 teststring=
694 # Add a significant safety factor because C++ compilers can tack on massive
695 # amounts of additional arguments before passing them to the linker.
696 # It appears as though 1/2 is a usable value.
697 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
698 ;;
699 esac
700])
701if test -n $lt_cv_sys_max_cmd_len ; then
702 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
703else
704 AC_MSG_RESULT(none)
705fi
706])# AC_LIBTOOL_SYS_MAX_CMD_LEN
707
708
709# _LT_AC_CHECK_DLFCN
710# --------------------
711AC_DEFUN([_LT_AC_CHECK_DLFCN],
712[AC_CHECK_HEADERS(dlfcn.h)dnl
713])# _LT_AC_CHECK_DLFCN
714
715
716# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
717# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
718# ------------------------------------------------------------------
719AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
720[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
721if test "$cross_compiling" = yes; then :
722 [$4]
723else
724 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
725 lt_status=$lt_dlunknown
726 cat > conftest.$ac_ext <<EOF
727[#line __oline__ "configure"
728#include "confdefs.h"
729
730#if HAVE_DLFCN_H
731#include <dlfcn.h>
732#endif
733
734#include <stdio.h>
735
736#ifdef RTLD_GLOBAL
737# define LT_DLGLOBAL RTLD_GLOBAL
738#else
739# ifdef DL_GLOBAL
740# define LT_DLGLOBAL DL_GLOBAL
741# else
742# define LT_DLGLOBAL 0
743# endif
744#endif
745
746/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
747 find out it does not work in some platform. */
748#ifndef LT_DLLAZY_OR_NOW
749# ifdef RTLD_LAZY
750# define LT_DLLAZY_OR_NOW RTLD_LAZY
751# else
752# ifdef DL_LAZY
753# define LT_DLLAZY_OR_NOW DL_LAZY
754# else
755# ifdef RTLD_NOW
756# define LT_DLLAZY_OR_NOW RTLD_NOW
757# else
758# ifdef DL_NOW
759# define LT_DLLAZY_OR_NOW DL_NOW
760# else
761# define LT_DLLAZY_OR_NOW 0
762# endif
763# endif
764# endif
765# endif
766#endif
767
768#ifdef __cplusplus
769extern "C" void exit (int);
770#endif
771
772void fnord() { int i=42;}
773int main ()
774{
775 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
776 int status = $lt_dlunknown;
777
778 if (self)
779 {
780 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
781 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
782 /* dlclose (self); */
783 }
784
785 exit (status);
786}]
787EOF
788 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
789 (./conftest; exit; ) 2>/dev/null
790 lt_status=$?
791 case x$lt_status in
792 x$lt_dlno_uscore) $1 ;;
793 x$lt_dlneed_uscore) $2 ;;
794 x$lt_unknown|x*) $3 ;;
795 esac
796 else :
797 # compilation failed
798 $3
799 fi
800fi
801rm -fr conftest*
802])# _LT_AC_TRY_DLOPEN_SELF
803
804
805# AC_LIBTOOL_DLOPEN_SELF
806# -------------------
807AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
808[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
809if test "x$enable_dlopen" != xyes; then
810 enable_dlopen=unknown
811 enable_dlopen_self=unknown
812 enable_dlopen_self_static=unknown
813else
814 lt_cv_dlopen=no
815 lt_cv_dlopen_libs=
816
817 case $host_os in
818 beos*)
819 lt_cv_dlopen="load_add_on"
820 lt_cv_dlopen_libs=
821 lt_cv_dlopen_self=yes
822 ;;
823
824 mingw* | pw32*)
825 lt_cv_dlopen="LoadLibrary"
826 lt_cv_dlopen_libs=
827 ;;
828
829 cygwin*)
830 lt_cv_dlopen="dlopen"
831 lt_cv_dlopen_libs=
832 ;;
833
834 darwin*)
835 # if libdl is installed we need to link against it
836 AC_CHECK_LIB([dl], [dlopen],
837 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
838 lt_cv_dlopen="dyld"
839 lt_cv_dlopen_libs=
840 lt_cv_dlopen_self=yes
841 ])
842 ;;
843
844 *)
845 AC_CHECK_FUNC([shl_load],
846 [lt_cv_dlopen="shl_load"],
847 [AC_CHECK_LIB([dld], [shl_load],
848 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
849 [AC_CHECK_FUNC([dlopen],
850 [lt_cv_dlopen="dlopen"],
851 [AC_CHECK_LIB([dl], [dlopen],
852 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
853 [AC_CHECK_LIB([svld], [dlopen],
854 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
855 [AC_CHECK_LIB([dld], [dld_link],
856 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
857 ])
858 ])
859 ])
860 ])
861 ])
862 ;;
863 esac
864
865 if test "x$lt_cv_dlopen" != xno; then
866 enable_dlopen=yes
867 else
868 enable_dlopen=no
869 fi
870
871 case $lt_cv_dlopen in
872 dlopen)
873 save_CPPFLAGS="$CPPFLAGS"
874 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
875
876 save_LDFLAGS="$LDFLAGS"
877 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
878
879 save_LIBS="$LIBS"
880 LIBS="$lt_cv_dlopen_libs $LIBS"
881
882 AC_CACHE_CHECK([whether a program can dlopen itself],
883 lt_cv_dlopen_self, [dnl
884 _LT_AC_TRY_DLOPEN_SELF(
885 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
886 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
887 ])
888
889 if test "x$lt_cv_dlopen_self" = xyes; then
890 LDFLAGS="$LDFLAGS $link_static_flag"
891 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
892 lt_cv_dlopen_self_static, [dnl
893 _LT_AC_TRY_DLOPEN_SELF(
894 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
895 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
896 ])
897 fi
898
899 CPPFLAGS="$save_CPPFLAGS"
900 LDFLAGS="$save_LDFLAGS"
901 LIBS="$save_LIBS"
902 ;;
903 esac
904
905 case $lt_cv_dlopen_self in
906 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
907 *) enable_dlopen_self=unknown ;;
908 esac
909
910 case $lt_cv_dlopen_self_static in
911 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
912 *) enable_dlopen_self_static=unknown ;;
913 esac
914fi
915])# AC_LIBTOOL_DLOPEN_SELF
916
917
918# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
919# ---------------------------------
920# Check to see if options -c and -o are simultaneously supported by compiler
921AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
922[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
923AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
924 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
925 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
926 $rm -r conftest 2>/dev/null
927 mkdir conftest
928 cd conftest
929 mkdir out
930 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
931
932 lt_compiler_flag="-o out/conftest2.$ac_objext"
933 # Insert the option either (1) after the last *FLAGS variable, or
934 # (2) before a word containing "conftest.", or (3) at the end.
935 # Note that $ac_compile itself does not contain backslashes and begins
936 # with a dollar sign (not a hyphen), so the echo should work correctly.
937 lt_compile=`echo "$ac_compile" | $SED \
938 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
939 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
940 -e 's:$: $lt_compiler_flag:'`
941 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
942 (eval "$lt_compile" 2>out/conftest.err)
943 ac_status=$?
944 cat out/conftest.err >&AS_MESSAGE_LOG_FD
945 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
946 if (exit $ac_status) && test -s out/conftest2.$ac_objext
947 then
948 # The compiler can only warn and ignore the option if not recognized
949 # So say no if there are warnings
950 if test ! -s out/conftest.err; then
951 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
952 fi
953 fi
954 chmod u+w .
955 $rm conftest*
956 # SGI C++ compiler will create directory out/ii_files/ for
957 # template instantiation
958 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
959 $rm out/* && rmdir out
960 cd ..
961 rmdir conftest
962 $rm conftest*
963])
964])# AC_LIBTOOL_PROG_CC_C_O
965
966
967# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
968# -----------------------------------------
969# Check to see if we can do hard links to lock some files if needed
970AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
971[AC_REQUIRE([_LT_AC_LOCK])dnl
972
973hard_links="nottested"
974if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
975 # do not overwrite the value of need_locks provided by the user
976 AC_MSG_CHECKING([if we can lock with hard links])
977 hard_links=yes
978 $rm conftest*
979 ln conftest.a conftest.b 2>/dev/null && hard_links=no
980 touch conftest.a
981 ln conftest.a conftest.b 2>&5 || hard_links=no
982 ln conftest.a conftest.b 2>/dev/null && hard_links=no
983 AC_MSG_RESULT([$hard_links])
984 if test "$hard_links" = no; then
985 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
986 need_locks=warn
987 fi
988else
989 need_locks=no
990fi
991])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
992
993
994# AC_LIBTOOL_OBJDIR
995# -----------------
996AC_DEFUN([AC_LIBTOOL_OBJDIR],
997[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
998[rm -f .libs 2>/dev/null
999mkdir .libs 2>/dev/null
1000if test -d .libs; then
1001 lt_cv_objdir=.libs
1002else
1003 # MS-DOS does not allow filenames that begin with a dot.
1004 lt_cv_objdir=_libs
1005fi
1006rmdir .libs 2>/dev/null])
1007objdir=$lt_cv_objdir
1008])# AC_LIBTOOL_OBJDIR
1009
1010
1011# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1012# ----------------------------------------------
1013# Check hardcoding attributes.
1014AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1015[AC_MSG_CHECKING([how to hardcode library paths into programs])
1016_LT_AC_TAGVAR(hardcode_action, $1)=
1017if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1018 test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
1019 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
1020
1021 # We can hardcode non-existant directories.
1022 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1023 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1024 # have to relink, otherwise we might link with an installed library
1025 # when we should be linking with a yet-to-be-installed one
1026 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1027 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1028 # Linking always hardcodes the temporary library directory.
1029 _LT_AC_TAGVAR(hardcode_action, $1)=relink
1030 else
1031 # We can link without hardcoding, and we can hardcode nonexisting dirs.
1032 _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1033 fi
1034else
1035 # We cannot hardcode anything, or else we can only hardcode existing
1036 # directories.
1037 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1038fi
1039AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1040
1041if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1042 # Fast installation is not supported
1043 enable_fast_install=no
1044elif test "$shlibpath_overrides_runpath" = yes ||
1045 test "$enable_shared" = no; then
1046 # Fast installation is not necessary
1047 enable_fast_install=needless
1048fi
1049])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1050
1051
1052# AC_LIBTOOL_SYS_LIB_STRIP
1053# ------------------------
1054AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1055[striplib=
1056old_striplib=
1057AC_MSG_CHECKING([whether stripping libraries is possible])
1058if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1059 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1060 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1061 AC_MSG_RESULT([yes])
1062else
1063# FIXME - insert some real tests, host_os isn't really good enough
1064 case $host_os in
1065 darwin*)
1066 if test -n "$STRIP" ; then
1067 striplib="$STRIP -x"
1068 AC_MSG_RESULT([yes])
1069 else
1070 AC_MSG_RESULT([no])
1071fi
1072 ;;
1073 *)
1074 AC_MSG_RESULT([no])
1075 ;;
1076 esac
1077fi
1078])# AC_LIBTOOL_SYS_LIB_STRIP
1079
1080
1081# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1082# -----------------------------
1083# PORTME Fill in your ld.so characteristics
1084AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1085[AC_MSG_CHECKING([dynamic linker characteristics])
1086library_names_spec=
1087libname_spec='lib$name'
1088soname_spec=
1089shrext_cmds=".so"
1090postinstall_cmds=
1091postuninstall_cmds=
1092finish_cmds=
1093finish_eval=
1094shlibpath_var=
1095shlibpath_overrides_runpath=unknown
1096version_type=none
1097dynamic_linker="$host_os ld.so"
1098sys_lib_dlsearch_path_spec="/lib /usr/lib"
1099if test "$GCC" = yes; then
1100 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1101 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1102 # if the path contains ";" then we assume it to be the separator
1103 # otherwise default to the standard path separator (i.e. ":") - it is
1104 # assumed that no part of a normal pathname contains ";" but that should
1105 # okay in the real world where ";" in dirpaths is itself problematic.
1106 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1107 else
1108 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1109 fi
1110else
1111 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1112fi
1113need_lib_prefix=unknown
1114hardcode_into_libs=no
1115
1116# when you set need_version to no, make sure it does not cause -set_version
1117# flags to be left without arguments
1118need_version=unknown
1119
1120case $host_os in
1121aix3*)
1122 version_type=linux
1123 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1124 shlibpath_var=LIBPATH
1125
1126 # AIX 3 has no versioning support, so we append a major version to the name.
1127 soname_spec='${libname}${release}${shared_ext}$major'
1128 ;;
1129
1130aix4* | aix5*)
1131 version_type=linux
1132 need_lib_prefix=no
1133 need_version=no
1134 hardcode_into_libs=yes
1135 if test "$host_cpu" = ia64; then
1136 # AIX 5 supports IA64
1137 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1138 shlibpath_var=LD_LIBRARY_PATH
1139 else
1140 # With GCC up to 2.95.x, collect2 would create an import file
1141 # for dependence libraries. The import file would start with
1142 # the line `#! .'. This would cause the generated library to
1143 # depend on `.', always an invalid library. This was fixed in
1144 # development snapshots of GCC prior to 3.0.
1145 case $host_os in
1146 aix4 | aix4.[[01]] | aix4.[[01]].*)
1147 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1148 echo ' yes '
1149 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1150 :
1151 else
1152 can_build_shared=no
1153 fi
1154 ;;
1155 esac
1156 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1157 # soname into executable. Probably we can add versioning support to
1158 # collect2, so additional links can be useful in future.
1159 if test "$aix_use_runtimelinking" = yes; then
1160 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1161 # instead of lib<name>.a to let people know that these are not
1162 # typical AIX shared libraries.
1163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1164 else
1165 # We preserve .a as extension for shared libraries through AIX4.2
1166 # and later when we are not doing run time linking.
1167 library_names_spec='${libname}${release}.a $libname.a'
1168 soname_spec='${libname}${release}${shared_ext}$major'
1169 fi
1170 shlibpath_var=LIBPATH
1171 fi
1172 ;;
1173
1174amigaos*)
1175 library_names_spec='$libname.ixlibrary $libname.a'
1176 # Create ${libname}_ixlibrary.a entries in /sys/libs.
1177 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
1178 ;;
1179
1180beos*)
1181 library_names_spec='${libname}${shared_ext}'
1182 dynamic_linker="$host_os ld.so"
1183 shlibpath_var=LIBRARY_PATH
1184 ;;
1185
1186bsdi4*)
1187 version_type=linux
1188 need_version=no
1189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1190 soname_spec='${libname}${release}${shared_ext}$major'
1191 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1192 shlibpath_var=LD_LIBRARY_PATH
1193 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1194 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1195 # the default ld.so.conf also contains /usr/contrib/lib and
1196 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1197 # libtool to hard-code these into programs
1198 ;;
1199
1200cygwin* | mingw* | pw32*)
1201 version_type=windows
1202 shrext_cmds=".dll"
1203 need_version=no
1204 need_lib_prefix=no
1205
1206 case $GCC,$host_os in
1207 yes,cygwin* | yes,mingw* | yes,pw32*)
1208 library_names_spec='$libname.dll.a'
1209 # DLL is installed to $(libdir)/../bin by postinstall_cmds
1210 postinstall_cmds='base_file=`basename \${file}`~
1211 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1212 dldir=$destdir/`dirname \$dlpath`~
1213 test -d \$dldir || mkdir -p \$dldir~
1214 $install_prog $dir/$dlname \$dldir/$dlname'
1215 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1216 dlpath=$dir/\$dldll~
1217 $rm \$dlpath'
1218 shlibpath_overrides_runpath=yes
1219
1220 case $host_os in
1221 cygwin*)
1222 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1223 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1224 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1225 ;;
1226 mingw*)
1227 # MinGW DLLs use traditional 'lib' prefix
1228 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1229 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1230 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
1231 # It is most probably a Windows format PATH printed by
1232 # mingw gcc, but we are running on Cygwin. Gcc prints its search
1233 # path with ; separators, and with drive letters. We can handle the
1234 # drive letters (cygwin fileutils understands them), so leave them,
1235 # especially as we might pass files found there to a mingw objdump,
1236 # which wouldn't understand a cygwinified path. Ahh.
1237 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1238 else
1239 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1240 fi
1241 ;;
1242 pw32*)
1243 # pw32 DLLs use 'pw' prefix rather than 'lib'
1244 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1245 ;;
1246 esac
1247 ;;
1248
1249 *)
1250 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
1251 ;;
1252 esac
1253 dynamic_linker='Win32 ld.exe'
1254 # FIXME: first we should search . and the directory the executable is in
1255 shlibpath_var=PATH
1256 ;;
1257
1258darwin* | rhapsody*)
1259 dynamic_linker="$host_os dyld"
1260 version_type=darwin
1261 need_lib_prefix=no
1262 need_version=no
1263 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1264 soname_spec='${libname}${release}${major}$shared_ext'
1265 shlibpath_overrides_runpath=yes
1266 shlibpath_var=DYLD_LIBRARY_PATH
1267 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
1268 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1269 if test "$GCC" = yes; then
1270 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1271 else
1272 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1273 fi
1274 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1275 ;;
1276
1277dgux*)
1278 version_type=linux
1279 need_lib_prefix=no
1280 need_version=no
1281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1282 soname_spec='${libname}${release}${shared_ext}$major'
1283 shlibpath_var=LD_LIBRARY_PATH
1284 ;;
1285
1286freebsd1*)
1287 dynamic_linker=no
1288 ;;
1289
1290kfreebsd*-gnu)
1291 version_type=linux
1292 need_lib_prefix=no
1293 need_version=no
1294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1295 soname_spec='${libname}${release}${shared_ext}$major'
1296 shlibpath_var=LD_LIBRARY_PATH
1297 shlibpath_overrides_runpath=no
1298 hardcode_into_libs=yes
1299 dynamic_linker='GNU ld.so'
1300 ;;
1301
1302freebsd*)
1303 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
1304 version_type=freebsd-$objformat
1305 case $version_type in
1306 freebsd-elf*)
1307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1308 need_version=no
1309 need_lib_prefix=no
1310 ;;
1311 freebsd-*)
1312 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1313 need_version=yes
1314 ;;
1315 esac
1316 shlibpath_var=LD_LIBRARY_PATH
1317 case $host_os in
1318 freebsd2*)
1319 shlibpath_overrides_runpath=yes
1320 ;;
1321 freebsd3.[01]* | freebsdelf3.[01]*)
1322 shlibpath_overrides_runpath=yes
1323 hardcode_into_libs=yes
1324 ;;
1325 *) # from 3.2 on
1326 shlibpath_overrides_runpath=no
1327 hardcode_into_libs=yes
1328 ;;
1329 esac
1330 ;;
1331
1332gnu*)
1333 version_type=linux
1334 need_lib_prefix=no
1335 need_version=no
1336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1337 soname_spec='${libname}${release}${shared_ext}$major'
1338 shlibpath_var=LD_LIBRARY_PATH
1339 hardcode_into_libs=yes
1340 ;;
1341
1342hpux9* | hpux10* | hpux11*)
1343 # Give a soname corresponding to the major version so that dld.sl refuses to
1344 # link against other versions.
1345 version_type=sunos
1346 need_lib_prefix=no
1347 need_version=no
1348 case "$host_cpu" in
1349 ia64*)
1350 shrext_cmds='.so'
1351 hardcode_into_libs=yes
1352 dynamic_linker="$host_os dld.so"
1353 shlibpath_var=LD_LIBRARY_PATH
1354 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1356 soname_spec='${libname}${release}${shared_ext}$major'
1357 if test "X$HPUX_IA64_MODE" = X32; then
1358 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1359 else
1360 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1361 fi
1362 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1363 ;;
1364 hppa*64*)
1365 shrext_cmds='.sl'
1366 hardcode_into_libs=yes
1367 dynamic_linker="$host_os dld.sl"
1368 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1369 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1371 soname_spec='${libname}${release}${shared_ext}$major'
1372 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1373 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1374 ;;
1375 *)
1376 shrext_cmds='.sl'
1377 dynamic_linker="$host_os dld.sl"
1378 shlibpath_var=SHLIB_PATH
1379 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1381 soname_spec='${libname}${release}${shared_ext}$major'
1382 ;;
1383 esac
1384 # HP-UX runs *really* slowly unless shared libraries are mode 555.
1385 postinstall_cmds='chmod 555 $lib'
1386 ;;
1387
1388irix5* | irix6* | nonstopux*)
1389 case $host_os in
1390 nonstopux*) version_type=nonstopux ;;
1391 *)
1392 if test "$lt_cv_prog_gnu_ld" = yes; then
1393 version_type=linux
1394 else
1395 version_type=irix
1396 fi ;;
1397 esac
1398 need_lib_prefix=no
1399 need_version=no
1400 soname_spec='${libname}${release}${shared_ext}$major'
1401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1402 case $host_os in
1403 irix5* | nonstopux*)
1404 libsuff= shlibsuff=
1405 ;;
1406 *)
1407 case $LD in # libtool.m4 will add one of these switches to LD
1408 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1409 libsuff= shlibsuff= libmagic=32-bit;;
1410 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1411 libsuff=32 shlibsuff=N32 libmagic=N32;;
1412 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1413 libsuff=64 shlibsuff=64 libmagic=64-bit;;
1414 *) libsuff= shlibsuff= libmagic=never-match;;
1415 esac
1416 ;;
1417 esac
1418 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1419 shlibpath_overrides_runpath=no
1420 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1421 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1422 hardcode_into_libs=yes
1423 ;;
1424
1425# No shared lib support for Linux oldld, aout, or coff.
1426linux*oldld* | linux*aout* | linux*coff*)
1427 dynamic_linker=no
1428 ;;
1429
1430# This must be Linux ELF.
1431linux*)
1432 version_type=linux
1433 need_lib_prefix=no
1434 need_version=no
1435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1436 soname_spec='${libname}${release}${shared_ext}$major'
1437 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1438 shlibpath_var=LD_LIBRARY_PATH
1439 shlibpath_overrides_runpath=no
1440 # This implies no fast_install, which is unacceptable.
1441 # Some rework will be needed to allow for fast_install
1442 # before this can be enabled.
1443 hardcode_into_libs=yes
1444
1445 # Append ld.so.conf contents to the search path
1446 if test -f /etc/ld.so.conf; then
1447 lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
1448 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1449 fi
1450
1451 # We used to test for /lib/ld.so.1 and disable shared libraries on
1452 # powerpc, because MkLinux only supported shared libraries with the
1453 # GNU dynamic linker. Since this was broken with cross compilers,
1454 # most powerpc-linux boxes support dynamic linking these days and
1455 # people can always --disable-shared, the test was removed, and we
1456 # assume the GNU/Linux dynamic linker is in use.
1457 dynamic_linker='GNU/Linux ld.so'
1458 ;;
1459
1460netbsdelf*-gnu)
1461 version_type=linux
1462 need_lib_prefix=no
1463 need_version=no
1464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1465 soname_spec='${libname}${release}${shared_ext}$major'
1466 shlibpath_var=LD_LIBRARY_PATH
1467 shlibpath_overrides_runpath=no
1468 hardcode_into_libs=yes
1469 dynamic_linker='NetBSD ld.elf_so'
1470 ;;
1471
1472knetbsd*-gnu)
1473 version_type=linux
1474 need_lib_prefix=no
1475 need_version=no
1476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1477 soname_spec='${libname}${release}${shared_ext}$major'
1478 shlibpath_var=LD_LIBRARY_PATH
1479 shlibpath_overrides_runpath=no
1480 hardcode_into_libs=yes
1481 dynamic_linker='GNU ld.so'
1482 ;;
1483
1484netbsd*)
1485 version_type=sunos
1486 need_lib_prefix=no
1487 need_version=no
1488 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1490 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1491 dynamic_linker='NetBSD (a.out) ld.so'
1492 else
1493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1494 soname_spec='${libname}${release}${shared_ext}$major'
1495 dynamic_linker='NetBSD ld.elf_so'
1496 fi
1497 shlibpath_var=LD_LIBRARY_PATH
1498 shlibpath_overrides_runpath=yes
1499 hardcode_into_libs=yes
1500 ;;
1501
1502newsos6)
1503 version_type=linux
1504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1505 shlibpath_var=LD_LIBRARY_PATH
1506 shlibpath_overrides_runpath=yes
1507 ;;
1508
1509nto-qnx*)
1510 version_type=linux
1511 need_lib_prefix=no
1512 need_version=no
1513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1514 soname_spec='${libname}${release}${shared_ext}$major'
1515 shlibpath_var=LD_LIBRARY_PATH
1516 shlibpath_overrides_runpath=yes
1517 ;;
1518
1519openbsd*)
1520 version_type=sunos
1521 need_lib_prefix=no
1522 need_version=yes
1523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1524 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1525 shlibpath_var=LD_LIBRARY_PATH
1526 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1527 case $host_os in
1528 openbsd2.[[89]] | openbsd2.[[89]].*)
1529 shlibpath_overrides_runpath=no
1530 ;;
1531 *)
1532 shlibpath_overrides_runpath=yes
1533 ;;
1534 esac
1535 else
1536 shlibpath_overrides_runpath=yes
1537 fi
1538 ;;
1539
1540os2*)
1541 libname_spec='$name'
1542 shrext_cmds=".dll"
1543 need_lib_prefix=no
1544 library_names_spec='$libname${shared_ext} $libname.a'
1545 dynamic_linker='OS/2 ld.exe'
1546 shlibpath_var=LIBPATH
1547 ;;
1548
1549osf3* | osf4* | osf5*)
1550 version_type=osf
1551 need_lib_prefix=no
1552 need_version=no
1553 soname_spec='${libname}${release}${shared_ext}$major'
1554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1555 shlibpath_var=LD_LIBRARY_PATH
1556 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1557 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1558 ;;
1559
1560sco3.2v5*)
1561 version_type=osf
1562 soname_spec='${libname}${release}${shared_ext}$major'
1563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1564 shlibpath_var=LD_LIBRARY_PATH
1565 ;;
1566
1567solaris*)
1568 version_type=linux
1569 need_lib_prefix=no
1570 need_version=no
1571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1572 soname_spec='${libname}${release}${shared_ext}$major'
1573 shlibpath_var=LD_LIBRARY_PATH
1574 shlibpath_overrides_runpath=yes
1575 hardcode_into_libs=yes
1576 # ldd complains unless libraries are executable
1577 postinstall_cmds='chmod +x $lib'
1578 ;;
1579
1580sunos4*)
1581 version_type=sunos
1582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1583 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1584 shlibpath_var=LD_LIBRARY_PATH
1585 shlibpath_overrides_runpath=yes
1586 if test "$with_gnu_ld" = yes; then
1587 need_lib_prefix=no
1588 fi
1589 need_version=yes
1590 ;;
1591
1592sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1593 version_type=linux
1594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1595 soname_spec='${libname}${release}${shared_ext}$major'
1596 shlibpath_var=LD_LIBRARY_PATH
1597 case $host_vendor in
1598 sni)
1599 shlibpath_overrides_runpath=no
1600 need_lib_prefix=no
1601 export_dynamic_flag_spec='${wl}-Blargedynsym'
1602 runpath_var=LD_RUN_PATH
1603 ;;
1604 siemens)
1605 need_lib_prefix=no
1606 ;;
1607 motorola)
1608 need_lib_prefix=no
1609 need_version=no
1610 shlibpath_overrides_runpath=no
1611 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
1612 ;;
1613 esac
1614 ;;
1615
1616sysv4*MP*)
1617 if test -d /usr/nec ;then
1618 version_type=linux
1619 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1620 soname_spec='$libname${shared_ext}.$major'
1621 shlibpath_var=LD_LIBRARY_PATH
1622 fi
1623 ;;
1624
1625uts4*)
1626 version_type=linux
1627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1628 soname_spec='${libname}${release}${shared_ext}$major'
1629 shlibpath_var=LD_LIBRARY_PATH
1630 ;;
1631
1632*)
1633 dynamic_linker=no
1634 ;;
1635esac
1636AC_MSG_RESULT([$dynamic_linker])
1637test "$dynamic_linker" = no && can_build_shared=no
1638])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1639
1640
1641# _LT_AC_TAGCONFIG
1642# ----------------
1643AC_DEFUN([_LT_AC_TAGCONFIG],
1644[AC_ARG_WITH([tags],
1645 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1646 [include additional configurations @<:@automatic@:>@])],
1647 [tagnames="$withval"])
1648
1649if test -f "$ltmain" && test -n "$tagnames"; then
1650 if test ! -f "${ofile}"; then
1651 AC_MSG_WARN([output file `$ofile' does not exist])
1652 fi
1653
1654 if test -z "$LTCC"; then
1655 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1656 if test -z "$LTCC"; then
1657 AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1658 else
1659 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1660 fi
1661 fi
1662
1663 # Extract list of available tagged configurations in $ofile.
1664 # Note that this assumes the entire list is on one line.
1665 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1666
1667 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1668 for tagname in $tagnames; do
1669 IFS="$lt_save_ifs"
1670 # Check whether tagname contains only valid characters
1671 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
1672 "") ;;
1673 *) AC_MSG_ERROR([invalid tag name: $tagname])
1674 ;;
1675 esac
1676
1677 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
1678 then
1679 AC_MSG_ERROR([tag name \"$tagname\" already exists])
1680 fi
1681
1682 # Update the list of available tags.
1683 if test -n "$tagname"; then
1684 echo appending configuration tag \"$tagname\" to $ofile
1685
1686 case $tagname in
1687 CXX)
1688 if test -n "$CXX" && test "X$CXX" != "Xno"; then
1689 AC_LIBTOOL_LANG_CXX_CONFIG
1690 else
1691 tagname=""
1692 fi
1693 ;;
1694
1695 F77)
1696 if test -n "$F77" && test "X$F77" != "Xno"; then
1697 AC_LIBTOOL_LANG_F77_CONFIG
1698 else
1699 tagname=""
1700 fi
1701 ;;
1702
1703 GCJ)
1704 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
1705 AC_LIBTOOL_LANG_GCJ_CONFIG
1706 else
1707 tagname=""
1708 fi
1709 ;;
1710
1711 RC)
1712 AC_LIBTOOL_LANG_RC_CONFIG
1713 ;;
1714
1715 *)
1716 AC_MSG_ERROR([Unsupported tag name: $tagname])
1717 ;;
1718 esac
1719
1720 # Append the new tag name to the list of available tags.
1721 if test -n "$tagname" ; then
1722 available_tags="$available_tags $tagname"
1723 fi
1724 fi
1725 done
1726 IFS="$lt_save_ifs"
1727
1728 # Now substitute the updated list of available tags.
1729 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
1730 mv "${ofile}T" "$ofile"
1731 chmod +x "$ofile"
1732 else
1733 rm -f "${ofile}T"
1734 AC_MSG_ERROR([unable to update list of available tagged configurations.])
1735 fi
1736fi
1737])# _LT_AC_TAGCONFIG
1738
1739
1740# AC_LIBTOOL_DLOPEN
1741# -----------------
1742# enable checks for dlopen support
1743AC_DEFUN([AC_LIBTOOL_DLOPEN],
1744 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
1745])# AC_LIBTOOL_DLOPEN
1746
1747
1748# AC_LIBTOOL_WIN32_DLL
1749# --------------------
1750# declare package support for building win32 dll's
1751AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1752[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1753])# AC_LIBTOOL_WIN32_DLL
1754
1755
1756# AC_ENABLE_SHARED([DEFAULT])
1757# ---------------------------
1758# implement the --enable-shared flag
1759# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1760AC_DEFUN([AC_ENABLE_SHARED],
1761[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
1762AC_ARG_ENABLE([shared],
1763 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
1764 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
1765 [p=${PACKAGE-default}
1766 case $enableval in
1767 yes) enable_shared=yes ;;
1768 no) enable_shared=no ;;
1769 *)
1770 enable_shared=no
1771 # Look at the argument we got. We use all the common list separators.
1772 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1773 for pkg in $enableval; do
1774 IFS="$lt_save_ifs"
1775 if test "X$pkg" = "X$p"; then
1776 enable_shared=yes
1777 fi
1778 done
1779 IFS="$lt_save_ifs"
1780 ;;
1781 esac],
1782 [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
1783])# AC_ENABLE_SHARED
1784
1785
1786# AC_DISABLE_SHARED
1787# -----------------
1788#- set the default shared flag to --disable-shared
1789AC_DEFUN([AC_DISABLE_SHARED],
1790[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1791AC_ENABLE_SHARED(no)
1792])# AC_DISABLE_SHARED
1793
1794
1795# AC_ENABLE_STATIC([DEFAULT])
1796# ---------------------------
1797# implement the --enable-static flag
1798# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1799AC_DEFUN([AC_ENABLE_STATIC],
1800[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
1801AC_ARG_ENABLE([static],
1802 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
1803 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
1804 [p=${PACKAGE-default}
1805 case $enableval in
1806 yes) enable_static=yes ;;
1807 no) enable_static=no ;;
1808 *)
1809 enable_static=no
1810 # Look at the argument we got. We use all the common list separators.
1811 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1812 for pkg in $enableval; do
1813 IFS="$lt_save_ifs"
1814 if test "X$pkg" = "X$p"; then
1815 enable_static=yes
1816 fi
1817 done
1818 IFS="$lt_save_ifs"
1819 ;;
1820 esac],
1821 [enable_static=]AC_ENABLE_STATIC_DEFAULT)
1822])# AC_ENABLE_STATIC
1823
1824
1825# AC_DISABLE_STATIC
1826# -----------------
1827# set the default static flag to --disable-static
1828AC_DEFUN([AC_DISABLE_STATIC],
1829[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1830AC_ENABLE_STATIC(no)
1831])# AC_DISABLE_STATIC
1832
1833
1834# AC_ENABLE_FAST_INSTALL([DEFAULT])
1835# ---------------------------------
1836# implement the --enable-fast-install flag
1837# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1838AC_DEFUN([AC_ENABLE_FAST_INSTALL],
1839[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
1840AC_ARG_ENABLE([fast-install],
1841 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
1842 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
1843 [p=${PACKAGE-default}
1844 case $enableval in
1845 yes) enable_fast_install=yes ;;
1846 no) enable_fast_install=no ;;
1847 *)
1848 enable_fast_install=no
1849 # Look at the argument we got. We use all the common list separators.
1850 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1851 for pkg in $enableval; do
1852 IFS="$lt_save_ifs"
1853 if test "X$pkg" = "X$p"; then
1854 enable_fast_install=yes
1855 fi
1856 done
1857 IFS="$lt_save_ifs"
1858 ;;
1859 esac],
1860 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
1861])# AC_ENABLE_FAST_INSTALL
1862
1863
1864# AC_DISABLE_FAST_INSTALL
1865# -----------------------
1866# set the default to --disable-fast-install
1867AC_DEFUN([AC_DISABLE_FAST_INSTALL],
1868[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1869AC_ENABLE_FAST_INSTALL(no)
1870])# AC_DISABLE_FAST_INSTALL
1871
1872
1873# AC_LIBTOOL_PICMODE([MODE])
1874# --------------------------
1875# implement the --with-pic flag
1876# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
1877AC_DEFUN([AC_LIBTOOL_PICMODE],
1878[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1879pic_mode=ifelse($#,1,$1,default)
1880])# AC_LIBTOOL_PICMODE
1881
1882
1883# AC_PROG_EGREP
1884# -------------
1885# This is predefined starting with Autoconf 2.54, so this conditional
1886# definition can be removed once we require Autoconf 2.54 or later.
1887m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
1888[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
1889 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1890 then ac_cv_prog_egrep='grep -E'
1891 else ac_cv_prog_egrep='egrep'
1892 fi])
1893 EGREP=$ac_cv_prog_egrep
1894 AC_SUBST([EGREP])
1895])])
1896
1897
1898# AC_PATH_TOOL_PREFIX
1899# -------------------
1900# find a file program which can recognise shared library
1901AC_DEFUN([AC_PATH_TOOL_PREFIX],
1902[AC_REQUIRE([AC_PROG_EGREP])dnl
1903AC_MSG_CHECKING([for $1])
1904AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
1905[case $MAGIC_CMD in
1906[[\\/*] | ?:[\\/]*])
1907 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1908 ;;
1909*)
1910 lt_save_MAGIC_CMD="$MAGIC_CMD"
1911 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1912dnl $ac_dummy forces splitting on constant user-supplied paths.
1913dnl POSIX.2 word splitting is done only on the output of word expansions,
1914dnl not every word. This closes a longstanding sh security hole.
1915 ac_dummy="ifelse([$2], , $PATH, [$2])"
1916 for ac_dir in $ac_dummy; do
1917 IFS="$lt_save_ifs"
1918 test -z "$ac_dir" && ac_dir=.
1919 if test -f $ac_dir/$1; then
1920 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
1921 if test -n "$file_magic_test_file"; then
1922 case $deplibs_check_method in
1923 "file_magic "*)
1924 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1925 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1926 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1927 $EGREP "$file_magic_regex" > /dev/null; then
1928 :
1929 else
1930 cat <<EOF 1>&2
1931
1932*** Warning: the command libtool uses to detect shared libraries,
1933*** $file_magic_cmd, produces output that libtool cannot recognize.
1934*** The result is that libtool may fail to recognize shared libraries
1935*** as such. This will affect the creation of libtool libraries that
1936*** depend on shared libraries, but programs linked with such libtool
1937*** libraries will work regardless of this problem. Nevertheless, you
1938*** may want to report the problem to your system manager and/or to
1939*** bug-libtool@gnu.org
1940
1941EOF
1942 fi ;;
1943 esac
1944 fi
1945 break
1946 fi
1947 done
1948 IFS="$lt_save_ifs"
1949 MAGIC_CMD="$lt_save_MAGIC_CMD"
1950 ;;
1951esac])
1952MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1953if test -n "$MAGIC_CMD"; then
1954 AC_MSG_RESULT($MAGIC_CMD)
1955else
1956 AC_MSG_RESULT(no)
1957fi
1958])# AC_PATH_TOOL_PREFIX
1959
1960
1961# AC_PATH_MAGIC
1962# -------------
1963# find a file program which can recognise a shared library
1964AC_DEFUN([AC_PATH_MAGIC],
1965[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
1966if test -z "$lt_cv_path_MAGIC_CMD"; then
1967 if test -n "$ac_tool_prefix"; then
1968 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
1969 else
1970 MAGIC_CMD=:
1971 fi
1972fi
1973])# AC_PATH_MAGIC
1974
1975
1976# AC_PROG_LD
1977# ----------
1978# find the pathname to the GNU or non-GNU linker
1979AC_DEFUN([AC_PROG_LD],
1980[AC_ARG_WITH([gnu-ld],
1981 [AC_HELP_STRING([--with-gnu-ld],
1982 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
1983 [test "$withval" = no || with_gnu_ld=yes],
1984 [with_gnu_ld=no])
1985AC_REQUIRE([LT_AC_PROG_SED])dnl
1986AC_REQUIRE([AC_PROG_CC])dnl
1987AC_REQUIRE([AC_CANONICAL_HOST])dnl
1988AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1989ac_prog=ld
1990if test "$GCC" = yes; then
1991 # Check if gcc -print-prog-name=ld gives a path.
1992 AC_MSG_CHECKING([for ld used by $CC])
1993 case $host in
1994 *-*-mingw*)
1995 # gcc leaves a trailing carriage return which upsets mingw
1996 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1997 *)
1998 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1999 esac
2000 case $ac_prog in
2001 # Accept absolute paths.
2002 [[\\/]]* | ?:[[\\/]]*)
2003 re_direlt='/[[^/]][[^/]]*/\.\./'
2004 # Canonicalize the pathname of ld
2005 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2006 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2007 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2008 done
2009 test -z "$LD" && LD="$ac_prog"
2010 ;;
2011 "")
2012 # If it fails, then pretend we aren't using GCC.
2013 ac_prog=ld
2014 ;;
2015 *)
2016 # If it is relative, then search for the first ld in PATH.
2017 with_gnu_ld=unknown
2018 ;;
2019 esac
2020elif test "$with_gnu_ld" = yes; then
2021 AC_MSG_CHECKING([for GNU ld])
2022else
2023 AC_MSG_CHECKING([for non-GNU ld])
2024fi
2025AC_CACHE_VAL(lt_cv_path_LD,
2026[if test -z "$LD"; then
2027 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2028 for ac_dir in $PATH; do
2029 IFS="$lt_save_ifs"
2030 test -z "$ac_dir" && ac_dir=.
2031 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2032 lt_cv_path_LD="$ac_dir/$ac_prog"
2033 # Check to see if the program is GNU ld. I'd rather use --version,
2034 # but apparently some GNU ld's only accept -v.
2035 # Break only if it was the GNU/non-GNU ld that we prefer.
2036 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2037 *GNU* | *'with BFD'*)
2038 test "$with_gnu_ld" != no && break
2039 ;;
2040 *)
2041 test "$with_gnu_ld" != yes && break
2042 ;;
2043 esac
2044 fi
2045 done
2046 IFS="$lt_save_ifs"
2047else
2048 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2049fi])
2050LD="$lt_cv_path_LD"
2051if test -n "$LD"; then
2052 AC_MSG_RESULT($LD)
2053else
2054 AC_MSG_RESULT(no)
2055fi
2056test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2057AC_PROG_LD_GNU
2058])# AC_PROG_LD
2059
2060
2061# AC_PROG_LD_GNU
2062# --------------
2063AC_DEFUN([AC_PROG_LD_GNU],
2064[AC_REQUIRE([AC_PROG_EGREP])dnl
2065AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2066[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
2067case `$LD -v 2>&1 </dev/null` in
2068*GNU* | *'with BFD'*)
2069 lt_cv_prog_gnu_ld=yes
2070 ;;
2071*)
2072 lt_cv_prog_gnu_ld=no
2073 ;;
2074esac])
2075with_gnu_ld=$lt_cv_prog_gnu_ld
2076])# AC_PROG_LD_GNU
2077
2078
2079# AC_PROG_LD_RELOAD_FLAG
2080# ----------------------
2081# find reload flag for linker
2082# -- PORTME Some linkers may need a different reload flag.
2083AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2084[AC_CACHE_CHECK([for $LD option to reload object files],
2085 lt_cv_ld_reload_flag,
2086 [lt_cv_ld_reload_flag='-r'])
2087reload_flag=$lt_cv_ld_reload_flag
2088case $reload_flag in
2089"" | " "*) ;;
2090*) reload_flag=" $reload_flag" ;;
2091esac
2092reload_cmds='$LD$reload_flag -o $output$reload_objs'
2093])# AC_PROG_LD_RELOAD_FLAG
2094
2095
2096# AC_DEPLIBS_CHECK_METHOD
2097# -----------------------
2098# how to check for library dependencies
2099# -- PORTME fill in with the dynamic library characteristics
2100AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2101[AC_CACHE_CHECK([how to recognise dependent libraries],
2102lt_cv_deplibs_check_method,
2103[lt_cv_file_magic_cmd='$MAGIC_CMD'
2104lt_cv_file_magic_test_file=
2105lt_cv_deplibs_check_method='unknown'
2106# Need to set the preceding variable on all platforms that support
2107# interlibrary dependencies.
2108# 'none' -- dependencies not supported.
2109# `unknown' -- same as none, but documents that we really don't know.
2110# 'pass_all' -- all dependencies passed with no checks.
2111# 'test_compile' -- check by making test program.
2112# 'file_magic [[regex]]' -- check by looking for files in library path
2113# which responds to the $file_magic_cmd with a given extended regex.
2114# If you have `file' or equivalent on your system and you're not sure
2115# whether `pass_all' will *always* work, you probably want this one.
2116
2117case $host_os in
2118aix4* | aix5*)
2119 lt_cv_deplibs_check_method=pass_all
2120 ;;
2121
2122beos*)
2123 lt_cv_deplibs_check_method=pass_all
2124 ;;
2125
2126bsdi4*)
2127 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2128 lt_cv_file_magic_cmd='/usr/bin/file -L'
2129 lt_cv_file_magic_test_file=/shlib/libc.so
2130 ;;
2131
2132cygwin*)
2133 # func_win32_libid is a shell function defined in ltmain.sh
2134 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2135 lt_cv_file_magic_cmd='func_win32_libid'
2136 ;;
2137
2138mingw* | pw32*)
2139 # Base MSYS/MinGW do not provide the 'file' command needed by
2140 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2141 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2142 lt_cv_file_magic_cmd='$OBJDUMP -f'
2143 ;;
2144
2145darwin* | rhapsody*)
2146 lt_cv_deplibs_check_method=pass_all
2147 ;;
2148
2149freebsd* | kfreebsd*-gnu)
2150 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2151 case $host_cpu in
2152 i*86 )
2153 # Not sure whether the presence of OpenBSD here was a mistake.
2154 # Let's accept both of them until this is cleared up.
2155 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
2156 lt_cv_file_magic_cmd=/usr/bin/file
2157 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2158 ;;
2159 esac
2160 else
2161 lt_cv_deplibs_check_method=pass_all
2162 fi
2163 ;;
2164
2165gnu*)
2166 lt_cv_deplibs_check_method=pass_all
2167 ;;
2168
2169hpux10.20* | hpux11*)
2170 lt_cv_file_magic_cmd=/usr/bin/file
2171 case "$host_cpu" in
2172 ia64*)
2173 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2174 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2175 ;;
2176 hppa*64*)
2177 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
2178 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2179 ;;
2180 *)
2181 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2182 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2183 ;;
2184 esac
2185 ;;
2186
2187irix5* | irix6* | nonstopux*)
2188 case $LD in
2189 *-32|*"-32 ") libmagic=32-bit;;
2190 *-n32|*"-n32 ") libmagic=N32;;
2191 *-64|*"-64 ") libmagic=64-bit;;
2192 *) libmagic=never-match;;
2193 esac
2194 lt_cv_deplibs_check_method=pass_all
2195 ;;
2196
2197# This must be Linux ELF.
2198linux*)
2199 lt_cv_deplibs_check_method=pass_all
2200 ;;
2201
2202netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
2203 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2204 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2205 else
2206 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
2207 fi
2208 ;;
2209
2210newos6*)
2211 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
2212 lt_cv_file_magic_cmd=/usr/bin/file
2213 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2214 ;;
2215
2216nto-qnx*)
2217 lt_cv_deplibs_check_method=unknown
2218 ;;
2219
2220openbsd*)
2221 lt_cv_file_magic_cmd=/usr/bin/file
2222 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2223 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2224 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
2225 else
2226 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2227 fi
2228 ;;
2229
2230osf3* | osf4* | osf5*)
2231 lt_cv_deplibs_check_method=pass_all
2232 ;;
2233
2234sco3.2v5*)
2235 lt_cv_deplibs_check_method=pass_all
2236 ;;
2237
2238solaris*)
2239 lt_cv_deplibs_check_method=pass_all
2240 ;;
2241
2242sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2243 case $host_vendor in
2244 motorola)
2245 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
2246 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2247 ;;
2248 ncr)
2249 lt_cv_deplibs_check_method=pass_all
2250 ;;
2251 sequent)
2252 lt_cv_file_magic_cmd='/bin/file'
2253 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
2254 ;;
2255 sni)
2256 lt_cv_file_magic_cmd='/bin/file'
2257 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
2258 lt_cv_file_magic_test_file=/lib/libc.so
2259 ;;
2260 siemens)
2261 lt_cv_deplibs_check_method=pass_all
2262 ;;
2263 esac
2264 ;;
2265
2266sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
2267 lt_cv_deplibs_check_method=pass_all
2268 ;;
2269esac
2270])
2271file_magic_cmd=$lt_cv_file_magic_cmd
2272deplibs_check_method=$lt_cv_deplibs_check_method
2273test -z "$deplibs_check_method" && deplibs_check_method=unknown
2274])# AC_DEPLIBS_CHECK_METHOD
2275
2276
2277# AC_PROG_NM
2278# ----------
2279# find the pathname to a BSD-compatible name lister
2280AC_DEFUN([AC_PROG_NM],
2281[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
2282[if test -n "$NM"; then
2283 # Let the user override the test.
2284 lt_cv_path_NM="$NM"
2285else
2286 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2287 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2288 IFS="$lt_save_ifs"
2289 test -z "$ac_dir" && ac_dir=.
2290 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2291 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2292 # Check to see if the nm accepts a BSD-compat flag.
2293 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2294 # nm: unknown option "B" ignored
2295 # Tru64's nm complains that /dev/null is an invalid object file
2296 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2297 */dev/null* | *'Invalid file or object type'*)
2298 lt_cv_path_NM="$tmp_nm -B"
2299 break
2300 ;;
2301 *)
2302 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2303 */dev/null*)
2304 lt_cv_path_NM="$tmp_nm -p"
2305 break
2306 ;;
2307 *)
2308 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2309 continue # so that we can try to find one that supports BSD flags
2310 ;;
2311 esac
2312 esac
2313 fi
2314 done
2315 IFS="$lt_save_ifs"
2316 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2317fi])
2318NM="$lt_cv_path_NM"
2319])# AC_PROG_NM
2320
2321
2322# AC_CHECK_LIBM
2323# -------------
2324# check for math library
2325AC_DEFUN([AC_CHECK_LIBM],
2326[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2327LIBM=
2328case $host in
2329*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
2330 # These system don't have libm, or don't need it
2331 ;;
2332*-ncr-sysv4.3*)
2333 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
2334 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
2335 ;;
2336*)
2337 AC_CHECK_LIB(m, cos, LIBM="-lm")
2338 ;;
2339esac
2340])# AC_CHECK_LIBM
2341
2342
2343# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2344# -----------------------------------
2345# sets LIBLTDL to the link flags for the libltdl convenience library and
2346# LTDLINCL to the include flags for the libltdl header and adds
2347# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
2348# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
2349# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
2350# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
2351# '${top_srcdir}/' (note the single quotes!). If your package is not
2352# flat and you're not using automake, define top_builddir and
2353# top_srcdir appropriately in the Makefiles.
2354AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2355[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2356 case $enable_ltdl_convenience in
2357 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2358 "") enable_ltdl_convenience=yes
2359 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2360 esac
2361 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2362 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2363 # For backwards non-gettext consistent compatibility...
2364 INCLTDL="$LTDLINCL"
2365])# AC_LIBLTDL_CONVENIENCE
2366
2367
2368# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2369# -----------------------------------
2370# sets LIBLTDL to the link flags for the libltdl installable library and
2371# LTDLINCL to the include flags for the libltdl header and adds
2372# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
2373# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
2374# DIRECTORY is not provided and an installed libltdl is not found, it is
2375# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
2376# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
2377# quotes!). If your package is not flat and you're not using automake,
2378# define top_builddir and top_srcdir appropriately in the Makefiles.
2379# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2380AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2381[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2382 AC_CHECK_LIB(ltdl, lt_dlinit,
2383 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2384 [if test x"$enable_ltdl_install" = xno; then
2385 AC_MSG_WARN([libltdl not installed, but installation disabled])
2386 else
2387 enable_ltdl_install=yes
2388 fi
2389 ])
2390 if test x"$enable_ltdl_install" = x"yes"; then
2391 ac_configure_args="$ac_configure_args --enable-ltdl-install"
2392 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2393 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2394 else
2395 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2396 LIBLTDL="-lltdl"
2397 LTDLINCL=
2398 fi
2399 # For backwards non-gettext consistent compatibility...
2400 INCLTDL="$LTDLINCL"
2401])# AC_LIBLTDL_INSTALLABLE
2402
2403
2404# AC_LIBTOOL_CXX
2405# --------------
2406# enable support for C++ libraries
2407AC_DEFUN([AC_LIBTOOL_CXX],
2408[AC_REQUIRE([_LT_AC_LANG_CXX])
2409])# AC_LIBTOOL_CXX
2410
2411
2412# _LT_AC_LANG_CXX
2413# ---------------
2414AC_DEFUN([_LT_AC_LANG_CXX],
2415[AC_REQUIRE([AC_PROG_CXX])
2416AC_REQUIRE([AC_PROG_CXXCPP])
2417_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2418])# _LT_AC_LANG_CXX
2419
2420
2421# AC_LIBTOOL_F77
2422# --------------
2423# enable support for Fortran 77 libraries
2424AC_DEFUN([AC_LIBTOOL_F77],
2425[AC_REQUIRE([_LT_AC_LANG_F77])
2426])# AC_LIBTOOL_F77
2427
2428
2429# _LT_AC_LANG_F77
2430# ---------------
2431AC_DEFUN([_LT_AC_LANG_F77],
2432[AC_REQUIRE([AC_PROG_F77])
2433_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2434])# _LT_AC_LANG_F77
2435
2436
2437# AC_LIBTOOL_GCJ
2438# --------------
2439# enable support for GCJ libraries
2440AC_DEFUN([AC_LIBTOOL_GCJ],
2441[AC_REQUIRE([_LT_AC_LANG_GCJ])
2442])# AC_LIBTOOL_GCJ
2443
2444
2445# _LT_AC_LANG_GCJ
2446# ---------------
2447AC_DEFUN([_LT_AC_LANG_GCJ],
2448[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2449 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2450 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2451 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2452 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2453 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2454_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2455])# _LT_AC_LANG_GCJ
2456
2457
2458# AC_LIBTOOL_RC
2459# --------------
2460# enable support for Windows resource files
2461AC_DEFUN([AC_LIBTOOL_RC],
2462[AC_REQUIRE([LT_AC_PROG_RC])
2463_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2464])# AC_LIBTOOL_RC
2465
2466
2467# AC_LIBTOOL_LANG_C_CONFIG
2468# ------------------------
2469# Ensure that the configuration vars for the C compiler are
2470# suitably defined. Those variables are subsequently used by
2471# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2472AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2473AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2474[lt_save_CC="$CC"
2475AC_LANG_PUSH(C)
2476
2477# Source file extension for C test sources.
2478ac_ext=c
2479
2480# Object file extension for compiled C test sources.
2481objext=o
2482_LT_AC_TAGVAR(objext, $1)=$objext
2483
2484# Code to be used in simple compile tests
2485lt_simple_compile_test_code="int some_variable = 0;\n"
2486
2487# Code to be used in simple link tests
2488lt_simple_link_test_code='int main(){return(0);}\n'
2489
2490_LT_AC_SYS_COMPILER
2491
2492#
2493# Check for any special shared library compilation flags.
2494#
2495_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
2496if test "$GCC" = no; then
2497 case $host_os in
2498 sco3.2v5*)
2499 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
2500 ;;
2501 esac
2502fi
2503if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
2504 AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
2505 if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
2506 else
2507 AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
2508 _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
2509 fi
2510fi
2511
2512
2513#
2514# Check to make sure the static flag actually works.
2515#
2516AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
2517 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
2518 $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
2519 [],
2520 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
2521
2522
2523## CAVEAT EMPTOR:
2524## There is no encapsulation within the following macros, do not change
2525## the running order or otherwise move them around unless you know exactly
2526## what you are doing...
2527AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2528AC_LIBTOOL_PROG_COMPILER_PIC($1)
2529AC_LIBTOOL_PROG_CC_C_O($1)
2530AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2531AC_LIBTOOL_PROG_LD_SHLIBS($1)
2532AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2533AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2534AC_LIBTOOL_SYS_LIB_STRIP
2535AC_LIBTOOL_DLOPEN_SELF($1)
2536
2537# Report which librarie types wil actually be built
2538AC_MSG_CHECKING([if libtool supports shared libraries])
2539AC_MSG_RESULT([$can_build_shared])
2540
2541AC_MSG_CHECKING([whether to build shared libraries])
2542test "$can_build_shared" = "no" && enable_shared=no
2543
2544# On AIX, shared libraries and static libraries use the same namespace, and
2545# are all built from PIC.
2546case "$host_os" in
2547aix3*)
2548 test "$enable_shared" = yes && enable_static=no
2549 if test -n "$RANLIB"; then
2550 archive_cmds="$archive_cmds~\$RANLIB \$lib"
2551 postinstall_cmds='$RANLIB $lib'
2552 fi
2553 ;;
2554
2555aix4* | aix5*)
2556 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2557 test "$enable_shared" = yes && enable_static=no
2558 fi
2559 ;;
2560 darwin* | rhapsody*)
2561 if test "$GCC" = yes; then
2562 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2563 case "$host_os" in
2564 rhapsody* | darwin1.[[012]])
2565 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
2566 ;;
2567 *) # Darwin 1.3 on
2568 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2569 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2570 else
2571 case ${MACOSX_DEPLOYMENT_TARGET} in
2572 10.[[012]])
2573 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2574 ;;
2575 10.*)
2576 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
2577 ;;
2578 esac
2579 fi
2580 ;;
2581 esac
2582 output_verbose_link_cmd='echo'
2583 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
2584 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2585 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
2586 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2587 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2588 _LT_AC_TAGVAR(hardcode_direct, $1)=no
2589 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2590 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2591 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
2592 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2593 else
2594 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2595 fi
2596 ;;
2597esac
2598AC_MSG_RESULT([$enable_shared])
2599
2600AC_MSG_CHECKING([whether to build static libraries])
2601# Make sure either enable_shared or enable_static is yes.
2602test "$enable_shared" = yes || enable_static=yes
2603AC_MSG_RESULT([$enable_static])
2604
2605AC_LIBTOOL_CONFIG($1)
2606
2607AC_LANG_POP
2608CC="$lt_save_CC"
2609])# AC_LIBTOOL_LANG_C_CONFIG
2610
2611
2612# AC_LIBTOOL_LANG_CXX_CONFIG
2613# --------------------------
2614# Ensure that the configuration vars for the C compiler are
2615# suitably defined. Those variables are subsequently used by
2616# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2617AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2618AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2619[AC_LANG_PUSH(C++)
2620AC_REQUIRE([AC_PROG_CXX])
2621AC_REQUIRE([AC_PROG_CXXCPP])
2622
2623_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2624_LT_AC_TAGVAR(allow_undefined_flag, $1)=
2625_LT_AC_TAGVAR(always_export_symbols, $1)=no
2626_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2627_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2628_LT_AC_TAGVAR(hardcode_direct, $1)=no
2629_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2630_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2631_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2632_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2633_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2634_LT_AC_TAGVAR(module_cmds, $1)=
2635_LT_AC_TAGVAR(module_expsym_cmds, $1)=
2636_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2637_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2638_LT_AC_TAGVAR(no_undefined_flag, $1)=
2639_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2640_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2641
2642# Dependencies to place before and after the object being linked:
2643_LT_AC_TAGVAR(predep_objects, $1)=
2644_LT_AC_TAGVAR(postdep_objects, $1)=
2645_LT_AC_TAGVAR(predeps, $1)=
2646_LT_AC_TAGVAR(postdeps, $1)=
2647_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2648
2649# Source file extension for C++ test sources.
2650ac_ext=cc
2651
2652# Object file extension for compiled C++ test sources.
2653objext=o
2654_LT_AC_TAGVAR(objext, $1)=$objext
2655
2656# Code to be used in simple compile tests
2657lt_simple_compile_test_code="int some_variable = 0;\n"
2658
2659# Code to be used in simple link tests
2660lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
2661
2662# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2663_LT_AC_SYS_COMPILER
2664
2665# Allow CC to be a program name with arguments.
2666lt_save_CC=$CC
2667lt_save_LD=$LD
2668lt_save_GCC=$GCC
2669GCC=$GXX
2670lt_save_with_gnu_ld=$with_gnu_ld
2671lt_save_path_LD=$lt_cv_path_LD
2672if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2673 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2674else
2675 unset lt_cv_prog_gnu_ld
2676fi
2677if test -n "${lt_cv_path_LDCXX+set}"; then
2678 lt_cv_path_LD=$lt_cv_path_LDCXX
2679else
2680 unset lt_cv_path_LD
2681fi
2682test -z "${LDCXX+set}" || LD=$LDCXX
2683CC=${CXX-"c++"}
2684compiler=$CC
2685_LT_AC_TAGVAR(compiler, $1)=$CC
2686cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
2687
2688# We don't want -fno-exception wen compiling C++ code, so set the
2689# no_builtin_flag separately
2690if test "$GXX" = yes; then
2691 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2692else
2693 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2694fi
2695
2696if test "$GXX" = yes; then
2697 # Set up default GNU C++ configuration
2698
2699 AC_PROG_LD
2700
2701 # Check if GNU C++ uses GNU ld as the underlying linker, since the
2702 # archiving commands below assume that GNU ld is being used.
2703 if test "$with_gnu_ld" = yes; then
2704 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2705 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2706
2707 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2708 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2709
2710 # If archive_cmds runs LD, not CC, wlarc should be empty
2711 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
2712 # investigate it a little bit more. (MM)
2713 wlarc='${wl}'
2714
2715 # ancient GNU ld didn't support --whole-archive et. al.
2716 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
2717 grep 'no-whole-archive' > /dev/null; then
2718 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2719 else
2720 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2721 fi
2722 else
2723 with_gnu_ld=no
2724 wlarc=
2725
2726 # A generic and very simple default shared library creation
2727 # command for GNU C++ for the case where it uses the native
2728 # linker, instead of GNU ld. If possible, this setting should
2729 # overridden to take advantage of the native linker features on
2730 # the platform it is being used on.
2731 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2732 fi
2733
2734 # Commands to make compiler produce verbose output that lists
2735 # what "hidden" libraries, object files and flags are used when
2736 # linking a shared library.
2737 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
2738
2739else
2740 GXX=no
2741 with_gnu_ld=no
2742 wlarc=
2743fi
2744
2745# PORTME: fill in a description of your system's C++ link characteristics
2746AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
2747_LT_AC_TAGVAR(ld_shlibs, $1)=yes
2748case $host_os in
2749 aix3*)
2750 # FIXME: insert proper C++ library support
2751 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2752 ;;
2753 aix4* | aix5*)
2754 if test "$host_cpu" = ia64; then
2755 # On IA64, the linker does run time linking by default, so we don't
2756 # have to do anything special.
2757 aix_use_runtimelinking=no
2758 exp_sym_flag='-Bexport'
2759 no_entry_flag=""
2760 else
2761 aix_use_runtimelinking=no
2762
2763 # Test if we are trying to use run time linking or normal
2764 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
2765 # need to do runtime linking.
2766 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
2767 for ld_flag in $LDFLAGS; do
2768 case $ld_flag in
2769 *-brtl*)
2770 aix_use_runtimelinking=yes
2771 break
2772 ;;
2773 esac
2774 done
2775 esac
2776
2777 exp_sym_flag='-bexport'
2778 no_entry_flag='-bnoentry'
2779 fi
2780
2781 # When large executables or shared objects are built, AIX ld can
2782 # have problems creating the table of contents. If linking a library
2783 # or program results in "error TOC overflow" add -mminimal-toc to
2784 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
2785 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
2786
2787 _LT_AC_TAGVAR(archive_cmds, $1)=''
2788 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2789 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
2790 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2791
2792 if test "$GXX" = yes; then
2793 case $host_os in aix4.[012]|aix4.[012].*)
2794 # We only want to do this on AIX 4.2 and lower, the check
2795 # below for broken collect2 doesn't work under 4.3+
2796 collect2name=`${CC} -print-prog-name=collect2`
2797 if test -f "$collect2name" && \
2798 strings "$collect2name" | grep resolve_lib_name >/dev/null
2799 then
2800 # We have reworked collect2
2801 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2802 else
2803 # We have old collect2
2804 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
2805 # It fails to find uninstalled libraries when the uninstalled
2806 # path is not listed in the libpath. Setting hardcode_minus_L
2807 # to unsupported forces relinking
2808 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
2809 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2810 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2811 fi
2812 esac
2813 shared_flag='-shared'
2814 else
2815 # not using gcc
2816 if test "$host_cpu" = ia64; then
2817 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
2818 # chokes on -Wl,-G. The following line is correct:
2819 shared_flag='-G'
2820 else
2821 if test "$aix_use_runtimelinking" = yes; then
2822 shared_flag='${wl}-G'
2823 else
2824 shared_flag='${wl}-bM:SRE'
2825 fi
2826 fi
2827 fi
2828
2829 # It seems that -bexpall does not export symbols beginning with
2830 # underscore (_), so it is better to generate a list of symbols to export.
2831 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
2832 if test "$aix_use_runtimelinking" = yes; then
2833 # Warning - without using the other runtime loading flags (-brtl),
2834 # -berok will link without error, but may produce a broken library.
2835 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
2836 # Determine the default libpath from the value encoded in an empty executable.
2837 _LT_AC_SYS_LIBPATH_AIX
2838 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2839
2840 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
2841 else
2842 if test "$host_cpu" = ia64; then
2843 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
2844 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2845 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
2846 else
2847 # Determine the default libpath from the value encoded in an empty executable.
2848 _LT_AC_SYS_LIBPATH_AIX
2849 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2850 # Warning - without using the other run time loading flags,
2851 # -berok will link without error, but may produce a broken library.
2852 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2853 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2854 # -bexpall does not export symbols beginning with underscore (_)
2855 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
2856 # Exported symbols can be pulled into shared objects from archives
2857 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
2858 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2859 # This is similar to how AIX traditionally builds it's shared libraries.
2860 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
2861 fi
2862 fi
2863 ;;
2864 chorus*)
2865 case $cc_basename in
2866 *)
2867 # FIXME: insert proper C++ library support
2868 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2869 ;;
2870 esac
2871 ;;
2872
2873 cygwin* | mingw* | pw32*)
2874 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
2875 # as there is no search path for DLLs.
2876 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2877 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
2878 _LT_AC_TAGVAR(always_export_symbols, $1)=no
2879 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
2880
2881 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
2882 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
2883 # If the export-symbols file already is a .def file (1st line
2884 # is EXPORTS), use it as is; otherwise, prepend...
2885 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
2886 cp $export_symbols $output_objdir/$soname.def;
2887 else
2888 echo EXPORTS > $output_objdir/$soname.def;
2889 cat $export_symbols >> $output_objdir/$soname.def;
2890 fi~
2891 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
2892 else
2893 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2894 fi
2895 ;;
2896
2897 darwin* | rhapsody*)
2898 if test "$GXX" = yes; then
2899 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2900 case "$host_os" in
2901 rhapsody* | darwin1.[[012]])
2902 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
2903 ;;
2904 *) # Darwin 1.3 on
2905 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2906 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2907 else
2908 case ${MACOSX_DEPLOYMENT_TARGET} in
2909 10.[[012]])
2910 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2911 ;;
2912 10.*)
2913 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
2914 ;;
2915 esac
2916 fi
2917 ;;
2918 esac
2919 lt_int_apple_cc_single_mod=no
2920 output_verbose_link_cmd='echo'
2921 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
2922 lt_int_apple_cc_single_mod=yes
2923 fi
2924 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2925 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2926 else
2927 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2928 fi
2929 _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2930
2931 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
2932 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2933 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2934 else
2935 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2936 fi
2937 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2938 _LT_AC_TAGVAR(hardcode_direct, $1)=no
2939 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2940 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2941 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
2942 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2943 else
2944 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2945 fi
2946 ;;
2947
2948 dgux*)
2949 case $cc_basename in
2950 ec++)
2951 # FIXME: insert proper C++ library support
2952 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2953 ;;
2954 ghcx)
2955 # Green Hills C++ Compiler
2956 # FIXME: insert proper C++ library support
2957 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2958 ;;
2959 *)
2960 # FIXME: insert proper C++ library support
2961 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2962 ;;
2963 esac
2964 ;;
2965 freebsd[12]*)
2966 # C++ shared libraries reported to be fairly broken before switch to ELF
2967 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2968 ;;
2969 freebsd-elf*)
2970 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2971 ;;
2972 freebsd* | kfreebsd*-gnu)
2973 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
2974 # conventions
2975 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
2976 ;;
2977 gnu*)
2978 ;;
2979 hpux9*)
2980 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
2981 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2982 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
2983 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2984 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
2985 # but as the default
2986 # location of the library.
2987
2988 case $cc_basename in
2989 CC)
2990 # FIXME: insert proper C++ library support
2991 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2992 ;;
2993 aCC)
2994 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
2995 # Commands to make compiler produce verbose output that lists
2996 # what "hidden" libraries, object files and flags are used when
2997 # linking a shared library.
2998 #
2999 # There doesn't appear to be a way to prevent this compiler from
3000 # explicitly linking system object files so we need to strip them
3001 # from the output so that they don't get included in the library
3002 # dependencies.
3003 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3004 ;;
3005 *)
3006 if test "$GXX" = yes; then
3007 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3008 else
3009 # FIXME: insert proper C++ library support
3010 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3011 fi
3012 ;;
3013 esac
3014 ;;
3015 hpux10*|hpux11*)
3016 if test $with_gnu_ld = no; then
3017 case "$host_cpu" in
3018 hppa*64*)
3019 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3020 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3021 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3022 ;;
3023 ia64*)
3024 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3025 ;;
3026 *)
3027 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3028 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3029 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3030 ;;
3031 esac
3032 fi
3033 case "$host_cpu" in
3034 hppa*64*)
3035 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3036 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3037 ;;
3038 ia64*)
3039 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3040 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3041 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3042 # but as the default
3043 # location of the library.
3044 ;;
3045 *)
3046 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3047 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3048 # but as the default
3049 # location of the library.
3050 ;;
3051 esac
3052
3053 case $cc_basename in
3054 CC)
3055 # FIXME: insert proper C++ library support
3056 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3057 ;;
3058 aCC)
3059 case "$host_cpu" in
3060 hppa*64*|ia64*)
3061 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3062 ;;
3063 *)
3064 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3065 ;;
3066 esac
3067 # Commands to make compiler produce verbose output that lists
3068 # what "hidden" libraries, object files and flags are used when
3069 # linking a shared library.
3070 #
3071 # There doesn't appear to be a way to prevent this compiler from
3072 # explicitly linking system object files so we need to strip them
3073 # from the output so that they don't get included in the library
3074 # dependencies.
3075 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3076 ;;
3077 *)
3078 if test "$GXX" = yes; then
3079 if test $with_gnu_ld = no; then
3080 case "$host_cpu" in
3081 ia64*|hppa*64*)
3082 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3083 ;;
3084 *)
3085 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3086 ;;
3087 esac
3088 fi
3089 else
3090 # FIXME: insert proper C++ library support
3091 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3092 fi
3093 ;;
3094 esac
3095 ;;
3096 irix5* | irix6*)
3097 case $cc_basename in
3098 CC)
3099 # SGI C++
3100 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
3101
3102 # Archives containing C++ object files must be created using
3103 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
3104 # necessary to make sure instantiated templates are included
3105 # in the archive.
3106 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3107 ;;
3108 *)
3109 if test "$GXX" = yes; then
3110 if test "$with_gnu_ld" = no; then
3111 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
3112 else
3113 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
3114 fi
3115 fi
3116 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3117 ;;
3118 esac
3119 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3120 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3121 ;;
3122 linux*)
3123 case $cc_basename in
3124 KCC)
3125 # Kuck and Associates, Inc. (KAI) C++ Compiler
3126
3127 # KCC will only create a shared library if the output file
3128 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3129 # to its proper name (with version) after linking.
3130 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
3131 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
3132 # Commands to make compiler produce verbose output that lists
3133 # what "hidden" libraries, object files and flags are used when
3134 # linking a shared library.
3135 #
3136 # There doesn't appear to be a way to prevent this compiler from
3137 # explicitly linking system object files so we need to strip them
3138 # from the output so that they don't get included in the library
3139 # dependencies.
3140 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3141
3142 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3143 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3144
3145 # Archives containing C++ object files must be created using
3146 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3147 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3148 ;;
3149 icpc)
3150 # Intel C++
3151 with_gnu_ld=yes
3152 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3153 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3154 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3155 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3156 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3157 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3158 ;;
3159 cxx)
3160 # Compaq C++
3161 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3162 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
3163
3164 runpath_var=LD_RUN_PATH
3165 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3166 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3167
3168 # Commands to make compiler produce verbose output that lists
3169 # what "hidden" libraries, object files and flags are used when
3170 # linking a shared library.
3171 #
3172 # There doesn't appear to be a way to prevent this compiler from
3173 # explicitly linking system object files so we need to strip them
3174 # from the output so that they don't get included in the library
3175 # dependencies.
3176 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3177 ;;
3178 esac
3179 ;;
3180 lynxos*)
3181 # FIXME: insert proper C++ library support
3182 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3183 ;;
3184 m88k*)
3185 # FIXME: insert proper C++ library support
3186 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3187 ;;
3188 mvs*)
3189 case $cc_basename in
3190 cxx)
3191 # FIXME: insert proper C++ library support
3192 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3193 ;;
3194 *)
3195 # FIXME: insert proper C++ library support
3196 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3197 ;;
3198 esac
3199 ;;
3200 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3201 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3202 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3203 wlarc=
3204 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3205 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3206 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3207 fi
3208 # Workaround some broken pre-1.5 toolchains
3209 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3210 ;;
3211 osf3*)
3212 case $cc_basename in
3213 KCC)
3214 # Kuck and Associates, Inc. (KAI) C++ Compiler
3215
3216 # KCC will only create a shared library if the output file
3217 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3218 # to its proper name (with version) after linking.
3219 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
3220
3221 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3222 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3223
3224 # Archives containing C++ object files must be created using
3225 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3226 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3227
3228 ;;
3229 RCC)
3230 # Rational C++ 2.4.1
3231 # FIXME: insert proper C++ library support
3232 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3233 ;;
3234 cxx)
3235 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3236 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
3237
3238 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3239 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3240
3241 # Commands to make compiler produce verbose output that lists
3242 # what "hidden" libraries, object files and flags are used when
3243 # linking a shared library.
3244 #
3245 # There doesn't appear to be a way to prevent this compiler from
3246 # explicitly linking system object files so we need to strip them
3247 # from the output so that they don't get included in the library
3248 # dependencies.
3249 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3250 ;;
3251 *)
3252 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3253 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3254 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
3255
3256 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3257 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3258
3259 # Commands to make compiler produce verbose output that lists
3260 # what "hidden" libraries, object files and flags are used when
3261 # linking a shared library.
3262 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3263
3264 else
3265 # FIXME: insert proper C++ library support
3266 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3267 fi
3268 ;;
3269 esac
3270 ;;
3271 osf4* | osf5*)
3272 case $cc_basename in
3273 KCC)
3274 # Kuck and Associates, Inc. (KAI) C++ Compiler
3275
3276 # KCC will only create a shared library if the output file
3277 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3278 # to its proper name (with version) after linking.
3279 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
3280
3281 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3282 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3283
3284 # Archives containing C++ object files must be created using
3285 # the KAI C++ compiler.
3286 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3287 ;;
3288 RCC)
3289 # Rational C++ 2.4.1
3290 # FIXME: insert proper C++ library support
3291 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3292 ;;
3293 cxx)
3294 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3295 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
3296 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3297 echo "-hidden">> $lib.exp~
3298 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
3299 $rm $lib.exp'
3300
3301 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3302 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3303
3304 # Commands to make compiler produce verbose output that lists
3305 # what "hidden" libraries, object files and flags are used when
3306 # linking a shared library.
3307 #
3308 # There doesn't appear to be a way to prevent this compiler from
3309 # explicitly linking system object files so we need to strip them
3310 # from the output so that they don't get included in the library
3311 # dependencies.
3312 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3313 ;;
3314 *)
3315 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3316 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3317 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
3318
3319 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3320 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3321
3322 # Commands to make compiler produce verbose output that lists
3323 # what "hidden" libraries, object files and flags are used when
3324 # linking a shared library.
3325 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3326
3327 else
3328 # FIXME: insert proper C++ library support
3329 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3330 fi
3331 ;;
3332 esac
3333 ;;
3334 psos*)
3335 # FIXME: insert proper C++ library support
3336 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3337 ;;
3338 sco*)
3339 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3340 case $cc_basename in
3341 CC)
3342 # FIXME: insert proper C++ library support
3343 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3344 ;;
3345 *)
3346 # FIXME: insert proper C++ library support
3347 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3348 ;;
3349 esac
3350 ;;
3351 sunos4*)
3352 case $cc_basename in
3353 CC)
3354 # Sun C++ 4.x
3355 # FIXME: insert proper C++ library support
3356 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3357 ;;
3358 lcc)
3359 # Lucid
3360 # FIXME: insert proper C++ library support
3361 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3362 ;;
3363 *)
3364 # FIXME: insert proper C++ library support
3365 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3366 ;;
3367 esac
3368 ;;
3369 solaris*)
3370 case $cc_basename in
3371 CC)
3372 # Sun C++ 4.2, 5.x and Centerline C++
3373 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3374 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3375 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3376 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3377
3378 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3379 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3380 case $host_os in
3381 solaris2.[0-5] | solaris2.[0-5].*) ;;
3382 *)
3383 # The C++ compiler is used as linker so we must use $wl
3384 # flag to pass the commands to the underlying system
3385 # linker.
3386 # Supported since Solaris 2.6 (maybe 2.5.1?)
3387 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3388 ;;
3389 esac
3390 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3391
3392 # Commands to make compiler produce verbose output that lists
3393 # what "hidden" libraries, object files and flags are used when
3394 # linking a shared library.
3395 #
3396 # There doesn't appear to be a way to prevent this compiler from
3397 # explicitly linking system object files so we need to strip them
3398 # from the output so that they don't get included in the library
3399 # dependencies.
3400 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3401
3402 # Archives containing C++ object files must be created using
3403 # "CC -xar", where "CC" is the Sun C++ compiler. This is
3404 # necessary to make sure instantiated templates are included
3405 # in the archive.
3406 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3407 ;;
3408 gcx)
3409 # Green Hills C++ Compiler
3410 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3411
3412 # The C++ compiler must be used to create the archive.
3413 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3414 ;;
3415 *)
3416 # GNU C++ compiler with Solaris linker
3417 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3418 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3419 if $CC --version | grep -v '^2\.7' > /dev/null; then
3420 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3421 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3422 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3423
3424 # Commands to make compiler produce verbose output that lists
3425 # what "hidden" libraries, object files and flags are used when
3426 # linking a shared library.
3427 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3428 else
3429 # g++ 2.7 appears to require `-G' NOT `-shared' on this
3430 # platform.
3431 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3432 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3433 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3434
3435 # Commands to make compiler produce verbose output that lists
3436 # what "hidden" libraries, object files and flags are used when
3437 # linking a shared library.
3438 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3439 fi
3440
3441 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3442 fi
3443 ;;
3444 esac
3445 ;;
3446 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
3447 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3448 ;;
3449 tandem*)
3450 case $cc_basename in
3451 NCC)
3452 # NonStop-UX NCC 3.20
3453 # FIXME: insert proper C++ library support
3454 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3455 ;;
3456 *)
3457 # FIXME: insert proper C++ library support
3458 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3459 ;;
3460 esac
3461 ;;
3462 vxworks*)
3463 # FIXME: insert proper C++ library support
3464 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3465 ;;
3466 *)
3467 # FIXME: insert proper C++ library support
3468 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3469 ;;
3470esac
3471AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
3472test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3473
3474_LT_AC_TAGVAR(GCC, $1)="$GXX"
3475_LT_AC_TAGVAR(LD, $1)="$LD"
3476
3477## CAVEAT EMPTOR:
3478## There is no encapsulation within the following macros, do not change
3479## the running order or otherwise move them around unless you know exactly
3480## what you are doing...
3481AC_LIBTOOL_POSTDEP_PREDEP($1)
3482AC_LIBTOOL_PROG_COMPILER_PIC($1)
3483AC_LIBTOOL_PROG_CC_C_O($1)
3484AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3485AC_LIBTOOL_PROG_LD_SHLIBS($1)
3486AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3487AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3488AC_LIBTOOL_SYS_LIB_STRIP
3489AC_LIBTOOL_DLOPEN_SELF($1)
3490
3491AC_LIBTOOL_CONFIG($1)
3492
3493AC_LANG_POP
3494CC=$lt_save_CC
3495LDCXX=$LD
3496LD=$lt_save_LD
3497GCC=$lt_save_GCC
3498with_gnu_ldcxx=$with_gnu_ld
3499with_gnu_ld=$lt_save_with_gnu_ld
3500lt_cv_path_LDCXX=$lt_cv_path_LD
3501lt_cv_path_LD=$lt_save_path_LD
3502lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3503lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3504])# AC_LIBTOOL_LANG_CXX_CONFIG
3505
3506# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3507# ------------------------
3508# Figure out "hidden" library dependencies from verbose
3509# compiler output when linking a shared library.
3510# Parse the compiler output and extract the necessary
3511# objects, libraries and library flags.
3512AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
3513dnl we can't use the lt_simple_compile_test_code here,
3514dnl because it contains code intended for an executable,
3515dnl not a library. It's possible we should let each
3516dnl tag define a new lt_????_link_test_code variable,
3517dnl but it's only used here...
3518ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3519int a;
3520void foo (void) { a = 0; }
3521EOF
3522],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
3523class Foo
3524{
3525public:
3526 Foo (void) { a = 0; }
3527private:
3528 int a;
3529};
3530EOF
3531],[$1],[F77],[cat > conftest.$ac_ext <<EOF
3532 subroutine foo
3533 implicit none
3534 integer*4 a
3535 a=0
3536 return
3537 end
3538EOF
3539],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
3540public class foo {
3541 private int a;
3542 public void bar (void) {
3543 a = 0;
3544 }
3545};
3546EOF
3547])
3548dnl Parse the compiler output and extract the necessary
3549dnl objects, libraries and library flags.
3550if AC_TRY_EVAL(ac_compile); then
3551 # Parse the compiler output and extract the necessary
3552 # objects, libraries and library flags.
3553
3554 # Sentinel used to keep track of whether or not we are before
3555 # the conftest object file.
3556 pre_test_object_deps_done=no
3557
3558 # The `*' in the case matches for architectures that use `case' in
3559 # $output_verbose_cmd can trigger glob expansion during the loop
3560 # eval without this substitution.
3561 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
3562
3563 for p in `eval $output_verbose_link_cmd`; do
3564 case $p in
3565
3566 -L* | -R* | -l*)
3567 # Some compilers place space between "-{L,R}" and the path.
3568 # Remove the space.
3569 if test $p = "-L" \
3570 || test $p = "-R"; then
3571 prev=$p
3572 continue
3573 else
3574 prev=
3575 fi
3576
3577 if test "$pre_test_object_deps_done" = no; then
3578 case $p in
3579 -L* | -R*)
3580 # Internal compiler library paths should come after those
3581 # provided the user. The postdeps already come after the
3582 # user supplied libs so there is no need to process them.
3583 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3584 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
3585 else
3586 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
3587 fi
3588 ;;
3589 # The "-l" case would never come before the object being
3590 # linked, so don't bother handling this case.
3591 esac
3592 else
3593 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
3594 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
3595 else
3596 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
3597 fi
3598 fi
3599 ;;
3600
3601 *.$objext)
3602 # This assumes that the test object file only shows up
3603 # once in the compiler output.
3604 if test "$p" = "conftest.$objext"; then
3605 pre_test_object_deps_done=yes
3606 continue
3607 fi
3608
3609 if test "$pre_test_object_deps_done" = no; then
3610 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
3611 _LT_AC_TAGVAR(predep_objects, $1)="$p"
3612 else
3613 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
3614 fi
3615 else
3616 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
3617 _LT_AC_TAGVAR(postdep_objects, $1)="$p"
3618 else
3619 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
3620 fi
3621 fi
3622 ;;
3623
3624 *) ;; # Ignore the rest.
3625
3626 esac
3627 done
3628
3629 # Clean up.
3630 rm -f a.out a.exe
3631else
3632 echo "libtool.m4: error: problem compiling $1 test program"
3633fi
3634
3635$rm -f confest.$objext
3636
3637case " $_LT_AC_TAGVAR(postdeps, $1) " in
3638*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3639esac
3640])# AC_LIBTOOL_POSTDEP_PREDEP
3641
3642# AC_LIBTOOL_LANG_F77_CONFIG
3643# ------------------------
3644# Ensure that the configuration vars for the C compiler are
3645# suitably defined. Those variables are subsequently used by
3646# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3647AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
3648AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
3649[AC_REQUIRE([AC_PROG_F77])
3650AC_LANG_PUSH(Fortran 77)
3651
3652_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3653_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3654_LT_AC_TAGVAR(always_export_symbols, $1)=no
3655_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3656_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3657_LT_AC_TAGVAR(hardcode_direct, $1)=no
3658_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3659_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3660_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3661_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3662_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3663_LT_AC_TAGVAR(module_cmds, $1)=
3664_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3665_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3666_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3667_LT_AC_TAGVAR(no_undefined_flag, $1)=
3668_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3669_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3670
3671# Source file extension for f77 test sources.
3672ac_ext=f
3673
3674# Object file extension for compiled f77 test sources.
3675objext=o
3676_LT_AC_TAGVAR(objext, $1)=$objext
3677
3678# Code to be used in simple compile tests
3679lt_simple_compile_test_code=" subroutine t\n return\n end\n"
3680
3681# Code to be used in simple link tests
3682lt_simple_link_test_code=" program t\n end\n"
3683
3684# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3685_LT_AC_SYS_COMPILER
3686
3687# Allow CC to be a program name with arguments.
3688lt_save_CC="$CC"
3689CC=${F77-"f77"}
3690compiler=$CC
3691_LT_AC_TAGVAR(compiler, $1)=$CC
3692cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
3693
3694AC_MSG_CHECKING([if libtool supports shared libraries])
3695AC_MSG_RESULT([$can_build_shared])
3696
3697AC_MSG_CHECKING([whether to build shared libraries])
3698test "$can_build_shared" = "no" && enable_shared=no
3699
3700# On AIX, shared libraries and static libraries use the same namespace, and
3701# are all built from PIC.
3702case "$host_os" in
3703aix3*)
3704 test "$enable_shared" = yes && enable_static=no
3705 if test -n "$RANLIB"; then
3706 archive_cmds="$archive_cmds~\$RANLIB \$lib"
3707 postinstall_cmds='$RANLIB $lib'
3708 fi
3709 ;;
3710aix4* | aix5*)
3711 test "$enable_shared" = yes && enable_static=no
3712 ;;
3713esac
3714AC_MSG_RESULT([$enable_shared])
3715
3716AC_MSG_CHECKING([whether to build static libraries])
3717# Make sure either enable_shared or enable_static is yes.
3718test "$enable_shared" = yes || enable_static=yes
3719AC_MSG_RESULT([$enable_static])
3720
3721test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3722
3723_LT_AC_TAGVAR(GCC, $1)="$G77"
3724_LT_AC_TAGVAR(LD, $1)="$LD"
3725
3726AC_LIBTOOL_PROG_COMPILER_PIC($1)
3727AC_LIBTOOL_PROG_CC_C_O($1)
3728AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3729AC_LIBTOOL_PROG_LD_SHLIBS($1)
3730AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3731AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3732AC_LIBTOOL_SYS_LIB_STRIP
3733
3734
3735AC_LIBTOOL_CONFIG($1)
3736
3737AC_LANG_POP
3738CC="$lt_save_CC"
3739])# AC_LIBTOOL_LANG_F77_CONFIG
3740
3741
3742# AC_LIBTOOL_LANG_GCJ_CONFIG
3743# --------------------------
3744# Ensure that the configuration vars for the C compiler are
3745# suitably defined. Those variables are subsequently used by
3746# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3747AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
3748AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
3749[AC_LANG_SAVE
3750
3751# Source file extension for Java test sources.
3752ac_ext=java
3753
3754# Object file extension for compiled Java test sources.
3755objext=o
3756_LT_AC_TAGVAR(objext, $1)=$objext
3757
3758# Code to be used in simple compile tests
3759lt_simple_compile_test_code="class foo {}\n"
3760
3761# Code to be used in simple link tests
3762lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
3763
3764# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3765_LT_AC_SYS_COMPILER
3766
3767# Allow CC to be a program name with arguments.
3768lt_save_CC="$CC"
3769CC=${GCJ-"gcj"}
3770compiler=$CC
3771_LT_AC_TAGVAR(compiler, $1)=$CC
3772
3773# GCJ did not exist at the time GCC didn't implicitly link libc in.
3774_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3775
3776## CAVEAT EMPTOR:
3777## There is no encapsulation within the following macros, do not change
3778## the running order or otherwise move them around unless you know exactly
3779## what you are doing...
3780AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3781AC_LIBTOOL_PROG_COMPILER_PIC($1)
3782AC_LIBTOOL_PROG_CC_C_O($1)
3783AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3784AC_LIBTOOL_PROG_LD_SHLIBS($1)
3785AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3786AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3787AC_LIBTOOL_SYS_LIB_STRIP
3788AC_LIBTOOL_DLOPEN_SELF($1)
3789
3790AC_LIBTOOL_CONFIG($1)
3791
3792AC_LANG_RESTORE
3793CC="$lt_save_CC"
3794])# AC_LIBTOOL_LANG_GCJ_CONFIG
3795
3796
3797# AC_LIBTOOL_LANG_RC_CONFIG
3798# --------------------------
3799# Ensure that the configuration vars for the Windows resource compiler are
3800# suitably defined. Those variables are subsequently used by
3801# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3802AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
3803AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
3804[AC_LANG_SAVE
3805
3806# Source file extension for RC test sources.
3807ac_ext=rc
3808
3809# Object file extension for compiled RC test sources.
3810objext=o
3811_LT_AC_TAGVAR(objext, $1)=$objext
3812
3813# Code to be used in simple compile tests
3814lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
3815
3816# Code to be used in simple link tests
3817lt_simple_link_test_code="$lt_simple_compile_test_code"
3818
3819# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3820_LT_AC_SYS_COMPILER
3821
3822# Allow CC to be a program name with arguments.
3823lt_save_CC="$CC"
3824CC=${RC-"windres"}
3825compiler=$CC
3826_LT_AC_TAGVAR(compiler, $1)=$CC
3827_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
3828
3829AC_LIBTOOL_CONFIG($1)
3830
3831AC_LANG_RESTORE
3832CC="$lt_save_CC"
3833])# AC_LIBTOOL_LANG_RC_CONFIG
3834
3835
3836# AC_LIBTOOL_CONFIG([TAGNAME])
3837# ----------------------------
3838# If TAGNAME is not passed, then create an initial libtool script
3839# with a default configuration from the untagged config vars. Otherwise
3840# add code to config.status for appending the configuration named by
3841# TAGNAME from the matching tagged config vars.
3842AC_DEFUN([AC_LIBTOOL_CONFIG],
3843[# The else clause should only fire when bootstrapping the
3844# libtool distribution, otherwise you forgot to ship ltmain.sh
3845# with your package, and you will get complaints that there are
3846# no rules to generate ltmain.sh.
3847if test -f "$ltmain"; then
3848 # See if we are running on zsh, and set the options which allow our commands through
3849 # without removal of \ escapes.
3850 if test -n "${ZSH_VERSION+set}" ; then
3851 setopt NO_GLOB_SUBST
3852 fi
3853 # Now quote all the things that may contain metacharacters while being
3854 # careful not to overquote the AC_SUBSTed values. We take copies of the
3855 # variables and quote the copies for generation of the libtool script.
3856 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
3857 SED SHELL STRIP \
3858 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
3859 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
3860 deplibs_check_method reload_flag reload_cmds need_locks \
3861 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
3862 lt_cv_sys_global_symbol_to_c_name_address \
3863 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
3864 old_postinstall_cmds old_postuninstall_cmds \
3865 _LT_AC_TAGVAR(compiler, $1) \
3866 _LT_AC_TAGVAR(CC, $1) \
3867 _LT_AC_TAGVAR(LD, $1) \
3868 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
3869 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
3870 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
3871 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
3872 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
3873 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
3874 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
3875 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
3876 _LT_AC_TAGVAR(old_archive_cmds, $1) \
3877 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
3878 _LT_AC_TAGVAR(predep_objects, $1) \
3879 _LT_AC_TAGVAR(postdep_objects, $1) \
3880 _LT_AC_TAGVAR(predeps, $1) \
3881 _LT_AC_TAGVAR(postdeps, $1) \
3882 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
3883 _LT_AC_TAGVAR(archive_cmds, $1) \
3884 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
3885 _LT_AC_TAGVAR(postinstall_cmds, $1) \
3886 _LT_AC_TAGVAR(postuninstall_cmds, $1) \
3887 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
3888 _LT_AC_TAGVAR(allow_undefined_flag, $1) \
3889 _LT_AC_TAGVAR(no_undefined_flag, $1) \
3890 _LT_AC_TAGVAR(export_symbols_cmds, $1) \
3891 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
3892 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
3893 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
3894 _LT_AC_TAGVAR(hardcode_automatic, $1) \
3895 _LT_AC_TAGVAR(module_cmds, $1) \
3896 _LT_AC_TAGVAR(module_expsym_cmds, $1) \
3897 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
3898 _LT_AC_TAGVAR(exclude_expsyms, $1) \
3899 _LT_AC_TAGVAR(include_expsyms, $1); do
3900
3901 case $var in
3902 _LT_AC_TAGVAR(old_archive_cmds, $1) | \
3903 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
3904 _LT_AC_TAGVAR(archive_cmds, $1) | \
3905 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
3906 _LT_AC_TAGVAR(module_cmds, $1) | \
3907 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
3908 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
3909 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
3910 extract_expsyms_cmds | reload_cmds | finish_cmds | \
3911 postinstall_cmds | postuninstall_cmds | \
3912 old_postinstall_cmds | old_postuninstall_cmds | \
3913 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
3914 # Double-quote double-evaled strings.
3915 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
3916 ;;
3917 *)
3918 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
3919 ;;
3920 esac
3921 done
3922
3923 case $lt_echo in
3924 *'\[$]0 --fallback-echo"')
3925 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
3926 ;;
3927 esac
3928
3929ifelse([$1], [],
3930 [cfgfile="${ofile}T"
3931 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
3932 $rm -f "$cfgfile"
3933 AC_MSG_NOTICE([creating $ofile])],
3934 [cfgfile="$ofile"])
3935
3936 cat <<__EOF__ >> "$cfgfile"
3937ifelse([$1], [],
3938[#! $SHELL
3939
3940# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
3941# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
3942# NOTE: Changes made to this file will be lost: look at ltmain.sh.
3943#
3944# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
3945# Free Software Foundation, Inc.
3946#
3947# This file is part of GNU Libtool:
3948# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
3949#
3950# This program is free software; you can redistribute it and/or modify
3951# it under the terms of the GNU General Public License as published by
3952# the Free Software Foundation; either version 2 of the License, or
3953# (at your option) any later version.
3954#
3955# This program is distributed in the hope that it will be useful, but
3956# WITHOUT ANY WARRANTY; without even the implied warranty of
3957# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
3958# General Public License for more details.
3959#
3960# You should have received a copy of the GNU General Public License
3961# along with this program; if not, write to the Free Software
3962# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3963#
3964# As a special exception to the GNU General Public License, if you
3965# distribute this file as part of a program that contains a
3966# configuration script generated by Autoconf, you may include it under
3967# the same distribution terms that you use for the rest of that program.
3968
3969# A sed program that does not truncate output.
3970SED=$lt_SED
3971
3972# Sed that helps us avoid accidentally triggering echo(1) options like -n.
3973Xsed="$SED -e s/^X//"
3974
3975# The HP-UX ksh and POSIX shell print the target directory to stdout
3976# if CDPATH is set.
3977if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
3978
3979# The names of the tagged configurations supported by this script.
3980available_tags=
3981
3982# ### BEGIN LIBTOOL CONFIG],
3983[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
3984
3985# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3986
3987# Shell to use when invoking shell scripts.
3988SHELL=$lt_SHELL
3989
3990# Whether or not to build shared libraries.
3991build_libtool_libs=$enable_shared
3992
3993# Whether or not to build static libraries.
3994build_old_libs=$enable_static
3995
3996# Whether or not to add -lc for building shared libraries.
3997build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
3998
3999# Whether or not to disallow shared libs when runtime libs are static
4000allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4001
4002# Whether or not to optimize for fast installation.
4003fast_install=$enable_fast_install
4004
4005# The host system.
4006host_alias=$host_alias
4007host=$host
4008
4009# An echo program that does not interpret backslashes.
4010echo=$lt_echo
4011
4012# The archiver.
4013AR=$lt_AR
4014AR_FLAGS=$lt_AR_FLAGS
4015
4016# A C compiler.
4017LTCC=$lt_LTCC
4018
4019# A language-specific compiler.
4020CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4021
4022# Is the compiler the GNU C compiler?
4023with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4024
4025# An ERE matcher.
4026EGREP=$lt_EGREP
4027
4028# The linker used to build libraries.
4029LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4030
4031# Whether we need hard or soft links.
4032LN_S=$lt_LN_S
4033
4034# A BSD-compatible nm program.
4035NM=$lt_NM
4036
4037# A symbol stripping program
4038STRIP=$lt_STRIP
4039
4040# Used to examine libraries when file_magic_cmd begins "file"
4041MAGIC_CMD=$MAGIC_CMD
4042
4043# Used on cygwin: DLL creation program.
4044DLLTOOL="$DLLTOOL"
4045
4046# Used on cygwin: object dumper.
4047OBJDUMP="$OBJDUMP"
4048
4049# Used on cygwin: assembler.
4050AS="$AS"
4051
4052# The name of the directory that contains temporary libtool files.
4053objdir=$objdir
4054
4055# How to create reloadable object files.
4056reload_flag=$lt_reload_flag
4057reload_cmds=$lt_reload_cmds
4058
4059# How to pass a linker flag through the compiler.
4060wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4061
4062# Object file suffix (normally "o").
4063objext="$ac_objext"
4064
4065# Old archive suffix (normally "a").
4066libext="$libext"
4067
4068# Shared library suffix (normally ".so").
4069shrext_cmds='$shrext_cmds'
4070
4071# Executable file suffix (normally "").
4072exeext="$exeext"
4073
4074# Additional compiler flags for building library objects.
4075pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4076pic_mode=$pic_mode
4077
4078# What is the maximum length of a command?
4079max_cmd_len=$lt_cv_sys_max_cmd_len
4080
4081# Does compiler simultaneously support -c and -o options?
4082compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4083
4084# Must we lock files when doing compilation ?
4085need_locks=$lt_need_locks
4086
4087# Do we need the lib prefix for modules?
4088need_lib_prefix=$need_lib_prefix
4089
4090# Do we need a version for libraries?
4091need_version=$need_version
4092
4093# Whether dlopen is supported.
4094dlopen_support=$enable_dlopen
4095
4096# Whether dlopen of programs is supported.
4097dlopen_self=$enable_dlopen_self
4098
4099# Whether dlopen of statically linked programs is supported.
4100dlopen_self_static=$enable_dlopen_self_static
4101
4102# Compiler flag to prevent dynamic linking.
4103link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4104
4105# Compiler flag to turn off builtin functions.
4106no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4107
4108# Compiler flag to allow reflexive dlopens.
4109export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4110
4111# Compiler flag to generate shared objects directly from archives.
4112whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4113
4114# Compiler flag to generate thread-safe objects.
4115thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4116
4117# Library versioning type.
4118version_type=$version_type
4119
4120# Format of library name prefix.
4121libname_spec=$lt_libname_spec
4122
4123# List of archive names. First name is the real one, the rest are links.
4124# The last name is the one that the linker finds with -lNAME.
4125library_names_spec=$lt_library_names_spec
4126
4127# The coded name of the library, if different from the real name.
4128soname_spec=$lt_soname_spec
4129
4130# Commands used to build and install an old-style archive.
4131RANLIB=$lt_RANLIB
4132old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4133old_postinstall_cmds=$lt_old_postinstall_cmds
4134old_postuninstall_cmds=$lt_old_postuninstall_cmds
4135
4136# Create an old-style archive from a shared archive.
4137old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4138
4139# Create a temporary old-style archive to link instead of a shared archive.
4140old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4141
4142# Commands used to build and install a shared archive.
4143archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4144archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4145postinstall_cmds=$lt_postinstall_cmds
4146postuninstall_cmds=$lt_postuninstall_cmds
4147
4148# Commands used to build a loadable module (assumed same as above if empty)
4149module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4150module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4151
4152# Commands to strip libraries.
4153old_striplib=$lt_old_striplib
4154striplib=$lt_striplib
4155
4156# Dependencies to place before the objects being linked to create a
4157# shared library.
4158predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4159
4160# Dependencies to place after the objects being linked to create a
4161# shared library.
4162postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4163
4164# Dependencies to place before the objects being linked to create a
4165# shared library.
4166predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4167
4168# Dependencies to place after the objects being linked to create a
4169# shared library.
4170postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4171
4172# The library search path used internally by the compiler when linking
4173# a shared library.
4174compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4175
4176# Method to check whether dependent libraries are shared objects.
4177deplibs_check_method=$lt_deplibs_check_method
4178
4179# Command to use when deplibs_check_method == file_magic.
4180file_magic_cmd=$lt_file_magic_cmd
4181
4182# Flag that allows shared libraries with undefined symbols to be built.
4183allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4184
4185# Flag that forces no undefined symbols.
4186no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4187
4188# Commands used to finish a libtool library installation in a directory.
4189finish_cmds=$lt_finish_cmds
4190
4191# Same as above, but a single script fragment to be evaled but not shown.
4192finish_eval=$lt_finish_eval
4193
4194# Take the output of nm and produce a listing of raw symbols and C names.
4195global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4196
4197# Transform the output of nm in a proper C declaration
4198global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4199
4200# Transform the output of nm in a C name address pair
4201global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4202
4203# This is the shared library runtime path variable.
4204runpath_var=$runpath_var
4205
4206# This is the shared library path variable.
4207shlibpath_var=$shlibpath_var
4208
4209# Is shlibpath searched before the hard-coded library search path?
4210shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4211
4212# How to hardcode a shared library path into an executable.
4213hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4214
4215# Whether we should hardcode library paths into libraries.
4216hardcode_into_libs=$hardcode_into_libs
4217
4218# Flag to hardcode \$libdir into a binary during linking.
4219# This must work even if \$libdir does not exist.
4220hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4221
4222# If ld is used when linking, flag to hardcode \$libdir into
4223# a binary during linking. This must work even if \$libdir does
4224# not exist.
4225hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4226
4227# Whether we need a single -rpath flag with a separated argument.
4228hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4229
4230# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4231# resulting binary.
4232hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4233
4234# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4235# resulting binary.
4236hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4237
4238# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4239# the resulting binary.
4240hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4241
4242# Set to yes if building a shared library automatically hardcodes DIR into the library
4243# and all subsequent libraries and executables linked against it.
4244hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4245
4246# Variables whose values should be saved in libtool wrapper scripts and
4247# restored at relink time.
4248variables_saved_for_relink="$variables_saved_for_relink"
4249
4250# Whether libtool must link a program against all its dependency libraries.
4251link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4252
4253# Compile-time system search path for libraries
4254sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4255
4256# Run-time system search path for libraries
4257sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4258
4259# Fix the shell variable \$srcfile for the compiler.
4260fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
4261
4262# Set to yes if exported symbols are required.
4263always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4264
4265# The commands to list exported symbols.
4266export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4267
4268# The commands to extract the exported symbol list from a shared archive.
4269extract_expsyms_cmds=$lt_extract_expsyms_cmds
4270
4271# Symbols that should not be listed in the preloaded symbols.
4272exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4273
4274# Symbols that must always be exported.
4275include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4276
4277ifelse([$1],[],
4278[# ### END LIBTOOL CONFIG],
4279[# ### END LIBTOOL TAG CONFIG: $tagname])
4280
4281__EOF__
4282
4283ifelse([$1],[], [
4284 case $host_os in
4285 aix3*)
4286 cat <<\EOF >> "$cfgfile"
4287
4288# AIX sometimes has problems with the GCC collect2 program. For some
4289# reason, if we set the COLLECT_NAMES environment variable, the problems
4290# vanish in a puff of smoke.
4291if test "X${COLLECT_NAMES+set}" != Xset; then
4292 COLLECT_NAMES=
4293 export COLLECT_NAMES
4294fi
4295EOF
4296 ;;
4297 esac
4298
4299 # We use sed instead of cat because bash on DJGPP gets confused if
4300 # if finds mixed CR/LF and LF-only lines. Since sed operates in
4301 # text mode, it properly converts lines to CR/LF. This bash problem
4302 # is reportedly fixed, but why not run on old versions too?
4303 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4304
4305 mv -f "$cfgfile" "$ofile" || \
4306 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4307 chmod +x "$ofile"
4308])
4309else
4310 # If there is no Makefile yet, we rely on a make rule to execute
4311 # `config.status --recheck' to rerun these tests and create the
4312 # libtool script then.
4313 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4314 if test -f "$ltmain_in"; then
4315 test -f Makefile && make "$ltmain"
4316 fi
4317fi
4318])# AC_LIBTOOL_CONFIG
4319
4320
4321# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4322# -------------------------------------------
4323AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4324[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4325
4326_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4327
4328if test "$GCC" = yes; then
4329 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4330
4331 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4332 lt_cv_prog_compiler_rtti_exceptions,
4333 [-fno-rtti -fno-exceptions], [],
4334 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4335fi
4336])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4337
4338
4339# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4340# ---------------------------------
4341AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4342[AC_REQUIRE([AC_CANONICAL_HOST])
4343AC_REQUIRE([AC_PROG_NM])
4344AC_REQUIRE([AC_OBJEXT])
4345# Check for command to grab the raw symbol name followed by C symbol from nm.
4346AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4347AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4348[
4349# These are sane defaults that work on at least a few old systems.
4350# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4351
4352# Character class describing NM global symbol codes.
4353symcode='[[BCDEGRST]]'
4354
4355# Regexp to match symbols that can be accessed directly from C.
4356sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4357
4358# Transform the above into a raw symbol and a C symbol.
4359symxfrm='\1 \2\3 \3'
4360
4361# Transform an extracted symbol line into a proper C declaration
4362lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4363
4364# Transform an extracted symbol line into symbol name and symbol address
4365lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4366
4367# Define system-specific variables.
4368case $host_os in
4369aix*)
4370 symcode='[[BCDT]]'
4371 ;;
4372cygwin* | mingw* | pw32*)
4373 symcode='[[ABCDGISTW]]'
4374 ;;
4375hpux*) # Its linker distinguishes data from code symbols
4376 if test "$host_cpu" = ia64; then
4377 symcode='[[ABCDEGRST]]'
4378 fi
4379 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4380 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4381 ;;
4382irix* | nonstopux*)
4383 symcode='[[BCDEGRST]]'
4384 ;;
4385osf*)
4386 symcode='[[BCDEGQRST]]'
4387 ;;
4388solaris* | sysv5*)
4389 symcode='[[BDRT]]'
4390 ;;
4391sysv4)
4392 symcode='[[DFNSTU]]'
4393 ;;
4394esac
4395
4396# Handle CRLF in mingw tool chain
4397opt_cr=
4398case $build_os in
4399mingw*)
4400 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4401 ;;
4402esac
4403
4404# If we're using GNU nm, then use its standard symbol codes.
4405case `$NM -V 2>&1` in
4406*GNU* | *'with BFD'*)
4407 symcode='[[ABCDGIRSTW]]' ;;
4408esac
4409
4410# Try without a prefix undercore, then with it.
4411for ac_symprfx in "" "_"; do
4412
4413 # Write the raw and C identifiers.
4414 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4415
4416 # Check to see that the pipe works correctly.
4417 pipe_works=no
4418
4419 rm -f conftest*
4420 cat > conftest.$ac_ext <<EOF
4421#ifdef __cplusplus
4422extern "C" {
4423#endif
4424char nm_test_var;
4425void nm_test_func(){}
4426#ifdef __cplusplus
4427}
4428#endif
4429int main(){nm_test_var='a';nm_test_func();return(0);}
4430EOF
4431
4432 if AC_TRY_EVAL(ac_compile); then
4433 # Now try to grab the symbols.
4434 nlist=conftest.nm
4435 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
4436 # Try sorting and uniquifying the output.
4437 if sort "$nlist" | uniq > "$nlist"T; then
4438 mv -f "$nlist"T "$nlist"
4439 else
4440 rm -f "$nlist"T
4441 fi
4442
4443 # Make sure that we snagged all the symbols we need.
4444 if grep ' nm_test_var$' "$nlist" >/dev/null; then
4445 if grep ' nm_test_func$' "$nlist" >/dev/null; then
4446 cat <<EOF > conftest.$ac_ext
4447#ifdef __cplusplus
4448extern "C" {
4449#endif
4450
4451EOF
4452 # Now generate the symbol file.
4453 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4454
4455 cat <<EOF >> conftest.$ac_ext
4456#if defined (__STDC__) && __STDC__
4457# define lt_ptr_t void *
4458#else
4459# define lt_ptr_t char *
4460# define const
4461#endif
4462
4463/* The mapping between symbol names and symbols. */
4464const struct {
4465 const char *name;
4466 lt_ptr_t address;
4467}
4468lt_preloaded_symbols[[]] =
4469{
4470EOF
4471 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4472 cat <<\EOF >> conftest.$ac_ext
4473 {0, (lt_ptr_t) 0}
4474};
4475
4476#ifdef __cplusplus
4477}
4478#endif
4479EOF
4480 # Now try linking the two files.
4481 mv conftest.$ac_objext conftstm.$ac_objext
4482 lt_save_LIBS="$LIBS"
4483 lt_save_CFLAGS="$CFLAGS"
4484 LIBS="conftstm.$ac_objext"
4485 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4486 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4487 pipe_works=yes
4488 fi
4489 LIBS="$lt_save_LIBS"
4490 CFLAGS="$lt_save_CFLAGS"
4491 else
4492 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4493 fi
4494 else
4495 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4496 fi
4497 else
4498 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4499 fi
4500 else
4501 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4502 cat conftest.$ac_ext >&5
4503 fi
4504 rm -f conftest* conftst*
4505
4506 # Do not use the global_symbol_pipe unless it works.
4507 if test "$pipe_works" = yes; then
4508 break
4509 else
4510 lt_cv_sys_global_symbol_pipe=
4511 fi
4512done
4513])
4514if test -z "$lt_cv_sys_global_symbol_pipe"; then
4515 lt_cv_sys_global_symbol_to_cdecl=
4516fi
4517if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4518 AC_MSG_RESULT(failed)
4519else
4520 AC_MSG_RESULT(ok)
4521fi
4522]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4523
4524
4525# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
4526# ---------------------------------------
4527AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
4528[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
4529_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4530_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
4531
4532AC_MSG_CHECKING([for $compiler option to produce PIC])
4533 ifelse([$1],[CXX],[
4534 # C++ specific cases for pic, static, wl, etc.
4535 if test "$GXX" = yes; then
4536 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4537 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4538
4539 case $host_os in
4540 aix*)
4541 # All AIX code is PIC.
4542 if test "$host_cpu" = ia64; then
4543 # AIX 5 now supports IA64 processor
4544 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4545 fi
4546 ;;
4547 amigaos*)
4548 # FIXME: we need at least 68020 code to build shared libraries, but
4549 # adding the `-m68020' flag to GCC prevents building anything better,
4550 # like `-m68040'.
4551 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4552 ;;
4553 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4554 # PIC is the default for these OSes.
4555 ;;
4556 mingw* | os2* | pw32*)
4557 # This hack is so that the source file can tell whether it is being
4558 # built for inclusion in a dll (and should export symbols for example).
4559 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
4560 ;;
4561 darwin* | rhapsody*)
4562 # PIC is the default on this platform
4563 # Common symbols not allowed in MH_DYLIB files
4564 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4565 ;;
4566 *djgpp*)
4567 # DJGPP does not support shared libraries at all
4568 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4569 ;;
4570 sysv4*MP*)
4571 if test -d /usr/nec; then
4572 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4573 fi
4574 ;;
4575 hpux*)
4576 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4577 # not for PA HP-UX.
4578 case "$host_cpu" in
4579 hppa*64*|ia64*)
4580 ;;
4581 *)
4582 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4583 ;;
4584 esac
4585 ;;
4586 *)
4587 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4588 ;;
4589 esac
4590 else
4591 case $host_os in
4592 aix4* | aix5*)
4593 # All AIX code is PIC.
4594 if test "$host_cpu" = ia64; then
4595 # AIX 5 now supports IA64 processor
4596 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4597 else
4598 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4599 fi
4600 ;;
4601 chorus*)
4602 case $cc_basename in
4603 cxch68)
4604 # Green Hills C++ Compiler
4605 # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
4606 ;;
4607 esac
4608 ;;
4609 dgux*)
4610 case $cc_basename in
4611 ec++)
4612 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4613 ;;
4614 ghcx)
4615 # Green Hills C++ Compiler
4616 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4617 ;;
4618 *)
4619 ;;
4620 esac
4621 ;;
4622 freebsd* | kfreebsd*-gnu)
4623 # FreeBSD uses GNU C++
4624 ;;
4625 hpux9* | hpux10* | hpux11*)
4626 case $cc_basename in
4627 CC)
4628 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4629 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
4630 if test "$host_cpu" != ia64; then
4631 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4632 fi
4633 ;;
4634 aCC)
4635 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4636 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
4637 case "$host_cpu" in
4638 hppa*64*|ia64*)
4639 # +Z the default
4640 ;;
4641 *)
4642 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4643 ;;
4644 esac
4645 ;;
4646 *)
4647 ;;
4648 esac
4649 ;;
4650 irix5* | irix6* | nonstopux*)
4651 case $cc_basename in
4652 CC)
4653 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4654 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4655 # CC pic flag -KPIC is the default.
4656 ;;
4657 *)
4658 ;;
4659 esac
4660 ;;
4661 linux*)
4662 case $cc_basename in
4663 KCC)
4664 # KAI C++ Compiler
4665 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4666 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4667 ;;
4668 icpc)
4669 # Intel C++
4670 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4671 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4672 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4673 ;;
4674 cxx)
4675 # Compaq C++
4676 # Make sure the PIC flag is empty. It appears that all Alpha
4677 # Linux and Compaq Tru64 Unix objects are PIC.
4678 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4679 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4680 ;;
4681 *)
4682 ;;
4683 esac
4684 ;;
4685 lynxos*)
4686 ;;
4687 m88k*)
4688 ;;
4689 mvs*)
4690 case $cc_basename in
4691 cxx)
4692 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4693 ;;
4694 *)
4695 ;;
4696 esac
4697 ;;
4698 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4699 ;;
4700 osf3* | osf4* | osf5*)
4701 case $cc_basename in
4702 KCC)
4703 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4704 ;;
4705 RCC)
4706 # Rational C++ 2.4.1
4707 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4708 ;;
4709 cxx)
4710 # Digital/Compaq C++
4711 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4712 # Make sure the PIC flag is empty. It appears that all Alpha
4713 # Linux and Compaq Tru64 Unix objects are PIC.
4714 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4715 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4716 ;;
4717 *)
4718 ;;
4719 esac
4720 ;;
4721 psos*)
4722 ;;
4723 sco*)
4724 case $cc_basename in
4725 CC)
4726 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4727 ;;
4728 *)
4729 ;;
4730 esac
4731 ;;
4732 solaris*)
4733 case $cc_basename in
4734 CC)
4735 # Sun C++ 4.2, 5.x and Centerline C++
4736 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4737 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4738 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4739 ;;
4740 gcx)
4741 # Green Hills C++ Compiler
4742 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4743 ;;
4744 *)
4745 ;;
4746 esac
4747 ;;
4748 sunos4*)
4749 case $cc_basename in
4750 CC)
4751 # Sun C++ 4.x
4752 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4753 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4754 ;;
4755 lcc)
4756 # Lucid
4757 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4758 ;;
4759 *)
4760 ;;
4761 esac
4762 ;;
4763 tandem*)
4764 case $cc_basename in
4765 NCC)
4766 # NonStop-UX NCC 3.20
4767 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4768 ;;
4769 *)
4770 ;;
4771 esac
4772 ;;
4773 unixware*)
4774 ;;
4775 vxworks*)
4776 ;;
4777 *)
4778 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4779 ;;
4780 esac
4781 fi
4782],
4783[
4784 if test "$GCC" = yes; then
4785 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4786 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4787
4788 case $host_os in
4789 aix*)
4790 # All AIX code is PIC.
4791 if test "$host_cpu" = ia64; then
4792 # AIX 5 now supports IA64 processor
4793 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4794 fi
4795 ;;
4796
4797 amigaos*)
4798 # FIXME: we need at least 68020 code to build shared libraries, but
4799 # adding the `-m68020' flag to GCC prevents building anything better,
4800 # like `-m68040'.
4801 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4802 ;;
4803
4804 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4805 # PIC is the default for these OSes.
4806 ;;
4807
4808 mingw* | pw32* | os2*)
4809 # This hack is so that the source file can tell whether it is being
4810 # built for inclusion in a dll (and should export symbols for example).
4811 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
4812 ;;
4813
4814 darwin* | rhapsody*)
4815 # PIC is the default on this platform
4816 # Common symbols not allowed in MH_DYLIB files
4817 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4818 ;;
4819
4820 msdosdjgpp*)
4821 # Just because we use GCC doesn't mean we suddenly get shared libraries
4822 # on systems that don't support them.
4823 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4824 enable_shared=no
4825 ;;
4826
4827 sysv4*MP*)
4828 if test -d /usr/nec; then
4829 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4830 fi
4831 ;;
4832
4833 hpux*)
4834 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4835 # not for PA HP-UX.
4836 case "$host_cpu" in
4837 hppa*64*|ia64*)
4838 # +Z the default
4839 ;;
4840 *)
4841 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4842 ;;
4843 esac
4844 ;;
4845
4846 *)
4847 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4848 ;;
4849 esac
4850 else
4851 # PORTME Check for flag to pass linker flags through the system compiler.
4852 case $host_os in
4853 aix*)
4854 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4855 if test "$host_cpu" = ia64; then
4856 # AIX 5 now supports IA64 processor
4857 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4858 else
4859 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4860 fi
4861 ;;
4862
4863 mingw* | pw32* | os2*)
4864 # This hack is so that the source file can tell whether it is being
4865 # built for inclusion in a dll (and should export symbols for example).
4866 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
4867 ;;
4868
4869 hpux9* | hpux10* | hpux11*)
4870 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4871 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4872 # not for PA HP-UX.
4873 case "$host_cpu" in
4874 hppa*64*|ia64*)
4875 # +Z the default
4876 ;;
4877 *)
4878 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4879 ;;
4880 esac
4881 # Is there a better lt_prog_compiler_static that works with the bundled CC?
4882 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4883 ;;
4884
4885 irix5* | irix6* | nonstopux*)
4886 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4887 # PIC (with -KPIC) is the default.
4888 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4889 ;;
4890
4891 newsos6)
4892 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4893 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4894 ;;
4895
4896 linux*)
4897 case $CC in
4898 icc* | ecc*)
4899 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4900 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4901 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4902 ;;
4903 ccc*)
4904 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4905 # All Alpha code is PIC.
4906 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4907 ;;
4908 esac
4909 ;;
4910
4911 osf3* | osf4* | osf5*)
4912 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4913 # All OSF/1 code is PIC.
4914 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4915 ;;
4916
4917 sco3.2v5*)
4918 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
4919 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
4920 ;;
4921
4922 solaris*)
4923 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4924 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4925 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4926 ;;
4927
4928 sunos4*)
4929 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4930 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4931 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4932 ;;
4933
4934 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4935 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4936 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4937 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4938 ;;
4939
4940 sysv4*MP*)
4941 if test -d /usr/nec ;then
4942 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4943 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4944 fi
4945 ;;
4946
4947 uts4*)
4948 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4949 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4950 ;;
4951
4952 *)
4953 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4954 ;;
4955 esac
4956 fi
4957])
4958AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
4959
4960#
4961# Check to make sure the PIC flag actually works.
4962#
4963if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
4964 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
4965 _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
4966 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
4967 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
4968 "" | " "*) ;;
4969 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4970 esac],
4971 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4972 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4973fi
4974case "$host_os" in
4975 # For platforms which do not support PIC, -DPIC is meaningless:
4976 *djgpp*)
4977 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4978 ;;
4979 *)
4980 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
4981 ;;
4982esac
4983])
4984
4985
4986# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
4987# ------------------------------------
4988# See if the linker supports building shared libraries.
4989AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
4990[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4991ifelse([$1],[CXX],[
4992 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4993 case $host_os in
4994 aix4* | aix5*)
4995 # If we're using GNU nm, then we don't want the "-C" option.
4996 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4997 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
4998 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
4999 else
5000 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5001 fi
5002 ;;
5003 pw32*)
5004 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5005 ;;
5006 cygwin* | mingw*)
5007 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5008 ;;
5009 linux*)
5010 _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5011 ;;
5012 *)
5013 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5014 ;;
5015 esac
5016],[
5017 runpath_var=
5018 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5019 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5020 _LT_AC_TAGVAR(archive_cmds, $1)=
5021 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5022 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5023 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5024 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5025 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5026 _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5027 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5028 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5029 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5030 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5031 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5032 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5033 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5034 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
5035 _LT_AC_TAGVAR(module_cmds, $1)=
5036 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
5037 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5038 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5039 # include_expsyms should be a list of space-separated symbols to be *always*
5040 # included in the symbol list
5041 _LT_AC_TAGVAR(include_expsyms, $1)=
5042 # exclude_expsyms can be an extended regexp of symbols to exclude
5043 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5044 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5045 # as well as any symbol that contains `d'.
5046 _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5047 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5048 # platforms (ab)use it in PIC code, but their linkers get confused if
5049 # the symbol is explicitly referenced. Since portable code cannot
5050 # rely on this symbol name, it's probably fine to never include it in
5051 # preloaded symbol tables.
5052 extract_expsyms_cmds=
5053
5054 case $host_os in
5055 cygwin* | mingw* | pw32*)
5056 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5057 # When not using gcc, we currently assume that we are using
5058 # Microsoft Visual C++.
5059 if test "$GCC" != yes; then
5060 with_gnu_ld=no
5061 fi
5062 ;;
5063 openbsd*)
5064 with_gnu_ld=no
5065 ;;
5066 esac
5067
5068 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5069 if test "$with_gnu_ld" = yes; then
5070 # If archive_cmds runs LD, not CC, wlarc should be empty
5071 wlarc='${wl}'
5072
5073 # See if GNU ld supports shared libraries.
5074 case $host_os in
5075 aix3* | aix4* | aix5*)
5076 # On AIX/PPC, the GNU linker is very broken
5077 if test "$host_cpu" != ia64; then
5078 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5079 cat <<EOF 1>&2
5080
5081*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5082*** to be unable to reliably create shared libraries on AIX.
5083*** Therefore, libtool is disabling shared libraries support. If you
5084*** really care for shared libraries, you may want to modify your PATH
5085*** so that a non-GNU linker is found, and then restart.
5086
5087EOF
5088 fi
5089 ;;
5090
5091 amigaos*)
5092 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5093 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5094 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5095
5096 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5097 # that the semantics of dynamic libraries on AmigaOS, at least up
5098 # to version 4, is to share data among multiple programs linked
5099 # with the same dynamic library. Since this doesn't match the
5100 # behavior of shared libraries on other platforms, we can't use
5101 # them.
5102 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5103 ;;
5104
5105 beos*)
5106 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5107 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5108 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5109 # support --undefined. This deserves some investigation. FIXME
5110 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5111 else
5112 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5113 fi
5114 ;;
5115
5116 cygwin* | mingw* | pw32*)
5117 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5118 # as there is no search path for DLLs.
5119 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5120 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5121 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5122 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5123 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5124
5125 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5126 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5127 # If the export-symbols file already is a .def file (1st line
5128 # is EXPORTS), use it as is; otherwise, prepend...
5129 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5130 cp $export_symbols $output_objdir/$soname.def;
5131 else
5132 echo EXPORTS > $output_objdir/$soname.def;
5133 cat $export_symbols >> $output_objdir/$soname.def;
5134 fi~
5135 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5136 else
5137 ld_shlibs=no
5138 fi
5139 ;;
5140
5141 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
5142 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5143 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5144 wlarc=
5145 else
5146 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5147 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5148 fi
5149 ;;
5150
5151 solaris* | sysv5*)
5152 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5153 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5154 cat <<EOF 1>&2
5155
5156*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5157*** create shared libraries on Solaris systems. Therefore, libtool
5158*** is disabling shared libraries support. We urge you to upgrade GNU
5159*** binutils to release 2.9.1 or newer. Another option is to modify
5160*** your PATH or compiler configuration so that the native linker is
5161*** used, and then restart.
5162
5163EOF
5164 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5165 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5166 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5167 else
5168 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5169 fi
5170 ;;
5171
5172 sunos4*)
5173 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5174 wlarc=
5175 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5176 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5177 ;;
5178
5179 linux*)
5180 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5181 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5182 _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
5183 supports_anon_versioning=no
5184 case `$LD -v 2>/dev/null` in
5185 *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5186 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5187 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5188 *\ 2.11.*) ;; # other 2.11 versions
5189 *) supports_anon_versioning=yes ;;
5190 esac
5191 if test $supports_anon_versioning = yes; then
5192 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5193cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5194$echo "local: *; };" >> $output_objdir/$libname.ver~
5195 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5196 else
5197 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
5198 fi
5199 _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5200 else
5201 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5202 fi
5203 ;;
5204
5205 *)
5206 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5207 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5208 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5209 else
5210 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5211 fi
5212 ;;
5213 esac
5214
5215 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
5216 runpath_var=LD_RUN_PATH
5217 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5218 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5219 # ancient GNU ld didn't support --whole-archive et. al.
5220 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5221 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5222 else
5223 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5224 fi
5225 fi
5226 else
5227 # PORTME fill in a description of your system's linker (not GNU ld)
5228 case $host_os in
5229 aix3*)
5230 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5231 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5232 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5233 # Note: this linker hardcodes the directories in LIBPATH if there
5234 # are no directories specified by -L.
5235 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5236 if test "$GCC" = yes && test -z "$link_static_flag"; then
5237 # Neither direct hardcoding nor static linking is supported with a
5238 # broken collect2.
5239 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5240 fi
5241 ;;
5242
5243 aix4* | aix5*)
5244 if test "$host_cpu" = ia64; then
5245 # On IA64, the linker does run time linking by default, so we don't
5246 # have to do anything special.
5247 aix_use_runtimelinking=no
5248 exp_sym_flag='-Bexport'
5249 no_entry_flag=""
5250 else
5251 # If we're using GNU nm, then we don't want the "-C" option.
5252 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5253 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5254 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5255 else
5256 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5257 fi
5258 aix_use_runtimelinking=no
5259
5260 # Test if we are trying to use run time linking or normal
5261 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5262 # need to do runtime linking.
5263 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
5264 for ld_flag in $LDFLAGS; do
5265 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5266 aix_use_runtimelinking=yes
5267 break
5268 fi
5269 done
5270 esac
5271
5272 exp_sym_flag='-bexport'
5273 no_entry_flag='-bnoentry'
5274 fi
5275
5276 # When large executables or shared objects are built, AIX ld can
5277 # have problems creating the table of contents. If linking a library
5278 # or program results in "error TOC overflow" add -mminimal-toc to
5279 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5280 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5281
5282 _LT_AC_TAGVAR(archive_cmds, $1)=''
5283 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5284 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5285 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5286
5287 if test "$GCC" = yes; then
5288 case $host_os in aix4.[012]|aix4.[012].*)
5289 # We only want to do this on AIX 4.2 and lower, the check
5290 # below for broken collect2 doesn't work under 4.3+
5291 collect2name=`${CC} -print-prog-name=collect2`
5292 if test -f "$collect2name" && \
5293 strings "$collect2name" | grep resolve_lib_name >/dev/null
5294 then
5295 # We have reworked collect2
5296 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5297 else
5298 # We have old collect2
5299 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5300 # It fails to find uninstalled libraries when the uninstalled
5301 # path is not listed in the libpath. Setting hardcode_minus_L
5302 # to unsupported forces relinking
5303 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5304 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5305 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5306 fi
5307 esac
5308 shared_flag='-shared'
5309 else
5310 # not using gcc
5311 if test "$host_cpu" = ia64; then
5312 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5313 # chokes on -Wl,-G. The following line is correct:
5314 shared_flag='-G'
5315 else
5316 if test "$aix_use_runtimelinking" = yes; then
5317 shared_flag='${wl}-G'
5318 else
5319 shared_flag='${wl}-bM:SRE'
5320 fi
5321 fi
5322 fi
5323
5324 # It seems that -bexpall does not export symbols beginning with
5325 # underscore (_), so it is better to generate a list of symbols to export.
5326 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5327 if test "$aix_use_runtimelinking" = yes; then
5328 # Warning - without using the other runtime loading flags (-brtl),
5329 # -berok will link without error, but may produce a broken library.
5330 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
5331 # Determine the default libpath from the value encoded in an empty executable.
5332 _LT_AC_SYS_LIBPATH_AIX
5333 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5334 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5335 else
5336 if test "$host_cpu" = ia64; then
5337 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5338 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5339 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5340 else
5341 # Determine the default libpath from the value encoded in an empty executable.
5342 _LT_AC_SYS_LIBPATH_AIX
5343 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5344 # Warning - without using the other run time loading flags,
5345 # -berok will link without error, but may produce a broken library.
5346 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5347 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5348 # -bexpall does not export symbols beginning with underscore (_)
5349 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5350 # Exported symbols can be pulled into shared objects from archives
5351 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
5352 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5353 # This is similar to how AIX traditionally builds it's shared libraries.
5354 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5355 fi
5356 fi
5357 ;;
5358
5359 amigaos*)
5360 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5361 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5362 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5363 # see comment about different semantics on the GNU ld section
5364 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5365 ;;
5366
5367 bsdi4*)
5368 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5369 ;;
5370
5371 cygwin* | mingw* | pw32*)
5372 # When not using gcc, we currently assume that we are using
5373 # Microsoft Visual C++.
5374 # hardcode_libdir_flag_spec is actually meaningless, as there is
5375 # no search path for DLLs.
5376 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5377 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5378 # Tell ltmain to make .lib files, not .a files.
5379 libext=lib
5380 # Tell ltmain to make .dll files, not .so files.
5381 shrext_cmds=".dll"
5382 # FIXME: Setting linknames here is a bad hack.
5383 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
5384 # The linker will automatically build a .lib file if we build a DLL.
5385 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5386 # FIXME: Should let the user specify the lib program.
5387 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
5388 fix_srcfile_path='`cygpath -w "$srcfile"`'
5389 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5390 ;;
5391
5392 darwin* | rhapsody*)
5393 if test "$GXX" = yes ; then
5394 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5395 case "$host_os" in
5396 rhapsody* | darwin1.[[012]])
5397 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
5398 ;;
5399 *) # Darwin 1.3 on
5400 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5401 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
5402 else
5403 case ${MACOSX_DEPLOYMENT_TARGET} in
5404 10.[[012]])
5405 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
5406 ;;
5407 10.*)
5408 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
5409 ;;
5410 esac
5411 fi
5412 ;;
5413 esac
5414 lt_int_apple_cc_single_mod=no
5415 output_verbose_link_cmd='echo'
5416 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
5417 lt_int_apple_cc_single_mod=yes
5418 fi
5419 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5420 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5421 else
5422 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5423 fi
5424 _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5425 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
5426 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5427 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5428 else
5429 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5430 fi
5431 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5432 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5433 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5434 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5435 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
5436 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5437 else
5438 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5439 fi
5440 ;;
5441
5442 dgux*)
5443 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5444 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5445 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5446 ;;
5447
5448 freebsd1*)
5449 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5450 ;;
5451
5452 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5453 # support. Future versions do this automatically, but an explicit c++rt0.o
5454 # does not break anything, and helps significantly (at the cost of a little
5455 # extra space).
5456 freebsd2.2*)
5457 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5458 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5459 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5460 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5461 ;;
5462
5463 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5464 freebsd2*)
5465 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5466 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5467 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5468 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5469 ;;
5470
5471 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5472 freebsd* | kfreebsd*-gnu)
5473 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5474 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5475 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5476 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5477 ;;
5478
5479 hpux9*)
5480 if test "$GCC" = yes; then
5481 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5482 else
5483 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5484 fi
5485 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5486 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5487 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5488
5489 # hardcode_minus_L: Not really in the search PATH,
5490 # but as the default location of the library.
5491 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5492 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5493 ;;
5494
5495 hpux10* | hpux11*)
5496 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5497 case "$host_cpu" in
5498 hppa*64*|ia64*)
5499 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5500 ;;
5501 *)
5502 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5503 ;;
5504 esac
5505 else
5506 case "$host_cpu" in
5507 hppa*64*|ia64*)
5508 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
5509 ;;
5510 *)
5511 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5512 ;;
5513 esac
5514 fi
5515 if test "$with_gnu_ld" = no; then
5516 case "$host_cpu" in
5517 hppa*64*)
5518 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5519 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5520 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5521 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5522 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5523 ;;
5524 ia64*)
5525 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5526 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5527 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5528
5529 # hardcode_minus_L: Not really in the search PATH,
5530 # but as the default location of the library.
5531 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5532 ;;
5533 *)
5534 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5535 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5536 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5537 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5538
5539 # hardcode_minus_L: Not really in the search PATH,
5540 # but as the default location of the library.
5541 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5542 ;;
5543 esac
5544 fi
5545 ;;
5546
5547 irix5* | irix6* | nonstopux*)
5548 if test "$GCC" = yes; then
5549 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5550 else
5551 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5552 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5553 fi
5554 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5555 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5556 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5557 ;;
5558
5559 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
5560 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5561 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5562 else
5563 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5564 fi
5565 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5566 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5567 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5568 ;;
5569
5570 newsos6)
5571 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5572 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5573 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5574 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5575 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5576 ;;
5577
5578 openbsd*)
5579 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5580 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5581 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5582 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5583 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5584 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5585 else
5586 case $host_os in
5587 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5588 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5589 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5590 ;;
5591 *)
5592 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5593 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5594 ;;
5595 esac
5596 fi
5597 ;;
5598
5599 os2*)
5600 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5601 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5602 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5603 _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5604 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5605 ;;
5606
5607 osf3*)
5608 if test "$GCC" = yes; then
5609 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5610 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5611 else
5612 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5613 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5614 fi
5615 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5616 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5617 ;;
5618
5619 osf4* | osf5*) # as osf3* with the addition of -msym flag
5620 if test "$GCC" = yes; then
5621 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5622 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5623 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5624 else
5625 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5626 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5627 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5628 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5629
5630 # Both c and cxx compiler support -rpath directly
5631 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5632 fi
5633 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5634 ;;
5635
5636 sco3.2v5*)
5637 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5638 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5639 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5640 runpath_var=LD_RUN_PATH
5641 hardcode_runpath_var=yes
5642 ;;
5643
5644 solaris*)
5645 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5646 if test "$GCC" = yes; then
5647 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5648 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5649 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
5650 else
5651 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5652 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5653 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5654 fi
5655 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5656 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5657 case $host_os in
5658 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5659 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5660 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
5661 esac
5662 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5663 ;;
5664
5665 sunos4*)
5666 if test "x$host_vendor" = xsequent; then
5667 # Use $CC to link under sequent, because it throws in some extra .o
5668 # files that make .init and .fini sections work.
5669 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5670 else
5671 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5672 fi
5673 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5674 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5675 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5676 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5677 ;;
5678
5679 sysv4)
5680 case $host_vendor in
5681 sni)
5682 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5683 _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5684 ;;
5685 siemens)
5686 ## LD is ld it makes a PLAMLIB
5687 ## CC just makes a GrossModule.
5688 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5689 _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5690 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5691 ;;
5692 motorola)
5693 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5694 _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5695 ;;
5696 esac
5697 runpath_var='LD_RUN_PATH'
5698 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5699 ;;
5700
5701 sysv4.3*)
5702 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5703 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5704 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5705 ;;
5706
5707 sysv4*MP*)
5708 if test -d /usr/nec; then
5709 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5710 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5711 runpath_var=LD_RUN_PATH
5712 hardcode_runpath_var=yes
5713 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5714 fi
5715 ;;
5716
5717 sysv4.2uw2*)
5718 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5719 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5720 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5721 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5722 hardcode_runpath_var=yes
5723 runpath_var=LD_RUN_PATH
5724 ;;
5725
5726 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
5727 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
5728 if test "$GCC" = yes; then
5729 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5730 else
5731 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5732 fi
5733 runpath_var='LD_RUN_PATH'
5734 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5735 ;;
5736
5737 sysv5*)
5738 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5739 # $CC -shared without GNU ld will not create a library from C++
5740 # object files and a static libstdc++, better avoid it by now
5741 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5742 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5743 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5744 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5745 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5746 runpath_var='LD_RUN_PATH'
5747 ;;
5748
5749 uts4*)
5750 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5751 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5752 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5753 ;;
5754
5755 *)
5756 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5757 ;;
5758 esac
5759 fi
5760])
5761AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
5762test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5763
5764variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5765if test "$GCC" = yes; then
5766 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5767fi
5768
5769#
5770# Do we need to explicitly link libc?
5771#
5772case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
5773x|xyes)
5774 # Assume -lc should be added
5775 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5776
5777 if test "$enable_shared" = yes && test "$GCC" = yes; then
5778 case $_LT_AC_TAGVAR(archive_cmds, $1) in
5779 *'~'*)
5780 # FIXME: we may have to deal with multi-command sequences.
5781 ;;
5782 '$CC '*)
5783 # Test whether the compiler implicitly links with -lc since on some
5784 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5785 # to ld, don't add -lc before -lgcc.
5786 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5787 $rm conftest*
5788 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5789
5790 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5791 soname=conftest
5792 lib=conftest
5793 libobjs=conftest.$ac_objext
5794 deplibs=
5795 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5796 compiler_flags=-v
5797 linker_flags=-v
5798 verstring=
5799 output_objdir=.
5800 libname=conftest
5801 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
5802 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5803 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
5804 then
5805 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5806 else
5807 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5808 fi
5809 _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5810 else
5811 cat conftest.err 1>&5
5812 fi
5813 $rm conftest*
5814 AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
5815 ;;
5816 esac
5817 fi
5818 ;;
5819esac
5820])# AC_LIBTOOL_PROG_LD_SHLIBS
5821
5822
5823# _LT_AC_FILE_LTDLL_C
5824# -------------------
5825# Be careful that the start marker always follows a newline.
5826AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
5827# /* ltdll.c starts here */
5828# #define WIN32_LEAN_AND_MEAN
5829# #include <windows.h>
5830# #undef WIN32_LEAN_AND_MEAN
5831# #include <stdio.h>
5832#
5833# #ifndef __CYGWIN__
5834# # ifdef __CYGWIN32__
5835# # define __CYGWIN__ __CYGWIN32__
5836# # endif
5837# #endif
5838#
5839# #ifdef __cplusplus
5840# extern "C" {
5841# #endif
5842# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
5843# #ifdef __cplusplus
5844# }
5845# #endif
5846#
5847# #ifdef __CYGWIN__
5848# #include <cygwin/cygwin_dll.h>
5849# DECLARE_CYGWIN_DLL( DllMain );
5850# #endif
5851# HINSTANCE __hDllInstance_base;
5852#
5853# BOOL APIENTRY
5854# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
5855# {
5856# __hDllInstance_base = hInst;
5857# return TRUE;
5858# }
5859# /* ltdll.c ends here */
5860])# _LT_AC_FILE_LTDLL_C
5861
5862
5863# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
5864# ---------------------------------
5865AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
5866
5867
5868# old names
5869AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
5870AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
5871AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
5872AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
5873AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
5874AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
5875AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
5876
5877# This is just to silence aclocal about the macro not being used
5878ifelse([AC_DISABLE_FAST_INSTALL])
5879
5880AC_DEFUN([LT_AC_PROG_GCJ],
5881[AC_CHECK_TOOL(GCJ, gcj, no)
5882 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
5883 AC_SUBST(GCJFLAGS)
5884])
5885
5886AC_DEFUN([LT_AC_PROG_RC],
5887[AC_CHECK_TOOL(RC, windres, no)
5888])
5889
5890############################################################
5891# NOTE: This macro has been submitted for inclusion into #
5892# GNU Autoconf as AC_PROG_SED. When it is available in #
5893# a released version of Autoconf we should remove this #
5894# macro and use it instead. #
5895############################################################
5896# LT_AC_PROG_SED
5897# --------------
5898# Check for a fully-functional sed program, that truncates
5899# as few characters as possible. Prefer GNU sed if found.
5900AC_DEFUN([LT_AC_PROG_SED],
5901[AC_MSG_CHECKING([for a sed that does not truncate output])
5902AC_CACHE_VAL(lt_cv_path_SED,
5903[# Loop through the user's path and test for sed and gsed.
5904# Then use that list of sed's as ones to test for truncation.
5905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906for as_dir in $PATH
5907do
5908 IFS=$as_save_IFS
5909 test -z "$as_dir" && as_dir=.
5910 for lt_ac_prog in sed gsed; do
5911 for ac_exec_ext in '' $ac_executable_extensions; do
5912 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5913 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5914 fi
5915 done
5916 done
5917done
5918lt_ac_max=0
5919lt_ac_count=0
5920# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5921# along with /bin/sed that truncates output.
5922for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5923 test ! -f $lt_ac_sed && break
5924 cat /dev/null > conftest.in
5925 lt_ac_count=0
5926 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5927 # Check for GNU sed and select it if it is found.
5928 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5929 lt_cv_path_SED=$lt_ac_sed
5930 break
5931 fi
5932 while true; do
5933 cat conftest.in conftest.in >conftest.tmp
5934 mv conftest.tmp conftest.in
5935 cp conftest.in conftest.nl
5936 echo >>conftest.nl
5937 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5938 cmp -s conftest.out conftest.nl || break
5939 # 10000 chars as input seems more than enough
5940 test $lt_ac_count -gt 10 && break
5941 lt_ac_count=`expr $lt_ac_count + 1`
5942 if test $lt_ac_count -gt $lt_ac_max; then
5943 lt_ac_max=$lt_ac_count
5944 lt_cv_path_SED=$lt_ac_sed
5945 fi
5946 done
5947done
5948SED=$lt_cv_path_SED
5949])
5950AC_MSG_RESULT([$SED])
5951])
diff --git a/src/others/mimesh/libg3d-0.0.8/m4/libxml2.m4 b/src/others/mimesh/libg3d-0.0.8/m4/libxml2.m4
new file mode 100644
index 0000000..68cd824
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/m4/libxml2.m4
@@ -0,0 +1,188 @@
1# Configure paths for LIBXML2
2# Mike Hommey 2004-06-19
3# use CPPFLAGS instead of CFLAGS
4# Toshio Kuratomi 2001-04-21
5# Adapted from:
6# Configure paths for GLIB
7# Owen Taylor 97-11-3
8
9dnl AM_PATH_XML2([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
10dnl Test for XML, and define XML_CPPFLAGS and XML_LIBS
11dnl
12AC_DEFUN([AM_PATH_XML2],[
13AC_ARG_WITH(xml-prefix,
14 [ --with-xml-prefix=PFX Prefix where libxml is installed (optional)],
15 xml_config_prefix="$withval", xml_config_prefix="")
16AC_ARG_WITH(xml-exec-prefix,
17 [ --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)],
18 xml_config_exec_prefix="$withval", xml_config_exec_prefix="")
19AC_ARG_ENABLE(xmltest,
20 [ --disable-xmltest Do not try to compile and run a test LIBXML program],,
21 enable_xmltest=yes)
22
23 if test x$xml_config_exec_prefix != x ; then
24 xml_config_args="$xml_config_args"
25 if test x${XML2_CONFIG+set} != xset ; then
26 XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
27 fi
28 fi
29 if test x$xml_config_prefix != x ; then
30 xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
31 if test x${XML2_CONFIG+set} != xset ; then
32 XML2_CONFIG=$xml_config_prefix/bin/xml2-config
33 fi
34 fi
35
36 AC_PATH_PROG(XML2_CONFIG, xml2-config, no)
37 min_xml_version=ifelse([$1], ,2.0.0,[$1])
38 AC_MSG_CHECKING(for libxml - version >= $min_xml_version)
39 no_xml=""
40 if test "$XML2_CONFIG" = "no" ; then
41 no_xml=yes
42 else
43 XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
44 XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
45 xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
46 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
47 xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
48 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
49 xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
50 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
51 if test "x$enable_xmltest" = "xyes" ; then
52 ac_save_CPPFLAGS="$CPPFLAGS"
53 ac_save_LIBS="$LIBS"
54 CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
55 LIBS="$XML_LIBS $LIBS"
56dnl
57dnl Now check if the installed libxml is sufficiently new.
58dnl (Also sanity checks the results of xml2-config to some extent)
59dnl
60 rm -f conf.xmltest
61 AC_TRY_RUN([
62#include <stdlib.h>
63#include <stdio.h>
64#include <string.h>
65#include <libxml/xmlversion.h>
66
67int
68main()
69{
70 int xml_major_version, xml_minor_version, xml_micro_version;
71 int major, minor, micro;
72 char *tmp_version;
73
74 system("touch conf.xmltest");
75
76 /* Capture xml2-config output via autoconf/configure variables */
77 /* HP/UX 9 (%@#!) writes to sscanf strings */
78 tmp_version = (char *)strdup("$min_xml_version");
79 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
80 printf("%s, bad version string from xml2-config\n", "$min_xml_version");
81 exit(1);
82 }
83 free(tmp_version);
84
85 /* Capture the version information from the header files */
86 tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
87 if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
88 printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
89 exit(1);
90 }
91 free(tmp_version);
92
93 /* Compare xml2-config output to the libxml headers */
94 if ((xml_major_version != $xml_config_major_version) ||
95 (xml_minor_version != $xml_config_minor_version) ||
96 (xml_micro_version != $xml_config_micro_version))
97 {
98 printf("*** libxml header files (version %d.%d.%d) do not match\n",
99 xml_major_version, xml_minor_version, xml_micro_version);
100 printf("*** xml2-config (version %d.%d.%d)\n",
101 $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
102 return 1;
103 }
104/* Compare the headers to the library to make sure we match */
105 /* Less than ideal -- doesn't provide us with return value feedback,
106 * only exits if there's a serious mismatch between header and library.
107 */
108 LIBXML_TEST_VERSION;
109
110 /* Test that the library is greater than our minimum version */
111 if ((xml_major_version > major) ||
112 ((xml_major_version == major) && (xml_minor_version > minor)) ||
113 ((xml_major_version == major) && (xml_minor_version == minor) &&
114 (xml_micro_version >= micro)))
115 {
116 return 0;
117 }
118 else
119 {
120 printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
121 xml_major_version, xml_minor_version, xml_micro_version);
122 printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
123 major, minor, micro);
124 printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
125 printf("***\n");
126 printf("*** If you have already installed a sufficiently new version, this error\n");
127 printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
128 printf("*** being found. The easiest way to fix this is to remove the old version\n");
129 printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
130 printf("*** correct copy of xml2-config. (In this case, you will have to\n");
131 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
132 printf("*** so that the correct libraries are found at run-time))\n");
133 }
134 return 1;
135}
136],, no_xml=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
137 CPPFLAGS="$ac_save_CPPFLAGS"
138 LIBS="$ac_save_LIBS"
139 fi
140 fi
141
142 if test "x$no_xml" = x ; then
143 AC_MSG_RESULT(yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version))
144 ifelse([$2], , :, [$2])
145 else
146 AC_MSG_RESULT(no)
147 if test "$XML2_CONFIG" = "no" ; then
148 echo "*** The xml2-config script installed by LIBXML could not be found"
149 echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
150 echo "*** your path, or set the XML2_CONFIG environment variable to the"
151 echo "*** full path to xml2-config."
152 else
153 if test -f conf.xmltest ; then
154 :
155 else
156 echo "*** Could not run libxml test program, checking why..."
157 CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
158 LIBS="$LIBS $XML_LIBS"
159 AC_TRY_LINK([
160#include <libxml/xmlversion.h>
161#include <stdio.h>
162], [ LIBXML_TEST_VERSION; return 0;],
163 [ echo "*** The test program compiled, but did not run. This usually means"
164 echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
165 echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
166 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
167 echo "*** to the installed location Also, make sure you have run ldconfig if that"
168 echo "*** is required on your system"
169 echo "***"
170 echo "*** If you have an old version installed, it is best to remove it, although"
171 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
172 [ echo "*** The test program failed to compile or link. See the file config.log for the"
173 echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
174 echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
175 echo "*** may want to edit the xml2-config script: $XML2_CONFIG" ])
176 CPPFLAGS="$ac_save_CPPFLAGS"
177 LIBS="$ac_save_LIBS"
178 fi
179 fi
180
181 XML_CPPFLAGS=""
182 XML_LIBS=""
183 ifelse([$3], , :, [$3])
184 fi
185 AC_SUBST(XML_CPPFLAGS)
186 AC_SUBST(XML_LIBS)
187 rm -f conf.xmltest
188])
diff --git a/src/others/mimesh/libg3d-0.0.8/m4/win32.m4 b/src/others/mimesh/libg3d-0.0.8/m4/win32.m4
new file mode 100644
index 0000000..72c861d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/m4/win32.m4
@@ -0,0 +1,27 @@
1
2AC_DEFUN([AM_IS_WIN32],
3[
4 AC_MSG_CHECKING([for Win32])
5 case "$host" in
6 *-mingw*)
7 os_win32=yes
8 ;;
9 *)
10 os_win32=no
11 ;;
12 esac
13 AC_MSG_RESULT([$os_win32])
14 if test "$os_win32" = "yes"; then
15 if test x$enable_static = xyes -o x$enable_static = x; then
16 AC_MSG_WARN(
17 [Disabling static library build, must build as DLL on Windows.])
18 fi
19 if test x$enable_shared = xno; then
20 AC_MSG_WARN(
21 [Enabling shared library build, must build as DLL on Windows.])
22 fi
23 enable_static=no
24 enable_shared=yes
25 fi
26])
27
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/Makefile
new file mode 100644
index 0000000..b77109f
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/Makefile
@@ -0,0 +1,515 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17pkgdatadir = $(datadir)/libg3d
18pkglibdir = $(libdir)/libg3d
19pkgincludedir = $(includedir)/libg3d
20am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
21install_sh_DATA = $(install_sh) -c -m 644
22install_sh_PROGRAM = $(install_sh) -c
23install_sh_SCRIPT = $(install_sh) -c
24INSTALL_HEADER = $(INSTALL_DATA)
25transform = $(program_transform_name)
26NORMAL_INSTALL = :
27PRE_INSTALL = :
28POST_INSTALL = :
29NORMAL_UNINSTALL = :
30PRE_UNINSTALL = :
31POST_UNINSTALL = :
32build_triplet = x86_64-unknown-linux-gnu
33host_triplet = x86_64-unknown-linux-gnu
34subdir = plugins
35DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
36ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
37am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
38 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
39 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
40 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
41 $(top_srcdir)/configure.in
42am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43 $(ACLOCAL_M4)
44mkinstalldirs = $(install_sh) -d
45CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
46CONFIG_CLEAN_FILES =
47SOURCES =
48DIST_SOURCES =
49RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
50 html-recursive info-recursive install-data-recursive \
51 install-dvi-recursive install-exec-recursive \
52 install-html-recursive install-info-recursive \
53 install-pdf-recursive install-ps-recursive install-recursive \
54 installcheck-recursive installdirs-recursive pdf-recursive \
55 ps-recursive uninstall-recursive
56RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
57 distclean-recursive maintainer-clean-recursive
58ETAGS = etags
59CTAGS = ctags
60DIST_SUBDIRS = $(SUBDIRS)
61DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
62ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
63AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
64AR = ar
65AS = as
66AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
67AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
68AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
69AWK = gawk
70CC = gcc
71CCDEPMODE = depmode=gcc3
72CFLAGS = -g -O2
73CPP = gcc -E
74CPPFLAGS =
75CXX = g++
76CXXCPP = g++ -E
77CXXDEPMODE = depmode=gcc3
78CXXFLAGS = -g -O2
79CYGPATH_W = echo
80DBG_CFLAGS = -O2
81DEBUG = 0
82DEFS = -DHAVE_CONFIG_H
83DEPDIR = .deps
84DLLTOOL = dlltool
85ECHO = echo
86ECHO_C =
87ECHO_N = -n
88ECHO_T =
89EGREP = /bin/grep -E
90EXEEXT =
91F77 =
92FFLAGS =
93GDKPIXBUF_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
94GDKPIXBUF_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
95GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
96GLIB_GENMARSHAL = glib-genmarshal
97GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
98GLIB_MKENUMS = glib-mkenums
99GOBJECT_QUERY = gobject-query
100GREP = /bin/grep
101GTKDOC_CHECK = /usr/bin/gtkdoc-check
102GTK_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
103GTK_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
104HTML_DIR = ${datadir}/gtk-doc/html
105INSTALL = /usr/bin/install -c
106INSTALL_DATA = ${INSTALL} -m 644
107INSTALL_PROGRAM = ${INSTALL}
108INSTALL_SCRIPT = ${INSTALL}
109INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
110LDFLAGS =
111LEX = flex
112LEXLIB = -lfl
113LEX_OUTPUT_ROOT = lex.yy
114LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
115LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
116LIBOBJS =
117LIBS = -lm
118LIBTOOL = $(SHELL) $(top_builddir)/libtool
119LIBXML2_CFLAGS = -I/usr/include/libxml2
120LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
121LN_S = ln -s
122LTLIBOBJS =
123LTVERSION = 0:8:0
124MAGIC_LIBS = -lmagic
125MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
126MATH_LIBS = -lm
127MKDIR_P = /bin/mkdir -p
128OBJDUMP = objdump
129OBJEXT = o
130PACKAGE = libg3d
131PACKAGE_BUGREPORT =
132PACKAGE_NAME =
133PACKAGE_STRING =
134PACKAGE_TARNAME =
135PACKAGE_VERSION =
136PATH_SEPARATOR = :
137PKG_CONFIG = /usr/bin/pkg-config
138PLUGINS_LDFLAGS = -avoid-version -export-dynamic
139RANLIB = ranlib
140SET_MAKE =
141SHELL = /bin/bash
142STRIP = strip
143VERSION = 0.0.8
144XML2_CONFIG = /usr/bin/xml2-config
145XML_CPPFLAGS = -I/usr/include/libxml2
146XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
147Z_CFLAGS =
148Z_LIBS = -lz
149abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins
150abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins
151abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
152abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
153ac_ct_CC = gcc
154ac_ct_CXX = g++
155ac_ct_F77 =
156am__include = include
157am__leading_dot = .
158am__quote =
159am__tar = ${AMTAR} chof - "$$tardir"
160am__untar = ${AMTAR} xf -
161bindir = ${exec_prefix}/bin
162build = x86_64-unknown-linux-gnu
163build_alias =
164build_cpu = x86_64
165build_os = linux-gnu
166build_vendor = unknown
167builddir = .
168datadir = ${datarootdir}
169datarootdir = ${prefix}/share
170docdir = ${datarootdir}/doc/${PACKAGE}
171dvidir = ${docdir}
172exec_prefix = ${prefix}
173host = x86_64-unknown-linux-gnu
174host_alias =
175host_cpu = x86_64
176host_os = linux-gnu
177host_vendor = unknown
178htmldir = ${docdir}
179includedir = ${prefix}/include
180infodir = ${datarootdir}/info
181install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
182libdir = ${exec_prefix}/lib
183libexecdir = ${exec_prefix}/libexec
184localedir = ${datarootdir}/locale
185localstatedir = ${prefix}/var
186mandir = ${datarootdir}/man
187mkdir_p = /bin/mkdir -p
188oldincludedir = /usr/include
189pdfdir = ${docdir}
190prefix = /usr/local
191program_transform_name = s,x,x,
192psdir = ${docdir}
193sbindir = ${exec_prefix}/sbin
194sharedstatedir = ${prefix}/com
195srcdir = .
196sysconfdir = ${prefix}/etc
197target_alias =
198top_builddir = ..
199top_srcdir = ..
200SUBDIRS = image import
201all: all-recursive
202
203.SUFFIXES:
204$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
205 @for dep in $?; do \
206 case '$(am__configure_deps)' in \
207 *$$dep*) \
208 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
209 && exit 0; \
210 exit 1;; \
211 esac; \
212 done; \
213 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/Makefile'; \
214 cd $(top_srcdir) && \
215 $(AUTOMAKE) --gnu plugins/Makefile
216.PRECIOUS: Makefile
217Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
218 @case '$?' in \
219 *config.status*) \
220 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
221 *) \
222 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
223 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
224 esac;
225
226$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
227 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
228
229$(top_srcdir)/configure: $(am__configure_deps)
230 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
231$(ACLOCAL_M4): $(am__aclocal_m4_deps)
232 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
233
234mostlyclean-libtool:
235 -rm -f *.lo
236
237clean-libtool:
238 -rm -rf .libs _libs
239
240# This directory's subdirectories are mostly independent; you can cd
241# into them and run `make' without going through this Makefile.
242# To change the values of `make' variables: instead of editing Makefiles,
243# (1) if the variable is set in `config.status', edit `config.status'
244# (which will cause the Makefiles to be regenerated when you run `make');
245# (2) otherwise, pass the desired values on the `make' command line.
246$(RECURSIVE_TARGETS):
247 @failcom='exit 1'; \
248 for f in x $$MAKEFLAGS; do \
249 case $$f in \
250 *=* | --[!k]*);; \
251 *k*) failcom='fail=yes';; \
252 esac; \
253 done; \
254 dot_seen=no; \
255 target=`echo $@ | sed s/-recursive//`; \
256 list='$(SUBDIRS)'; for subdir in $$list; do \
257 echo "Making $$target in $$subdir"; \
258 if test "$$subdir" = "."; then \
259 dot_seen=yes; \
260 local_target="$$target-am"; \
261 else \
262 local_target="$$target"; \
263 fi; \
264 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
265 || eval $$failcom; \
266 done; \
267 if test "$$dot_seen" = "no"; then \
268 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
269 fi; test -z "$$fail"
270
271$(RECURSIVE_CLEAN_TARGETS):
272 @failcom='exit 1'; \
273 for f in x $$MAKEFLAGS; do \
274 case $$f in \
275 *=* | --[!k]*);; \
276 *k*) failcom='fail=yes';; \
277 esac; \
278 done; \
279 dot_seen=no; \
280 case "$@" in \
281 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
282 *) list='$(SUBDIRS)' ;; \
283 esac; \
284 rev=''; for subdir in $$list; do \
285 if test "$$subdir" = "."; then :; else \
286 rev="$$subdir $$rev"; \
287 fi; \
288 done; \
289 rev="$$rev ."; \
290 target=`echo $@ | sed s/-recursive//`; \
291 for subdir in $$rev; do \
292 echo "Making $$target in $$subdir"; \
293 if test "$$subdir" = "."; then \
294 local_target="$$target-am"; \
295 else \
296 local_target="$$target"; \
297 fi; \
298 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
299 || eval $$failcom; \
300 done && test -z "$$fail"
301tags-recursive:
302 list='$(SUBDIRS)'; for subdir in $$list; do \
303 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
304 done
305ctags-recursive:
306 list='$(SUBDIRS)'; for subdir in $$list; do \
307 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
308 done
309
310ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
311 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
312 unique=`for i in $$list; do \
313 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
314 done | \
315 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
316 END { if (nonempty) { for (i in files) print i; }; }'`; \
317 mkid -fID $$unique
318tags: TAGS
319
320TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
321 $(TAGS_FILES) $(LISP)
322 tags=; \
323 here=`pwd`; \
324 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
325 include_option=--etags-include; \
326 empty_fix=.; \
327 else \
328 include_option=--include; \
329 empty_fix=; \
330 fi; \
331 list='$(SUBDIRS)'; for subdir in $$list; do \
332 if test "$$subdir" = .; then :; else \
333 test ! -f $$subdir/TAGS || \
334 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
335 fi; \
336 done; \
337 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
338 unique=`for i in $$list; do \
339 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
340 done | \
341 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
342 END { if (nonempty) { for (i in files) print i; }; }'`; \
343 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
344 test -n "$$unique" || unique=$$empty_fix; \
345 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
346 $$tags $$unique; \
347 fi
348ctags: CTAGS
349CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
350 $(TAGS_FILES) $(LISP)
351 tags=; \
352 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
353 unique=`for i in $$list; do \
354 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
355 done | \
356 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
357 END { if (nonempty) { for (i in files) print i; }; }'`; \
358 test -z "$(CTAGS_ARGS)$$tags$$unique" \
359 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
360 $$tags $$unique
361
362GTAGS:
363 here=`$(am__cd) $(top_builddir) && pwd` \
364 && cd $(top_srcdir) \
365 && gtags -i $(GTAGS_ARGS) $$here
366
367distclean-tags:
368 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
369
370distdir: $(DISTFILES)
371 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
372 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
373 list='$(DISTFILES)'; \
374 dist_files=`for file in $$list; do echo $$file; done | \
375 sed -e "s|^$$srcdirstrip/||;t" \
376 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
377 case $$dist_files in \
378 */*) $(MKDIR_P) `echo "$$dist_files" | \
379 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
380 sort -u` ;; \
381 esac; \
382 for file in $$dist_files; do \
383 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
384 if test -d $$d/$$file; then \
385 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
386 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
387 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
388 fi; \
389 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
390 else \
391 test -f $(distdir)/$$file \
392 || cp -p $$d/$$file $(distdir)/$$file \
393 || exit 1; \
394 fi; \
395 done
396 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
397 if test "$$subdir" = .; then :; else \
398 test -d "$(distdir)/$$subdir" \
399 || $(MKDIR_P) "$(distdir)/$$subdir" \
400 || exit 1; \
401 distdir=`$(am__cd) $(distdir) && pwd`; \
402 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
403 (cd $$subdir && \
404 $(MAKE) $(AM_MAKEFLAGS) \
405 top_distdir="$$top_distdir" \
406 distdir="$$distdir/$$subdir" \
407 am__remove_distdir=: \
408 am__skip_length_check=: \
409 distdir) \
410 || exit 1; \
411 fi; \
412 done
413check-am: all-am
414check: check-recursive
415all-am: Makefile
416installdirs: installdirs-recursive
417installdirs-am:
418install: install-recursive
419install-exec: install-exec-recursive
420install-data: install-data-recursive
421uninstall: uninstall-recursive
422
423install-am: all-am
424 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
425
426installcheck: installcheck-recursive
427install-strip:
428 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
429 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
430 `test -z '$(STRIP)' || \
431 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
432mostlyclean-generic:
433
434clean-generic:
435
436distclean-generic:
437 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
438
439maintainer-clean-generic:
440 @echo "This command is intended for maintainers to use"
441 @echo "it deletes files that may require special tools to rebuild."
442clean: clean-recursive
443
444clean-am: clean-generic clean-libtool mostlyclean-am
445
446distclean: distclean-recursive
447 -rm -f Makefile
448distclean-am: clean-am distclean-generic distclean-tags
449
450dvi: dvi-recursive
451
452dvi-am:
453
454html: html-recursive
455
456info: info-recursive
457
458info-am:
459
460install-data-am:
461
462install-dvi: install-dvi-recursive
463
464install-exec-am:
465
466install-html: install-html-recursive
467
468install-info: install-info-recursive
469
470install-man:
471
472install-pdf: install-pdf-recursive
473
474install-ps: install-ps-recursive
475
476installcheck-am:
477
478maintainer-clean: maintainer-clean-recursive
479 -rm -f Makefile
480maintainer-clean-am: distclean-am maintainer-clean-generic
481
482mostlyclean: mostlyclean-recursive
483
484mostlyclean-am: mostlyclean-generic mostlyclean-libtool
485
486pdf: pdf-recursive
487
488pdf-am:
489
490ps: ps-recursive
491
492ps-am:
493
494uninstall-am:
495
496.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
497 install-strip
498
499.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
500 all all-am check check-am clean clean-generic clean-libtool \
501 ctags ctags-recursive distclean distclean-generic \
502 distclean-libtool distclean-tags distdir dvi dvi-am html \
503 html-am info info-am install install-am install-data \
504 install-data-am install-dvi install-dvi-am install-exec \
505 install-exec-am install-html install-html-am install-info \
506 install-info-am install-man install-pdf install-pdf-am \
507 install-ps install-ps-am install-strip installcheck \
508 installcheck-am installdirs installdirs-am maintainer-clean \
509 maintainer-clean-generic mostlyclean mostlyclean-generic \
510 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
511 uninstall uninstall-am
512
513# Tell versions [3.59,3.63) of GNU make to not export all variables.
514# Otherwise a system limit (for SysV at least) may be exceeded.
515.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/Makefile.am
new file mode 100644
index 0000000..92aee9f
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/Makefile.am
@@ -0,0 +1 @@
SUBDIRS = image import
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/Makefile.in
new file mode 100644
index 0000000..bb11a6d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/Makefile.in
@@ -0,0 +1,515 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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@
16VPATH = @srcdir@
17pkgdatadir = $(datadir)/@PACKAGE@
18pkglibdir = $(libdir)/@PACKAGE@
19pkgincludedir = $(includedir)/@PACKAGE@
20am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
21install_sh_DATA = $(install_sh) -c -m 644
22install_sh_PROGRAM = $(install_sh) -c
23install_sh_SCRIPT = $(install_sh) -c
24INSTALL_HEADER = $(INSTALL_DATA)
25transform = $(program_transform_name)
26NORMAL_INSTALL = :
27PRE_INSTALL = :
28POST_INSTALL = :
29NORMAL_UNINSTALL = :
30PRE_UNINSTALL = :
31POST_UNINSTALL = :
32build_triplet = @build@
33host_triplet = @host@
34subdir = plugins
35DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
36ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
37am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
38 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
39 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
40 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
41 $(top_srcdir)/configure.in
42am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43 $(ACLOCAL_M4)
44mkinstalldirs = $(install_sh) -d
45CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
46CONFIG_CLEAN_FILES =
47SOURCES =
48DIST_SOURCES =
49RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
50 html-recursive info-recursive install-data-recursive \
51 install-dvi-recursive install-exec-recursive \
52 install-html-recursive install-info-recursive \
53 install-pdf-recursive install-ps-recursive install-recursive \
54 installcheck-recursive installdirs-recursive pdf-recursive \
55 ps-recursive uninstall-recursive
56RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
57 distclean-recursive maintainer-clean-recursive
58ETAGS = etags
59CTAGS = ctags
60DIST_SUBDIRS = $(SUBDIRS)
61DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
62ACLOCAL = @ACLOCAL@
63AMTAR = @AMTAR@
64AR = @AR@
65AS = @AS@
66AUTOCONF = @AUTOCONF@
67AUTOHEADER = @AUTOHEADER@
68AUTOMAKE = @AUTOMAKE@
69AWK = @AWK@
70CC = @CC@
71CCDEPMODE = @CCDEPMODE@
72CFLAGS = @CFLAGS@
73CPP = @CPP@
74CPPFLAGS = @CPPFLAGS@
75CXX = @CXX@
76CXXCPP = @CXXCPP@
77CXXDEPMODE = @CXXDEPMODE@
78CXXFLAGS = @CXXFLAGS@
79CYGPATH_W = @CYGPATH_W@
80DBG_CFLAGS = @DBG_CFLAGS@
81DEBUG = @DEBUG@
82DEFS = @DEFS@
83DEPDIR = @DEPDIR@
84DLLTOOL = @DLLTOOL@
85ECHO = @ECHO@
86ECHO_C = @ECHO_C@
87ECHO_N = @ECHO_N@
88ECHO_T = @ECHO_T@
89EGREP = @EGREP@
90EXEEXT = @EXEEXT@
91F77 = @F77@
92FFLAGS = @FFLAGS@
93GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
94GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
95GLIB_CFLAGS = @GLIB_CFLAGS@
96GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
97GLIB_LIBS = @GLIB_LIBS@
98GLIB_MKENUMS = @GLIB_MKENUMS@
99GOBJECT_QUERY = @GOBJECT_QUERY@
100GREP = @GREP@
101GTKDOC_CHECK = @GTKDOC_CHECK@
102GTK_CFLAGS = @GTK_CFLAGS@
103GTK_LIBS = @GTK_LIBS@
104HTML_DIR = @HTML_DIR@
105INSTALL = @INSTALL@
106INSTALL_DATA = @INSTALL_DATA@
107INSTALL_PROGRAM = @INSTALL_PROGRAM@
108INSTALL_SCRIPT = @INSTALL_SCRIPT@
109INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
110LDFLAGS = @LDFLAGS@
111LEX = @LEX@
112LEXLIB = @LEXLIB@
113LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
114LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
115LIBGSF_LIBS = @LIBGSF_LIBS@
116LIBOBJS = @LIBOBJS@
117LIBS = @LIBS@
118LIBTOOL = @LIBTOOL@
119LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
120LIBXML2_LIBS = @LIBXML2_LIBS@
121LN_S = @LN_S@
122LTLIBOBJS = @LTLIBOBJS@
123LTVERSION = @LTVERSION@
124MAGIC_LIBS = @MAGIC_LIBS@
125MAKEINFO = @MAKEINFO@
126MATH_LIBS = @MATH_LIBS@
127MKDIR_P = @MKDIR_P@
128OBJDUMP = @OBJDUMP@
129OBJEXT = @OBJEXT@
130PACKAGE = @PACKAGE@
131PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
132PACKAGE_NAME = @PACKAGE_NAME@
133PACKAGE_STRING = @PACKAGE_STRING@
134PACKAGE_TARNAME = @PACKAGE_TARNAME@
135PACKAGE_VERSION = @PACKAGE_VERSION@
136PATH_SEPARATOR = @PATH_SEPARATOR@
137PKG_CONFIG = @PKG_CONFIG@
138PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
139RANLIB = @RANLIB@
140SET_MAKE = @SET_MAKE@
141SHELL = @SHELL@
142STRIP = @STRIP@
143VERSION = @VERSION@
144XML2_CONFIG = @XML2_CONFIG@
145XML_CPPFLAGS = @XML_CPPFLAGS@
146XML_LIBS = @XML_LIBS@
147Z_CFLAGS = @Z_CFLAGS@
148Z_LIBS = @Z_LIBS@
149abs_builddir = @abs_builddir@
150abs_srcdir = @abs_srcdir@
151abs_top_builddir = @abs_top_builddir@
152abs_top_srcdir = @abs_top_srcdir@
153ac_ct_CC = @ac_ct_CC@
154ac_ct_CXX = @ac_ct_CXX@
155ac_ct_F77 = @ac_ct_F77@
156am__include = @am__include@
157am__leading_dot = @am__leading_dot@
158am__quote = @am__quote@
159am__tar = @am__tar@
160am__untar = @am__untar@
161bindir = @bindir@
162build = @build@
163build_alias = @build_alias@
164build_cpu = @build_cpu@
165build_os = @build_os@
166build_vendor = @build_vendor@
167builddir = @builddir@
168datadir = @datadir@
169datarootdir = @datarootdir@
170docdir = @docdir@
171dvidir = @dvidir@
172exec_prefix = @exec_prefix@
173host = @host@
174host_alias = @host_alias@
175host_cpu = @host_cpu@
176host_os = @host_os@
177host_vendor = @host_vendor@
178htmldir = @htmldir@
179includedir = @includedir@
180infodir = @infodir@
181install_sh = @install_sh@
182libdir = @libdir@
183libexecdir = @libexecdir@
184localedir = @localedir@
185localstatedir = @localstatedir@
186mandir = @mandir@
187mkdir_p = @mkdir_p@
188oldincludedir = @oldincludedir@
189pdfdir = @pdfdir@
190prefix = @prefix@
191program_transform_name = @program_transform_name@
192psdir = @psdir@
193sbindir = @sbindir@
194sharedstatedir = @sharedstatedir@
195srcdir = @srcdir@
196sysconfdir = @sysconfdir@
197target_alias = @target_alias@
198top_builddir = @top_builddir@
199top_srcdir = @top_srcdir@
200SUBDIRS = image import
201all: all-recursive
202
203.SUFFIXES:
204$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
205 @for dep in $?; do \
206 case '$(am__configure_deps)' in \
207 *$$dep*) \
208 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
209 && exit 0; \
210 exit 1;; \
211 esac; \
212 done; \
213 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/Makefile'; \
214 cd $(top_srcdir) && \
215 $(AUTOMAKE) --gnu plugins/Makefile
216.PRECIOUS: Makefile
217Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
218 @case '$?' in \
219 *config.status*) \
220 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
221 *) \
222 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
223 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
224 esac;
225
226$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
227 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
228
229$(top_srcdir)/configure: $(am__configure_deps)
230 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
231$(ACLOCAL_M4): $(am__aclocal_m4_deps)
232 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
233
234mostlyclean-libtool:
235 -rm -f *.lo
236
237clean-libtool:
238 -rm -rf .libs _libs
239
240# This directory's subdirectories are mostly independent; you can cd
241# into them and run `make' without going through this Makefile.
242# To change the values of `make' variables: instead of editing Makefiles,
243# (1) if the variable is set in `config.status', edit `config.status'
244# (which will cause the Makefiles to be regenerated when you run `make');
245# (2) otherwise, pass the desired values on the `make' command line.
246$(RECURSIVE_TARGETS):
247 @failcom='exit 1'; \
248 for f in x $$MAKEFLAGS; do \
249 case $$f in \
250 *=* | --[!k]*);; \
251 *k*) failcom='fail=yes';; \
252 esac; \
253 done; \
254 dot_seen=no; \
255 target=`echo $@ | sed s/-recursive//`; \
256 list='$(SUBDIRS)'; for subdir in $$list; do \
257 echo "Making $$target in $$subdir"; \
258 if test "$$subdir" = "."; then \
259 dot_seen=yes; \
260 local_target="$$target-am"; \
261 else \
262 local_target="$$target"; \
263 fi; \
264 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
265 || eval $$failcom; \
266 done; \
267 if test "$$dot_seen" = "no"; then \
268 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
269 fi; test -z "$$fail"
270
271$(RECURSIVE_CLEAN_TARGETS):
272 @failcom='exit 1'; \
273 for f in x $$MAKEFLAGS; do \
274 case $$f in \
275 *=* | --[!k]*);; \
276 *k*) failcom='fail=yes';; \
277 esac; \
278 done; \
279 dot_seen=no; \
280 case "$@" in \
281 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
282 *) list='$(SUBDIRS)' ;; \
283 esac; \
284 rev=''; for subdir in $$list; do \
285 if test "$$subdir" = "."; then :; else \
286 rev="$$subdir $$rev"; \
287 fi; \
288 done; \
289 rev="$$rev ."; \
290 target=`echo $@ | sed s/-recursive//`; \
291 for subdir in $$rev; do \
292 echo "Making $$target in $$subdir"; \
293 if test "$$subdir" = "."; then \
294 local_target="$$target-am"; \
295 else \
296 local_target="$$target"; \
297 fi; \
298 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
299 || eval $$failcom; \
300 done && test -z "$$fail"
301tags-recursive:
302 list='$(SUBDIRS)'; for subdir in $$list; do \
303 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
304 done
305ctags-recursive:
306 list='$(SUBDIRS)'; for subdir in $$list; do \
307 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
308 done
309
310ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
311 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
312 unique=`for i in $$list; do \
313 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
314 done | \
315 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
316 END { if (nonempty) { for (i in files) print i; }; }'`; \
317 mkid -fID $$unique
318tags: TAGS
319
320TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
321 $(TAGS_FILES) $(LISP)
322 tags=; \
323 here=`pwd`; \
324 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
325 include_option=--etags-include; \
326 empty_fix=.; \
327 else \
328 include_option=--include; \
329 empty_fix=; \
330 fi; \
331 list='$(SUBDIRS)'; for subdir in $$list; do \
332 if test "$$subdir" = .; then :; else \
333 test ! -f $$subdir/TAGS || \
334 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
335 fi; \
336 done; \
337 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
338 unique=`for i in $$list; do \
339 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
340 done | \
341 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
342 END { if (nonempty) { for (i in files) print i; }; }'`; \
343 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
344 test -n "$$unique" || unique=$$empty_fix; \
345 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
346 $$tags $$unique; \
347 fi
348ctags: CTAGS
349CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
350 $(TAGS_FILES) $(LISP)
351 tags=; \
352 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
353 unique=`for i in $$list; do \
354 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
355 done | \
356 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
357 END { if (nonempty) { for (i in files) print i; }; }'`; \
358 test -z "$(CTAGS_ARGS)$$tags$$unique" \
359 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
360 $$tags $$unique
361
362GTAGS:
363 here=`$(am__cd) $(top_builddir) && pwd` \
364 && cd $(top_srcdir) \
365 && gtags -i $(GTAGS_ARGS) $$here
366
367distclean-tags:
368 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
369
370distdir: $(DISTFILES)
371 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
372 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
373 list='$(DISTFILES)'; \
374 dist_files=`for file in $$list; do echo $$file; done | \
375 sed -e "s|^$$srcdirstrip/||;t" \
376 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
377 case $$dist_files in \
378 */*) $(MKDIR_P) `echo "$$dist_files" | \
379 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
380 sort -u` ;; \
381 esac; \
382 for file in $$dist_files; do \
383 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
384 if test -d $$d/$$file; then \
385 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
386 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
387 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
388 fi; \
389 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
390 else \
391 test -f $(distdir)/$$file \
392 || cp -p $$d/$$file $(distdir)/$$file \
393 || exit 1; \
394 fi; \
395 done
396 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
397 if test "$$subdir" = .; then :; else \
398 test -d "$(distdir)/$$subdir" \
399 || $(MKDIR_P) "$(distdir)/$$subdir" \
400 || exit 1; \
401 distdir=`$(am__cd) $(distdir) && pwd`; \
402 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
403 (cd $$subdir && \
404 $(MAKE) $(AM_MAKEFLAGS) \
405 top_distdir="$$top_distdir" \
406 distdir="$$distdir/$$subdir" \
407 am__remove_distdir=: \
408 am__skip_length_check=: \
409 distdir) \
410 || exit 1; \
411 fi; \
412 done
413check-am: all-am
414check: check-recursive
415all-am: Makefile
416installdirs: installdirs-recursive
417installdirs-am:
418install: install-recursive
419install-exec: install-exec-recursive
420install-data: install-data-recursive
421uninstall: uninstall-recursive
422
423install-am: all-am
424 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
425
426installcheck: installcheck-recursive
427install-strip:
428 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
429 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
430 `test -z '$(STRIP)' || \
431 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
432mostlyclean-generic:
433
434clean-generic:
435
436distclean-generic:
437 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
438
439maintainer-clean-generic:
440 @echo "This command is intended for maintainers to use"
441 @echo "it deletes files that may require special tools to rebuild."
442clean: clean-recursive
443
444clean-am: clean-generic clean-libtool mostlyclean-am
445
446distclean: distclean-recursive
447 -rm -f Makefile
448distclean-am: clean-am distclean-generic distclean-tags
449
450dvi: dvi-recursive
451
452dvi-am:
453
454html: html-recursive
455
456info: info-recursive
457
458info-am:
459
460install-data-am:
461
462install-dvi: install-dvi-recursive
463
464install-exec-am:
465
466install-html: install-html-recursive
467
468install-info: install-info-recursive
469
470install-man:
471
472install-pdf: install-pdf-recursive
473
474install-ps: install-ps-recursive
475
476installcheck-am:
477
478maintainer-clean: maintainer-clean-recursive
479 -rm -f Makefile
480maintainer-clean-am: distclean-am maintainer-clean-generic
481
482mostlyclean: mostlyclean-recursive
483
484mostlyclean-am: mostlyclean-generic mostlyclean-libtool
485
486pdf: pdf-recursive
487
488pdf-am:
489
490ps: ps-recursive
491
492ps-am:
493
494uninstall-am:
495
496.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
497 install-strip
498
499.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
500 all all-am check check-am clean clean-generic clean-libtool \
501 ctags ctags-recursive distclean distclean-generic \
502 distclean-libtool distclean-tags distdir dvi dvi-am html \
503 html-am info info-am install install-am install-data \
504 install-data-am install-dvi install-dvi-am install-exec \
505 install-exec-am install-html install-html-am install-info \
506 install-info-am install-man install-pdf install-pdf-am \
507 install-ps install-ps-am install-strip installcheck \
508 installcheck-am installdirs installdirs-am maintainer-clean \
509 maintainer-clean-generic mostlyclean mostlyclean-generic \
510 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
511 uninstall uninstall-am
512
513# Tell versions [3.59,3.63) of GNU make to not export all variables.
514# Otherwise a system limit (for SysV at least) may be exceeded.
515.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/image/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/image/Makefile
new file mode 100644
index 0000000..d739118
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/image/Makefile
@@ -0,0 +1,552 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/image/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35am__append_1 = img_gdkpixbuf.la
36subdir = plugins/image
37DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
38ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
39am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
40 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
41 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
42 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
43 $(top_srcdir)/configure.in
44am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
45 $(ACLOCAL_M4)
46mkinstalldirs = $(install_sh) -d
47CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
48CONFIG_CLEAN_FILES =
49am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
50am__vpath_adj = case $$p in \
51 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
52 *) f=$$p;; \
53 esac;
54am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
55am__installdirs = "$(DESTDIR)$(pluginimgdir)"
56pluginimgLTLIBRARIES_INSTALL = $(INSTALL)
57LTLIBRARIES = $(pluginimg_LTLIBRARIES)
58img_bmp_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
59am_img_bmp_la_OBJECTS = img_bmp.lo
60img_bmp_la_OBJECTS = $(am_img_bmp_la_OBJECTS)
61img_dds_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
62am_img_dds_la_OBJECTS = img_dds.lo
63img_dds_la_OBJECTS = $(am_img_dds_la_OBJECTS)
64img_gdkpixbuf_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
65am_img_gdkpixbuf_la_OBJECTS = img_gdkpixbuf_la-img_gdkpixbuf.lo
66img_gdkpixbuf_la_OBJECTS = $(am_img_gdkpixbuf_la_OBJECTS)
67img_gdkpixbuf_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
68 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(img_gdkpixbuf_la_CFLAGS) \
69 $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
70am_img_gdkpixbuf_la_rpath = -rpath \
71 $(pluginimgdir)
72img_sgi_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
73am_img_sgi_la_OBJECTS = img_sgi.lo
74img_sgi_la_OBJECTS = $(am_img_sgi_la_OBJECTS)
75DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
76depcomp = $(SHELL) $(top_srcdir)/config/depcomp
77am__depfiles_maybe = depfiles
78COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
79 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
80LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
81 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
82 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
83CCLD = $(CC)
84LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
85 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
86 $(LDFLAGS) -o $@
87SOURCES = $(img_bmp_la_SOURCES) $(img_dds_la_SOURCES) \
88 $(img_gdkpixbuf_la_SOURCES) $(img_sgi_la_SOURCES)
89DIST_SOURCES = $(img_bmp_la_SOURCES) $(img_dds_la_SOURCES) \
90 $(img_gdkpixbuf_la_SOURCES) $(img_sgi_la_SOURCES)
91ETAGS = etags
92CTAGS = ctags
93DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
94ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
95AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
96AR = ar
97AS = as
98AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
99AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
100AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
101AWK = gawk
102CC = gcc
103CCDEPMODE = depmode=gcc3
104CFLAGS = -g -O2
105CPP = gcc -E
106CPPFLAGS =
107CXX = g++
108CXXCPP = g++ -E
109CXXDEPMODE = depmode=gcc3
110CXXFLAGS = -g -O2
111CYGPATH_W = echo
112DBG_CFLAGS = -O2
113DEBUG = 0
114DEFS = -DHAVE_CONFIG_H
115DEPDIR = .deps
116DLLTOOL = dlltool
117ECHO = echo
118ECHO_C =
119ECHO_N = -n
120ECHO_T =
121EGREP = /bin/grep -E
122EXEEXT =
123F77 =
124FFLAGS =
125GDKPIXBUF_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
126GDKPIXBUF_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
127GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
128GLIB_GENMARSHAL = glib-genmarshal
129GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
130GLIB_MKENUMS = glib-mkenums
131GOBJECT_QUERY = gobject-query
132GREP = /bin/grep
133GTKDOC_CHECK = /usr/bin/gtkdoc-check
134GTK_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
135GTK_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
136HTML_DIR = ${datadir}/gtk-doc/html
137INSTALL = /usr/bin/install -c
138INSTALL_DATA = ${INSTALL} -m 644
139INSTALL_PROGRAM = ${INSTALL}
140INSTALL_SCRIPT = ${INSTALL}
141INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
142LDFLAGS =
143LEX = flex
144LEXLIB = -lfl
145LEX_OUTPUT_ROOT = lex.yy
146LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
147LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
148LIBOBJS =
149LIBS = -lm
150LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
151LIBXML2_CFLAGS = -I/usr/include/libxml2
152LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
153LN_S = ln -s
154LTLIBOBJS =
155LTVERSION = 0:8:0
156MAGIC_LIBS = -lmagic
157MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
158MATH_LIBS = -lm
159MKDIR_P = /bin/mkdir -p
160OBJDUMP = objdump
161OBJEXT = o
162PACKAGE = libg3d
163PACKAGE_BUGREPORT =
164PACKAGE_NAME =
165PACKAGE_STRING =
166PACKAGE_TARNAME =
167PACKAGE_VERSION =
168PATH_SEPARATOR = :
169PKG_CONFIG = /usr/bin/pkg-config
170PLUGINS_LDFLAGS = -avoid-version -export-dynamic
171RANLIB = ranlib
172SET_MAKE =
173SHELL = /bin/bash
174STRIP = strip
175VERSION = 0.0.8
176XML2_CONFIG = /usr/bin/xml2-config
177XML_CPPFLAGS = -I/usr/include/libxml2
178XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
179Z_CFLAGS =
180Z_LIBS = -lz
181abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/image
182abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/image
183abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
184abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
185ac_ct_CC = gcc
186ac_ct_CXX = g++
187ac_ct_F77 =
188am__include = include
189am__leading_dot = .
190am__quote =
191am__tar = ${AMTAR} chof - "$$tardir"
192am__untar = ${AMTAR} xf -
193bindir = ${exec_prefix}/bin
194build = x86_64-unknown-linux-gnu
195build_alias =
196build_cpu = x86_64
197build_os = linux-gnu
198build_vendor = unknown
199builddir = .
200datadir = ${datarootdir}
201datarootdir = ${prefix}/share
202docdir = ${datarootdir}/doc/${PACKAGE}
203dvidir = ${docdir}
204exec_prefix = ${prefix}
205host = x86_64-unknown-linux-gnu
206host_alias =
207host_cpu = x86_64
208host_os = linux-gnu
209host_vendor = unknown
210htmldir = ${docdir}
211includedir = ${prefix}/include
212infodir = ${datarootdir}/info
213install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
214libdir = ${exec_prefix}/lib
215libexecdir = ${exec_prefix}/libexec
216localedir = ${datarootdir}/locale
217localstatedir = ${prefix}/var
218mandir = ${datarootdir}/man
219mkdir_p = /bin/mkdir -p
220oldincludedir = /usr/include
221pdfdir = ${docdir}
222prefix = /usr/local
223program_transform_name = s,x,x,
224psdir = ${docdir}
225sbindir = ${exec_prefix}/sbin
226sharedstatedir = ${prefix}/com
227srcdir = .
228sysconfdir = ${prefix}/etc
229target_alias =
230top_builddir = ../..
231top_srcdir = ../..
232pluginimgdir = $(pkglibdir)/plugins/image
233pluginimg_LTLIBRARIES = img_bmp.la img_sgi.la img_dds.la \
234 $(am__append_1)
235AM_CFLAGS = \
236 -Wall -ansi -pedantic \
237 -DG_LOG_DOMAIN=\"LibG3D\" \
238 -O2 -DDEBUG=0 \
239 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
240
241INCLUDES = -I$(top_srcdir)/include
242AM_LDFLAGS = \
243 -no-undefined -module \
244 -avoid-version -export-dynamic
245
246img_bmp_la_SOURCES = img_bmp.c
247img_bmp_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
248img_sgi_la_SOURCES = img_sgi.c
249img_sgi_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
250img_dds_la_SOURCES = img_dds.c
251img_dds_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
252img_gdkpixbuf_la_CFLAGS = ${AM_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
253img_gdkpixbuf_la_SOURCES = img_gdkpixbuf.c
254img_gdkpixbuf_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 \
255 -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
256
257all: all-am
258
259.SUFFIXES:
260.SUFFIXES: .c .lo .o .obj
261$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
262 @for dep in $?; do \
263 case '$(am__configure_deps)' in \
264 *$$dep*) \
265 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
266 && exit 0; \
267 exit 1;; \
268 esac; \
269 done; \
270 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/image/Makefile'; \
271 cd $(top_srcdir) && \
272 $(AUTOMAKE) --gnu plugins/image/Makefile
273.PRECIOUS: Makefile
274Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
275 @case '$?' in \
276 *config.status*) \
277 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
278 *) \
279 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
280 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
281 esac;
282
283$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
284 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
285
286$(top_srcdir)/configure: $(am__configure_deps)
287 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
288$(ACLOCAL_M4): $(am__aclocal_m4_deps)
289 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
290install-pluginimgLTLIBRARIES: $(pluginimg_LTLIBRARIES)
291 @$(NORMAL_INSTALL)
292 test -z "$(pluginimgdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimgdir)"
293 @list='$(pluginimg_LTLIBRARIES)'; for p in $$list; do \
294 if test -f $$p; then \
295 f=$(am__strip_dir) \
296 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimgLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimgdir)/$$f'"; \
297 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimgLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimgdir)/$$f"; \
298 else :; fi; \
299 done
300
301uninstall-pluginimgLTLIBRARIES:
302 @$(NORMAL_UNINSTALL)
303 @list='$(pluginimg_LTLIBRARIES)'; for p in $$list; do \
304 p=$(am__strip_dir) \
305 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimgdir)/$$p'"; \
306 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimgdir)/$$p"; \
307 done
308
309clean-pluginimgLTLIBRARIES:
310 -test -z "$(pluginimg_LTLIBRARIES)" || rm -f $(pluginimg_LTLIBRARIES)
311 @list='$(pluginimg_LTLIBRARIES)'; for p in $$list; do \
312 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
313 test "$$dir" != "$$p" || dir=.; \
314 echo "rm -f \"$${dir}/so_locations\""; \
315 rm -f "$${dir}/so_locations"; \
316 done
317img_bmp.la: $(img_bmp_la_OBJECTS) $(img_bmp_la_DEPENDENCIES)
318 $(LINK) -rpath $(pluginimgdir) $(img_bmp_la_OBJECTS) $(img_bmp_la_LIBADD) $(LIBS)
319img_dds.la: $(img_dds_la_OBJECTS) $(img_dds_la_DEPENDENCIES)
320 $(LINK) -rpath $(pluginimgdir) $(img_dds_la_OBJECTS) $(img_dds_la_LIBADD) $(LIBS)
321img_gdkpixbuf.la: $(img_gdkpixbuf_la_OBJECTS) $(img_gdkpixbuf_la_DEPENDENCIES)
322 $(img_gdkpixbuf_la_LINK) $(am_img_gdkpixbuf_la_rpath) $(img_gdkpixbuf_la_OBJECTS) $(img_gdkpixbuf_la_LIBADD) $(LIBS)
323img_sgi.la: $(img_sgi_la_OBJECTS) $(img_sgi_la_DEPENDENCIES)
324 $(LINK) -rpath $(pluginimgdir) $(img_sgi_la_OBJECTS) $(img_sgi_la_LIBADD) $(LIBS)
325
326mostlyclean-compile:
327 -rm -f *.$(OBJEXT)
328
329distclean-compile:
330 -rm -f *.tab.c
331
332include ./$(DEPDIR)/img_bmp.Plo
333include ./$(DEPDIR)/img_dds.Plo
334include ./$(DEPDIR)/img_gdkpixbuf_la-img_gdkpixbuf.Plo
335include ./$(DEPDIR)/img_sgi.Plo
336
337.c.o:
338 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
339 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
340# source='$<' object='$@' libtool=no \
341# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
342# $(COMPILE) -c $<
343
344.c.obj:
345 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
346 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
347# source='$<' object='$@' libtool=no \
348# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
349# $(COMPILE) -c `$(CYGPATH_W) '$<'`
350
351.c.lo:
352 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
353 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
354# source='$<' object='$@' libtool=yes \
355# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
356# $(LTCOMPILE) -c -o $@ $<
357
358img_gdkpixbuf_la-img_gdkpixbuf.lo: img_gdkpixbuf.c
359 $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(img_gdkpixbuf_la_CFLAGS) $(CFLAGS) -MT img_gdkpixbuf_la-img_gdkpixbuf.lo -MD -MP -MF $(DEPDIR)/img_gdkpixbuf_la-img_gdkpixbuf.Tpo -c -o img_gdkpixbuf_la-img_gdkpixbuf.lo `test -f 'img_gdkpixbuf.c' || echo '$(srcdir)/'`img_gdkpixbuf.c
360 mv -f $(DEPDIR)/img_gdkpixbuf_la-img_gdkpixbuf.Tpo $(DEPDIR)/img_gdkpixbuf_la-img_gdkpixbuf.Plo
361# source='img_gdkpixbuf.c' object='img_gdkpixbuf_la-img_gdkpixbuf.lo' libtool=yes \
362# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
363# $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(img_gdkpixbuf_la_CFLAGS) $(CFLAGS) -c -o img_gdkpixbuf_la-img_gdkpixbuf.lo `test -f 'img_gdkpixbuf.c' || echo '$(srcdir)/'`img_gdkpixbuf.c
364
365mostlyclean-libtool:
366 -rm -f *.lo
367
368clean-libtool:
369 -rm -rf .libs _libs
370
371ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
372 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
373 unique=`for i in $$list; do \
374 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
375 done | \
376 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
377 END { if (nonempty) { for (i in files) print i; }; }'`; \
378 mkid -fID $$unique
379tags: TAGS
380
381TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
382 $(TAGS_FILES) $(LISP)
383 tags=; \
384 here=`pwd`; \
385 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
386 unique=`for i in $$list; do \
387 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
388 done | \
389 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
390 END { if (nonempty) { for (i in files) print i; }; }'`; \
391 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
392 test -n "$$unique" || unique=$$empty_fix; \
393 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
394 $$tags $$unique; \
395 fi
396ctags: CTAGS
397CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
398 $(TAGS_FILES) $(LISP)
399 tags=; \
400 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
401 unique=`for i in $$list; do \
402 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
403 done | \
404 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
405 END { if (nonempty) { for (i in files) print i; }; }'`; \
406 test -z "$(CTAGS_ARGS)$$tags$$unique" \
407 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
408 $$tags $$unique
409
410GTAGS:
411 here=`$(am__cd) $(top_builddir) && pwd` \
412 && cd $(top_srcdir) \
413 && gtags -i $(GTAGS_ARGS) $$here
414
415distclean-tags:
416 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
417
418distdir: $(DISTFILES)
419 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
420 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
421 list='$(DISTFILES)'; \
422 dist_files=`for file in $$list; do echo $$file; done | \
423 sed -e "s|^$$srcdirstrip/||;t" \
424 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
425 case $$dist_files in \
426 */*) $(MKDIR_P) `echo "$$dist_files" | \
427 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
428 sort -u` ;; \
429 esac; \
430 for file in $$dist_files; do \
431 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
432 if test -d $$d/$$file; then \
433 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
434 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
435 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
436 fi; \
437 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
438 else \
439 test -f $(distdir)/$$file \
440 || cp -p $$d/$$file $(distdir)/$$file \
441 || exit 1; \
442 fi; \
443 done
444check-am: all-am
445check: check-am
446all-am: Makefile $(LTLIBRARIES)
447installdirs:
448 for dir in "$(DESTDIR)$(pluginimgdir)"; do \
449 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
450 done
451install: install-am
452install-exec: install-exec-am
453install-data: install-data-am
454uninstall: uninstall-am
455
456install-am: all-am
457 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
458
459installcheck: installcheck-am
460install-strip:
461 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
462 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
463 `test -z '$(STRIP)' || \
464 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
465mostlyclean-generic:
466
467clean-generic:
468
469distclean-generic:
470 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
471
472maintainer-clean-generic:
473 @echo "This command is intended for maintainers to use"
474 @echo "it deletes files that may require special tools to rebuild."
475clean: clean-am
476
477clean-am: clean-generic clean-libtool clean-pluginimgLTLIBRARIES \
478 mostlyclean-am
479
480distclean: distclean-am
481 -rm -rf ./$(DEPDIR)
482 -rm -f Makefile
483distclean-am: clean-am distclean-compile distclean-generic \
484 distclean-tags
485
486dvi: dvi-am
487
488dvi-am:
489
490html: html-am
491
492info: info-am
493
494info-am:
495
496install-data-am: install-pluginimgLTLIBRARIES
497
498install-dvi: install-dvi-am
499
500install-exec-am:
501
502install-html: install-html-am
503
504install-info: install-info-am
505
506install-man:
507
508install-pdf: install-pdf-am
509
510install-ps: install-ps-am
511
512installcheck-am:
513
514maintainer-clean: maintainer-clean-am
515 -rm -rf ./$(DEPDIR)
516 -rm -f Makefile
517maintainer-clean-am: distclean-am maintainer-clean-generic
518
519mostlyclean: mostlyclean-am
520
521mostlyclean-am: mostlyclean-compile mostlyclean-generic \
522 mostlyclean-libtool
523
524pdf: pdf-am
525
526pdf-am:
527
528ps: ps-am
529
530ps-am:
531
532uninstall-am: uninstall-pluginimgLTLIBRARIES
533
534.MAKE: install-am install-strip
535
536.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
537 clean-libtool clean-pluginimgLTLIBRARIES ctags distclean \
538 distclean-compile distclean-generic distclean-libtool \
539 distclean-tags distdir dvi dvi-am html html-am info info-am \
540 install install-am install-data install-data-am install-dvi \
541 install-dvi-am install-exec install-exec-am install-html \
542 install-html-am install-info install-info-am install-man \
543 install-pdf install-pdf-am install-pluginimgLTLIBRARIES \
544 install-ps install-ps-am install-strip installcheck \
545 installcheck-am installdirs maintainer-clean \
546 maintainer-clean-generic mostlyclean mostlyclean-compile \
547 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
548 tags uninstall uninstall-am uninstall-pluginimgLTLIBRARIES
549
550# Tell versions [3.59,3.63) of GNU make to not export all variables.
551# Otherwise a system limit (for SysV at least) may be exceeded.
552.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/image/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/image/Makefile.am
new file mode 100644
index 0000000..1c40c96
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/image/Makefile.am
@@ -0,0 +1,36 @@
1pluginimgdir = $(pkglibdir)/plugins/image
2
3pluginimg_LTLIBRARIES = \
4 img_bmp.la \
5 img_sgi.la \
6 img_dds.la
7
8if HAVE_GDKPIXBUF
9pluginimg_LTLIBRARIES += img_gdkpixbuf.la
10endif
11
12AM_CFLAGS = \
13 -Wall -ansi -pedantic \
14 -DG_LOG_DOMAIN=\"LibG3D\" \
15 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
16 @GLIB_CFLAGS@
17
18INCLUDES = -I$(top_srcdir)/include
19
20AM_LDFLAGS = \
21 -no-undefined -module \
22 @PLUGINS_LDFLAGS@
23
24LIBTOOL += --quiet
25
26img_bmp_la_SOURCES = img_bmp.c
27img_bmp_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
28img_sgi_la_SOURCES = img_sgi.c
29img_sgi_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
30img_dds_la_SOURCES = img_dds.c
31img_dds_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
32
33img_gdkpixbuf_la_CFLAGS = ${AM_CFLAGS} @GDKPIXBUF_CFLAGS@
34img_gdkpixbuf_la_SOURCES = img_gdkpixbuf.c
35img_gdkpixbuf_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ \
36 @GDKPIXBUF_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/image/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/image/Makefile.in
new file mode 100644
index 0000000..23bb6d6
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/image/Makefile.in
@@ -0,0 +1,552 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35@HAVE_GDKPIXBUF_TRUE@am__append_1 = img_gdkpixbuf.la
36subdir = plugins/image
37DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
38ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
39am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
40 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
41 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
42 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
43 $(top_srcdir)/configure.in
44am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
45 $(ACLOCAL_M4)
46mkinstalldirs = $(install_sh) -d
47CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
48CONFIG_CLEAN_FILES =
49am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
50am__vpath_adj = case $$p in \
51 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
52 *) f=$$p;; \
53 esac;
54am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
55am__installdirs = "$(DESTDIR)$(pluginimgdir)"
56pluginimgLTLIBRARIES_INSTALL = $(INSTALL)
57LTLIBRARIES = $(pluginimg_LTLIBRARIES)
58img_bmp_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
59am_img_bmp_la_OBJECTS = img_bmp.lo
60img_bmp_la_OBJECTS = $(am_img_bmp_la_OBJECTS)
61img_dds_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
62am_img_dds_la_OBJECTS = img_dds.lo
63img_dds_la_OBJECTS = $(am_img_dds_la_OBJECTS)
64img_gdkpixbuf_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
65am_img_gdkpixbuf_la_OBJECTS = img_gdkpixbuf_la-img_gdkpixbuf.lo
66img_gdkpixbuf_la_OBJECTS = $(am_img_gdkpixbuf_la_OBJECTS)
67img_gdkpixbuf_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
68 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(img_gdkpixbuf_la_CFLAGS) \
69 $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
70@HAVE_GDKPIXBUF_TRUE@am_img_gdkpixbuf_la_rpath = -rpath \
71@HAVE_GDKPIXBUF_TRUE@ $(pluginimgdir)
72img_sgi_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
73am_img_sgi_la_OBJECTS = img_sgi.lo
74img_sgi_la_OBJECTS = $(am_img_sgi_la_OBJECTS)
75DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
76depcomp = $(SHELL) $(top_srcdir)/config/depcomp
77am__depfiles_maybe = depfiles
78COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
79 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
80LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
81 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
82 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
83CCLD = $(CC)
84LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
85 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
86 $(LDFLAGS) -o $@
87SOURCES = $(img_bmp_la_SOURCES) $(img_dds_la_SOURCES) \
88 $(img_gdkpixbuf_la_SOURCES) $(img_sgi_la_SOURCES)
89DIST_SOURCES = $(img_bmp_la_SOURCES) $(img_dds_la_SOURCES) \
90 $(img_gdkpixbuf_la_SOURCES) $(img_sgi_la_SOURCES)
91ETAGS = etags
92CTAGS = ctags
93DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
94ACLOCAL = @ACLOCAL@
95AMTAR = @AMTAR@
96AR = @AR@
97AS = @AS@
98AUTOCONF = @AUTOCONF@
99AUTOHEADER = @AUTOHEADER@
100AUTOMAKE = @AUTOMAKE@
101AWK = @AWK@
102CC = @CC@
103CCDEPMODE = @CCDEPMODE@
104CFLAGS = @CFLAGS@
105CPP = @CPP@
106CPPFLAGS = @CPPFLAGS@
107CXX = @CXX@
108CXXCPP = @CXXCPP@
109CXXDEPMODE = @CXXDEPMODE@
110CXXFLAGS = @CXXFLAGS@
111CYGPATH_W = @CYGPATH_W@
112DBG_CFLAGS = @DBG_CFLAGS@
113DEBUG = @DEBUG@
114DEFS = @DEFS@
115DEPDIR = @DEPDIR@
116DLLTOOL = @DLLTOOL@
117ECHO = @ECHO@
118ECHO_C = @ECHO_C@
119ECHO_N = @ECHO_N@
120ECHO_T = @ECHO_T@
121EGREP = @EGREP@
122EXEEXT = @EXEEXT@
123F77 = @F77@
124FFLAGS = @FFLAGS@
125GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
126GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
127GLIB_CFLAGS = @GLIB_CFLAGS@
128GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
129GLIB_LIBS = @GLIB_LIBS@
130GLIB_MKENUMS = @GLIB_MKENUMS@
131GOBJECT_QUERY = @GOBJECT_QUERY@
132GREP = @GREP@
133GTKDOC_CHECK = @GTKDOC_CHECK@
134GTK_CFLAGS = @GTK_CFLAGS@
135GTK_LIBS = @GTK_LIBS@
136HTML_DIR = @HTML_DIR@
137INSTALL = @INSTALL@
138INSTALL_DATA = @INSTALL_DATA@
139INSTALL_PROGRAM = @INSTALL_PROGRAM@
140INSTALL_SCRIPT = @INSTALL_SCRIPT@
141INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
142LDFLAGS = @LDFLAGS@
143LEX = @LEX@
144LEXLIB = @LEXLIB@
145LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
146LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
147LIBGSF_LIBS = @LIBGSF_LIBS@
148LIBOBJS = @LIBOBJS@
149LIBS = @LIBS@
150LIBTOOL = @LIBTOOL@ --quiet
151LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
152LIBXML2_LIBS = @LIBXML2_LIBS@
153LN_S = @LN_S@
154LTLIBOBJS = @LTLIBOBJS@
155LTVERSION = @LTVERSION@
156MAGIC_LIBS = @MAGIC_LIBS@
157MAKEINFO = @MAKEINFO@
158MATH_LIBS = @MATH_LIBS@
159MKDIR_P = @MKDIR_P@
160OBJDUMP = @OBJDUMP@
161OBJEXT = @OBJEXT@
162PACKAGE = @PACKAGE@
163PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
164PACKAGE_NAME = @PACKAGE_NAME@
165PACKAGE_STRING = @PACKAGE_STRING@
166PACKAGE_TARNAME = @PACKAGE_TARNAME@
167PACKAGE_VERSION = @PACKAGE_VERSION@
168PATH_SEPARATOR = @PATH_SEPARATOR@
169PKG_CONFIG = @PKG_CONFIG@
170PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
171RANLIB = @RANLIB@
172SET_MAKE = @SET_MAKE@
173SHELL = @SHELL@
174STRIP = @STRIP@
175VERSION = @VERSION@
176XML2_CONFIG = @XML2_CONFIG@
177XML_CPPFLAGS = @XML_CPPFLAGS@
178XML_LIBS = @XML_LIBS@
179Z_CFLAGS = @Z_CFLAGS@
180Z_LIBS = @Z_LIBS@
181abs_builddir = @abs_builddir@
182abs_srcdir = @abs_srcdir@
183abs_top_builddir = @abs_top_builddir@
184abs_top_srcdir = @abs_top_srcdir@
185ac_ct_CC = @ac_ct_CC@
186ac_ct_CXX = @ac_ct_CXX@
187ac_ct_F77 = @ac_ct_F77@
188am__include = @am__include@
189am__leading_dot = @am__leading_dot@
190am__quote = @am__quote@
191am__tar = @am__tar@
192am__untar = @am__untar@
193bindir = @bindir@
194build = @build@
195build_alias = @build_alias@
196build_cpu = @build_cpu@
197build_os = @build_os@
198build_vendor = @build_vendor@
199builddir = @builddir@
200datadir = @datadir@
201datarootdir = @datarootdir@
202docdir = @docdir@
203dvidir = @dvidir@
204exec_prefix = @exec_prefix@
205host = @host@
206host_alias = @host_alias@
207host_cpu = @host_cpu@
208host_os = @host_os@
209host_vendor = @host_vendor@
210htmldir = @htmldir@
211includedir = @includedir@
212infodir = @infodir@
213install_sh = @install_sh@
214libdir = @libdir@
215libexecdir = @libexecdir@
216localedir = @localedir@
217localstatedir = @localstatedir@
218mandir = @mandir@
219mkdir_p = @mkdir_p@
220oldincludedir = @oldincludedir@
221pdfdir = @pdfdir@
222prefix = @prefix@
223program_transform_name = @program_transform_name@
224psdir = @psdir@
225sbindir = @sbindir@
226sharedstatedir = @sharedstatedir@
227srcdir = @srcdir@
228sysconfdir = @sysconfdir@
229target_alias = @target_alias@
230top_builddir = @top_builddir@
231top_srcdir = @top_srcdir@
232pluginimgdir = $(pkglibdir)/plugins/image
233pluginimg_LTLIBRARIES = img_bmp.la img_sgi.la img_dds.la \
234 $(am__append_1)
235AM_CFLAGS = \
236 -Wall -ansi -pedantic \
237 -DG_LOG_DOMAIN=\"LibG3D\" \
238 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
239 @GLIB_CFLAGS@
240
241INCLUDES = -I$(top_srcdir)/include
242AM_LDFLAGS = \
243 -no-undefined -module \
244 @PLUGINS_LDFLAGS@
245
246img_bmp_la_SOURCES = img_bmp.c
247img_bmp_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
248img_sgi_la_SOURCES = img_sgi.c
249img_sgi_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
250img_dds_la_SOURCES = img_dds.c
251img_dds_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
252img_gdkpixbuf_la_CFLAGS = ${AM_CFLAGS} @GDKPIXBUF_CFLAGS@
253img_gdkpixbuf_la_SOURCES = img_gdkpixbuf.c
254img_gdkpixbuf_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ \
255 @GDKPIXBUF_LIBS@
256
257all: all-am
258
259.SUFFIXES:
260.SUFFIXES: .c .lo .o .obj
261$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
262 @for dep in $?; do \
263 case '$(am__configure_deps)' in \
264 *$$dep*) \
265 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
266 && exit 0; \
267 exit 1;; \
268 esac; \
269 done; \
270 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/image/Makefile'; \
271 cd $(top_srcdir) && \
272 $(AUTOMAKE) --gnu plugins/image/Makefile
273.PRECIOUS: Makefile
274Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
275 @case '$?' in \
276 *config.status*) \
277 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
278 *) \
279 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
280 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
281 esac;
282
283$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
284 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
285
286$(top_srcdir)/configure: $(am__configure_deps)
287 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
288$(ACLOCAL_M4): $(am__aclocal_m4_deps)
289 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
290install-pluginimgLTLIBRARIES: $(pluginimg_LTLIBRARIES)
291 @$(NORMAL_INSTALL)
292 test -z "$(pluginimgdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimgdir)"
293 @list='$(pluginimg_LTLIBRARIES)'; for p in $$list; do \
294 if test -f $$p; then \
295 f=$(am__strip_dir) \
296 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimgLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimgdir)/$$f'"; \
297 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimgLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimgdir)/$$f"; \
298 else :; fi; \
299 done
300
301uninstall-pluginimgLTLIBRARIES:
302 @$(NORMAL_UNINSTALL)
303 @list='$(pluginimg_LTLIBRARIES)'; for p in $$list; do \
304 p=$(am__strip_dir) \
305 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimgdir)/$$p'"; \
306 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimgdir)/$$p"; \
307 done
308
309clean-pluginimgLTLIBRARIES:
310 -test -z "$(pluginimg_LTLIBRARIES)" || rm -f $(pluginimg_LTLIBRARIES)
311 @list='$(pluginimg_LTLIBRARIES)'; for p in $$list; do \
312 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
313 test "$$dir" != "$$p" || dir=.; \
314 echo "rm -f \"$${dir}/so_locations\""; \
315 rm -f "$${dir}/so_locations"; \
316 done
317img_bmp.la: $(img_bmp_la_OBJECTS) $(img_bmp_la_DEPENDENCIES)
318 $(LINK) -rpath $(pluginimgdir) $(img_bmp_la_OBJECTS) $(img_bmp_la_LIBADD) $(LIBS)
319img_dds.la: $(img_dds_la_OBJECTS) $(img_dds_la_DEPENDENCIES)
320 $(LINK) -rpath $(pluginimgdir) $(img_dds_la_OBJECTS) $(img_dds_la_LIBADD) $(LIBS)
321img_gdkpixbuf.la: $(img_gdkpixbuf_la_OBJECTS) $(img_gdkpixbuf_la_DEPENDENCIES)
322 $(img_gdkpixbuf_la_LINK) $(am_img_gdkpixbuf_la_rpath) $(img_gdkpixbuf_la_OBJECTS) $(img_gdkpixbuf_la_LIBADD) $(LIBS)
323img_sgi.la: $(img_sgi_la_OBJECTS) $(img_sgi_la_DEPENDENCIES)
324 $(LINK) -rpath $(pluginimgdir) $(img_sgi_la_OBJECTS) $(img_sgi_la_LIBADD) $(LIBS)
325
326mostlyclean-compile:
327 -rm -f *.$(OBJEXT)
328
329distclean-compile:
330 -rm -f *.tab.c
331
332@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/img_bmp.Plo@am__quote@
333@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/img_dds.Plo@am__quote@
334@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/img_gdkpixbuf_la-img_gdkpixbuf.Plo@am__quote@
335@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/img_sgi.Plo@am__quote@
336
337.c.o:
338@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
339@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
340@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
341@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
342@am__fastdepCC_FALSE@ $(COMPILE) -c $<
343
344.c.obj:
345@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
346@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
347@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
348@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
349@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
350
351.c.lo:
352@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
353@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
354@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
355@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
356@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
357
358img_gdkpixbuf_la-img_gdkpixbuf.lo: img_gdkpixbuf.c
359@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(img_gdkpixbuf_la_CFLAGS) $(CFLAGS) -MT img_gdkpixbuf_la-img_gdkpixbuf.lo -MD -MP -MF $(DEPDIR)/img_gdkpixbuf_la-img_gdkpixbuf.Tpo -c -o img_gdkpixbuf_la-img_gdkpixbuf.lo `test -f 'img_gdkpixbuf.c' || echo '$(srcdir)/'`img_gdkpixbuf.c
360@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/img_gdkpixbuf_la-img_gdkpixbuf.Tpo $(DEPDIR)/img_gdkpixbuf_la-img_gdkpixbuf.Plo
361@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='img_gdkpixbuf.c' object='img_gdkpixbuf_la-img_gdkpixbuf.lo' libtool=yes @AMDEPBACKSLASH@
362@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
363@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(img_gdkpixbuf_la_CFLAGS) $(CFLAGS) -c -o img_gdkpixbuf_la-img_gdkpixbuf.lo `test -f 'img_gdkpixbuf.c' || echo '$(srcdir)/'`img_gdkpixbuf.c
364
365mostlyclean-libtool:
366 -rm -f *.lo
367
368clean-libtool:
369 -rm -rf .libs _libs
370
371ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
372 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
373 unique=`for i in $$list; do \
374 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
375 done | \
376 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
377 END { if (nonempty) { for (i in files) print i; }; }'`; \
378 mkid -fID $$unique
379tags: TAGS
380
381TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
382 $(TAGS_FILES) $(LISP)
383 tags=; \
384 here=`pwd`; \
385 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
386 unique=`for i in $$list; do \
387 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
388 done | \
389 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
390 END { if (nonempty) { for (i in files) print i; }; }'`; \
391 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
392 test -n "$$unique" || unique=$$empty_fix; \
393 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
394 $$tags $$unique; \
395 fi
396ctags: CTAGS
397CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
398 $(TAGS_FILES) $(LISP)
399 tags=; \
400 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
401 unique=`for i in $$list; do \
402 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
403 done | \
404 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
405 END { if (nonempty) { for (i in files) print i; }; }'`; \
406 test -z "$(CTAGS_ARGS)$$tags$$unique" \
407 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
408 $$tags $$unique
409
410GTAGS:
411 here=`$(am__cd) $(top_builddir) && pwd` \
412 && cd $(top_srcdir) \
413 && gtags -i $(GTAGS_ARGS) $$here
414
415distclean-tags:
416 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
417
418distdir: $(DISTFILES)
419 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
420 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
421 list='$(DISTFILES)'; \
422 dist_files=`for file in $$list; do echo $$file; done | \
423 sed -e "s|^$$srcdirstrip/||;t" \
424 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
425 case $$dist_files in \
426 */*) $(MKDIR_P) `echo "$$dist_files" | \
427 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
428 sort -u` ;; \
429 esac; \
430 for file in $$dist_files; do \
431 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
432 if test -d $$d/$$file; then \
433 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
434 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
435 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
436 fi; \
437 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
438 else \
439 test -f $(distdir)/$$file \
440 || cp -p $$d/$$file $(distdir)/$$file \
441 || exit 1; \
442 fi; \
443 done
444check-am: all-am
445check: check-am
446all-am: Makefile $(LTLIBRARIES)
447installdirs:
448 for dir in "$(DESTDIR)$(pluginimgdir)"; do \
449 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
450 done
451install: install-am
452install-exec: install-exec-am
453install-data: install-data-am
454uninstall: uninstall-am
455
456install-am: all-am
457 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
458
459installcheck: installcheck-am
460install-strip:
461 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
462 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
463 `test -z '$(STRIP)' || \
464 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
465mostlyclean-generic:
466
467clean-generic:
468
469distclean-generic:
470 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
471
472maintainer-clean-generic:
473 @echo "This command is intended for maintainers to use"
474 @echo "it deletes files that may require special tools to rebuild."
475clean: clean-am
476
477clean-am: clean-generic clean-libtool clean-pluginimgLTLIBRARIES \
478 mostlyclean-am
479
480distclean: distclean-am
481 -rm -rf ./$(DEPDIR)
482 -rm -f Makefile
483distclean-am: clean-am distclean-compile distclean-generic \
484 distclean-tags
485
486dvi: dvi-am
487
488dvi-am:
489
490html: html-am
491
492info: info-am
493
494info-am:
495
496install-data-am: install-pluginimgLTLIBRARIES
497
498install-dvi: install-dvi-am
499
500install-exec-am:
501
502install-html: install-html-am
503
504install-info: install-info-am
505
506install-man:
507
508install-pdf: install-pdf-am
509
510install-ps: install-ps-am
511
512installcheck-am:
513
514maintainer-clean: maintainer-clean-am
515 -rm -rf ./$(DEPDIR)
516 -rm -f Makefile
517maintainer-clean-am: distclean-am maintainer-clean-generic
518
519mostlyclean: mostlyclean-am
520
521mostlyclean-am: mostlyclean-compile mostlyclean-generic \
522 mostlyclean-libtool
523
524pdf: pdf-am
525
526pdf-am:
527
528ps: ps-am
529
530ps-am:
531
532uninstall-am: uninstall-pluginimgLTLIBRARIES
533
534.MAKE: install-am install-strip
535
536.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
537 clean-libtool clean-pluginimgLTLIBRARIES ctags distclean \
538 distclean-compile distclean-generic distclean-libtool \
539 distclean-tags distdir dvi dvi-am html html-am info info-am \
540 install install-am install-data install-data-am install-dvi \
541 install-dvi-am install-exec install-exec-am install-html \
542 install-html-am install-info install-info-am install-man \
543 install-pdf install-pdf-am install-pluginimgLTLIBRARIES \
544 install-ps install-ps-am install-strip installcheck \
545 installcheck-am installdirs maintainer-clean \
546 maintainer-clean-generic mostlyclean mostlyclean-compile \
547 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
548 tags uninstall uninstall-am uninstall-pluginimgLTLIBRARIES
549
550# Tell versions [3.59,3.63) of GNU make to not export all variables.
551# Otherwise a system limit (for SysV at least) may be exceeded.
552.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/image/img_bmp.c b/src/others/mimesh/libg3d-0.0.8/plugins/image/img_bmp.c
new file mode 100644
index 0000000..827997a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/image/img_bmp.c
@@ -0,0 +1,129 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <string.h>
25#include <errno.h>
26
27#include <g3d/types.h>
28#include <g3d/stream.h>
29
30EAPI
31gboolean plugin_load_image_from_stream(G3DContext *context, G3DStream *stream,
32 G3DImage *image, gpointer user_data)
33{
34 guint32 filesize, offset, headsize, compression;
35 gint32 x, y, i;
36 guint32 ncolplanes, c;
37
38 /* bitmap file always starts with 'BM' */
39 if(g3d_stream_read_int16_le(stream) != ('B' | ('M' << 8))) {
40 g_warning("bitmap magic not found: image seems to be corrupt\n");
41 return FALSE;
42 }
43
44 image->name = g_strdup(stream->uri);
45
46 filesize = g3d_stream_read_int32_le(stream); /* file size */
47 g3d_stream_read_int32_le(stream); /* 2 x UINT16 reserved */
48 offset = g3d_stream_read_int32_le(stream); /* offset of data */
49 headsize = g3d_stream_read_int32_le(stream); /* size of header */
50 image->width = g3d_stream_read_int32_le(stream); /* width */
51 image->height = g3d_stream_read_int32_le(stream); /* height */
52 ncolplanes = g3d_stream_read_int16_le(stream); /* num of color planes */
53 image->depth = g3d_stream_read_int16_le(stream); /* bits per pixel */
54 compression = g3d_stream_read_int32_le(stream); /* compression */
55 g3d_stream_read_int32_le(stream); /* image size */
56 g3d_stream_read_int32_le(stream); /* v/res (dpi) */
57 g3d_stream_read_int32_le(stream); /* h/res (dpi) */
58
59#if DEBUG > 0
60 g_debug("BMP: %dx%dx%d (%d, 0x%x)", image->width, image->height,
61 image->depth, ncolplanes, compression);
62#endif
63
64 g3d_stream_seek(stream, offset, G_SEEK_SET);
65
66#define ALL32BIT
67#ifndef ALL32BIT /* always 32bit for now.. */
68 image->pixeldata = g_new0(guint8,
69 image->width * image->height * (image->depth / 8));
70#else
71 image->pixeldata = g_new0(guint8, image->width * image->height * 4);
72#endif
73
74 for(y = (image->height - 1); y >= 0; y --) {
75 for(x = 0; x < image->width; x ++) {
76 switch(image->depth) {
77 case 8:
78#ifndef ALL32BIT
79 image->pixeldata[y * image->width + x] =
80 g3d_stream_read_int8(stream);
81#else
82 c = g3d_stream_read_int8(stream);
83 for(i = 0; i < 3; i ++)
84 image->pixeldata[(y * image->width + x) * 4 + i] = c;
85 image->pixeldata[(y * image->width + x) * 4 + 3] = 0xFF;
86#endif
87 break;
88 case 24:
89#if 1
90 /* read BGR */
91 for(i = 2; i >= 0; i --)
92#else
93 for(i = 0; i < 3; i ++)
94#endif
95 image->pixeldata[(y * image->width + x) * 4 + i] =
96 g3d_stream_read_int8(stream);
97 image->pixeldata[(y * image->width + x) * 4 + 3] = 0xFF;
98 break;
99 default:
100 break;
101 }
102 } /* x */
103#if 1
104 /* padding */
105 for(i = x; i < ((image->width + 3) & ~(3)); i ++)
106 g3d_stream_read_int8(stream);
107#endif
108 } /* y */
109 image->depth = 32;
110#if DEBUG > 2
111 g_debug("bitmap successfully loaded");
112#endif
113
114 return TRUE;
115}
116
117EAPI
118gchar *plugin_description(G3DContext *context)
119{
120 return g_strdup("Windows Bitmap images.\n"
121 "Author: Markus Dahms");
122}
123
124EAPI
125gchar **plugin_extensions(G3DContext *context)
126{
127 return g_strsplit("bmp", ":", 0);
128}
129
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/image/img_dds.c b/src/others/mimesh/libg3d-0.0.8/plugins/image/img_dds.c
new file mode 100644
index 0000000..cf6c58f
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/image/img_dds.c
@@ -0,0 +1,149 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <string.h>
25
26#include <g3d/types.h>
27#include <g3d/stream.h>
28#include <g3d/iff.h>
29
30static gboolean decode_dxt1(G3DImage *image, G3DStream *stream);
31
32EAPI
33gboolean plugin_load_image_from_stream(G3DContext *context, G3DStream *stream,
34 G3DImage *image, gpointer user_data)
35{
36 guint32 magic, size, flags, depth;
37 guint32 pfsize, pfflags, pffourcc, pfbpp;
38 guint32 pfrmask, pfgmask, pfbmask, pfamask;
39 guint32 caps1, caps2;
40 gchar *sfourcc;
41
42 magic = g3d_stream_read_int32_be(stream);
43 if(magic != G3D_IFF_MKID('D','D','S',' ')) {
44 g_warning("%s is not a DDS file", stream->uri);
45 return FALSE;
46 }
47 image->name = g_strdup(stream->uri);
48
49 size = g3d_stream_read_int32_le(stream);
50 flags = g3d_stream_read_int32_le(stream);
51 image->height = g3d_stream_read_int32_le(stream);
52 image->width = g3d_stream_read_int32_le(stream);
53 g3d_stream_read_int32_le(stream); /* pitch or linesize */
54 depth = g3d_stream_read_int32_le(stream);
55 g3d_stream_read_int32_le(stream); /* num mipmaps */
56
57 g3d_stream_skip(stream, 44);
58
59 pfsize = g3d_stream_read_int32_le(stream);
60 pfflags = g3d_stream_read_int32_le(stream);
61
62 pffourcc = g3d_stream_read_int32_be(stream);
63 sfourcc = g3d_iff_id_to_text(pffourcc);
64
65 pfbpp = g3d_stream_read_int32_le(stream);
66 pfrmask = g3d_stream_read_int32_le(stream);
67 pfgmask = g3d_stream_read_int32_le(stream);
68 pfbmask = g3d_stream_read_int32_le(stream);
69 pfamask = g3d_stream_read_int32_le(stream);
70 caps1 = g3d_stream_read_int32_le(stream);
71 caps2 = g3d_stream_read_int32_le(stream);
72
73 g3d_stream_skip(stream, 12);
74
75#if DEBUG > 0
76 g_debug("DDS: %ux%u %s 0x%08x", image->width, image->height,
77 sfourcc, pfflags);
78 g_debug("DDS: masks: 0x%04x, 0x%04x, 0x%04x, 0x%04x",
79 pfrmask, pfgmask, pfbmask, pfamask);
80#endif
81
82 image->pixeldata = g_new0(guint8, image->width * image->height * 4);
83
84 switch(pffourcc) {
85 case G3D_IFF_MKID('D','X','T','1'):
86 decode_dxt1(image, stream);
87 break;
88 default:
89 g_warning("DDS: unsupported FOURCC: %s", sfourcc);
90 }
91
92 g_free(sfourcc);
93 return TRUE;
94}
95
96EAPI
97gchar *plugin_description(G3DContext *context)
98{
99 return g_strdup("DDS textures.\n"
100 "Author: Markus Dahms");
101}
102
103EAPI
104gchar **plugin_extensions(G3DContext *context)
105{
106 return g_strsplit("dds", ":", 0);
107}
108
109/*****************************************************************************/
110
111static void decode_rgb565(guint16 c, G3DFloat *r, G3DFloat *g, G3DFloat *b)
112{
113 *r = ((c & 0xF800) >> 11) / 32.0;
114 *g = ((c & 0x07E0) >> 5) / 64.0;
115 *b = (c & 0x001F) / 32.0;
116}
117
118static gboolean decode_dxt1(G3DImage *image, G3DStream *stream)
119{
120 gint32 x, y, i, j;
121 guint32 index;
122 G3DFloat r, g, b, r1, r2, g1, g2, b1, b2;
123 guint8 line, v2;
124
125 for(y = 0; y < image->height; y += 4) {
126 for(x = 0; x < image->width; x += 4) {
127 decode_rgb565(g3d_stream_read_int16_le(stream), &r1, &g1, &b1);
128 decode_rgb565(g3d_stream_read_int16_le(stream), &r2, &g2, &b2);
129 for(j = 0; j < 4; j ++) {
130 line = g3d_stream_read_int8(stream);
131 for(i = 0; i < 4; i ++) {
132 v2 = line & 0x3;
133 line >>= 2;
134 r = r1 + ((r2 - r1) / 3.0) * v2;
135 g = g1 + ((g2 - g1) / 3.0) * v2;
136 b = b1 + ((b2 - b1) / 3.0) * v2;
137 index = ((image->height - 4) - y + j) *
138 image->width + x + i;
139 image->pixeldata[index * 4 + 0] = r * 255.0;
140 image->pixeldata[index * 4 + 1] = g * 255.0;
141 image->pixeldata[index * 4 + 2] = b * 255.0;
142 image->pixeldata[index * 4 + 3] = 0xFF;
143 }
144 }
145 }
146 }
147
148 return TRUE;
149}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/image/img_gdkpixbuf.c b/src/others/mimesh/libg3d-0.0.8/plugins/image/img_gdkpixbuf.c
new file mode 100644
index 0000000..725981d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/image/img_gdkpixbuf.c
@@ -0,0 +1,210 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <g3d/config.h>
24#include <stdio.h>
25#include <string.h>
26#include <errno.h>
27
28#include <gdk/gdk.h>
29#include <gdk-pixbuf/gdk-pixbuf.h>
30
31#include <g3d/types.h>
32#include <g3d/stream.h>
33
34static gboolean gdkpixbuf_init(void);
35static gboolean gdkpixbuf_postprocess(GdkPixbuf *pixbuf, G3DImage *image,
36 const gchar *uri);
37
38#define BUFSIZE 1024
39
40EAPI
41gboolean plugin_load_image_from_stream(G3DContext *context, G3DStream *stream,
42 G3DImage *image, gpointer user_data)
43{
44 GdkPixbuf *pixbuf;
45 GdkPixbufLoader *loader;
46 GError *error = NULL;
47 guint8 buffer[BUFSIZE];
48 gsize n;
49 gboolean retval;
50
51 if(!gdkpixbuf_init())
52 return FALSE;
53
54 loader = gdk_pixbuf_loader_new();
55 if (NULL == loader)
56 {
57 g_warning("gdkpixbuf - plugin_load_image_from_stream(): no loader");
58 return FALSE;
59 }
60 while(!g3d_stream_eof(stream)) {
61 n = g3d_stream_read(stream, buffer, BUFSIZE);
62 if(0 >= n)
63 break;
64 if(!gdk_pixbuf_loader_write(loader, buffer, n, &error)) {
65 g_warning("error loading image data from stream: %s",
66 error->message);
67 g_error_free(error);
68 g_object_unref(loader);
69 return FALSE;
70 }
71 }
72
73 if(!gdk_pixbuf_loader_close(loader, &error)) {
74 g_warning("error loading image data from stream: %s",
75 error->message);
76 g_error_free(error);
77 g_object_unref(loader);
78 return FALSE;
79 }
80
81 pixbuf = gdk_pixbuf_loader_get_pixbuf(loader);
82 gdk_pixbuf_ref(pixbuf);
83
84 retval = gdkpixbuf_postprocess(pixbuf, image, stream->uri);
85
86 g_object_unref(loader);
87 return retval;
88}
89
90EAPI
91gchar *plugin_description(G3DContext *context)
92{
93 return g_strdup("Read most image formats using the GdkPixbuf library.");
94}
95
96EAPI
97gchar **plugin_extensions(G3DContext *context)
98{
99 gchar *extensions = g_strdup("");
100 gchar **retval;
101 gchar *tmp, **ext;
102 GSList *fitem;
103 GdkPixbufFormat *format;
104
105 fitem = gdk_pixbuf_get_formats();
106 while(fitem)
107 {
108 gboolean doit = TRUE;
109
110 format = (GdkPixbufFormat *)fitem->data;
111 ext = gdk_pixbuf_format_get_extensions(format);
112
113 if (0 == g_strcmp0("bmp", *ext))
114 doit = FALSE;
115 else if (0 == g_strcmp0("jpg", *ext))
116 doit = FALSE;
117 else if (0 == g_strcmp0("jpeg", *ext))
118 doit = FALSE;
119 else if (0 == g_strcmp0("jfif", *ext))
120 doit = FALSE;
121 else if (0 == g_strcmp0("jif", *ext))
122 doit = FALSE;
123
124 if (doit)
125 {
126 tmp = g_strdup_printf("%s%s%s", extensions, strlen(extensions) ? ":" : "", g_strjoinv(":", ext));
127 g_free(extensions);
128 extensions = tmp;
129 }
130 fitem = fitem->next;
131 }
132
133 retval = g_strsplit(extensions, ":", 0);
134 g_free(extensions);
135 return retval;
136}
137
138/*****************************************************************************/
139
140static gboolean gdkpixbuf_init(void)
141{
142 static gboolean init = TRUE;
143
144 if(init) {
145 /* initialize GDK */
146 /* FIXME: problem if already initialized with gtk_init()? */
147 gint argc = 0;
148 if(!gdk_init_check(&argc, NULL))
149 return FALSE;
150 init = FALSE;
151 }
152 return TRUE;
153}
154
155static gboolean gdkpixbuf_postprocess(GdkPixbuf *pixbuf, G3DImage *image,
156 const gchar *uri)
157{
158 guint32 x, y, nchannels;
159 guchar *p;
160
161 if(gdk_pixbuf_get_colorspace(pixbuf) != GDK_COLORSPACE_RGB) {
162 g_warning("GdkPixbuf: %s: colorspace is not RGB", uri);
163 gdk_pixbuf_unref(pixbuf);
164 return FALSE;
165 }
166
167 nchannels = gdk_pixbuf_get_n_channels(pixbuf);
168 if(nchannels < 3)
169 {
170 g_warning("GdkPixbuf: %s: has only %d channels", uri,
171 gdk_pixbuf_get_n_channels(pixbuf));
172 gdk_pixbuf_unref(pixbuf);
173 return FALSE;
174 }
175
176 image->width = gdk_pixbuf_get_width(pixbuf);
177 image->height = gdk_pixbuf_get_height(pixbuf);
178 image->depth = 32;
179 image->name = g_path_get_basename(uri);
180 image->pixeldata = g_new0(guint8, image->width * image->height * 4);
181
182 for(y = 0; y < image->height; y ++)
183 for(x = 0; x < image->width; x ++)
184 {
185 p = gdk_pixbuf_get_pixels(pixbuf) + y *
186 gdk_pixbuf_get_rowstride(pixbuf) + x * nchannels;
187
188 image->pixeldata[(y * image->width + x) * 4 + 0] = p[0];
189 image->pixeldata[(y * image->width + x) * 4 + 1] = p[1];
190 image->pixeldata[(y * image->width + x) * 4 + 2] = p[2];
191 if(gdk_pixbuf_get_n_channels(pixbuf) >= 4)
192 image->pixeldata[(y * image->width + x) * 4 + 3] = p[3];
193 }
194
195 /* set alpha to 1.0 */
196 if(gdk_pixbuf_get_n_channels(pixbuf) < 4)
197 for(y = 0; y < image->height; y ++)
198 for(x = 0; x < image->width; x ++)
199 image->pixeldata[(y * image->width + x) * 4 + 3] = 0xFF;
200
201 gdk_pixbuf_unref(pixbuf);
202
203#if DEBUG > 0
204 g_print("GdkPixbuf: image '%s' loaded (%dx%d)\n",
205 image->name, image->width, image->height);
206#endif
207
208 return TRUE;
209}
210
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/image/img_jpeg.c b/src/others/mimesh/libg3d-0.0.8/plugins/image/img_jpeg.c
new file mode 100644
index 0000000..138f26b
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/image/img_jpeg.c
@@ -0,0 +1,437 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (c) 2011, Dawid Seikel.
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; version 2 of the License.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20*/
21
22
23/* This is an ugly collection of styles, I'll fix it up later, just want to get it pushed up now. lol */
24
25#include <stdio.h>
26#include <string.h>
27#include <errno.h>
28
29#include <g3d/types.h>
30#include <g3d/stream.h>
31
32#include <jpeglib.h>
33#include <jerror.h>
34#include <setjmp.h>
35
36#define BUFSIZE 1024
37
38typedef struct
39{
40 struct jpeg_source_mgr pub; /* public fields */
41
42 G3DStream *stream; /* source stream */
43 JOCTET *buffer; /* start of buffer */
44 boolean start_of_file; /* have we gotten any data yet? */
45} my_source_mgr;
46
47typedef my_source_mgr *my_src_ptr;
48
49/* Stuff to stop jpeglib from exit() when things fail. */
50struct my_error_mgr
51{
52 struct jpeg_error_mgr pub; /* "public" fields */
53 jmp_buf setjmp_buffer; /* for return to caller */
54};
55
56typedef struct my_error_mgr *my_error_ptr;
57
58/*
59 * Here's the routine that will replace the standard error_exit method:
60 */
61
62METHODDEF(void)
63my_error_exit (j_common_ptr cinfo)
64{
65 /* cinfo->err really points to a my_error_mgr struct, so coerce pointer */
66 my_error_ptr myerr = (my_error_ptr) cinfo->err;
67
68 /* Always display the message. */
69 /* We could postpone this until after returning, if we chose. */
70 (*cinfo->err->output_message) (cinfo);
71
72 /* Return control to the setjmp point */
73 longjmp(myerr->setjmp_buffer, 1);
74}
75
76
77static void init_stream_source (j_decompress_ptr cinfo);
78static boolean fill_stream_input_buffer (j_decompress_ptr cinfo);
79static void skip_input_data (j_decompress_ptr cinfo, long num_bytes);
80/*static void resync_to_restart (j_decompress_ptr cinfo, int desired);*/
81static void term_source (j_decompress_ptr cinfo);
82static void jpeg_stream_src(struct jpeg_decompress_struct *cinfo, G3DStream *stream);
83
84
85EAPI
86gchar *plugin_description(G3DContext *context)
87{
88 return g_strdup("JPEG images.");
89}
90
91EAPI
92gchar **plugin_extensions(G3DContext *context)
93{
94 return g_strsplit("jpg:jpeg:jpe:jfif:jif", ":", 0);
95}
96
97EAPI
98gboolean plugin_load_image_from_stream(G3DContext *context, G3DStream *stream, G3DImage *image, gpointer user_data)
99{
100 gsize n;
101 gboolean retval;
102 guint32 x, y, nchannels;
103
104 /* This struct contains the JPEG decompression parameters and pointers to
105 * working space (which is allocated as needed by the JPEG library).
106 */
107 struct jpeg_decompress_struct cinfo;
108 /* We use our private extension JPEG error handler.
109 * Note that this struct must live as long as the main JPEG parameter
110 * struct, to avoid dangling-pointer problems.
111 */
112 struct my_error_mgr jerr;
113 /* More stuff */
114 JSAMPARRAY buffer; /* Output row buffer */
115 int row_stride; /* physical row width in output buffer */
116
117 /* Step 1: allocate and initialize JPEG decompression object */
118
119 /* We set up the normal JPEG error routines, then override error_exit. */
120 cinfo.err = jpeg_std_error(&jerr.pub);
121 jerr.pub.error_exit = my_error_exit;
122 /* Establish the setjmp return context for my_error_exit to use. */
123 if (setjmp(jerr.setjmp_buffer)) {
124 /* If we get here, the JPEG code has signaled an error.
125 * We need to clean up the JPEG object, close the input file, and return.
126 */
127 jpeg_destroy_decompress(&cinfo);
128 return 0;
129 }
130 /* Now we can initialize the JPEG decompression object. */
131 jpeg_create_decompress(&cinfo);
132
133 /* Step 2: specify data source (eg, a file) */
134
135 jpeg_stream_src(&cinfo, stream);
136
137 /* Step 3: read file parameters with jpeg_read_header() */
138
139 (void) jpeg_read_header(&cinfo, TRUE);
140 /* We can ignore the return value from jpeg_read_header since
141 * (a) suspension is not possible with the stdio data source, and
142 * (b) we passed TRUE to reject a tables-only JPEG file as an error.
143 * See libjpeg.txt for more info.
144 */
145
146 /* Step 4: set parameters for decompression */
147
148 if (cinfo.jpeg_color_space != JCS_RGB)
149 {
150 g_warning("Jpeg plugin: %s: colorspace is not RGB, converting.", stream->uri);
151 cinfo.out_color_space = JCS_RGB;
152 }
153
154
155 /* Step 5: Start decompressor */
156
157 (void) jpeg_start_decompress(&cinfo);
158 /* We can ignore the return value since suspension is not possible
159 * with the stdio data source.
160 */
161
162 /* We may need to do some setup of our own at this point before reading
163 * the data. After jpeg_start_decompress() we have the correct scaled
164 * output image dimensions available, as well as the output colormap
165 * if we asked for color quantization.
166 * In this example, we need to make an output work buffer of the right size.
167 */
168 /* JSAMPLEs per row in output buffer */
169 row_stride = cinfo.output_width * cinfo.output_components;
170 /* Make a one-row-high sample array that will go away when done with image */
171 buffer = (*cinfo.mem->alloc_sarray)
172 ((j_common_ptr) &cinfo, JPOOL_IMAGE, row_stride, 1);
173
174/*
175//output_width image width and height, as scaled
176//output_height
177//out_color_components # of color components in out_color_space
178//output_components # of color components returned per pixel
179//colormap the selected colormap, if any
180//actual_number_of_colors number of entries in colormap
181*/
182 nchannels = cinfo.output_components;
183 if(nchannels < 3)
184 {
185 g_warning("Jpeg plugin: %s: has only %d channels", stream->uri, nchannels);
186 jpeg_destroy_decompress(&cinfo);
187 return FALSE;
188 }
189
190 image->width = cinfo.output_width;
191 image->height = cinfo.output_height;
192 image->depth = 32;
193 image->name = g_path_get_basename(stream->uri);
194 image->pixeldata = g_new0(guint8, image->width * image->height * 4);
195
196
197 /* Step 6: while (scan lines remain to be read) */
198 /* jpeg_read_scanlines(...); */
199
200 /* Here we use the library's state variable cinfo.output_scanline as the
201 * loop counter, so that we don't have to keep track ourselves.
202 */
203 y = 0;
204 while (cinfo.output_scanline < cinfo.output_height)
205 {
206 /* jpeg_read_scanlines expects an array of pointers to scanlines.
207 * Here the array is only one element long, but you could ask for
208 * more than one scanline at a time if that's more convenient.
209 */
210 (void) jpeg_read_scanlines(&cinfo, buffer, 1);
211/* for(y = 0; y < image->height; y ++) */
212 for(x = 0; x < image->width; x ++)
213 {
214 JSAMPROW p = buffer[0] + x * nchannels;
215
216 image->pixeldata[(y * image->width + x) * 4 + 0] = GETJSAMPLE(p[0]);
217 image->pixeldata[(y * image->width + x) * 4 + 1] = GETJSAMPLE(p[1]);
218 image->pixeldata[(y * image->width + x) * 4 + 2] = GETJSAMPLE(p[2]);
219 if(nchannels >= 4)
220 image->pixeldata[(y * image->width + x) * 4 + 3] = GETJSAMPLE(p[3]);
221 }
222 y++;
223 }
224
225 /* set alpha to 1.0 */
226 if(nchannels < 4)
227 for(y = 0; y < image->height; y ++)
228 for(x = 0; x < image->width; x ++)
229 image->pixeldata[(y * image->width + x) * 4 + 3] = 0xFF;
230
231 /* Step 7: Finish decompression */
232
233 (void) jpeg_finish_decompress(&cinfo);
234 /* We can ignore the return value since suspension is not possible
235 * with the stdio data source.
236 */
237
238 /* Step 8: Release JPEG decompression object */
239
240 /* This is an important step since it will release a good deal of memory. */
241 jpeg_destroy_decompress(&cinfo);
242
243 /* At this point you may want to check to see whether any corrupt-data
244 * warnings occurred (test whether jerr.pub.num_warnings is nonzero).
245 */
246
247 return TRUE;
248}
249
250/*
251 * SOME FINE POINTS:
252 *
253 * In the above code, we ignored the return value of jpeg_read_scanlines,
254 * which is the number of scanlines actually read. We could get away with
255 * this because we asked for only one line at a time and we weren't using
256 * a suspending data source. See libjpeg.txt for more info.
257 *
258 * We cheated a bit by calling alloc_sarray() after jpeg_start_decompress();
259 * we should have done it beforehand to ensure that the space would be
260 * counted against the JPEG max_memory setting. In some systems the above
261 * code would risk an out-of-memory error. However, in general we don't
262 * know the output image dimensions before jpeg_start_decompress(), unless we
263 * call jpeg_calc_output_dimensions(). See libjpeg.txt for more about this.
264 *
265 * Scanlines are returned in the same order as they appear in the JPEG file,
266 * which is standardly top-to-bottom. If you must emit data bottom-to-top,
267 * you can use one of the virtual arrays provided by the JPEG memory manager
268 * to invert the data. See wrbmp.c for an example.
269 *
270 * As with compression, some operating modes may require temporary files.
271 * On some systems you may need to set up a signal handler to ensure that
272 * temporary files are deleted if the program is interrupted. See libjpeg.txt.
273 */
274
275
276 const JOCTET * next_input_byte; /* => next byte to read from buffer */
277 size_t bytes_in_buffer; /* # of bytes remaining in buffer */
278
279/*
280 Initialize source. This is called by jpeg_read_header() before any
281 data is actually read. Unlike init_destination(), it may leave
282 bytes_in_buffer set to 0 (in which case a fill_input_buffer() call
283 will occur immediately).
284*/
285
286static void init_stream_source (j_decompress_ptr cinfo)
287{
288 my_src_ptr src = (my_src_ptr) cinfo->src;
289
290 /* We reset the empty-input-file flag for each image,
291 * but we don't clear the input buffer.
292 * This is correct behavior for reading a series of images from one source.
293 */
294 src->start_of_file = TRUE;
295}
296
297/*
298 This is called whenever bytes_in_buffer has reached zero and more
299 data is wanted. In typical applications, it should read fresh data
300 into the buffer (ignoring the current state of next_input_byte and
301 bytes_in_buffer), reset the pointer & count to the start of the
302 buffer, and return TRUE indicating that the buffer has been reloaded.
303 It is not necessary to fill the buffer entirely, only to obtain at
304 least one more byte. bytes_in_buffer MUST be set to a positive value
305 if TRUE is returned. A FALSE return should only be used when I/O
306 suspension is desired (this mode is discussed in the next section).
307*/
308static boolean fill_stream_input_buffer (j_decompress_ptr cinfo)
309{
310 my_src_ptr src = (my_src_ptr) cinfo->src;
311 size_t nbytes = 0;
312
313 if (!g3d_stream_eof(src->stream))
314 nbytes = g3d_stream_read(src->stream, src->buffer, BUFSIZE);
315
316 if (nbytes <= 0)
317 {
318 if (src->start_of_file) /* Treat empty input file as fatal error */
319 ERREXIT(cinfo, JERR_INPUT_EMPTY);
320 WARNMS(cinfo, JWRN_JPEG_EOF);
321 /* Insert a fake EOI marker */
322 src->buffer[0] = (JOCTET) 0xFF;
323 src->buffer[1] = (JOCTET) JPEG_EOI;
324 nbytes = 2;
325 }
326
327 src->pub.next_input_byte = src->buffer;
328 src->pub.bytes_in_buffer = nbytes;
329 src->start_of_file = FALSE;
330
331 return TRUE;
332}
333
334/*
335 Skip num_bytes worth of data. The buffer pointer and count should
336 be advanced over num_bytes input bytes, refilling the buffer as
337 needed. This is used to skip over a potentially large amount of
338 uninteresting data (such as an APPn marker). In some applications
339 it may be possible to optimize away the reading of the skipped data,
340 but it's not clear that being smart is worth much trouble; large
341 skips are uncommon. bytes_in_buffer may be zero on return.
342 A zero or negative skip count should be treated as a no-op.
343*/
344static void skip_input_data (j_decompress_ptr cinfo, long num_bytes)
345{
346 struct jpeg_source_mgr * src = cinfo->src;
347
348 /* Just a dumb implementation for now. Could use fseek() except
349 * it doesn't work on pipes. Not clear that being smart is worth
350 * any trouble anyway --- large skips are infrequent.
351 */
352 if (num_bytes > 0)
353 {
354 while (num_bytes > (long) src->bytes_in_buffer)
355 {
356 num_bytes -= (long) src->bytes_in_buffer;
357 (void) (*src->fill_input_buffer) (cinfo);
358 /* note we assume that fill_input_buffer will never return FALSE,
359 * so suspension need not be handled.
360 */
361 }
362 src->next_input_byte += (size_t) num_bytes;
363 src->bytes_in_buffer -= (size_t) num_bytes;
364 }
365}
366
367/*
368 This routine is called only when the decompressor has failed to find
369 a restart (RSTn) marker where one is expected. Its mission is to
370 find a suitable point for resuming decompression. For most
371 applications, we recommend that you just use the default resync
372 procedure, jpeg_resync_to_restart(). However, if you are able to back
373 up in the input data stream, or if you have a-priori knowledge about
374 the likely location of restart markers, you may be able to do better.
375 Read the read_restart_marker() and jpeg_resync_to_restart() routines
376 in jdmarker.c if you think you'd like to implement your own resync
377 procedure.
378*/
379/*
380//static void resync_to_restart (j_decompress_ptr cinfo, int desired)
381//{
382//}
383*/
384
385/*
386 Terminate source --- called by jpeg_finish_decompress() after all
387 data has been read. Often a no-op.
388*/
389static void term_source (j_decompress_ptr cinfo)
390{
391 /* no work necessary here */
392}
393/*
394For both fill_input_buffer() and skip_input_data(), there is no such thing as an EOF return. If the end of the file has been reached, the routine has a choice of exiting via ERREXIT() or inserting fake data into the buffer. In most cases, generating a warning message and inserting a fake EOI marker is the best course of action --- this will allow the decompressor to output however much of the image is there. In pathological cases, the decompressor
395
396may swallow the EOI and again demand data ... just keep feeding it fake EOIs.
397
398jdatasrc.c illustrates the recommended error recovery behavior.
399
400term_source() is NOT called by jpeg_abort() or jpeg_destroy(). If you want the source manager to be cleaned up during an abort, you must do it yourself.
401
402You will also need code to create a jpeg_source_mgr struct, fill in its method pointers, and insert a pointer to the struct into the "src" field of the JPEG decompression object. This can be done in-line in your setup code if you like, but it's probably cleaner to provide a separate routine similar to the jpeg_stdio_src() routine of the supplied source manager.
403
404For more information, consult the stdio source and destination managers in jdatasrc.c and jdatadst.c.
405*/
406
407static void jpeg_stream_src(struct jpeg_decompress_struct *cinfo, G3DStream *stream)
408{
409 my_source_mgr *src;
410
411 if (stream == NULL)
412 ERREXIT(cinfo, JERR_INPUT_EMPTY);
413
414 /* The source object is made permanent so that a series of JPEG images
415 * can be read from the same buffer by calling jpeg_mem_src only before
416 * the first one.
417 */
418 if (cinfo->src == NULL) { /* first time for this JPEG object? */
419 cinfo->src = (struct jpeg_source_mgr *)
420 (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_PERMANENT, sizeof(my_source_mgr));
421
422 src = (my_src_ptr) cinfo->src;
423 src->buffer = (JOCTET *)
424 (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_PERMANENT, BUFSIZE * sizeof(JOCTET));
425 }
426
427 src = (my_src_ptr) cinfo->src;
428 src->pub.init_source = init_stream_source;
429 src->pub.fill_input_buffer = fill_stream_input_buffer;
430 src->pub.skip_input_data = skip_input_data;
431 src->pub.resync_to_restart = jpeg_resync_to_restart; /* use default method */
432 src->pub.term_source = term_source;
433 src->stream = stream;
434 src->pub.bytes_in_buffer = 0; /* forces fill_input_buffer on first read */
435 src->pub.next_input_byte = NULL; /* until buffer loaded */
436}
437
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/image/img_sgi.c b/src/others/mimesh/libg3d-0.0.8/plugins/image/img_sgi.c
new file mode 100644
index 0000000..71dd583
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/image/img_sgi.c
@@ -0,0 +1,181 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <string.h>
25#include <errno.h>
26
27#include <g3d/types.h>
28#include <g3d/stream.h>
29
30#define SGI_STORAGE_VERBATIM 0
31#define SGI_STORAGE_RLE 1
32
33EAPI
34gboolean plugin_load_image_from_stream(G3DContext *context, G3DStream *stream,
35 G3DImage *image, gpointer user_data)
36{
37 guint32 cmap, planes, x, y, p;
38 guint16 dims;
39 guint8 storage, bpc;
40 gchar name[80];
41
42 if(g3d_stream_read_int16_be(stream) != 474) {
43 g_warning("file '%s' is not a SGI RGB file", stream->uri);
44 return FALSE;
45 }
46
47 storage = g3d_stream_read_int8(stream);
48 bpc = g3d_stream_read_int8(stream);
49 dims = g3d_stream_read_int16_be(stream);
50
51 if(bpc != 1) {
52 g_warning("SGI: %s: bpc != 1 -- unsupported", stream->uri);
53 return FALSE;
54 }
55
56 image->width = g3d_stream_read_int16_be(stream);
57 image->height = g3d_stream_read_int16_be(stream);
58
59 planes = g3d_stream_read_int16_be(stream); /* ZSIZE */
60 image->depth = 32;
61 g3d_stream_read_int32_be(stream); /* PIXMIN */
62 g3d_stream_read_int32_be(stream); /* PIXMAX */
63 g3d_stream_read_int32_be(stream); /* DUMMY */
64 g3d_stream_read(stream, name, 80);
65
66 if(strlen(name) > 0) {
67#if DEBUG > 0
68 g_debug("SGI: image name: %s", name);
69#endif
70 image->name = g_strdup(name);
71 } else {
72 image->name = g_strdup(stream->uri);
73 }
74
75 cmap = g3d_stream_read_int32_be(stream); /* COLORMAP */
76 g3d_stream_skip(stream, 404);
77
78#if DEBUG > 0
79 g_debug("SGI: %dx%dx%d, %d bpc, colormap: 0x%02x",
80 image->width, image->height, planes, bpc, cmap);
81#endif
82 /* end of header */
83
84 image->pixeldata = g_new0(guint8, image->width * image->height * 4);
85
86 if(storage == SGI_STORAGE_VERBATIM) {
87 for(p = 0; p < planes; p ++) {
88 for(y = 0; y < image->height; y ++) {
89 for(x = 0; x < image->width; x ++) {
90 image->pixeldata[(y * image->width + x) * 4 + p] =
91 g3d_stream_read_int8(stream);
92
93 if(planes == 1) {
94 /* greyscale: g = r; b = r; */
95 image->pixeldata[(y * image->width + x) * 4 + 1] =
96 image->pixeldata[(y * image->width + x) * 4];
97 image->pixeldata[(y * image->width + x) * 4 + 2] =
98 image->pixeldata[(y * image->width + x) * 4];
99 }
100 } /* x */
101 } /* y */
102 } /* p */
103 } /* verbatim */
104 else /* RLE */ {
105 guint32 *starttab, *lengthtab, rleoff, rlelen;
106 guint8 cnt, pixel;
107
108 starttab = g_new0(guint32, image->height * planes);
109 lengthtab = g_new0(guint32, image->height * planes);
110
111 /* read starttab */
112 for(p = 0; p < planes; p ++)
113 for(y = 0; y < image->height; y ++)
114 starttab[y * planes + p] = g3d_stream_read_int32_be(stream);
115 /* read lengthtab */
116 for(p = 0; p < planes; p ++)
117 for(y = 0; y < image->height; y ++)
118 lengthtab[y * planes + p] = g3d_stream_read_int32_be(stream);
119
120 /* read image data */
121 for(p = 0; p < planes; p ++)
122 for(y = 0; y < image->height; y ++)
123 {
124 rleoff = starttab[y * planes + p];
125 rlelen = lengthtab[y * planes + p];
126
127 g3d_stream_seek(stream, rleoff, G_SEEK_SET);
128
129 x = 0;
130
131 while(1) {
132 pixel = g3d_stream_read_int8(stream);
133 cnt = pixel & 0x7F;
134
135 if(cnt == 0)
136 break;
137
138 if(pixel & 0x80) {
139 /* copy n bytes */
140 while(cnt --) {
141 image->pixeldata[(y * image->width + x) * 4 + p] =
142 g3d_stream_read_int8(stream);
143 x ++;
144 }
145 } else {
146 /* repeat next byte n times */
147 pixel = g3d_stream_read_int8(stream);
148 while(cnt --) {
149 image->pixeldata[(y * image->width + x) * 4 + p] =
150 pixel;
151 x ++;
152 }
153 }
154 }
155 }
156
157 g_free(starttab);
158 g_free(lengthtab);
159 }
160
161 /* set alpha to 1.0 */
162 if(planes < 4)
163 for(y = 0; y < image->height; y ++)
164 for(x = 0; x < image->width; x ++)
165 image->pixeldata[(y * image->width + x) * 4 + 3] = 0xFF;
166
167 return TRUE;
168}
169
170EAPI
171gchar *plugin_description(G3DContext *context)
172{
173 return g_strdup("SGI RGB images.");
174}
175
176EAPI
177gchar **plugin_extensions(G3DContext *context)
178{
179 return g_strsplit("rgb:rgba:sgi", ":", 0);
180}
181
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/Makefile
new file mode 100644
index 0000000..0d9f019
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/Makefile
@@ -0,0 +1,554 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17pkgdatadir = $(datadir)/libg3d
18pkglibdir = $(libdir)/libg3d
19pkgincludedir = $(includedir)/libg3d
20am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
21install_sh_DATA = $(install_sh) -c -m 644
22install_sh_PROGRAM = $(install_sh) -c
23install_sh_SCRIPT = $(install_sh) -c
24INSTALL_HEADER = $(INSTALL_DATA)
25transform = $(program_transform_name)
26NORMAL_INSTALL = :
27PRE_INSTALL = :
28POST_INSTALL = :
29NORMAL_UNINSTALL = :
30PRE_UNINSTALL = :
31POST_UNINSTALL = :
32build_triplet = x86_64-unknown-linux-gnu
33host_triplet = x86_64-unknown-linux-gnu
34subdir = plugins/import
35DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
36ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
37am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
38 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
39 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
40 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
41 $(top_srcdir)/configure.in
42am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43 $(ACLOCAL_M4)
44mkinstalldirs = $(install_sh) -d
45CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
46CONFIG_CLEAN_FILES =
47SOURCES =
48DIST_SOURCES =
49RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
50 html-recursive info-recursive install-data-recursive \
51 install-dvi-recursive install-exec-recursive \
52 install-html-recursive install-info-recursive \
53 install-pdf-recursive install-ps-recursive install-recursive \
54 installcheck-recursive installdirs-recursive pdf-recursive \
55 ps-recursive uninstall-recursive
56RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
57 distclean-recursive maintainer-clean-recursive
58ETAGS = etags
59CTAGS = ctags
60DIST_SUBDIRS = $(SUBDIRS)
61DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
62ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
63AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
64AR = ar
65AS = as
66AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
67AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
68AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
69AWK = gawk
70CC = gcc
71CCDEPMODE = depmode=gcc3
72CFLAGS = -g -O2
73CPP = gcc -E
74CPPFLAGS =
75CXX = g++
76CXXCPP = g++ -E
77CXXDEPMODE = depmode=gcc3
78CXXFLAGS = -g -O2
79CYGPATH_W = echo
80DBG_CFLAGS = -O2
81DEBUG = 0
82DEFS = -DHAVE_CONFIG_H
83DEPDIR = .deps
84DLLTOOL = dlltool
85ECHO = echo
86ECHO_C =
87ECHO_N = -n
88ECHO_T =
89EGREP = /bin/grep -E
90EXEEXT =
91F77 =
92FFLAGS =
93GDKPIXBUF_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
94GDKPIXBUF_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
95GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
96GLIB_GENMARSHAL = glib-genmarshal
97GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
98GLIB_MKENUMS = glib-mkenums
99GOBJECT_QUERY = gobject-query
100GREP = /bin/grep
101GTKDOC_CHECK = /usr/bin/gtkdoc-check
102GTK_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
103GTK_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
104HTML_DIR = ${datadir}/gtk-doc/html
105INSTALL = /usr/bin/install -c
106INSTALL_DATA = ${INSTALL} -m 644
107INSTALL_PROGRAM = ${INSTALL}
108INSTALL_SCRIPT = ${INSTALL}
109INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
110LDFLAGS =
111LEX = flex
112LEXLIB = -lfl
113LEX_OUTPUT_ROOT = lex.yy
114LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
115LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
116LIBOBJS =
117LIBS = -lm
118LIBTOOL = $(SHELL) $(top_builddir)/libtool
119LIBXML2_CFLAGS = -I/usr/include/libxml2
120LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
121LN_S = ln -s
122LTLIBOBJS =
123LTVERSION = 0:8:0
124MAGIC_LIBS = -lmagic
125MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
126MATH_LIBS = -lm
127MKDIR_P = /bin/mkdir -p
128OBJDUMP = objdump
129OBJEXT = o
130PACKAGE = libg3d
131PACKAGE_BUGREPORT =
132PACKAGE_NAME =
133PACKAGE_STRING =
134PACKAGE_TARNAME =
135PACKAGE_VERSION =
136PATH_SEPARATOR = :
137PKG_CONFIG = /usr/bin/pkg-config
138PLUGINS_LDFLAGS = -avoid-version -export-dynamic
139RANLIB = ranlib
140SET_MAKE =
141SHELL = /bin/bash
142STRIP = strip
143VERSION = 0.0.8
144XML2_CONFIG = /usr/bin/xml2-config
145XML_CPPFLAGS = -I/usr/include/libxml2
146XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
147Z_CFLAGS =
148Z_LIBS = -lz
149abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import
150abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import
151abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
152abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
153ac_ct_CC = gcc
154ac_ct_CXX = g++
155ac_ct_F77 =
156am__include = include
157am__leading_dot = .
158am__quote =
159am__tar = ${AMTAR} chof - "$$tardir"
160am__untar = ${AMTAR} xf -
161bindir = ${exec_prefix}/bin
162build = x86_64-unknown-linux-gnu
163build_alias =
164build_cpu = x86_64
165build_os = linux-gnu
166build_vendor = unknown
167builddir = .
168datadir = ${datarootdir}
169datarootdir = ${prefix}/share
170docdir = ${datarootdir}/doc/${PACKAGE}
171dvidir = ${docdir}
172exec_prefix = ${prefix}
173host = x86_64-unknown-linux-gnu
174host_alias =
175host_cpu = x86_64
176host_os = linux-gnu
177host_vendor = unknown
178htmldir = ${docdir}
179includedir = ${prefix}/include
180infodir = ${datarootdir}/info
181install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
182libdir = ${exec_prefix}/lib
183libexecdir = ${exec_prefix}/libexec
184localedir = ${datarootdir}/locale
185localstatedir = ${prefix}/var
186mandir = ${datarootdir}/man
187mkdir_p = /bin/mkdir -p
188oldincludedir = /usr/include
189pdfdir = ${docdir}
190prefix = /usr/local
191program_transform_name = s,x,x,
192psdir = ${docdir}
193sbindir = ${exec_prefix}/sbin
194sharedstatedir = ${prefix}/com
195srcdir = .
196sysconfdir = ${prefix}/etc
197target_alias =
198top_builddir = ../..
199top_srcdir = ../..
200SUBDIRS = \
201 imp_3dm \
202 imp_3dmf \
203 imp_3ds \
204 imp_ac3d \
205 imp_acf \
206 imp_ar \
207 imp_ase \
208 imp_blend \
209 imp_c4d \
210 imp_cob \
211 imp_dae \
212 imp_dpm \
213 imp_dxf \
214 imp_flt \
215 imp_glb \
216 imp_heightfield \
217 imp_iob \
218 imp_joe \
219 imp_kmz \
220 imp_ldraw \
221 imp_leocad \
222 imp_lwo \
223 imp_max \
224 imp_maya \
225 imp_md2 \
226 imp_md3 \
227 imp_nff \
228 imp_obj \
229 imp_osm \
230 imp_q3o \
231 imp_r4 \
232 imp_rbh \
233 imp_skp \
234 imp_stl \
235 imp_ta \
236 imp_test \
237 imp_vrml \
238 imp_vrml2
239
240all: all-recursive
241
242.SUFFIXES:
243$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
244 @for dep in $?; do \
245 case '$(am__configure_deps)' in \
246 *$$dep*) \
247 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
248 && exit 0; \
249 exit 1;; \
250 esac; \
251 done; \
252 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/Makefile'; \
253 cd $(top_srcdir) && \
254 $(AUTOMAKE) --gnu plugins/import/Makefile
255.PRECIOUS: Makefile
256Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
257 @case '$?' in \
258 *config.status*) \
259 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
260 *) \
261 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
262 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
263 esac;
264
265$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
266 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
267
268$(top_srcdir)/configure: $(am__configure_deps)
269 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
270$(ACLOCAL_M4): $(am__aclocal_m4_deps)
271 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
272
273mostlyclean-libtool:
274 -rm -f *.lo
275
276clean-libtool:
277 -rm -rf .libs _libs
278
279# This directory's subdirectories are mostly independent; you can cd
280# into them and run `make' without going through this Makefile.
281# To change the values of `make' variables: instead of editing Makefiles,
282# (1) if the variable is set in `config.status', edit `config.status'
283# (which will cause the Makefiles to be regenerated when you run `make');
284# (2) otherwise, pass the desired values on the `make' command line.
285$(RECURSIVE_TARGETS):
286 @failcom='exit 1'; \
287 for f in x $$MAKEFLAGS; do \
288 case $$f in \
289 *=* | --[!k]*);; \
290 *k*) failcom='fail=yes';; \
291 esac; \
292 done; \
293 dot_seen=no; \
294 target=`echo $@ | sed s/-recursive//`; \
295 list='$(SUBDIRS)'; for subdir in $$list; do \
296 echo "Making $$target in $$subdir"; \
297 if test "$$subdir" = "."; then \
298 dot_seen=yes; \
299 local_target="$$target-am"; \
300 else \
301 local_target="$$target"; \
302 fi; \
303 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
304 || eval $$failcom; \
305 done; \
306 if test "$$dot_seen" = "no"; then \
307 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
308 fi; test -z "$$fail"
309
310$(RECURSIVE_CLEAN_TARGETS):
311 @failcom='exit 1'; \
312 for f in x $$MAKEFLAGS; do \
313 case $$f in \
314 *=* | --[!k]*);; \
315 *k*) failcom='fail=yes';; \
316 esac; \
317 done; \
318 dot_seen=no; \
319 case "$@" in \
320 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
321 *) list='$(SUBDIRS)' ;; \
322 esac; \
323 rev=''; for subdir in $$list; do \
324 if test "$$subdir" = "."; then :; else \
325 rev="$$subdir $$rev"; \
326 fi; \
327 done; \
328 rev="$$rev ."; \
329 target=`echo $@ | sed s/-recursive//`; \
330 for subdir in $$rev; do \
331 echo "Making $$target in $$subdir"; \
332 if test "$$subdir" = "."; then \
333 local_target="$$target-am"; \
334 else \
335 local_target="$$target"; \
336 fi; \
337 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
338 || eval $$failcom; \
339 done && test -z "$$fail"
340tags-recursive:
341 list='$(SUBDIRS)'; for subdir in $$list; do \
342 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
343 done
344ctags-recursive:
345 list='$(SUBDIRS)'; for subdir in $$list; do \
346 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
347 done
348
349ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
350 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
351 unique=`for i in $$list; do \
352 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
353 done | \
354 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
355 END { if (nonempty) { for (i in files) print i; }; }'`; \
356 mkid -fID $$unique
357tags: TAGS
358
359TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
360 $(TAGS_FILES) $(LISP)
361 tags=; \
362 here=`pwd`; \
363 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
364 include_option=--etags-include; \
365 empty_fix=.; \
366 else \
367 include_option=--include; \
368 empty_fix=; \
369 fi; \
370 list='$(SUBDIRS)'; for subdir in $$list; do \
371 if test "$$subdir" = .; then :; else \
372 test ! -f $$subdir/TAGS || \
373 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
374 fi; \
375 done; \
376 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
377 unique=`for i in $$list; do \
378 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
379 done | \
380 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
381 END { if (nonempty) { for (i in files) print i; }; }'`; \
382 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
383 test -n "$$unique" || unique=$$empty_fix; \
384 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
385 $$tags $$unique; \
386 fi
387ctags: CTAGS
388CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
389 $(TAGS_FILES) $(LISP)
390 tags=; \
391 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
392 unique=`for i in $$list; do \
393 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
394 done | \
395 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
396 END { if (nonempty) { for (i in files) print i; }; }'`; \
397 test -z "$(CTAGS_ARGS)$$tags$$unique" \
398 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
399 $$tags $$unique
400
401GTAGS:
402 here=`$(am__cd) $(top_builddir) && pwd` \
403 && cd $(top_srcdir) \
404 && gtags -i $(GTAGS_ARGS) $$here
405
406distclean-tags:
407 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
408
409distdir: $(DISTFILES)
410 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
411 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
412 list='$(DISTFILES)'; \
413 dist_files=`for file in $$list; do echo $$file; done | \
414 sed -e "s|^$$srcdirstrip/||;t" \
415 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
416 case $$dist_files in \
417 */*) $(MKDIR_P) `echo "$$dist_files" | \
418 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
419 sort -u` ;; \
420 esac; \
421 for file in $$dist_files; do \
422 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
423 if test -d $$d/$$file; then \
424 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
425 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
426 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
427 fi; \
428 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
429 else \
430 test -f $(distdir)/$$file \
431 || cp -p $$d/$$file $(distdir)/$$file \
432 || exit 1; \
433 fi; \
434 done
435 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
436 if test "$$subdir" = .; then :; else \
437 test -d "$(distdir)/$$subdir" \
438 || $(MKDIR_P) "$(distdir)/$$subdir" \
439 || exit 1; \
440 distdir=`$(am__cd) $(distdir) && pwd`; \
441 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
442 (cd $$subdir && \
443 $(MAKE) $(AM_MAKEFLAGS) \
444 top_distdir="$$top_distdir" \
445 distdir="$$distdir/$$subdir" \
446 am__remove_distdir=: \
447 am__skip_length_check=: \
448 distdir) \
449 || exit 1; \
450 fi; \
451 done
452check-am: all-am
453check: check-recursive
454all-am: Makefile
455installdirs: installdirs-recursive
456installdirs-am:
457install: install-recursive
458install-exec: install-exec-recursive
459install-data: install-data-recursive
460uninstall: uninstall-recursive
461
462install-am: all-am
463 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
464
465installcheck: installcheck-recursive
466install-strip:
467 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
468 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
469 `test -z '$(STRIP)' || \
470 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
471mostlyclean-generic:
472
473clean-generic:
474
475distclean-generic:
476 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
477
478maintainer-clean-generic:
479 @echo "This command is intended for maintainers to use"
480 @echo "it deletes files that may require special tools to rebuild."
481clean: clean-recursive
482
483clean-am: clean-generic clean-libtool mostlyclean-am
484
485distclean: distclean-recursive
486 -rm -f Makefile
487distclean-am: clean-am distclean-generic distclean-tags
488
489dvi: dvi-recursive
490
491dvi-am:
492
493html: html-recursive
494
495info: info-recursive
496
497info-am:
498
499install-data-am:
500
501install-dvi: install-dvi-recursive
502
503install-exec-am:
504
505install-html: install-html-recursive
506
507install-info: install-info-recursive
508
509install-man:
510
511install-pdf: install-pdf-recursive
512
513install-ps: install-ps-recursive
514
515installcheck-am:
516
517maintainer-clean: maintainer-clean-recursive
518 -rm -f Makefile
519maintainer-clean-am: distclean-am maintainer-clean-generic
520
521mostlyclean: mostlyclean-recursive
522
523mostlyclean-am: mostlyclean-generic mostlyclean-libtool
524
525pdf: pdf-recursive
526
527pdf-am:
528
529ps: ps-recursive
530
531ps-am:
532
533uninstall-am:
534
535.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
536 install-strip
537
538.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
539 all all-am check check-am clean clean-generic clean-libtool \
540 ctags ctags-recursive distclean distclean-generic \
541 distclean-libtool distclean-tags distdir dvi dvi-am html \
542 html-am info info-am install install-am install-data \
543 install-data-am install-dvi install-dvi-am install-exec \
544 install-exec-am install-html install-html-am install-info \
545 install-info-am install-man install-pdf install-pdf-am \
546 install-ps install-ps-am install-strip installcheck \
547 installcheck-am installdirs installdirs-am maintainer-clean \
548 maintainer-clean-generic mostlyclean mostlyclean-generic \
549 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
550 uninstall uninstall-am
551
552# Tell versions [3.59,3.63) of GNU make to not export all variables.
553# Otherwise a system limit (for SysV at least) may be exceeded.
554.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/Makefile.am
new file mode 100644
index 0000000..de5044c
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/Makefile.am
@@ -0,0 +1,40 @@
1SUBDIRS = \
2 imp_3dm \
3 imp_3dmf \
4 imp_3ds \
5 imp_ac3d \
6 imp_acf \
7 imp_ar \
8 imp_ase \
9 imp_blend \
10 imp_c4d \
11 imp_cob \
12 imp_dae \
13 imp_dpm \
14 imp_dxf \
15 imp_flt \
16 imp_glb \
17 imp_heightfield \
18 imp_iob \
19 imp_joe \
20 imp_kmz \
21 imp_ldraw \
22 imp_leocad \
23 imp_lwo \
24 imp_max \
25 imp_maya \
26 imp_md2 \
27 imp_md3 \
28 imp_nff \
29 imp_obj \
30 imp_osm \
31 imp_q3o \
32 imp_r4 \
33 imp_rbh \
34 imp_skp \
35 imp_stl \
36 imp_ta \
37 imp_test \
38 imp_vrml \
39 imp_vrml2
40
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/Makefile.in
new file mode 100644
index 0000000..126950d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/Makefile.in
@@ -0,0 +1,554 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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@
16VPATH = @srcdir@
17pkgdatadir = $(datadir)/@PACKAGE@
18pkglibdir = $(libdir)/@PACKAGE@
19pkgincludedir = $(includedir)/@PACKAGE@
20am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
21install_sh_DATA = $(install_sh) -c -m 644
22install_sh_PROGRAM = $(install_sh) -c
23install_sh_SCRIPT = $(install_sh) -c
24INSTALL_HEADER = $(INSTALL_DATA)
25transform = $(program_transform_name)
26NORMAL_INSTALL = :
27PRE_INSTALL = :
28POST_INSTALL = :
29NORMAL_UNINSTALL = :
30PRE_UNINSTALL = :
31POST_UNINSTALL = :
32build_triplet = @build@
33host_triplet = @host@
34subdir = plugins/import
35DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
36ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
37am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
38 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
39 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
40 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
41 $(top_srcdir)/configure.in
42am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43 $(ACLOCAL_M4)
44mkinstalldirs = $(install_sh) -d
45CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
46CONFIG_CLEAN_FILES =
47SOURCES =
48DIST_SOURCES =
49RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
50 html-recursive info-recursive install-data-recursive \
51 install-dvi-recursive install-exec-recursive \
52 install-html-recursive install-info-recursive \
53 install-pdf-recursive install-ps-recursive install-recursive \
54 installcheck-recursive installdirs-recursive pdf-recursive \
55 ps-recursive uninstall-recursive
56RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
57 distclean-recursive maintainer-clean-recursive
58ETAGS = etags
59CTAGS = ctags
60DIST_SUBDIRS = $(SUBDIRS)
61DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
62ACLOCAL = @ACLOCAL@
63AMTAR = @AMTAR@
64AR = @AR@
65AS = @AS@
66AUTOCONF = @AUTOCONF@
67AUTOHEADER = @AUTOHEADER@
68AUTOMAKE = @AUTOMAKE@
69AWK = @AWK@
70CC = @CC@
71CCDEPMODE = @CCDEPMODE@
72CFLAGS = @CFLAGS@
73CPP = @CPP@
74CPPFLAGS = @CPPFLAGS@
75CXX = @CXX@
76CXXCPP = @CXXCPP@
77CXXDEPMODE = @CXXDEPMODE@
78CXXFLAGS = @CXXFLAGS@
79CYGPATH_W = @CYGPATH_W@
80DBG_CFLAGS = @DBG_CFLAGS@
81DEBUG = @DEBUG@
82DEFS = @DEFS@
83DEPDIR = @DEPDIR@
84DLLTOOL = @DLLTOOL@
85ECHO = @ECHO@
86ECHO_C = @ECHO_C@
87ECHO_N = @ECHO_N@
88ECHO_T = @ECHO_T@
89EGREP = @EGREP@
90EXEEXT = @EXEEXT@
91F77 = @F77@
92FFLAGS = @FFLAGS@
93GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
94GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
95GLIB_CFLAGS = @GLIB_CFLAGS@
96GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
97GLIB_LIBS = @GLIB_LIBS@
98GLIB_MKENUMS = @GLIB_MKENUMS@
99GOBJECT_QUERY = @GOBJECT_QUERY@
100GREP = @GREP@
101GTKDOC_CHECK = @GTKDOC_CHECK@
102GTK_CFLAGS = @GTK_CFLAGS@
103GTK_LIBS = @GTK_LIBS@
104HTML_DIR = @HTML_DIR@
105INSTALL = @INSTALL@
106INSTALL_DATA = @INSTALL_DATA@
107INSTALL_PROGRAM = @INSTALL_PROGRAM@
108INSTALL_SCRIPT = @INSTALL_SCRIPT@
109INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
110LDFLAGS = @LDFLAGS@
111LEX = @LEX@
112LEXLIB = @LEXLIB@
113LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
114LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
115LIBGSF_LIBS = @LIBGSF_LIBS@
116LIBOBJS = @LIBOBJS@
117LIBS = @LIBS@
118LIBTOOL = @LIBTOOL@
119LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
120LIBXML2_LIBS = @LIBXML2_LIBS@
121LN_S = @LN_S@
122LTLIBOBJS = @LTLIBOBJS@
123LTVERSION = @LTVERSION@
124MAGIC_LIBS = @MAGIC_LIBS@
125MAKEINFO = @MAKEINFO@
126MATH_LIBS = @MATH_LIBS@
127MKDIR_P = @MKDIR_P@
128OBJDUMP = @OBJDUMP@
129OBJEXT = @OBJEXT@
130PACKAGE = @PACKAGE@
131PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
132PACKAGE_NAME = @PACKAGE_NAME@
133PACKAGE_STRING = @PACKAGE_STRING@
134PACKAGE_TARNAME = @PACKAGE_TARNAME@
135PACKAGE_VERSION = @PACKAGE_VERSION@
136PATH_SEPARATOR = @PATH_SEPARATOR@
137PKG_CONFIG = @PKG_CONFIG@
138PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
139RANLIB = @RANLIB@
140SET_MAKE = @SET_MAKE@
141SHELL = @SHELL@
142STRIP = @STRIP@
143VERSION = @VERSION@
144XML2_CONFIG = @XML2_CONFIG@
145XML_CPPFLAGS = @XML_CPPFLAGS@
146XML_LIBS = @XML_LIBS@
147Z_CFLAGS = @Z_CFLAGS@
148Z_LIBS = @Z_LIBS@
149abs_builddir = @abs_builddir@
150abs_srcdir = @abs_srcdir@
151abs_top_builddir = @abs_top_builddir@
152abs_top_srcdir = @abs_top_srcdir@
153ac_ct_CC = @ac_ct_CC@
154ac_ct_CXX = @ac_ct_CXX@
155ac_ct_F77 = @ac_ct_F77@
156am__include = @am__include@
157am__leading_dot = @am__leading_dot@
158am__quote = @am__quote@
159am__tar = @am__tar@
160am__untar = @am__untar@
161bindir = @bindir@
162build = @build@
163build_alias = @build_alias@
164build_cpu = @build_cpu@
165build_os = @build_os@
166build_vendor = @build_vendor@
167builddir = @builddir@
168datadir = @datadir@
169datarootdir = @datarootdir@
170docdir = @docdir@
171dvidir = @dvidir@
172exec_prefix = @exec_prefix@
173host = @host@
174host_alias = @host_alias@
175host_cpu = @host_cpu@
176host_os = @host_os@
177host_vendor = @host_vendor@
178htmldir = @htmldir@
179includedir = @includedir@
180infodir = @infodir@
181install_sh = @install_sh@
182libdir = @libdir@
183libexecdir = @libexecdir@
184localedir = @localedir@
185localstatedir = @localstatedir@
186mandir = @mandir@
187mkdir_p = @mkdir_p@
188oldincludedir = @oldincludedir@
189pdfdir = @pdfdir@
190prefix = @prefix@
191program_transform_name = @program_transform_name@
192psdir = @psdir@
193sbindir = @sbindir@
194sharedstatedir = @sharedstatedir@
195srcdir = @srcdir@
196sysconfdir = @sysconfdir@
197target_alias = @target_alias@
198top_builddir = @top_builddir@
199top_srcdir = @top_srcdir@
200SUBDIRS = \
201 imp_3dm \
202 imp_3dmf \
203 imp_3ds \
204 imp_ac3d \
205 imp_acf \
206 imp_ar \
207 imp_ase \
208 imp_blend \
209 imp_c4d \
210 imp_cob \
211 imp_dae \
212 imp_dpm \
213 imp_dxf \
214 imp_flt \
215 imp_glb \
216 imp_heightfield \
217 imp_iob \
218 imp_joe \
219 imp_kmz \
220 imp_ldraw \
221 imp_leocad \
222 imp_lwo \
223 imp_max \
224 imp_maya \
225 imp_md2 \
226 imp_md3 \
227 imp_nff \
228 imp_obj \
229 imp_osm \
230 imp_q3o \
231 imp_r4 \
232 imp_rbh \
233 imp_skp \
234 imp_stl \
235 imp_ta \
236 imp_test \
237 imp_vrml \
238 imp_vrml2
239
240all: all-recursive
241
242.SUFFIXES:
243$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
244 @for dep in $?; do \
245 case '$(am__configure_deps)' in \
246 *$$dep*) \
247 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
248 && exit 0; \
249 exit 1;; \
250 esac; \
251 done; \
252 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/Makefile'; \
253 cd $(top_srcdir) && \
254 $(AUTOMAKE) --gnu plugins/import/Makefile
255.PRECIOUS: Makefile
256Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
257 @case '$?' in \
258 *config.status*) \
259 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
260 *) \
261 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
262 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
263 esac;
264
265$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
266 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
267
268$(top_srcdir)/configure: $(am__configure_deps)
269 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
270$(ACLOCAL_M4): $(am__aclocal_m4_deps)
271 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
272
273mostlyclean-libtool:
274 -rm -f *.lo
275
276clean-libtool:
277 -rm -rf .libs _libs
278
279# This directory's subdirectories are mostly independent; you can cd
280# into them and run `make' without going through this Makefile.
281# To change the values of `make' variables: instead of editing Makefiles,
282# (1) if the variable is set in `config.status', edit `config.status'
283# (which will cause the Makefiles to be regenerated when you run `make');
284# (2) otherwise, pass the desired values on the `make' command line.
285$(RECURSIVE_TARGETS):
286 @failcom='exit 1'; \
287 for f in x $$MAKEFLAGS; do \
288 case $$f in \
289 *=* | --[!k]*);; \
290 *k*) failcom='fail=yes';; \
291 esac; \
292 done; \
293 dot_seen=no; \
294 target=`echo $@ | sed s/-recursive//`; \
295 list='$(SUBDIRS)'; for subdir in $$list; do \
296 echo "Making $$target in $$subdir"; \
297 if test "$$subdir" = "."; then \
298 dot_seen=yes; \
299 local_target="$$target-am"; \
300 else \
301 local_target="$$target"; \
302 fi; \
303 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
304 || eval $$failcom; \
305 done; \
306 if test "$$dot_seen" = "no"; then \
307 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
308 fi; test -z "$$fail"
309
310$(RECURSIVE_CLEAN_TARGETS):
311 @failcom='exit 1'; \
312 for f in x $$MAKEFLAGS; do \
313 case $$f in \
314 *=* | --[!k]*);; \
315 *k*) failcom='fail=yes';; \
316 esac; \
317 done; \
318 dot_seen=no; \
319 case "$@" in \
320 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
321 *) list='$(SUBDIRS)' ;; \
322 esac; \
323 rev=''; for subdir in $$list; do \
324 if test "$$subdir" = "."; then :; else \
325 rev="$$subdir $$rev"; \
326 fi; \
327 done; \
328 rev="$$rev ."; \
329 target=`echo $@ | sed s/-recursive//`; \
330 for subdir in $$rev; do \
331 echo "Making $$target in $$subdir"; \
332 if test "$$subdir" = "."; then \
333 local_target="$$target-am"; \
334 else \
335 local_target="$$target"; \
336 fi; \
337 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
338 || eval $$failcom; \
339 done && test -z "$$fail"
340tags-recursive:
341 list='$(SUBDIRS)'; for subdir in $$list; do \
342 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
343 done
344ctags-recursive:
345 list='$(SUBDIRS)'; for subdir in $$list; do \
346 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
347 done
348
349ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
350 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
351 unique=`for i in $$list; do \
352 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
353 done | \
354 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
355 END { if (nonempty) { for (i in files) print i; }; }'`; \
356 mkid -fID $$unique
357tags: TAGS
358
359TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
360 $(TAGS_FILES) $(LISP)
361 tags=; \
362 here=`pwd`; \
363 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
364 include_option=--etags-include; \
365 empty_fix=.; \
366 else \
367 include_option=--include; \
368 empty_fix=; \
369 fi; \
370 list='$(SUBDIRS)'; for subdir in $$list; do \
371 if test "$$subdir" = .; then :; else \
372 test ! -f $$subdir/TAGS || \
373 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
374 fi; \
375 done; \
376 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
377 unique=`for i in $$list; do \
378 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
379 done | \
380 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
381 END { if (nonempty) { for (i in files) print i; }; }'`; \
382 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
383 test -n "$$unique" || unique=$$empty_fix; \
384 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
385 $$tags $$unique; \
386 fi
387ctags: CTAGS
388CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
389 $(TAGS_FILES) $(LISP)
390 tags=; \
391 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
392 unique=`for i in $$list; do \
393 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
394 done | \
395 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
396 END { if (nonempty) { for (i in files) print i; }; }'`; \
397 test -z "$(CTAGS_ARGS)$$tags$$unique" \
398 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
399 $$tags $$unique
400
401GTAGS:
402 here=`$(am__cd) $(top_builddir) && pwd` \
403 && cd $(top_srcdir) \
404 && gtags -i $(GTAGS_ARGS) $$here
405
406distclean-tags:
407 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
408
409distdir: $(DISTFILES)
410 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
411 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
412 list='$(DISTFILES)'; \
413 dist_files=`for file in $$list; do echo $$file; done | \
414 sed -e "s|^$$srcdirstrip/||;t" \
415 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
416 case $$dist_files in \
417 */*) $(MKDIR_P) `echo "$$dist_files" | \
418 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
419 sort -u` ;; \
420 esac; \
421 for file in $$dist_files; do \
422 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
423 if test -d $$d/$$file; then \
424 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
425 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
426 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
427 fi; \
428 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
429 else \
430 test -f $(distdir)/$$file \
431 || cp -p $$d/$$file $(distdir)/$$file \
432 || exit 1; \
433 fi; \
434 done
435 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
436 if test "$$subdir" = .; then :; else \
437 test -d "$(distdir)/$$subdir" \
438 || $(MKDIR_P) "$(distdir)/$$subdir" \
439 || exit 1; \
440 distdir=`$(am__cd) $(distdir) && pwd`; \
441 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
442 (cd $$subdir && \
443 $(MAKE) $(AM_MAKEFLAGS) \
444 top_distdir="$$top_distdir" \
445 distdir="$$distdir/$$subdir" \
446 am__remove_distdir=: \
447 am__skip_length_check=: \
448 distdir) \
449 || exit 1; \
450 fi; \
451 done
452check-am: all-am
453check: check-recursive
454all-am: Makefile
455installdirs: installdirs-recursive
456installdirs-am:
457install: install-recursive
458install-exec: install-exec-recursive
459install-data: install-data-recursive
460uninstall: uninstall-recursive
461
462install-am: all-am
463 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
464
465installcheck: installcheck-recursive
466install-strip:
467 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
468 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
469 `test -z '$(STRIP)' || \
470 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
471mostlyclean-generic:
472
473clean-generic:
474
475distclean-generic:
476 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
477
478maintainer-clean-generic:
479 @echo "This command is intended for maintainers to use"
480 @echo "it deletes files that may require special tools to rebuild."
481clean: clean-recursive
482
483clean-am: clean-generic clean-libtool mostlyclean-am
484
485distclean: distclean-recursive
486 -rm -f Makefile
487distclean-am: clean-am distclean-generic distclean-tags
488
489dvi: dvi-recursive
490
491dvi-am:
492
493html: html-recursive
494
495info: info-recursive
496
497info-am:
498
499install-data-am:
500
501install-dvi: install-dvi-recursive
502
503install-exec-am:
504
505install-html: install-html-recursive
506
507install-info: install-info-recursive
508
509install-man:
510
511install-pdf: install-pdf-recursive
512
513install-ps: install-ps-recursive
514
515installcheck-am:
516
517maintainer-clean: maintainer-clean-recursive
518 -rm -f Makefile
519maintainer-clean-am: distclean-am maintainer-clean-generic
520
521mostlyclean: mostlyclean-recursive
522
523mostlyclean-am: mostlyclean-generic mostlyclean-libtool
524
525pdf: pdf-recursive
526
527pdf-am:
528
529ps: ps-recursive
530
531ps-am:
532
533uninstall-am:
534
535.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
536 install-strip
537
538.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
539 all all-am check check-am clean clean-generic clean-libtool \
540 ctags ctags-recursive distclean distclean-generic \
541 distclean-libtool distclean-tags distdir dvi dvi-am html \
542 html-am info info-am install install-am install-data \
543 install-data-am install-dvi install-dvi-am install-exec \
544 install-exec-am install-html install-html-am install-info \
545 install-info-am install-man install-pdf install-pdf-am \
546 install-ps install-ps-am install-strip installcheck \
547 installcheck-am installdirs installdirs-am maintainer-clean \
548 maintainer-clean-generic mostlyclean mostlyclean-generic \
549 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
550 uninstall uninstall-am
551
552# Tell versions [3.59,3.63) of GNU make to not export all variables.
553# Otherwise a system limit (for SysV at least) may be exceeded.
554.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile
new file mode 100644
index 0000000..0537b54
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile
@@ -0,0 +1,517 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_3dm/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_3dm
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_3dm_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_3dm_la_OBJECTS = imp_3dm.lo imp_3dm_callbacks.lo \
59 imp_3dm_object.lo
60imp_3dm_la_OBJECTS = $(am_imp_3dm_la_OBJECTS)
61#am_imp_3dm_la_rpath = -rpath $(pluginimpdir)
62DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
63depcomp = $(SHELL) $(top_srcdir)/config/depcomp
64am__depfiles_maybe = depfiles
65COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
66 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
67LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
68 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
69 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
70CCLD = $(CC)
71LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
72 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
73 $(LDFLAGS) -o $@
74SOURCES = $(imp_3dm_la_SOURCES)
75DIST_SOURCES = $(imp_3dm_la_SOURCES)
76ETAGS = etags
77CTAGS = ctags
78DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
79ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
80AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
81AR = ar
82AS = as
83AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
84AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
85AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
86AWK = gawk
87CC = gcc
88CCDEPMODE = depmode=gcc3
89CFLAGS = -g -O2
90CPP = gcc -E
91CPPFLAGS =
92CXX = g++
93CXXCPP = g++ -E
94CXXDEPMODE = depmode=gcc3
95CXXFLAGS = -g -O2
96CYGPATH_W = echo
97DBG_CFLAGS = -O2
98DEBUG = 0
99DEFS = -DHAVE_CONFIG_H
100DEPDIR = .deps
101DLLTOOL = dlltool
102ECHO = echo
103ECHO_C =
104ECHO_N = -n
105ECHO_T =
106EGREP = /bin/grep -E
107EXEEXT =
108F77 =
109FFLAGS =
110GDKPIXBUF_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
111GDKPIXBUF_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
112GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
113GLIB_GENMARSHAL = glib-genmarshal
114GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
115GLIB_MKENUMS = glib-mkenums
116GOBJECT_QUERY = gobject-query
117GREP = /bin/grep
118GTKDOC_CHECK = /usr/bin/gtkdoc-check
119GTK_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
120GTK_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
121HTML_DIR = ${datadir}/gtk-doc/html
122INSTALL = /usr/bin/install -c
123INSTALL_DATA = ${INSTALL} -m 644
124INSTALL_PROGRAM = ${INSTALL}
125INSTALL_SCRIPT = ${INSTALL}
126INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
127LDFLAGS =
128LEX = flex
129LEXLIB = -lfl
130LEX_OUTPUT_ROOT = lex.yy
131LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
132LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
133LIBOBJS =
134LIBS = -lm
135LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
136LIBXML2_CFLAGS = -I/usr/include/libxml2
137LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
138LN_S = ln -s
139LTLIBOBJS =
140LTVERSION = 0:8:0
141MAGIC_LIBS = -lmagic
142MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
143MATH_LIBS = -lm
144MKDIR_P = /bin/mkdir -p
145OBJDUMP = objdump
146OBJEXT = o
147PACKAGE = libg3d
148PACKAGE_BUGREPORT =
149PACKAGE_NAME =
150PACKAGE_STRING =
151PACKAGE_TARNAME =
152PACKAGE_VERSION =
153PATH_SEPARATOR = :
154PKG_CONFIG = /usr/bin/pkg-config
155PLUGINS_LDFLAGS = -avoid-version -export-dynamic
156RANLIB = ranlib
157SET_MAKE =
158SHELL = /bin/bash
159STRIP = strip
160VERSION = 0.0.8
161XML2_CONFIG = /usr/bin/xml2-config
162XML_CPPFLAGS = -I/usr/include/libxml2
163XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
164Z_CFLAGS =
165Z_LIBS = -lz
166abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm
167abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm
168abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
170ac_ct_CC = gcc
171ac_ct_CXX = g++
172ac_ct_F77 =
173am__include = include
174am__leading_dot = .
175am__quote =
176am__tar = ${AMTAR} chof - "$$tardir"
177am__untar = ${AMTAR} xf -
178bindir = ${exec_prefix}/bin
179build = x86_64-unknown-linux-gnu
180build_alias =
181build_cpu = x86_64
182build_os = linux-gnu
183build_vendor = unknown
184builddir = .
185datadir = ${datarootdir}
186datarootdir = ${prefix}/share
187docdir = ${datarootdir}/doc/${PACKAGE}
188dvidir = ${docdir}
189exec_prefix = ${prefix}
190host = x86_64-unknown-linux-gnu
191host_alias =
192host_cpu = x86_64
193host_os = linux-gnu
194host_vendor = unknown
195htmldir = ${docdir}
196includedir = ${prefix}/include
197infodir = ${datarootdir}/info
198install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
199libdir = ${exec_prefix}/lib
200libexecdir = ${exec_prefix}/libexec
201localedir = ${datarootdir}/locale
202localstatedir = ${prefix}/var
203mandir = ${datarootdir}/man
204mkdir_p = /bin/mkdir -p
205oldincludedir = /usr/include
206pdfdir = ${docdir}
207prefix = /usr/local
208program_transform_name = s,x,x,
209psdir = ${docdir}
210sbindir = ${exec_prefix}/sbin
211sharedstatedir = ${prefix}/com
212srcdir = .
213sysconfdir = ${prefix}/etc
214target_alias =
215top_builddir = ../../..
216top_srcdir = ../../..
217pluginimpdir = $(pkglibdir)/plugins/import
218#pluginimp_LTLIBRARIES = imp_3dm.la
219AM_CFLAGS = \
220 -Wall -ansi -pedantic \
221 -DG_LOG_DOMAIN=\"LibG3D\" \
222 -O2 -DDEBUG=0 \
223 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
224
225INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include
226AM_LDFLAGS = \
227 -no-undefined -module \
228 -avoid-version -export-dynamic
229
230imp_3dm_la_SOURCES = imp_3dm.c imp_3dm.h \
231 imp_3dm_callbacks.h imp_3dm_callbacks.c \
232 imp_3dm_object.c imp_3dm_object.h \
233 imp_3dm_chunks.h imp_3dm_object_types.h imp_3dm_types.h
234
235imp_3dm_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
236all: all-am
237
238.SUFFIXES:
239.SUFFIXES: .c .lo .o .obj
240$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
241 @for dep in $?; do \
242 case '$(am__configure_deps)' in \
243 *$$dep*) \
244 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
245 && exit 0; \
246 exit 1;; \
247 esac; \
248 done; \
249 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_3dm/Makefile'; \
250 cd $(top_srcdir) && \
251 $(AUTOMAKE) --gnu plugins/import/imp_3dm/Makefile
252.PRECIOUS: Makefile
253Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
254 @case '$?' in \
255 *config.status*) \
256 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
257 *) \
258 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
259 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
260 esac;
261
262$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264
265$(top_srcdir)/configure: $(am__configure_deps)
266 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
267$(ACLOCAL_M4): $(am__aclocal_m4_deps)
268 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
269install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
270 @$(NORMAL_INSTALL)
271 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
272 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
273 if test -f $$p; then \
274 f=$(am__strip_dir) \
275 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
276 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
277 else :; fi; \
278 done
279
280uninstall-pluginimpLTLIBRARIES:
281 @$(NORMAL_UNINSTALL)
282 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
283 p=$(am__strip_dir) \
284 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
285 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
286 done
287
288clean-pluginimpLTLIBRARIES:
289 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
290 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
291 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
292 test "$$dir" != "$$p" || dir=.; \
293 echo "rm -f \"$${dir}/so_locations\""; \
294 rm -f "$${dir}/so_locations"; \
295 done
296imp_3dm.la: $(imp_3dm_la_OBJECTS) $(imp_3dm_la_DEPENDENCIES)
297 $(LINK) $(am_imp_3dm_la_rpath) $(imp_3dm_la_OBJECTS) $(imp_3dm_la_LIBADD) $(LIBS)
298
299mostlyclean-compile:
300 -rm -f *.$(OBJEXT)
301
302distclean-compile:
303 -rm -f *.tab.c
304
305include ./$(DEPDIR)/imp_3dm.Plo
306include ./$(DEPDIR)/imp_3dm_callbacks.Plo
307include ./$(DEPDIR)/imp_3dm_object.Plo
308
309.c.o:
310 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
311 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
312# source='$<' object='$@' libtool=no \
313# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
314# $(COMPILE) -c $<
315
316.c.obj:
317 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
318 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
319# source='$<' object='$@' libtool=no \
320# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
321# $(COMPILE) -c `$(CYGPATH_W) '$<'`
322
323.c.lo:
324 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
325 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
326# source='$<' object='$@' libtool=yes \
327# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
328# $(LTCOMPILE) -c -o $@ $<
329
330mostlyclean-libtool:
331 -rm -f *.lo
332
333clean-libtool:
334 -rm -rf .libs _libs
335
336ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
337 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
338 unique=`for i in $$list; do \
339 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
340 done | \
341 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
342 END { if (nonempty) { for (i in files) print i; }; }'`; \
343 mkid -fID $$unique
344tags: TAGS
345
346TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
347 $(TAGS_FILES) $(LISP)
348 tags=; \
349 here=`pwd`; \
350 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
351 unique=`for i in $$list; do \
352 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
353 done | \
354 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
355 END { if (nonempty) { for (i in files) print i; }; }'`; \
356 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
357 test -n "$$unique" || unique=$$empty_fix; \
358 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
359 $$tags $$unique; \
360 fi
361ctags: CTAGS
362CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
363 $(TAGS_FILES) $(LISP)
364 tags=; \
365 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
366 unique=`for i in $$list; do \
367 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
368 done | \
369 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
370 END { if (nonempty) { for (i in files) print i; }; }'`; \
371 test -z "$(CTAGS_ARGS)$$tags$$unique" \
372 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
373 $$tags $$unique
374
375GTAGS:
376 here=`$(am__cd) $(top_builddir) && pwd` \
377 && cd $(top_srcdir) \
378 && gtags -i $(GTAGS_ARGS) $$here
379
380distclean-tags:
381 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
382
383distdir: $(DISTFILES)
384 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
385 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
386 list='$(DISTFILES)'; \
387 dist_files=`for file in $$list; do echo $$file; done | \
388 sed -e "s|^$$srcdirstrip/||;t" \
389 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
390 case $$dist_files in \
391 */*) $(MKDIR_P) `echo "$$dist_files" | \
392 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
393 sort -u` ;; \
394 esac; \
395 for file in $$dist_files; do \
396 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
397 if test -d $$d/$$file; then \
398 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
399 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
400 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
401 fi; \
402 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
403 else \
404 test -f $(distdir)/$$file \
405 || cp -p $$d/$$file $(distdir)/$$file \
406 || exit 1; \
407 fi; \
408 done
409check-am: all-am
410check: check-am
411all-am: Makefile $(LTLIBRARIES)
412installdirs:
413 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
414 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
415 done
416install: install-am
417install-exec: install-exec-am
418install-data: install-data-am
419uninstall: uninstall-am
420
421install-am: all-am
422 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
423
424installcheck: installcheck-am
425install-strip:
426 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
427 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
428 `test -z '$(STRIP)' || \
429 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
430mostlyclean-generic:
431
432clean-generic:
433
434distclean-generic:
435 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
436
437maintainer-clean-generic:
438 @echo "This command is intended for maintainers to use"
439 @echo "it deletes files that may require special tools to rebuild."
440clean: clean-am
441
442clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
443 mostlyclean-am
444
445distclean: distclean-am
446 -rm -rf ./$(DEPDIR)
447 -rm -f Makefile
448distclean-am: clean-am distclean-compile distclean-generic \
449 distclean-tags
450
451dvi: dvi-am
452
453dvi-am:
454
455html: html-am
456
457info: info-am
458
459info-am:
460
461install-data-am: install-pluginimpLTLIBRARIES
462
463install-dvi: install-dvi-am
464
465install-exec-am:
466
467install-html: install-html-am
468
469install-info: install-info-am
470
471install-man:
472
473install-pdf: install-pdf-am
474
475install-ps: install-ps-am
476
477installcheck-am:
478
479maintainer-clean: maintainer-clean-am
480 -rm -rf ./$(DEPDIR)
481 -rm -f Makefile
482maintainer-clean-am: distclean-am maintainer-clean-generic
483
484mostlyclean: mostlyclean-am
485
486mostlyclean-am: mostlyclean-compile mostlyclean-generic \
487 mostlyclean-libtool
488
489pdf: pdf-am
490
491pdf-am:
492
493ps: ps-am
494
495ps-am:
496
497uninstall-am: uninstall-pluginimpLTLIBRARIES
498
499.MAKE: install-am install-strip
500
501.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
502 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
503 distclean-compile distclean-generic distclean-libtool \
504 distclean-tags distdir dvi dvi-am html html-am info info-am \
505 install install-am install-data install-data-am install-dvi \
506 install-dvi-am install-exec install-exec-am install-html \
507 install-html-am install-info install-info-am install-man \
508 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
509 install-ps install-ps-am install-strip installcheck \
510 installcheck-am installdirs maintainer-clean \
511 maintainer-clean-generic mostlyclean mostlyclean-compile \
512 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
513 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
514
515# Tell versions [3.59,3.63) of GNU make to not export all variables.
516# Otherwise a system limit (for SysV at least) may be exceeded.
517.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile.am
new file mode 100644
index 0000000..125488f
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile.am
@@ -0,0 +1,26 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if EXPERIMENTAL
4pluginimp_LTLIBRARIES = imp_3dm.la
5endif
6
7AM_CFLAGS = \
8 -Wall -ansi -pedantic \
9 -DG_LOG_DOMAIN=\"LibG3D\" \
10 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
11 @GLIB_CFLAGS@
12
13INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include
14
15AM_LDFLAGS = \
16 -no-undefined -module \
17 @PLUGINS_LDFLAGS@
18
19LIBTOOL += --quiet
20
21imp_3dm_la_SOURCES = imp_3dm.c imp_3dm.h \
22 imp_3dm_callbacks.h imp_3dm_callbacks.c \
23 imp_3dm_object.c imp_3dm_object.h \
24 imp_3dm_chunks.h imp_3dm_object_types.h imp_3dm_types.h
25imp_3dm_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
26
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile.in
new file mode 100644
index 0000000..5831e8b
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile.in
@@ -0,0 +1,517 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_3dm
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_3dm_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_3dm_la_OBJECTS = imp_3dm.lo imp_3dm_callbacks.lo \
59 imp_3dm_object.lo
60imp_3dm_la_OBJECTS = $(am_imp_3dm_la_OBJECTS)
61@EXPERIMENTAL_TRUE@am_imp_3dm_la_rpath = -rpath $(pluginimpdir)
62DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
63depcomp = $(SHELL) $(top_srcdir)/config/depcomp
64am__depfiles_maybe = depfiles
65COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
66 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
67LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
68 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
69 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
70CCLD = $(CC)
71LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
72 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
73 $(LDFLAGS) -o $@
74SOURCES = $(imp_3dm_la_SOURCES)
75DIST_SOURCES = $(imp_3dm_la_SOURCES)
76ETAGS = etags
77CTAGS = ctags
78DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
79ACLOCAL = @ACLOCAL@
80AMTAR = @AMTAR@
81AR = @AR@
82AS = @AS@
83AUTOCONF = @AUTOCONF@
84AUTOHEADER = @AUTOHEADER@
85AUTOMAKE = @AUTOMAKE@
86AWK = @AWK@
87CC = @CC@
88CCDEPMODE = @CCDEPMODE@
89CFLAGS = @CFLAGS@
90CPP = @CPP@
91CPPFLAGS = @CPPFLAGS@
92CXX = @CXX@
93CXXCPP = @CXXCPP@
94CXXDEPMODE = @CXXDEPMODE@
95CXXFLAGS = @CXXFLAGS@
96CYGPATH_W = @CYGPATH_W@
97DBG_CFLAGS = @DBG_CFLAGS@
98DEBUG = @DEBUG@
99DEFS = @DEFS@
100DEPDIR = @DEPDIR@
101DLLTOOL = @DLLTOOL@
102ECHO = @ECHO@
103ECHO_C = @ECHO_C@
104ECHO_N = @ECHO_N@
105ECHO_T = @ECHO_T@
106EGREP = @EGREP@
107EXEEXT = @EXEEXT@
108F77 = @F77@
109FFLAGS = @FFLAGS@
110GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
111GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
112GLIB_CFLAGS = @GLIB_CFLAGS@
113GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
114GLIB_LIBS = @GLIB_LIBS@
115GLIB_MKENUMS = @GLIB_MKENUMS@
116GOBJECT_QUERY = @GOBJECT_QUERY@
117GREP = @GREP@
118GTKDOC_CHECK = @GTKDOC_CHECK@
119GTK_CFLAGS = @GTK_CFLAGS@
120GTK_LIBS = @GTK_LIBS@
121HTML_DIR = @HTML_DIR@
122INSTALL = @INSTALL@
123INSTALL_DATA = @INSTALL_DATA@
124INSTALL_PROGRAM = @INSTALL_PROGRAM@
125INSTALL_SCRIPT = @INSTALL_SCRIPT@
126INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
127LDFLAGS = @LDFLAGS@
128LEX = @LEX@
129LEXLIB = @LEXLIB@
130LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
131LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
132LIBGSF_LIBS = @LIBGSF_LIBS@
133LIBOBJS = @LIBOBJS@
134LIBS = @LIBS@
135LIBTOOL = @LIBTOOL@ --quiet
136LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
137LIBXML2_LIBS = @LIBXML2_LIBS@
138LN_S = @LN_S@
139LTLIBOBJS = @LTLIBOBJS@
140LTVERSION = @LTVERSION@
141MAGIC_LIBS = @MAGIC_LIBS@
142MAKEINFO = @MAKEINFO@
143MATH_LIBS = @MATH_LIBS@
144MKDIR_P = @MKDIR_P@
145OBJDUMP = @OBJDUMP@
146OBJEXT = @OBJEXT@
147PACKAGE = @PACKAGE@
148PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
149PACKAGE_NAME = @PACKAGE_NAME@
150PACKAGE_STRING = @PACKAGE_STRING@
151PACKAGE_TARNAME = @PACKAGE_TARNAME@
152PACKAGE_VERSION = @PACKAGE_VERSION@
153PATH_SEPARATOR = @PATH_SEPARATOR@
154PKG_CONFIG = @PKG_CONFIG@
155PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
156RANLIB = @RANLIB@
157SET_MAKE = @SET_MAKE@
158SHELL = @SHELL@
159STRIP = @STRIP@
160VERSION = @VERSION@
161XML2_CONFIG = @XML2_CONFIG@
162XML_CPPFLAGS = @XML_CPPFLAGS@
163XML_LIBS = @XML_LIBS@
164Z_CFLAGS = @Z_CFLAGS@
165Z_LIBS = @Z_LIBS@
166abs_builddir = @abs_builddir@
167abs_srcdir = @abs_srcdir@
168abs_top_builddir = @abs_top_builddir@
169abs_top_srcdir = @abs_top_srcdir@
170ac_ct_CC = @ac_ct_CC@
171ac_ct_CXX = @ac_ct_CXX@
172ac_ct_F77 = @ac_ct_F77@
173am__include = @am__include@
174am__leading_dot = @am__leading_dot@
175am__quote = @am__quote@
176am__tar = @am__tar@
177am__untar = @am__untar@
178bindir = @bindir@
179build = @build@
180build_alias = @build_alias@
181build_cpu = @build_cpu@
182build_os = @build_os@
183build_vendor = @build_vendor@
184builddir = @builddir@
185datadir = @datadir@
186datarootdir = @datarootdir@
187docdir = @docdir@
188dvidir = @dvidir@
189exec_prefix = @exec_prefix@
190host = @host@
191host_alias = @host_alias@
192host_cpu = @host_cpu@
193host_os = @host_os@
194host_vendor = @host_vendor@
195htmldir = @htmldir@
196includedir = @includedir@
197infodir = @infodir@
198install_sh = @install_sh@
199libdir = @libdir@
200libexecdir = @libexecdir@
201localedir = @localedir@
202localstatedir = @localstatedir@
203mandir = @mandir@
204mkdir_p = @mkdir_p@
205oldincludedir = @oldincludedir@
206pdfdir = @pdfdir@
207prefix = @prefix@
208program_transform_name = @program_transform_name@
209psdir = @psdir@
210sbindir = @sbindir@
211sharedstatedir = @sharedstatedir@
212srcdir = @srcdir@
213sysconfdir = @sysconfdir@
214target_alias = @target_alias@
215top_builddir = @top_builddir@
216top_srcdir = @top_srcdir@
217pluginimpdir = $(pkglibdir)/plugins/import
218@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_3dm.la
219AM_CFLAGS = \
220 -Wall -ansi -pedantic \
221 -DG_LOG_DOMAIN=\"LibG3D\" \
222 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
223 @GLIB_CFLAGS@
224
225INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include
226AM_LDFLAGS = \
227 -no-undefined -module \
228 @PLUGINS_LDFLAGS@
229
230imp_3dm_la_SOURCES = imp_3dm.c imp_3dm.h \
231 imp_3dm_callbacks.h imp_3dm_callbacks.c \
232 imp_3dm_object.c imp_3dm_object.h \
233 imp_3dm_chunks.h imp_3dm_object_types.h imp_3dm_types.h
234
235imp_3dm_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
236all: all-am
237
238.SUFFIXES:
239.SUFFIXES: .c .lo .o .obj
240$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
241 @for dep in $?; do \
242 case '$(am__configure_deps)' in \
243 *$$dep*) \
244 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
245 && exit 0; \
246 exit 1;; \
247 esac; \
248 done; \
249 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_3dm/Makefile'; \
250 cd $(top_srcdir) && \
251 $(AUTOMAKE) --gnu plugins/import/imp_3dm/Makefile
252.PRECIOUS: Makefile
253Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
254 @case '$?' in \
255 *config.status*) \
256 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
257 *) \
258 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
259 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
260 esac;
261
262$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264
265$(top_srcdir)/configure: $(am__configure_deps)
266 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
267$(ACLOCAL_M4): $(am__aclocal_m4_deps)
268 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
269install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
270 @$(NORMAL_INSTALL)
271 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
272 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
273 if test -f $$p; then \
274 f=$(am__strip_dir) \
275 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
276 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
277 else :; fi; \
278 done
279
280uninstall-pluginimpLTLIBRARIES:
281 @$(NORMAL_UNINSTALL)
282 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
283 p=$(am__strip_dir) \
284 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
285 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
286 done
287
288clean-pluginimpLTLIBRARIES:
289 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
290 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
291 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
292 test "$$dir" != "$$p" || dir=.; \
293 echo "rm -f \"$${dir}/so_locations\""; \
294 rm -f "$${dir}/so_locations"; \
295 done
296imp_3dm.la: $(imp_3dm_la_OBJECTS) $(imp_3dm_la_DEPENDENCIES)
297 $(LINK) $(am_imp_3dm_la_rpath) $(imp_3dm_la_OBJECTS) $(imp_3dm_la_LIBADD) $(LIBS)
298
299mostlyclean-compile:
300 -rm -f *.$(OBJEXT)
301
302distclean-compile:
303 -rm -f *.tab.c
304
305@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_3dm.Plo@am__quote@
306@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_3dm_callbacks.Plo@am__quote@
307@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_3dm_object.Plo@am__quote@
308
309.c.o:
310@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
311@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
313@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
314@am__fastdepCC_FALSE@ $(COMPILE) -c $<
315
316.c.obj:
317@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
318@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
320@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
321@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
322
323.c.lo:
324@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
325@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
326@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
327@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
328@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
329
330mostlyclean-libtool:
331 -rm -f *.lo
332
333clean-libtool:
334 -rm -rf .libs _libs
335
336ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
337 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
338 unique=`for i in $$list; do \
339 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
340 done | \
341 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
342 END { if (nonempty) { for (i in files) print i; }; }'`; \
343 mkid -fID $$unique
344tags: TAGS
345
346TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
347 $(TAGS_FILES) $(LISP)
348 tags=; \
349 here=`pwd`; \
350 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
351 unique=`for i in $$list; do \
352 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
353 done | \
354 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
355 END { if (nonempty) { for (i in files) print i; }; }'`; \
356 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
357 test -n "$$unique" || unique=$$empty_fix; \
358 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
359 $$tags $$unique; \
360 fi
361ctags: CTAGS
362CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
363 $(TAGS_FILES) $(LISP)
364 tags=; \
365 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
366 unique=`for i in $$list; do \
367 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
368 done | \
369 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
370 END { if (nonempty) { for (i in files) print i; }; }'`; \
371 test -z "$(CTAGS_ARGS)$$tags$$unique" \
372 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
373 $$tags $$unique
374
375GTAGS:
376 here=`$(am__cd) $(top_builddir) && pwd` \
377 && cd $(top_srcdir) \
378 && gtags -i $(GTAGS_ARGS) $$here
379
380distclean-tags:
381 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
382
383distdir: $(DISTFILES)
384 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
385 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
386 list='$(DISTFILES)'; \
387 dist_files=`for file in $$list; do echo $$file; done | \
388 sed -e "s|^$$srcdirstrip/||;t" \
389 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
390 case $$dist_files in \
391 */*) $(MKDIR_P) `echo "$$dist_files" | \
392 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
393 sort -u` ;; \
394 esac; \
395 for file in $$dist_files; do \
396 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
397 if test -d $$d/$$file; then \
398 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
399 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
400 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
401 fi; \
402 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
403 else \
404 test -f $(distdir)/$$file \
405 || cp -p $$d/$$file $(distdir)/$$file \
406 || exit 1; \
407 fi; \
408 done
409check-am: all-am
410check: check-am
411all-am: Makefile $(LTLIBRARIES)
412installdirs:
413 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
414 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
415 done
416install: install-am
417install-exec: install-exec-am
418install-data: install-data-am
419uninstall: uninstall-am
420
421install-am: all-am
422 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
423
424installcheck: installcheck-am
425install-strip:
426 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
427 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
428 `test -z '$(STRIP)' || \
429 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
430mostlyclean-generic:
431
432clean-generic:
433
434distclean-generic:
435 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
436
437maintainer-clean-generic:
438 @echo "This command is intended for maintainers to use"
439 @echo "it deletes files that may require special tools to rebuild."
440clean: clean-am
441
442clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
443 mostlyclean-am
444
445distclean: distclean-am
446 -rm -rf ./$(DEPDIR)
447 -rm -f Makefile
448distclean-am: clean-am distclean-compile distclean-generic \
449 distclean-tags
450
451dvi: dvi-am
452
453dvi-am:
454
455html: html-am
456
457info: info-am
458
459info-am:
460
461install-data-am: install-pluginimpLTLIBRARIES
462
463install-dvi: install-dvi-am
464
465install-exec-am:
466
467install-html: install-html-am
468
469install-info: install-info-am
470
471install-man:
472
473install-pdf: install-pdf-am
474
475install-ps: install-ps-am
476
477installcheck-am:
478
479maintainer-clean: maintainer-clean-am
480 -rm -rf ./$(DEPDIR)
481 -rm -f Makefile
482maintainer-clean-am: distclean-am maintainer-clean-generic
483
484mostlyclean: mostlyclean-am
485
486mostlyclean-am: mostlyclean-compile mostlyclean-generic \
487 mostlyclean-libtool
488
489pdf: pdf-am
490
491pdf-am:
492
493ps: ps-am
494
495ps-am:
496
497uninstall-am: uninstall-pluginimpLTLIBRARIES
498
499.MAKE: install-am install-strip
500
501.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
502 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
503 distclean-compile distclean-generic distclean-libtool \
504 distclean-tags distdir dvi dvi-am html html-am info info-am \
505 install install-am install-data install-data-am install-dvi \
506 install-dvi-am install-exec install-exec-am install-html \
507 install-html-am install-info install-info-am install-man \
508 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
509 install-ps install-ps-am install-strip installcheck \
510 installcheck-am installdirs maintainer-clean \
511 maintainer-clean-generic mostlyclean mostlyclean-compile \
512 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
513 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
514
515# Tell versions [3.59,3.63) of GNU make to not export all variables.
516# Otherwise a system limit (for SysV at least) may be exceeded.
517.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm.c
new file mode 100644
index 0000000..6273fd3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm.c
@@ -0,0 +1,169 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005 - 2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <ctype.h>
24#include <stdlib.h>
25#include <string.h>
26
27#include <g3d/types.h>
28#include <g3d/stream.h>
29#include <g3d/debug.h>
30
31#include "imp_3dm.h"
32#include "imp_3dm_chunks.h"
33
34static gboolean tdm_read_container(TdmGlobal *global, gpointer object,
35 goffset nb, guint32 level);
36
37EAPI
38gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
39 G3DModel *model, gpointer user_data)
40{
41 TdmGlobal *global;
42 G3DFloat version;
43 gchar magic[33], *pver;
44 gboolean retval;
45 guint32 max_len;
46
47 memset(magic, '\0', 33);
48 g3d_stream_read(stream, magic, 32);
49 if(strncmp(magic, "3D Geometry File Format ", 24) != 0) {
50 g_warning("%s is not an OpenNURBS 3dm file", stream->uri);
51 return FALSE;
52 }
53 pver = magic + 24;
54 while(isspace(*pver))
55 pver ++;
56 version = strtod(pver, NULL);
57#if DEBUG > 0
58 g_debug("loading %s, version %.1f", stream->uri, version);
59#endif
60
61 global = g_new0(TdmGlobal, 1);
62 global->context = context;
63 global->stream = stream;
64 global->model = model;
65 max_len = g3d_stream_size(stream);
66 if(!max_len)
67 max_len = (guint32) -1;
68 retval = tdm_read_container(global, NULL, max_len - 32, 0);
69 g_free(global);
70
71 return retval;
72}
73
74EAPI
75gchar *plugin_description(void)
76{
77 return g_strdup("OpenNURBS models.");
78}
79
80EAPI
81gchar **plugin_extensions(void)
82{
83 return g_strsplit("3dm", ":", 0);
84}
85
86/*****************************************************************************/
87
88static TdmChunkInfo *tdm_get_chunk_info(guint32 tcode)
89{
90 gint32 i;
91
92 for(i = 0; tdm_chunks[i].tcode <= tcode; i ++)
93 if(tdm_chunks[i].tcode == tcode)
94 return &(tdm_chunks[i]);
95 return NULL;
96}
97
98static gboolean tdm_read_container(TdmGlobal *global, gpointer object,
99 goffset nb, guint32 level)
100{
101 TdmChunkInfo *chunkinfo;
102 TdmLocal *local;
103 guint32 tcode;
104 guint32 len;
105 goffset off;
106
107 while(TRUE) {
108 off = g3d_stream_tell(global->stream);
109 tcode = g3d_stream_read_int32_le(global->stream);
110 len = g3d_stream_read_int32_le(global->stream);
111 nb -= 8;
112 if(tcode == 0)
113 return TRUE;
114
115 /* mask out DATA and CRC */
116 chunkinfo = tdm_get_chunk_info(tcode & 0x7FFF7FFF);
117
118#if DEBUG > 0
119 g_debug("\\%s[0x%08x][%c%c%c] %s (%d bytes @ 0x%08x)",
120 debug_pad(level), tcode,
121 (chunkinfo && chunkinfo->container) ? 'c' : ' ',
122 (chunkinfo && chunkinfo->endofcnt) ? 'e' : ' ',
123 (chunkinfo && chunkinfo->callback) ? 'f' : ' ',
124 chunkinfo ? chunkinfo->description : "unknown chunk",
125 (tcode & TCODE_DATA) ? 0 : len,
126 (guint32)off);
127#endif
128 if(chunkinfo && chunkinfo->endofcnt)
129 return TRUE;
130
131#if DEBUG > 0
132 if(tcode & TCODE_DATA)
133 g_debug("|%sdata: 0x%08x", debug_pad(level + 1), len);
134#endif
135
136 if(chunkinfo) {
137 if(chunkinfo->callback) {
138 local = g_new0(TdmLocal, 1);
139 local->tcode = tcode;
140 local->len = (tcode & TCODE_DATA) ? 0 : len;
141 local->data = (tcode & TCODE_DATA) ? len : 0;
142 local->level = level;
143 local->object = object;
144 chunkinfo->callback(global, local);
145 len = local->len;
146 object = local->object;
147 g_free(local);
148 }
149 if(chunkinfo->container) {
150 if(!tdm_read_container(global, object, len, level + 1))
151 return FALSE;
152 nb -= len;
153 len = 0;
154 if(tcode & TCODE_CRC) {
155 g3d_stream_read_int32_le(global->stream);
156 nb -= 4;
157 }
158 }
159 }
160
161 if(tcode & TCODE_DATA)
162 continue;
163
164 if(len > 0)
165 g3d_stream_skip(global->stream, len);
166 }
167
168 return TRUE;
169}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm.h
new file mode 100644
index 0000000..5239eb8
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm.h
@@ -0,0 +1,31 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_3DM_H
23#define _IMP_3DM_H
24
25#define TCODE_TABLE 0x10000000
26#define TCODE_DATA 0x80000000
27#define TCODE_CRC 0x00008000
28
29#define TCODE_ENDOFTABLE 0xFFFFFFFF
30
31#endif /* _IMP_3DM_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_callbacks.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_callbacks.c
new file mode 100644
index 0000000..8eba35a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_callbacks.c
@@ -0,0 +1,278 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <g3d/config.h>
23
24#include <g3d/types.h>
25#include <g3d/debug.h>
26#include <g3d/stream.h>
27#include <g3d/vector.h>
28#include <g3d/material.h>
29
30#include "imp_3dm_types.h"
31#include "imp_3dm_callbacks.h"
32#include "imp_3dm_object.h"
33#include "imp_3dm_object_types.h"
34
35static TdmObjectTypeInfo *tdm_otype_get_info(guint32 code)
36{
37 gint32 i;
38
39 if(code == 0xFFFFFFFF)
40 return NULL;
41
42 for(i = 0; tdm_object_types[i].code <= code; i ++)
43 if(tdm_object_types[i].code == code)
44 return &(tdm_object_types[i]);
45 return NULL;
46}
47
48static gboolean tdm_read_chunk_version(TdmGlobal *global, TdmLocal *local)
49{
50 guint8 ver = g3d_stream_read_int8(global->stream);
51
52 if(!ver)
53 return FALSE;
54 local->len -= 1;
55 local->major_version = (ver >> 4) & 0x0F;
56 local->minor_version = ver & 0x0F;
57
58 return TRUE;
59}
60
61/* OpenNURBS class data */
62gboolean tdm_cb_0x00027ffc(TdmGlobal *global, TdmLocal *local)
63{
64 TdmObjectRecord *obj = local->object;
65 TdmObjectTypeInfo *tinfo;
66 G3DMaterial *material;
67
68 if(!obj) {
69 g_warning("tdm_cb_0x00027FFC: expecting object...");
70 return TRUE;
71 }
72
73 tinfo = tdm_otype_get_info(obj->otype);
74 if(!tinfo) {
75 g_warning("unknown object type 0x%08x", obj->otype);
76 return TRUE;
77 }
78
79 local->level ++;
80#if DEBUG > 0
81 g_debug("\\%so: [0x%08x][%c]: %s", debug_pad(local->level),
82 obj->otype,
83 tinfo->callback ? 'f' : ' ',
84 tinfo->description);
85#endif
86 obj->object = g_new0(G3DObject, 1);
87 obj->object->name = g_strdup_printf("%s object @ 0x%08x",
88 tinfo->description, (guint32)g3d_stream_tell(global->stream));
89 global->model->objects = g_slist_append(global->model->objects,
90 obj->object);
91
92 material = g3d_material_new();
93 material->name = g_strdup("(default material)");
94 obj->object->materials = g_slist_append(obj->object->materials, material);
95
96 if(tinfo->callback)
97 tinfo->callback(global, local);
98
99 return TRUE;
100}
101
102/* object record type */
103gboolean tdm_cb_0x02000071(TdmGlobal *global, TdmLocal *local)
104{
105 TdmObjectRecord *obj = local->object;
106
107 if(obj)
108 obj->otype = local->data;
109 return TRUE;
110}
111
112/* object record end */
113gboolean tdm_cb_0x0200007f(TdmGlobal *global, TdmLocal *local)
114{
115 TdmObjectRecord *obj = local->object;
116
117 if(obj) {
118 g_free(obj);
119 }
120 return TRUE;
121}
122
123/* object record */
124gboolean tdm_cb_0x20000070(TdmGlobal *global, TdmLocal *local)
125{
126 local->object = g_new0(TdmObjectRecord, 1);
127 return TRUE;
128}
129
130/* object: mesh */
131gboolean tdm_cb_o_0x00000020(TdmGlobal *global, TdmLocal *local)
132{
133 TdmObjectRecord *obj = local->object;
134 G3DFace *face;
135 gint32 i, j;
136 guint32 vcount, fcount, isize, csize, crc;
137 guint8 c;
138
139 if(!tdm_read_chunk_version(global, local))
140 return FALSE;
141 if((local->major_version != 3) && (local->major_version != 1))
142 return TRUE;
143
144 vcount = g3d_stream_read_int32_le(global->stream);
145 fcount = g3d_stream_read_int32_le(global->stream);
146 local->len -= 8;
147
148 /* packed tex domain */
149 g3d_stream_read_double_le(global->stream);
150 g3d_stream_read_double_le(global->stream);
151 g3d_stream_read_double_le(global->stream);
152 g3d_stream_read_double_le(global->stream);
153 local->len -= 32;
154 /* srf domain */
155 g3d_stream_read_double_le(global->stream);
156 g3d_stream_read_double_le(global->stream);
157 g3d_stream_read_double_le(global->stream);
158 g3d_stream_read_double_le(global->stream);
159 local->len -= 32;
160 /* srf scale */
161 g3d_stream_read_double_le(global->stream);
162 g3d_stream_read_double_le(global->stream);
163 local->len -= 16;
164 /* vbox */
165 g3d_stream_read_float_le(global->stream);
166 g3d_stream_read_float_le(global->stream);
167 g3d_stream_read_float_le(global->stream);
168 g3d_stream_read_float_le(global->stream);
169 g3d_stream_read_float_le(global->stream);
170 g3d_stream_read_float_le(global->stream);
171 local->len -= 24;
172 /* nbox */
173 g3d_stream_read_float_le(global->stream);
174 g3d_stream_read_float_le(global->stream);
175 g3d_stream_read_float_le(global->stream);
176 g3d_stream_read_float_le(global->stream);
177 g3d_stream_read_float_le(global->stream);
178 g3d_stream_read_float_le(global->stream);
179 local->len -= 24;
180 /* tbox */
181 g3d_stream_read_float_le(global->stream);
182 g3d_stream_read_float_le(global->stream);
183 g3d_stream_read_float_le(global->stream);
184 g3d_stream_read_float_le(global->stream);
185 local->len -= 16;
186 /* closed */
187 g3d_stream_read_int32_le(global->stream);
188 local->len -= 4;
189
190#if DEBUG > 0
191 g_debug("|%svcount = %u, fcount = %u", debug_pad(local->level),
192 vcount, fcount);
193#endif
194
195 /* mesh parameters */
196 c = g3d_stream_read_int8(global->stream);
197 local->len -= 1;
198 if(c) {
199 return TRUE;
200 /* TODO */
201 }
202
203 /* mesh curvature */
204 for(i = 0; i < 4; i ++) {
205 c = g3d_stream_read_int8(global->stream);
206 local->len -= 1;
207 if(c) {
208 return TRUE;
209 /* TODO */
210 }
211 }
212
213 /* face array */
214 isize = g3d_stream_read_int32_le(global->stream);
215 local->len -= 4;
216 for(i = 0; i < fcount; i ++) {
217 face = g_new0(G3DFace, 1);
218 face->material = g_slist_nth_data(obj->object->materials, 0);
219 face->vertex_count = 4;
220 face->vertex_indices = g_new0(guint32, 4);
221 for(j = 0; j < 4; j ++) {
222 switch(isize) {
223 case 1:
224 face->vertex_indices[j] =
225 g3d_stream_read_int8(global->stream);
226 local->len -= 1;
227 break;
228 case 2:
229 face->vertex_indices[j] =
230 g3d_stream_read_int16_le(global->stream);
231 local->len -= 2;
232 break;
233 case 4:
234 face->vertex_indices[j] =
235 g3d_stream_read_int32_le(global->stream);
236 local->len -= 4;
237 break;
238 default:
239 g_warning("unsupported isize: %d", isize);
240 return TRUE;
241 break;
242 } /* switch(isize) */
243 } /* j := 0..3 */
244
245 obj->object->faces = g_slist_prepend(obj->object->faces, face);
246#if DEBUG > 0
247 g_debug("|%s[face %04d] %u, %u, %u, %u", debug_pad(local->level), i,
248 face->vertex_indices[0], face->vertex_indices[1],
249 face->vertex_indices[2], face->vertex_indices[3]);
250#endif
251 } /* i := 0..fcount */
252
253 /* vertex stuff */
254 if(local->major_version == 1) {
255 /* TODO */
256 return TRUE;
257 }
258
259 if(vcount > 0) {
260 csize = g3d_stream_read_int32_le(global->stream);
261 local->len -= 4;
262
263 crc = g3d_stream_read_int32_le(global->stream);
264 local->len -= 4;
265
266 c = g3d_stream_read_int8(global->stream);
267 local->len -= 1;
268
269 obj->object->vertex_count = vcount;
270 obj->object->vertex_data = g3d_vector_new(3, vcount);
271 if(c)
272 tdm_object_read_vertex_data_compressed(global, local);
273 else
274 tdm_object_read_vertex_data_uncompressed(global, local);
275 } /* vcount > 0 */
276
277 return TRUE;
278}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_callbacks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_callbacks.h
new file mode 100644
index 0000000..50ed6ef
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_callbacks.h
@@ -0,0 +1,34 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_3DM_CALLBACKS_H
23#define _IMP_3DM_CALLBACKS_H
24
25#include "imp_3dm_types.h"
26
27gboolean tdm_cb_0x00027ffc(TdmGlobal *global, TdmLocal *local);
28gboolean tdm_cb_0x02000071(TdmGlobal *global, TdmLocal *local);
29gboolean tdm_cb_0x0200007f(TdmGlobal *global, TdmLocal *local);
30gboolean tdm_cb_0x20000070(TdmGlobal *global, TdmLocal *local);
31
32gboolean tdm_cb_o_0x00000020(TdmGlobal *global, TdmLocal *local);
33
34#endif /* _IMP_3DM_CALLBACKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_chunks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_chunks.h
new file mode 100644
index 0000000..2ce0f79
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_chunks.h
@@ -0,0 +1,114 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_3DM_CHUNKS_H
23#define _IMP_3DM_CHUNKS_H
24
25#include "imp_3dm_callbacks.h"
26
27static TdmChunkInfo tdm_chunks[] = {
28 { 0x00000001, FALSE, FALSE, "comment block", NULL },
29 { 0x00007FFE, FALSE, TRUE, "end of file", NULL },
30 { 0x00007FFF, FALSE, TRUE, "end of file", NULL },
31
32 { 0x00027FF9, FALSE, FALSE, "ON class userdata header", NULL },
33 { 0x00027FFA, TRUE, FALSE, "OpenNURBS class", NULL },
34 { 0x00027FFB, FALSE, FALSE, "OpenNURBS class UUID", NULL },
35 { 0x00027FFC, FALSE, FALSE, "OpenNURBS class data", tdm_cb_0x00027ffc },
36 { 0x00027FFD, FALSE, FALSE, "OpenNURBS class userdata", NULL },
37 { 0x00027FFF, FALSE, TRUE, "OpenNURBS class end", NULL },
38
39 { 0x02000061, FALSE, FALSE, "light record attributes", NULL },
40 { 0x0200006F, FALSE, TRUE, "light record end", NULL },
41
42 { 0x02000071, FALSE, FALSE, "object record type", tdm_cb_0x02000071 },
43 { 0x02000072, FALSE, FALSE, "object record attributes", NULL },
44 { 0x0200007F, FALSE, TRUE, "object record end", tdm_cb_0x0200007f },
45
46 { 0x10000010, TRUE, FALSE, "material table", NULL },
47 { 0x10000011, TRUE, FALSE, "layer table", NULL },
48 { 0x10000012, TRUE, FALSE, "light table", NULL },
49 { 0x10000013, TRUE, FALSE, "object table", NULL },
50 { 0x10000014, TRUE, FALSE, "properties table", NULL },
51 { 0x10000015, TRUE, FALSE, "settings table", NULL },
52 { 0x10000016, TRUE, FALSE, "bitmap table", NULL },
53 { 0x10000017, TRUE, FALSE, "user table", NULL },
54 { 0x10000018, TRUE, FALSE, "group table", NULL },
55 { 0x10000019, TRUE, FALSE, "font table", NULL },
56 { 0x10000020, TRUE, FALSE, "dimension style table", NULL },
57 { 0x10000021, TRUE, FALSE, "instance definition table", NULL },
58 { 0x10000022, TRUE, FALSE, "hatch pattern table", NULL },
59 { 0x10000023, TRUE, FALSE, "linetype table", NULL },
60 { 0x10000024, TRUE, FALSE, "obsolete layer set table", NULL },
61 { 0x10000025, TRUE, FALSE, "texture mapping table", NULL },
62 { 0x10000026, TRUE, FALSE, "history record table", NULL },
63
64 { 0x20000021, FALSE, FALSE, "revision history", NULL },
65 { 0x20000022, FALSE, FALSE, "notes", NULL },
66 { 0x20000023, FALSE, FALSE, "preview image", NULL },
67 { 0x20000024, FALSE, FALSE, "application", NULL },
68 { 0x20000025, FALSE, FALSE, "compressed preview image", NULL },
69 { 0x20000026, FALSE, FALSE, "OpenNURBS version", NULL },
70
71 { 0x20000031, FALSE, FALSE, "units and tols", NULL },
72 { 0x20000032, FALSE, FALSE, "render mesh", NULL },
73 { 0x20000033, FALSE, FALSE, "analysis mesh", NULL },
74 { 0x20000034, FALSE, FALSE, "annotation", NULL },
75 { 0x20000035, FALSE, FALSE, "named cplane list", NULL },
76 { 0x20000036, FALSE, FALSE, "named view list", NULL },
77 { 0x20000037, FALSE, FALSE, "view list", NULL },
78 { 0x20000038, FALSE, FALSE, "current layer index", NULL },
79 { 0x20000039, FALSE, FALSE, "current material index", NULL },
80 { 0x2000003A, FALSE, FALSE, "current color", NULL },
81 { 0x2000003B, FALSE, FALSE, "view record", NULL },
82 { 0x2000003C, FALSE, FALSE, "current wire density", NULL },
83 { 0x2000003D, FALSE, FALSE, "render", NULL },
84 { 0x2000003E, FALSE, FALSE, "NEVER USE THIS", NULL },
85 { 0x2000003F, FALSE, FALSE, "grid defaults", NULL },
86 { 0x20000040, FALSE, FALSE, "material record", NULL },
87
88 { 0x20000050, FALSE, FALSE, "layer record", NULL },
89
90 { 0x20000060, TRUE, FALSE, "light record", NULL },
91
92 { 0x20000070, TRUE, FALSE, "object record", tdm_cb_0x20000070 },
93
94 { 0x20000073, FALSE, FALSE, "group record", NULL },
95 { 0x20000074, FALSE, FALSE, "font record", NULL },
96 { 0x20000075, FALSE, FALSE, "dimstyle record", NULL },
97 { 0x20000076, FALSE, FALSE, "instance definition record",NULL },
98 { 0x20000077, FALSE, FALSE, "hatch pattern record", NULL },
99 { 0x20000078, FALSE, FALSE, "linetype record", NULL },
100
101 { 0x20000080, FALSE, FALSE, "table id", NULL },
102 { 0x20000081, FALSE, FALSE, "user record", NULL },
103
104 { 0x20000131, FALSE, FALSE, "model url", NULL },
105 { 0x20000132, FALSE, FALSE, "current font index", NULL },
106 { 0x20000133, FALSE, FALSE, "current dimstyle index", NULL },
107 { 0x20000134, FALSE, FALSE, "attributes", NULL },
108 { 0x20000135, FALSE, FALSE, "plugin list", NULL },
109 { 0x2000013B, FALSE, FALSE, "cplane", NULL },
110
111 { 0x7FFF7FFF, FALSE, TRUE, "end of table", NULL },
112};
113
114#endif /* _IMP_3DM_CHUNKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object.c
new file mode 100644
index 0000000..0e280a8
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object.c
@@ -0,0 +1,80 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <g3d/config.h>
23
24#include <g3d/types.h>
25#include <g3d/stream.h>
26
27#include "imp_3dm_types.h"
28
29static guint32 tdm_object_read_vector_data(G3DStream *stream,
30 G3DVector *vertex_data, guint32 vsize, guint32 vcount)
31{
32 gsize nb = 0;
33 gint32 i, j;
34
35 for(i = 0; i < vcount; i ++)
36 for(j = 0; j < vsize; j ++) {
37 vertex_data[i * vsize + j] = g3d_stream_read_float_le(stream);
38 nb += 4;
39 }
40 return nb;
41}
42
43gboolean tdm_object_read_vertex_data_uncompressed(TdmGlobal *global,
44 TdmLocal *local)
45{
46 TdmObjectRecord *obj = local->object;
47
48 local->len -= tdm_object_read_vector_data(global->stream,
49 obj->object->vertex_data, 3, obj->object->vertex_count);
50 return TRUE;
51}
52
53gboolean tdm_object_read_vertex_data_compressed(TdmGlobal *global,
54 TdmLocal *local)
55{
56#if HAVE_ZLIB
57 TdmObjectRecord *obj = local->object;
58 G3DStream *zstream;
59 guint32 csize;
60
61 g3d_stream_read_int32_le(global->stream); /* tcode */
62 csize = g3d_stream_read_int32_le(global->stream) - 4; /* size */
63 local->len -= 8;
64
65 zstream = g3d_stream_zlib_inflate_stream(global->stream, csize);
66 if(zstream) {
67 tdm_object_read_vector_data(zstream,
68 obj->object->vertex_data, 3, obj->object->vertex_count);
69 local->len -= csize;
70 g3d_stream_close(zstream);
71 /* CRC */
72 g3d_stream_read_int32_le(global->stream);
73 local->len -= 4;
74 return TRUE;
75 };
76#else
77 g_warning("no zlib support, unable to read deflated data");
78#endif /* HAVE_ZLIB */
79 return FALSE;
80}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object.h
new file mode 100644
index 0000000..3304c5f
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object.h
@@ -0,0 +1,32 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_3DM_OBJECT_H
23#define _IMP_3DM_OBJECT_H
24
25#include "imp_3dm_types.h"
26
27gboolean tdm_object_read_vertex_data_uncompressed(TdmGlobal *global,
28 TdmLocal *local);
29gboolean tdm_object_read_vertex_data_compressed(TdmGlobal *global,
30 TdmLocal *local);
31
32#endif /* _IMP_3DM_OBJECT_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object_types.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object_types.h
new file mode 100644
index 0000000..d9574f3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object_types.h
@@ -0,0 +1,61 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_3DM_OBJECT_TYPES_H
23#define _IMP_3DM_OBJECT_TYPES_H
24
25#include "imp_3dm_callbacks.h"
26
27static TdmObjectTypeInfo tdm_object_types[] = {
28 { 0x00000000, "unknown object", NULL },
29 { 0x00000001, "point", NULL },
30 { 0x00000002, "point set", NULL },
31 { 0x00000004, "curve", NULL },
32 { 0x00000008, "surface", NULL },
33 { 0x00000010, "brep", NULL },
34 { 0x00000020, "mesh", tdm_cb_o_0x00000020 },
35 { 0x00000040, "layer", NULL },
36 { 0x00000080, "material", NULL },
37 { 0x00000100, "light", NULL },
38 { 0x00000200, "annotation", NULL },
39 { 0x00000400, "user data", NULL },
40 { 0x00000800, "instance definition", NULL },
41 { 0x00001000, "instance reference", NULL },
42 { 0x00002000, "text dot", NULL },
43 { 0x00004000, "grip", NULL },
44 { 0x00008000, "detail", NULL },
45 { 0x00010000, "hatch", NULL },
46 { 0x00020000, "morph control", NULL },
47 { 0x00080000, "loop", NULL },
48 { 0x00200000, "poly surface", NULL },
49 { 0x00400000, "edge filter", NULL },
50 { 0x00800000, "poly edge filter", NULL },
51 { 0x01000000, "mesh vertex", NULL },
52 { 0x02000000, "mesh edge", NULL },
53 { 0x04000000, "mesh face", NULL },
54 { 0x08000000, "cage", NULL },
55 { 0x10000000, "phantom", NULL },
56 { 0x20000000, "clip plane", NULL },
57
58 { 0xFFFFFFFF, "any object", NULL }
59};
60
61#endif /* _IMP_3DM_OBJECT_TYPES_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_types.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_types.h
new file mode 100644
index 0000000..1de1ce0
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_types.h
@@ -0,0 +1,64 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_3DM_TYPES_H
23#define _IMP_3DM_TYPES_H
24
25#include <g3d/types.h>
26
27typedef struct {
28 G3DContext *context;
29 G3DStream *stream;
30 G3DModel *model;
31} TdmGlobal;
32
33typedef struct {
34 guint32 tcode;
35 guint32 len;
36 guint32 data;
37 guint32 level;
38 guint16 major_version;
39 guint16 minor_version;
40 gpointer object;
41} TdmLocal;
42
43typedef gboolean (* TdmCallback)(TdmGlobal *, TdmLocal *);
44
45typedef struct {
46 guint32 tcode;
47 gboolean container;
48 gboolean endofcnt;
49 const gchar *description;
50 TdmCallback callback;
51} TdmChunkInfo;
52
53typedef struct {
54 guint32 code;
55 const gchar *description;
56 TdmCallback callback;
57} TdmObjectTypeInfo;
58
59typedef struct {
60 guint32 otype;
61 G3DObject *object;
62} TdmObjectRecord;
63
64#endif /* _IMP_3DM_TYPES_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile
new file mode 100644
index 0000000..f8edad7
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile
@@ -0,0 +1,512 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_3dmf/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_3dmf
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_3dmf_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_3dmf_la_OBJECTS = imp_3dmf.lo imp_3dmf_callbacks.lo
59imp_3dmf_la_OBJECTS = $(am_imp_3dmf_la_OBJECTS)
60DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_3dmf_la_SOURCES)
73DIST_SOURCES = $(imp_3dmf_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
78AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
79AR = ar
80AS = as
81AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
82AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
83AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
84AWK = gawk
85CC = gcc
86CCDEPMODE = depmode=gcc3
87CFLAGS = -g -O2
88CPP = gcc -E
89CPPFLAGS =
90CXX = g++
91CXXCPP = g++ -E
92CXXDEPMODE = depmode=gcc3
93CXXFLAGS = -g -O2
94CYGPATH_W = echo
95DBG_CFLAGS = -O2
96DEBUG = 0
97DEFS = -DHAVE_CONFIG_H
98DEPDIR = .deps
99DLLTOOL = dlltool
100ECHO = echo
101ECHO_C =
102ECHO_N = -n
103ECHO_T =
104EGREP = /bin/grep -E
105EXEEXT =
106F77 =
107FFLAGS =
108GDKPIXBUF_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
109GDKPIXBUF_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
110GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
111GLIB_GENMARSHAL = glib-genmarshal
112GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
113GLIB_MKENUMS = glib-mkenums
114GOBJECT_QUERY = gobject-query
115GREP = /bin/grep
116GTKDOC_CHECK = /usr/bin/gtkdoc-check
117GTK_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
118GTK_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
119HTML_DIR = ${datadir}/gtk-doc/html
120INSTALL = /usr/bin/install -c
121INSTALL_DATA = ${INSTALL} -m 644
122INSTALL_PROGRAM = ${INSTALL}
123INSTALL_SCRIPT = ${INSTALL}
124INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
125LDFLAGS =
126LEX = flex
127LEXLIB = -lfl
128LEX_OUTPUT_ROOT = lex.yy
129LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
130LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
131LIBOBJS =
132LIBS = -lm
133LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
134LIBXML2_CFLAGS = -I/usr/include/libxml2
135LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
136LN_S = ln -s
137LTLIBOBJS =
138LTVERSION = 0:8:0
139MAGIC_LIBS = -lmagic
140MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
141MATH_LIBS = -lm
142MKDIR_P = /bin/mkdir -p
143OBJDUMP = objdump
144OBJEXT = o
145PACKAGE = libg3d
146PACKAGE_BUGREPORT =
147PACKAGE_NAME =
148PACKAGE_STRING =
149PACKAGE_TARNAME =
150PACKAGE_VERSION =
151PATH_SEPARATOR = :
152PKG_CONFIG = /usr/bin/pkg-config
153PLUGINS_LDFLAGS = -avoid-version -export-dynamic
154RANLIB = ranlib
155SET_MAKE =
156SHELL = /bin/bash
157STRIP = strip
158VERSION = 0.0.8
159XML2_CONFIG = /usr/bin/xml2-config
160XML_CPPFLAGS = -I/usr/include/libxml2
161XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
162Z_CFLAGS =
163Z_LIBS = -lz
164abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf
165abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf
166abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
167abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168ac_ct_CC = gcc
169ac_ct_CXX = g++
170ac_ct_F77 =
171am__include = include
172am__leading_dot = .
173am__quote =
174am__tar = ${AMTAR} chof - "$$tardir"
175am__untar = ${AMTAR} xf -
176bindir = ${exec_prefix}/bin
177build = x86_64-unknown-linux-gnu
178build_alias =
179build_cpu = x86_64
180build_os = linux-gnu
181build_vendor = unknown
182builddir = .
183datadir = ${datarootdir}
184datarootdir = ${prefix}/share
185docdir = ${datarootdir}/doc/${PACKAGE}
186dvidir = ${docdir}
187exec_prefix = ${prefix}
188host = x86_64-unknown-linux-gnu
189host_alias =
190host_cpu = x86_64
191host_os = linux-gnu
192host_vendor = unknown
193htmldir = ${docdir}
194includedir = ${prefix}/include
195infodir = ${datarootdir}/info
196install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
197libdir = ${exec_prefix}/lib
198libexecdir = ${exec_prefix}/libexec
199localedir = ${datarootdir}/locale
200localstatedir = ${prefix}/var
201mandir = ${datarootdir}/man
202mkdir_p = /bin/mkdir -p
203oldincludedir = /usr/include
204pdfdir = ${docdir}
205prefix = /usr/local
206program_transform_name = s,x,x,
207psdir = ${docdir}
208sbindir = ${exec_prefix}/sbin
209sharedstatedir = ${prefix}/com
210srcdir = .
211sysconfdir = ${prefix}/etc
212target_alias =
213top_builddir = ../../..
214top_srcdir = ../../..
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_3dmf.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 -O2 -DDEBUG=0 \
221 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 -avoid-version -export-dynamic
227
228imp_3dmf_la_SOURCES = imp_3dmf.c imp_3dmf_chunks.h \
229 imp_3dmf_callbacks.c imp_3dmf_callbacks.h
230
231imp_3dmf_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
232all: all-am
233
234.SUFFIXES:
235.SUFFIXES: .c .lo .o .obj
236$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
237 @for dep in $?; do \
238 case '$(am__configure_deps)' in \
239 *$$dep*) \
240 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
241 && exit 0; \
242 exit 1;; \
243 esac; \
244 done; \
245 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_3dmf/Makefile'; \
246 cd $(top_srcdir) && \
247 $(AUTOMAKE) --gnu plugins/import/imp_3dmf/Makefile
248.PRECIOUS: Makefile
249Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
250 @case '$?' in \
251 *config.status*) \
252 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
253 *) \
254 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
255 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
256 esac;
257
258$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
259 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
260
261$(top_srcdir)/configure: $(am__configure_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263$(ACLOCAL_M4): $(am__aclocal_m4_deps)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
266 @$(NORMAL_INSTALL)
267 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
268 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
269 if test -f $$p; then \
270 f=$(am__strip_dir) \
271 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
272 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
273 else :; fi; \
274 done
275
276uninstall-pluginimpLTLIBRARIES:
277 @$(NORMAL_UNINSTALL)
278 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
279 p=$(am__strip_dir) \
280 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
281 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
282 done
283
284clean-pluginimpLTLIBRARIES:
285 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
288 test "$$dir" != "$$p" || dir=.; \
289 echo "rm -f \"$${dir}/so_locations\""; \
290 rm -f "$${dir}/so_locations"; \
291 done
292imp_3dmf.la: $(imp_3dmf_la_OBJECTS) $(imp_3dmf_la_DEPENDENCIES)
293 $(LINK) -rpath $(pluginimpdir) $(imp_3dmf_la_OBJECTS) $(imp_3dmf_la_LIBADD) $(LIBS)
294
295mostlyclean-compile:
296 -rm -f *.$(OBJEXT)
297
298distclean-compile:
299 -rm -f *.tab.c
300
301include ./$(DEPDIR)/imp_3dmf.Plo
302include ./$(DEPDIR)/imp_3dmf_callbacks.Plo
303
304.c.o:
305 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
306 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
307# source='$<' object='$@' libtool=no \
308# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
309# $(COMPILE) -c $<
310
311.c.obj:
312 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
313 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
314# source='$<' object='$@' libtool=no \
315# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
316# $(COMPILE) -c `$(CYGPATH_W) '$<'`
317
318.c.lo:
319 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
320 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
321# source='$<' object='$@' libtool=yes \
322# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
323# $(LTCOMPILE) -c -o $@ $<
324
325mostlyclean-libtool:
326 -rm -f *.lo
327
328clean-libtool:
329 -rm -rf .libs _libs
330
331ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
332 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
333 unique=`for i in $$list; do \
334 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
335 done | \
336 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
337 END { if (nonempty) { for (i in files) print i; }; }'`; \
338 mkid -fID $$unique
339tags: TAGS
340
341TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
342 $(TAGS_FILES) $(LISP)
343 tags=; \
344 here=`pwd`; \
345 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
346 unique=`for i in $$list; do \
347 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
348 done | \
349 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
350 END { if (nonempty) { for (i in files) print i; }; }'`; \
351 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
352 test -n "$$unique" || unique=$$empty_fix; \
353 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
354 $$tags $$unique; \
355 fi
356ctags: CTAGS
357CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
358 $(TAGS_FILES) $(LISP)
359 tags=; \
360 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
361 unique=`for i in $$list; do \
362 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
363 done | \
364 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
365 END { if (nonempty) { for (i in files) print i; }; }'`; \
366 test -z "$(CTAGS_ARGS)$$tags$$unique" \
367 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
368 $$tags $$unique
369
370GTAGS:
371 here=`$(am__cd) $(top_builddir) && pwd` \
372 && cd $(top_srcdir) \
373 && gtags -i $(GTAGS_ARGS) $$here
374
375distclean-tags:
376 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
377
378distdir: $(DISTFILES)
379 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
380 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
381 list='$(DISTFILES)'; \
382 dist_files=`for file in $$list; do echo $$file; done | \
383 sed -e "s|^$$srcdirstrip/||;t" \
384 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
385 case $$dist_files in \
386 */*) $(MKDIR_P) `echo "$$dist_files" | \
387 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
388 sort -u` ;; \
389 esac; \
390 for file in $$dist_files; do \
391 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
392 if test -d $$d/$$file; then \
393 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
394 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
395 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
396 fi; \
397 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
398 else \
399 test -f $(distdir)/$$file \
400 || cp -p $$d/$$file $(distdir)/$$file \
401 || exit 1; \
402 fi; \
403 done
404check-am: all-am
405check: check-am
406all-am: Makefile $(LTLIBRARIES)
407installdirs:
408 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
409 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
410 done
411install: install-am
412install-exec: install-exec-am
413install-data: install-data-am
414uninstall: uninstall-am
415
416install-am: all-am
417 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
418
419installcheck: installcheck-am
420install-strip:
421 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
422 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
423 `test -z '$(STRIP)' || \
424 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
425mostlyclean-generic:
426
427clean-generic:
428
429distclean-generic:
430 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
431
432maintainer-clean-generic:
433 @echo "This command is intended for maintainers to use"
434 @echo "it deletes files that may require special tools to rebuild."
435clean: clean-am
436
437clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
438 mostlyclean-am
439
440distclean: distclean-am
441 -rm -rf ./$(DEPDIR)
442 -rm -f Makefile
443distclean-am: clean-am distclean-compile distclean-generic \
444 distclean-tags
445
446dvi: dvi-am
447
448dvi-am:
449
450html: html-am
451
452info: info-am
453
454info-am:
455
456install-data-am: install-pluginimpLTLIBRARIES
457
458install-dvi: install-dvi-am
459
460install-exec-am:
461
462install-html: install-html-am
463
464install-info: install-info-am
465
466install-man:
467
468install-pdf: install-pdf-am
469
470install-ps: install-ps-am
471
472installcheck-am:
473
474maintainer-clean: maintainer-clean-am
475 -rm -rf ./$(DEPDIR)
476 -rm -f Makefile
477maintainer-clean-am: distclean-am maintainer-clean-generic
478
479mostlyclean: mostlyclean-am
480
481mostlyclean-am: mostlyclean-compile mostlyclean-generic \
482 mostlyclean-libtool
483
484pdf: pdf-am
485
486pdf-am:
487
488ps: ps-am
489
490ps-am:
491
492uninstall-am: uninstall-pluginimpLTLIBRARIES
493
494.MAKE: install-am install-strip
495
496.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
497 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
498 distclean-compile distclean-generic distclean-libtool \
499 distclean-tags distdir dvi dvi-am html html-am info info-am \
500 install install-am install-data install-data-am install-dvi \
501 install-dvi-am install-exec install-exec-am install-html \
502 install-html-am install-info install-info-am install-man \
503 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
504 install-ps install-ps-am install-strip installcheck \
505 installcheck-am installdirs maintainer-clean \
506 maintainer-clean-generic mostlyclean mostlyclean-compile \
507 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
508 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
509
510# Tell versions [3.59,3.63) of GNU make to not export all variables.
511# Otherwise a system limit (for SysV at least) may be exceeded.
512.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile.am
new file mode 100644
index 0000000..a21a13a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile.am
@@ -0,0 +1,21 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_3dmf.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_3dmf_la_SOURCES = imp_3dmf.c imp_3dmf_chunks.h \
20 imp_3dmf_callbacks.c imp_3dmf_callbacks.h
21imp_3dmf_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile.in
new file mode 100644
index 0000000..ac192df
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile.in
@@ -0,0 +1,512 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_3dmf
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_3dmf_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_3dmf_la_OBJECTS = imp_3dmf.lo imp_3dmf_callbacks.lo
59imp_3dmf_la_OBJECTS = $(am_imp_3dmf_la_OBJECTS)
60DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_3dmf_la_SOURCES)
73DIST_SOURCES = $(imp_3dmf_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = @ACLOCAL@
78AMTAR = @AMTAR@
79AR = @AR@
80AS = @AS@
81AUTOCONF = @AUTOCONF@
82AUTOHEADER = @AUTOHEADER@
83AUTOMAKE = @AUTOMAKE@
84AWK = @AWK@
85CC = @CC@
86CCDEPMODE = @CCDEPMODE@
87CFLAGS = @CFLAGS@
88CPP = @CPP@
89CPPFLAGS = @CPPFLAGS@
90CXX = @CXX@
91CXXCPP = @CXXCPP@
92CXXDEPMODE = @CXXDEPMODE@
93CXXFLAGS = @CXXFLAGS@
94CYGPATH_W = @CYGPATH_W@
95DBG_CFLAGS = @DBG_CFLAGS@
96DEBUG = @DEBUG@
97DEFS = @DEFS@
98DEPDIR = @DEPDIR@
99DLLTOOL = @DLLTOOL@
100ECHO = @ECHO@
101ECHO_C = @ECHO_C@
102ECHO_N = @ECHO_N@
103ECHO_T = @ECHO_T@
104EGREP = @EGREP@
105EXEEXT = @EXEEXT@
106F77 = @F77@
107FFLAGS = @FFLAGS@
108GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
109GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
110GLIB_CFLAGS = @GLIB_CFLAGS@
111GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
112GLIB_LIBS = @GLIB_LIBS@
113GLIB_MKENUMS = @GLIB_MKENUMS@
114GOBJECT_QUERY = @GOBJECT_QUERY@
115GREP = @GREP@
116GTKDOC_CHECK = @GTKDOC_CHECK@
117GTK_CFLAGS = @GTK_CFLAGS@
118GTK_LIBS = @GTK_LIBS@
119HTML_DIR = @HTML_DIR@
120INSTALL = @INSTALL@
121INSTALL_DATA = @INSTALL_DATA@
122INSTALL_PROGRAM = @INSTALL_PROGRAM@
123INSTALL_SCRIPT = @INSTALL_SCRIPT@
124INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125LDFLAGS = @LDFLAGS@
126LEX = @LEX@
127LEXLIB = @LEXLIB@
128LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
129LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
130LIBGSF_LIBS = @LIBGSF_LIBS@
131LIBOBJS = @LIBOBJS@
132LIBS = @LIBS@
133LIBTOOL = @LIBTOOL@ --quiet
134LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
135LIBXML2_LIBS = @LIBXML2_LIBS@
136LN_S = @LN_S@
137LTLIBOBJS = @LTLIBOBJS@
138LTVERSION = @LTVERSION@
139MAGIC_LIBS = @MAGIC_LIBS@
140MAKEINFO = @MAKEINFO@
141MATH_LIBS = @MATH_LIBS@
142MKDIR_P = @MKDIR_P@
143OBJDUMP = @OBJDUMP@
144OBJEXT = @OBJEXT@
145PACKAGE = @PACKAGE@
146PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147PACKAGE_NAME = @PACKAGE_NAME@
148PACKAGE_STRING = @PACKAGE_STRING@
149PACKAGE_TARNAME = @PACKAGE_TARNAME@
150PACKAGE_VERSION = @PACKAGE_VERSION@
151PATH_SEPARATOR = @PATH_SEPARATOR@
152PKG_CONFIG = @PKG_CONFIG@
153PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
154RANLIB = @RANLIB@
155SET_MAKE = @SET_MAKE@
156SHELL = @SHELL@
157STRIP = @STRIP@
158VERSION = @VERSION@
159XML2_CONFIG = @XML2_CONFIG@
160XML_CPPFLAGS = @XML_CPPFLAGS@
161XML_LIBS = @XML_LIBS@
162Z_CFLAGS = @Z_CFLAGS@
163Z_LIBS = @Z_LIBS@
164abs_builddir = @abs_builddir@
165abs_srcdir = @abs_srcdir@
166abs_top_builddir = @abs_top_builddir@
167abs_top_srcdir = @abs_top_srcdir@
168ac_ct_CC = @ac_ct_CC@
169ac_ct_CXX = @ac_ct_CXX@
170ac_ct_F77 = @ac_ct_F77@
171am__include = @am__include@
172am__leading_dot = @am__leading_dot@
173am__quote = @am__quote@
174am__tar = @am__tar@
175am__untar = @am__untar@
176bindir = @bindir@
177build = @build@
178build_alias = @build_alias@
179build_cpu = @build_cpu@
180build_os = @build_os@
181build_vendor = @build_vendor@
182builddir = @builddir@
183datadir = @datadir@
184datarootdir = @datarootdir@
185docdir = @docdir@
186dvidir = @dvidir@
187exec_prefix = @exec_prefix@
188host = @host@
189host_alias = @host_alias@
190host_cpu = @host_cpu@
191host_os = @host_os@
192host_vendor = @host_vendor@
193htmldir = @htmldir@
194includedir = @includedir@
195infodir = @infodir@
196install_sh = @install_sh@
197libdir = @libdir@
198libexecdir = @libexecdir@
199localedir = @localedir@
200localstatedir = @localstatedir@
201mandir = @mandir@
202mkdir_p = @mkdir_p@
203oldincludedir = @oldincludedir@
204pdfdir = @pdfdir@
205prefix = @prefix@
206program_transform_name = @program_transform_name@
207psdir = @psdir@
208sbindir = @sbindir@
209sharedstatedir = @sharedstatedir@
210srcdir = @srcdir@
211sysconfdir = @sysconfdir@
212target_alias = @target_alias@
213top_builddir = @top_builddir@
214top_srcdir = @top_srcdir@
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_3dmf.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
221 @GLIB_CFLAGS@
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 @PLUGINS_LDFLAGS@
227
228imp_3dmf_la_SOURCES = imp_3dmf.c imp_3dmf_chunks.h \
229 imp_3dmf_callbacks.c imp_3dmf_callbacks.h
230
231imp_3dmf_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
232all: all-am
233
234.SUFFIXES:
235.SUFFIXES: .c .lo .o .obj
236$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
237 @for dep in $?; do \
238 case '$(am__configure_deps)' in \
239 *$$dep*) \
240 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
241 && exit 0; \
242 exit 1;; \
243 esac; \
244 done; \
245 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_3dmf/Makefile'; \
246 cd $(top_srcdir) && \
247 $(AUTOMAKE) --gnu plugins/import/imp_3dmf/Makefile
248.PRECIOUS: Makefile
249Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
250 @case '$?' in \
251 *config.status*) \
252 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
253 *) \
254 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
255 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
256 esac;
257
258$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
259 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
260
261$(top_srcdir)/configure: $(am__configure_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263$(ACLOCAL_M4): $(am__aclocal_m4_deps)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
266 @$(NORMAL_INSTALL)
267 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
268 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
269 if test -f $$p; then \
270 f=$(am__strip_dir) \
271 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
272 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
273 else :; fi; \
274 done
275
276uninstall-pluginimpLTLIBRARIES:
277 @$(NORMAL_UNINSTALL)
278 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
279 p=$(am__strip_dir) \
280 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
281 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
282 done
283
284clean-pluginimpLTLIBRARIES:
285 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
288 test "$$dir" != "$$p" || dir=.; \
289 echo "rm -f \"$${dir}/so_locations\""; \
290 rm -f "$${dir}/so_locations"; \
291 done
292imp_3dmf.la: $(imp_3dmf_la_OBJECTS) $(imp_3dmf_la_DEPENDENCIES)
293 $(LINK) -rpath $(pluginimpdir) $(imp_3dmf_la_OBJECTS) $(imp_3dmf_la_LIBADD) $(LIBS)
294
295mostlyclean-compile:
296 -rm -f *.$(OBJEXT)
297
298distclean-compile:
299 -rm -f *.tab.c
300
301@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_3dmf.Plo@am__quote@
302@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_3dmf_callbacks.Plo@am__quote@
303
304.c.o:
305@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
306@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
307@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
308@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
309@am__fastdepCC_FALSE@ $(COMPILE) -c $<
310
311.c.obj:
312@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
313@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
314@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
315@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
316@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
317
318.c.lo:
319@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
320@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
321@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
322@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
323@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
324
325mostlyclean-libtool:
326 -rm -f *.lo
327
328clean-libtool:
329 -rm -rf .libs _libs
330
331ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
332 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
333 unique=`for i in $$list; do \
334 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
335 done | \
336 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
337 END { if (nonempty) { for (i in files) print i; }; }'`; \
338 mkid -fID $$unique
339tags: TAGS
340
341TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
342 $(TAGS_FILES) $(LISP)
343 tags=; \
344 here=`pwd`; \
345 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
346 unique=`for i in $$list; do \
347 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
348 done | \
349 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
350 END { if (nonempty) { for (i in files) print i; }; }'`; \
351 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
352 test -n "$$unique" || unique=$$empty_fix; \
353 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
354 $$tags $$unique; \
355 fi
356ctags: CTAGS
357CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
358 $(TAGS_FILES) $(LISP)
359 tags=; \
360 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
361 unique=`for i in $$list; do \
362 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
363 done | \
364 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
365 END { if (nonempty) { for (i in files) print i; }; }'`; \
366 test -z "$(CTAGS_ARGS)$$tags$$unique" \
367 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
368 $$tags $$unique
369
370GTAGS:
371 here=`$(am__cd) $(top_builddir) && pwd` \
372 && cd $(top_srcdir) \
373 && gtags -i $(GTAGS_ARGS) $$here
374
375distclean-tags:
376 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
377
378distdir: $(DISTFILES)
379 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
380 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
381 list='$(DISTFILES)'; \
382 dist_files=`for file in $$list; do echo $$file; done | \
383 sed -e "s|^$$srcdirstrip/||;t" \
384 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
385 case $$dist_files in \
386 */*) $(MKDIR_P) `echo "$$dist_files" | \
387 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
388 sort -u` ;; \
389 esac; \
390 for file in $$dist_files; do \
391 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
392 if test -d $$d/$$file; then \
393 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
394 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
395 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
396 fi; \
397 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
398 else \
399 test -f $(distdir)/$$file \
400 || cp -p $$d/$$file $(distdir)/$$file \
401 || exit 1; \
402 fi; \
403 done
404check-am: all-am
405check: check-am
406all-am: Makefile $(LTLIBRARIES)
407installdirs:
408 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
409 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
410 done
411install: install-am
412install-exec: install-exec-am
413install-data: install-data-am
414uninstall: uninstall-am
415
416install-am: all-am
417 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
418
419installcheck: installcheck-am
420install-strip:
421 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
422 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
423 `test -z '$(STRIP)' || \
424 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
425mostlyclean-generic:
426
427clean-generic:
428
429distclean-generic:
430 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
431
432maintainer-clean-generic:
433 @echo "This command is intended for maintainers to use"
434 @echo "it deletes files that may require special tools to rebuild."
435clean: clean-am
436
437clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
438 mostlyclean-am
439
440distclean: distclean-am
441 -rm -rf ./$(DEPDIR)
442 -rm -f Makefile
443distclean-am: clean-am distclean-compile distclean-generic \
444 distclean-tags
445
446dvi: dvi-am
447
448dvi-am:
449
450html: html-am
451
452info: info-am
453
454info-am:
455
456install-data-am: install-pluginimpLTLIBRARIES
457
458install-dvi: install-dvi-am
459
460install-exec-am:
461
462install-html: install-html-am
463
464install-info: install-info-am
465
466install-man:
467
468install-pdf: install-pdf-am
469
470install-ps: install-ps-am
471
472installcheck-am:
473
474maintainer-clean: maintainer-clean-am
475 -rm -rf ./$(DEPDIR)
476 -rm -f Makefile
477maintainer-clean-am: distclean-am maintainer-clean-generic
478
479mostlyclean: mostlyclean-am
480
481mostlyclean-am: mostlyclean-compile mostlyclean-generic \
482 mostlyclean-libtool
483
484pdf: pdf-am
485
486pdf-am:
487
488ps: ps-am
489
490ps-am:
491
492uninstall-am: uninstall-pluginimpLTLIBRARIES
493
494.MAKE: install-am install-strip
495
496.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
497 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
498 distclean-compile distclean-generic distclean-libtool \
499 distclean-tags distdir dvi dvi-am html html-am info info-am \
500 install install-am install-data install-data-am install-dvi \
501 install-dvi-am install-exec install-exec-am install-html \
502 install-html-am install-info install-info-am install-man \
503 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
504 install-ps install-ps-am install-strip installcheck \
505 installcheck-am installdirs maintainer-clean \
506 maintainer-clean-generic mostlyclean mostlyclean-compile \
507 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
508 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
509
510# Tell versions [3.59,3.63) of GNU make to not export all variables.
511# Otherwise a system limit (for SysV at least) may be exceeded.
512.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf.c
new file mode 100644
index 0000000..82a46d3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf.c
@@ -0,0 +1,646 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24
25#include <g3d/types.h>
26#include <g3d/context.h>
27#include <g3d/stream.h>
28#include <g3d/object.h>
29#include <g3d/vector.h>
30#include <g3d/matrix.h>
31#include <g3d/material.h>
32#include <g3d/iff.h>
33#include <g3d/debug.h>
34
35#include "imp_3dmf_chunks.h"
36
37#define X3DMF_CHUNK_CHAR(id, shift) \
38 ((((id) >> (shift)) & 0xFF) == 0) ? \
39 ' ' : ((id) >> (shift)) & 0xFF
40
41typedef struct {
42 guint32 id;
43 guint32 offset;
44 guint32 type;
45}
46X3dmfTocEntry;
47
48typedef struct {
49 guint32 num_entries;
50 X3dmfTocEntry *entries;
51}
52X3dmfToc;
53
54
55static gboolean x3dmf_read_container(G3DStream *stream, guint32 length,
56 G3DModel *model, G3DObject *object, guint32 level, X3dmfToc *toc,
57 G3DContext *context);
58static X3dmfToc *x3dmf_read_toc(G3DStream *stream, X3dmfToc *prev_toc,
59 G3DContext *context);
60
61EAPI
62gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
63 G3DModel *model, gpointer user_data)
64{
65 guint32 id, flags, tocloc, pos;
66 gsize len;
67 guint16 ver_min, ver_maj;
68 gchar txthead[10];
69 X3dmfToc *toc = NULL;
70
71 g3d_iff_read_chunk(stream, &id, &len, 0);
72 if((id != G3D_IFF_MKID('3', 'D', 'M', 'F')) || (len != 16)) {
73 g3d_stream_seek(stream, 0, G_SEEK_SET);
74 g3d_stream_read(stream, txthead, 10);
75 if(strncmp(txthead, "3DMetafile", 10) == 0) {
76 g_warning("file %s is an ASCII 3D Metafile (unhandled)\n",
77 stream->uri);
78 } else {
79 g_warning("file %s is not a 3D Metafile\n", stream->uri);
80 }
81 return FALSE;
82 }
83
84 ver_maj = g3d_stream_read_int16_be(stream);
85 ver_min = g3d_stream_read_int16_be(stream);
86
87 flags = g3d_stream_read_int32_be(stream);
88
89 g3d_stream_skip(stream, 4); /* FIXME: 64bit file offsets */
90 tocloc = g3d_stream_read_int32_be(stream);
91
92 /* read TOC if available */
93 if(tocloc > 0) {
94 pos = g3d_stream_tell(stream);
95 g3d_stream_seek(stream, tocloc, G_SEEK_SET);
96 toc = x3dmf_read_toc(stream, NULL, context);
97 g3d_stream_seek(stream, pos, G_SEEK_SET);
98 }
99
100#if DEBUG > 0
101 g_debug("3DMF: version %d.%d (0x%08x) TOC @ 0x%08x",
102 ver_maj, ver_min, flags, tocloc);
103#endif
104
105 x3dmf_read_container(stream, (guint32) -1, model, NULL, 0, toc, context);
106
107 return TRUE;
108}
109
110EAPI
111gchar *plugin_description(void)
112{
113 return g_strdup("3D Metafiles.");
114}
115
116EAPI
117gchar **plugin_extensions(void)
118{
119 return g_strsplit("b3d:3mf:3dmf", ":", 0);
120}
121
122/******************************************************************************
123 * 3DMF specific
124 */
125
126static X3dmfChunkDesc *x3dmf_get_chunk_info(guint32 id)
127{
128 gint32 i;
129
130 for(i = 0; x3dmf_chunks[i].id != 0; i ++)
131 if(x3dmf_chunks[i].id == id)
132 return &(x3dmf_chunks[i]);
133 return NULL;
134}
135
136static X3dmfToc *x3dmf_read_toc(G3DStream *stream, X3dmfToc *prev_toc,
137 G3DContext *context)
138{
139 X3dmfToc *toc;
140 guint32 off_next_toc, typeseed, refseed, entrytype, entrysize, nentries;
141 guint32 noff, i;
142
143 if(prev_toc)
144 toc = prev_toc;
145 else
146 toc = g_new0(X3dmfToc, 1);
147
148 /* skip tag and size (FIXME) */
149 g3d_stream_skip(stream, 8);
150
151 g3d_stream_skip(stream, 4); /* FIXME: 64bit file offsets */
152 off_next_toc = g3d_stream_read_int32_be(stream);
153 typeseed = g3d_stream_read_int32_be(stream);
154 refseed = g3d_stream_read_int32_be(stream);
155 entrytype = g3d_stream_read_int32_be(stream);
156 entrysize = g3d_stream_read_int32_be(stream);
157 nentries = g3d_stream_read_int32_be(stream);
158
159 /* resize entry array */
160 noff = toc->num_entries;
161 toc->num_entries += nentries;
162 toc->entries = (X3dmfTocEntry *)g_realloc(toc->entries,
163 toc->num_entries * sizeof(X3dmfTocEntry));
164
165 /* read TOC entries */
166 for(i = 0; i < nentries; i ++) {
167 toc->entries[noff + i].id = g3d_stream_read_int32_be(stream);
168 g3d_stream_skip(stream, 4); /* FIXME: 64bit file offsets */
169 toc->entries[noff + i].offset = g3d_stream_read_int32_be(stream);
170
171 if((entrytype == 1) && (entrysize == 16)) {
172 toc->entries[noff + i].type = g3d_stream_read_int32_be(stream);
173 }
174#if DEBUG > 0
175 g_debug("3DMF: TOC: %06d @ 0x%08x",
176 toc->entries[noff + i].id,
177 toc->entries[noff + i].offset);
178#endif
179 }
180
181 /* read next toc */
182 if(off_next_toc > 0) {
183 g3d_stream_seek(stream, off_next_toc, SEEK_SET);
184 toc = x3dmf_read_toc(stream, toc, context);
185 }
186
187 return toc;
188}
189
190static guint32 x3dmf_read_mesh(G3DStream *stream, G3DObject *object,
191 G3DContext *context)
192{
193 guint32 i, j, nconts, nfaces, nbytes = 0, ncverts, offv;
194 G3DFace *face;
195
196 g_return_val_if_fail(object != NULL, FALSE);
197
198 offv = object->vertex_count;
199 object->vertex_count += g3d_stream_read_int32_be(stream);
200 object->vertex_data = g_realloc(object->vertex_data,
201 object->vertex_count * 3 * sizeof(G3DFloat));
202 nbytes += 4;
203
204 for(i = offv; i < object->vertex_count; i ++) {
205 for(j = 0; j < 3; j ++)
206 object->vertex_data[i * 3 + j] = g3d_stream_read_float_be(stream);
207 nbytes += 12;
208
209 g3d_context_update_interface(context);
210 }
211
212 nfaces = g3d_stream_read_int32_be(stream);
213 nconts = g3d_stream_read_int32_be(stream);
214 nbytes += 8;
215
216#if DEBUG > 0
217 g_debug("|%u verts, %u faces, %u conts", object->vertex_count,
218 nfaces, nconts);
219#endif
220
221 for(i = 0; i < nfaces; i ++) {
222 face = g_new0(G3DFace, 1);
223
224 face->vertex_count = g3d_stream_read_int32_be(stream);
225 nbytes += 4;
226 face->vertex_indices = g_new0(guint32, face->vertex_count);
227
228 for(j = 0; j < face->vertex_count; j ++) {
229 face->vertex_indices[j] = offv + g3d_stream_read_int32_be(stream);
230 nbytes += 4;
231 if(face->vertex_indices[j] >= object->vertex_count) {
232 g_warning("face index wrong: %u >= %u",
233 face->vertex_indices[j], object->vertex_count);
234 face->vertex_indices[j] = 0;
235 }
236 }
237
238#if DEBUG > 3
239 g_debug("|face %u: %u %u %u", i, face->vertex_indices[0],
240 face->vertex_indices[1], face->vertex_indices[2]);
241#endif
242
243 face->material = g_slist_nth_data(object->materials, 0);
244 object->faces = g_slist_prepend(object->faces, face);
245
246 g3d_context_update_interface(context);
247 }
248
249 /* contours */
250 for(i = 0; i < nconts; i ++) {
251 ncverts = g3d_stream_read_int32_be(stream);
252 nbytes += 4;
253 for(j = 0; j < ncverts; j ++) {
254 g3d_stream_read_int32_be(stream);
255 nbytes += 4;
256 }
257 }
258
259 return nbytes;
260}
261
262static G3DObject *x3dmf_object_new(G3DStream *stream, G3DModel *model)
263{
264 G3DObject *object;
265 G3DMaterial *material;
266
267 object = g_new0(G3DObject, 1);
268 material = g3d_material_new();
269
270 object->name = g_strdup_printf("container @ 0x%08x",
271 (guint32)g3d_stream_tell(stream) - 8);
272 model->objects = g_slist_append(model->objects, object);
273 object->materials = g_slist_append(object->materials, material);
274
275 return object;
276}
277
278static guint32 x3dmf_read_packed(G3DStream *stream, guint32 maxx,
279 guint32 *nread)
280{
281 if(maxx > 0xFFFE) {
282 if(nread)
283 (*nread) += 4;
284 return g3d_stream_read_int32_be(stream);
285 } else if(maxx > 0xFE) {
286 if(nread)
287 (*nread) += 2;
288 return g3d_stream_read_int16_be(stream);
289 } else {
290 if(nread)
291 (*nread) += 1;
292 return g3d_stream_read_int8(stream);
293 }
294}
295
296/*
297 [tmsh] - TriMesh
298 http://developer.apple.com/documentation/QuickTime/QD3D/qd3dmetafile.33.htm
299
300 Uns32 numTriangles
301 Uns32 numTriangleAttributeTypes
302 Uns32 numEdges
303 Uns32 numEdgeAttributeTypes
304 Uns32 numPoints
305 Uns32 numVertexAttributeTypes
306 TriMeshTriangleData triangles[numTriangles]
307 TriMeshEdgeData edges[numEdges]
308 Point3D points[numPoints]
309 BoundingBox bBox
310*/
311
312static guint32 x3dmf_read_tmsh(G3DStream *stream, G3DObject *object,
313 G3DContext *context)
314{
315 G3DFace *face;
316 guint32 nread = 0, nfaces, nverts, nedges;
317 gint32 i, j;
318
319 nfaces = g3d_stream_read_int32_be(stream); /* numTriangles */
320 nread += 4;
321
322 g3d_stream_read_int32_be(stream); /* numTriangleAttributeTypes */
323 nread += 4;
324
325 nedges = g3d_stream_read_int32_be(stream); /* numEdges */
326 nread += 4;
327
328 g3d_stream_read_int32_be(stream); /* numEdgeAttributeTypes */
329 nread += 4;
330
331 nverts = g3d_stream_read_int32_be(stream); /* numPoints */
332 nread += 4;
333
334 g3d_stream_read_int32_be(stream); /* numVertexAttributeTypes */
335 nread += 4;
336
337#if DEBUG > 3
338 g_debug("3DMF: [tmsh] %d faces, %d edges, %d vertices",
339 nfaces, nedges, nverts);
340#endif
341
342 /* triangles */
343 for(i = 0; i < nfaces; i ++) {
344 face = g_new0(G3DFace, 1);
345
346 face->vertex_count = 3;
347 face->vertex_indices = g_new0(guint32, 3);
348 for(j = 0; j < 3; j ++) {
349 face->vertex_indices[j] =
350 x3dmf_read_packed(stream, nfaces, &nread);
351 if(face->vertex_indices[j] >= nverts) {
352 g_warning("face index error: %u >= %u",
353 face->vertex_indices[j], nverts);
354 face->vertex_indices[j] = 0;
355 }
356 }
357
358#if DEBUG > 3
359 g_debug("face %u (packed): %u %u %u", i, face->vertex_indices[0],
360 face->vertex_indices[1], face->vertex_indices[2]);
361#endif
362
363 face->material = g_slist_nth_data(object->materials, 0);
364 object->faces = g_slist_prepend(object->faces, face);
365 }
366
367 /* edges */
368 for(i = 0; i < nedges; i ++) {
369 /* pointIndices */
370 x3dmf_read_packed(stream, nedges, &nread);
371 x3dmf_read_packed(stream, nedges, &nread);
372 /* triangleIndices */
373 x3dmf_read_packed(stream, nedges, &nread);
374 x3dmf_read_packed(stream, nedges, &nread);
375 }
376
377 /* points */
378 object->vertex_count = nverts;
379 object->vertex_data = g_new0(G3DFloat, 3 * nverts);
380 for(i = 0; i < nverts; i ++) {
381 object->vertex_data[i * 3 + 0] = g3d_stream_read_float_be(stream);
382 object->vertex_data[i * 3 + 1] = g3d_stream_read_float_be(stream);
383 object->vertex_data[i * 3 + 2] = g3d_stream_read_float_be(stream);
384 nread += 12;
385 }
386
387 /* bBox */
388 /* Point3D min */
389 g3d_stream_read_float_be(stream);
390 g3d_stream_read_float_be(stream);
391 g3d_stream_read_float_be(stream);
392 nread += 12;
393 /* Point3D max */
394 g3d_stream_read_float_be(stream);
395 g3d_stream_read_float_be(stream);
396 g3d_stream_read_float_be(stream);
397 nread += 12;
398 /* boolean isEmpty */
399 g3d_stream_read_int32_be(stream);
400 nread += 4;
401
402 return nread;
403}
404
405static gboolean x3dmf_read_rfrn(G3DStream *stream, G3DModel *model,
406 X3dmfToc *toc, G3DContext *context)
407{
408 G3DObject *object;
409 guint32 id, i, refid, savedoffset;
410 gsize len;
411 X3dmfTocEntry *tocentry = NULL;
412
413 refid = g3d_stream_read_int32_be(stream);
414 if(refid == 0) {
415 /* FIXME */
416 return FALSE;
417 }
418
419 if(toc == NULL) {
420 return FALSE;
421 }
422
423 /* find reference object */
424 for(i = 0; i < toc->num_entries; i ++)
425 if(toc->entries[i].id == refid)
426 tocentry = &(toc->entries[i]);
427
428 g_return_val_if_fail(tocentry != NULL, FALSE);
429
430 savedoffset = g3d_stream_tell(stream);
431 g3d_stream_seek(stream, tocentry->offset, G_SEEK_SET);
432
433 object = x3dmf_object_new(stream, model);
434
435 g3d_iff_read_chunk(stream, &id, &len, 0);
436 switch(id) {
437 case G3D_IFF_MKID('c', 't', 'n', 'r'):
438 x3dmf_read_container(stream, len, model, NULL, 0xFF, toc, context);
439 break;
440
441 default:
442 break;
443 }
444
445 g3d_stream_seek(stream, savedoffset, G_SEEK_SET);
446
447 return TRUE;
448}
449
450static gboolean x3dmf_read_container(G3DStream *stream, guint32 length,
451 G3DModel *model, G3DObject *object, guint32 level, X3dmfToc *toc,
452 G3DContext *context)
453{
454 G3DMaterial *material = NULL;
455 X3dmfChunkDesc *chunkdesc;
456 guint32 id, chk, i;
457 gsize len;
458 G3DFloat matrix[16];
459
460 g3d_matrix_identity(matrix);
461
462 while(length > 0) {
463 if(g3d_stream_eof(stream))
464 break;
465
466 g3d_iff_read_chunk(stream, &id, &len, 0);
467 length -= 8;
468
469 if(id == 0)
470 return FALSE;
471
472 chunkdesc = x3dmf_get_chunk_info(id);
473
474#if DEBUG > 0
475 g_debug("\\%s[%c%c%c%c]: %s (%d bytes)", debug_pad(level),
476 X3DMF_CHUNK_CHAR(id, 24), X3DMF_CHUNK_CHAR(id, 16),
477 X3DMF_CHUNK_CHAR(id, 8), X3DMF_CHUNK_CHAR(id, 0),
478 chunkdesc ? chunkdesc->description : "unknown chunk",
479 len);
480#endif
481 length -= len;
482
483 switch(id) {
484 case G3D_IFF_MKID('c', 'n', 't', 'r'):
485 /* container */
486#if DEBUG > 0
487 g_debug("|%snew container @ 0x%x (%d bytes)",
488 debug_pad(level - 1),
489 (guint32)g3d_stream_tell(stream) - 8, len);
490#endif
491 x3dmf_read_container(stream, len, model, object, level + 1,
492 toc, context);
493 break;
494
495 case G3D_IFF_MKID('k', 'd', 'i', 'f'):
496 /* diffuse color */
497 if(object) {
498#if DEBUG > 2
499 g_debug("3DMF: kdif: got object");
500#endif
501 material = g_slist_nth_data(object->materials, 0);
502 material->r = g3d_stream_read_float_be(stream);
503 material->g = g3d_stream_read_float_be(stream);
504 material->b = g3d_stream_read_float_be(stream);
505 } else {
506 g3d_stream_skip(stream, len);
507 }
508 break;
509
510 case G3D_IFF_MKID('k', 's', 'p', 'c'):
511 /* specular color */
512 if(object) {
513#if DEBUG > 2
514 g_debug("3DMF: kspc: got object");
515#endif
516 material = g_slist_nth_data(object->materials, 0);
517 material->specular[0] = g3d_stream_read_float_be(stream);
518 material->specular[1] = g3d_stream_read_float_be(stream);
519 material->specular[2] = g3d_stream_read_float_be(stream);
520 } else {
521 g3d_stream_skip(stream, len);
522 }
523 break;
524
525 case G3D_IFF_MKID('k', 'x', 'p', 'r'):
526 /* transparency color */
527 if(object) {
528 /* use average as alpha */
529 material = g_slist_nth_data(object->materials, 0);
530 material->a = 1.0 -
531 (g3d_stream_read_float_be(stream) +
532 g3d_stream_read_float_be(stream) +
533 g3d_stream_read_float_be(stream)) / 3.0;
534
535 if(material->a < 0.1)
536 material->a = 0.1;
537 } else {
538 g3d_stream_skip(stream, len);
539 }
540 break;
541
542 case G3D_IFF_MKID('m', 'e', 's', 'h'):
543 /* mesh */
544 if(object == NULL)
545 object = x3dmf_object_new(stream, model);
546 material = g_slist_nth_data(object->materials, 0);
547
548 chk = x3dmf_read_mesh(stream, object, context);
549 g3d_object_transform(object, matrix);
550 if(chk != len) {
551 g_warning("3DMF: mesh: wrong length (%u != %u)\n",
552 chk, (unsigned int) len);
553 return FALSE;
554 }
555 break;
556
557 case G3D_IFF_MKID('m', 't', 'r', 'x'):
558 /* matrix */
559 for(i = 0; i < 16; i ++)
560 matrix[i] = g3d_stream_read_float_be(stream);
561 if(object) {
562#if DEBUG > 2
563 g_debug("3DMF: mtrx: object is set");
564#endif
565 g3d_object_transform(object, matrix);
566 }
567#if DEBUG > 3
568 for(i = 0; i < 4; i ++)
569 g_debug("3DMF: mtrx: %+1.2f %+1.2f %+1.2f %+1.2f",
570 matrix[i * 4 + 0], matrix[i * 4 + 1],
571 matrix[i * 4 + 2], matrix[i * 4 + 3]);
572#endif
573 break;
574
575 case G3D_IFF_MKID('r', 'f', 'r', 'n'):
576 /* reference */
577 x3dmf_read_rfrn(stream, model, toc, context);
578 break;
579
580 case G3D_IFF_MKID('s', 'e', 't', ' '):
581 /* ??: skip this cntr chunk */
582 g3d_stream_skip(stream, length);
583 length = 0;
584 break;
585
586 case G3D_IFF_MKID('t', 'm', 's', 'h'):
587 /* triangle mesh */
588 if(object == NULL)
589 object = x3dmf_object_new(stream, model);
590 material = g_slist_nth_data(object->materials, 0);
591
592 chk = x3dmf_read_tmsh(stream, object, context);
593 g3d_object_transform(object, matrix);
594 if(chk != len) {
595#if DEBUG > 0
596 g_debug("3DMF: tmsh: offset %d bytes", len - chk);
597#endif
598 g3d_stream_skip(stream, len - chk);
599 }
600 break;
601
602 case G3D_IFF_MKID('t', 'r', 'n', 's'):
603 /* translate */
604 if(object) {
605 G3DFloat x,y,z;
606 G3DFloat matrix[16];
607
608 x = g3d_stream_read_float_be(stream);
609 y = g3d_stream_read_float_be(stream);
610 z = g3d_stream_read_float_be(stream);
611
612 g3d_matrix_identity(matrix);
613 g3d_matrix_translate(x, y, z, matrix);
614
615 g3d_object_transform(object, matrix);
616 } else {
617#if DEBUG > 0
618 g_warning("3DMF: [trns] no object");
619#endif
620 g3d_stream_skip(stream, 12);
621 }
622 break;
623
624 default:
625 if(chunkdesc) {
626 g3d_stream_skip(stream, len);
627 } else {
628#if DEBUG > 0
629 g_warning("3DMF: Container: unknown chunk '%c%c%c%c'/"
630 "0x%02X%02X%02X%02X @ 0x%08x "
631 "(%d bytes)",
632 X3DMF_CHUNK_CHAR(id, 24), X3DMF_CHUNK_CHAR(id, 16),
633 X3DMF_CHUNK_CHAR(id, 8), X3DMF_CHUNK_CHAR(id, 0),
634 X3DMF_CHUNK_CHAR(id, 24), X3DMF_CHUNK_CHAR(id, 16),
635 X3DMF_CHUNK_CHAR(id, 8), X3DMF_CHUNK_CHAR(id, 0),
636 (guint32)g3d_stream_tell(stream) - 8, len);
637#endif
638 g3d_stream_skip(stream, len);
639 }
640 break;
641 }
642 }
643
644 return TRUE;
645}
646
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_callbacks.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_callbacks.c
new file mode 100644
index 0000000..1c76249
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_callbacks.c
@@ -0,0 +1,23 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include "imp_3dmf_callbacks.h"
23
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_callbacks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_callbacks.h
new file mode 100644
index 0000000..5cb37a6
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_callbacks.h
@@ -0,0 +1,42 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_3DMF_CALLBACKS_H
23#define _IMP_3DMF_CALLBACKS_H
24
25#include <g3d/types.h>
26#include <g3d/stream.h>
27
28typedef struct {
29 G3DContext *context;
30 G3DStream *stream;
31} X3dmfGlobal;
32
33typedef struct {
34 guint32 id;
35 guint32 parentid;
36 guint32 level;
37 G3DObject *object;
38} X3dmfLocal;
39
40typedef gboolean (* X3dmfCallback)(X3dmfGlobal *global, X3dmfLocal *local);
41
42#endif /* _IMP_3DMF_CALLBACKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_chunks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_chunks.h
new file mode 100644
index 0000000..471a14c
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_chunks.h
@@ -0,0 +1,95 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_3DMF_CHUNKS_H
23#define _IMP_3DMF_CHUNKS_H
24
25#include <g3d/iff.h>
26#include "imp_3dmf_callbacks.h"
27
28typedef struct {
29 guint32 id;
30 const gchar *description;
31 X3dmfCallback callback;
32} X3dmfChunkDesc;
33
34#define ID G3D_IFF_MKID
35
36static X3dmfChunkDesc x3dmf_chunks[] = {
37 { ID('a', 'm', 'b', 'n'), "ambient light", NULL },
38 { ID('a', 't', 'a', 'r'), "(registered unknown)", NULL },
39 { ID('a', 't', 't', 'r'), "attribute set", NULL },
40 { ID('b', 'g', 'n', 'g'), "begin group", NULL },
41 { ID('c', 'a', 'm', 'b'), "ambient coefficient", NULL },
42 { ID('c', 'm', 'p', 'l'), "camera placement", NULL },
43 { ID('c', 'm', 'r', 'g'), "camera range", NULL },
44 { ID('c', 'm', 'v', 'p'), "camera viewport", NULL },
45 { ID('c', 'n', 't', 'r'), "container", NULL },
46 { ID('c', 's', 'g', 'e'), "(registered unknown)", NULL },
47 { ID('c', 's', 'p', 'c'), "specular control", NULL },
48 { ID('c', 't', 'w', 'n'), "interactive renderer", NULL },
49 { ID('d', 'b', 'b', 'p'), "(registered unknown)", NULL },
50 { ID('d', 'r', 'c', 't'), "directional light", NULL },
51 { ID('e', 'n', 'd', 'g'), "end group", NULL },
52 { ID('h', 'l', 's', 't'), "highlight state", NULL },
53 { ID('i', 'm', 'c', 'c'), "image clear color", NULL },
54 { ID('i', 'm', 'd', 'm'), "image dimensions", NULL },
55 { ID('k', 'd', 'i', 'f'), "diffuse color", NULL },
56 { ID('k', 's', 'p', 'c'), "specular color", NULL },
57 { ID('k', 'x', 'p', 'r'), "transparency color", NULL },
58 { ID('l', 'g', 'h', 't'), "light data", NULL },
59 { ID('m', 'e', 's', 'h'), "mesh", NULL },
60 { ID('m', 't', 'r', 'x'), "matrix", NULL },
61 { ID('n', 'r', 'm', 'l'), "normal", NULL },
62 { ID('p', 'n', 't', 'l'), "point light", NULL },
63 { ID('r', 'f', 'r', 'n'), "reference", NULL },
64 { ID('r', 'v', 'h', 'n'), "(registered unknown)", NULL },
65 { ID('r', 'v', 't', 'x'), "(registered unknown)", NULL },
66 { ID('s', 'e', 't', ' '), "set", NULL },
67 { ID('s', 't', 'r', 'c'), "C string", NULL },
68 { ID('t', 'm', 's', 'h'), "triangle mesh", NULL },
69 { ID('t', 'o', 'c', ' '), "tabe of contents", NULL },
70 { ID('t', 'r', 'n', 's'), "translation", NULL },
71 { ID('t', 'y', 'p', 'e'), "type definition", NULL },
72 { ID('v', 'a', 'n', 'a'), "view angle aspect cam", NULL },
73 { ID('v', 'a', 's', 'l'), "vertex attr set list", NULL },
74 { ID('v', 'n', 'i', 'd'), "(registered unknown)", NULL },
75 { ID('v', 'w', 'h', 'n'), "view hints", NULL },
76 { ID('v', 'w', 'p', 'l'), "view plane camera", NULL },
77
78 { ID(0xFF, 0xFF, 0xFF, 0xE5), "0xFFFFFFE5", NULL },
79 { ID(0xFF, 0xFF, 0xFF, 0xE7), "0xFFFFFFE7", NULL },
80 { ID(0xFF, 0xFF, 0xFF, 0xE9), "0xFFFFFFE9", NULL },
81 { ID(0xFF, 0xFF, 0xFF, 0xEA), "0xFFFFFFEA", NULL },
82 { ID(0xFF, 0xFF, 0xFF, 0xEB), "0xFFFFFFEB", NULL },
83 { ID(0xFF, 0xFF, 0xFF, 0xEC), "0xFFFFFFEC", NULL },
84 { ID(0xFF, 0xFF, 0xFF, 0xEF), "0xFFFFFFEF (EoC?)", NULL },
85 { ID(0xFF, 0xFF, 0xFF, 0xF1), "0xFFFFFFF1", NULL },
86 { ID(0xFF, 0xFF, 0xFF, 0xF4), "0xFFFFFFF4", NULL },
87 { ID(0xFF, 0xFF, 0xFF, 0xF6), "0xFFFFFFF6", NULL },
88 { ID(0xFF, 0xFF, 0xFF, 0xFD), "0xFFFFFFFD", NULL },
89
90 { 0, NULL, NULL }
91};
92
93#undef ID
94
95#endif /* _IMP_3DMF_CHUNKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/Makefile
new file mode 100644
index 0000000..5fba831
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/Makefile
@@ -0,0 +1,512 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_3ds/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_3ds
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_3ds_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_3ds_la_OBJECTS = imp_3ds.lo imp_3ds_callbacks.lo
59imp_3ds_la_OBJECTS = $(am_imp_3ds_la_OBJECTS)
60DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_3ds_la_SOURCES)
73DIST_SOURCES = $(imp_3ds_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
78AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
79AR = ar
80AS = as
81AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
82AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
83AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
84AWK = gawk
85CC = gcc
86CCDEPMODE = depmode=gcc3
87CFLAGS = -g -O2
88CPP = gcc -E
89CPPFLAGS =
90CXX = g++
91CXXCPP = g++ -E
92CXXDEPMODE = depmode=gcc3
93CXXFLAGS = -g -O2
94CYGPATH_W = echo
95DBG_CFLAGS = -O2
96DEBUG = 0
97DEFS = -DHAVE_CONFIG_H
98DEPDIR = .deps
99DLLTOOL = dlltool
100ECHO = echo
101ECHO_C =
102ECHO_N = -n
103ECHO_T =
104EGREP = /bin/grep -E
105EXEEXT =
106F77 =
107FFLAGS =
108GDKPIXBUF_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
109GDKPIXBUF_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
110GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
111GLIB_GENMARSHAL = glib-genmarshal
112GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
113GLIB_MKENUMS = glib-mkenums
114GOBJECT_QUERY = gobject-query
115GREP = /bin/grep
116GTKDOC_CHECK = /usr/bin/gtkdoc-check
117GTK_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
118GTK_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
119HTML_DIR = ${datadir}/gtk-doc/html
120INSTALL = /usr/bin/install -c
121INSTALL_DATA = ${INSTALL} -m 644
122INSTALL_PROGRAM = ${INSTALL}
123INSTALL_SCRIPT = ${INSTALL}
124INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
125LDFLAGS =
126LEX = flex
127LEXLIB = -lfl
128LEX_OUTPUT_ROOT = lex.yy
129LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
130LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
131LIBOBJS =
132LIBS = -lm
133LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
134LIBXML2_CFLAGS = -I/usr/include/libxml2
135LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
136LN_S = ln -s
137LTLIBOBJS =
138LTVERSION = 0:8:0
139MAGIC_LIBS = -lmagic
140MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
141MATH_LIBS = -lm
142MKDIR_P = /bin/mkdir -p
143OBJDUMP = objdump
144OBJEXT = o
145PACKAGE = libg3d
146PACKAGE_BUGREPORT =
147PACKAGE_NAME =
148PACKAGE_STRING =
149PACKAGE_TARNAME =
150PACKAGE_VERSION =
151PATH_SEPARATOR = :
152PKG_CONFIG = /usr/bin/pkg-config
153PLUGINS_LDFLAGS = -avoid-version -export-dynamic
154RANLIB = ranlib
155SET_MAKE =
156SHELL = /bin/bash
157STRIP = strip
158VERSION = 0.0.8
159XML2_CONFIG = /usr/bin/xml2-config
160XML_CPPFLAGS = -I/usr/include/libxml2
161XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
162Z_CFLAGS =
163Z_LIBS = -lz
164abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds
165abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds
166abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
167abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168ac_ct_CC = gcc
169ac_ct_CXX = g++
170ac_ct_F77 =
171am__include = include
172am__leading_dot = .
173am__quote =
174am__tar = ${AMTAR} chof - "$$tardir"
175am__untar = ${AMTAR} xf -
176bindir = ${exec_prefix}/bin
177build = x86_64-unknown-linux-gnu
178build_alias =
179build_cpu = x86_64
180build_os = linux-gnu
181build_vendor = unknown
182builddir = .
183datadir = ${datarootdir}
184datarootdir = ${prefix}/share
185docdir = ${datarootdir}/doc/${PACKAGE}
186dvidir = ${docdir}
187exec_prefix = ${prefix}
188host = x86_64-unknown-linux-gnu
189host_alias =
190host_cpu = x86_64
191host_os = linux-gnu
192host_vendor = unknown
193htmldir = ${docdir}
194includedir = ${prefix}/include
195infodir = ${datarootdir}/info
196install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
197libdir = ${exec_prefix}/lib
198libexecdir = ${exec_prefix}/libexec
199localedir = ${datarootdir}/locale
200localstatedir = ${prefix}/var
201mandir = ${datarootdir}/man
202mkdir_p = /bin/mkdir -p
203oldincludedir = /usr/include
204pdfdir = ${docdir}
205prefix = /usr/local
206program_transform_name = s,x,x,
207psdir = ${docdir}
208sbindir = ${exec_prefix}/sbin
209sharedstatedir = ${prefix}/com
210srcdir = .
211sysconfdir = ${prefix}/etc
212target_alias =
213top_builddir = ../../..
214top_srcdir = ../../..
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_3ds.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 -O2 -DDEBUG=0 \
221 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 -avoid-version -export-dynamic
227
228imp_3ds_la_SOURCES = imp_3ds.c imp_3ds.h imp_3ds_chunks.h \
229 imp_3ds_callbacks.c imp_3ds_callbacks.h
230
231imp_3ds_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
232all: all-am
233
234.SUFFIXES:
235.SUFFIXES: .c .lo .o .obj
236$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
237 @for dep in $?; do \
238 case '$(am__configure_deps)' in \
239 *$$dep*) \
240 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
241 && exit 0; \
242 exit 1;; \
243 esac; \
244 done; \
245 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_3ds/Makefile'; \
246 cd $(top_srcdir) && \
247 $(AUTOMAKE) --gnu plugins/import/imp_3ds/Makefile
248.PRECIOUS: Makefile
249Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
250 @case '$?' in \
251 *config.status*) \
252 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
253 *) \
254 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
255 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
256 esac;
257
258$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
259 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
260
261$(top_srcdir)/configure: $(am__configure_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263$(ACLOCAL_M4): $(am__aclocal_m4_deps)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
266 @$(NORMAL_INSTALL)
267 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
268 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
269 if test -f $$p; then \
270 f=$(am__strip_dir) \
271 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
272 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
273 else :; fi; \
274 done
275
276uninstall-pluginimpLTLIBRARIES:
277 @$(NORMAL_UNINSTALL)
278 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
279 p=$(am__strip_dir) \
280 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
281 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
282 done
283
284clean-pluginimpLTLIBRARIES:
285 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
288 test "$$dir" != "$$p" || dir=.; \
289 echo "rm -f \"$${dir}/so_locations\""; \
290 rm -f "$${dir}/so_locations"; \
291 done
292imp_3ds.la: $(imp_3ds_la_OBJECTS) $(imp_3ds_la_DEPENDENCIES)
293 $(LINK) -rpath $(pluginimpdir) $(imp_3ds_la_OBJECTS) $(imp_3ds_la_LIBADD) $(LIBS)
294
295mostlyclean-compile:
296 -rm -f *.$(OBJEXT)
297
298distclean-compile:
299 -rm -f *.tab.c
300
301include ./$(DEPDIR)/imp_3ds.Plo
302include ./$(DEPDIR)/imp_3ds_callbacks.Plo
303
304.c.o:
305 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
306 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
307# source='$<' object='$@' libtool=no \
308# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
309# $(COMPILE) -c $<
310
311.c.obj:
312 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
313 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
314# source='$<' object='$@' libtool=no \
315# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
316# $(COMPILE) -c `$(CYGPATH_W) '$<'`
317
318.c.lo:
319 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
320 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
321# source='$<' object='$@' libtool=yes \
322# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
323# $(LTCOMPILE) -c -o $@ $<
324
325mostlyclean-libtool:
326 -rm -f *.lo
327
328clean-libtool:
329 -rm -rf .libs _libs
330
331ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
332 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
333 unique=`for i in $$list; do \
334 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
335 done | \
336 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
337 END { if (nonempty) { for (i in files) print i; }; }'`; \
338 mkid -fID $$unique
339tags: TAGS
340
341TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
342 $(TAGS_FILES) $(LISP)
343 tags=; \
344 here=`pwd`; \
345 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
346 unique=`for i in $$list; do \
347 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
348 done | \
349 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
350 END { if (nonempty) { for (i in files) print i; }; }'`; \
351 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
352 test -n "$$unique" || unique=$$empty_fix; \
353 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
354 $$tags $$unique; \
355 fi
356ctags: CTAGS
357CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
358 $(TAGS_FILES) $(LISP)
359 tags=; \
360 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
361 unique=`for i in $$list; do \
362 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
363 done | \
364 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
365 END { if (nonempty) { for (i in files) print i; }; }'`; \
366 test -z "$(CTAGS_ARGS)$$tags$$unique" \
367 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
368 $$tags $$unique
369
370GTAGS:
371 here=`$(am__cd) $(top_builddir) && pwd` \
372 && cd $(top_srcdir) \
373 && gtags -i $(GTAGS_ARGS) $$here
374
375distclean-tags:
376 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
377
378distdir: $(DISTFILES)
379 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
380 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
381 list='$(DISTFILES)'; \
382 dist_files=`for file in $$list; do echo $$file; done | \
383 sed -e "s|^$$srcdirstrip/||;t" \
384 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
385 case $$dist_files in \
386 */*) $(MKDIR_P) `echo "$$dist_files" | \
387 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
388 sort -u` ;; \
389 esac; \
390 for file in $$dist_files; do \
391 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
392 if test -d $$d/$$file; then \
393 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
394 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
395 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
396 fi; \
397 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
398 else \
399 test -f $(distdir)/$$file \
400 || cp -p $$d/$$file $(distdir)/$$file \
401 || exit 1; \
402 fi; \
403 done
404check-am: all-am
405check: check-am
406all-am: Makefile $(LTLIBRARIES)
407installdirs:
408 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
409 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
410 done
411install: install-am
412install-exec: install-exec-am
413install-data: install-data-am
414uninstall: uninstall-am
415
416install-am: all-am
417 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
418
419installcheck: installcheck-am
420install-strip:
421 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
422 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
423 `test -z '$(STRIP)' || \
424 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
425mostlyclean-generic:
426
427clean-generic:
428
429distclean-generic:
430 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
431
432maintainer-clean-generic:
433 @echo "This command is intended for maintainers to use"
434 @echo "it deletes files that may require special tools to rebuild."
435clean: clean-am
436
437clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
438 mostlyclean-am
439
440distclean: distclean-am
441 -rm -rf ./$(DEPDIR)
442 -rm -f Makefile
443distclean-am: clean-am distclean-compile distclean-generic \
444 distclean-tags
445
446dvi: dvi-am
447
448dvi-am:
449
450html: html-am
451
452info: info-am
453
454info-am:
455
456install-data-am: install-pluginimpLTLIBRARIES
457
458install-dvi: install-dvi-am
459
460install-exec-am:
461
462install-html: install-html-am
463
464install-info: install-info-am
465
466install-man:
467
468install-pdf: install-pdf-am
469
470install-ps: install-ps-am
471
472installcheck-am:
473
474maintainer-clean: maintainer-clean-am
475 -rm -rf ./$(DEPDIR)
476 -rm -f Makefile
477maintainer-clean-am: distclean-am maintainer-clean-generic
478
479mostlyclean: mostlyclean-am
480
481mostlyclean-am: mostlyclean-compile mostlyclean-generic \
482 mostlyclean-libtool
483
484pdf: pdf-am
485
486pdf-am:
487
488ps: ps-am
489
490ps-am:
491
492uninstall-am: uninstall-pluginimpLTLIBRARIES
493
494.MAKE: install-am install-strip
495
496.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
497 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
498 distclean-compile distclean-generic distclean-libtool \
499 distclean-tags distdir dvi dvi-am html html-am info info-am \
500 install install-am install-data install-data-am install-dvi \
501 install-dvi-am install-exec install-exec-am install-html \
502 install-html-am install-info install-info-am install-man \
503 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
504 install-ps install-ps-am install-strip installcheck \
505 installcheck-am installdirs maintainer-clean \
506 maintainer-clean-generic mostlyclean mostlyclean-compile \
507 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
508 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
509
510# Tell versions [3.59,3.63) of GNU make to not export all variables.
511# Otherwise a system limit (for SysV at least) may be exceeded.
512.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/Makefile.am
new file mode 100644
index 0000000..b18ad09
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/Makefile.am
@@ -0,0 +1,21 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_3ds.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_3ds_la_SOURCES = imp_3ds.c imp_3ds.h imp_3ds_chunks.h \
20 imp_3ds_callbacks.c imp_3ds_callbacks.h
21imp_3ds_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/Makefile.in
new file mode 100644
index 0000000..a48d289
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/Makefile.in
@@ -0,0 +1,512 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_3ds
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_3ds_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_3ds_la_OBJECTS = imp_3ds.lo imp_3ds_callbacks.lo
59imp_3ds_la_OBJECTS = $(am_imp_3ds_la_OBJECTS)
60DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_3ds_la_SOURCES)
73DIST_SOURCES = $(imp_3ds_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = @ACLOCAL@
78AMTAR = @AMTAR@
79AR = @AR@
80AS = @AS@
81AUTOCONF = @AUTOCONF@
82AUTOHEADER = @AUTOHEADER@
83AUTOMAKE = @AUTOMAKE@
84AWK = @AWK@
85CC = @CC@
86CCDEPMODE = @CCDEPMODE@
87CFLAGS = @CFLAGS@
88CPP = @CPP@
89CPPFLAGS = @CPPFLAGS@
90CXX = @CXX@
91CXXCPP = @CXXCPP@
92CXXDEPMODE = @CXXDEPMODE@
93CXXFLAGS = @CXXFLAGS@
94CYGPATH_W = @CYGPATH_W@
95DBG_CFLAGS = @DBG_CFLAGS@
96DEBUG = @DEBUG@
97DEFS = @DEFS@
98DEPDIR = @DEPDIR@
99DLLTOOL = @DLLTOOL@
100ECHO = @ECHO@
101ECHO_C = @ECHO_C@
102ECHO_N = @ECHO_N@
103ECHO_T = @ECHO_T@
104EGREP = @EGREP@
105EXEEXT = @EXEEXT@
106F77 = @F77@
107FFLAGS = @FFLAGS@
108GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
109GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
110GLIB_CFLAGS = @GLIB_CFLAGS@
111GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
112GLIB_LIBS = @GLIB_LIBS@
113GLIB_MKENUMS = @GLIB_MKENUMS@
114GOBJECT_QUERY = @GOBJECT_QUERY@
115GREP = @GREP@
116GTKDOC_CHECK = @GTKDOC_CHECK@
117GTK_CFLAGS = @GTK_CFLAGS@
118GTK_LIBS = @GTK_LIBS@
119HTML_DIR = @HTML_DIR@
120INSTALL = @INSTALL@
121INSTALL_DATA = @INSTALL_DATA@
122INSTALL_PROGRAM = @INSTALL_PROGRAM@
123INSTALL_SCRIPT = @INSTALL_SCRIPT@
124INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125LDFLAGS = @LDFLAGS@
126LEX = @LEX@
127LEXLIB = @LEXLIB@
128LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
129LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
130LIBGSF_LIBS = @LIBGSF_LIBS@
131LIBOBJS = @LIBOBJS@
132LIBS = @LIBS@
133LIBTOOL = @LIBTOOL@ --quiet
134LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
135LIBXML2_LIBS = @LIBXML2_LIBS@
136LN_S = @LN_S@
137LTLIBOBJS = @LTLIBOBJS@
138LTVERSION = @LTVERSION@
139MAGIC_LIBS = @MAGIC_LIBS@
140MAKEINFO = @MAKEINFO@
141MATH_LIBS = @MATH_LIBS@
142MKDIR_P = @MKDIR_P@
143OBJDUMP = @OBJDUMP@
144OBJEXT = @OBJEXT@
145PACKAGE = @PACKAGE@
146PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147PACKAGE_NAME = @PACKAGE_NAME@
148PACKAGE_STRING = @PACKAGE_STRING@
149PACKAGE_TARNAME = @PACKAGE_TARNAME@
150PACKAGE_VERSION = @PACKAGE_VERSION@
151PATH_SEPARATOR = @PATH_SEPARATOR@
152PKG_CONFIG = @PKG_CONFIG@
153PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
154RANLIB = @RANLIB@
155SET_MAKE = @SET_MAKE@
156SHELL = @SHELL@
157STRIP = @STRIP@
158VERSION = @VERSION@
159XML2_CONFIG = @XML2_CONFIG@
160XML_CPPFLAGS = @XML_CPPFLAGS@
161XML_LIBS = @XML_LIBS@
162Z_CFLAGS = @Z_CFLAGS@
163Z_LIBS = @Z_LIBS@
164abs_builddir = @abs_builddir@
165abs_srcdir = @abs_srcdir@
166abs_top_builddir = @abs_top_builddir@
167abs_top_srcdir = @abs_top_srcdir@
168ac_ct_CC = @ac_ct_CC@
169ac_ct_CXX = @ac_ct_CXX@
170ac_ct_F77 = @ac_ct_F77@
171am__include = @am__include@
172am__leading_dot = @am__leading_dot@
173am__quote = @am__quote@
174am__tar = @am__tar@
175am__untar = @am__untar@
176bindir = @bindir@
177build = @build@
178build_alias = @build_alias@
179build_cpu = @build_cpu@
180build_os = @build_os@
181build_vendor = @build_vendor@
182builddir = @builddir@
183datadir = @datadir@
184datarootdir = @datarootdir@
185docdir = @docdir@
186dvidir = @dvidir@
187exec_prefix = @exec_prefix@
188host = @host@
189host_alias = @host_alias@
190host_cpu = @host_cpu@
191host_os = @host_os@
192host_vendor = @host_vendor@
193htmldir = @htmldir@
194includedir = @includedir@
195infodir = @infodir@
196install_sh = @install_sh@
197libdir = @libdir@
198libexecdir = @libexecdir@
199localedir = @localedir@
200localstatedir = @localstatedir@
201mandir = @mandir@
202mkdir_p = @mkdir_p@
203oldincludedir = @oldincludedir@
204pdfdir = @pdfdir@
205prefix = @prefix@
206program_transform_name = @program_transform_name@
207psdir = @psdir@
208sbindir = @sbindir@
209sharedstatedir = @sharedstatedir@
210srcdir = @srcdir@
211sysconfdir = @sysconfdir@
212target_alias = @target_alias@
213top_builddir = @top_builddir@
214top_srcdir = @top_srcdir@
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_3ds.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
221 @GLIB_CFLAGS@
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 @PLUGINS_LDFLAGS@
227
228imp_3ds_la_SOURCES = imp_3ds.c imp_3ds.h imp_3ds_chunks.h \
229 imp_3ds_callbacks.c imp_3ds_callbacks.h
230
231imp_3ds_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
232all: all-am
233
234.SUFFIXES:
235.SUFFIXES: .c .lo .o .obj
236$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
237 @for dep in $?; do \
238 case '$(am__configure_deps)' in \
239 *$$dep*) \
240 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
241 && exit 0; \
242 exit 1;; \
243 esac; \
244 done; \
245 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_3ds/Makefile'; \
246 cd $(top_srcdir) && \
247 $(AUTOMAKE) --gnu plugins/import/imp_3ds/Makefile
248.PRECIOUS: Makefile
249Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
250 @case '$?' in \
251 *config.status*) \
252 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
253 *) \
254 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
255 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
256 esac;
257
258$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
259 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
260
261$(top_srcdir)/configure: $(am__configure_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263$(ACLOCAL_M4): $(am__aclocal_m4_deps)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
266 @$(NORMAL_INSTALL)
267 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
268 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
269 if test -f $$p; then \
270 f=$(am__strip_dir) \
271 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
272 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
273 else :; fi; \
274 done
275
276uninstall-pluginimpLTLIBRARIES:
277 @$(NORMAL_UNINSTALL)
278 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
279 p=$(am__strip_dir) \
280 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
281 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
282 done
283
284clean-pluginimpLTLIBRARIES:
285 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
288 test "$$dir" != "$$p" || dir=.; \
289 echo "rm -f \"$${dir}/so_locations\""; \
290 rm -f "$${dir}/so_locations"; \
291 done
292imp_3ds.la: $(imp_3ds_la_OBJECTS) $(imp_3ds_la_DEPENDENCIES)
293 $(LINK) -rpath $(pluginimpdir) $(imp_3ds_la_OBJECTS) $(imp_3ds_la_LIBADD) $(LIBS)
294
295mostlyclean-compile:
296 -rm -f *.$(OBJEXT)
297
298distclean-compile:
299 -rm -f *.tab.c
300
301@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_3ds.Plo@am__quote@
302@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_3ds_callbacks.Plo@am__quote@
303
304.c.o:
305@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
306@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
307@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
308@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
309@am__fastdepCC_FALSE@ $(COMPILE) -c $<
310
311.c.obj:
312@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
313@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
314@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
315@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
316@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
317
318.c.lo:
319@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
320@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
321@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
322@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
323@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
324
325mostlyclean-libtool:
326 -rm -f *.lo
327
328clean-libtool:
329 -rm -rf .libs _libs
330
331ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
332 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
333 unique=`for i in $$list; do \
334 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
335 done | \
336 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
337 END { if (nonempty) { for (i in files) print i; }; }'`; \
338 mkid -fID $$unique
339tags: TAGS
340
341TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
342 $(TAGS_FILES) $(LISP)
343 tags=; \
344 here=`pwd`; \
345 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
346 unique=`for i in $$list; do \
347 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
348 done | \
349 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
350 END { if (nonempty) { for (i in files) print i; }; }'`; \
351 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
352 test -n "$$unique" || unique=$$empty_fix; \
353 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
354 $$tags $$unique; \
355 fi
356ctags: CTAGS
357CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
358 $(TAGS_FILES) $(LISP)
359 tags=; \
360 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
361 unique=`for i in $$list; do \
362 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
363 done | \
364 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
365 END { if (nonempty) { for (i in files) print i; }; }'`; \
366 test -z "$(CTAGS_ARGS)$$tags$$unique" \
367 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
368 $$tags $$unique
369
370GTAGS:
371 here=`$(am__cd) $(top_builddir) && pwd` \
372 && cd $(top_srcdir) \
373 && gtags -i $(GTAGS_ARGS) $$here
374
375distclean-tags:
376 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
377
378distdir: $(DISTFILES)
379 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
380 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
381 list='$(DISTFILES)'; \
382 dist_files=`for file in $$list; do echo $$file; done | \
383 sed -e "s|^$$srcdirstrip/||;t" \
384 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
385 case $$dist_files in \
386 */*) $(MKDIR_P) `echo "$$dist_files" | \
387 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
388 sort -u` ;; \
389 esac; \
390 for file in $$dist_files; do \
391 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
392 if test -d $$d/$$file; then \
393 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
394 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
395 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
396 fi; \
397 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
398 else \
399 test -f $(distdir)/$$file \
400 || cp -p $$d/$$file $(distdir)/$$file \
401 || exit 1; \
402 fi; \
403 done
404check-am: all-am
405check: check-am
406all-am: Makefile $(LTLIBRARIES)
407installdirs:
408 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
409 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
410 done
411install: install-am
412install-exec: install-exec-am
413install-data: install-data-am
414uninstall: uninstall-am
415
416install-am: all-am
417 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
418
419installcheck: installcheck-am
420install-strip:
421 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
422 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
423 `test -z '$(STRIP)' || \
424 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
425mostlyclean-generic:
426
427clean-generic:
428
429distclean-generic:
430 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
431
432maintainer-clean-generic:
433 @echo "This command is intended for maintainers to use"
434 @echo "it deletes files that may require special tools to rebuild."
435clean: clean-am
436
437clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
438 mostlyclean-am
439
440distclean: distclean-am
441 -rm -rf ./$(DEPDIR)
442 -rm -f Makefile
443distclean-am: clean-am distclean-compile distclean-generic \
444 distclean-tags
445
446dvi: dvi-am
447
448dvi-am:
449
450html: html-am
451
452info: info-am
453
454info-am:
455
456install-data-am: install-pluginimpLTLIBRARIES
457
458install-dvi: install-dvi-am
459
460install-exec-am:
461
462install-html: install-html-am
463
464install-info: install-info-am
465
466install-man:
467
468install-pdf: install-pdf-am
469
470install-ps: install-ps-am
471
472installcheck-am:
473
474maintainer-clean: maintainer-clean-am
475 -rm -rf ./$(DEPDIR)
476 -rm -f Makefile
477maintainer-clean-am: distclean-am maintainer-clean-generic
478
479mostlyclean: mostlyclean-am
480
481mostlyclean-am: mostlyclean-compile mostlyclean-generic \
482 mostlyclean-libtool
483
484pdf: pdf-am
485
486pdf-am:
487
488ps: ps-am
489
490ps-am:
491
492uninstall-am: uninstall-pluginimpLTLIBRARIES
493
494.MAKE: install-am install-strip
495
496.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
497 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
498 distclean-compile distclean-generic distclean-libtool \
499 distclean-tags distdir dvi dvi-am html html-am info info-am \
500 install install-am install-data install-data-am install-dvi \
501 install-dvi-am install-exec install-exec-am install-html \
502 install-html-am install-info install-info-am install-man \
503 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
504 install-ps install-ps-am install-strip installcheck \
505 installcheck-am installdirs maintainer-clean \
506 maintainer-clean-generic mostlyclean mostlyclean-compile \
507 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
508 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
509
510# Tell versions [3.59,3.63) of GNU make to not export all variables.
511# Otherwise a system limit (for SysV at least) may be exceeded.
512.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds.c
new file mode 100644
index 0000000..6125984
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds.c
@@ -0,0 +1,206 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <string.h>
25#include <stdarg.h>
26
27#include <g3d/types.h>
28#include <g3d/stream.h>
29#include <g3d/material.h>
30#include <g3d/texture.h>
31#include <g3d/matrix.h>
32
33#include "imp_3ds.h"
34#include "imp_3ds_chunks.h"
35
36/*****************************************************************************/
37/* plugin interface */
38/*****************************************************************************/
39
40EAPI
41gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
42 G3DModel *model, gpointer plugin_data)
43{
44 G3DMatrix rmatrix[16];
45 gint32 nbytes, magic;
46 gboolean retval;
47 x3ds_global_data global;
48 x3ds_parent_data *parent;
49
50 magic = g3d_stream_read_int16_le(stream);
51 if((magic != 0x4D4D) && (magic != 0xC23D))
52 {
53 g_warning("file %s is not a 3ds file", stream->uri);
54 return FALSE;
55 }
56 nbytes = g3d_stream_read_int32_le(stream);
57 nbytes -= 6;
58#if DEBUG > 0
59 g_debug("\\[%4.4X] 3DS file: main length: %d", magic, nbytes);
60#endif
61
62 global.context = context;
63 global.model = model;
64 global.stream = stream;
65 global.scale = 1.0;
66 global.max_tex_id = 0;
67
68 parent = g_new0(x3ds_parent_data, 1);
69 parent->id = magic;
70 parent->nb = nbytes;
71
72 retval = x3ds_read_ctnr(&global, parent);
73
74 g3d_matrix_identity(rmatrix);
75 g3d_matrix_rotate_xyz(G_PI * -90.0 / 180, 0.0, 0.0, rmatrix);
76 g3d_model_transform(model, rmatrix);
77
78 g_free(parent);
79
80 return retval;
81}
82
83EAPI
84gchar *plugin_description(void)
85{
86 return g_strdup("AutoCAD 3D Studio models.");
87}
88
89EAPI
90gchar **plugin_extensions(void)
91{
92 return g_strsplit("3ds:prj", ":", 0);
93}
94
95/*****************************************************************************/
96
97gboolean x3ds_read_ctnr(x3ds_global_data *global, x3ds_parent_data *parent)
98{
99 gint32 chunk_id, chunk_len, i;
100 x3ds_parent_data *subparent;
101 gpointer level_object;
102 gchar *padding = " ";
103
104 level_object = NULL;
105
106 while(parent->nb > 0) {
107 chunk_id = g3d_stream_read_int16_le(global->stream);
108 chunk_len = g3d_stream_read_int32_le(global->stream);
109 parent->nb -= 6;
110 chunk_len -= 6;
111
112 i = 0;
113 while((x3ds_chunks[i].id != 0) && (x3ds_chunks[i].id != chunk_id))
114 i ++;
115
116 if(x3ds_chunks[i].id == chunk_id) {
117 g_debug("\\%s(%d)[0x%04X][%c%c] %s (%d bytes)",
118 padding + (strlen(padding) - parent->level), parent->level,
119 chunk_id,
120 x3ds_chunks[i].container ? 'c' : ' ',
121 x3ds_chunks[i].callback ? 'f' : ' ',
122 x3ds_chunks[i].desc, chunk_len);
123 if (chunk_id==0) {
124 g_warning("error: bad chunk id");
125 return FALSE;
126 }
127
128 subparent = g_new0(x3ds_parent_data, 1);
129 subparent->id = parent->id;
130 subparent->object = parent->object;
131 subparent->level = parent->level + 1;
132 subparent->level_object = level_object;
133 subparent->nb = chunk_len;
134
135 if(x3ds_chunks[i].callback) {
136 /* callback may change "nb" and "object" of
137 * "subparent" structure for following container run */
138
139 x3ds_chunks[i].callback(global, subparent);
140 }
141
142 subparent->id = chunk_id;
143
144 if(x3ds_chunks[i].container) {
145 if(x3ds_read_ctnr(global, subparent) == FALSE) {
146 /* abort on error */
147 return FALSE;
148 }
149 }
150
151 if(subparent->nb)
152 g3d_stream_skip(global->stream, subparent->nb);
153
154 level_object = subparent->level_object;
155
156 g_free(subparent);
157 } else {
158 g_warning("[3DS] unknown chunk type 0x%04X", chunk_id);
159 g3d_stream_skip(global->stream, chunk_len);
160 }
161 parent->nb -= chunk_len;
162
163 /* update progress bar */
164 x3ds_update_progress(global, parent->level);
165 }
166
167 return TRUE;
168}
169
170void x3ds_update_progress(x3ds_global_data *global, guint32 level)
171{
172 goffset fpos;
173
174 /* update progress bar */
175 if(level < 4) {
176 fpos = g3d_stream_tell(global->stream);
177 g3d_context_update_progress_bar(global->context,
178 ((G3DFloat)fpos / (G3DFloat)g3d_stream_size(global->stream)), TRUE);
179 }
180}
181
182gint32 x3ds_read_cstr(G3DStream *stream, gchar *string)
183{
184 gint32 n = 0;
185 char c;
186 do {
187 c = g3d_stream_read_int8(stream);
188 string[n] = c;
189 n++;
190 } while(c != 0);
191 return n;
192}
193
194G3DObject *x3ds_newobject(G3DModel *model, const gchar *name)
195{
196 G3DObject *object = g_malloc0(sizeof(G3DObject));
197 G3DMaterial *material = g3d_material_new();
198
199 object->name = g_strdup(name);
200 object->faces = NULL;
201 model->objects = g_slist_append(model->objects, object);
202 object->materials = g_slist_append(object->materials, material);
203
204 return object;
205}
206
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds.h
new file mode 100644
index 0000000..80a2c8c
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds.h
@@ -0,0 +1,55 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_3DS_H
23#define _IMP_3DS_H
24
25#include <stdio.h>
26#include <glib.h>
27#include <g3d/g3d.h>
28#include <g3d/stream.h>
29
30typedef struct {
31 G3DContext *context;
32 G3DModel *model;
33 G3DStream *stream;
34 G3DFloat scale;
35 gint32 max_tex_id;
36} x3ds_global_data;
37
38typedef struct {
39 gint32 id;
40 gpointer object;
41 gpointer misc_object;
42 gint32 level;
43 gpointer level_object;
44 guint32 nb;
45} x3ds_parent_data;
46
47typedef gboolean (* x3ds_callback)(x3ds_global_data *global,
48 x3ds_parent_data *parent);
49
50gboolean x3ds_read_ctnr(x3ds_global_data *global, x3ds_parent_data *parent);
51void x3ds_update_progress(x3ds_global_data *global, guint32 level);
52gint32 x3ds_read_cstr(G3DStream *stream, gchar *string);
53G3DObject *x3ds_newobject(G3DModel *model, const gchar *name);
54
55#endif /* _IMP_3DS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds_callbacks.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds_callbacks.c
new file mode 100644
index 0000000..fdd9823
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds_callbacks.c
@@ -0,0 +1,992 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <string.h>
23#include <math.h>
24
25#include <g3d/stream.h>
26#include <g3d/texture.h>
27#include <g3d/vector.h>
28#include <g3d/matrix.h>
29
30#include "imp_3ds_callbacks.h"
31
32#define X3DS_FLAG_TENSION 0x01
33#define X3DS_FLAG_CONTINUITY 0x02
34#define X3DS_FLAG_BIAS 0x04
35#define X3DS_FLAG_EASE_TO 0x08
36#define X3DS_FLAG_EASE_FROM 0x10
37
38gboolean x3ds_cb_0x0002(x3ds_global_data *global, x3ds_parent_data *parent)
39{
40 gint32 version;
41
42 version = g3d_stream_read_int32_le(global->stream);
43 parent->nb -= 4;
44#if DEBUG > 0
45 g_debug("[3DS] M3D version %d", version);
46#endif
47 return TRUE;
48}
49
50/* color float */
51gboolean x3ds_cb_0x0010(x3ds_global_data *global, x3ds_parent_data *parent)
52{
53 G3DMaterial *material;
54 G3DFloat r, g, b;
55
56 r = g3d_stream_read_float_le(global->stream);
57 g = g3d_stream_read_float_le(global->stream);
58 b = g3d_stream_read_float_le(global->stream);
59 parent->nb -= 12;
60
61 switch(parent->id)
62 {
63 case 0x1200: /* SOLID_BGND */
64 g3d_context_set_bgcolor(global->context, r, g, b, 1.0);
65 break;
66
67 case 0xA010: /* ambient color */
68 break;
69
70 case 0xA020: /* diffuse color */
71 material = (G3DMaterial *)parent->object;
72 g_return_val_if_fail(material, FALSE);
73
74 material->r = r;
75 material->g = g;
76 material->b = b;
77 break;
78
79 case 0xA030: /* specular color */
80 material = (G3DMaterial *)parent->object;
81 g_return_val_if_fail(material, FALSE);
82
83 material->specular[0] = r;
84 material->specular[1] = g;
85 material->specular[2] = b;
86 material->specular[3] = 0.25;
87 break;
88
89 default:
90#if DEBUG > 0
91 g_warning("[3DS] unhandled COLOR_F in 0x%04X", parent->id);
92#endif
93 break;
94 }
95
96 return TRUE;
97}
98
99/* color 24 */
100gboolean x3ds_cb_0x0011(x3ds_global_data *global, x3ds_parent_data *parent)
101{
102 G3DMaterial *material;
103 gint32 r, g, b;
104
105 material = (G3DMaterial *)parent->object;
106 g_return_val_if_fail(material, FALSE);
107
108 r = g3d_stream_read_int8(global->stream);
109 g = g3d_stream_read_int8(global->stream);
110 b = g3d_stream_read_int8(global->stream);
111 parent->nb -= 3;
112
113 switch(parent->id)
114 {
115
116 case 0xA010: /* ambient color */
117 break;
118
119 case 0xA020: /* diffuse color */
120 material->r = (G3DFloat)r / 255.0;
121 material->g = (G3DFloat)g / 255.0;
122 material->b = (G3DFloat)b / 255.0;
123 break;
124
125 case 0xA030: /* specular color */
126 material->specular[0] = (GLfloat)r / 255.0;
127 material->specular[1] = (GLfloat)g / 255.0;
128 material->specular[2] = (GLfloat)b / 255.0;
129 material->specular[3] = 0.25;
130 break;
131
132 default:
133#if DEBUG > 0
134 g_warning("[3DS] unhandled COLOR_24 in 0x%04X", parent->id);
135#endif
136 break;
137 }
138
139 return TRUE;
140}
141
142/* short percentage */
143gboolean x3ds_cb_0x0030(x3ds_global_data *global, x3ds_parent_data *parent)
144{
145 G3DMaterial *material;
146 gint32 percent;
147
148 material = (G3DMaterial *)parent->object;
149 g_return_val_if_fail(material, FALSE);
150
151 percent = g3d_stream_read_int16_le(global->stream);
152 parent->nb -= 2;
153
154 switch(parent->id)
155 {
156 case 0xA040: /* shininess */
157 material->shininess = (G3DFloat)percent / 100.0;
158 break;
159
160 case 0xA041: /* shininess (2) */
161 /* TODO: do something here? */
162 break;
163
164 case 0xA050: /* transparency */
165 material->a = 1.0 - ((G3DFloat)percent / 100.0);
166 break;
167
168 case 0xA052: /* fallthrough */
169 /* TODO: do something here? */
170 break;
171
172 case 0xA053: /* blur */
173 /* TODO: do something here? */
174 break;
175
176 case 0xA084: /* self illumination */
177 /* TODO: do something here? */
178 break;
179
180 case 0xA200: /* texture map */
181 /* TODO: do something here? */
182 break;
183
184 case 0xA210: /* opacity map */
185 /* TODO: do something here? */
186 g_debug("[3DS] opacity percentage: %d%%\n", percent);
187 break;
188
189 case 0xA220: /* reflection map */
190 /* TODO: do something here? */
191 break;
192
193 case 0xA230: /* bump map */
194 /* TODO: do something here? */
195 break;
196
197 default:
198#if DEBUG > 0
199 g_warning("[3DS] unhandled INT_PERCENTAGE in 0x%04X",
200 parent->id);
201#endif
202 break;
203 }
204
205 return TRUE;
206}
207
208/* float percentage */
209gboolean x3ds_cb_0x0031(x3ds_global_data *global, x3ds_parent_data *parent)
210{
211 G3DMaterial *material;
212 G3DFloat percent;
213
214 material = (G3DMaterial *)parent->object;
215 g_return_val_if_fail(material, FALSE);
216
217 percent = g3d_stream_read_float_le(global->stream);
218 parent->nb -= 4;
219
220 switch(parent->id)
221 {
222 case 0xA040: /* shininess */
223 material->shininess = percent;
224 break;
225
226 case 0xA050: /* transparency */
227 material->a = 1.0 - percent;
228 break;
229
230 default:
231#if DEBUG > 0
232 g_warning("[3DS] unhandled FLOAT_PERCENTAGE in 0x%04X",
233 parent->id);
234#endif
235 break;
236 }
237
238 return TRUE;
239}
240
241/* master scale */
242gboolean x3ds_cb_0x0100(x3ds_global_data *global, x3ds_parent_data *parent)
243{
244 global->scale = g3d_stream_read_float_le(global->stream);
245 parent->nb -= 4;
246
247 return TRUE;
248}
249
250/* named object */
251gboolean x3ds_cb_0x4000(x3ds_global_data *global, x3ds_parent_data *parent)
252{
253 gchar buffer[1024];
254
255 parent->nb -= x3ds_read_cstr(global->stream, buffer);
256 parent->object = x3ds_newobject(global->model, buffer);
257
258 return TRUE;
259}
260
261/* point array */
262gboolean x3ds_cb_0x4110(x3ds_global_data *global, x3ds_parent_data *parent)
263{
264 G3DObject *object;
265 gint32 i;
266
267 object = (G3DObject *)parent->object;
268 g_return_val_if_fail(object, FALSE);
269
270 object->vertex_count = g3d_stream_read_int16_le(global->stream);
271 parent->nb -= 2;
272
273 object->vertex_data = g_new0(G3DFloat, object->vertex_count * 3);
274 for(i = 0; i < object->vertex_count; i ++)
275 {
276 object->vertex_data[i * 3 + 0] = g3d_stream_read_float_le(global->stream);
277 object->vertex_data[i * 3 + 1] = g3d_stream_read_float_le(global->stream);
278 object->vertex_data[i * 3 + 2] = g3d_stream_read_float_le(global->stream);
279
280 parent->nb -= 12;
281
282 if((i % 1000) == 0) x3ds_update_progress(global, parent->level);
283 }
284 return TRUE;
285}
286
287/* face array */
288gboolean x3ds_cb_0x4120(x3ds_global_data *global, x3ds_parent_data *parent)
289{
290 gint32 i, flags, nfaces;
291#define X3DS_REORDER_FACES
292#ifdef X3DS_REORDER_FACES
293 gint32 p1 = -1, p2 = -1, bottle;
294#endif
295 G3DFace *face;
296 G3DObject *object;
297
298 object = (G3DObject *)parent->object;
299 g_return_val_if_fail(object, FALSE);
300
301 nfaces = g3d_stream_read_int16_le(global->stream);
302 parent->nb -= 2;
303
304 for(i = 0; i < nfaces; i ++)
305 {
306 face = g_new0(G3DFace, 1);
307
308 face->vertex_count = 3;
309 face->vertex_indices = g_malloc(3 * sizeof(guint32));
310
311 face->vertex_indices[0] = g3d_stream_read_int16_le(global->stream);
312 face->vertex_indices[1] = g3d_stream_read_int16_le(global->stream);
313 face->vertex_indices[2] = g3d_stream_read_int16_le(global->stream);
314 flags = g3d_stream_read_int16_le(global->stream);
315 parent->nb -= 8;
316
317#ifdef X3DS_REORDER_FACES
318 /* try to put all faces in the same direction */
319 if((p1 == face->vertex_indices[0]) && (p2 == face->vertex_indices[1]))
320 {
321 bottle = face->vertex_indices[0];
322 face->vertex_indices[0] = face->vertex_indices[2];
323 face->vertex_indices[2] = bottle;
324 }
325
326 p1 = face->vertex_indices[0];
327 p2 = face->vertex_indices[1];
328#endif
329
330 face->material = g_slist_nth_data(object->materials, 0);
331
332 object->faces = g_slist_append(object->faces, face);
333
334 if((i % 1000) == 0) x3ds_update_progress(global, parent->level);
335 }
336
337 return TRUE;
338}
339
340/* mesh mat group */
341gboolean x3ds_cb_0x4130(x3ds_global_data *global, x3ds_parent_data *parent)
342{
343 G3DObject *object;
344 gint32 i, j, facenum, nfaces;
345 gchar buffer[512];
346 G3DMaterial *material = NULL, *mat;
347 G3DFace *face;
348 GSList *mlist;
349
350 object = (G3DObject *)parent->object;
351 g_return_val_if_fail(object, FALSE);
352
353 /* name of material */
354 parent->nb -= x3ds_read_cstr(global->stream, buffer);
355
356 /* find material in list */
357 mlist = global->model->materials;
358 while(mlist != NULL)
359 {
360 mat = (G3DMaterial*)mlist->data;
361 if(strcmp(mat->name, buffer) == 0)
362 {
363 material = mat;
364 break;
365 }
366 mlist = mlist->next;
367 }
368
369 nfaces = g3d_stream_read_int16_le(global->stream);
370 parent->nb -= 2;
371
372 for(i = 0; i < nfaces; i ++)
373 {
374 facenum = g3d_stream_read_int16_le(global->stream);
375 parent->nb -= 2;
376
377 if(material != NULL)
378 {
379 face = (G3DFace*)g_slist_nth_data(object->faces, facenum);
380 if(face == NULL) continue;
381
382 face->material = material;
383
384 if(face->material->tex_image && object->tex_vertex_data)
385 {
386 face->flags |= G3D_FLAG_FAC_TEXMAP;
387 face->tex_image = face->material->tex_image;
388 face->tex_vertex_count = 3;
389 face->tex_vertex_data = g_new0(G3DFloat, 6);
390 for(j = 0; j < 3; j ++)
391 {
392 face->tex_vertex_data[j * 2 + 0] = object->tex_vertex_data[
393 face->vertex_indices[j] * 2 + 0];
394 face->tex_vertex_data[j * 2 + 1] = object->tex_vertex_data[
395 face->vertex_indices[j] * 2 + 1];
396 }
397 } /* textured face */
398 } /* material != NULL */
399
400 if((i % 1000) == 0) x3ds_update_progress(global, parent->level);
401 } /* 0..nfaces */
402
403 return TRUE;
404}
405
406/* texture vertices */
407gboolean x3ds_cb_0x4140(x3ds_global_data *global, x3ds_parent_data *parent)
408{
409 G3DObject *object;
410 gint32 i;
411
412 object = (G3DObject *)parent->object;
413 g_return_val_if_fail(object, FALSE);
414
415 object->tex_vertex_count = g3d_stream_read_int16_le(global->stream);
416 parent->nb -= 2;
417
418 object->tex_vertex_data = g_new0(G3DFloat, object->tex_vertex_count * 2);
419
420 for(i = 0; i < object->tex_vertex_count; i ++)
421 {
422 object->tex_vertex_data[i * 2 + 0] = g3d_stream_read_float_le(global->stream);
423 object->tex_vertex_data[i * 2 + 1] = g3d_stream_read_float_le(global->stream);
424 parent->nb -= 8;
425
426 if((i % 1000) == 0) x3ds_update_progress(global, parent->level);
427 }
428
429 return TRUE;
430}
431
432/* smoothing groups */
433gboolean x3ds_cb_0x4150(x3ds_global_data *global, x3ds_parent_data *parent)
434{
435 G3DObject *object;
436 G3DFace *face;
437 GSList *oface;
438 gint32 i, j, k, n=0, polynum, group;
439 guint32 *smooth_list;
440 G3DFloat *pnormal_list, *vertex_normal_buf;
441 G3DFloat a[3],b[3], *p0,*p1,*p2,*r;
442
443 /* read data */
444 object = (G3DObject *)parent->object;
445 g_return_val_if_fail(object, FALSE);
446
447 oface=object->faces;
448 polynum=0;
449 for(oface = object->faces; oface != NULL ; oface = oface->next)
450 polynum++; /* count polygons */
451
452 /* polygon normal list */
453 pnormal_list = g_new(float, 3 * polynum);
454 /* normals per vertice */
455 vertex_normal_buf = g_new0(float, 3 * object->vertex_count);
456
457 smooth_list = g_new(guint32, polynum);
458
459 for(i = 0 ; i < polynum ; i ++)
460 smooth_list[i] = g3d_stream_read_int32_le(global->stream);
461
462 parent->nb -= polynum * 4;
463 /* first, we calculate the normal by the polygon vertices (just vector
464 * product) */
465 i = 0;
466 for(oface = object->faces; oface != NULL ; oface=oface->next)
467 {
468 face = (G3DFace *)oface->data;
469 r = &(pnormal_list[i*3]);
470 p0 = &(object->vertex_data[3 * face->vertex_indices[0]]);
471 p1 = &(object->vertex_data[3 * face->vertex_indices[1]]);
472 p2 = &(object->vertex_data[3 * face->vertex_indices[2]]);
473
474 a[0]=p1[0] - p0[0];
475 a[1]=p1[1] - p0[1];
476 a[2]=p1[2] - p0[2];
477 b[0]=p2[0] - p0[0];
478 b[1]=p2[1] - p0[1];
479 b[2]=p2[2] - p0[2];
480
481 g3d_vector_normal(a[0], a[1], a[2], b[0], b[1], b[2],
482 &r[0], &r[1], &r[2]);
483
484 g3d_vector_unify(&r[0], &r[1], &r[2]);
485
486 face->flags |= G3D_FLAG_FAC_NORMALS;
487 i ++;
488 }
489
490 do {
491 /* find a suitable group. -1 means we've already taken care */
492 group = -1;
493 for(i = 0; i < polynum; i ++)
494 if((group = smooth_list[i]) != -1) /* found a group */
495 break;
496 /* handle this group */
497 if(group != -1)
498 {
499 /* SMOOTH
500 * we add normals of the polygons's vertices so each vertex will
501 * finally have
502 * the sum of the polygons normals where the vertex is part of.
503 *
504 * run0: clear the vertex_normal_buf for this group */
505 for(i = 0; i < object->vertex_count * 3; i ++)
506 vertex_normal_buf[i] = 0.0;
507 /* run1: add normals on themselves into the vertex_normal_buf */
508 i = 0;
509 for(oface = object->faces; oface != NULL ; oface = oface->next)
510 {
511 face = (G3DFace *) oface->data;
512 if(smooth_list[i] == group)
513 {
514 /* for all 3 vertices of the polygon */
515 for(j = 0; j < 3; j ++)
516 {
517 k = face->vertex_indices[j];
518 for(n = 0; n < 3; n ++)
519 vertex_normal_buf[k * 3 + n] +=
520 pnormal_list[i * 3 + n];
521 }
522 }
523 i ++;
524 }
525 i = 0;
526 /* run2: apply to the final vertex buffer */
527 for(oface = object->faces; oface != NULL ; oface = oface->next)
528 {
529 face = (G3DFace *)oface->data;
530 if(smooth_list[i] == group)
531 {
532 face->normals = g_new(G3DFloat, 9);
533 for(j = 0; j < 3; j ++)
534 {
535 k = face->vertex_indices[j];
536
537 g3d_vector_unify(
538 &(vertex_normal_buf[k * 3 + 0]),
539 &(vertex_normal_buf[k * 3 + 1]),
540 &(vertex_normal_buf[k * 3 + 2]));
541
542 if(vertex_normal_buf[k * 3 + 0] != 0.0F)
543 /* finally, we save the normal in our normal
544 * buffer */
545 memcpy(face->normals + j * 3,
546 vertex_normal_buf + k * 3,
547 sizeof(G3DFloat) * 3);
548 else
549 /* use the pbuf normal */
550 memcpy(face->normals + j * 3,
551 pnormal_list + i * 3,
552 sizeof(G3DFloat) * 3);
553
554 }
555 smooth_list[i] = -1; /* finished this polygon */
556 }
557 i++;
558 }
559 /* SMOOTH END */
560 }
561 } while (group != -1);
562
563 g_free(pnormal_list);
564 g_free(vertex_normal_buf);
565 g_free(smooth_list);
566 return TRUE;
567}
568
569/* mesh matrix */
570gboolean x3ds_cb_0x4160(x3ds_global_data *global, x3ds_parent_data *parent)
571{
572 G3DFloat matrix[16];
573 gint32 i;
574 G3DFloat det;
575
576 g3d_matrix_identity(matrix);
577 for(i = 0; i < 12; i ++)
578 matrix[(i / 3) * 4 + (i % 3)] = g3d_stream_read_float_le(global->stream);
579 parent->nb -= 48;
580
581 det = g3d_matrix_determinant(matrix);
582
583 g3d_matrix_dump(matrix);
584 g_debug("det: %f", det);
585
586
587 if(det < 0.0) {
588#if 0
589 G3DFloat scale[16];
590 g3d_matrix_identity(scale);
591 g3d_matrix_scale(-1.0, 1.0, 1.0, scale);
592 g3d_matrix_multiply(scale, matrix, matrix);
593 g3d_matrix_dump(matrix);
594#endif
595#define X3DS_MESH_TRANSFORM 0
596#if X3DS_MESH_TRANSFORM
597 object = parent->object;
598 if(object) {
599 object->transformation = g_new0(G3DTransformation, 1);
600 memcpy(object->transformation->matrix, matrix, 16 * sizeof(G3DFloat));
601 }
602
603#if 0
604 if(parent->object) {
605 g3d_object_transform(parent->object, matrix);
606 }
607#endif
608#endif
609 }
610 return TRUE;
611}
612
613/* material name */
614gboolean x3ds_cb_0xA000(x3ds_global_data *global, x3ds_parent_data *parent)
615{
616 G3DMaterial *material;
617 gchar buffer[1024];
618
619 g_return_val_if_fail(parent->object, FALSE);
620
621 parent->nb -= x3ds_read_cstr(global->stream, buffer);
622 material = (G3DMaterial *)(parent->object);
623
624 material->name = g_strdup(buffer);
625
626 return TRUE;
627}
628
629/* two sided material */
630gboolean x3ds_cb_0xA081(x3ds_global_data *global, x3ds_parent_data *parent)
631{
632 G3DMaterial *material;
633
634 material = (G3DMaterial *)parent->object;
635 g_return_val_if_fail(material, FALSE);
636
637 material->flags |= G3D_FLAG_MAT_TWOSIDE;
638
639 return TRUE;
640}
641
642/* texture map name */
643gboolean x3ds_cb_0xA300(x3ds_global_data *global, x3ds_parent_data *parent)
644{
645 G3DMaterial *material;
646 G3DImage *image;
647 gchar buffer[512];
648
649 material = (G3DMaterial *)parent->object;
650 g_return_val_if_fail(material, FALSE);
651
652 parent->nb -= x3ds_read_cstr(global->stream, buffer);
653
654 switch(parent->id)
655 {
656 case 0xA200: /* texture map */
657 material->tex_image = g3d_texture_load_cached(global->context,
658 global->model, buffer);
659 if(material->tex_image)
660 {
661 g3d_texture_flip_y(material->tex_image);
662 material->tex_image->tex_id = ++ global->max_tex_id;
663 }
664 break;
665
666 case 0xA210: /* opacity map */
667 image = g3d_texture_load(global->context, buffer);
668 if(image != NULL)
669 {
670 g3d_texture_flip_y(image);
671 material->tex_image = g3d_texture_merge_alpha(
672 material->tex_image, image);
673 g3d_texture_free(image);
674 }
675 break;
676
677 case 0xA220: /* reflection map */
678 /* TODO: implement */
679 break;
680
681 case 0xA230: /* bump map */
682 /* TODO: implement */
683 break;
684
685 default:
686#if DEBUG > 0
687 g_warning("[3DS] unhandled texture name in 0x%04X", parent->id);
688#endif
689
690 break;
691 }
692
693 return TRUE;
694}
695
696/* texture map scale u */
697gboolean x3ds_cb_0xA354(x3ds_global_data *global, x3ds_parent_data *parent)
698{
699 G3DMaterial *material;
700 G3DImage *image;
701 G3DFloat scale;
702
703 material = (G3DMaterial *)parent->object;
704 g_return_val_if_fail(material, FALSE);
705
706 image = material->tex_image;
707 g_return_val_if_fail(image, FALSE);
708
709 scale = g3d_stream_read_float_le(global->stream);
710 parent->nb -= 4;
711
712 image->tex_scale_u = scale;
713#if DEBUG > 3
714 g_debug("[3DS] scale_u: %f", image->tex_scale_u);
715#endif
716
717 return TRUE;
718}
719
720/* texture map scale v */
721gboolean x3ds_cb_0xA356(x3ds_global_data *global, x3ds_parent_data *parent)
722{
723 G3DMaterial *material;
724 G3DImage *image;
725 G3DFloat scale;
726
727 material = (G3DMaterial *)parent->object;
728 g_return_val_if_fail(material, FALSE);
729
730 image = material->tex_image;
731 g_return_val_if_fail(image, FALSE);
732
733 scale = g3d_stream_read_float_le(global->stream);
734 parent->nb -= 4;
735
736 image->tex_scale_v = scale;
737#if DEBUG > 3
738 g_debug("[3DS] scale_v: %f", image->tex_scale_v);
739#endif
740
741 return TRUE;
742}
743
744/* material */
745gboolean x3ds_cb_0xAFFF(x3ds_global_data *global, x3ds_parent_data *parent)
746{
747 G3DMaterial *material;
748 G3DObject *object;
749
750 material = g3d_material_new();
751
752 if(parent->object)
753 {
754 object = (G3DObject *)parent->object;
755 object->materials = g_slist_append(object->materials, material);
756 }
757 else
758 {
759 global->model->materials = g_slist_append(global->model->materials,
760 material);
761 }
762
763 parent->object = material;
764
765 return TRUE;
766}
767
768/* keyframe data header */
769gboolean x3ds_cb_0xB00A(x3ds_global_data *global, x3ds_parent_data *parent)
770{
771 gint32 rev, len;
772 gchar buffer[512];
773
774 rev = g3d_stream_read_int16_le(global->stream);
775 parent->nb -= 2;
776 parent->nb -= x3ds_read_cstr(global->stream, buffer);
777 len = g3d_stream_read_int16_le(global->stream);
778 parent->nb -= 2;
779
780#if DEBUG > 0
781 g_debug("[3DS] keyframe data: r%d, %d frames, \"%s\"",
782 rev, len, buffer);
783#endif
784 return TRUE;
785}
786
787/* node header */
788gboolean x3ds_cb_0xB010(x3ds_global_data *global, x3ds_parent_data *parent)
789{
790 GSList *olist;
791 G3DObject *object;
792 gchar buffer[512];
793
794 parent->nb -= x3ds_read_cstr(global->stream, buffer);
795#if DEBUG > 3
796 g_debug("[3DS] NODE_HDR: %s", buffer);
797#endif
798
799 /* find object by name */
800 olist = global->model->objects;
801 while(olist)
802 {
803 object = (G3DObject *)olist->data;
804 if(strcmp(object->name, buffer) == 0)
805 {
806 parent->level_object = object;
807 break;
808 }
809 olist = olist->next;
810 }
811
812 g3d_stream_read_int16_le(global->stream); /* flags 1 */
813 g3d_stream_read_int16_le(global->stream); /* flags 2 */
814 g3d_stream_read_int16_le(global->stream); /* ? */
815 parent->nb -= 6;
816
817 return TRUE;
818}
819
820/* pivot */
821gboolean x3ds_cb_0xB013(x3ds_global_data *global, x3ds_parent_data *parent)
822{
823 G3DObject *object;
824#if 0
825 gint32 i;
826#endif
827 G3DFloat x, y, z;
828
829 object = parent->level_object;
830 if(object == NULL) return FALSE;
831
832 x = g3d_stream_read_float_le(global->stream);
833 y = g3d_stream_read_float_le(global->stream);
834 z = g3d_stream_read_float_le(global->stream);
835 parent->nb -= 12;
836
837#if DEBUG > 3
838 g_debug("[3DS]: PIVOT: (%.2f,%.2f,%.2f)", x, y, z);
839#endif
840
841 return TRUE;
842}
843
844#define X3DS_ENABLE_POS_TRACK_TAG 0
845
846/* position tracking tag */
847gboolean x3ds_cb_0xB020(x3ds_global_data *global, x3ds_parent_data *parent)
848{
849 G3DObject *object;
850 gint32 i, flags, fflags, nkeys, fnum;
851#if X3DS_ENABLE_POS_TRACK_TAG
852 gint32 j;
853#endif
854 G3DFloat x, y, z;
855
856 object = parent->level_object;
857 if(object == NULL) return FALSE;
858
859 flags = g3d_stream_read_int16_le(global->stream);
860 g3d_stream_skip(global->stream, 8);
861 nkeys = g3d_stream_read_int32_le(global->stream);
862
863 parent->nb -= 14;
864
865 for(i = 0; i < nkeys; i ++)
866 {
867 fnum = g3d_stream_read_int32_le(global->stream);
868 fflags = g3d_stream_read_int16_le(global->stream);
869 parent->nb -= 6;
870
871 if(fflags & X3DS_FLAG_TENSION)
872 {
873 g3d_stream_read_float_le(global->stream);
874 parent->nb -= 4;
875 }
876 if(fflags & X3DS_FLAG_CONTINUITY)
877 {
878 g3d_stream_read_float_le(global->stream);
879 parent->nb -= 4;
880 }
881 if(fflags & X3DS_FLAG_BIAS)
882 {
883 g3d_stream_read_float_le(global->stream);
884 parent->nb -= 4;
885 }
886 if(fflags & X3DS_FLAG_EASE_TO)
887 {
888 g3d_stream_read_float_le(global->stream);
889 parent->nb -= 4;
890 }
891 if(fflags & X3DS_FLAG_EASE_FROM)
892 {
893 g3d_stream_read_float_le(global->stream);
894 parent->nb -= 4;
895 }
896
897 x = g3d_stream_read_float_le(global->stream);
898 y = g3d_stream_read_float_le(global->stream);
899 z = g3d_stream_read_float_le(global->stream);
900 parent->nb -= 12;
901#if DEBUG > 3
902 g_debug("[3DS]: POS_TRACK_TAG: frame %d: (%.2f,%.2f,%.2f) (0x%X) "
903 "object: %s",
904 fnum, x, y, z, fflags, object->name);
905#endif
906
907#if X3DS_ENABLE_POS_TRACK_TAG
908 if(fnum == 0)
909 {
910#if 1
911 for(j = 0; j < object->vertex_count; j ++)
912 {
913 object->vertex_data[j * 3 + 0] -= x;
914 object->vertex_data[j * 3 + 1] -= y;
915 object->vertex_data[j * 3 + 2] -= z;
916 }
917#endif
918 }
919#endif
920 }
921
922 return TRUE;
923}
924
925/* rotation tracking tag */
926gboolean x3ds_cb_0xB021(x3ds_global_data *global, x3ds_parent_data *parent)
927{
928 G3DObject *object;
929 gint32 i, j, flags, nkeys, fnum;
930 G3DFloat x, y, z, rot;
931 G3DFloat matrix[16];
932
933 object = parent->level_object;
934 if(object == NULL) return FALSE;
935
936 flags = g3d_stream_read_int16_le(global->stream);
937 g3d_stream_skip(global->stream, 8);
938 nkeys = g3d_stream_read_int16_le(global->stream);
939 g3d_stream_read_int16_le(global->stream);
940 parent->nb -= 14;
941
942 for(i = 0; i < nkeys; i ++)
943 {
944 fnum = g3d_stream_read_int16_le(global->stream);
945 g3d_stream_read_int32_le(global->stream);
946 parent->nb -= 6;
947
948 rot = g3d_stream_read_float_le(global->stream);
949 x = g3d_stream_read_float_le(global->stream);
950 y = g3d_stream_read_float_le(global->stream);
951 z = g3d_stream_read_float_le(global->stream);
952 parent->nb -= 16;
953#if DEBUG > 3
954 g_debug(
955 "[3DS]: ROT_TRACK_TAG: frame %d: (%.2f,%.2f,%.2f), %.2f rad",
956 fnum, x, y, z, rot);
957#endif
958 if(fnum == -1)
959 {
960#if 1
961 g3d_matrix_identity(matrix);
962 g3d_matrix_rotate(rot, x, y, z, matrix);
963
964 for(j = 0; j < object->vertex_count; j ++)
965 {
966 g3d_vector_transform(
967 &(object->vertex_data[j * 3 + 0]),
968 &(object->vertex_data[j * 3 + 1]),
969 &(object->vertex_data[j * 3 + 2]),
970 matrix);
971 }
972#endif
973 }
974 }
975
976 return TRUE;
977
978}
979
980/* node id */
981gboolean x3ds_cb_0xB030(x3ds_global_data *global, x3ds_parent_data *parent)
982{
983 gint32 id;
984
985 id = g3d_stream_read_int16_le(global->stream);
986 parent->nb -= 2;
987#if DEBUG > 3
988 g_debug("[3DS] NODE_ID: %d", id);
989#endif
990
991 return TRUE;
992}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds_callbacks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds_callbacks.h
new file mode 100644
index 0000000..f548bea
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds_callbacks.h
@@ -0,0 +1,56 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_3DS_CALLBACKS_H
23#define _IMP_3DS_CALLBACKS_H
24
25#include "imp_3ds.h"
26
27gboolean x3ds_cb_0x0002(x3ds_global_data *global, x3ds_parent_data *parent);
28gboolean x3ds_cb_0x0010(x3ds_global_data *global, x3ds_parent_data *parent);
29gboolean x3ds_cb_0x0011(x3ds_global_data *global, x3ds_parent_data *parent);
30gboolean x3ds_cb_0x0030(x3ds_global_data *global, x3ds_parent_data *parent);
31gboolean x3ds_cb_0x0031(x3ds_global_data *global, x3ds_parent_data *parent);
32gboolean x3ds_cb_0x0100(x3ds_global_data *global, x3ds_parent_data *parent);
33
34gboolean x3ds_cb_0x4000(x3ds_global_data *global, x3ds_parent_data *parent);
35gboolean x3ds_cb_0x4110(x3ds_global_data *global, x3ds_parent_data *parent);
36gboolean x3ds_cb_0x4120(x3ds_global_data *global, x3ds_parent_data *parent);
37gboolean x3ds_cb_0x4130(x3ds_global_data *global, x3ds_parent_data *parent);
38gboolean x3ds_cb_0x4140(x3ds_global_data *global, x3ds_parent_data *parent);
39gboolean x3ds_cb_0x4150(x3ds_global_data *global, x3ds_parent_data *parent);
40gboolean x3ds_cb_0x4160(x3ds_global_data *global, x3ds_parent_data *parent);
41
42gboolean x3ds_cb_0xA000(x3ds_global_data *global, x3ds_parent_data *parent);
43gboolean x3ds_cb_0xA081(x3ds_global_data *global, x3ds_parent_data *parent);
44gboolean x3ds_cb_0xA300(x3ds_global_data *global, x3ds_parent_data *parent);
45gboolean x3ds_cb_0xA354(x3ds_global_data *global, x3ds_parent_data *parent);
46gboolean x3ds_cb_0xA356(x3ds_global_data *global, x3ds_parent_data *parent);
47gboolean x3ds_cb_0xAFFF(x3ds_global_data *global, x3ds_parent_data *parent);
48
49gboolean x3ds_cb_0xB00A(x3ds_global_data *global, x3ds_parent_data *parent);
50gboolean x3ds_cb_0xB010(x3ds_global_data *global, x3ds_parent_data *parent);
51gboolean x3ds_cb_0xB013(x3ds_global_data *global, x3ds_parent_data *parent);
52gboolean x3ds_cb_0xB020(x3ds_global_data *global, x3ds_parent_data *parent);
53gboolean x3ds_cb_0xB021(x3ds_global_data *global, x3ds_parent_data *parent);
54gboolean x3ds_cb_0xB030(x3ds_global_data *global, x3ds_parent_data *parent);
55
56#endif /* _IMP_3DS_CALLBACKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds_chunks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds_chunks.h
new file mode 100644
index 0000000..0c4cd54
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds_chunks.h
@@ -0,0 +1,210 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_3DS_CHUNKS_H
23#define _IMP_3DS_CHUNKS_H
24
25#include <glib.h>
26
27#include "imp_3ds_callbacks.h"
28
29typedef struct {
30 guint32 id;
31 char *desc;
32 gboolean container;
33 x3ds_callback callback;
34} x3ds_chunk_desc;
35
36static x3ds_chunk_desc x3ds_chunks[] = {
37 { 0x0002, "M3D version", 0, x3ds_cb_0x0002 },
38 { 0x0001, "(unknown)", 0, NULL },
39 { 0x0010, "color (float)", 0, x3ds_cb_0x0010 },
40 { 0x0011, "color (24 bit)", 0, x3ds_cb_0x0011 },
41 { 0x0012, "line color (24 bit)", 0, NULL },
42 { 0x0013, "line color (float)", 0, NULL },
43 { 0x0030, "percentage (short)", 0, x3ds_cb_0x0030 },
44 { 0x0031, "percentage (float)", 0, x3ds_cb_0x0031 },
45 { 0x0100, "global scale", 0, NULL },
46
47 { 0x1100, "BIT_MAP", 0, NULL },
48 { 0x1101, "USE_BIT_MAP", 0, NULL },
49 { 0x1200, "SOLID_BGND", 1, NULL },
50 { 0x1201, "USE_SOLID_BGND", 0, NULL },
51 { 0x1300, "V_GRADIENT", 0, NULL },
52 { 0x1301, "USE_V_GRADIENT", 0, NULL },
53 { 0x1400, "LO_SHADOW_BIAS", 0, NULL },
54 { 0x1410, "HI_SHADOW_BIAS", 0, NULL },
55 { 0x1420, "SHADOW_MAP_SIZE", 0, NULL },
56 { 0x1430, "SHADOW_SAMPLES", 0, NULL },
57 { 0x1440, "SHADOW_RANGE", 0, NULL },
58 { 0x1450, "SHADOW_FILTER", 0, NULL },
59 { 0x1460, "RAY_BIAS", 0, NULL },
60 { 0x1500, "O_CONSTS", 0, NULL },
61
62 { 0x2100, "AMBIENT_LIGHT", 0, NULL },
63 { 0x2200, "FOG", 0, NULL },
64 { 0x2300, "DISTANCE_CUE", 0, NULL },
65 { 0x2301, "USE_DISTANCE_CUE", 0, NULL },
66 { 0x2302, "LAYER_FOG", 0, NULL },
67 { 0x2D2D, "SMAGIC", 0, NULL },
68 { 0x2D3D, "LMAGIC", 0, NULL },
69
70 { 0x3000, "default view", 1, NULL },
71 { 0x3010, "VIEW_TOP", 0, NULL },
72 { 0x3020, "VIEW_BOTTOM", 0, NULL },
73 { 0x3030, "VIEW_LEFT", 0, NULL },
74 { 0x3040, "VIEW_RIGHT", 0, NULL },
75 { 0x3050, "VIEW_FRONT", 0, NULL },
76 { 0x3060, "VIEW_BACK", 0, NULL },
77 { 0x3070, "VIEW_USER", 0, NULL },
78 { 0x3080, "VIEW_CAMERA", 0, NULL },
79 { 0x3090, "VIEW_WINDOW", 0, NULL },
80 { 0x3D3D, "mesh", 1, NULL },
81 { 0x3D3E, "mesh version", 0, NULL },
82
83 { 0x4000, "named object", 1, x3ds_cb_0x4000 },
84 { 0x4010, "object hidden", 0, NULL },
85 { 0x4011, "object vis lofter", 0, NULL },
86 { 0x4012, "object doesnt cast", 0, NULL },
87 { 0x4013, "object matte", 0, NULL },
88 { 0x4014, "object fast", 0, NULL },
89 { 0x4015, "object procedural", 0, NULL },
90 { 0x4016, "object frozen", 0, NULL },
91 { 0x4017, "object dont recv shadow", 0, NULL },
92 { 0x4100, "triangle object", 1, NULL },
93 { 0x4110, "point array", 0, x3ds_cb_0x4110 },
94 { 0x4111, "point flag array", 0, NULL },
95 { 0x4120, "face array", 1, x3ds_cb_0x4120 },
96 { 0x4130, "mesh mat group", 0, x3ds_cb_0x4130 },
97 { 0x4140, "texture vertices", 0, x3ds_cb_0x4140 },
98 { 0x4150, "smooth group", 0, x3ds_cb_0x4150 },
99 { 0x4160, "mesh matrix", 0, x3ds_cb_0x4160 },
100 { 0x4165, "mesh color", 0, NULL },
101 { 0x4170, "texture info", 0, NULL },
102 { 0x4600, "N_DIRECT_LIGHT", 0, NULL },
103 { 0x4700, "N_CAMERA", 0, NULL },
104
105 { 0x7001, "VIEWPORT_LAYOUT", 0, NULL },
106
107 { 0x8000, "XDATA_SECTION", 0, NULL },
108
109 { 0xA000, "material name", 0, x3ds_cb_0xA000 },
110 { 0xA010, "ambient color", 1, NULL },
111 { 0xA020, "diffuse color", 1, NULL },
112 { 0xA030, "specular color", 1, NULL },
113 { 0xA040, "shininess", 1, NULL },
114 { 0xA041, "shininess (2)", 1, NULL },
115 { 0xA042, "shininess (3)", 1, NULL },
116 { 0xA050, "transparency", 1, NULL },
117 { 0xA052, "fallthrough", 1, NULL },
118 { 0xA053, "blur", 1, NULL },
119 { 0xA081, "two-sided", 0, x3ds_cb_0xA081 },
120 { 0xA082, "decal", 0, NULL },
121 { 0xA083, "additive", 0, NULL },
122 { 0xA084, "self illumination", 1, NULL },
123 { 0xA085, "wire", 0, NULL },
124 { 0xA086, "super-sampling", 0, NULL },
125 { 0xA087, "wire size", 0, NULL },
126 { 0xA088, "MAT_FACEMAP", 0, NULL },
127 { 0xA08A, "MAT_XPFALLIN", 0, NULL },
128 { 0xA08C, "MAT_PHONGSOFT", 0, NULL },
129 { 0xA08E, "MAT_WIREABS", 0, NULL },
130 { 0xA100, "shading", 0, NULL },
131 { 0xA200, "texture map", 1, NULL },
132 { 0xA204, "spec map", 1, NULL },
133 { 0xA210, "opacity map", 1, NULL },
134 { 0xA220, "reflection map", 1, NULL },
135 { 0xA230, "bump map", 1, NULL },
136 { 0xA240, "mat use xpfall", 0, NULL },
137 { 0xA250, "mat use refblur", 0, NULL },
138 { 0xA252, "bump percentage", 0, NULL },
139 { 0xA300, "texture map name", 0, x3ds_cb_0xA300 },
140 { 0xA310, "MAT_ACUBIC", 0, NULL },
141 { 0xA320, "MAT_SXP_TEXT_DATA", 0, NULL },
142 { 0xA324, "MAT_SXP_BUMP_DATA", 0, NULL },
143 { 0xA33A, "MAT_TEX2MAP", 0, NULL },
144 { 0xA351, "texture map tiling", 0, NULL },
145 { 0xA352, "texture map blurring (old)", 0, NULL },
146 { 0xA353, "texture map blurring", 0, NULL },
147 { 0xA354, "texture map scale u", 0, x3ds_cb_0xA354 },
148 { 0xA356, "texture map scale v", 0, x3ds_cb_0xA356 },
149 { 0xA358, "texture map offset u", 0, NULL },
150 { 0xA35A, "texture map offset v", 0, NULL },
151 { 0xAFFF, "material", 1, x3ds_cb_0xAFFF },
152
153 { 0xB000, "keyframe data", 1, NULL },
154 { 0xB001, "ambient data node", 1, NULL },
155 { 0xB002, "object node", 1, NULL },
156 { 0xB003, "camera node", 1, NULL },
157 { 0xB004, "target node", 1, NULL },
158 { 0xB005, "light node", 1, NULL },
159 { 0xB006, "L_TARGET_NODE_TAG", 1, NULL },
160 { 0xB007, "spotlight node", 1, NULL },
161 { 0xB008, "KFSEG", 0, NULL },
162 { 0xB009, "KFCURTIME", 0, NULL },
163 { 0xB00A, "keyframe data header", 0, x3ds_cb_0xB00A },
164 { 0xB010, "node header", 0, x3ds_cb_0xB010 },
165 { 0xB011, "instance name", 0, NULL },
166 { 0xB012, "PRESCALE", 0, NULL },
167 { 0xB013, "pivot", 0, x3ds_cb_0xB013 },
168 { 0xB014, "bounding box", 0, NULL },
169 { 0xB015, "MORPH_SMOOTH", 0, NULL },
170 { 0xB020, "position tracking tag", 0, x3ds_cb_0xB020 },
171 { 0xB021, "rotation tracking tag", 0, x3ds_cb_0xB021 },
172 { 0xB022, "scale tracking tag", 0, NULL },
173 { 0xB023, "FOV_TRACK_TAG", 0, NULL },
174 { 0xB024, "ROLL_TRACK_TAG", 0, NULL },
175 { 0xB025, "COL_TRACK_TAG", 0, NULL },
176 { 0xB026, "MORPH_TRACK_TAG", 0, NULL },
177 { 0xB027, "HOT_TRACK_TAG", 0, NULL },
178 { 0xB028, "FALL_TRACK_TAG", 0, NULL },
179 { 0xB029, "HIDE_TRACK_TAG", 0, NULL },
180 { 0xB030, "node identification", 0, x3ds_cb_0xB030 },
181
182 { 0xC010, "C_MDRAWER", 0, NULL },
183 { 0xC030, "C_SHPDRAWER", 0, NULL },
184 { 0xC040, "C_MODDRAWER", 0, NULL },
185 { 0xC060, "C_TXDRAWER", 0, NULL },
186 { 0xC064, "C_MTLDRAWER", 0, NULL },
187 { 0xC066, "C_FLIDRAWER", 0, NULL },
188 { 0xC067, "C_CUBDRAWER", 0, NULL },
189 { 0xC070, "C_MFILE", 0, NULL },
190 { 0xC080, "C_SHPFILE", 0, NULL },
191 { 0xC090, "C_MODFILE", 0, NULL },
192 { 0xC0B0, "C_TXFILE", 0, NULL },
193 { 0xC0B4, "C_MTLFILE", 0, NULL },
194 { 0xC0B6, "C_FLIFILE", 0, NULL },
195 { 0xC0B8, "C_PALFILE", 0, NULL },
196 { 0xC0C0, "C_TX_STRING", 0, NULL },
197 { 0xC0D0, "C_CONSTS", 0, NULL },
198 { 0xC0E0, "C_SNAPS", 0, NULL },
199 { 0xC0F0, "C_GRIDS", 0, NULL },
200 { 0xC100, "C_ASNAPS", 0, NULL },
201 { 0xC25B, "C_BITMAP_DRAWER", 0, NULL },
202 { 0xC525, "C_CUR_MNAME", 0, NULL },
203 { 0xCA00, "C_MAPDRAWER", 0, NULL },
204
205 { 0xD000, "VPDATA", 0, NULL },
206
207 { 0x0000, NULL, 0, NULL }
208};
209
210#endif
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile
new file mode 100644
index 0000000..a805d5a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_ac3d/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_ac3d
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_ac3d_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_ac3d_la_OBJECTS = imp_ac3d.lo
59imp_ac3d_la_OBJECTS = $(am_imp_ac3d_la_OBJECTS)
60DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_ac3d_la_SOURCES)
73DIST_SOURCES = $(imp_ac3d_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
78AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
79AR = ar
80AS = as
81AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
82AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
83AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
84AWK = gawk
85CC = gcc
86CCDEPMODE = depmode=gcc3
87CFLAGS = -g -O2
88CPP = gcc -E
89CPPFLAGS =
90CXX = g++
91CXXCPP = g++ -E
92CXXDEPMODE = depmode=gcc3
93CXXFLAGS = -g -O2
94CYGPATH_W = echo
95DBG_CFLAGS = -O2
96DEBUG = 0
97DEFS = -DHAVE_CONFIG_H
98DEPDIR = .deps
99DLLTOOL = dlltool
100ECHO = echo
101ECHO_C =
102ECHO_N = -n
103ECHO_T =
104EGREP = /bin/grep -E
105EXEEXT =
106F77 =
107FFLAGS =
108GDKPIXBUF_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
109GDKPIXBUF_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
110GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
111GLIB_GENMARSHAL = glib-genmarshal
112GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
113GLIB_MKENUMS = glib-mkenums
114GOBJECT_QUERY = gobject-query
115GREP = /bin/grep
116GTKDOC_CHECK = /usr/bin/gtkdoc-check
117GTK_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
118GTK_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
119HTML_DIR = ${datadir}/gtk-doc/html
120INSTALL = /usr/bin/install -c
121INSTALL_DATA = ${INSTALL} -m 644
122INSTALL_PROGRAM = ${INSTALL}
123INSTALL_SCRIPT = ${INSTALL}
124INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
125LDFLAGS =
126LEX = flex
127LEXLIB = -lfl
128LEX_OUTPUT_ROOT = lex.yy
129LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
130LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
131LIBOBJS =
132LIBS = -lm
133LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
134LIBXML2_CFLAGS = -I/usr/include/libxml2
135LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
136LN_S = ln -s
137LTLIBOBJS =
138LTVERSION = 0:8:0
139MAGIC_LIBS = -lmagic
140MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
141MATH_LIBS = -lm
142MKDIR_P = /bin/mkdir -p
143OBJDUMP = objdump
144OBJEXT = o
145PACKAGE = libg3d
146PACKAGE_BUGREPORT =
147PACKAGE_NAME =
148PACKAGE_STRING =
149PACKAGE_TARNAME =
150PACKAGE_VERSION =
151PATH_SEPARATOR = :
152PKG_CONFIG = /usr/bin/pkg-config
153PLUGINS_LDFLAGS = -avoid-version -export-dynamic
154RANLIB = ranlib
155SET_MAKE =
156SHELL = /bin/bash
157STRIP = strip
158VERSION = 0.0.8
159XML2_CONFIG = /usr/bin/xml2-config
160XML_CPPFLAGS = -I/usr/include/libxml2
161XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
162Z_CFLAGS =
163Z_LIBS = -lz
164abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d
165abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d
166abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
167abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168ac_ct_CC = gcc
169ac_ct_CXX = g++
170ac_ct_F77 =
171am__include = include
172am__leading_dot = .
173am__quote =
174am__tar = ${AMTAR} chof - "$$tardir"
175am__untar = ${AMTAR} xf -
176bindir = ${exec_prefix}/bin
177build = x86_64-unknown-linux-gnu
178build_alias =
179build_cpu = x86_64
180build_os = linux-gnu
181build_vendor = unknown
182builddir = .
183datadir = ${datarootdir}
184datarootdir = ${prefix}/share
185docdir = ${datarootdir}/doc/${PACKAGE}
186dvidir = ${docdir}
187exec_prefix = ${prefix}
188host = x86_64-unknown-linux-gnu
189host_alias =
190host_cpu = x86_64
191host_os = linux-gnu
192host_vendor = unknown
193htmldir = ${docdir}
194includedir = ${prefix}/include
195infodir = ${datarootdir}/info
196install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
197libdir = ${exec_prefix}/lib
198libexecdir = ${exec_prefix}/libexec
199localedir = ${datarootdir}/locale
200localstatedir = ${prefix}/var
201mandir = ${datarootdir}/man
202mkdir_p = /bin/mkdir -p
203oldincludedir = /usr/include
204pdfdir = ${docdir}
205prefix = /usr/local
206program_transform_name = s,x,x,
207psdir = ${docdir}
208sbindir = ${exec_prefix}/sbin
209sharedstatedir = ${prefix}/com
210srcdir = .
211sysconfdir = ${prefix}/etc
212target_alias =
213top_builddir = ../../..
214top_srcdir = ../../..
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_ac3d.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 -O2 -DDEBUG=0 \
221 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 -avoid-version -export-dynamic
227
228imp_ac3d_la_SOURCES = imp_ac3d.c
229imp_ac3d_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_ac3d/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_ac3d/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_ac3d.la: $(imp_ac3d_la_OBJECTS) $(imp_ac3d_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_ac3d_la_OBJECTS) $(imp_ac3d_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299include ./$(DEPDIR)/imp_ac3d.Plo
300
301.c.o:
302 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304# source='$<' object='$@' libtool=no \
305# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
306# $(COMPILE) -c $<
307
308.c.obj:
309 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311# source='$<' object='$@' libtool=no \
312# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
313# $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318# source='$<' object='$@' libtool=yes \
319# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
320# $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile.am
new file mode 100644
index 0000000..e8833ec
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile.am
@@ -0,0 +1,20 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_ac3d.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_ac3d_la_SOURCES = imp_ac3d.c
20imp_ac3d_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile.in
new file mode 100644
index 0000000..271bde9
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile.in
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_ac3d
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_ac3d_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_ac3d_la_OBJECTS = imp_ac3d.lo
59imp_ac3d_la_OBJECTS = $(am_imp_ac3d_la_OBJECTS)
60DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_ac3d_la_SOURCES)
73DIST_SOURCES = $(imp_ac3d_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = @ACLOCAL@
78AMTAR = @AMTAR@
79AR = @AR@
80AS = @AS@
81AUTOCONF = @AUTOCONF@
82AUTOHEADER = @AUTOHEADER@
83AUTOMAKE = @AUTOMAKE@
84AWK = @AWK@
85CC = @CC@
86CCDEPMODE = @CCDEPMODE@
87CFLAGS = @CFLAGS@
88CPP = @CPP@
89CPPFLAGS = @CPPFLAGS@
90CXX = @CXX@
91CXXCPP = @CXXCPP@
92CXXDEPMODE = @CXXDEPMODE@
93CXXFLAGS = @CXXFLAGS@
94CYGPATH_W = @CYGPATH_W@
95DBG_CFLAGS = @DBG_CFLAGS@
96DEBUG = @DEBUG@
97DEFS = @DEFS@
98DEPDIR = @DEPDIR@
99DLLTOOL = @DLLTOOL@
100ECHO = @ECHO@
101ECHO_C = @ECHO_C@
102ECHO_N = @ECHO_N@
103ECHO_T = @ECHO_T@
104EGREP = @EGREP@
105EXEEXT = @EXEEXT@
106F77 = @F77@
107FFLAGS = @FFLAGS@
108GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
109GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
110GLIB_CFLAGS = @GLIB_CFLAGS@
111GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
112GLIB_LIBS = @GLIB_LIBS@
113GLIB_MKENUMS = @GLIB_MKENUMS@
114GOBJECT_QUERY = @GOBJECT_QUERY@
115GREP = @GREP@
116GTKDOC_CHECK = @GTKDOC_CHECK@
117GTK_CFLAGS = @GTK_CFLAGS@
118GTK_LIBS = @GTK_LIBS@
119HTML_DIR = @HTML_DIR@
120INSTALL = @INSTALL@
121INSTALL_DATA = @INSTALL_DATA@
122INSTALL_PROGRAM = @INSTALL_PROGRAM@
123INSTALL_SCRIPT = @INSTALL_SCRIPT@
124INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125LDFLAGS = @LDFLAGS@
126LEX = @LEX@
127LEXLIB = @LEXLIB@
128LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
129LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
130LIBGSF_LIBS = @LIBGSF_LIBS@
131LIBOBJS = @LIBOBJS@
132LIBS = @LIBS@
133LIBTOOL = @LIBTOOL@ --quiet
134LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
135LIBXML2_LIBS = @LIBXML2_LIBS@
136LN_S = @LN_S@
137LTLIBOBJS = @LTLIBOBJS@
138LTVERSION = @LTVERSION@
139MAGIC_LIBS = @MAGIC_LIBS@
140MAKEINFO = @MAKEINFO@
141MATH_LIBS = @MATH_LIBS@
142MKDIR_P = @MKDIR_P@
143OBJDUMP = @OBJDUMP@
144OBJEXT = @OBJEXT@
145PACKAGE = @PACKAGE@
146PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147PACKAGE_NAME = @PACKAGE_NAME@
148PACKAGE_STRING = @PACKAGE_STRING@
149PACKAGE_TARNAME = @PACKAGE_TARNAME@
150PACKAGE_VERSION = @PACKAGE_VERSION@
151PATH_SEPARATOR = @PATH_SEPARATOR@
152PKG_CONFIG = @PKG_CONFIG@
153PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
154RANLIB = @RANLIB@
155SET_MAKE = @SET_MAKE@
156SHELL = @SHELL@
157STRIP = @STRIP@
158VERSION = @VERSION@
159XML2_CONFIG = @XML2_CONFIG@
160XML_CPPFLAGS = @XML_CPPFLAGS@
161XML_LIBS = @XML_LIBS@
162Z_CFLAGS = @Z_CFLAGS@
163Z_LIBS = @Z_LIBS@
164abs_builddir = @abs_builddir@
165abs_srcdir = @abs_srcdir@
166abs_top_builddir = @abs_top_builddir@
167abs_top_srcdir = @abs_top_srcdir@
168ac_ct_CC = @ac_ct_CC@
169ac_ct_CXX = @ac_ct_CXX@
170ac_ct_F77 = @ac_ct_F77@
171am__include = @am__include@
172am__leading_dot = @am__leading_dot@
173am__quote = @am__quote@
174am__tar = @am__tar@
175am__untar = @am__untar@
176bindir = @bindir@
177build = @build@
178build_alias = @build_alias@
179build_cpu = @build_cpu@
180build_os = @build_os@
181build_vendor = @build_vendor@
182builddir = @builddir@
183datadir = @datadir@
184datarootdir = @datarootdir@
185docdir = @docdir@
186dvidir = @dvidir@
187exec_prefix = @exec_prefix@
188host = @host@
189host_alias = @host_alias@
190host_cpu = @host_cpu@
191host_os = @host_os@
192host_vendor = @host_vendor@
193htmldir = @htmldir@
194includedir = @includedir@
195infodir = @infodir@
196install_sh = @install_sh@
197libdir = @libdir@
198libexecdir = @libexecdir@
199localedir = @localedir@
200localstatedir = @localstatedir@
201mandir = @mandir@
202mkdir_p = @mkdir_p@
203oldincludedir = @oldincludedir@
204pdfdir = @pdfdir@
205prefix = @prefix@
206program_transform_name = @program_transform_name@
207psdir = @psdir@
208sbindir = @sbindir@
209sharedstatedir = @sharedstatedir@
210srcdir = @srcdir@
211sysconfdir = @sysconfdir@
212target_alias = @target_alias@
213top_builddir = @top_builddir@
214top_srcdir = @top_srcdir@
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_ac3d.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
221 @GLIB_CFLAGS@
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 @PLUGINS_LDFLAGS@
227
228imp_ac3d_la_SOURCES = imp_ac3d.c
229imp_ac3d_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_ac3d/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_ac3d/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_ac3d.la: $(imp_ac3d_la_OBJECTS) $(imp_ac3d_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_ac3d_la_OBJECTS) $(imp_ac3d_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ac3d.Plo@am__quote@
300
301.c.o:
302@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
305@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
306@am__fastdepCC_FALSE@ $(COMPILE) -c $<
307
308.c.obj:
309@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
313@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
320@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/imp_ac3d.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/imp_ac3d.c
new file mode 100644
index 0000000..61199ae
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/imp_ac3d.c
@@ -0,0 +1,534 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <stdlib.h>
25#include <string.h>
26#include <locale.h>
27
28#include <glib.h>
29
30#include <g3d/types.h>
31#include <g3d/context.h>
32#include <g3d/stream.h>
33#include <g3d/material.h>
34#include <g3d/texture.h>
35#include <g3d/debug.h>
36
37#define AC3D_FLAG_ACC 0x01
38
39struct ac3d_transform {
40 G3DFloat offx, offy, offz;
41};
42
43static gint32 ac3d_read_object(G3DStream *stream, G3DContext *context,
44 G3DModel *model, gchar *line, struct ac3d_transform *transform,
45 guint32 flags, GSList **objectlist, gint32 *rowcnt, guint32 level);
46
47EAPI
48gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
49 G3DModel *model, gpointer user_data)
50{
51 struct ac3d_transform *transform;
52 gchar buffer[2049], namebuf[257], *filename;
53 guint32 version, ti1, flags = 0;
54 G3DMaterial *material;
55 G3DFloat tf1, tf2, tf3, tf4, tf5, tf6, trans;
56 gint32 rowcnt = 0;
57
58 setlocale(LC_NUMERIC, "C");
59
60 rowcnt ++;
61 g3d_stream_read_line(stream, buffer, 2048);
62
63 if(strncmp(buffer, "AC3D", 4) != 0)
64 {
65 g_warning("file is not a AC3D model");
66 return FALSE;
67 }
68
69 filename = g3d_stream_get_uri(stream);
70 if(g_ascii_strcasecmp(filename + strlen(filename) - 4, ".acc") == 0)
71 {
72#if DEBUG > 0
73 g_debug("AC3D: .acc file");
74#endif
75 flags |= AC3D_FLAG_ACC;
76 }
77
78 version = strtoul(buffer + 4, NULL, 16);
79
80#if DEBUG > 0
81 g_debug("AC3D: version %d", version);
82#endif
83
84 while(g3d_stream_read_line(stream, buffer, 2048))
85 {
86 rowcnt ++;
87 if(strncmp(buffer, "MATERIAL", 8) == 0)
88 {
89 material = g3d_material_new();
90 if(sscanf(buffer,
91 "MATERIAL %s "
92 "rgb " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " "
93 "amb " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " "
94 "emis " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " "
95 "spec %f %f %f "
96 "shi %u "
97 "trans " G3D_SCANF_FLOAT,
98 namebuf,
99 &(material->r), &(material->g), &(material->b),
100 &tf1, &tf2, &tf3,
101 &tf4, &tf5, &tf6,
102 &(material->specular[0]),
103 &(material->specular[1]),
104 &(material->specular[2]),
105 &ti1,
106 &trans) != 15)
107 {
108 g_warning("AC3D: error reading material line (%s)", buffer);
109 }
110
111 material->name = g_strdup(namebuf);
112 material->a = 1.0 - trans;
113
114 model->materials = g_slist_append(model->materials, material);
115 g_debug("\\(0) Material (line %d)", rowcnt);
116 }
117 else if(strncmp(buffer, "OBJECT", 6) == 0)
118 {
119 transform = g_new0(struct ac3d_transform, 1);
120 g_debug("\\(0) Object (line %d)", rowcnt);
121 ac3d_read_object(stream, context, model, buffer, transform, flags,
122 &(model->objects), &rowcnt, 1);
123 }
124 else
125 {
126#if DEBUG > 0
127 g_warning("AC3D: unhandled line: %s", buffer);
128#endif
129 }
130 }
131
132 return TRUE;
133}
134
135EAPI
136gchar *plugin_description(G3DContext *context)
137{
138 return g_strdup("AC3D models.");
139}
140
141EAPI
142gchar **plugin_extensions(G3DContext *context)
143{
144 return g_strsplit("ac:acc", ":", 0);
145}
146
147/*
148 * AC3D specific
149 */
150
151static gchar *ac3d_remove_quotes(gchar *text)
152{
153 if(text[0] == '"')
154 return g_strndup(text + 1, strlen(text) - 2);
155 else
156 return g_strdup(text);
157}
158
159/**
160 * ac3d_read_object:
161 * returns: number of objects (including sub-objects) read, 0 in case of
162 * error.
163 */
164
165static gint32 ac3d_read_object(G3DStream *stream, G3DContext *context,
166 G3DModel *model, gchar *line, struct ac3d_transform *parent_transform,
167 guint32 flags, GSList **objectlist, gint32 *rowcnt, guint32 level)
168{
169 struct ac3d_transform *transform;
170 G3DObject *object;
171 G3DMaterial *material = NULL;
172 G3DFace *face;
173 gchar buffer[2049], namebuf[257];
174 guint32 nkids, ti1, i, surf_flags, surf_done;
175 guint32 i1, i2, i3;
176 G3DFloat u1, u2, u3, v1, v2, v3;
177 G3DFloat locx = 0.0, locy = 0.0, locz = 0.0;
178 G3DFloat texrepu = 1.0, texrepv = 1.0, texoffu = 0.0, texoffv = 0.0;
179 G3DFloat texscaleu = 1.0, texscalev = 1.0;
180 G3DFloat crease = 0.0;
181 guint32 len, facecnt = 0;
182 gchar *filename;
183 gint32 kidsread, objectcount = 0;
184 G3DFloat pcnt, prev_pcnt = 0.0;
185
186 if(sscanf(line, "OBJECT %s", namebuf) != 1)
187 {
188 g_warning("AC3D: error reading object line (%s)", line);
189 }
190
191 transform = g_new0(struct ac3d_transform, 1);
192 memcpy(transform, parent_transform, sizeof(struct ac3d_transform));
193
194 object = g_new0(G3DObject, 1);
195 objectcount ++;
196 *(objectlist) = g_slist_append(*(objectlist), object);
197
198 while(g3d_stream_read_line(stream, buffer, 2048))
199 {
200 *rowcnt += 1;
201 if(strncmp(buffer, "kids", 4) == 0)
202 {
203 /* final line of object */
204 if(sscanf(buffer, "kids %u", &nkids) != 1)
205 {
206 g_warning("AC3D: error reading kids line (%s)", buffer);
207 return 0;
208 }
209 for(i = 0; i < nkids; i ++)
210 {
211 /* read kids */
212 *rowcnt += 1;
213 g3d_stream_read_line(stream, buffer, 2048);
214#if DEBUG > 0
215 g_debug("\\%s(%d) Object (line %d)", debug_pad(level),
216 level, *rowcnt);
217#endif
218 kidsread = ac3d_read_object(stream, context, model, buffer,
219 transform, flags, &(object->objects), rowcnt, level + 1);
220 objectcount += kidsread;
221 }
222
223#if DEBUG > 0
224 g_debug("AC3D: \"%s\": %d sub-objects read",
225 object->name ? object->name : "unnamed",
226 objectcount - 1);
227#endif
228
229 if(crease > 0.0)
230 {
231 /* doesn't really work */
232#if 0
233 g3d_object_smooth(object, crease);
234#endif
235 }
236 return objectcount;
237 }
238 else if(strncmp(buffer, "name", 4) == 0)
239 {
240 if(sscanf(buffer, "name %s", namebuf) != 1)
241 {
242 g_warning("AC3D: error reading name line (%s)", buffer);
243 }
244 else
245 {
246 object->name = g_strdup(namebuf);
247 }
248 }
249 else if(strncmp(buffer, "loc", 3) == 0)
250 {
251 if(sscanf(buffer, "loc " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &locx, &locy, &locz) != 3)
252 {
253 g_warning("AC3D: error reading loc line (%s)", buffer);
254 locx = locy = locz = 0.0;
255 }
256
257 transform->offx += locx;
258 transform->offy += locy;
259 transform->offz += locz;
260 }
261 else if(strncmp(buffer, "numvert", 7) == 0)
262 {
263 if(sscanf(buffer, "numvert %u", &(object->vertex_count)) != 1)
264 {
265 g_warning("AC3D: error reading numvert line (%s)", buffer);
266 object->vertex_count = 0;
267 }
268 else
269 {
270 object->vertex_data =
271 g_new0(G3DFloat, object->vertex_count * 3);
272 for(i = 0; i < object->vertex_count; i ++)
273 {
274 if(g3d_stream_read_line(stream, buffer, 2048))
275 {
276 *rowcnt += 1;
277 if(sscanf(buffer, G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT,
278 &(object->vertex_data[i * 3 + 0]),
279 &(object->vertex_data[i * 3 + 1]),
280 &(object->vertex_data[i * 3 + 2])) != 3)
281 {
282 g_warning("AC3D: error reading vertex (%s)",
283 buffer);
284 }
285
286 object->vertex_data[i * 3 + 0] += transform->offx;
287 object->vertex_data[i * 3 + 1] += transform->offy;
288 object->vertex_data[i * 3 + 2] += transform->offz;
289 }
290 }
291 }
292 /* END numvert */
293 }
294 else if(strncmp(buffer, "numsurf", 7) == 0)
295 {
296 /* ignore for now */
297 }
298 else if(strncmp(buffer, "SURF", 4) == 0)
299 {
300 surf_done = 0;
301
302 if(sscanf(buffer, "SURF %x", &surf_flags) != 1)
303 {
304 g_warning("AC3D: error reading surf (%s)", buffer);
305 }
306
307 while(!surf_done)
308 {
309 if(!g3d_stream_read_line(stream, buffer, 2048))
310 return 0;
311 *rowcnt += 1;
312
313 if(sscanf(buffer, "refs %u", &ti1) == 1)
314 {
315 if(!(flags & AC3D_FLAG_ACC))
316 {
317 face = g_new0(G3DFace, 1);
318 face->vertex_count = ti1;
319 face->vertex_indices =
320 g_new0(guint32, face->vertex_count);
321 face->material = material;
322
323 face->tex_image = object->tex_image;
324 if(face->tex_image)
325 {
326 face->flags |= G3D_FLAG_FAC_TEXMAP;
327 }
328
329 face->tex_vertex_count = ti1;
330 face->tex_vertex_data =
331 g_new0(G3DFloat, 2 * face->tex_vertex_count);
332
333 /* normal face */
334 for(i = 0; i < face->vertex_count; i ++)
335 {
336 if(!g3d_stream_read_line(stream, buffer, 2048))
337 return 0;
338 *rowcnt += 1;
339
340 if(sscanf(buffer, "%u " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT,
341 &(face->vertex_indices[i]),
342 &(face->tex_vertex_data[i * 2 + 0]),
343 &(face->tex_vertex_data[i * 2 + 1])) != 3)
344 {
345 g_warning(
346 "AC3D: error reading vertex index (%s)",
347 buffer);
348 }
349 face->tex_vertex_data[i * 2 + 0] *=
350 (texrepu * texscaleu);
351 face->tex_vertex_data[i * 2 + 1] *=
352 (texrepv * texscalev);
353
354 face->tex_vertex_data[i * 2 + 0] += texoffu;
355 face->tex_vertex_data[i * 2 + 1] += texoffv;
356
357#if 0
358 face->tex_coords[i * 2 + 0] *= texscaleu;
359 face->tex_coords[i * 2 + 1] *= texscalev;
360#endif
361 }
362
363 if(face->material && (face->vertex_count >= 3))
364 object->faces =
365 g_slist_prepend(object->faces, face);
366
367 } /* not .acc */
368 else
369 {
370 /* triangle stripes */
371 i = 0;
372 while(i < ti1)
373 {
374 face = g_new0(G3DFace, 1);
375 face->vertex_count = 3;
376 face->vertex_indices = g_new0(guint32, 3);
377
378 face->material = material;
379
380 face->tex_image = object->tex_image;
381 if(face->tex_image)
382 {
383 face->flags |= G3D_FLAG_FAC_TEXMAP;
384 }
385
386 face->tex_vertex_count = 3;
387 face->tex_vertex_data =
388 g_new0(G3DFloat, 2 * face->tex_vertex_count);
389
390 if(i == 0)
391 {
392 /* TODO: error handling */
393 g3d_stream_read_line(stream, buffer, 2048);
394 sscanf(buffer, "%u " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &i1, &u1, &v1);
395 g3d_stream_read_line(stream, buffer, 2048);
396 sscanf(buffer, "%u " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &i2, &u2, &v2);
397 g3d_stream_read_line(stream, buffer, 2048);
398 sscanf(buffer, "%u " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &i3, &u3, &v3);
399
400 *rowcnt += 3;
401 i += 3;
402 }
403 else
404 {
405 /* TODO: error handling */
406 i1 = i2;
407 u1 = u2;
408 v1 = v2;
409 i2 = i3;
410 u2 = u3;
411 v2 = v3;
412
413 g3d_stream_read_line(stream, buffer, 2048);
414 *rowcnt += 1;
415 sscanf(buffer, "%u " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &i3, &u3, &v3);
416
417 i ++;
418 }
419
420 face->vertex_indices[0] = i1;
421 face->tex_vertex_data[0] = u1;
422 face->tex_vertex_data[1] = v1;
423 if(facecnt % 2) {
424 face->vertex_indices[1] = i3;
425 face->vertex_indices[2] = i2;
426 face->tex_vertex_data[2] = u3;
427 face->tex_vertex_data[3] = v3;
428 face->tex_vertex_data[4] = u2;
429 face->tex_vertex_data[5] = v2;
430 } else {
431 face->vertex_indices[1] = i2;
432 face->vertex_indices[2] = i3;
433 face->tex_vertex_data[2] = u2;
434 face->tex_vertex_data[3] = v2;
435 face->tex_vertex_data[4] = u3;
436 face->tex_vertex_data[5] = v3;
437 }
438
439 object->faces =
440 g_slist_prepend(object->faces, face);
441 facecnt ++;
442 }
443 } /* .acc */
444
445 surf_done = 1;
446 }
447 else if(sscanf(buffer, "mat %u", &ti1) == 1)
448 {
449 material = g_slist_nth_data(model->materials, ti1);
450 }
451 }
452
453 material = NULL;
454 /* END SURF */
455 }
456 else if(strncmp(buffer, "texture", 7) == 0)
457 {
458 if(sscanf(buffer, "texture %s", namebuf) == 1)
459 {
460 filename = ac3d_remove_quotes(namebuf);
461 object->tex_image = g3d_texture_load_cached(context, model,
462 filename);
463 if(object->tex_image)
464 {
465 g3d_texture_prepare(object->tex_image);
466
467 texscaleu = object->tex_image->tex_scale_u;
468 texscalev = object->tex_image->tex_scale_v;
469 }
470 }
471 else
472 {
473 g_warning("error reading texture line (%s)", buffer);
474 }
475 }
476 else if(strncmp(buffer, "texrep", 6) == 0)
477 {
478 if(sscanf(buffer, "texrep " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &texrepu, &texrepv) != 2)
479 {
480 g_warning("error reading texrep line (%s)", buffer);
481 texrepu = 1.0;
482 texrepv = 1.0;
483 }
484
485 if(texrepu == 0.0) texrepu = 1.0;
486 if(texrepv == 0.0) texrepv = 1.0;
487 }
488 else if(strncmp(buffer, "texoff", 6) == 0)
489 {
490 if(sscanf(buffer, "texoff " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &texoffu, &texoffv) != 2)
491 {
492 g_warning("error reading texoff line (%s)", buffer);
493 }
494 }
495 else if(strncmp(buffer, "crease", 6) == 0)
496 {
497 if(sscanf(buffer, "crease " G3D_SCANF_FLOAT, &crease) != 1)
498 {
499 g_warning("AC3D: error reading crease line (%i): %s",
500 *rowcnt, buffer);
501 }
502 }
503 else if(strncmp(buffer, "data ", 5) == 0)
504 {
505 /* object data */
506 if(sscanf(buffer, "data %u", &len) != 1)
507 {
508 g_warning("AC3D: error in data line (%i): %s",
509 *rowcnt, buffer);
510 }
511 /* object data on next line */
512 g3d_stream_read_line(stream, buffer, 2048);
513 *rowcnt += 1;
514 }
515 else
516 {
517#if DEBUG > 0
518 g_warning("AC3D: unhandled line %d: %s", *rowcnt, buffer);
519#endif
520 }
521
522 pcnt = (G3DFloat)g3d_stream_tell(stream) /
523 (G3DFloat)g3d_stream_size(stream);
524 if((pcnt - prev_pcnt) > 0.005) {
525 prev_pcnt = pcnt;
526 g3d_context_update_progress_bar(context, pcnt, TRUE);
527 }
528 }
529
530 /* cleanup */
531 g_free(transform);
532
533 return 0;
534}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/Makefile
new file mode 100644
index 0000000..c862376
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/Makefile
@@ -0,0 +1,523 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_acf/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_acf
36DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_acf_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_acf_la_OBJECTS = imp_acf.lo imp_acf_detect.lo \
59 imp_acf_airfoil.lo imp_acf_wing.lo imp_acf_def.lo
60imp_acf_la_OBJECTS = $(am_imp_acf_la_OBJECTS)
61#am_imp_acf_la_rpath = -rpath $(pluginimpdir)
62DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
63depcomp = $(SHELL) $(top_srcdir)/config/depcomp
64am__depfiles_maybe = depfiles
65COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
66 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
67LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
68 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
69 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
70CCLD = $(CC)
71LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
72 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
73 $(LDFLAGS) -o $@
74SOURCES = $(imp_acf_la_SOURCES)
75DIST_SOURCES = $(imp_acf_la_SOURCES)
76ETAGS = etags
77CTAGS = ctags
78DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
79ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
80AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
81AR = ar
82AS = as
83AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
84AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
85AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
86AWK = gawk
87CC = gcc
88CCDEPMODE = depmode=gcc3
89CFLAGS = -g -O2
90CPP = gcc -E
91CPPFLAGS =
92CXX = g++
93CXXCPP = g++ -E
94CXXDEPMODE = depmode=gcc3
95CXXFLAGS = -g -O2
96CYGPATH_W = echo
97DBG_CFLAGS = -O2
98DEBUG = 0
99DEFS = -DHAVE_CONFIG_H
100DEPDIR = .deps
101DLLTOOL = dlltool
102ECHO = echo
103ECHO_C =
104ECHO_N = -n
105ECHO_T =
106EGREP = /bin/grep -E
107EXEEXT =
108F77 =
109FFLAGS =
110GDKPIXBUF_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
111GDKPIXBUF_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
112GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
113GLIB_GENMARSHAL = glib-genmarshal
114GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
115GLIB_MKENUMS = glib-mkenums
116GOBJECT_QUERY = gobject-query
117GREP = /bin/grep
118GTKDOC_CHECK = /usr/bin/gtkdoc-check
119GTK_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
120GTK_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
121HTML_DIR = ${datadir}/gtk-doc/html
122INSTALL = /usr/bin/install -c
123INSTALL_DATA = ${INSTALL} -m 644
124INSTALL_PROGRAM = ${INSTALL}
125INSTALL_SCRIPT = ${INSTALL}
126INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
127LDFLAGS =
128LEX = flex
129LEXLIB = -lfl
130LEX_OUTPUT_ROOT = lex.yy
131LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
132LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
133LIBOBJS =
134LIBS = -lm
135LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
136LIBXML2_CFLAGS = -I/usr/include/libxml2
137LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
138LN_S = ln -s
139LTLIBOBJS =
140LTVERSION = 0:8:0
141MAGIC_LIBS = -lmagic
142MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
143MATH_LIBS = -lm
144MKDIR_P = /bin/mkdir -p
145OBJDUMP = objdump
146OBJEXT = o
147PACKAGE = libg3d
148PACKAGE_BUGREPORT =
149PACKAGE_NAME =
150PACKAGE_STRING =
151PACKAGE_TARNAME =
152PACKAGE_VERSION =
153PATH_SEPARATOR = :
154PKG_CONFIG = /usr/bin/pkg-config
155PLUGINS_LDFLAGS = -avoid-version -export-dynamic
156RANLIB = ranlib
157SET_MAKE =
158SHELL = /bin/bash
159STRIP = strip
160VERSION = 0.0.8
161XML2_CONFIG = /usr/bin/xml2-config
162XML_CPPFLAGS = -I/usr/include/libxml2
163XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
164Z_CFLAGS =
165Z_LIBS = -lz
166abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf
167abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf
168abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
170ac_ct_CC = gcc
171ac_ct_CXX = g++
172ac_ct_F77 =
173am__include = include
174am__leading_dot = .
175am__quote =
176am__tar = ${AMTAR} chof - "$$tardir"
177am__untar = ${AMTAR} xf -
178bindir = ${exec_prefix}/bin
179build = x86_64-unknown-linux-gnu
180build_alias =
181build_cpu = x86_64
182build_os = linux-gnu
183build_vendor = unknown
184builddir = .
185datadir = ${datarootdir}
186datarootdir = ${prefix}/share
187docdir = ${datarootdir}/doc/${PACKAGE}
188dvidir = ${docdir}
189exec_prefix = ${prefix}
190host = x86_64-unknown-linux-gnu
191host_alias =
192host_cpu = x86_64
193host_os = linux-gnu
194host_vendor = unknown
195htmldir = ${docdir}
196includedir = ${prefix}/include
197infodir = ${datarootdir}/info
198install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
199libdir = ${exec_prefix}/lib
200libexecdir = ${exec_prefix}/libexec
201localedir = ${datarootdir}/locale
202localstatedir = ${prefix}/var
203mandir = ${datarootdir}/man
204mkdir_p = /bin/mkdir -p
205oldincludedir = /usr/include
206pdfdir = ${docdir}
207prefix = /usr/local
208program_transform_name = s,x,x,
209psdir = ${docdir}
210sbindir = ${exec_prefix}/sbin
211sharedstatedir = ${prefix}/com
212srcdir = .
213sysconfdir = ${prefix}/etc
214target_alias =
215top_builddir = ../../..
216top_srcdir = ../../..
217pluginimpdir = $(pkglibdir)/plugins/import
218#pluginimp_LTLIBRARIES = imp_acf.la
219AM_CFLAGS = \
220 -Wall -ansi -pedantic \
221 -DG_LOG_DOMAIN=\"LibG3D\" \
222 -O2 -DDEBUG=0 \
223 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
224
225INCLUDES = -I$(top_srcdir)/include
226AM_LDFLAGS = \
227 -no-undefined -module \
228 -avoid-version -export-dynamic
229
230imp_acf_la_SOURCES = imp_acf.c imp_acf.h \
231 imp_acf_detect.c imp_acf_detect.h \
232 imp_acf_airfoil.c imp_acf_airfoil.h \
233 imp_acf_wing.c imp_acf_wing.h \
234 imp_acf_def.c imp_acf_def.h imp_acf_def_proto.h \
235 imp_acf_def_acf603.h imp_acf_def_acf625.h imp_acf_def_acf630.h \
236 imp_acf_def_acf640.h imp_acf_def_acf651.h \
237 imp_acf_def_acf700.h imp_acf_def_acf740.h
238
239imp_acf_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
240all: all-am
241
242.SUFFIXES:
243.SUFFIXES: .c .lo .o .obj
244$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
245 @for dep in $?; do \
246 case '$(am__configure_deps)' in \
247 *$$dep*) \
248 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
249 && exit 0; \
250 exit 1;; \
251 esac; \
252 done; \
253 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_acf/Makefile'; \
254 cd $(top_srcdir) && \
255 $(AUTOMAKE) --gnu plugins/import/imp_acf/Makefile
256.PRECIOUS: Makefile
257Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
258 @case '$?' in \
259 *config.status*) \
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
261 *) \
262 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
263 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
264 esac;
265
266$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
267 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
268
269$(top_srcdir)/configure: $(am__configure_deps)
270 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
271$(ACLOCAL_M4): $(am__aclocal_m4_deps)
272 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
273install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
274 @$(NORMAL_INSTALL)
275 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 if test -f $$p; then \
278 f=$(am__strip_dir) \
279 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
280 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
281 else :; fi; \
282 done
283
284uninstall-pluginimpLTLIBRARIES:
285 @$(NORMAL_UNINSTALL)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 p=$(am__strip_dir) \
288 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
289 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
290 done
291
292clean-pluginimpLTLIBRARIES:
293 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
294 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
295 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
296 test "$$dir" != "$$p" || dir=.; \
297 echo "rm -f \"$${dir}/so_locations\""; \
298 rm -f "$${dir}/so_locations"; \
299 done
300imp_acf.la: $(imp_acf_la_OBJECTS) $(imp_acf_la_DEPENDENCIES)
301 $(LINK) $(am_imp_acf_la_rpath) $(imp_acf_la_OBJECTS) $(imp_acf_la_LIBADD) $(LIBS)
302
303mostlyclean-compile:
304 -rm -f *.$(OBJEXT)
305
306distclean-compile:
307 -rm -f *.tab.c
308
309include ./$(DEPDIR)/imp_acf.Plo
310include ./$(DEPDIR)/imp_acf_airfoil.Plo
311include ./$(DEPDIR)/imp_acf_def.Plo
312include ./$(DEPDIR)/imp_acf_detect.Plo
313include ./$(DEPDIR)/imp_acf_wing.Plo
314
315.c.o:
316 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
318# source='$<' object='$@' libtool=no \
319# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
320# $(COMPILE) -c $<
321
322.c.obj:
323 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
324 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
325# source='$<' object='$@' libtool=no \
326# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
327# $(COMPILE) -c `$(CYGPATH_W) '$<'`
328
329.c.lo:
330 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
331 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
332# source='$<' object='$@' libtool=yes \
333# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
334# $(LTCOMPILE) -c -o $@ $<
335
336mostlyclean-libtool:
337 -rm -f *.lo
338
339clean-libtool:
340 -rm -rf .libs _libs
341
342ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
344 unique=`for i in $$list; do \
345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
346 done | \
347 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
349 mkid -fID $$unique
350tags: TAGS
351
352TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
353 $(TAGS_FILES) $(LISP)
354 tags=; \
355 here=`pwd`; \
356 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
357 unique=`for i in $$list; do \
358 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
359 done | \
360 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
361 END { if (nonempty) { for (i in files) print i; }; }'`; \
362 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
363 test -n "$$unique" || unique=$$empty_fix; \
364 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
365 $$tags $$unique; \
366 fi
367ctags: CTAGS
368CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
369 $(TAGS_FILES) $(LISP)
370 tags=; \
371 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
372 unique=`for i in $$list; do \
373 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
374 done | \
375 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
376 END { if (nonempty) { for (i in files) print i; }; }'`; \
377 test -z "$(CTAGS_ARGS)$$tags$$unique" \
378 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
379 $$tags $$unique
380
381GTAGS:
382 here=`$(am__cd) $(top_builddir) && pwd` \
383 && cd $(top_srcdir) \
384 && gtags -i $(GTAGS_ARGS) $$here
385
386distclean-tags:
387 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
388
389distdir: $(DISTFILES)
390 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
391 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
392 list='$(DISTFILES)'; \
393 dist_files=`for file in $$list; do echo $$file; done | \
394 sed -e "s|^$$srcdirstrip/||;t" \
395 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
396 case $$dist_files in \
397 */*) $(MKDIR_P) `echo "$$dist_files" | \
398 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
399 sort -u` ;; \
400 esac; \
401 for file in $$dist_files; do \
402 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
403 if test -d $$d/$$file; then \
404 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
405 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
406 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
407 fi; \
408 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
409 else \
410 test -f $(distdir)/$$file \
411 || cp -p $$d/$$file $(distdir)/$$file \
412 || exit 1; \
413 fi; \
414 done
415check-am: all-am
416check: check-am
417all-am: Makefile $(LTLIBRARIES)
418installdirs:
419 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
420 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
421 done
422install: install-am
423install-exec: install-exec-am
424install-data: install-data-am
425uninstall: uninstall-am
426
427install-am: all-am
428 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
429
430installcheck: installcheck-am
431install-strip:
432 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
433 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
434 `test -z '$(STRIP)' || \
435 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
436mostlyclean-generic:
437
438clean-generic:
439
440distclean-generic:
441 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
442
443maintainer-clean-generic:
444 @echo "This command is intended for maintainers to use"
445 @echo "it deletes files that may require special tools to rebuild."
446clean: clean-am
447
448clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
449 mostlyclean-am
450
451distclean: distclean-am
452 -rm -rf ./$(DEPDIR)
453 -rm -f Makefile
454distclean-am: clean-am distclean-compile distclean-generic \
455 distclean-tags
456
457dvi: dvi-am
458
459dvi-am:
460
461html: html-am
462
463info: info-am
464
465info-am:
466
467install-data-am: install-pluginimpLTLIBRARIES
468
469install-dvi: install-dvi-am
470
471install-exec-am:
472
473install-html: install-html-am
474
475install-info: install-info-am
476
477install-man:
478
479install-pdf: install-pdf-am
480
481install-ps: install-ps-am
482
483installcheck-am:
484
485maintainer-clean: maintainer-clean-am
486 -rm -rf ./$(DEPDIR)
487 -rm -f Makefile
488maintainer-clean-am: distclean-am maintainer-clean-generic
489
490mostlyclean: mostlyclean-am
491
492mostlyclean-am: mostlyclean-compile mostlyclean-generic \
493 mostlyclean-libtool
494
495pdf: pdf-am
496
497pdf-am:
498
499ps: ps-am
500
501ps-am:
502
503uninstall-am: uninstall-pluginimpLTLIBRARIES
504
505.MAKE: install-am install-strip
506
507.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
508 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
509 distclean-compile distclean-generic distclean-libtool \
510 distclean-tags distdir dvi dvi-am html html-am info info-am \
511 install install-am install-data install-data-am install-dvi \
512 install-dvi-am install-exec install-exec-am install-html \
513 install-html-am install-info install-info-am install-man \
514 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
515 install-ps install-ps-am install-strip installcheck \
516 installcheck-am installdirs maintainer-clean \
517 maintainer-clean-generic mostlyclean mostlyclean-compile \
518 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
519 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
520
521# Tell versions [3.59,3.63) of GNU make to not export all variables.
522# Otherwise a system limit (for SysV at least) may be exceeded.
523.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/Makefile.am
new file mode 100644
index 0000000..e15421e
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/Makefile.am
@@ -0,0 +1,29 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if EXPERIMENTAL
4pluginimp_LTLIBRARIES = imp_acf.la
5endif
6
7AM_CFLAGS = \
8 -Wall -ansi -pedantic \
9 -DG_LOG_DOMAIN=\"LibG3D\" \
10 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
11 @GLIB_CFLAGS@
12
13INCLUDES = -I$(top_srcdir)/include
14
15AM_LDFLAGS = \
16 -no-undefined -module \
17 @PLUGINS_LDFLAGS@
18
19LIBTOOL += --quiet
20
21imp_acf_la_SOURCES = imp_acf.c imp_acf.h \
22 imp_acf_detect.c imp_acf_detect.h \
23 imp_acf_airfoil.c imp_acf_airfoil.h \
24 imp_acf_wing.c imp_acf_wing.h \
25 imp_acf_def.c imp_acf_def.h imp_acf_def_proto.h \
26 imp_acf_def_acf603.h imp_acf_def_acf625.h imp_acf_def_acf630.h \
27 imp_acf_def_acf640.h imp_acf_def_acf651.h \
28 imp_acf_def_acf700.h imp_acf_def_acf740.h
29imp_acf_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/Makefile.in
new file mode 100644
index 0000000..57c9b96
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/Makefile.in
@@ -0,0 +1,523 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_acf
36DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_acf_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_acf_la_OBJECTS = imp_acf.lo imp_acf_detect.lo \
59 imp_acf_airfoil.lo imp_acf_wing.lo imp_acf_def.lo
60imp_acf_la_OBJECTS = $(am_imp_acf_la_OBJECTS)
61@EXPERIMENTAL_TRUE@am_imp_acf_la_rpath = -rpath $(pluginimpdir)
62DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
63depcomp = $(SHELL) $(top_srcdir)/config/depcomp
64am__depfiles_maybe = depfiles
65COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
66 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
67LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
68 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
69 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
70CCLD = $(CC)
71LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
72 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
73 $(LDFLAGS) -o $@
74SOURCES = $(imp_acf_la_SOURCES)
75DIST_SOURCES = $(imp_acf_la_SOURCES)
76ETAGS = etags
77CTAGS = ctags
78DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
79ACLOCAL = @ACLOCAL@
80AMTAR = @AMTAR@
81AR = @AR@
82AS = @AS@
83AUTOCONF = @AUTOCONF@
84AUTOHEADER = @AUTOHEADER@
85AUTOMAKE = @AUTOMAKE@
86AWK = @AWK@
87CC = @CC@
88CCDEPMODE = @CCDEPMODE@
89CFLAGS = @CFLAGS@
90CPP = @CPP@
91CPPFLAGS = @CPPFLAGS@
92CXX = @CXX@
93CXXCPP = @CXXCPP@
94CXXDEPMODE = @CXXDEPMODE@
95CXXFLAGS = @CXXFLAGS@
96CYGPATH_W = @CYGPATH_W@
97DBG_CFLAGS = @DBG_CFLAGS@
98DEBUG = @DEBUG@
99DEFS = @DEFS@
100DEPDIR = @DEPDIR@
101DLLTOOL = @DLLTOOL@
102ECHO = @ECHO@
103ECHO_C = @ECHO_C@
104ECHO_N = @ECHO_N@
105ECHO_T = @ECHO_T@
106EGREP = @EGREP@
107EXEEXT = @EXEEXT@
108F77 = @F77@
109FFLAGS = @FFLAGS@
110GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
111GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
112GLIB_CFLAGS = @GLIB_CFLAGS@
113GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
114GLIB_LIBS = @GLIB_LIBS@
115GLIB_MKENUMS = @GLIB_MKENUMS@
116GOBJECT_QUERY = @GOBJECT_QUERY@
117GREP = @GREP@
118GTKDOC_CHECK = @GTKDOC_CHECK@
119GTK_CFLAGS = @GTK_CFLAGS@
120GTK_LIBS = @GTK_LIBS@
121HTML_DIR = @HTML_DIR@
122INSTALL = @INSTALL@
123INSTALL_DATA = @INSTALL_DATA@
124INSTALL_PROGRAM = @INSTALL_PROGRAM@
125INSTALL_SCRIPT = @INSTALL_SCRIPT@
126INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
127LDFLAGS = @LDFLAGS@
128LEX = @LEX@
129LEXLIB = @LEXLIB@
130LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
131LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
132LIBGSF_LIBS = @LIBGSF_LIBS@
133LIBOBJS = @LIBOBJS@
134LIBS = @LIBS@
135LIBTOOL = @LIBTOOL@ --quiet
136LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
137LIBXML2_LIBS = @LIBXML2_LIBS@
138LN_S = @LN_S@
139LTLIBOBJS = @LTLIBOBJS@
140LTVERSION = @LTVERSION@
141MAGIC_LIBS = @MAGIC_LIBS@
142MAKEINFO = @MAKEINFO@
143MATH_LIBS = @MATH_LIBS@
144MKDIR_P = @MKDIR_P@
145OBJDUMP = @OBJDUMP@
146OBJEXT = @OBJEXT@
147PACKAGE = @PACKAGE@
148PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
149PACKAGE_NAME = @PACKAGE_NAME@
150PACKAGE_STRING = @PACKAGE_STRING@
151PACKAGE_TARNAME = @PACKAGE_TARNAME@
152PACKAGE_VERSION = @PACKAGE_VERSION@
153PATH_SEPARATOR = @PATH_SEPARATOR@
154PKG_CONFIG = @PKG_CONFIG@
155PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
156RANLIB = @RANLIB@
157SET_MAKE = @SET_MAKE@
158SHELL = @SHELL@
159STRIP = @STRIP@
160VERSION = @VERSION@
161XML2_CONFIG = @XML2_CONFIG@
162XML_CPPFLAGS = @XML_CPPFLAGS@
163XML_LIBS = @XML_LIBS@
164Z_CFLAGS = @Z_CFLAGS@
165Z_LIBS = @Z_LIBS@
166abs_builddir = @abs_builddir@
167abs_srcdir = @abs_srcdir@
168abs_top_builddir = @abs_top_builddir@
169abs_top_srcdir = @abs_top_srcdir@
170ac_ct_CC = @ac_ct_CC@
171ac_ct_CXX = @ac_ct_CXX@
172ac_ct_F77 = @ac_ct_F77@
173am__include = @am__include@
174am__leading_dot = @am__leading_dot@
175am__quote = @am__quote@
176am__tar = @am__tar@
177am__untar = @am__untar@
178bindir = @bindir@
179build = @build@
180build_alias = @build_alias@
181build_cpu = @build_cpu@
182build_os = @build_os@
183build_vendor = @build_vendor@
184builddir = @builddir@
185datadir = @datadir@
186datarootdir = @datarootdir@
187docdir = @docdir@
188dvidir = @dvidir@
189exec_prefix = @exec_prefix@
190host = @host@
191host_alias = @host_alias@
192host_cpu = @host_cpu@
193host_os = @host_os@
194host_vendor = @host_vendor@
195htmldir = @htmldir@
196includedir = @includedir@
197infodir = @infodir@
198install_sh = @install_sh@
199libdir = @libdir@
200libexecdir = @libexecdir@
201localedir = @localedir@
202localstatedir = @localstatedir@
203mandir = @mandir@
204mkdir_p = @mkdir_p@
205oldincludedir = @oldincludedir@
206pdfdir = @pdfdir@
207prefix = @prefix@
208program_transform_name = @program_transform_name@
209psdir = @psdir@
210sbindir = @sbindir@
211sharedstatedir = @sharedstatedir@
212srcdir = @srcdir@
213sysconfdir = @sysconfdir@
214target_alias = @target_alias@
215top_builddir = @top_builddir@
216top_srcdir = @top_srcdir@
217pluginimpdir = $(pkglibdir)/plugins/import
218@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_acf.la
219AM_CFLAGS = \
220 -Wall -ansi -pedantic \
221 -DG_LOG_DOMAIN=\"LibG3D\" \
222 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
223 @GLIB_CFLAGS@
224
225INCLUDES = -I$(top_srcdir)/include
226AM_LDFLAGS = \
227 -no-undefined -module \
228 @PLUGINS_LDFLAGS@
229
230imp_acf_la_SOURCES = imp_acf.c imp_acf.h \
231 imp_acf_detect.c imp_acf_detect.h \
232 imp_acf_airfoil.c imp_acf_airfoil.h \
233 imp_acf_wing.c imp_acf_wing.h \
234 imp_acf_def.c imp_acf_def.h imp_acf_def_proto.h \
235 imp_acf_def_acf603.h imp_acf_def_acf625.h imp_acf_def_acf630.h \
236 imp_acf_def_acf640.h imp_acf_def_acf651.h \
237 imp_acf_def_acf700.h imp_acf_def_acf740.h
238
239imp_acf_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
240all: all-am
241
242.SUFFIXES:
243.SUFFIXES: .c .lo .o .obj
244$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
245 @for dep in $?; do \
246 case '$(am__configure_deps)' in \
247 *$$dep*) \
248 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
249 && exit 0; \
250 exit 1;; \
251 esac; \
252 done; \
253 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_acf/Makefile'; \
254 cd $(top_srcdir) && \
255 $(AUTOMAKE) --gnu plugins/import/imp_acf/Makefile
256.PRECIOUS: Makefile
257Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
258 @case '$?' in \
259 *config.status*) \
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
261 *) \
262 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
263 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
264 esac;
265
266$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
267 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
268
269$(top_srcdir)/configure: $(am__configure_deps)
270 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
271$(ACLOCAL_M4): $(am__aclocal_m4_deps)
272 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
273install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
274 @$(NORMAL_INSTALL)
275 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 if test -f $$p; then \
278 f=$(am__strip_dir) \
279 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
280 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
281 else :; fi; \
282 done
283
284uninstall-pluginimpLTLIBRARIES:
285 @$(NORMAL_UNINSTALL)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 p=$(am__strip_dir) \
288 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
289 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
290 done
291
292clean-pluginimpLTLIBRARIES:
293 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
294 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
295 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
296 test "$$dir" != "$$p" || dir=.; \
297 echo "rm -f \"$${dir}/so_locations\""; \
298 rm -f "$${dir}/so_locations"; \
299 done
300imp_acf.la: $(imp_acf_la_OBJECTS) $(imp_acf_la_DEPENDENCIES)
301 $(LINK) $(am_imp_acf_la_rpath) $(imp_acf_la_OBJECTS) $(imp_acf_la_LIBADD) $(LIBS)
302
303mostlyclean-compile:
304 -rm -f *.$(OBJEXT)
305
306distclean-compile:
307 -rm -f *.tab.c
308
309@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_acf.Plo@am__quote@
310@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_acf_airfoil.Plo@am__quote@
311@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_acf_def.Plo@am__quote@
312@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_acf_detect.Plo@am__quote@
313@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_acf_wing.Plo@am__quote@
314
315.c.o:
316@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
318@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
320@am__fastdepCC_FALSE@ $(COMPILE) -c $<
321
322.c.obj:
323@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
324@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
325@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
326@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
327@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
328
329.c.lo:
330@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
331@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
332@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
333@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
334@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
335
336mostlyclean-libtool:
337 -rm -f *.lo
338
339clean-libtool:
340 -rm -rf .libs _libs
341
342ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
344 unique=`for i in $$list; do \
345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
346 done | \
347 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
349 mkid -fID $$unique
350tags: TAGS
351
352TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
353 $(TAGS_FILES) $(LISP)
354 tags=; \
355 here=`pwd`; \
356 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
357 unique=`for i in $$list; do \
358 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
359 done | \
360 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
361 END { if (nonempty) { for (i in files) print i; }; }'`; \
362 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
363 test -n "$$unique" || unique=$$empty_fix; \
364 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
365 $$tags $$unique; \
366 fi
367ctags: CTAGS
368CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
369 $(TAGS_FILES) $(LISP)
370 tags=; \
371 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
372 unique=`for i in $$list; do \
373 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
374 done | \
375 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
376 END { if (nonempty) { for (i in files) print i; }; }'`; \
377 test -z "$(CTAGS_ARGS)$$tags$$unique" \
378 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
379 $$tags $$unique
380
381GTAGS:
382 here=`$(am__cd) $(top_builddir) && pwd` \
383 && cd $(top_srcdir) \
384 && gtags -i $(GTAGS_ARGS) $$here
385
386distclean-tags:
387 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
388
389distdir: $(DISTFILES)
390 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
391 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
392 list='$(DISTFILES)'; \
393 dist_files=`for file in $$list; do echo $$file; done | \
394 sed -e "s|^$$srcdirstrip/||;t" \
395 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
396 case $$dist_files in \
397 */*) $(MKDIR_P) `echo "$$dist_files" | \
398 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
399 sort -u` ;; \
400 esac; \
401 for file in $$dist_files; do \
402 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
403 if test -d $$d/$$file; then \
404 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
405 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
406 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
407 fi; \
408 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
409 else \
410 test -f $(distdir)/$$file \
411 || cp -p $$d/$$file $(distdir)/$$file \
412 || exit 1; \
413 fi; \
414 done
415check-am: all-am
416check: check-am
417all-am: Makefile $(LTLIBRARIES)
418installdirs:
419 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
420 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
421 done
422install: install-am
423install-exec: install-exec-am
424install-data: install-data-am
425uninstall: uninstall-am
426
427install-am: all-am
428 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
429
430installcheck: installcheck-am
431install-strip:
432 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
433 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
434 `test -z '$(STRIP)' || \
435 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
436mostlyclean-generic:
437
438clean-generic:
439
440distclean-generic:
441 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
442
443maintainer-clean-generic:
444 @echo "This command is intended for maintainers to use"
445 @echo "it deletes files that may require special tools to rebuild."
446clean: clean-am
447
448clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
449 mostlyclean-am
450
451distclean: distclean-am
452 -rm -rf ./$(DEPDIR)
453 -rm -f Makefile
454distclean-am: clean-am distclean-compile distclean-generic \
455 distclean-tags
456
457dvi: dvi-am
458
459dvi-am:
460
461html: html-am
462
463info: info-am
464
465info-am:
466
467install-data-am: install-pluginimpLTLIBRARIES
468
469install-dvi: install-dvi-am
470
471install-exec-am:
472
473install-html: install-html-am
474
475install-info: install-info-am
476
477install-man:
478
479install-pdf: install-pdf-am
480
481install-ps: install-ps-am
482
483installcheck-am:
484
485maintainer-clean: maintainer-clean-am
486 -rm -rf ./$(DEPDIR)
487 -rm -f Makefile
488maintainer-clean-am: distclean-am maintainer-clean-generic
489
490mostlyclean: mostlyclean-am
491
492mostlyclean-am: mostlyclean-compile mostlyclean-generic \
493 mostlyclean-libtool
494
495pdf: pdf-am
496
497pdf-am:
498
499ps: ps-am
500
501ps-am:
502
503uninstall-am: uninstall-pluginimpLTLIBRARIES
504
505.MAKE: install-am install-strip
506
507.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
508 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
509 distclean-compile distclean-generic distclean-libtool \
510 distclean-tags distdir dvi dvi-am html html-am info info-am \
511 install install-am install-data install-data-am install-dvi \
512 install-dvi-am install-exec install-exec-am install-html \
513 install-html-am install-info install-info-am install-man \
514 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
515 install-ps install-ps-am install-strip installcheck \
516 installcheck-am installdirs maintainer-clean \
517 maintainer-clean-generic mostlyclean mostlyclean-compile \
518 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
519 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
520
521# Tell versions [3.59,3.63) of GNU make to not export all variables.
522# Otherwise a system limit (for SysV at least) may be exceeded.
523.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/README b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/README
new file mode 100644
index 0000000..484bbf0
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/README
@@ -0,0 +1,15 @@
1Airfoils:
2=========
3
4* get airfoil data in .dat format, e.g. from:
5 http://www.ae.uiuc.edu/m-selig/ads/archives/coord_seligFmt.tar.gz
6 (search for "UIUC Airfoil Coordinates Database" if this link is broken).
7 This data can be used according to the GNU General Public License.
8* set the environment variable AIRFOIL_DIR to the path containing the
9 dat files.
10* without airfoil data .acf models are still loadable, but wings and stuff
11 are missing.
12* to minimize libg3d loading times (the airfoil data is loaded when this
13 plugin is initialized, you don't have to try to load an .acf file) you
14 could only install a selected subset of airfoil data files.
15 Libg3d will complain about missing airfoil data files.
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf.c
new file mode 100644
index 0000000..5a73a1a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf.c
@@ -0,0 +1,338 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24#include <math.h>
25
26#include <g3d/types.h>
27#include <g3d/stream.h>
28#include <g3d/object.h>
29#include <g3d/face.h>
30#include <g3d/material.h>
31#include <g3d/matrix.h>
32#include <g3d/vector.h>
33
34#include "imp_acf.h"
35#include "imp_acf_airfoil.h"
36#include "imp_acf_wing.h"
37#include "imp_acf_def.h"
38#include "imp_acf_detect.h"
39
40static gboolean acf_load_body(AcfGlobalData *global);
41static gboolean acf_load_wings(AcfGlobalData *global);
42
43EAPI
44gpointer plugin_init(G3DContext *context)
45{
46 return acf_airfoil_init();
47}
48
49EAPI
50void plugin_cleanup(gpointer user_data)
51{
52 AcfAirfoilDb *db = user_data;
53
54 if(db)
55 acf_airfoil_cleanup(db);
56}
57
58EAPI
59gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
60 G3DModel *model, gpointer user_data)
61{
62 AcfGlobalData *global;
63 const AcfDef *def;
64 gboolean bigendian;
65 gchar magic;
66
67 magic = g3d_stream_read_int8(stream);
68 if(magic == 'i') {
69 bigendian = FALSE;
70 g_debug("ACF: intel file found");
71 } else if(magic == 'a') {
72 bigendian = TRUE;
73 g_debug("ACF: apple file found");
74 } else {
75 g_warning("ACF: not a valid .acf file");
76 return FALSE;
77 }
78
79 g3d_stream_seek(stream, 0, G_SEEK_SET);
80
81 global = g_new0(AcfGlobalData, 1);
82 global->context = context;
83 global->model = model;
84 global->stream = stream;
85 global->afldb = user_data;
86
87 def = acf_detect_version(global);
88 if(def == NULL) {
89 g_free(global);
90 return FALSE;
91 }
92
93 global->acf = acf_def_read(stream, def, bigendian);
94 if(global->acf == NULL) {
95 g_free(global);
96 return FALSE;
97 }
98
99 if(!acf_load_body(global)) {
100 acf_def_free(global->acf);
101 g_free(global);
102 return FALSE;
103 }
104 if(!acf_load_wings(global)) {
105 acf_def_free(global->acf);
106 g_free(global);
107 return FALSE;
108 }
109
110 acf_def_free(global->acf);
111 g_free(global);
112
113 return TRUE;
114}
115
116EAPI
117gchar *plugin_description(void)
118{
119 return g_strdup("XPlane models.");
120}
121
122EAPI
123gchar **plugin_extensions(void)
124{
125 return g_strsplit("acf", ":", 0);
126}
127
128/*****************************************************************************/
129
130#define ACF_OBJECT_MIN 44
131#define ACF_OBJECT_MAX 66
132#define ACF_BODY_NUMSEC 20
133#define ACF_BODY_SECVER 18
134#define ACF_VERTS_PER_OBJECT (ACF_BODY_NUMSEC * ACF_BODY_SECVER)
135
136#define ACF_REQUIRE_PART(var, name, t) do { \
137 var = acf_def_lookup(global->acf, name); \
138 if((var == NULL) || (var->type != t)) { \
139 g_warning("ACF: %s is missing or has wrong type", name); \
140 return FALSE; \
141 } } while(0);
142
143#define ACF_USE_PART(var, name, t) do { \
144 var = acf_def_lookup(global->acf, name); \
145 if((var != NULL) && (var->type != t)) { \
146 g_warning("ACF: %s has wrong type", name); \
147 var = NULL; \
148 } } while(0);
149
150static gboolean acf_load_body(AcfGlobalData *global)
151{
152 AcfValue *vpart_eq, *vbody_x, *vbody_y, *vbody_z, *vbody_r;
153 AcfValue *vxarm, *vyarm, *vzarm, *vx_body, *vy_body, *vz_body;
154 G3DObject *object;
155 G3DMaterial *material;
156 G3DFace *face;
157 gint32 i, j;
158 guint32 min_obj, max_obj;
159
160 /* lookup some required data in library an return FALSE if one of
161 * them is missing */
162 ACF_REQUIRE_PART(vpart_eq, "PARTS_part_eq", XINT);
163 ACF_REQUIRE_PART(vbody_x, "PARTS_body_X", XFLT);
164 ACF_REQUIRE_PART(vbody_y, "PARTS_body_Y", XFLT);
165 ACF_REQUIRE_PART(vbody_z, "PARTS_body_Z", XFLT);
166 ACF_REQUIRE_PART(vxarm, "PARTS_Xarm", XFLT);
167 ACF_REQUIRE_PART(vyarm, "PARTS_Yarm", XFLT);
168 ACF_REQUIRE_PART(vzarm, "PARTS_Zarm", XFLT);
169 ACF_REQUIRE_PART(vx_body, "PARTS_X_body_aero", XFLT);
170 ACF_REQUIRE_PART(vy_body, "PARTS_Y_body_aero", XFLT);
171 ACF_REQUIRE_PART(vz_body, "PARTS_Z_body_aero", XFLT);
172 ACF_REQUIRE_PART(vbody_r, "PARTS_body_r", XFLT);
173
174 material = g3d_material_new();
175 material->name = g_strdup("(default material)");
176 global->model->materials = g_slist_append(global->model->materials,
177 material);
178
179 min_obj = ACF_OBJECT_MIN;
180 max_obj = MIN(ACF_OBJECT_MAX, (vpart_eq->num - 1));
181 if(vpart_eq->num <= 57) {
182 min_obj = 30;
183 max_obj = 49;
184 }
185
186 for(i = min_obj; i <= max_obj; i ++) {
187 if(!vpart_eq->xint[i])
188 continue;
189
190 g_debug("ACF: part[%i]: (%.2f, %.2f, %.2f), %.2f", i,
191 vx_body->xflt[i], vy_body->xflt[i], vz_body->xflt[i],
192 vbody_r->xflt[i]);
193
194 object = g_new0(G3DObject, 1);
195 object->name = g_strdup_printf("object[%d]", i);
196 object->vertex_count = ACF_VERTS_PER_OBJECT;
197 object->vertex_data = g_new0(G3DFloat, object->vertex_count * 3);
198 for(j = 0; j < object->vertex_count; j ++) {
199 object->vertex_data[j * 3 + 0] =
200 vbody_x->xflt[i * ACF_VERTS_PER_OBJECT + j] + vxarm->xflt[i];
201 object->vertex_data[j * 3 + 1] =
202 vbody_y->xflt[i * ACF_VERTS_PER_OBJECT + j] + vyarm->xflt[i];
203 object->vertex_data[j * 3 + 2] =
204 vbody_z->xflt[i * ACF_VERTS_PER_OBJECT + j] + vzarm->xflt[i];
205#if DEBUG > 3
206 g_debug("\tVERT: (%04d) %.3f, %.3f, %.3f", j,
207 object->vertex_data[j * 3 + 0],
208 object->vertex_data[j * 3 + 1],
209 object->vertex_data[j * 3 + 2]);
210#endif
211 }
212
213 global->model->objects = g_slist_append(global->model->objects,
214 object);
215
216 for(j = 0; j < (ACF_VERTS_PER_OBJECT - ACF_BODY_SECVER - 1); j ++) {
217 face = g3d_face_new_tri(material, j + 1, j, j + ACF_BODY_SECVER);
218 object->faces = g_slist_prepend(object->faces, face);
219
220 face = g3d_face_new_tri(material, j + ACF_BODY_SECVER,
221 j + ACF_BODY_SECVER + 1, j + 1);
222 object->faces = g_slist_prepend(object->faces, face);
223 }
224 }
225
226 return TRUE;
227}
228
229static gboolean acf_load_wings(AcfGlobalData *global)
230{
231 AcfValue *vpart_eq, *vrafl0, *vtafl0;
232 AcfValue *vctip, *vcroot, *vdihed, *vsweep, *vels;
233 AcfValue *vxarm, *vyarm, *vzarm, *visleft, *vlatsign;
234 AcfValue *vslseg, *vsljnd, *vpartss, *vpartse;
235 AcfAirfoil *afrt, *aftp;
236 G3DObject *object;
237 G3DMaterial *material;
238 gint32 i;
239 guint32 cnt;
240 G3DFloat m_dihed[16], m_sweep[16], m_trans[16];
241 G3DFloat vecrt[3], vectp[3], lf, ls;
242 gchar *title;
243
244 ACF_REQUIRE_PART(vpart_eq, "PARTS_part_eq", XINT);
245 ACF_REQUIRE_PART(vrafl0, "PARTS_Rafl0", XCHR);
246 ACF_REQUIRE_PART(vtafl0, "PARTS_Tafl0", XCHR);
247 ACF_REQUIRE_PART(vcroot, "PARTS_Croot", XFLT);
248 ACF_REQUIRE_PART(vctip, "PARTS_Ctip", XFLT);
249 ACF_REQUIRE_PART(vels, "PARTS_els", XINT);
250 ACF_REQUIRE_PART(vxarm, "PARTS_Xarm", XFLT);
251 ACF_REQUIRE_PART(vyarm, "PARTS_Yarm", XFLT);
252 ACF_REQUIRE_PART(vzarm, "PARTS_Zarm", XFLT);
253
254 ACF_USE_PART(vdihed, "PARTS_dihed", XFLT);
255 if(vdihed == NULL)
256 ACF_REQUIRE_PART(vdihed, "PARTS_dihed1", XFLT);
257 ACF_USE_PART(vsweep, "PARTS_sweep", XFLT);
258 if(vsweep == NULL)
259 ACF_REQUIRE_PART(vsweep, "PARTS_sweep1", XFLT);
260
261 ACF_REQUIRE_PART(vpartss, "PARTS_s", XFLT);
262 ACF_REQUIRE_PART(vpartse, "PARTS_e", XFLT);
263 ACF_REQUIRE_PART(vlatsign, "OVERFLOW_lat_sign", XFLT);
264 ACF_REQUIRE_PART(vslseg, "PARTS_semilen_SEG", XFLT);
265 ACF_REQUIRE_PART(vsljnd, "PARTS_semilen_JND", XFLT);
266
267 ACF_USE_PART(visleft, "OVERFLOW_is_left", XINT);
268
269
270 material = g_slist_nth_data(global->model->materials, 0);
271
272 cnt = vrafl0->num / vpart_eq->num;
273
274 for(i = 8; i < vpart_eq->num; i ++) {
275 if(strlen(vrafl0->xchr + i * cnt) == 0)
276 continue;
277 if(vels->xint[i] == 0)
278 continue;
279#if DEBUG > 0
280 g_debug("PARTS_Rafl0[%d]: %s", i, vrafl0->xchr + i * cnt);
281 g_debug("PARTS_Tafl0[%d]: %s", i, vtafl0->xchr + i * cnt);
282 g_debug(
283 "[%i] lat_sign=%.2f, Croot=%.2f, Ctip=%.2f, dihed=%.2f, els=%i", i,
284 vlatsign->xflt[i],
285 vcroot->xflt[i], vctip->xflt[i],
286 vdihed ? vdihed->xflt[i] : -1337.0,
287 vels->xint[i]);
288 g_debug("[%i] semilen_SEG=%.2f, semilen_JND=%.2f, parts_e=%.2f", i,
289 vslseg->xflt[i], vsljnd->xflt[i], vpartse->xflt[i]);
290 g_debug("PARTS_s[%i]: %f, %f ... %f, %f", i,
291 vpartss->xflt[i * 10 + 0], vpartss->xflt[i * 10 + 1],
292 vpartss->xflt[i * 10 + 8], vpartss->xflt[i * 10 + 9]);
293#endif
294 afrt = acf_airfoil_lookup(global->afldb, "naca16006.dat");
295 aftp = acf_airfoil_lookup(global->afldb, "naca16006.dat");
296 if((afrt == NULL) || (aftp == NULL))
297 continue;
298
299 if(afrt->vertex_count != aftp->vertex_count) {
300 g_warning("ACF: airfoil vertex count mismatch: %s=%d, %s=%d",
301 afrt->filename, afrt->vertex_count,
302 aftp->filename, aftp->vertex_count);
303 continue;
304 }
305
306 lf = ((visleft && visleft->xint[i]) ? -1 : 1);
307 ls = (vlatsign ? vlatsign->xflt[i] : 1.0);
308
309 /* translation */
310 g3d_matrix_identity(m_trans);
311 g3d_matrix_translate(vxarm->xflt[i], vyarm->xflt[i], vzarm->xflt[i],
312 m_trans);
313
314 /* rotation matrices */
315 g3d_matrix_rotate(lf * vdihed->xflt[i] * G_PI / 180.0,
316 0.0, 0.0, 1.0, m_dihed);
317 g3d_matrix_rotate(lf * -1.0 * vsweep->xflt[i] * G_PI / 180.0,
318 0.0, 1.0, 0.0, m_sweep);
319
320 /* wing root & tip center */
321 memset(vecrt, 0, sizeof(vecrt));
322 memset(vectp, 0, sizeof(vectp));
323 vectp[0] = vslseg->xflt[i];
324 g3d_vector_transform(vectp, vectp + 1, vectp + 2, m_dihed);
325 g3d_vector_transform(vectp, vectp + 1, vectp + 2, m_sweep);
326
327 title = g_strdup_printf("Wing[%d]", i);
328 object = acf_wing(material, title,
329 m_sweep, m_dihed, m_trans,
330 vecrt, vectp,
331 afrt, aftp,
332 vcroot->xflt[i], vctip->xflt[i], lf);
333 g_free(title);
334 global->model->objects = g_slist_append(global->model->objects,
335 object);
336 }
337 return TRUE;
338}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf.h
new file mode 100644
index 0000000..02ad6f0
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf.h
@@ -0,0 +1,39 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_ACF_H
23#define _IMP_ACF_H
24
25#include <g3d/types.h>
26#include <g3d/stream.h>
27
28#include "imp_acf_def.h"
29#include "imp_acf_airfoil.h"
30
31typedef struct {
32 G3DContext *context;
33 G3DModel *model;
34 G3DStream *stream;
35 AcfAirfoilDb *afldb;
36 AcfFile *acf;
37} AcfGlobalData;
38
39#endif /* _IMP_ACF_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_airfoil.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_airfoil.c
new file mode 100644
index 0000000..169725d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_airfoil.c
@@ -0,0 +1,166 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <string.h>
23#include <stdlib.h>
24#include <stdio.h>
25#include <locale.h>
26
27#include <glib.h>
28#include <g3d/types.h>
29
30#include "imp_acf_airfoil.h"
31
32static AcfAirfoil *acf_airfoil_read(const gchar *path);
33
34AcfAirfoilDb *acf_airfoil_init(void)
35{
36 AcfAirfoilDb *db;
37 AcfAirfoil *afl;
38 GDir *dir;
39 const gchar *dirname, *filename;
40 gchar *path;
41 GError *error = NULL;
42
43 setlocale(LC_NUMERIC, "C");
44
45 dirname = g_getenv("AIRFOIL_DIR");
46 if(!(dirname && g_file_test(dirname, G_FILE_TEST_IS_DIR))) {
47#if DEBUG > 0
48 g_warning("ACF: could not load airfoils");
49#endif
50 return NULL;
51 }
52
53 dir = g_dir_open(dirname, 0, &error);
54 if(error != NULL) {
55 g_warning("ACF: failed to open airfoil directory '%s': %s",
56 dirname, error->message);
57 g_error_free(error);
58 return NULL;
59 }
60
61 db = g_new0(AcfAirfoilDb, 1);
62 db->db = g_hash_table_new(g_str_hash, g_str_equal);
63
64 filename = g_dir_read_name(dir);
65 while(filename != NULL) {
66 if(strcmp(filename + strlen(filename) - 4, ".dat") == 0) {
67 path = g_strdup_printf("%s%c%s", dirname, G_DIR_SEPARATOR,
68 filename);
69 afl = acf_airfoil_read(path);
70 g_free(path);
71 if(afl != NULL) {
72 g_hash_table_insert(db->db, afl->filename, afl);
73 db->airfoils = g_slist_append(db->airfoils, afl);
74#if DEBUG > 2
75 g_debug("ACF: airfoil %s loaded", filename);
76#endif
77 }
78 }
79 filename = g_dir_read_name(dir);
80 }
81
82#if DEBUG > 0
83 g_debug("ACF: %d airfoils loaded", g_slist_length(db->airfoils));
84#endif
85 g_dir_close(dir);
86
87 return db;
88}
89
90void acf_airfoil_free(AcfAirfoil *afl)
91{
92 if(afl->filename)
93 g_free(afl->filename);
94 if(afl->description)
95 g_free(afl->description);
96 if(afl->vertex_data)
97 g_free(afl->vertex_data);
98 g_free(afl);
99}
100
101void acf_airfoil_cleanup(AcfAirfoilDb *db)
102{
103 AcfAirfoil *afl;
104 GSList *item;
105
106 g_hash_table_destroy(db->db);
107 item = db->airfoils;
108 while(item) {
109 afl = item->data;
110 item = g_slist_remove(item, afl);
111 acf_airfoil_free(afl);
112 }
113 g_free(db);
114}
115
116AcfAirfoil *acf_airfoil_lookup(AcfAirfoilDb *db, const gchar *aflname)
117{
118 return g_hash_table_lookup(db->db, aflname);
119}
120
121static AcfAirfoil *acf_airfoil_read(const gchar *path)
122{
123 AcfAirfoil *afl;
124 FILE *f;
125 gchar buffer[BUFSIZ + 1];
126 guint32 off;
127 G3DFloat x, y;
128
129 f = fopen(path, "r");
130 if(f == NULL)
131 return NULL;
132
133 afl = g_new0(AcfAirfoil, 1);
134 fgets(buffer, BUFSIZ, f);
135 buffer[BUFSIZ] = '\0';
136 g_strstrip(buffer);
137 afl->filename = g_path_get_basename(path);
138 afl->description = g_strdup(buffer);
139
140 while(!feof(f)) {
141 memset(buffer, '\0', BUFSIZ + 1);
142 fgets(buffer, BUFSIZ, f);
143 g_strstrip(buffer);
144 if(strlen(buffer) == 0)
145 continue;
146 if(sscanf(buffer, G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &x, &y) == 2) {
147 if((x < 0.0) || (x > 1.0))
148 continue;
149 off = afl->vertex_count;
150 afl->vertex_count ++;
151 afl->vertex_data = g_realloc(afl->vertex_data,
152 afl->vertex_count * 2 * sizeof(G3DFloat));
153 afl->vertex_data[off * 2 + 0] = x;
154 afl->vertex_data[off * 2 + 1] = y;
155 } else {
156#if DEBUG > 2
157 g_debug("ACF: airfoil: failed to parse line in %s: %s",
158 afl->filename, buffer);
159#endif
160 }
161 }
162
163 fclose(f);
164
165 return afl;
166}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_airfoil.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_airfoil.h
new file mode 100644
index 0000000..117292d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_airfoil.h
@@ -0,0 +1,44 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_ACF_AIRFOIL_H
23#define _IMP_ACF_AIRFOIL_H
24
25#include <glib.h>
26
27typedef struct {
28 gchar *filename;
29 gchar *description;
30 /* 2D vertexes */
31 guint32 vertex_count;
32 G3DFloat *vertex_data;
33} AcfAirfoil;
34
35typedef struct {
36 GHashTable *db;
37 GSList *airfoils;
38} AcfAirfoilDb;
39
40AcfAirfoilDb *acf_airfoil_init(void);
41void acf_airfoil_cleanup(AcfAirfoilDb *db);
42AcfAirfoil *acf_airfoil_lookup(AcfAirfoilDb *db, const gchar *aflname);
43
44#endif /* _IMP_ACF_AIRFOIL_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def.c
new file mode 100644
index 0000000..bf310b1
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def.c
@@ -0,0 +1,127 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <glib.h>
23
24#include "imp_acf_def.h"
25
26#define ACF_DEBUG_TYPES 2
27
28AcfFile *acf_def_read(G3DStream *stream, const AcfDef *def,
29 gboolean bigendian)
30{
31 AcfFile *acf;
32 AcfValue *value;
33 gint32 i, j;
34
35 acf = g_new0(AcfFile, 1);
36 acf->db = g_hash_table_new(g_str_hash, g_str_equal);
37
38 for(i = 0; def[i].type != XEOF; i ++) {
39 value = g_new0(AcfValue, 1);
40 value->name = g_strdup(def[i].description);
41 value->type = def[i].type;
42 value->num = def[i].num;
43 switch(value->type) {
44 case XCHR:
45 value->xchr = g_new0(gchar, value->num + 1);
46 g3d_stream_read(stream, value->xchr, value->num);
47#if DEBUG > ACF_DEBUG_TYPES
48 g_debug("ACF: XCHR: %s = %s", value->name, value->xchr);
49#endif
50 break;
51 case XINT:
52 value->xint = g_new0(gint32, value->num);
53 for(j = 0; j < value->num; j ++)
54 value->xint[j] = bigendian ?
55 g3d_stream_read_int32_be(stream) :
56 g3d_stream_read_int32_le(stream);
57#if DEBUG > ACF_DEBUG_TYPES
58 g_debug("ACF: XINT: %s(1/%d) = %i", value->name, value->num,
59 value->xint[0]);
60#endif
61 break;
62 case XFLT:
63 value->xflt = g_new0(G3DFloat, value->num);
64 for(j = 0; j < value->num; j ++)
65 value->xflt[j] = bigendian ?
66 g3d_stream_read_float_be(stream) :
67 g3d_stream_read_float_le(stream);
68#if DEBUG > ACF_DEBUG_TYPES
69 g_debug("ACF: XFLT: %s(1/%d) = %f", value->name, value->num,
70 value->xflt[0]);
71#endif
72 break;
73 case XEOF:
74 /* should never happen, just make compiler happy */
75 break;
76 }
77 g_hash_table_insert(acf->db, def[i].description, value);
78 }
79
80 return acf;
81}
82
83static gboolean acf_def_remove_value_cb(gpointer key, gpointer hashvalue,
84 gpointer data)
85{
86 AcfValue *value = hashvalue;
87
88 if(value->xchr)
89 g_free(value->xchr);
90 if(value->xint)
91 g_free(value->xint);
92 if(value->xflt)
93 g_free(value->xflt);
94 g_free(value->name);
95 g_free(value);
96 return TRUE;
97}
98
99void acf_def_free(AcfFile *acf)
100{
101 g_hash_table_foreach_remove(acf->db, acf_def_remove_value_cb, NULL);
102 g_free(acf);
103}
104
105AcfValue *acf_def_lookup(AcfFile *acf, const gchar *name)
106{
107 return g_hash_table_lookup(acf->db, name);
108}
109
110void acf_def_dump(AcfValue *value)
111{
112 gint32 i;
113
114 if(value->type == XCHR) {
115 g_debug("ACF: %s: %s", value->name, value->xchr);
116 return;
117 }
118
119 g_debug("ACF: %s: dumping %d %s items", value->name, value->num,
120 (value->type == XINT) ? "XINT" : "XFLT");
121 for(i = 0; i < value->num; i ++) {
122 if(value->type == XINT)
123 g_debug("\tXINT: %s[%i] = %i", value->name, i, value->xint[i]);
124 else if(value->type == XFLT)
125 g_debug("\tXFLT: %s[%i] = %f", value->name, i, value->xflt[i]);
126 }
127}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def.h
new file mode 100644
index 0000000..ecaed52
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def.h
@@ -0,0 +1,39 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_ACF_DEF_H
23#define _IMP_ACF_DEF_H
24
25#include <g3d/stream.h>
26
27#include "imp_acf_def_proto.h"
28
29typedef struct {
30 GHashTable *db;
31} AcfFile;
32
33AcfFile *acf_def_read(G3DStream *stream, const AcfDef *def,
34 gboolean bigendian);
35void acf_def_free(AcfFile *acf);
36AcfValue *acf_def_lookup(AcfFile *acf, const gchar *name);
37void acf_def_dump(AcfValue *value);
38
39#endif /* _IMP_ACF_DEF_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf603.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf603.h
new file mode 100644
index 0000000..79243a6
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf603.h
@@ -0,0 +1,359 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_ACF_DEF_ACF603
23#define _IMP_ACF_DEF_ACF603
24
25#include "imp_acf_def_proto.h"
26
27static const AcfDef acf_def_acf603[] = {
28 { XCHR, "VIEW__PlatForm", 1 },
29 { XCHR, "VIEW__Filler", 4 },
30 { XCHR, "VIEW__tailnum", 40 },
31 { XCHR, "VIEW__author", 500 },
32 { XCHR, "VIEW__descrip", 500 },
33 { XFLT, "VIEW__size_x", 1 },
34 { XFLT, "VIEW__size_z", 1 },
35 { XINT, "VIEW__is_APL", 1 },
36 { XINT, "VIEW__actype", 1 },
37 { XINT, "VIEW__HUDtype", 1 },
38 { XINT, "VIEW__asi_kts", 1 },
39 { XINT, "VIEW__cockpit_type", 1 },
40 { XINT, "VIEW__has_fd", 1 },
41 { XINT, "VIEW__has_stallwarn", 1 },
42 { XINT, "VIEW__has_litemap_tex", 1 },
43 { XFLT, "VIEW__peX", 1 },
44 { XFLT, "VIEW__peY", 1 },
45 { XFLT, "VIEW__peZ", 1 },
46 { XFLT, "VIEW__Vso", 1 },
47 { XFLT, "VIEW__Vs", 1 },
48 { XFLT, "VIEW__Vfe", 1 },
49 { XFLT, "VIEW__Vno", 1 },
50 { XFLT, "VIEW__Vne", 1 },
51 { XFLT, "VIEW__Mmo", 1 },
52 { XFLT, "VIEW__Gneg", 1 },
53 { XFLT, "VIEW__Gpos", 1 },
54 { XFLT, "VIEW__est_Vs", 1 },
55 { XFLT, "VIEW__yawstringx", 1 },
56 { XFLT, "VIEW__yawstringy", 1 },
57 { XFLT, "VIEW__HUD_cntr", 1 },
58 { XFLT, "VIEW__HUD_cntry", 1 },
59 { XFLT, "VIEW__HUD_del", 1 },
60 { XFLT, "VIEW__HUD_dely", 1 },
61 { XINT, "VIEW__has_lanlite1", 1 },
62 { XFLT, "VIEW__lanlite1X", 1 },
63 { XFLT, "VIEW__lanlite1Y", 1 },
64 { XFLT, "VIEW__lanlite1Z", 1 },
65 { XFLT, "VIEW__lanlite_the", 1 },
66 { XINT, "VIEW__has_lanlite2", 1 },
67 { XFLT, "VIEW__lanlite2X", 1 },
68 { XFLT, "VIEW__lanlite2Y", 1 },
69 { XFLT, "VIEW__lanlite2Z", 1 },
70 { XINT, "VIEW__has_lanlite3", 1 },
71 { XFLT, "VIEW__lanlite3X", 1 },
72 { XFLT, "VIEW__lanlite3Y", 1 },
73 { XFLT, "VIEW__lanlite3Z", 1 },
74 { XINT, "VIEW__has_fuserb1", 1 },
75 { XFLT, "VIEW__fuserb1", 1 },
76 { XFLT, "VIEW__fuserb1", 1 },
77 { XFLT, "VIEW__fuserb1Z", 1 },
78 { XINT, "VIEW__has_fuserb2", 1 },
79 { XFLT, "VIEW__fuserb2", 1 },
80 { XFLT, "VIEW__fuserb2", 1 },
81 { XFLT, "VIEW__fuserb2Z", 1 },
82 { XINT, "VIEW__has_taillite", 1 },
83 { XFLT, "VIEW__tailliteX", 1 },
84 { XFLT, "VIEW__tailliteY", 1 },
85 { XFLT, "VIEW__tailliteZ", 1 },
86 { XINT, "VIEW__has_navlites", 1 },
87 { XINT, "PANEL_ins_type", 200 },
88 { XFLT, "PANEL_ins_size", 200 },
89 { XFLT, "PANEL_ins_x", 200 },
90 { XFLT, "PANEL_ins_y", 200 },
91 { XFLT, "PANEL_ins_delx", 200 },
92 { XFLT, "PANEL_ins_dely", 200 },
93 { XINT, "FORCE_Hydraulic", 1 },
94 { XINT, "FORCE_Stickshaker", 1 },
95 { XINT, "ENG___number_engines", 1 },
96 { XINT, "ENG___auto_feather_EQ", 1 },
97 { XFLT, "ENG___throtmax_FW", 1 },
98 { XFLT, "ENG___throtmax_REV", 1 },
99 { XFLT, "ENG___omegaminRS", 1 },
100 { XFLT, "ENG___omegamaxRSC", 1 },
101 { XFLT, "ENG___omegamingreenRSC", 1 },
102 { XFLT, "ENG___omegamaxgreenRSC", 1 },
103 { XFLT, "ENG___pmax", 1 },
104 { XFLT, "ENG___tmax", 1 },
105 { XFLT, "ENG___burnerinc", 1 },
106 { XFLT, "ENG___critalt", 1 },
107 { XFLT, "ENG___mpmax", 1 },
108 { XFLT, "ENG___gearrat", 1 },
109 { XFLT, "ENG___face_jet", 1 },
110 { XFLT, "ENG___face_rocket", 1 },
111 { XFLT, "ENG___spooltime", 1 },
112 { XFLT, "ENG___max_mach_eff", 1 },
113 { XFLT, "ENG___fmax_sl", 1 },
114 { XFLT, "ENG___fmax_opt", 1 },
115 { XFLT, "ENG___fmax_vac", 1 },
116 { XFLT, "ENG___h_opt", 1 },
117 { XFLT, "ENG___tip_mach_des_50", 1 },
118 { XFLT, "ENG___tip_mach_des_100", 1 },
119 { XFLT, "ENG___rotor_mi_rat", 1 },
120 { XFLT, "ENG___tip_weight", 1 },
121 { XFLT, "ENG___trotor_rat", 1 },
122 { XINT, "PROP__engine_type", 8 },
123 { XINT, "PROP__revthrust_eq", 8 },
124 { XINT, "PROP__prop_type", 8 },
125 { XFLT, "PROP__prop_dir", 8 },
126 { XFLT, "PROP__num_blades", 8 },
127 { XFLT, "PROP__SFC", 8 },
128 { XFLT, "PROP__minpitch", 8 },
129 { XFLT, "PROP__maxpitch", 8 },
130 { XFLT, "PROP__revpitch", 8 },
131 { XFLT, "PROP__sidecant", 8 },
132 { XFLT, "PROP__vertcant", 8 },
133 { XFLT, "PROP__miprop_rpm", 8 },
134 { XFLT, "PROP__miprop_pitch", 8 },
135 { XFLT, "PROP__discarea", 8 },
136 { XFLT, "PROP__ringarea", 80 },
137 { XFLT, "PROP__bladesweep", 80 },
138 { XFLT, "PROP__des_rpm_prp", 8 },
139 { XFLT, "PROP__des_kts_prp", 8 },
140 { XFLT, "PROP__des_kts_acf", 8 },
141 { XINT, "PARTS_part_eq", 57 },
142 { XCHR, "PARTS_Rafl0", 2280 },
143 { XCHR, "PARTS_Rafl1", 2280 },
144 { XCHR, "PARTS_Tafl0", 2280 },
145 { XCHR, "PARTS_Tafl1", 2280 },
146 { XINT, "PARTS_els", 57 },
147 { XFLT, "PARTS_Xarm", 57 },
148 { XFLT, "PARTS_Yarm", 57 },
149 { XFLT, "PARTS_Zarm", 57 },
150 { XFLT, "PARTS_X_body_aero", 57 },
151 { XFLT, "PARTS_Y_body_aero", 57 },
152 { XFLT, "PARTS_Z_body_aero", 57 },
153 { XFLT, "PARTS_Croot", 57 },
154 { XFLT, "PARTS_Ctip", 57 },
155 { XFLT, "PARTS_dihed", 57 },
156 { XFLT, "PARTS_sweep1", 57 },
157 { XFLT, "PARTS_sweep2", 57 },
158 { XFLT, "PARTS_sweepnow", 57 },
159 { XINT, "PARTS_varsweepEQ", 57 },
160 { XFLT, "PARTS_semilen_SEG", 57 },
161 { XFLT, "PARTS_semilen_JND", 57 },
162 { XFLT, "PARTS_e", 57 },
163 { XFLT, "PARTS_AR", 57 },
164 { XFLT, "PARTS_al_D_al0", 57 },
165 { XFLT, "PARTS_cl_D_cl0", 57 },
166 { XFLT, "PARTS_cm_D_cm0", 57 },
167 { XFLT, "PARTS_delta_fac", 57 },
168 { XFLT, "PARTS_spec_wash", 57 },
169 { XFLT, "PARTS_alpha_max", 57 },
170 { XFLT, "PARTS_slat_effect", 57 },
171 { XFLT, "PARTS_s", 570 },
172 { XFLT, "PARTS_mac", 570 },
173 { XFLT, "PARTS_anginc", 570 },
174 { XINT, "PARTS_ail1", 570 },
175 { XINT, "PARTS_ail2", 570 },
176 { XINT, "PARTS_splr", 570 },
177 { XINT, "PARTS_flap", 570 },
178 { XINT, "PARTS_flapEQ", 1 },
179 { XINT, "PARTS_slat", 570 },
180 { XINT, "PARTS_slatEQ", 1 },
181 { XINT, "PARTS_sbrk", 570 },
182 { XINT, "PARTS_sbrkEQ", 1 },
183 { XINT, "PARTS_drud", 570 },
184 { XINT, "PARTS_elev", 570 },
185 { XINT, "PARTS_rudd", 570 },
186 { XINT, "PARTS_in_downwash", 32490 },
187 { XFLT, "PARTS_body_r", 57 },
188 { XFLT, "PARTS_body_X", 20520 },
189 { XFLT, "PARTS_body_Y", 20520 },
190 { XFLT, "PARTS_body_Z", 20520 },
191 { XINT, "PARTS_gear_type", 57 },
192 { XFLT, "PARTS_gear_latE", 57 },
193 { XFLT, "PARTS_gear_lonE", 57 },
194 { XFLT, "PARTS_gear_axiE", 57 },
195 { XFLT, "PARTS_gear_latR", 57 },
196 { XFLT, "PARTS_gear_lonR", 57 },
197 { XFLT, "PARTS_gear_axiR", 57 },
198 { XFLT, "PARTS_gear_latN", 57 },
199 { XFLT, "PARTS_gear_lonN", 57 },
200 { XFLT, "PARTS_gear_axiN", 57 },
201 { XFLT, "PARTS_gear_leglen", 57 },
202 { XFLT, "PARTS_gear_tirrad", 57 },
203 { XFLT, "PARTS_gearcon", 57 },
204 { XFLT, "PARTS_geardmp", 57 },
205 { XFLT, "PARTS_gearstatdef", 57 },
206 { XFLT, "PARTS_gear_def", 57 },
207 { XFLT, "PARTS_gear_deploy", 57 },
208 { XFLT, "PARTS_gear_xnodef", 57 },
209 { XFLT, "PARTS_gear_ynodef", 57 },
210 { XFLT, "PARTS_gear_znodef", 57 },
211 { XFLT, "BODY__fuse_cd", 1 },
212 { XFLT, "CTRLS_ail1_crat", 1 },
213 { XFLT, "CTRLS_ail1_up", 1 },
214 { XFLT, "CTRLS_ail1_d", 1 },
215 { XFLT, "CTRLS_lail1def", 1 },
216 { XFLT, "CTRLS_rail1def", 1 },
217 { XFLT, "CTRLS_ail2_crat", 1 },
218 { XFLT, "CTRLS_ail2_up", 1 },
219 { XFLT, "CTRLS_ail2_d", 1 },
220 { XFLT, "CTRLS_lail2def", 1 },
221 { XFLT, "CTRLS_rail2def", 1 },
222 { XFLT, "CTRLS_elev_crat", 1 },
223 { XFLT, "CTRLS_elev_up", 1 },
224 { XFLT, "CTRLS_elev_d", 1 },
225 { XFLT, "CTRLS_lhstbdef", 1 },
226 { XFLT, "CTRLS_rhstbdef", 1 },
227 { XFLT, "CTRLS_rudd_crat", 1 },
228 { XFLT, "CTRLS_rudd_l", 1 },
229 { XFLT, "CTRLS_rudd1def", 1 },
230 { XFLT, "CTRLS_rudd2def", 1 },
231 { XFLT, "CTRLS_splr_crat", 1 },
232 { XFLT, "CTRLS_splr_u", 1 },
233 { XFLT, "CTRLS_lsplrdef", 1 },
234 { XFLT, "CTRLS_rsplrdef", 1 },
235 { XFLT, "CTRLS_drud_crat", 1 },
236 { XFLT, "CTRLS_drud_u", 1 },
237 { XFLT, "CTRLS_ldruddef", 1 },
238 { XFLT, "CTRLS_rdruddef", 1 },
239 { XFLT, "CTRLS_sbrk_crat", 1 },
240 { XFLT, "CTRLS_sbrk_up", 1 },
241 { XFLT, "CTRLS_flap_crat", 1 },
242 { XFLT, "CTRLS_flap_dn", 7 },
243 { XFLT, "CTRLS_lflapdef", 1 },
244 { XFLT, "CTRLS_rflapdef", 1 },
245 { XFLT, "CTRLS_hstb_trim_up", 1 },
246 { XFLT, "CTRLS_hstb_trim_d", 1 },
247 { XFLT, "CTRLS_hstb_trim_def", 1 },
248 { XINT, "CTRLS_hstabtype", 1 },
249 { XINT, "CTRLS_vstabtype", 1 },
250 { XINT, "CTRLS_flap_type", 1 },
251 { XINT, "CTRLS_con_smooth", 1 },
252 { XFLT, "CTRLS_flap_cl", 1 },
253 { XFLT, "CTRLS_flap_cd", 1 },
254 { XFLT, "CTRLS_flap_cm", 1 },
255 { XINT, "CTRLS_flap_detents", 1 },
256 { XFLT, "CTRLS_flap_deftime", 1 },
257 { XFLT, "CTRLS_slat_inc", 1 },
258 { XFLT, "CTRLS_blownflap_addspeed", 1 },
259 { XFLT, "CTRLS_blownflap_throtred", 1 },
260 { XFLT, "CTRLS_blownflap_minengag", 1 },
261 { XINT, "GEAR__gear_retract", 1 },
262 { XINT, "GEAR__is_taildragger", 1 },
263 { XINT, "GEAR__gear_is_skid", 1 },
264 { XFLT, "GEAR__gear_deptime", 1 },
265 { XFLT, "GEAR__nwsteerdeg1", 1 },
266 { XFLT, "GEAR__nwsteerdeg2", 1 },
267 { XFLT, "GEAR__nwsteerspd", 1 },
268 { XFLT, "GEAR__water_rud_longarm", 1 },
269 { XFLT, "GEAR__water_rud_area", 1 },
270 { XFLT, "GEAR__water_rud_maxdef", 1 },
271 { XFLT, "GEAR__h_eqlbm", 1 },
272 { XFLT, "GEAR__the_eqlbm", 1 },
273 { XINT, "GEAR__gear_door_use", 10 },
274 { XFLT, "GEAR__gear_door_loc", 30 },
275 { XFLT, "GEAR__gear_door_geo", 120 },
276 { XFLT, "GEAR__gear_door_axi_rot", 10 },
277 { XFLT, "GEAR__gear_door_ext_ang", 10 },
278 { XFLT, "GEAR__gear_door_ret_ang", 10 },
279 { XFLT, "GEAR__gear_door_ang_now", 10 },
280 { XFLT, "WEIGHTcgY", 1 },
281 { XFLT, "WEIGHTcgZ", 1 },
282 { XFLT, "WEIGHTJxx_unitmass", 1 },
283 { XFLT, "WEIGHTJyy_unitmass", 1 },
284 { XFLT, "WEIGHTJzz_unitmass", 1 },
285 { XFLT, "WEIGHTm_empty", 1 },
286 { XFLT, "WEIGHTm_displaced", 1 },
287 { XFLT, "WEIGHTm_max", 1 },
288 { XFLT, "WEIGHTm_fuel", 1 },
289 { XFLT, "WEIGHTm_jettison", 1 },
290 { XFLT, "WEIGHTm_displaced_y", 1 },
291 { XFLT, "SPEC__jato_theta", 1 },
292 { XFLT, "SPEC__jato_thrust", 1 },
293 { XFLT, "SPEC__jato_dur", 1 },
294 { XFLT, "SPEC__jato_sfc", 1 },
295 { XFLT, "SPEC__jato_Y", 1 },
296 { XFLT, "SPEC__jato_Z", 1 },
297 { XFLT, "SPEC__brake_area", 1 },
298 { XFLT, "SPEC__brake_Y", 1 },
299 { XFLT, "SPEC__brake_Z", 1 },
300 { XFLT, "SPEC__chute_area", 1 },
301 { XFLT, "SPEC__chute_Y", 1 },
302 { XFLT, "SPEC__chute_Z", 1 },
303 { XFLT, "SPEC__ail1pitch", 1 },
304 { XFLT, "SPEC__ail1flaps", 1 },
305 { XFLT, "SPEC__ail2pitch", 1 },
306 { XFLT, "SPEC__ail2flaps", 1 },
307 { XFLT, "SPEC__stabroll", 1 },
308 { XFLT, "SPEC__stabhdng", 1 },
309 { XFLT, "SPEC__ail2vmax", 1 },
310 { XFLT, "SPEC__tvec_ptch", 1 },
311 { XFLT, "SPEC__tvec_roll", 1 },
312 { XFLT, "SPEC__tvec_hdng", 1 },
313 { XFLT, "SPEC__diff_thro_with_hdng", 1 },
314 { XINT, "SPEC__arrestingEQ", 1 },
315 { XINT, "SPEC__antiiceEQ", 1 },
316 { XINT, "SPEC__bitchinbettyEQ", 1 },
317 { XINT, "SPEC__gearhornEQ", 1 },
318 { XINT, "SPEC__autosbrkEQ", 1 },
319 { XINT, "SPEC__autofbrkEQ", 1 },
320 { XINT, "SPEC__autosweepEQ", 1 },
321 { XINT, "SPEC__autoslatEQ", 1 },
322 { XINT, "VTOL__vectEQ", 1 },
323 { XFLT, "VTOL__vectarm", 1 },
324 { XFLT, "VTOL__cyclic_elev", 1 },
325 { XFLT, "VTOL__cyclic_ailn", 1 },
326 { XFLT, "VTOL__delta3", 1 },
327 { XFLT, "VTOL__puffL", 1 },
328 { XFLT, "VTOL__puffM", 1 },
329 { XFLT, "VTOL__puffN", 1 },
330 { XFLT, "VTOL__tail_with_coll", 1 },
331 { XFLT, "VTOL__diff_coll_with_roll", 1 },
332 { XFLT, "VTOL__diff_coll_with_hdng", 1 },
333 { XFLT, "VTOL__diff_cycl_with_hdng", 1 },
334 { XINT, "VTOL__auto_rpm_with_tvec", 1 },
335 { XFLT, "VTOL__rotor_trim_max", 1 },
336 { XFLT, "VTOL__rotor_trim_ptch_cyc_rat", 1 },
337 { XFLT, "ASTAB_AShiV", 1 },
338 { XFLT, "ASTAB_ASloV", 1 },
339 { XFLT, "ASTAB_ASmaxp1", 1 },
340 { XFLT, "ASTAB_ASp1", 1 },
341 { XFLT, "ASTAB_ASmaxp2", 1 },
342 { XFLT, "ASTAB_ASp2", 1 },
343 { XFLT, "ASTAB_ASmaxh1", 1 },
344 { XFLT, "ASTAB_ASh1", 1 },
345 { XFLT, "ASTAB_ASmaxh2", 1 },
346 { XFLT, "ASTAB_ASh2", 1 },
347 { XFLT, "ASTAB_ASmaxr1", 1 },
348 { XFLT, "ASTAB_ASr1", 1 },
349 { XFLT, "ASTAB_ASmaxr2", 1 },
350 { XFLT, "ASTAB_ASr2", 1 },
351 { XFLT, "ASTAB_ASminG", 1 },
352 { XFLT, "ASTAB_ASmaxG", 1 },
353 { XFLT, "OVER__flt_overflow", 300 },
354 { XINT, "OVER__drive_by_wire", 1 },
355
356 { XEOF, NULL, 0 }
357};
358
359#endif /* _IMP_ACF_DEF_ACF603 */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf625.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf625.h
new file mode 100644
index 0000000..dc22f18
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf625.h
@@ -0,0 +1,406 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_ACF_DEF_ACF625
23#define _IMP_ACF_DEF_ACF625
24
25static const AcfDef acf_def_acf625[] = {
26 { XCHR, "VIEW__PlatForm", 1 },
27 { XCHR, "VIEW__Filler", 4 },
28 { XCHR, "VIEW__tailnum", 40 },
29 { XCHR, "VIEW__author", 500 },
30 { XCHR, "VIEW__descrip", 500 },
31 { XFLT, "VIEW__size_x", 1 },
32 { XFLT, "VIEW__size_z", 1 },
33 { XINT, "VIEW__is_APL", 1 },
34 { XINT, "VIEW__actype", 1 },
35 { XINT, "VIEW__HUDtype", 1 },
36 { XINT, "VIEW__asi_kts", 1 },
37 { XINT, "VIEW__cockpit_type", 1 },
38 { XINT, "VIEW__has_fd", 1 },
39 { XINT, "VIEW__has_stallwarn", 1 },
40 { XINT, "VIEW__has_litemap_tex", 1 },
41 { XFLT, "VIEW__peX", 1 },
42 { XFLT, "VIEW__peY", 1 },
43 { XFLT, "VIEW__peZ", 1 },
44 { XFLT, "VIEW__Vso", 1 },
45 { XFLT, "VIEW__Vs", 1 },
46 { XFLT, "VIEW__Vfe", 1 },
47 { XFLT, "VIEW__Vno", 1 },
48 { XFLT, "VIEW__Vne", 1 },
49 { XFLT, "VIEW__Mmo", 1 },
50 { XFLT, "VIEW__Gneg", 1 },
51 { XFLT, "VIEW__Gpos", 1 },
52 { XFLT, "VIEW__est_Vs", 1 },
53 { XFLT, "VIEW__yawstringx", 1 },
54 { XFLT, "VIEW__yawstringy", 1 },
55 { XFLT, "VIEW__HUD_cntr", 1 },
56 { XFLT, "VIEW__HUD_cntry", 1 },
57 { XFLT, "VIEW__HUD_del", 1 },
58 { XFLT, "VIEW__HUD_dely", 1 },
59 { XINT, "VIEW__has_lanlite1", 1 },
60 { XFLT, "VIEW__lanlite1X", 1 },
61 { XFLT, "VIEW__lanlite1Y", 1 },
62 { XFLT, "VIEW__lanlite1Z", 1 },
63 { XFLT, "VIEW__lanlite_the", 1 },
64 { XINT, "VIEW__has_lanlite2", 1 },
65 { XFLT, "VIEW__lanlite2X", 1 },
66 { XFLT, "VIEW__lanlite2Y", 1 },
67 { XFLT, "VIEW__lanlite2Z", 1 },
68 { XINT, "VIEW__has_lanlite3", 1 },
69 { XFLT, "VIEW__lanlite3X", 1 },
70 { XFLT, "VIEW__lanlite3Y", 1 },
71 { XFLT, "VIEW__lanlite3Z", 1 },
72 { XINT, "VIEW__has_fuserb1", 1 },
73 { XFLT, "VIEW__fuserb1", 1 },
74 { XFLT, "VIEW__fuserb1", 1 },
75 { XFLT, "VIEW__fuserb1Z", 1 },
76 { XINT, "VIEW__has_fuserb2", 1 },
77 { XFLT, "VIEW__fuserb2", 1 },
78 { XFLT, "VIEW__fuserb2", 1 },
79 { XFLT, "VIEW__fuserb2Z", 1 },
80 { XINT, "VIEW__has_taillite", 1 },
81 { XFLT, "VIEW__tailliteX", 1 },
82 { XFLT, "VIEW__tailliteY", 1 },
83 { XFLT, "VIEW__tailliteZ", 1 },
84 { XINT, "VIEW__has_navlites", 1 },
85 { XINT, "PANEL_ins_type", 200 },
86 { XFLT, "PANEL_ins_size", 200 },
87 { XFLT, "PANEL_ins_x", 200 },
88 { XFLT, "PANEL_ins_y", 200 },
89 { XFLT, "PANEL_ins_delx", 200 },
90 { XFLT, "PANEL_ins_dely", 200 },
91 { XINT, "FORCE_Hydraulic", 1 },
92 { XINT, "FORCE_Stickshaker", 1 },
93 { XINT, "ENG___number_engines", 1 },
94 { XINT, "ENG___auto_feather_EQ", 1 },
95 { XFLT, "ENG___throtmax_FW", 1 },
96 { XFLT, "ENG___throtmax_REV", 1 },
97 { XFLT, "ENG___omegaminRS", 1 },
98 { XFLT, "ENG___omegamaxRSC", 1 },
99 { XFLT, "ENG___omegamingreenRSC", 1 },
100 { XFLT, "ENG___omegamaxgreenRSC", 1 },
101 { XFLT, "ENG___pmax", 1 },
102 { XFLT, "ENG___tmax", 1 },
103 { XFLT, "ENG___burnerinc", 1 },
104 { XFLT, "ENG___critalt", 1 },
105 { XFLT, "ENG___mpmax", 1 },
106 { XFLT, "ENG___gearrat", 1 },
107 { XFLT, "ENG___face_jet", 1 },
108 { XFLT, "ENG___face_rocket", 1 },
109 { XFLT, "ENG___spooltime", 1 },
110 { XFLT, "ENG___max_mach_eff", 1 },
111 { XFLT, "ENG___fmax_sl", 1 },
112 { XFLT, "ENG___fmax_opt", 1 },
113 { XFLT, "ENG___fmax_vac", 1 },
114 { XFLT, "ENG___h_opt", 1 },
115 { XFLT, "ENG___tip_mach_des_50", 1 },
116 { XFLT, "ENG___tip_mach_des_100", 1 },
117 { XFLT, "ENG___rotor_mi_rat", 1 },
118 { XFLT, "ENG___tip_weight", 1 },
119 { XFLT, "ENG___trotor_rat", 1 },
120 { XINT, "PROP__engine_type", 8 },
121 { XINT, "PROP__revthrust_eq", 8 },
122 { XINT, "PROP__prop_type", 8 },
123 { XFLT, "PROP__prop_dir", 8 },
124 { XFLT, "PROP__num_blades", 8 },
125 { XFLT, "PROP__SFC", 8 },
126 { XFLT, "PROP__minpitch", 8 },
127 { XFLT, "PROP__maxpitch", 8 },
128 { XFLT, "PROP__revpitch", 8 },
129 { XFLT, "PROP__sidecant", 8 },
130 { XFLT, "PROP__vertcant", 8 },
131 { XFLT, "PROP__miprop_rpm", 8 },
132 { XFLT, "PROP__miprop_pitch", 8 },
133 { XFLT, "PROP__discarea", 8 },
134 { XFLT, "PROP__ringarea", 80 },
135 { XFLT, "PROP__bladesweep", 80 },
136 { XFLT, "PROP__des_rpm_prp", 8 },
137 { XFLT, "PROP__des_kts_prp", 8 },
138 { XFLT, "PROP__des_kts_acf", 8 },
139 { XINT, "PARTS_part_eq", 57 },
140 { XCHR, "PARTS_Rafl0", 2280 },
141 { XCHR, "PARTS_Rafl1", 2280 },
142 { XCHR, "PARTS_Tafl0", 2280 },
143 { XCHR, "PARTS_Tafl1", 2280 },
144 { XINT, "PARTS_els", 57 },
145 { XFLT, "PARTS_Xarm", 57 },
146 { XFLT, "PARTS_Yarm", 57 },
147 { XFLT, "PARTS_Zarm", 57 },
148 { XFLT, "PARTS_X_body_aero", 57 },
149 { XFLT, "PARTS_Y_body_aero", 57 },
150 { XFLT, "PARTS_Z_body_aero", 57 },
151 { XFLT, "PARTS_Croot", 57 },
152 { XFLT, "PARTS_Ctip", 57 },
153 { XFLT, "PARTS_dihed", 57 },
154 { XFLT, "PARTS_sweep1", 57 },
155 { XFLT, "PARTS_sweep2", 57 },
156 { XFLT, "PARTS_sweepnow", 57 },
157 { XINT, "PARTS_varsweepEQ", 57 },
158 { XFLT, "PARTS_semilen_SEG", 57 },
159 { XFLT, "PARTS_semilen_JND", 57 },
160 { XFLT, "PARTS_e", 57 },
161 { XFLT, "PARTS_AR", 57 },
162 { XFLT, "PARTS_al_D_al0", 57 },
163 { XFLT, "PARTS_cl_D_cl0", 57 },
164 { XFLT, "PARTS_cm_D_cm0", 57 },
165 { XFLT, "PARTS_delta_fac", 57 },
166 { XFLT, "PARTS_spec_wash", 57 },
167 { XFLT, "PARTS_alpha_max", 57 },
168 { XFLT, "PARTS_slat_effect", 57 },
169 { XFLT, "PARTS_s", 570 },
170 { XFLT, "PARTS_mac", 570 },
171 { XFLT, "PARTS_anginc", 570 },
172 { XINT, "PARTS_ail1", 570 },
173 { XINT, "PARTS_ail2", 570 },
174 { XINT, "PARTS_splr", 570 },
175 { XINT, "PARTS_flap", 570 },
176 { XINT, "PARTS_flapEQ", 1 },
177 { XINT, "PARTS_slat", 570 },
178 { XINT, "PARTS_slatEQ", 1 },
179 { XINT, "PARTS_sbrk", 570 },
180 { XINT, "PARTS_sbrkEQ", 1 },
181 { XINT, "PARTS_drud", 570 },
182 { XINT, "PARTS_elev", 570 },
183 { XINT, "PARTS_rudd", 570 },
184 { XINT, "PARTS_in_downwash", 32490 },
185 { XFLT, "PARTS_body_r", 57 },
186 { XFLT, "PARTS_body_X", 20520 },
187 { XFLT, "PARTS_body_Y", 20520 },
188 { XFLT, "PARTS_body_Z", 20520 },
189 { XINT, "PARTS_gear_type", 57 },
190 { XFLT, "PARTS_gear_latE", 57 },
191 { XFLT, "PARTS_gear_lonE", 57 },
192 { XFLT, "PARTS_gear_axiE", 57 },
193 { XFLT, "PARTS_gear_latR", 57 },
194 { XFLT, "PARTS_gear_lonR", 57 },
195 { XFLT, "PARTS_gear_axiR", 57 },
196 { XFLT, "PARTS_gear_latN", 57 },
197 { XFLT, "PARTS_gear_lonN", 57 },
198 { XFLT, "PARTS_gear_axiN", 57 },
199 { XFLT, "PARTS_gear_leglen", 57 },
200 { XFLT, "PARTS_gear_tirrad", 57 },
201 { XFLT, "PARTS_gearcon", 57 },
202 { XFLT, "PARTS_geardmp", 57 },
203 { XFLT, "PARTS_gearstatdef", 57 },
204 { XFLT, "PARTS_gear_def", 57 },
205 { XFLT, "PARTS_gear_deploy", 57 },
206 { XFLT, "PARTS_gear_xnodef", 57 },
207 { XFLT, "PARTS_gear_ynodef", 57 },
208 { XFLT, "PARTS_gear_znodef", 57 },
209 { XFLT, "BODY__fuse_cd", 1 },
210 { XFLT, "CTRLS_ail1_crat", 1 },
211 { XFLT, "CTRLS_ail1_up", 1 },
212 { XFLT, "CTRLS_ail1_d", 1 },
213 { XFLT, "CTRLS_lail1def", 1 },
214 { XFLT, "CTRLS_rail1def", 1 },
215 { XFLT, "CTRLS_ail2_crat", 1 },
216 { XFLT, "CTRLS_ail2_up", 1 },
217 { XFLT, "CTRLS_ail2_d", 1 },
218 { XFLT, "CTRLS_lail2def", 1 },
219 { XFLT, "CTRLS_rail2def", 1 },
220 { XFLT, "CTRLS_elev_crat", 1 },
221 { XFLT, "CTRLS_elev_up", 1 },
222 { XFLT, "CTRLS_elev_d", 1 },
223 { XFLT, "CTRLS_lhstbdef", 1 },
224 { XFLT, "CTRLS_rhstbdef", 1 },
225 { XFLT, "CTRLS_rudd_crat", 1 },
226 { XFLT, "CTRLS_rudd_l", 1 },
227 { XFLT, "CTRLS_rudd1def", 1 },
228 { XFLT, "CTRLS_rudd2def", 1 },
229 { XFLT, "CTRLS_splr_crat", 1 },
230 { XFLT, "CTRLS_splr_u", 1 },
231 { XFLT, "CTRLS_lsplrdef", 1 },
232 { XFLT, "CTRLS_rsplrdef", 1 },
233 { XFLT, "CTRLS_drud_crat", 1 },
234 { XFLT, "CTRLS_drud_u", 1 },
235 { XFLT, "CTRLS_ldruddef", 1 },
236 { XFLT, "CTRLS_rdruddef", 1 },
237 { XFLT, "CTRLS_sbrk_crat", 1 },
238 { XFLT, "CTRLS_sbrk_up", 1 },
239 { XFLT, "CTRLS_flap_crat", 1 },
240 { XFLT, "CTRLS_flap_dn", 7 },
241 { XFLT, "CTRLS_lflapdef", 1 },
242 { XFLT, "CTRLS_rflapdef", 1 },
243 { XFLT, "CTRLS_hstb_trim_up", 1 },
244 { XFLT, "CTRLS_hstb_trim_d", 1 },
245 { XFLT, "CTRLS_hstb_trim_def", 1 },
246 { XINT, "CTRLS_hstabtype", 1 },
247 { XINT, "CTRLS_vstabtype", 1 },
248 { XINT, "CTRLS_flap_type", 1 },
249 { XINT, "CTRLS_con_smooth", 1 },
250 { XFLT, "CTRLS_flap_cl", 1 },
251 { XFLT, "CTRLS_flap_cd", 1 },
252 { XFLT, "CTRLS_flap_cm", 1 },
253 { XINT, "CTRLS_flap_detents", 1 },
254 { XFLT, "CTRLS_flap_deftime", 1 },
255 { XFLT, "CTRLS_slat_inc", 1 },
256 { XFLT, "CTRLS_blownflap_addspeed", 1 },
257 { XFLT, "CTRLS_blownflap_throtred", 1 },
258 { XFLT, "CTRLS_blownflap_minengag", 1 },
259 { XINT, "GEAR__gear_retract", 1 },
260 { XINT, "GEAR__is_taildragger", 1 },
261 { XINT, "GEAR__gear_is_skid", 1 },
262 { XFLT, "GEAR__gear_deptime", 1 },
263 { XFLT, "GEAR__nwsteerdeg1", 1 },
264 { XFLT, "GEAR__nwsteerdeg2", 1 },
265 { XFLT, "GEAR__nwsteerspd", 1 },
266 { XFLT, "GEAR__water_rud_longarm", 1 },
267 { XFLT, "GEAR__water_rud_area", 1 },
268 { XFLT, "GEAR__water_rud_maxdef", 1 },
269 { XFLT, "GEAR__h_eqlbm", 1 },
270 { XFLT, "GEAR__the_eqlbm", 1 },
271 { XINT, "GEAR__gear_door_use", 10 },
272 { XFLT, "GEAR__gear_door_loc", 30 },
273 { XFLT, "GEAR__gear_door_geo", 120 },
274 { XFLT, "GEAR__gear_door_axi_rot", 10 },
275 { XFLT, "GEAR__gear_door_ext_ang", 10 },
276 { XFLT, "GEAR__gear_door_ret_ang", 10 },
277 { XFLT, "GEAR__gear_door_ang_now", 10 },
278 { XFLT, "WEIGHTcgY", 1 },
279 { XFLT, "WEIGHTcgZ", 1 },
280 { XFLT, "WEIGHTJxx_unitmass", 1 },
281 { XFLT, "WEIGHTJyy_unitmass", 1 },
282 { XFLT, "WEIGHTJzz_unitmass", 1 },
283 { XFLT, "WEIGHTm_empty", 1 },
284 { XFLT, "WEIGHTm_displaced", 1 },
285 { XFLT, "WEIGHTm_max", 1 },
286 { XFLT, "WEIGHTm_fuel", 1 },
287 { XFLT, "WEIGHTm_jettison", 1 },
288 { XFLT, "WEIGHTm_displaced_y", 1 },
289 { XFLT, "SPEC__jato_theta", 1 },
290 { XFLT, "SPEC__jato_thrust", 1 },
291 { XFLT, "SPEC__jato_dur", 1 },
292 { XFLT, "SPEC__jato_sfc", 1 },
293 { XFLT, "SPEC__jato_Y", 1 },
294 { XFLT, "SPEC__jato_Z", 1 },
295 { XFLT, "SPEC__brake_area", 1 },
296 { XFLT, "SPEC__brake_Y", 1 },
297 { XFLT, "SPEC__brake_Z", 1 },
298 { XFLT, "SPEC__chute_area", 1 },
299 { XFLT, "SPEC__chute_Y", 1 },
300 { XFLT, "SPEC__chute_Z", 1 },
301 { XFLT, "SPEC__ail1pitch", 1 },
302 { XFLT, "SPEC__ail1flaps", 1 },
303 { XFLT, "SPEC__ail2pitch", 1 },
304 { XFLT, "SPEC__ail2flaps", 1 },
305 { XFLT, "SPEC__stabroll", 1 },
306 { XFLT, "SPEC__stabhdng", 1 },
307 { XFLT, "SPEC__ail2vmax", 1 },
308 { XFLT, "SPEC__tvec_ptch", 1 },
309 { XFLT, "SPEC__tvec_roll", 1 },
310 { XFLT, "SPEC__tvec_hdng", 1 },
311 { XFLT, "SPEC__diff_thro_with_hdng", 1 },
312 { XINT, "SPEC__arrestingEQ", 1 },
313 { XINT, "SPEC__antiiceEQ", 1 },
314 { XINT, "SPEC__bitchinbettyEQ", 1 },
315 { XINT, "SPEC__gearhornEQ", 1 },
316 { XINT, "SPEC__autosbrkEQ", 1 },
317 { XINT, "SPEC__autofbrkEQ", 1 },
318 { XINT, "SPEC__autosweepEQ", 1 },
319 { XINT, "SPEC__autoslatEQ", 1 },
320 { XINT, "VTOL__vectEQ", 1 },
321 { XFLT, "VTOL__vectarm", 1 },
322 { XFLT, "VTOL__cyclic_elev", 1 },
323 { XFLT, "VTOL__cyclic_ailn", 1 },
324 { XFLT, "VTOL__delta3", 1 },
325 { XFLT, "VTOL__puffL", 1 },
326 { XFLT, "VTOL__puffM", 1 },
327 { XFLT, "VTOL__puffN", 1 },
328 { XFLT, "VTOL__tail_with_coll", 1 },
329 { XFLT, "VTOL__diff_coll_with_roll", 1 },
330 { XFLT, "VTOL__diff_coll_with_hdng", 1 },
331 { XFLT, "VTOL__diff_cycl_with_hdng", 1 },
332 { XINT, "VTOL__auto_rpm_with_tvec", 1 },
333 { XFLT, "VTOL__rotor_trim_max_fwd", 1 },
334 { XFLT, "VTOL__rotor_trim_max_aft", 1 },
335 { XFLT, "ASTAB_AShiV", 1 },
336 { XFLT, "ASTAB_ASloV", 1 },
337 { XFLT, "ASTAB_Asmaxp_lo", 1 },
338 { XFLT, "ASTAB_Asp_lo_rate", 1 },
339 { XFLT, "ASTAB_Asmaxp_hi", 1 },
340 { XFLT, "ASTAB_Asp_hi_pos", 1 },
341 { XFLT, "ASTAB_Asmaxh_lo", 1 },
342 { XFLT, "ASTAB_Ash_lo_rate", 1 },
343 { XFLT, "ASTAB_Asmaxh_hi", 1 },
344 { XFLT, "ASTAB_Ash_hi_pos", 1 },
345 { XFLT, "ASTAB_Asmaxr_lo", 1 },
346 { XFLT, "ASTAB_Asr_lo_rate", 1 },
347 { XFLT, "ASTAB_Asmaxr_hi", 1 },
348 { XFLT, "ASTAB_Asr_hi_rate", 1 },
349 { XFLT, "fdummy1", 1 },
350 { XFLT, "fdummy2", 1 },
351 { XFLT, "element_len", 57 },
352 { XFLT, "gear_door_size", 1 },
353 { XFLT, "stab_change_to_redline", 1 },
354 { XFLT, "Vmca", 1 },
355 { XFLT, "Vyse", 1 },
356 { XFLT, "flap_arm", 1 },
357 { XFLT, "tank_xyz12", 6 },
358 { XFLT, "cgZ_fwd", 1 },
359 { XFLT, "cgZ_aft", 1 },
360 { XFLT, "gear_cyc_time", 5 },
361 { XFLT, "refuel_X", 1 },
362 { XFLT, "refuel_Y", 1 },
363 { XFLT, "refuel_Z", 1 },
364 { XCHR, "gear_steers", 57 },
365 { XCHR, "hybrid_gear", 1 },
366 { XCHR, "chr_overflow", 2 },
367 { XINT, "vardihedEQ", 57 },
368 { XFLT, "dihed2", 57 },
369 { XFLT, "dihednow", 57 },
370 { XFLT, "jett_xyz", 3 },
371 { XFLT, "puffX", 1 },
372 { XFLT, "puffY", 1 },
373 { XFLT, "puffZ", 1 },
374 { XFLT, "Vle", 1 },
375 { XFLT, "ASp_hi_rate", 1 },
376 { XFLT, "ASh_hi_rate", 1 },
377 { XFLT, "spooltime_prop", 1 },
378 { XFLT, "elevflaps", 1 },
379 { XFLT, "tank_xyz3", 3 },
380 { XFLT, "tank_rat", 3 },
381 { XFLT, "stall_warn_alpha", 1 },
382 { XFLT, "mass_shift", 1 },
383 { XFLT, "mass_shift_dx", 1 },
384 { XFLT, "mass_shift_dz", 1 },
385 { XFLT, "feathered_pitch", 1 },
386 { XFLT, "ASmaxg_hi", 1 },
387 { XFLT, "ASg_hi_pos", 1 },
388 { XFLT, "ASg_hi_rate", 1 },
389 { XFLT, "flt_overflow", 11 },
390 { XINT, "OVER__drive_by_wire", 1 },
391 { XINT, "is_glossy", 1 },
392 { XINT, "num_tanks", 1 },
393 { XINT, "has_refuel", 1 },
394 { XINT, "draw_geo_frnt_views", 1 },
395 { XINT, "draw_geo_side_views", 1 },
396 { XINT, "jett_is_slung", 1 },
397 { XFLT, "eng_mass", 57 },
398 { XINT, "phase_tvect", 1 },
399 { XINT, "auto_trim", 1 },
400 { XINT, "has_DC_fd", 1 },
401 { XINT, "int_overflow", 23 },
402
403 { XEOF, NULL, 0 }
404};
405
406#endif /* _IMP_ACF_DEF_ACF625 */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf630.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf630.h
new file mode 100644
index 0000000..283896d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf630.h
@@ -0,0 +1,417 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_ACF_DEF_ACF630
23#define _IMP_ACF_DEF_ACF630
24
25#include "imp_acf_def_proto.h"
26
27static const AcfDef acf_def_acf630[] = {
28 { XCHR, "VIEW__PlatForm", 1 },
29 { XCHR, "VIEW__Filler", 4 },
30 { XCHR, "VIEW__tailnum", 40 },
31 { XCHR, "VIEW__author", 500 },
32 { XCHR, "VIEW__descrip", 500 },
33 { XFLT, "VIEW__size_x", 1 },
34 { XFLT, "VIEW__size_z", 1 },
35 { XINT, "VIEW__is_APL", 1 },
36 { XINT, "VIEW__actype", 1 },
37 { XINT, "VIEW__HUDtype", 1 },
38 { XINT, "VIEW__asi_kts", 1 },
39 { XINT, "VIEW__cockpit_type", 1 },
40 { XINT, "VIEW__has_fd", 1 },
41 { XINT, "VIEW__has_stallwarn", 1 },
42 { XINT, "VIEW__has_litemap_tex", 1 },
43 { XFLT, "VIEW__peX", 1 },
44 { XFLT, "VIEW__peY", 1 },
45 { XFLT, "VIEW__peZ", 1 },
46 { XFLT, "VIEW__Vso", 1 },
47 { XFLT, "VIEW__Vs", 1 },
48 { XFLT, "VIEW__Vfe", 1 },
49 { XFLT, "VIEW__Vno", 1 },
50 { XFLT, "VIEW__Vne", 1 },
51 { XFLT, "VIEW__Mmo", 1 },
52 { XFLT, "VIEW__Gneg", 1 },
53 { XFLT, "VIEW__Gpos", 1 },
54 { XFLT, "VIEW__est_Vs", 1 },
55 { XFLT, "VIEW__yawstringx", 1 },
56 { XFLT, "VIEW__yawstringy", 1 },
57 { XFLT, "VIEW__HUD_cntr", 1 },
58 { XFLT, "VIEW__HUD_cntry", 1 },
59 { XFLT, "VIEW__HUD_del", 1 },
60 { XFLT, "VIEW__HUD_dely", 1 },
61 { XINT, "VIEW__has_lanlite1", 1 },
62 { XFLT, "VIEW__lanlite1X", 1 },
63 { XFLT, "VIEW__lanlite1Y", 1 },
64 { XFLT, "VIEW__lanlite1Z", 1 },
65 { XFLT, "VIEW__lanlite_the", 1 },
66 { XINT, "VIEW__has_lanlite2", 1 },
67 { XFLT, "VIEW__lanlite2X", 1 },
68 { XFLT, "VIEW__lanlite2Y", 1 },
69 { XFLT, "VIEW__lanlite2Z", 1 },
70 { XINT, "VIEW__has_lanlite3", 1 },
71 { XFLT, "VIEW__lanlite3X", 1 },
72 { XFLT, "VIEW__lanlite3Y", 1 },
73 { XFLT, "VIEW__lanlite3Z", 1 },
74 { XINT, "VIEW__has_fuserb1", 1 },
75 { XFLT, "VIEW__fuserb1", 1 },
76 { XFLT, "VIEW__fuserb1", 1 },
77 { XFLT, "VIEW__fuserb1Z", 1 },
78 { XINT, "VIEW__has_fuserb2", 1 },
79 { XFLT, "VIEW__fuserb2", 1 },
80 { XFLT, "VIEW__fuserb2", 1 },
81 { XFLT, "VIEW__fuserb2Z", 1 },
82 { XINT, "VIEW__has_taillite", 1 },
83 { XFLT, "VIEW__tailliteX", 1 },
84 { XFLT, "VIEW__tailliteY", 1 },
85 { XFLT, "VIEW__tailliteZ", 1 },
86 { XINT, "VIEW__has_navlites", 1 },
87 { XINT, "PANEL_ins_type", 200 },
88 { XFLT, "PANEL_ins_size", 200 },
89 { XFLT, "PANEL_ins_x", 200 },
90 { XFLT, "PANEL_ins_y", 200 },
91 { XFLT, "PANEL_ins_delx", 200 },
92 { XFLT, "PANEL_ins_dely", 200 },
93 { XINT, "FORCE_Hydraulic", 1 },
94 { XINT, "FORCE_Stickshaker", 1 },
95 { XINT, "ENG___number_engines", 1 },
96 { XINT, "ENG___auto_feather_EQ", 1 },
97 { XFLT, "ENG___throtmax_FW", 1 },
98 { XFLT, "ENG___throtmax_REV", 1 },
99 { XFLT, "ENG___omegaminRS", 1 },
100 { XFLT, "ENG___omegamaxRSC", 1 },
101 { XFLT, "ENG___omegamingreenRSC", 1 },
102 { XFLT, "ENG___omegamaxgreenRSC", 1 },
103 { XFLT, "ENG___pmax", 1 },
104 { XFLT, "ENG___tmax", 1 },
105 { XFLT, "ENG___burnerinc", 1 },
106 { XFLT, "ENG___critalt", 1 },
107 { XFLT, "ENG___mpmax", 1 },
108 { XFLT, "ENG___gearrat", 1 },
109 { XFLT, "ENG___face_jet", 1 },
110 { XFLT, "ENG___face_rocket", 1 },
111 { XFLT, "ENG___spooltime", 1 },
112 { XFLT, "ENG___max_mach_eff", 1 },
113 { XFLT, "ENG___fmax_sl", 1 },
114 { XFLT, "ENG___fmax_opt", 1 },
115 { XFLT, "ENG___fmax_vac", 1 },
116 { XFLT, "ENG___h_opt", 1 },
117 { XFLT, "ENG___tip_mach_des_50", 1 },
118 { XFLT, "ENG___tip_mach_des_100", 1 },
119 { XFLT, "ENG___rotor_mi_rat", 1 },
120 { XFLT, "ENG___tip_weight", 1 },
121 { XFLT, "ENG___trotor_rat", 1 },
122 { XINT, "PROP__engine_type", 8 },
123 { XINT, "PROP__revthrust_eq", 8 },
124 { XINT, "PROP__prop_type", 8 },
125 { XFLT, "PROP__prop_dir", 8 },
126 { XFLT, "PROP__num_blades", 8 },
127 { XFLT, "PROP__SFC", 8 },
128 { XFLT, "PROP__minpitch", 8 },
129 { XFLT, "PROP__maxpitch", 8 },
130 { XFLT, "PROP__revpitch", 8 },
131 { XFLT, "PROP__sidecant", 8 },
132 { XFLT, "PROP__vertcant", 8 },
133 { XFLT, "PROP__miprop_rpm", 8 },
134 { XFLT, "PROP__miprop_pitch", 8 },
135 { XFLT, "PROP__discarea", 8 },
136 { XFLT, "PROP__ringarea", 80 },
137 { XFLT, "PROP__bladesweep", 80 },
138 { XFLT, "PROP__des_rpm_prp", 8 },
139 { XFLT, "PROP__des_kts_prp", 8 },
140 { XFLT, "PROP__des_kts_acf", 8 },
141 { XINT, "PARTS_part_eq", 57 },
142 { XCHR, "PARTS_Rafl0", 2280 },
143 { XCHR, "PARTS_Rafl1", 2280 },
144 { XCHR, "PARTS_Tafl0", 2280 },
145 { XCHR, "PARTS_Tafl1", 2280 },
146 { XINT, "PARTS_els", 57 },
147 { XFLT, "PARTS_Xarm", 57 },
148 { XFLT, "PARTS_Yarm", 57 },
149 { XFLT, "PARTS_Zarm", 57 },
150 { XFLT, "PARTS_X_body_aero", 57 },
151 { XFLT, "PARTS_Y_body_aero", 57 },
152 { XFLT, "PARTS_Z_body_aero", 57 },
153 { XFLT, "PARTS_Croot", 57 },
154 { XFLT, "PARTS_Ctip", 57 },
155 { XFLT, "PARTS_dihed", 57 },
156 { XFLT, "PARTS_sweep1", 57 },
157 { XFLT, "PARTS_sweep2", 57 },
158 { XFLT, "PARTS_sweepnow", 57 },
159 { XINT, "PARTS_varsweepEQ", 57 },
160 { XFLT, "PARTS_semilen_SEG", 57 },
161 { XFLT, "PARTS_semilen_JND", 57 },
162 { XFLT, "PARTS_e", 57 },
163 { XFLT, "PARTS_AR", 57 },
164 { XFLT, "PARTS_al_D_al0", 57 },
165 { XFLT, "PARTS_cl_D_cl0", 57 },
166 { XFLT, "PARTS_cm_D_cm0", 57 },
167 { XFLT, "PARTS_delta_fac", 57 },
168 { XFLT, "PARTS_spec_wash", 57 },
169 { XFLT, "PARTS_alpha_max", 57 },
170 { XFLT, "PARTS_slat_effect", 57 },
171 { XFLT, "PARTS_s", 570 },
172 { XFLT, "PARTS_mac", 570 },
173 { XFLT, "PARTS_anginc", 570 },
174 { XINT, "PARTS_ail1", 570 },
175 { XINT, "PARTS_ail2", 570 },
176 { XINT, "PARTS_splr", 570 },
177 { XINT, "PARTS_flap", 570 },
178 { XINT, "PARTS_flapEQ", 1 },
179 { XINT, "PARTS_slat", 570 },
180 { XINT, "PARTS_slatEQ", 1 },
181 { XINT, "PARTS_sbrk", 570 },
182 { XINT, "PARTS_sbrkEQ", 1 },
183 { XINT, "PARTS_drud", 570 },
184 { XINT, "PARTS_elev", 570 },
185 { XINT, "PARTS_rudd", 570 },
186 { XINT, "PARTS_in_downwash", 32490 },
187 { XFLT, "PARTS_body_r", 57 },
188 { XFLT, "PARTS_body_X", 20520 },
189 { XFLT, "PARTS_body_Y", 20520 },
190 { XFLT, "PARTS_body_Z", 20520 },
191 { XINT, "PARTS_gear_type", 57 },
192 { XFLT, "PARTS_gear_latE", 57 },
193 { XFLT, "PARTS_gear_lonE", 57 },
194 { XFLT, "PARTS_gear_axiE", 57 },
195 { XFLT, "PARTS_gear_latR", 57 },
196 { XFLT, "PARTS_gear_lonR", 57 },
197 { XFLT, "PARTS_gear_axiR", 57 },
198 { XFLT, "PARTS_gear_latN", 57 },
199 { XFLT, "PARTS_gear_lonN", 57 },
200 { XFLT, "PARTS_gear_axiN", 57 },
201 { XFLT, "PARTS_gear_leglen", 57 },
202 { XFLT, "PARTS_gear_tirrad", 57 },
203 { XFLT, "PARTS_gearcon", 57 },
204 { XFLT, "PARTS_geardmp", 57 },
205 { XFLT, "PARTS_gearstatdef", 57 },
206 { XFLT, "PARTS_gear_def", 57 },
207 { XFLT, "PARTS_gear_deploy", 57 },
208 { XFLT, "PARTS_gear_xnodef", 57 },
209 { XFLT, "PARTS_gear_ynodef", 57 },
210 { XFLT, "PARTS_gear_znodef", 57 },
211 { XFLT, "BODY__fuse_cd", 1 },
212 { XFLT, "CTRLS_ail1_crat", 1 },
213 { XFLT, "CTRLS_ail1_up", 1 },
214 { XFLT, "CTRLS_ail1_d", 1 },
215 { XFLT, "CTRLS_lail1def", 1 },
216 { XFLT, "CTRLS_rail1def", 1 },
217 { XFLT, "CTRLS_ail2_crat", 1 },
218 { XFLT, "CTRLS_ail2_up", 1 },
219 { XFLT, "CTRLS_ail2_d", 1 },
220 { XFLT, "CTRLS_lail2def", 1 },
221 { XFLT, "CTRLS_rail2def", 1 },
222 { XFLT, "CTRLS_elev_crat", 1 },
223 { XFLT, "CTRLS_elev_up", 1 },
224 { XFLT, "CTRLS_elev_d", 1 },
225 { XFLT, "CTRLS_lhstbdef", 1 },
226 { XFLT, "CTRLS_rhstbdef", 1 },
227 { XFLT, "CTRLS_rudd_crat", 1 },
228 { XFLT, "CTRLS_rudd_l", 1 },
229 { XFLT, "CTRLS_rudd1def", 1 },
230 { XFLT, "CTRLS_rudd2def", 1 },
231 { XFLT, "CTRLS_splr_crat", 1 },
232 { XFLT, "CTRLS_splr_u", 1 },
233 { XFLT, "CTRLS_lsplrdef", 1 },
234 { XFLT, "CTRLS_rsplrdef", 1 },
235 { XFLT, "CTRLS_drud_crat", 1 },
236 { XFLT, "CTRLS_drud_u", 1 },
237 { XFLT, "CTRLS_ldruddef", 1 },
238 { XFLT, "CTRLS_rdruddef", 1 },
239 { XFLT, "CTRLS_sbrk_crat", 1 },
240 { XFLT, "CTRLS_sbrk_up", 1 },
241 { XFLT, "CTRLS_flap_crat", 1 },
242 { XFLT, "CTRLS_flap_dn", 7 },
243 { XFLT, "CTRLS_lflapdef", 1 },
244 { XFLT, "CTRLS_rflapdef", 1 },
245 { XFLT, "CTRLS_hstb_trim_up", 1 },
246 { XFLT, "CTRLS_hstb_trim_d", 1 },
247 { XFLT, "CTRLS_hstb_trim_def", 1 },
248 { XINT, "CTRLS_hstabtype", 1 },
249 { XINT, "CTRLS_vstabtype", 1 },
250 { XINT, "CTRLS_flap_type", 1 },
251 { XINT, "CTRLS_con_smooth", 1 },
252 { XFLT, "CTRLS_flap_cl", 1 },
253 { XFLT, "CTRLS_flap_cd", 1 },
254 { XFLT, "CTRLS_flap_cm", 1 },
255 { XINT, "CTRLS_flap_detents", 1 },
256 { XFLT, "CTRLS_flap_deftime", 1 },
257 { XFLT, "CTRLS_slat_inc", 1 },
258 { XFLT, "CTRLS_blownflap_addspeed", 1 },
259 { XFLT, "CTRLS_blownflap_throtred", 1 },
260 { XFLT, "CTRLS_blownflap_minengag", 1 },
261 { XINT, "GEAR__gear_retract", 1 },
262 { XINT, "GEAR__is_taildragger", 1 },
263 { XINT, "GEAR__gear_is_skid", 1 },
264 { XFLT, "GEAR__gear_deptime", 1 },
265 { XFLT, "GEAR__nwsteerdeg1", 1 },
266 { XFLT, "GEAR__nwsteerdeg2", 1 },
267 { XFLT, "GEAR__nwsteerspd", 1 },
268 { XFLT, "GEAR__water_rud_longarm", 1 },
269 { XFLT, "GEAR__water_rud_area", 1 },
270 { XFLT, "GEAR__water_rud_maxdef", 1 },
271 { XFLT, "GEAR__h_eqlbm", 1 },
272 { XFLT, "GEAR__the_eqlbm", 1 },
273 { XINT, "GEAR__gear_door_use", 10 },
274 { XFLT, "GEAR__gear_door_loc", 30 },
275 { XFLT, "GEAR__gear_door_geo", 120 },
276 { XFLT, "GEAR__gear_door_axi_rot", 10 },
277 { XFLT, "GEAR__gear_door_ext_ang", 10 },
278 { XFLT, "GEAR__gear_door_ret_ang", 10 },
279 { XFLT, "GEAR__gear_door_ang_now", 10 },
280 { XFLT, "WEIGHTcgY", 1 },
281 { XFLT, "WEIGHTcgZ", 1 },
282 { XFLT, "WEIGHTJxx_unitmass", 1 },
283 { XFLT, "WEIGHTJyy_unitmass", 1 },
284 { XFLT, "WEIGHTJzz_unitmass", 1 },
285 { XFLT, "WEIGHTm_empty", 1 },
286 { XFLT, "WEIGHTm_displaced", 1 },
287 { XFLT, "WEIGHTm_max", 1 },
288 { XFLT, "WEIGHTm_fuel", 1 },
289 { XFLT, "WEIGHTm_jettison", 1 },
290 { XFLT, "WEIGHTm_displaced_y", 1 },
291 { XFLT, "SPEC__jato_theta", 1 },
292 { XFLT, "SPEC__jato_thrust", 1 },
293 { XFLT, "SPEC__jato_dur", 1 },
294 { XFLT, "SPEC__jato_sfc", 1 },
295 { XFLT, "SPEC__jato_Y", 1 },
296 { XFLT, "SPEC__jato_Z", 1 },
297 { XFLT, "SPEC__brake_area", 1 },
298 { XFLT, "SPEC__brake_Y", 1 },
299 { XFLT, "SPEC__brake_Z", 1 },
300 { XFLT, "SPEC__chute_area", 1 },
301 { XFLT, "SPEC__chute_Y", 1 },
302 { XFLT, "SPEC__chute_Z", 1 },
303 { XFLT, "SPEC__ail1pitch", 1 },
304 { XFLT, "SPEC__ail1flaps", 1 },
305 { XFLT, "SPEC__ail2pitch", 1 },
306 { XFLT, "SPEC__ail2flaps", 1 },
307 { XFLT, "SPEC__stabroll", 1 },
308 { XFLT, "SPEC__stabhdng", 1 },
309 { XFLT, "SPEC__ail2vmax", 1 },
310 { XFLT, "SPEC__tvec_ptch", 1 },
311 { XFLT, "SPEC__tvec_roll", 1 },
312 { XFLT, "SPEC__tvec_hdng", 1 },
313 { XFLT, "SPEC__diff_thro_with_hdng", 1 },
314 { XINT, "SPEC__arrestingEQ", 1 },
315 { XINT, "SPEC__antiiceEQ", 1 },
316 { XINT, "SPEC__bitchinbettyEQ", 1 },
317 { XINT, "SPEC__gearhornEQ", 1 },
318 { XINT, "SPEC__autosbrkEQ", 1 },
319 { XINT, "SPEC__autofbrkEQ", 1 },
320 { XINT, "SPEC__autosweepEQ", 1 },
321 { XINT, "SPEC__autoslatEQ", 1 },
322 { XINT, "VTOL__vectEQ", 1 },
323 { XFLT, "VTOL__vectarm", 1 },
324 { XFLT, "VTOL__cyclic_elev", 1 },
325 { XFLT, "VTOL__cyclic_ailn", 1 },
326 { XFLT, "VTOL__delta3", 1 },
327 { XFLT, "VTOL__puffL", 1 },
328 { XFLT, "VTOL__puffM", 1 },
329 { XFLT, "VTOL__puffN", 1 },
330 { XFLT, "VTOL__tail_with_coll", 1 },
331 { XFLT, "VTOL__diff_coll_with_roll", 1 },
332 { XFLT, "VTOL__diff_coll_with_hdng", 1 },
333 { XFLT, "VTOL__diff_cycl_with_hdng", 1 },
334 { XINT, "VTOL__auto_rpm_with_tvec", 1 },
335 { XFLT, "VTOL__rotor_trim_max_fwd", 1 },
336 { XFLT, "VTOL__rotor_trim_max_aft", 1 },
337 { XFLT, "ASTAB_AShiV", 1 },
338 { XFLT, "ASTAB_ASloV", 1 },
339 { XFLT, "ASTAB_Asmaxp_lo", 1 },
340 { XFLT, "ASTAB_Asp_lo_rate", 1 },
341 { XFLT, "ASTAB_Asmaxp_hi", 1 },
342 { XFLT, "ASTAB_Asp_hi_pos", 1 },
343 { XFLT, "ASTAB_Asmaxh_lo", 1 },
344 { XFLT, "ASTAB_Ash_lo_rate", 1 },
345 { XFLT, "ASTAB_Asmaxh_hi", 1 },
346 { XFLT, "ASTAB_Ash_hi_pos", 1 },
347 { XFLT, "ASTAB_Asmaxr_lo", 1 },
348 { XFLT, "ASTAB_Asr_lo_rate", 1 },
349 { XFLT, "ASTAB_Asmaxr_hi", 1 },
350 { XFLT, "ASTAB_Asr_hi_rate", 1 },
351 { XFLT, "fdummy1", 1 },
352 { XFLT, "fdummy2", 1 },
353 { XFLT, "element_len", 57 },
354 { XFLT, "gear_door_size", 1 },
355 { XFLT, "stab_change_to_redline", 1 },
356 { XFLT, "Vmca", 1 },
357 { XFLT, "Vyse", 1 },
358 { XFLT, "flap_arm", 1 },
359 { XFLT, "tank_xyz12", 6 },
360 { XFLT, "cgZ_fwd", 1 },
361 { XFLT, "cgZ_aft", 1 },
362 { XFLT, "gear_cyc_time", 5 },
363 { XFLT, "refuel_X", 1 },
364 { XFLT, "refuel_Y", 1 },
365 { XFLT, "refuel_Z", 1 },
366 { XCHR, "gear_steers", 57 },
367 { XCHR, "hybrid_gear", 1 },
368 { XCHR, "chr_overflow", 2 },
369 { XINT, "vardihedEQ", 57 },
370 { XFLT, "dihed2", 57 },
371 { XFLT, "dihednow", 57 },
372 { XFLT, "jett_xyz", 3 },
373 { XFLT, "puffX", 1 },
374 { XFLT, "puffY", 1 },
375 { XFLT, "puffZ", 1 },
376 { XFLT, "Vle", 1 },
377 { XFLT, "ASp_hi_rate", 1 },
378 { XFLT, "ASh_hi_rate", 1 },
379 { XFLT, "spooltime_prop", 1 },
380 { XFLT, "elevflaps", 1 },
381 { XFLT, "tank_xyz3", 3 },
382 { XFLT, "tank_rat", 3 },
383 { XFLT, "stall_warn_alpha", 1 },
384 { XFLT, "mass_shift", 1 },
385 { XFLT, "mass_shift_dx", 1 },
386 { XFLT, "mass_shift_dz", 1 },
387 { XFLT, "feathered_pitch", 1 },
388 { XFLT, "ASmaxg_hi", 1 },
389 { XFLT, "ASg_hi_pos", 1 },
390 { XFLT, "ASg_hi_rate", 1 },
391 { XFLT, "flt_overflow", 11 },
392 { XINT, "OVER__drive_by_wire", 1 },
393 { XINT, "is_glossy", 1 },
394 { XINT, "num_tanks", 1 },
395 { XINT, "has_refuel", 1 },
396 { XINT, "draw_geo_frnt_views", 1 },
397 { XINT, "draw_geo_side_views", 1 },
398 { XINT, "jett_is_slung", 1 },
399 { XFLT, "eng_mass", 57 },
400 { XINT, "phase_tvect", 1 },
401 { XINT, "auto_trim", 1 },
402 { XINT, "has_DC_fd", 1 },
403 { XINT, "flaps_with_gearEQ", 1 },
404 { XINT, "rev_on_touchdown", 1 },
405 { XINT, "int_overflow", 20 },
406 { XINT, "old_struct_last_dat", 1 },
407 { XCHR, "wpn_name", 12000 },
408 { XFLT, "Xwpn_att", 24 },
409 { XFLT, "Ywpn_att", 24 },
410 { XFLT, "Zwpn_att", 24 },
411 { XFLT, "xflt_overflow", 1000 },
412 { XINT, "xint_overflow", 1000 },
413
414 { XEOF, NULL, 0 }
415};
416
417#endif /* _IMP_ACF_DEF_ACF630 */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf640.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf640.h
new file mode 100644
index 0000000..93de1e8
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf640.h
@@ -0,0 +1,449 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_ACF_DEF_ACF640
23#define _IMP_ACF_DEF_ACF640
24
25#include "imp_acf_def_proto.h"
26
27static const AcfDef acf_def_acf640[] = {
28 { XCHR, "VIEW__PlatForm", 1 },
29 { XCHR, "VIEW__Filler", 4 },
30 { XCHR, "VIEW__tailnum", 40 },
31 { XCHR, "VIEW__author", 500 },
32 { XCHR, "VIEW__descrip", 500 },
33 { XFLT, "VIEW__size_x", 1 },
34 { XFLT, "VIEW__size_z", 1 },
35 { XINT, "VIEW__is_APL", 1 },
36 { XINT, "VIEW__actype", 1 },
37 { XINT, "VIEW__HUDtype", 1 },
38 { XINT, "VIEW__asi_kts", 1 },
39 { XINT, "VIEW__cockpit_type", 1 },
40 { XINT, "VIEW__has_SC_fd", 1 },
41 { XINT, "VIEW__has_stallwarn", 1 },
42 { XINT, "VIEW__has_litemap_tex", 1 },
43 { XFLT, "VIEW__peX", 1 },
44 { XFLT, "VIEW__peY", 1 },
45 { XFLT, "VIEW__peZ", 1 },
46 { XFLT, "VIEW__Vso", 1 },
47 { XFLT, "VIEW__Vs", 1 },
48 { XFLT, "VIEW__Vfe", 1 },
49 { XFLT, "VIEW__Vno", 1 },
50 { XFLT, "VIEW__Vne", 1 },
51 { XFLT, "VIEW__Mmo", 1 },
52 { XFLT, "VIEW__Gneg", 1 },
53 { XFLT, "VIEW__Gpos", 1 },
54 { XFLT, "VIEW__est_Vs", 1 },
55 { XFLT, "VIEW__yawstringx", 1 },
56 { XFLT, "VIEW__yawstringy", 1 },
57 { XFLT, "VIEW__HUD_cntrx", 1 },
58 { XFLT, "VIEW__HUD_cntry", 1 },
59 { XFLT, "VIEW__HUD_delx", 1 },
60 { XFLT, "VIEW__HUD_dely", 1 },
61 { XINT, "VIEW__has_lanlite1", 1 },
62 { XFLT, "VIEW__lanlite1X", 1 },
63 { XFLT, "VIEW__lanlite1Y", 1 },
64 { XFLT, "VIEW__lanlite1Z", 1 },
65 { XFLT, "VIEW__lanlite_the", 1 },
66 { XINT, "VIEW__has_lanlite2", 1 },
67 { XFLT, "VIEW__lanlite2X", 1 },
68 { XFLT, "VIEW__lanlite2Y", 1 },
69 { XFLT, "VIEW__lanlite2Z", 1 },
70 { XINT, "VIEW__has_lanlite3", 1 },
71 { XFLT, "VIEW__lanlite3X", 1 },
72 { XFLT, "VIEW__lanlite3Y", 1 },
73 { XFLT, "VIEW__lanlite3Z", 1 },
74 { XINT, "VIEW__has_fuserb1", 1 },
75 { XFLT, "VIEW__fuserb1X", 1 },
76 { XFLT, "VIEW__fuserb1Y", 1 },
77 { XFLT, "VIEW__fuserb1Z", 1 },
78 { XINT, "VIEW__has_fuserb2", 1 },
79 { XFLT, "VIEW__fuserb2X", 1 },
80 { XFLT, "VIEW__fuserb2Y", 1 },
81 { XFLT, "VIEW__fuserb2Z", 1 },
82 { XINT, "VIEW__has_taillite", 1 },
83 { XFLT, "VIEW__tailliteX", 1 },
84 { XFLT, "VIEW__tailliteY", 1 },
85 { XFLT, "VIEW__tailliteZ", 1 },
86 { XINT, "VIEW__has_navlites", 1 },
87 { XINT, "PANEL_ins_type", 200 },
88 { XFLT, "PANEL_ins_size", 200 },
89 { XFLT, "PANEL_ins_x", 200 },
90 { XFLT, "PANEL_ins_y", 200 },
91 { XFLT, "PANEL_ins_delx", 200 },
92 { XFLT, "PANEL_ins_dely", 200 },
93 { XINT, "FORCE_Hydraulic", 1 },
94 { XINT, "FORCE_Stickshaker", 1 },
95 { XINT, "ENG___number_engines", 1 },
96 { XINT, "ENG___auto_feather_EQ", 1 },
97 { XFLT, "ENG___throtmax_FWD", 1 },
98 { XFLT, "ENG___throtmax_REV", 1 },
99 { XFLT, "ENG___omegaminRSC", 1 },
100 { XFLT, "ENG___omegamaxRSC", 1 },
101 { XFLT, "ENG___omegamingreenRSC", 1 },
102 { XFLT, "ENG___omegamaxgreenRSC", 1 },
103 { XFLT, "ENG___pmax", 1 },
104 { XFLT, "ENG___tmax", 1 },
105 { XFLT, "ENG___burnerinc", 1 },
106 { XFLT, "ENG___critalt", 1 },
107 { XFLT, "ENG___mpmax", 1 },
108 { XFLT, "ENG___gearrat", 1 },
109 { XFLT, "ENG___face_jet", 1 },
110 { XFLT, "ENG___face_rocket", 1 },
111 { XFLT, "ENG___spooltime", 1 },
112 { XFLT, "ENG___max_mach_eff", 1 },
113 { XFLT, "ENG___fmax_sl", 1 },
114 { XFLT, "ENG___fmax_opt", 1 },
115 { XFLT, "ENG___fmax_vac", 1 },
116 { XFLT, "ENG___h_opt", 1 },
117 { XFLT, "ENG___tip_mach_des_50", 1 },
118 { XFLT, "ENG___tip_mach_des_100", 1 },
119 { XFLT, "ENG___rotor_mi_rat", 1 },
120 { XFLT, "ENG___tip_weight", 1 },
121 { XFLT, "ENG___tail_or_main_omegarat", 1 },
122 { XINT, "PROP__engine_type", 8 },
123 { XINT, "PROP__revthrust_eq", 8 },
124 { XINT, "PROP__prop_type", 8 },
125 { XFLT, "PROP__prop_dir", 8 },
126 { XFLT, "PROP__num_blades", 8 },
127 { XFLT, "PROP__SFC", 8 },
128 { XFLT, "PROP__minpitch", 8 },
129 { XFLT, "PROP__maxpitch", 8 },
130 { XFLT, "PROP__revpitch", 8 },
131 { XFLT, "PROP__sidecant", 8 },
132 { XFLT, "PROP__vertcant", 8 },
133 { XFLT, "PROP__prop_mass", 8 },
134 { XFLT, "PROP__miprop_pitch", 8 },
135 { XFLT, "PROP__discarea", 8 },
136 { XFLT, "PROP__ringarea", 80 },
137 { XFLT, "PROP__bladesweep", 80 },
138 { XFLT, "PROP__des_rpm_prp", 8 },
139 { XFLT, "PROP__des_kts_prp", 8 },
140 { XFLT, "PROP__des_kts_acf", 8 },
141 { XINT, "PARTS_part_eq", 57 },
142 { XCHR, "PARTS_Rafl0", 2280 },
143 { XCHR, "PARTS_Rafl1", 2280 },
144 { XCHR, "PARTS_Tafl0", 2280 },
145 { XCHR, "PARTS_Tafl1", 2280 },
146 { XINT, "PARTS_els", 57 },
147 { XFLT, "PARTS_Xarm", 57 },
148 { XFLT, "PARTS_Yarm", 57 },
149 { XFLT, "PARTS_Zarm", 57 },
150 { XFLT, "PARTS_X_body_aero", 57 },
151 { XFLT, "PARTS_Y_body_aero", 57 },
152 { XFLT, "PARTS_Z_body_aero", 57 },
153 { XFLT, "PARTS_Croot", 57 },
154 { XFLT, "PARTS_Ctip", 57 },
155 { XFLT, "PARTS_dihed", 57 },
156 { XFLT, "PARTS_sweep1", 57 },
157 { XFLT, "PARTS_sweep2", 57 },
158 { XFLT, "PARTS_sweepnow", 57 },
159 { XINT, "PARTS_varsweepEQ", 57 },
160 { XFLT, "PARTS_semilen_SEG", 57 },
161 { XFLT, "PARTS_semilen_JND", 57 },
162 { XFLT, "PARTS_e", 57 },
163 { XFLT, "PARTS_AR", 57 },
164 { XFLT, "PARTS_al_D_al0", 57 },
165 { XFLT, "PARTS_cl_D_cl0", 57 },
166 { XFLT, "PARTS_cm_D_cm0", 57 },
167 { XFLT, "PARTS_delta_fac", 57 },
168 { XFLT, "PARTS_spec_wash", 57 },
169 { XFLT, "PARTS_alpha_max", 57 },
170 { XFLT, "PARTS_slat_effect", 57 },
171 { XFLT, "PARTS_s", 570 },
172 { XFLT, "PARTS_mac", 570 },
173 { XFLT, "PARTS_anginc", 570 },
174 { XINT, "PARTS_ail1", 570 },
175 { XINT, "PARTS_ail2", 570 },
176 { XINT, "PARTS_splr", 570 },
177 { XINT, "PARTS_flap", 570 },
178 { XINT, "PARTS_flapEQ", 1 },
179 { XINT, "PARTS_slat", 570 },
180 { XINT, "PARTS_slatEQ", 1 },
181 { XINT, "PARTS_sbrk", 570 },
182 { XINT, "PARTS_sbrkEQ", 1 },
183 { XINT, "PARTS_drud", 570 },
184 { XINT, "PARTS_elev", 570 },
185 { XINT, "PARTS_rudd", 570 },
186 { XINT, "PARTS_in_downwash", 32490 },
187 { XFLT, "PARTS_body_r", 57 },
188 { XFLT, "PARTS_body_X", 20520 },
189 { XFLT, "PARTS_body_Y", 20520 },
190 { XFLT, "PARTS_body_Z", 20520 },
191 { XINT, "PARTS_gear_type", 57 },
192 { XFLT, "PARTS_gear_latE", 57 },
193 { XFLT, "PARTS_gear_lonE", 57 },
194 { XFLT, "PARTS_gear_axiE", 57 },
195 { XFLT, "PARTS_gear_latR", 57 },
196 { XFLT, "PARTS_gear_lonR", 57 },
197 { XFLT, "PARTS_gear_axiR", 57 },
198 { XFLT, "PARTS_gear_latN", 57 },
199 { XFLT, "PARTS_gear_lonN", 57 },
200 { XFLT, "PARTS_gear_axiN", 57 },
201 { XFLT, "PARTS_gear_leglen", 57 },
202 { XFLT, "PARTS_gear_tirrad", 57 },
203 { XFLT, "PARTS_gearcon", 57 },
204 { XFLT, "PARTS_geardmp", 57 },
205 { XFLT, "PARTS_gearstatdef", 57 },
206 { XFLT, "PARTS_gear_def", 57 },
207 { XFLT, "PARTS_gear_deploy", 57 },
208 { XFLT, "PARTS_gear_xnodef", 57 },
209 { XFLT, "PARTS_gear_ynodef", 57 },
210 { XFLT, "PARTS_gear_znodef", 57 },
211 { XFLT, "BODY__fuse_cd", 1 },
212 { XFLT, "CTRLS_ail1_crat", 1 },
213 { XFLT, "CTRLS_ail1_up", 1 },
214 { XFLT, "CTRLS_ail1_dn", 1 },
215 { XFLT, "CTRLS_d01", 1 },
216 { XFLT, "CTRLS_d02", 1 },
217 { XFLT, "CTRLS_ail2_crat", 1 },
218 { XFLT, "CTRLS_ail2_up", 1 },
219 { XFLT, "CTRLS_ail2_dn", 1 },
220 { XFLT, "CTRLS_d03", 1 },
221 { XFLT, "CTRLS_d04", 1 },
222 { XFLT, "CTRLS_elev_crat", 1 },
223 { XFLT, "CTRLS_elev_up", 1 },
224 { XFLT, "CTRLS_elev_dn", 1 },
225 { XFLT, "CTRLS_d05", 1 },
226 { XFLT, "CTRLS_d06", 1 },
227 { XFLT, "CTRLS_rudd_crat", 1 },
228 { XFLT, "CTRLS_rudd_lr", 1 },
229 { XFLT, "CTRLS_d07", 1 },
230 { XFLT, "CTRLS_d08", 1 },
231 { XFLT, "CTRLS_splr_crat", 1 },
232 { XFLT, "CTRLS_splr_up", 1 },
233 { XFLT, "CTRLS_d09", 1 },
234 { XFLT, "CTRLS_d10", 1 },
235 { XFLT, "CTRLS_drud_crat", 1 },
236 { XFLT, "CTRLS_drud_ud", 1 },
237 { XFLT, "CTRLS_d11", 1 },
238 { XFLT, "CTRLS_d12", 1 },
239 { XFLT, "CTRLS_sbrk_crat", 1 },
240 { XFLT, "CTRLS_sbrk_up", 1 },
241 { XFLT, "CTRLS_flap_crat", 1 },
242 { XFLT, "CTRLS_flap_dn", 7 },
243 { XFLT, "CTRLS_d13", 1 },
244 { XFLT, "CTRLS_d14", 1 },
245 { XFLT, "CTRLS_hstb_trim_up", 1 },
246 { XFLT, "CTRLS_hstb_trim_dn", 1 },
247 { XFLT, "CTRLS_d15", 1 },
248 { XINT, "CTRLS_hstabtype", 1 },
249 { XINT, "CTRLS_vstabtype", 1 },
250 { XINT, "CTRLS_flap_type", 1 },
251 { XINT, "CTRLS_con_smooth", 1 },
252 { XFLT, "CTRLS_flap_cl", 1 },
253 { XFLT, "CTRLS_flap_cd", 1 },
254 { XFLT, "CTRLS_flap_cm", 1 },
255 { XINT, "CTRLS_flap_detents", 1 },
256 { XFLT, "CTRLS_flap_deftime", 1 },
257 { XFLT, "CTRLS_slat_inc", 1 },
258 { XFLT, "CTRLS_blownflap_addspeed", 1 },
259 { XFLT, "CTRLS_blownflap_throtred", 1 },
260 { XFLT, "CTRLS_blownflap_minengag", 1 },
261 { XINT, "GEAR__gear_retract", 1 },
262 { XINT, "GEAR__is_taildragger", 1 },
263 { XINT, "GEAR__gear_is_skid", 1 },
264 { XFLT, "GEAR__OLD_OVERALL_RETRACT_TIME", 1 },
265 { XFLT, "GEAR__nwsteerdeg1", 1 },
266 { XFLT, "GEAR__nwsteerdeg2", 1 },
267 { XFLT, "GEAR__nwsteerspd", 1 },
268 { XFLT, "GEAR__water_rud_longarm", 1 },
269 { XFLT, "GEAR__water_rud_area", 1 },
270 { XFLT, "GEAR__water_rud_maxdef", 1 },
271 { XFLT, "GEAR__h_eqlbm", 1 },
272 { XFLT, "GEAR__the_eqlbm", 1 },
273 { XINT, "GEAR__gear_door_typ", 10 },
274 { XFLT, "GEAR__gear_door_loc", 30 },
275 { XFLT, "GEAR__gear_door_geo", 120 },
276 { XFLT, "GEAR__gear_door_axi_rot", 10 },
277 { XFLT, "GEAR__gear_door_ext_ang", 10 },
278 { XFLT, "GEAR__gear_door_ret_ang", 10 },
279 { XFLT, "GEAR__gear_door_ang_now", 10 },
280 { XFLT, "WEIGHTcgY", 1 },
281 { XFLT, "WEIGHTcgZ", 1 },
282 { XFLT, "WEIGHTJxx_unitmass", 1 },
283 { XFLT, "WEIGHTJyy_unitmass", 1 },
284 { XFLT, "WEIGHTJzz_unitmass", 1 },
285 { XFLT, "WEIGHTm_empty", 1 },
286 { XFLT, "WEIGHTm_displaced", 1 },
287 { XFLT, "WEIGHTm_max", 1 },
288 { XFLT, "WEIGHTm_fuel", 1 },
289 { XFLT, "WEIGHTm_jettison", 1 },
290 { XFLT, "WEIGHTm_displaced_y", 1 },
291 { XFLT, "SPEC__jato_theta", 1 },
292 { XFLT, "SPEC__jato_thrust", 1 },
293 { XFLT, "SPEC__jato_dur", 1 },
294 { XFLT, "SPEC__jato_sfc", 1 },
295 { XFLT, "SPEC__jato_Y", 1 },
296 { XFLT, "SPEC__jato_Z", 1 },
297 { XFLT, "SPEC__brake_area", 1 },
298 { XFLT, "SPEC__brake_Y", 1 },
299 { XFLT, "SPEC__brake_Z", 1 },
300 { XFLT, "SPEC__chute_area", 1 },
301 { XFLT, "SPEC__chute_Y", 1 },
302 { XFLT, "SPEC__chute_Z", 1 },
303 { XFLT, "SPEC__ail1pitch", 1 },
304 { XFLT, "SPEC__ail1flaps", 1 },
305 { XFLT, "SPEC__ail2pitch", 1 },
306 { XFLT, "SPEC__ail2flaps", 1 },
307 { XFLT, "SPEC__stabroll", 1 },
308 { XFLT, "SPEC__stabhdng", 1 },
309 { XFLT, "SPEC__ail2vmax", 1 },
310 { XFLT, "SPEC__tvec_ptch", 1 },
311 { XFLT, "SPEC__tvec_roll", 1 },
312 { XFLT, "SPEC__tvec_hdng", 1 },
313 { XFLT, "SPEC__diff_thro_with_hdng", 1 },
314 { XINT, "SPEC__arrestingEQ", 1 },
315 { XINT, "SPEC__antiiceEQ", 1 },
316 { XINT, "SPEC__warn1EQ", 1 },
317 { XINT, "SPEC__gearhornEQ", 1 },
318 { XINT, "SPEC__autosbrkEQ", 1 },
319 { XINT, "SPEC__autofbrkEQ", 1 },
320 { XINT, "SPEC__autosweepEQ", 1 },
321 { XINT, "SPEC__autoslatEQ", 1 },
322 { XINT, "VTOL__vectEQ", 1 },
323 { XFLT, "VTOL__vectarm", 1 },
324 { XFLT, "VTOL__cyclic_elev", 1 },
325 { XFLT, "VTOL__cyclic_ailn", 1 },
326 { XFLT, "VTOL__delta3", 1 },
327 { XFLT, "VTOL__puffL", 1 },
328 { XFLT, "VTOL__puffM", 1 },
329 { XFLT, "VTOL__puffN", 1 },
330 { XFLT, "VTOL__tail_with_coll", 1 },
331 { XFLT, "VTOL__diff_coll_with_roll", 1 },
332 { XFLT, "VTOL__diff_coll_with_hdng", 1 },
333 { XFLT, "VTOL__diff_cycl_with_hdng", 1 },
334 { XINT, "VTOL__auto_rpm_with_tvec", 1 },
335 { XFLT, "VTOL__rotor_trim_max_fwd", 1 },
336 { XFLT, "VTOL__rotor_trim_max_aft", 1 },
337 { XFLT, "ASTAB_AShiV", 1 },
338 { XFLT, "ASTAB_ASloV", 1 },
339 { XFLT, "ASTAB_Asmaxp_lo", 1 },
340 { XFLT, "ASTAB_Asp_lo_rate", 1 },
341 { XFLT, "ASTAB_Asmaxp_hi", 1 },
342 { XFLT, "ASTAB_Asp_hi_pos", 1 },
343 { XFLT, "ASTAB_Asmaxh_lo", 1 },
344 { XFLT, "ASTAB_Ash_lo_rate", 1 },
345 { XFLT, "ASTAB_Asmaxh_hi", 1 },
346 { XFLT, "ASTAB_Ash_hi_pos", 1 },
347 { XFLT, "ASTAB_Asmaxr_lo", 1 },
348 { XFLT, "ASTAB_Asr_lo_rate", 1 },
349 { XFLT, "ASTAB_Asmaxr_hi", 1 },
350 { XFLT, "ASTAB_Asr_hi_rate", 1 },
351 { XFLT, "EXTRA_fdummy1", 1 },
352 { XFLT, "EXTRA_fdummy2", 1 },
353 { XFLT, "EXTRA_element_len", 57 },
354 { XFLT, "EXTRA_gear_door_size", 1 },
355 { XFLT, "EXTRA_stab_delinc_to_Vne", 1 },
356 { XFLT, "EXTRA_Vmca", 1 },
357 { XFLT, "EXTRA_Vyse", 1 },
358 { XFLT, "EXTRA_flap_arm", 1 },
359 { XFLT, "EXTRA_tank_xyz12", 6 },
360 { XFLT, "EXTRA_cgZ_fwd", 1 },
361 { XFLT, "EXTRA_cgZ_aft", 1 },
362 { XFLT, "EXTRA_gear_cyc_time", 5 },
363 { XFLT, "EXTRA_refuel_X", 1 },
364 { XFLT, "EXTRA_refuel_Y", 1 },
365 { XFLT, "EXTRA_refuel_Z", 1 },
366 { XCHR, "EXTRA_gear_steers", 57 },
367 { XCHR, "EXTRA_hybrid_gear", 1 },
368 { XCHR, "EXTRA_chr_overflow", 2 },
369 { XINT, "EXTRA_vardihedEQ", 57 },
370 { XFLT, "EXTRA_dihed2", 57 },
371 { XFLT, "EXTRA_dihednow", 57 },
372 { XFLT, "EXTRA_jett_xyz", 3 },
373 { XFLT, "EXTRA_puffX", 1 },
374 { XFLT, "EXTRA_puffY", 1 },
375 { XFLT, "EXTRA_puffZ", 1 },
376 { XFLT, "EXTRA_Vle", 1 },
377 { XFLT, "EXTRA_ASp_hi_rate", 1 },
378 { XFLT, "EXTRA_ASh_hi_rate", 1 },
379 { XFLT, "EXTRA_spooltime_prop", 1 },
380 { XFLT, "EXTRA_elevflaps", 1 },
381 { XFLT, "EXTRA_tank_xyz3", 3 },
382 { XFLT, "EXTRA_tank_rat", 3 },
383 { XFLT, "EXTRA_stall_warn_alpha", 1 },
384 { XFLT, "EXTRA_mass_shift", 1 },
385 { XFLT, "EXTRA_mass_shift_dx", 1 },
386 { XFLT, "EXTRA_mass_shift_dz", 1 },
387 { XFLT, "EXTRA_feathered_pitch", 1 },
388 { XFLT, "EXTRA_ASmaxg_hi", 1 },
389 { XFLT, "EXTRA_ASg_hi_pos", 1 },
390 { XFLT, "EXTRA_ASg_hi_rate", 1 },
391 { XFLT, "EXTRA_wing_tilt_ptch", 1 },
392 { XFLT, "EXTRA_wing_tilt_roll", 1 },
393 { XFLT, "EXTRA_max_press_diff", 1 },
394 { XFLT, "EXTRA_diff_coll_with_ptch", 1 },
395 { XFLT, "EXTRA_flap_roll,flap_ptch", 1 },
396 { XFLT, "EXTRA_lift_fan_rat", 1 },
397 { XFLT, "EXTRA_diff_cycl_with_hdng_lat", 1 },
398 { XINT, "EXTRA_phase_tvect_out_at_90", 1 },
399 { XFLT, "EXTRA_flt_overflow", 2 },
400 { XINT, "EXTRA_drive_by_wire", 1 },
401 { XINT, "EXTRA_is_glossy", 1 },
402 { XINT, "EXTRA_num_tanks", 1 },
403 { XINT, "EXTRA_has_refuel", 1 },
404 { XINT, "EXTRA_draw_geo_frnt_views", 1 },
405 { XINT, "EXTRA_draw_geo_side_views", 1 },
406 { XINT, "EXTRA_jett_is_slung", 1 },
407 { XFLT, "EXTRA_eng_mass", 57 },
408 { XINT, "EXTRA_phase_tvect_out_at_00", 1 },
409 { XINT, "EXTRA_auto_trimEQ", 1 },
410 { XINT, "EXTRA_has_DC_fd", 1 },
411 { XINT, "EXTRA_flaps_with_gearEQ", 1 },
412 { XINT, "EXTRA_rev_on_touchdown", 1 },
413 { XINT, "EXTRA_flaps_with_vecEQ", 1 },
414 { XINT, "EXTRA_blow_all_controls", 1 },
415 { XINT, "EXTRA_warn2EQ", 1 },
416 { XINT, "EXTRA_num_thrustpoints", 1 },
417 { XINT, "EXTRA_props_linked", 1 },
418 { XINT, "EXTRA_int_overflow", 15 },
419 { XINT, "EXTRA_old_struct_last_data", 1 },
420 { XCHR, "EXTRA_wpn_name", 12000 },
421 { XFLT, "EXTRA_Xwpn_att", 24 },
422 { XFLT, "EXTRA_Ywpn_att", 24 },
423 { XFLT, "EXTRA_Zwpn_att", 24 },
424 { XINT, "EXTRA_cus_rnd_use", 50 },
425 { XFLT, "EXTRA_cus_rnd_lo_val", 50 },
426 { XFLT, "EXTRA_cus_rnd_hi_val", 50 },
427 { XFLT, "EXTRA_cus_rnd_lo_ang", 50 },
428 { XFLT, "EXTRA_cus_rnd_hi_ang", 50 },
429 { XINT, "EXTRA_dummy_int", 50 },
430 { XINT, "EXTRA_cus_rnd_mirror", 50 },
431 { XINT, "EXTRA_cus_rnd_label", 50 },
432 { XINT, "EXTRA_cus_dig_use", 50 },
433 { XFLT, "EXTRA_cus_dig_offset", 50 },
434 { XFLT, "EXTRA_cus_dig_scale", 50 },
435 { XINT, "EXTRA_cus_dig_dig", 50 },
436 { XINT, "EXTRA_cus_dig_dec", 50 },
437 { XINT, "EXTRA_inc_ail", 570 },
438 { XINT, "EXTRA_inc_vec", 570 },
439 { XFLT, "EXTRA_tow_hook_Y", 1 },
440 { XFLT, "EXTRA_tow_hook_Z", 1 },
441 { XFLT, "EXTRA_win_hook_Y", 1 },
442 { XFLT, "EXTRA_win_hook_Z", 1 },
443 { XINT, "EXTRA_int_overflow", 206 },
444 { XCHR, "EXTRA_chr_overflow", 1000 },
445
446 { XEOF, NULL, 0 }
447};
448
449#endif /* _IMP_ACF_DEF_ACF640 */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf651.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf651.h
new file mode 100644
index 0000000..d188023
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf651.h
@@ -0,0 +1,456 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_ACF_DEF_ACF651_H
23#define _IMP_ACF_DEF_ACF651_H
24
25#include "imp_acf_def_proto.h"
26
27static const AcfDef acf_def_acf651[] = {
28 { XCHR, "VIEW__PlatForm", 1 },
29 { XCHR, "VIEW__Filler", 4 },
30 { XCHR, "VIEW__tailnum", 40 },
31 { XCHR, "VIEW__author", 500 },
32 { XCHR, "VIEW__descrip", 500 },
33 { XFLT, "VIEW__size_x", 1 },
34 { XFLT, "VIEW__size_z", 1 },
35 { XINT, "VIEW__is_APL", 1 },
36 { XINT, "VIEW__actype", 1 },
37 { XINT, "VIEW__HUDtype", 1 },
38 { XINT, "VIEW__asi_kts", 1 },
39 { XINT, "VIEW__cockpit_type", 1 },
40 { XINT, "VIEW__has_SC_fd", 1 },
41 { XINT, "VIEW__has_stallwarn", 1 },
42 { XINT, "VIEW__has_litemap_tex", 1 },
43 { XFLT, "VIEW__peX", 1 },
44 { XFLT, "VIEW__peY", 1 },
45 { XFLT, "VIEW__peZ", 1 },
46 { XFLT, "VIEW__Vso", 1 },
47 { XFLT, "VIEW__Vs", 1 },
48 { XFLT, "VIEW__Vfe", 1 },
49 { XFLT, "VIEW__Vno", 1 },
50 { XFLT, "VIEW__Vne", 1 },
51 { XFLT, "VIEW__Mmo", 1 },
52 { XFLT, "VIEW__Gneg", 1 },
53 { XFLT, "VIEW__Gpos", 1 },
54 { XFLT, "VIEW__est_Vs", 1 },
55 { XFLT, "VIEW__yawstringx", 1 },
56 { XFLT, "VIEW__yawstringy", 1 },
57 { XFLT, "VIEW__HUD_cntr", 1 },
58 { XFLT, "VIEW__HUD_cntry", 1 },
59 { XFLT, "VIEW__HUD_del", 1 },
60 { XFLT, "VIEW__HUD_dely", 1 },
61 { XINT, "VIEW__has_lanlite1", 1 },
62 { XFLT, "VIEW__lanlite1X", 1 },
63 { XFLT, "VIEW__lanlite1Y", 1 },
64 { XFLT, "VIEW__lanlite1Z", 1 },
65 { XFLT, "VIEW__lanlite_the", 1 },
66 { XINT, "VIEW__has_lanlite2", 1 },
67 { XFLT, "VIEW__lanlite2X", 1 },
68 { XFLT, "VIEW__lanlite2Y", 1 },
69 { XFLT, "VIEW__lanlite2Z", 1 },
70 { XINT, "VIEW__has_lanlite3", 1 },
71 { XFLT, "VIEW__lanlite3X", 1 },
72 { XFLT, "VIEW__lanlite3Y", 1 },
73 { XFLT, "VIEW__lanlite3Z", 1 },
74 { XINT, "VIEW__has_fuserb1", 1 },
75 { XFLT, "VIEW__fuserb1", 1 },
76 { XFLT, "VIEW__fuserb1", 1 },
77 { XFLT, "VIEW__fuserb1Z", 1 },
78 { XINT, "VIEW__has_fuserb2", 1 },
79 { XFLT, "VIEW__fuserb2", 1 },
80 { XFLT, "VIEW__fuserb2", 1 },
81 { XFLT, "VIEW__fuserb2Z", 1 },
82 { XINT, "VIEW__has_taillite", 1 },
83 { XFLT, "VIEW__tailliteX", 1 },
84 { XFLT, "VIEW__tailliteY", 1 },
85 { XFLT, "VIEW__tailliteZ", 1 },
86 { XINT, "VIEW__has_navlites", 1 },
87 { XINT, "PANEL_ins_type", 200 },
88 { XFLT, "PANEL_ins_size", 200 },
89 { XFLT, "PANEL_ins_x", 200 },
90 { XFLT, "PANEL_ins_y", 200 },
91 { XFLT, "PANEL_ins_delx", 200 },
92 { XFLT, "PANEL_ins_dely", 200 },
93 { XINT, "FORCE_Hydraulic", 1 },
94 { XINT, "FORCE_Stickshaker", 1 },
95 { XINT, "ENG___num_engines", 1 },
96 { XINT, "ENG___auto_feather_EQ", 1 },
97 { XFLT, "ENG___throtmax_FW", 1 },
98 { XFLT, "ENG___throtmax_REV", 1 },
99 { XFLT, "ENG___RSC_idlespeed_en", 1 },
100 { XFLT, "ENG___RSC_redline_eng", 1 },
101 { XFLT, "ENG___RSC_mingreen_eng", 1 },
102 { XFLT, "ENG___RSC_maxgreen_eng", 1 },
103 { XFLT, "ENG___pmax", 1 },
104 { XFLT, "ENG___tmax", 1 },
105 { XFLT, "ENG___burnerinc", 1 },
106 { XFLT, "ENG___critalt", 1 },
107 { XFLT, "ENG___mpmax", 1 },
108 { XFLT, "ENG___gearrat", 1 },
109 { XFLT, "ENG___face_jet", 1 },
110 { XFLT, "ENG___face_rocket", 1 },
111 { XFLT, "ENG___spooltime_jet", 1 },
112 { XFLT, "ENG___max_mach_eff", 1 },
113 { XFLT, "ENG___fmax_sl", 1 },
114 { XFLT, "ENG___fmax_opt", 1 },
115 { XFLT, "ENG___fmax_vac", 1 },
116 { XFLT, "ENG___h_opt", 1 },
117 { XFLT, "ENG___tip_mach_des_50", 1 },
118 { XFLT, "ENG___tip_mach_des_100", 1 },
119 { XFLT, "ENG___rotor_mi_rat", 1 },
120 { XFLT, "ENG___tip_weight", 1 },
121 { XFLT, "ENG___tail_or_main_omegarat", 1 },
122 { XINT, "PROP__engine_type", 8 },
123 { XINT, "PROP__revthrust_eq", 8 },
124 { XINT, "PROP__prop_type", 8 },
125 { XFLT, "PROP__prop_dir", 8 },
126 { XFLT, "PROP__num_blades", 8 },
127 { XFLT, "PROP__SFC", 8 },
128 { XFLT, "PROP__minpitch", 8 },
129 { XFLT, "PROP__maxpitch", 8 },
130 { XFLT, "PROP__revpitch", 8 },
131 { XFLT, "PROP__sidecant", 8 },
132 { XFLT, "PROP__vertcant", 8 },
133 { XFLT, "PROP__propmass", 8 },
134 { XFLT, "PROP__miprop_RPM", 8 },
135 { XFLT, "PROP__discarea", 8 },
136 { XFLT, "PROP__ringarea", 80 },
137 { XFLT, "PROP__bladesweep", 80 },
138 { XFLT, "PROP__des_rpm_prp", 8 },
139 { XFLT, "PROP__des_kts_prp", 8 },
140 { XFLT, "PROP__des_kts_acf", 8 },
141 { XINT, "PARTS_part_eq", 57 },
142 { XCHR, "PARTS_Rafl0", 2280 },
143 { XCHR, "PARTS_Rafl1", 2280 },
144 { XCHR, "PARTS_Tafl0", 2280 },
145 { XCHR, "PARTS_Tafl1", 2280 },
146 { XINT, "PARTS_els", 57 },
147 { XFLT, "PARTS_Xarm", 57 },
148 { XFLT, "PARTS_Yarm", 57 },
149 { XFLT, "PARTS_Zarm", 57 },
150 { XFLT, "PARTS_X_body_aero", 57 },
151 { XFLT, "PARTS_Y_body_aero", 57 },
152 { XFLT, "PARTS_Z_body_aero", 57 },
153 { XFLT, "PARTS_Croot", 57 },
154 { XFLT, "PARTS_Ctip", 57 },
155 { XFLT, "PARTS_dihed", 57 },
156 { XFLT, "PARTS_sweep1", 57 },
157 { XFLT, "PARTS_sweep2", 57 },
158 { XFLT, "PARTS_sweepnow", 57 },
159 { XINT, "PARTS_varsweepEQ", 57 },
160 { XFLT, "PARTS_semilen_SEG", 57 },
161 { XFLT, "PARTS_semilen_JND", 57 },
162 { XFLT, "PARTS_e", 57 },
163 { XFLT, "PARTS_AR", 57 },
164 { XFLT, "PARTS_al_D_al0", 57 },
165 { XFLT, "PARTS_cl_D_cl0", 57 },
166 { XFLT, "PARTS_cm_D_cm0", 57 },
167 { XFLT, "PARTS_delta_fac", 57 },
168 { XFLT, "PARTS_spec_wash", 57 },
169 { XFLT, "PARTS_alpha_max", 57 },
170 { XFLT, "PARTS_slat_effect", 57 },
171 { XFLT, "PARTS_s", 570 },
172 { XFLT, "PARTS_mac", 570 },
173 { XFLT, "PARTS_anginc", 570 },
174 { XINT, "PARTS_ail1", 570 },
175 { XINT, "PARTS_ail2", 570 },
176 { XINT, "PARTS_splr", 570 },
177 { XINT, "PARTS_flap", 570 },
178 { XINT, "PARTS_flapEQ", 1 },
179 { XINT, "PARTS_slat", 570 },
180 { XINT, "PARTS_slatEQ", 1 },
181 { XINT, "PARTS_sbrk", 570 },
182 { XINT, "PARTS_sbrkEQ", 1 },
183 { XINT, "PARTS_drud", 570 },
184 { XINT, "PARTS_elev", 570 },
185 { XINT, "PARTS_rudd", 570 },
186 { XINT, "PARTS_in_downwash", 32490 },
187 { XFLT, "PARTS_body_r", 57 },
188 { XFLT, "PARTS_body_X", 20520 },
189 { XFLT, "PARTS_body_Y", 20520 },
190 { XFLT, "PARTS_body_Z", 20520 },
191 { XINT, "PARTS_gear_type", 57 },
192 { XFLT, "PARTS_gear_latE", 57 },
193 { XFLT, "PARTS_gear_lonE", 57 },
194 { XFLT, "PARTS_gear_axiE", 57 },
195 { XFLT, "PARTS_gear_latR", 57 },
196 { XFLT, "PARTS_gear_lonR", 57 },
197 { XFLT, "PARTS_gear_axiR", 57 },
198 { XFLT, "PARTS_gear_latN", 57 },
199 { XFLT, "PARTS_gear_lonN", 57 },
200 { XFLT, "PARTS_gear_axiN", 57 },
201 { XFLT, "PARTS_gear_leglen", 57 },
202 { XFLT, "PARTS_gear_tirrad", 57 },
203 { XFLT, "PARTS_gearcon", 57 },
204 { XFLT, "PARTS_geardmp", 57 },
205 { XFLT, "PARTS_gearstatdef", 57 },
206 { XFLT, "PARTS_gear_def", 57 },
207 { XFLT, "PARTS_gear_deploy", 57 },
208 { XFLT, "PARTS_gear_xnodef", 57 },
209 { XFLT, "PARTS_gear_ynodef", 57 },
210 { XFLT, "PARTS_gear_znodef", 57 },
211 { XFLT, "BODY__fuse_cd", 1 },
212 { XFLT, "CTRLS_ail1_crat", 1 },
213 { XFLT, "CTRLS_ail1_up", 1 },
214 { XFLT, "CTRLS_ail1_d", 1 },
215 { XFLT, "CTRLS_RSC_idlespeed_prp", 1 },
216 { XFLT, "CTRLS_RSC_redline_prp", 1 },
217 { XFLT, "CTRLS_ail2_crat", 1 },
218 { XFLT, "CTRLS_ail2_up", 1 },
219 { XFLT, "CTRLS_ail2_d", 1 },
220 { XFLT, "CTRLS_RSC_mingreen_prp", 1 },
221 { XFLT, "CTRLS_RSC_maxgreen_prp", 1 },
222 { XFLT, "CTRLS_elev_crat", 1 },
223 { XFLT, "CTRLS_elev_up", 1 },
224 { XFLT, "CTRLS_elev_d", 1 },
225 { XFLT, "CTRLS_trq_max_eng", 1 },
226 { XFLT, "CTRLS_trq_max_prp", 1 },
227 { XFLT, "CTRLS_rudd_crat", 1 },
228 { XFLT, "CTRLS_rudd_l", 1 },
229 { XFLT, "CTRLS_d07", 1 },
230 { XFLT, "CTRLS_d08", 1 },
231 { XFLT, "CTRLS_splr_crat", 1 },
232 { XFLT, "CTRLS_splr_u", 1 },
233 { XFLT, "CTRLS_d09", 1 },
234 { XFLT, "CTRLS_d10", 1 },
235 { XFLT, "CTRLS_drud_crat", 1 },
236 { XFLT, "CTRLS_drud_u", 1 },
237 { XFLT, "CTRLS_d11", 1 },
238 { XFLT, "CTRLS_d12", 1 },
239 { XFLT, "CTRLS_sbrk_crat", 1 },
240 { XFLT, "CTRLS_sbrk_up", 1 },
241 { XFLT, "CTRLS_flap_crat", 1 },
242 { XFLT, "CTRLS_flap_dn", 7 },
243 { XFLT, "CTRLS_d13", 1 },
244 { XFLT, "CTRLS_d14", 1 },
245 { XFLT, "CTRLS_hstb_trim_up", 1 },
246 { XFLT, "CTRLS_hstb_trim_d", 1 },
247 { XFLT, "CTRLS_d15", 1 },
248 { XINT, "CTRLS_hstabtype", 1 },
249 { XINT, "CTRLS_vstabtype", 1 },
250 { XINT, "CTRLS_flap_type", 1 },
251 { XINT, "CTRLS_con_smooth", 1 },
252 { XFLT, "CTRLS_flap_cl", 1 },
253 { XFLT, "CTRLS_flap_cd", 1 },
254 { XFLT, "CTRLS_flap_cm", 1 },
255 { XINT, "CTRLS_flap_detents", 1 },
256 { XFLT, "CTRLS_flap_deftime", 1 },
257 { XFLT, "CTRLS_slat_inc", 1 },
258 { XFLT, "CTXXX_blownflap_addspeed", 1 },
259 { XFLT, "CTRLS_blownflap_throtred", 1 },
260 { XFLT, "CTRLS_blownflap_min_engag", 1 },
261 { XINT, "GEAR__gear_retract", 1 },
262 { XINT, "GEAR__is_taildragger", 1 },
263 { XINT, "GEAR__gear_is_skid", 1 },
264 { XFLT, "GEAR__OLD_OVERALL_RETRACT_TIME", 1 },
265 { XFLT, "GEAR__nwsteerdeg1", 1 },
266 { XFLT, "GEAR__nwsteerdeg2", 1 },
267 { XFLT, "GEAR__nw_cutoff_speed", 1 },
268 { XFLT, "GEAR__water_rud_longarm", 1 },
269 { XFLT, "GEAR__water_rud_area", 1 },
270 { XFLT, "GEAR__water_rud_maxdef", 1 },
271 { XFLT, "GEAR__h_eqlbm", 1 },
272 { XFLT, "GEAR__the_eqlbm", 1 },
273 { XINT, "GEAR__gear_door_typ", 10 },
274 { XFLT, "GEAR__gear_door_loc", 30 },
275 { XFLT, "GEAR__gear_door_geo", 120 },
276 { XFLT, "GEAR__gear_door_axi_rot", 10 },
277 { XFLT, "GEAR__gear_door_ext_ang", 10 },
278 { XFLT, "GEAR__gear_door_ret_ang", 10 },
279 { XFLT, "GEAR__gear_door_ang_now", 10 },
280 { XFLT, "WEIGHTcgY", 1 },
281 { XFLT, "WEIGHTcgZ", 1 },
282 { XFLT, "WEIGHTJxx_unitmass", 1 },
283 { XFLT, "WEIGHTJyy_unitmass", 1 },
284 { XFLT, "WEIGHTJzz_unitmass", 1 },
285 { XFLT, "WEIGHTm_empty", 1 },
286 { XFLT, "WEIGHTm_displaced", 1 },
287 { XFLT, "WEIGHTm_max", 1 },
288 { XFLT, "WEIGHTm_fuel", 1 },
289 { XFLT, "WEIGHTm_jettison", 1 },
290 { XFLT, "WEIGHTm_displaced_y", 1 },
291 { XFLT, "SPEC__jato_theta", 1 },
292 { XFLT, "SPEC__jato_thrust", 1 },
293 { XFLT, "SPEC__jato_dur", 1 },
294 { XFLT, "SPEC__jato_sfc", 1 },
295 { XFLT, "SPEC__jato_Y", 1 },
296 { XFLT, "SPEC__jato_Z", 1 },
297 { XFLT, "SPEC__brake_area", 1 },
298 { XFLT, "SPEC__brake_Y", 1 },
299 { XFLT, "SPEC__brake_Z", 1 },
300 { XFLT, "SPEC__chute_area", 1 },
301 { XFLT, "SPEC__chute_Y", 1 },
302 { XFLT, "SPEC__chute_Z", 1 },
303 { XFLT, "SPEC__ail1pitch", 1 },
304 { XFLT, "SPEC__ail1flaps", 1 },
305 { XFLT, "SPEC__ail2pitch", 1 },
306 { XFLT, "SPEC__ail2flaps", 1 },
307 { XFLT, "SPEC__stabroll", 1 },
308 { XFLT, "SPEC__stabhdng", 1 },
309 { XFLT, "SPEC__ail2vmax", 1 },
310 { XFLT, "SPEC__tvec_ptch", 1 },
311 { XFLT, "SPEC__tvec_roll", 1 },
312 { XFLT, "SPEC__tvec_hdng", 1 },
313 { XFLT, "SPEC__diff_thro_with_hdng", 1 },
314 { XINT, "SPEC__arrestingEQ", 1 },
315 { XINT, "SPEC__antiiceEQ", 1 },
316 { XINT, "SPEC__warn1EQ", 1 },
317 { XINT, "SPEC__gearhornEQ", 1 },
318 { XINT, "SPEC__autosbrkEQ", 1 },
319 { XINT, "SPEC__autofbrkEQ", 1 },
320 { XINT, "SPEC__autosweepEQ", 1 },
321 { XINT, "SPEC__autoslatEQ", 1 },
322 { XINT, "VTOL__vectEQ", 1 },
323 { XFLT, "VTOL__vectarmZ", 1 },
324 { XFLT, "VTOL__cyclic_elev", 1 },
325 { XFLT, "VTOL__cyclic_ailn", 1 },
326 { XFLT, "VTOL__delta3", 1 },
327 { XFLT, "VTOL__puffL", 1 },
328 { XFLT, "VTOL__puffM", 1 },
329 { XFLT, "VTOL__puffN", 1 },
330 { XFLT, "VTOL__tail_with_coll", 1 },
331 { XFLT, "VTOL__diff_coll_with_roll", 1 },
332 { XFLT, "VTOL__diff_coll_with_hdng", 1 },
333 { XFLT, "VTOL__diff_cycl_with_hdng", 1 },
334 { XINT, "VTOL__auto_rpm_with_tvec", 1 },
335 { XFLT, "VTOL__rotor_trim_max_fwd", 1 },
336 { XFLT, "VTOL__rotor_trim_max_aft", 1 },
337 { XFLT, "ASTAB_AShiV", 1 },
338 { XFLT, "ASTAB_ASloV", 1 },
339 { XFLT, "ASTAB_Asmaxp_lo", 1 },
340 { XFLT, "ASTAB_Asp_lo_rate", 1 },
341 { XFLT, "ASTAB_Asmaxp_hi", 1 },
342 { XFLT, "ASTAB_Asp_hi_pos", 1 },
343 { XFLT, "ASTAB_Asmaxh_lo", 1 },
344 { XFLT, "ASTAB_Ash_lo_rate", 1 },
345 { XFLT, "ASTAB_Asmaxh_hi", 1 },
346 { XFLT, "ASTAB_Ash_hi_pos", 1 },
347 { XFLT, "ASTAB_Asmaxr_lo", 1 },
348 { XFLT, "ASTAB_Asr_lo_rate", 1 },
349 { XFLT, "ASTAB_Asmaxr_hi", 1 },
350 { XFLT, "ASTAB_Asr_hi_rate", 1 },
351 { XINT, "has_clutch", 1 },
352 { XINT, "has_idlespeed", 1 },
353 { XFLT, "element_len", 57 },
354 { XFLT, "gear_door_size", 1 },
355 { XFLT, "stab_delinc_to_Vne", 1 },
356 { XFLT, "Vmca", 1 },
357 { XFLT, "Vyse", 1 },
358 { XFLT, "flap_arm", 1 },
359 { XFLT, "tank_xyz12", 6 },
360 { XFLT, "cgZ_fwd", 1 },
361 { XFLT, "cgZ_aft", 1 },
362 { XFLT, "gear_cyc_time", 5 },
363 { XFLT, "refuel_X", 1 },
364 { XFLT, "refuel_Y", 1 },
365 { XFLT, "refuel_Z", 1 },
366 { XCHR, "gear_steers", 57 },
367 { XCHR, "hybrid_gear", 1 },
368 { XCHR, "chr_overflow", 2 },
369 { XINT, "vardihedEQ", 57 },
370 { XFLT, "dihed2", 57 },
371 { XFLT, "dihednow", 57 },
372 { XFLT, "jett_xyz", 3 },
373 { XFLT, "puffX", 1 },
374 { XFLT, "puffY", 1 },
375 { XFLT, "puffZ", 1 },
376 { XFLT, "Vle", 1 },
377 { XFLT, "ASp_hi_rate", 1 },
378 { XFLT, "ASh_hi_rate", 1 },
379 { XFLT, "spooltime_prop", 1 },
380 { XFLT, "elevflaps", 1 },
381 { XFLT, "tank_xyz3", 3 },
382 { XFLT, "tank_rat", 3 },
383 { XFLT, "stall_warn_alpha", 1 },
384 { XFLT, "mass_shift", 1 },
385 { XFLT, "mass_shift_dx", 1 },
386 { XFLT, "mass_shift_dz", 1 },
387 { XFLT, "feathered_pitch", 1 },
388 { XFLT, "ASmaxg_hi", 1 },
389 { XFLT, "ASg_hi_pos", 1 },
390 { XFLT, "ASg_hi_rate", 1 },
391 { XFLT, "wing_tilt_ptch", 1 },
392 { XFLT, "wing_tilt_roll", 1 },
393 { XFLT, "max_press_diff", 1 },
394 { XFLT, "diff_coll_with_ptch", 1 },
395 { XFLT, "flap_roll", 1 },
396 { XFLT, "flap_ptch", 1 },
397 { XFLT, "lift_fan_rat", 1 },
398 { XFLT, "diff_cycl_with_hdng_lat", 1 },
399 { XINT, "phase_tvect_out_at_90", 1 },
400 { XFLT, "roll_co", 1 },
401 { XFLT, "brake_co", 1 },
402 { XINT, "OVER__drive_by_wire", 1 },
403 { XINT, "is_glossy", 1 },
404 { XINT, "num_tanks", 1 },
405 { XINT, "has_refuel", 1 },
406 { XINT, "draw_geo_frnt_views", 1 },
407 { XINT, "draw_geo_side_views", 1 },
408 { XINT, "jett_is_slung", 1 },
409 { XFLT, "eng_mass", 57 },
410 { XINT, "phase_tvect_out_at_00", 1 },
411 { XINT, "auto_trimEQ", 1 },
412 { XINT, "has_DC_fd", 1 },
413 { XINT, "flaps_with_gearEQ", 1 },
414 { XINT, "rev_on_touchdown", 1 },
415 { XINT, "flaps_with_vecEQ", 1 },
416 { XINT, "blow_all_controls", 1 },
417 { XINT, "warn2EQ", 1 },
418 { XINT, "num_thrustpoints", 1 },
419 { XINT, "props_linked", 1 },
420 { XINT, "int_overflow", 15 },
421 { XINT, "old_struct_last_data", 1 },
422 { XCHR, "wpn_name", 12000 },
423 { XFLT, "Xwpn_att", 24 },
424 { XFLT, "Ywpn_att", 24 },
425 { XFLT, "Zwpn_att", 24 },
426 { XINT, "cus_rnd_use", 50 },
427 { XFLT, "cus_rnd_lo_val", 50 },
428 { XFLT, "cus_rnd_hi_val", 50 },
429 { XFLT, "cus_rnd_lo_ang", 50 },
430 { XFLT, "cus_rnd_hi_ang", 50 },
431 { XINT, "has_nav", 6 },
432 { XINT, "has_radar", 1 },
433 { XINT, "dummy_int", 43 },
434 { XINT, "cus_rnd_mirror", 50 },
435 { XINT, "cus_rnd_label", 50 },
436 { XINT, "cus_dig_use", 50 },
437 { XFLT, "cus_dig_offset", 50 },
438 { XFLT, "cus_dig_scale", 50 },
439 { XINT, "cus_dig_dig", 50 },
440 { XINT, "cus_dig_dec", 50 },
441 { XINT, "inc_ail", 570 },
442 { XINT, "inc_vec", 570 },
443 { XFLT, "tow_hook_Y", 1 },
444 { XFLT, "tow_hook_Z", 1 },
445 { XFLT, "win_hook_Y", 1 },
446 { XFLT, "win_hook_Z", 1 },
447 { XFLT, "nosewheel_k", 1 },
448 { XFLT, "vectarmY", 1 },
449 { XINT, "hide_prop_at_90_vect", 1 },
450 { XINT, "xint_overflow", 204 },
451 { XCHR, "xchr_overflow", 1000 },
452
453 { XEOF, NULL, 0 }
454};
455
456#endif /* _IMP_ACF_DEF_ACF651_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf700.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf700.h
new file mode 100644
index 0000000..36ceb38
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf700.h
@@ -0,0 +1,506 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_ACF_DEF_ACF700
23#define _IMP_ACF_DEF_ACF700
24
25#include "imp_acf_def_proto.h"
26
27static const AcfDef acf_def_acf700[] = {
28 { XCHR, "VIEW__PlatForm", 1 },
29 { XINT, "VIEW__Filler", 1 },
30 { XFLT, "VIEW__Filler", 1 },
31 { XCHR, "VIEW_name", 500 },
32 { XCHR, "VIEW_path", 500 },
33 { XCHR, "VIEW_tailnum", 40 },
34 { XCHR, "VIEW_author", 500 },
35 { XCHR, "VIEW_descrip", 500 },
36 { XFLT, "VIEW_Vmca_kts", 1 },
37 { XFLT, "VIEW_Vso_kts", 1 },
38 { XFLT, "VIEW_Vs_kts", 1 },
39 { XFLT, "VIEW_Vyse_kts", 1 },
40 { XFLT, "VIEW_Vfe_kts", 1 },
41 { XFLT, "VIEW_Vle_kts", 1 },
42 { XFLT, "VIEW_Vno_kts", 1 },
43 { XFLT, "VIEW_Vne_kts", 1 },
44 { XFLT, "VIEW_Mmo", 1 },
45 { XFLT, "VIEW_Gneg", 1 },
46 { XFLT, "VIEW_Gpos", 1 },
47 { XINT, "VIEW_has_navlites", 1 },
48 { XFLT, "VIEW_peX", 1 },
49 { XFLT, "VIEW_peY", 1 },
50 { XFLT, "VIEW_peZ", 1 },
51 { XINT, "VIEW_has_lanlite1", 1 },
52 { XFLT, "VIEW_lanlite1X", 1 },
53 { XFLT, "VIEW_lanlite1Y", 1 },
54 { XFLT, "VIEW_lanlite1Z", 1 },
55 { XINT, "VIEW_has_lanlite2", 1 },
56 { XFLT, "VIEW_lanlite2X", 1 },
57 { XFLT, "VIEW_lanlite2Y", 1 },
58 { XFLT, "VIEW_lanlite2Z", 1 },
59 { XINT, "VIEW_has_lanlite3", 1 },
60 { XFLT, "VIEW_lanlite3X", 1 },
61 { XFLT, "VIEW_lanlite3Y", 1 },
62 { XFLT, "VIEW_lanlite3Z", 1 },
63 { XINT, "VIEW_has_fuserb1", 1 },
64 { XFLT, "VIEW_fuserb1X", 1 },
65 { XFLT, "VIEW_fuserb1Y", 1 },
66 { XFLT, "VIEW_fuserb1Z", 1 },
67 { XINT, "VIEW_has_fuserb2", 1 },
68 { XFLT, "VIEW_fuserb2X", 1 },
69 { XFLT, "VIEW_fuserb2Y", 1 },
70 { XFLT, "VIEW_fuserb2Z", 1 },
71 { XINT, "VIEW_has_taillite", 1 },
72 { XFLT, "VIEW_tailliteX", 1 },
73 { XFLT, "VIEW_tailliteY", 1 },
74 { XFLT, "VIEW_tailliteZ", 1 },
75 { XINT, "VIEW_has_refuel", 1 },
76 { XFLT, "VIEW_refuel_X", 1 },
77 { XFLT, "VIEW_refuel_Y", 1 },
78 { XFLT, "VIEW_refuel_Z", 1 },
79 { XFLT, "VIEW_yawstringx", 1 },
80 { XFLT, "VIEW_yawstringy", 1 },
81 { XFLT, "VIEW_HUD_cntrx", 1 },
82 { XFLT, "VIEW_HUD_cntry", 1 },
83 { XFLT, "VIEW_HUD_delx", 1 },
84 { XFLT, "VIEW_HUD_dely", 1 },
85 { XINT, "VIEW_lanlite_steers", 1 },
86 { XFLT, "VIEW_lanlite_power", 1 },
87 { XFLT, "VIEW_lanlite_width", 1 },
88 { XFLT, "VIEW_lanlite_the", 1 },
89 { XFLT, "VIEW_stall_warn_aoa", 1 },
90 { XFLT, "VIEW_tow_hook_Y", 1 },
91 { XFLT, "VIEW_tow_hook_Z", 1 },
92 { XFLT, "VIEW_win_hook_Y", 1 },
93 { XFLT, "VIEW_win_hook_Z", 1 },
94 { XINT, "VIEW_HUD_type", 1 },
95 { XFLT, "VIEW_cockpit_type", 1 },
96 { XFLT, "VIEW_asi_kts", 1 },
97 { XINT, "VIEW_warn1EQ", 1 },
98 { XINT, "VIEW_warn2EQ", 1 },
99 { XINT, "VIEW_is_glossy", 1 },
100 { XINT, "VIEW_draw_geo_frnt_views", 1 },
101 { XINT, "VIEW_draw_geo_side_views", 1 },
102 { XINT, "VIEW_ins_type", 200 },
103 { XFLT, "VIEW_ins_size", 200 },
104 { XFLT, "VIEW_ins_x", 200 },
105 { XFLT, "VIEW_ins_y", 200 },
106 { XFLT, "VIEW_ins_delx", 200 },
107 { XFLT, "VIEW_ins_dely", 200 },
108 { XINT, "VIEW_cus_rnd_use", 50 },
109 { XFLT, "VIEW_cus_rnd_lo_val", 50 },
110 { XFLT, "VIEW_cus_rnd_hi_val", 50 },
111 { XFLT, "VIEW_cus_rnd_lo_ang", 50 },
112 { XFLT, "VIEW_cus_rnd_hi_ang", 50 },
113 { XINT, "VIEW_cus_rnd_mirror", 50 },
114 { XINT, "VIEW_cus_rnd_label", 50 },
115 { XINT, "VIEW_cus_dig_use", 50 },
116 { XFLT, "VIEW_cus_dig_offset", 50 },
117 { XFLT, "VIEW_cus_dig_scale", 50 },
118 { XINT, "VIEW_cus_dig_dig", 50 },
119 { XINT, "VIEW_cus_dig_dec", 50 },
120 { XINT, "ENGINE_num_engines", 1 },
121 { XINT, "ENGINE_num_thrustpoints", 1 },
122 { XFLT, "ENGINE_throt_max_FWD", 1 },
123 { XFLT, "ENGINE_throt_max_REV", 1 },
124 { XFLT, "ENGINE_idle_rat", 2 },
125 { XINT, "ENGINE_props_linked", 1 },
126 { XINT, "ENGINE_beta_prop_EQ", 1 },
127 { XINT, "ENGINE_auto_feather_EQ", 1 },
128 { XINT, "ENGINE_rev_thrust_EQ", 1 },
129 { XINT, "ENGINE_drive_by_wire_EQ", 1 },
130 { XFLT, "ENGINE_feathered_pitch", 1 },
131 { XFLT, "ENGINE_reversed_pitch", 1 },
132 { XFLT, "ENGINE_rotor_mi_rat", 1 },
133 { XFLT, "ENGINE_tip_weight", 1 },
134 { XFLT, "ENGINE_tip_mach_des_100", 1 },
135 { XFLT, "ENGINE_tip_mach_des_50", 1 },
136 { XFLT, "ENGINE_power_max", 1 },
137 { XFLT, "ENGINE_crit_alt", 1 },
138 { XFLT, "ENGINE_mp_max", 1 },
139 { XFLT, "ENGINE_trq_max_eng", 1 },
140 { XFLT, "ENGINE_RSC_idlespeed_ENGN", 1 },
141 { XFLT, "ENGINE_RSC_redline_ENGN", 1 },
142 { XFLT, "ENGINE_RSC_idlespeed_PROP", 1 },
143 { XFLT, "ENGINE_RSC_redline_PROP", 1 },
144 { XFLT, "ENGINE_RSC_mingreen_ENGN", 1 },
145 { XFLT, "ENGINE_RSC_maxgreen_ENGN", 1 },
146 { XFLT, "ENGINE_RSC_mingreen_PROP", 1 },
147 { XFLT, "ENGINE_RSC_maxgreen_PROP", 1 },
148 { XFLT, "ENGINE_turbo_tight", 1 },
149 { XFLT, "ENGINE_spooltime_prop", 1 },
150 { XFLT, "ENGINE_trans_loss", 1 },
151 { XFLT, "ENGINE_thrust_max", 1 },
152 { XFLT, "ENGINE_burner_inc", 1 },
153 { XFLT, "ENGINE_max_mach_eff", 1 },
154 { XFLT, "ENGINE_face_jet", 1 },
155 { XFLT, "ENGINE_spooltime_jet", 1 },
156 { XFLT, "ENGINE_lift_fan_rat", 1 },
157 { XFLT, "ENGINE_rock_max_sl", 1 },
158 { XFLT, "ENGINE_rock_max_opt", 1 },
159 { XFLT, "ENGINE_rock_max_vac", 1 },
160 { XFLT, "ENGINE_rock_h_opt", 1 },
161 { XFLT, "ENGINE_face_rocket", 1 },
162 { XINT, "PROP_engn_type", 8 },
163 { XINT, "PROP_prop_type", 8 },
164 { XFLT, "PROP_engn_mass", 8 },
165 { XINT, "PROP_prop_clutch_EQ", 8 },
166 { XFLT, "PROP_prop_gear_rat", 8 },
167 { XFLT, "PROP_prop_dir", 8 },
168 { XFLT, "PROP_num_blades", 8 },
169 { XFLT, "PROP_SFC", 8 },
170 { XFLT, "PROP_vertcant", 8 },
171 { XFLT, "PROP_sidecant", 8 },
172 { XFLT, "PROP_min_pitch", 8 },
173 { XFLT, "PROP_max_pitch", 8 },
174 { XFLT, "PROP_des_rpm_prp", 8 },
175 { XFLT, "PROP_des_kts_prp", 8 },
176 { XFLT, "PROP_des_kts_acf", 8 },
177 { XFLT, "PROP_prop_mass", 8 },
178 { XFLT, "PROP_mi_prop_rpm", 8 },
179 { XFLT, "PROP_mi_engn_rpm", 8 },
180 { XFLT, "PROP_discarea", 8 },
181 { XFLT, "PROP_ringarea", 80 },
182 { XFLT, "PROP_bladesweep", 80 },
183 { XFLT, "HYDRO_STICK_starter_rat", 1 },
184 { XFLT, "HYDRO_STICK_battery_rat", 1 },
185 { XINT, "HYDRO_STICK_ff_hydraulic", 1 },
186 { XINT, "HYDRO_STICK_ff_stickshaker", 1 },
187 { XFLT, "HYDRO_STICK_manual_reversion_rat", 1 },
188 { XFLT, "HYDRO_STICK_max_press_diff", 1 },
189 { XINT, "PARTS_WingBodyGear_part_eq", 73 },
190 { XCHR, "PARTS_WingBodyGear_Rafl0", 2920 },
191 { XCHR, "PARTS_WingBodyGear_Rafl1", 2920 },
192 { XCHR, "PARTS_WingBodyGear_Tafl0", 2920 },
193 { XCHR, "PARTS_WingBodyGear_Tafl1", 2920 },
194 { XINT, "PARTS_WingBodyGear_els", 73 },
195 { XFLT, "PARTS_WingBodyGear_Xarm", 73 },
196 { XFLT, "PARTS_WingBodyGear_Yarm", 73 },
197 { XFLT, "PARTS_WingBodyGear_Zarm", 73 },
198 { XFLT, "PARTS_WingBodyGear_Croot", 73 },
199 { XFLT, "PARTS_WingBodyGear_Ctip", 73 },
200 { XFLT, "PARTS_WingBodyGear_semilen_SEG", 73 },
201 { XFLT, "PARTS_WingBodyGear_semilen_JND", 73 },
202 { XFLT, "PARTS_WingBodyGear_element_len", 73 },
203 { XFLT, "PARTS_WingBodyGear_X_body_aero", 73 },
204 { XFLT, "PARTS_WingBodyGear_Y_body_aero", 73 },
205 { XFLT, "PARTS_WingBodyGear_Z_body_aero", 73 },
206 { XFLT, "PARTS_WingBodyGear_dihed1", 73 },
207 { XFLT, "PARTS_WingBodyGear_dihed2", 73 },
208 { XFLT, "PARTS_WingBodyGear_dihednow", 73 },
209 { XINT, "PARTS_WingBodyGear_vardihed", 73 },
210 { XINT, "PARTS_WingBodyGear_vardihedEQ", 1 },
211 { XFLT, "PARTS_WingBodyGear_sweep1", 73 },
212 { XFLT, "PARTS_WingBodyGear_sweep2", 73 },
213 { XFLT, "PARTS_WingBodyGear_sweepnow", 73 },
214 { XINT, "PARTS_WingBodyGear_varsweep", 73 },
215 { XINT, "PARTS_WingBodyGear_varsweepEQ", 1 },
216 { XFLT, "PARTS_WingBodyGear_e", 73 },
217 { XFLT, "PARTS_WingBodyGear_AR", 73 },
218 { XFLT, "PARTS_WingBodyGear_al_D_al0", 73 },
219 { XFLT, "PARTS_WingBodyGear_cl_D_cl0", 73 },
220 { XFLT, "PARTS_WingBodyGear_cm_D_cm0", 73 },
221 { XFLT, "PARTS_WingBodyGear_delta_fac", 73 },
222 { XFLT, "PARTS_WingBodyGear_spec_wash", 73 },
223 { XFLT, "PARTS_WingBodyGear_alpha_max", 73 },
224 { XFLT, "PARTS_WingBodyGear_slat_effect", 73 },
225 { XFLT, "PARTS_WingBodyGear_s", 730 },
226 { XFLT, "PARTS_WingBodyGear_mac", 730 },
227 { XFLT, "PARTS_WingBodyGear_incidence", 730 },
228 { XINT, "PARTS_WingBodyGear_ail1", 730 },
229 { XFLT, "PARTS_WingBodyGear_ail1_elR", 73 },
230 { XFLT, "PARTS_WingBodyGear_ail1_elT", 73 },
231 { XFLT, "PARTS_WingBodyGear_ail1_cratR", 1 },
232 { XFLT, "PARTS_WingBodyGear_ail1_cratT", 1 },
233 { XFLT, "PARTS_WingBodyGear_ail1_up", 1 },
234 { XFLT, "PARTS_WingBodyGear_ail1_dn", 1 },
235 { XINT, "PARTS_WingBodyGear_ail2", 730 },
236 { XFLT, "PARTS_WingBodyGear_ail2_elR", 73 },
237 { XFLT, "PARTS_WingBodyGear_ail2_elT", 73 },
238 { XFLT, "PARTS_WingBodyGear_ail2_cratR", 1 },
239 { XFLT, "PARTS_WingBodyGear_ail2_cratT", 1 },
240 { XFLT, "PARTS_WingBodyGear_ail2_up", 1 },
241 { XFLT, "PARTS_WingBodyGear_ail2_dn", 1 },
242 { XINT, "PARTS_WingBodyGear_elev", 730 },
243 { XFLT, "PARTS_WingBodyGear_elev_elR", 73 },
244 { XFLT, "PARTS_WingBodyGear_elev_elT", 73 },
245 { XFLT, "PARTS_WingBodyGear_elev_cratR", 1 },
246 { XFLT, "PARTS_WingBodyGear_elev_cratT", 1 },
247 { XFLT, "PARTS_WingBodyGear_elev_up", 1 },
248 { XFLT, "PARTS_WingBodyGear_elev_dn", 1 },
249 { XINT, "PARTS_WingBodyGear_rudd", 730 },
250 { XFLT, "PARTS_WingBodyGear_rudd_elR", 73 },
251 { XFLT, "PARTS_WingBodyGear_rudd_elT", 73 },
252 { XFLT, "PARTS_WingBodyGear_rudd_cratR", 1 },
253 { XFLT, "PARTS_WingBodyGear_rudd_cratT", 1 },
254 { XFLT, "PARTS_WingBodyGear_rudd_lr", 1 },
255 { XINT, "PARTS_WingBodyGear_splr", 730 },
256 { XFLT, "PARTS_WingBodyGear_splr_elR", 73 },
257 { XFLT, "PARTS_WingBodyGear_splr_elT", 73 },
258 { XFLT, "PARTS_WingBodyGear_splr_cratR", 1 },
259 { XFLT, "PARTS_WingBodyGear_splr_cratT", 1 },
260 { XFLT, "PARTS_WingBodyGear_splr_up", 1 },
261 { XINT, "PARTS_WingBodyGear_yawb", 730 },
262 { XFLT, "PARTS_WingBodyGear_yawb_elR", 73 },
263 { XFLT, "PARTS_WingBodyGear_yawb_elT", 73 },
264 { XFLT, "PARTS_WingBodyGear_yawb_cratR", 1 },
265 { XFLT, "PARTS_WingBodyGear_yawb_cratT", 1 },
266 { XFLT, "PARTS_WingBodyGear_yawb_ud", 1 },
267 { XINT, "PARTS_WingBodyGear_sbrk", 730 },
268 { XFLT, "PARTS_WingBodyGear_sbrk_elR", 73 },
269 { XFLT, "PARTS_WingBodyGear_sbrk_elT", 73 },
270 { XFLT, "PARTS_WingBodyGear_sbrk_cratR", 1 },
271 { XFLT, "PARTS_WingBodyGear_sbrk_cratT", 1 },
272 { XFLT, "PARTS_WingBodyGear_sbrk_up", 1 },
273 { XINT, "PARTS_WingBodyGear_sbrkEQ", 1 },
274 { XINT, "PARTS_WingBodyGear_flap", 730 },
275 { XFLT, "PARTS_WingBodyGear_flap_elR", 73 },
276 { XFLT, "PARTS_WingBodyGear_flap_elT", 73 },
277 { XFLT, "PARTS_WingBodyGear_flap_cratR", 1 },
278 { XFLT, "PARTS_WingBodyGear_flap_cratT", 1 },
279 { XFLT, "PARTS_WingBodyGear_flap_dn", 8 },
280 { XINT, "PARTS_WingBodyGear_flapEQ", 1 },
281 { XINT, "PARTS_WingBodyGear_slat", 730 },
282 { XFLT, "PARTS_WingBodyGear_slat_inc", 1 },
283 { XINT, "PARTS_WingBodyGear_slatEQ", 1 },
284 { XINT, "PARTS_WingBodyGear_inc_ail1", 730 },
285 { XINT, "PARTS_WingBodyGear_inc_ail2", 730 },
286 { XINT, "PARTS_WingBodyGear_inc_elev", 730 },
287 { XINT, "PARTS_WingBodyGear_inc_rudd", 730 },
288 { XINT, "PARTS_WingBodyGear_inc_vect", 730 },
289 { XINT, "PARTS_WingBodyGear_inc_trim", 730 },
290 { XINT, "PARTS_WingBodyGear_in_downwash", 53290 },
291 { XFLT, "PARTS_WingBodyGear_body_r", 73 },
292 { XFLT, "PARTS_WingBodyGear_body_X", 26280 },
293 { XFLT, "PARTS_WingBodyGear_body_Y", 26280 },
294 { XFLT, "PARTS_WingBodyGear_body_Z", 26280 },
295 { XINT, "PARTS_WingBodyGear_gear_type", 73 },
296 { XFLT, "PARTS_WingBodyGear_gear_latE", 73 },
297 { XFLT, "PARTS_WingBodyGear_gear_lonE", 73 },
298 { XFLT, "PARTS_WingBodyGear_gear_axiE", 73 },
299 { XFLT, "PARTS_WingBodyGear_gear_latR", 73 },
300 { XFLT, "PARTS_WingBodyGear_gear_lonR", 73 },
301 { XFLT, "PARTS_WingBodyGear_gear_axiR", 73 },
302 { XFLT, "PARTS_WingBodyGear_gear_latN", 73 },
303 { XFLT, "PARTS_WingBodyGear_gear_lonN", 73 },
304 { XFLT, "PARTS_WingBodyGear_gear_axiN", 73 },
305 { XFLT, "PARTS_WingBodyGear_gear_xnodef", 73 },
306 { XFLT, "PARTS_WingBodyGear_gear_ynodef", 73 },
307 { XFLT, "PARTS_WingBodyGear_gear_znodef", 73 },
308 { XFLT, "PARTS_WingBodyGear_gear_leglen", 73 },
309 { XFLT, "PARTS_WingBodyGear_gear_radius", 73 },
310 { XFLT, "PARTS_WingBodyGear_gear_width", 73 },
311 { XFLT, "PARTS_WingBodyGear_gearcon", 73 },
312 { XFLT, "PARTS_WingBodyGear_geardmp", 73 },
313 { XFLT, "PARTS_WingBodyGear_gear_deploy", 73 },
314 { XFLT, "PARTS_WingBodyGear_gearstatdef", 73 },
315 { XFLT, "PARTS_WingBodyGear_gear_def", 73 },
316 { XINT, "PARTS_WingBodyGear_gear_steers", 73 },
317 { XFLT, "PARTS_WingBodyGear_gear_cyctim", 73 },
318 { XFLT, "BODIES_fuse_cd", 1 },
319 { XFLT, "CONTROL_hstb_trim_up", 1 },
320 { XFLT, "CONTROL_hstb_trim_dn", 1 },
321 { XINT, "CONTROL_flap_type", 1 },
322 { XINT, "CONTROL_con_smooth", 1 },
323 { XINT, "CONTROL_flap_detents", 1 },
324 { XFLT, "CONTROL_flap_deftime", 1 },
325 { XFLT, "CONTROL_flap_cl", 1 },
326 { XFLT, "CONTROL_flap_cd", 1 },
327 { XFLT, "CONTROL_flap_cm", 1 },
328 { XFLT, "CONTROL_blown_flap_add_speed", 1 },
329 { XFLT, "CONTROL_blown_flap_throt_red", 1 },
330 { XFLT, "CONTROL_blown_flap_min_engag", 1 },
331 { XINT, "CONTROL_blow_all_controls", 1 },
332 { XINT, "LANDING_GEAR_gear_retract", 1 },
333 { XFLT, "LANDING_GEAR_nw_steerdeg1", 1 },
334 { XFLT, "LANDING_GEAR_nw_steerdeg2", 1 },
335 { XFLT, "LANDING_GEAR_nw_cutoff_speed", 1 },
336 { XFLT, "LANDING_GEAR_nosewheel_k", 1 },
337 { XFLT, "LANDING_GEAR_gear_door_size", 1 },
338 { XFLT, "LANDING_GEAR_water_rud_longarm", 1 },
339 { XFLT, "LANDING_GEAR_water_rud_area", 1 },
340 { XFLT, "LANDING_GEAR_water_rud_maxdef", 1 },
341 { XFLT, "LANDING_GEAR_roll_co", 1 },
342 { XFLT, "LANDING_GEAR_brake_co", 1 },
343 { XINT, "LANDING_GEAR_gear_door_typ", 10 },
344 { XFLT, "LANDING_GEAR_gear_door_loc", 30 },
345 { XFLT, "LANDING_GEAR_", 1 },
346 { XFLT, "LANDING_GEAR_gear_door_axi_rot", 10 },
347 { XFLT, "LANDING_GEAR_gear_door_ext_ang", 10 },
348 { XFLT, "LANDING_GEAR_gear_door_ret_ang", 10 },
349 { XFLT, "LANDING_GEAR_gear_door_ang_now", 10 },
350 { XFLT, "WEIGHT_BALANCE_cgY", 1 },
351 { XFLT, "WEIGHT_BALANCE_cgZ", 1 },
352 { XFLT, "WEIGHT_BALANCE_cgZ_fwd", 1 },
353 { XFLT, "WEIGHT_BALANCE_cgZ_aft", 1 },
354 { XFLT, "WEIGHT_BALANCE_m_empty", 1 },
355 { XFLT, "WEIGHT_BALANCE_m_fuel_tot", 1 },
356 { XFLT, "WEIGHT_BALANCE_m_jettison", 1 },
357 { XFLT, "WEIGHT_BALANCE_m_max", 1 },
358 { XFLT, "WEIGHT_BALANCE_m_displaced", 1 },
359 { XFLT, "WEIGHT_BALANCE_Jxx_unitmass", 1 },
360 { XFLT, "WEIGHT_BALANCE_Jyy_unitmass", 1 },
361 { XFLT, "WEIGHT_BALANCE_Jzz_unitmass", 1 },
362 { XINT, "WEIGHT_BALANCE_num_tanks", 1 },
363 { XFLT, "WEIGHT_BALANCE_tank_rat", 3 },
364 { XFLT, "WEIGHT_BALANCE_tank_X", 3 },
365 { XFLT, "WEIGHT_BALANCE_tank_Y", 3 },
366 { XFLT, "WEIGHT_BALANCE_tank_Z", 3 },
367 { XINT, "WEIGHT_BALANCE_jett_is_slung", 1 },
368 { XINT, "WEIGHT_BALANCE_jett_is_water", 1 },
369 { XFLT, "WEIGHT_BALANCE_jett_len", 1 },
370 { XFLT, "WEIGHT_BALANCE_jett_X", 1 },
371 { XFLT, "WEIGHT_BALANCE_jett_Y", 1 },
372 { XFLT, "WEIGHT_BALANCE_jett_Z", 1 },
373 { XFLT, "SPECIAL_CONTROLS_flap_roll", 1 },
374 { XFLT, "SPECIAL_CONTROLS_flap_ptch", 1 },
375 { XFLT, "SPECIAL_CONTROLS_mass_shift", 1 },
376 { XFLT, "SPECIAL_CONTROLS_mass_shift_dx", 1 },
377 { XFLT, "SPECIAL_CONTROLS_mass_shift_dz", 1 },
378 { XFLT, "SPECIAL_CONTROLS_wing_tilt_ptch", 1 },
379 { XFLT, "SPECIAL_CONTROLS_wing_tilt_roll", 1 },
380 { XFLT, "SPECIAL_CONTROLS_tvec_ptch", 1 },
381 { XFLT, "SPECIAL_CONTROLS_tvec_roll", 1 },
382 { XFLT, "SPECIAL_CONTROLS_tvec_hdng", 1 },
383 { XFLT, "SPECIAL_CONTROLS_jato_Y", 1 },
384 { XFLT, "SPECIAL_CONTROLS_jato_Z", 1 },
385 { XFLT, "SPECIAL_CONTROLS_jato_theta", 1 },
386 { XFLT, "SPECIAL_CONTROLS_jato_thrust", 1 },
387 { XFLT, "SPECIAL_CONTROLS_jato_dur", 1 },
388 { XFLT, "SPECIAL_CONTROLS_jato_sfc", 1 },
389 { XFLT, "SPECIAL_CONTROLS_stab_roll", 1 },
390 { XFLT, "SPECIAL_CONTROLS_stab_hdng", 1 },
391 { XFLT, "SPECIAL_CONTROLS_elev_flaps", 1 },
392 { XFLT, "SPECIAL_CONTROLS_ail1_pitch", 1 },
393 { XFLT, "SPECIAL_CONTROLS_ail1_flaps", 1 },
394 { XFLT, "SPECIAL_CONTROLS_ail2_pitch", 1 },
395 { XFLT, "SPECIAL_CONTROLS_ail2_flaps", 1 },
396 { XFLT, "SPECIAL_CONTROLS_ail2_vmax", 1 },
397 { XFLT, "SPECIAL_CONTROLS_diff_thro_with_hdng", 1 },
398 { XINT, "SPECIAL_CONTROLS_phase_tvect_out_at_90", 1 },
399 { XINT, "SPECIAL_CONTROLS_phase_tvect_out_at_00", 1 },
400 { XINT, "SPECIAL_CONTROLS_autosbrkEQ", 1 },
401 { XINT, "SPECIAL_CONTROLS_autofbrkEQ", 1 },
402 { XINT, "SPECIAL_CONTROLS_autosweepEQ", 1 },
403 { XINT, "SPECIAL_CONTROLS_flaps_with_gearEQ", 1 },
404 { XINT, "SPECIAL_CONTROLS_autoslatEQ", 1 },
405 { XINT, "SPECIAL_CONTROLS_antiiceEQ", 1 },
406 { XINT, "SPECIAL_CONTROLS_arrestingEQ", 1 },
407 { XINT, "SPECIAL_CONTROLS_rev_on_touchdown", 1 },
408 { XINT, "SPECIAL_CONTROLS_gearhornEQ", 1 },
409 { XINT, "SPECIAL_CONTROLS_lorotorwarnEQ", 1 },
410 { XINT, "SPECIAL_CONTROLS_auto_trimEQ", 1 },
411 { XINT, "SPECIAL_CONTROLS_flaps_with_vecEQ", 1 },
412 { XFLT, "SPECIAL_CONTROLS_brake_area", 1 },
413 { XFLT, "SPECIAL_CONTROLS_brake_Y", 1 },
414 { XFLT, "SPECIAL_CONTROLS_brake_Z", 1 },
415 { XFLT, "SPECIAL_CONTROLS_chute_area", 1 },
416 { XFLT, "SPECIAL_CONTROLS_chute_Y", 1 },
417 { XFLT, "SPECIAL_CONTROLS_chute_Z", 1 },
418 { XINT, "VTOL_CONTROL_vectEQ", 1 },
419 { XINT, "VTOL_CONTROL_auto_rpm_with_tvec", 1 },
420 { XINT, "VTOL_CONTROL_hide_prop_at_90_vect", 1 },
421 { XFLT, "VTOL_CONTROL_vect_rate", 1 },
422 { XFLT, "VTOL_CONTROL_vect_min", 1 },
423 { XFLT, "VTOL_CONTROL_vect_max", 1 },
424 { XFLT, "VTOL_CONTROL_vectarmY", 1 },
425 { XFLT, "VTOL_CONTROL_vectarmZ", 1 },
426 { XFLT, "VTOL_CONTROL_cyclic_elev", 1 },
427 { XFLT, "VTOL_CONTROL_cyclic_ailn", 1 },
428 { XFLT, "VTOL_CONTROL_flap_arm", 1 },
429 { XFLT, "VTOL_CONTROL_delta3", 1 },
430 { XFLT, "VTOL_CONTROL_puffL", 1 },
431 { XFLT, "VTOL_CONTROL_puffM", 1 },
432 { XFLT, "VTOL_CONTROL_puffN", 1 },
433 { XFLT, "VTOL_CONTROL_puffX", 1 },
434 { XFLT, "VTOL_CONTROL_puffY", 1 },
435 { XFLT, "VTOL_CONTROL_puffZ", 1 },
436 { XFLT, "VTOL_CONTROL_stab_delinc_to_Vne", 1 },
437 { XFLT, "VTOL_CONTROL_tail_with_coll", 1 },
438 { XFLT, "VTOL_CONTROL_diff_coll_with_roll", 1 },
439 { XFLT, "VTOL_CONTROL_diff_coll_with_hdng", 1 },
440 { XFLT, "VTOL_CONTROL_diff_coll_with_ptch", 1 },
441 { XFLT, "VTOL_CONTROL_diff_cycl_with_hdng_lon", 1 },
442 { XFLT, "VTOL_CONTROL_diff_cycl_with_hdng_lat", 1 },
443 { XFLT, "VTOL_CONTROL_rotor_trim_max_fwd", 1 },
444 { XFLT, "VTOL_CONTROL_rotor_trim_max_aft", 1 },
445 { XFLT, "ART_STAB_AShiV", 1 },
446 { XFLT, "ART_STAB_ASloV", 1 },
447 { XFLT, "ART_STAB_ASmaxp_lo", 1 },
448 { XFLT, "ART_STAB_ASp_lo_rate", 1 },
449 { XFLT, "ART_STAB_ASmaxh_lo", 1 },
450 { XFLT, "ART_STAB_ASh_lo_rate", 1 },
451 { XFLT, "ART_STAB_ASmaxr_lo", 1 },
452 { XFLT, "ART_STAB_ASr_lo_rate", 1 },
453 { XFLT, "ART_STAB_ASmaxg_hi", 1 },
454 { XFLT, "ART_STAB_ASg_hi_pos", 1 },
455 { XFLT, "ART_STAB_ASg_hi_rate", 1 },
456 { XFLT, "ART_STAB_ASmaxp_hi", 1 },
457 { XFLT, "ART_STAB_ASp_hi_pos", 1 },
458 { XFLT, "ART_STAB_ASp_hi_rate", 1 },
459 { XFLT, "ART_STAB_ASmaxh_hi", 1 },
460 { XFLT, "ART_STAB_ASh_hi_pos", 1 },
461 { XFLT, "ART_STAB_ASh_hi_rate", 1 },
462 { XFLT, "ART_STAB_ASmaxr_hi", 1 },
463 { XFLT, "ART_STAB_ASr_hi_rate", 1 },
464 { XCHR, "WEARONS_wpn_name", 12000 },
465 { XFLT, "WEARONS_Xwpn_att", 24 },
466 { XFLT, "WEARONS_Ywpn_att", 24 },
467 { XFLT, "WEARONS_Zwpn_att", 24 },
468 { XFLT, "AUTO_SETS_est_Vs_msc", 1 },
469 { XFLT, "AUTO_SETS_size_x", 1 },
470 { XFLT, "AUTO_SETS_size_z", 1 },
471 { XFLT, "AUTO_SETS_tire_s_contact", 1 },
472 { XFLT, "AUTO_SETS_m_displaced_y", 1 },
473 { XFLT, "AUTO_SETS_h_eqlbm", 1 },
474 { XFLT, "AUTO_SETS_the_eqlbm", 1 },
475 { XINT, "AUTO_SETS_is_taildragger", 1 },
476 { XINT, "AUTO_SETS_is_skid_gear", 1 },
477 { XINT, "AUTO_SETS_is_hybrid_gear", 1 },
478 { XINT, "AUTO_SETS_has_nav", 6 },
479 { XINT, "AUTO_SETS_has_radar", 1 },
480 { XINT, "AUTO_SETS_has_SC_fd", 1 },
481 { XINT, "AUTO_SETS_has_DC_fd", 1 },
482 { XINT, "AUTO_SETS_has_stallwarn", 1 },
483 { XINT, "AUTO_SETS_has_clutchswitch", 1 },
484 { XINT, "AUTO_SETS_has_prerotate", 1 },
485 { XINT, "AUTO_SETS_has_idlespeed", 1 },
486 { XINT, "AUTO_SETS_has_litemap_tex", 1 },
487 { XINT, "AUTO_SETS_has_tailrotor", 1 },
488 { XINT, "AUTO_SETS_has_collective", 1 },
489 { XINT, "AUTO_SETS_collective_en", 1 },
490 { XFLT, "SOUND_REF_snd_kias", 1 },
491 { XFLT, "SOUND_REF_snd_rpm_prp", 1 },
492 { XFLT, "SOUND_REF_snd_rpm_eng", 1 },
493 { XFLT, "SOUND_REF_snd_n1", 1 },
494 { XFLT, "VAR_INCIDENCE_inc2", 73 },
495 { XFLT, "VAR_INCIDENCE_incnow", 73 },
496 { XINT, "VAR_INCIDENCE_varinc", 73 },
497 { XINT, "VAR_INCIDENCE_varincEQ", 1 },
498 { XFLT, "owerflow_xflt_overflow", 776 },
499 { XINT, "owerflow_xint_overflow", 1000 },
500 { XCHR, "owerflow_xchr_overflow", 1000 },
501 { XCHR, "end_of_data", 1 },
502
503 { XEOF, NULL, 0 }
504};
505
506#endif /* _IMP_ACF_DEF_ACF700 */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf740.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf740.h
new file mode 100644
index 0000000..acac894
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf740.h
@@ -0,0 +1,584 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_ACF_DEF_ACF740_H
23#define _IMP_ACF_DEF_ACF740_H
24
25#include "imp_acf_def_proto.h"
26
27static const AcfDef acf_def_acf740[] = {
28 { XCHR, "HEADER_platform", 1 },
29 { XINT, "HEADER_version", 1 },
30 { XFLT, "HEADER_filler", 1 },
31 { XCHR, "VIEW_name", 500 },
32 { XCHR, "VIEW_path", 500 },
33 { XCHR, "VIEW_tailnum", 40 },
34 { XCHR, "VIEW_author", 500 },
35 { XCHR, "VIEW_descrip", 500 },
36 { XFLT, "VIEW_Vmca_kts", 1 },
37 { XFLT, "VIEW_Vso_kts", 1 },
38 { XFLT, "VIEW_Vs_kts", 1 },
39 { XFLT, "VIEW_Vyse_kts", 1 },
40 { XFLT, "VIEW_Vfe_kts", 1 },
41 { XFLT, "VIEW_Vle_kts", 1 },
42 { XFLT, "VIEW_Vno_kts", 1 },
43 { XFLT, "VIEW_Vne_kts", 1 },
44 { XFLT, "VIEW_Mmo", 1 },
45 { XFLT, "VIEW_Gneg", 1 },
46 { XFLT, "VIEW_Gpos", 1 },
47 { XINT, "VIEW_has_navlites", 1 },
48 { XFLT, "VIEW_pe_xyz", 3 },
49 { XINT, "VIEW_has_lanlite1", 1 },
50 { XFLT, "VIEW_lanlite1_xyz", 3 },
51 { XINT, "VIEW_has_lanlite2", 1 },
52 { XFLT, "VIEW_lanlite2_xyz", 3 },
53 { XINT, "VIEW_has_taxilite", 1 },
54 { XFLT, "VIEW_lanlite3_xyz", 3 },
55 { XINT, "VIEW_has_fuserb1", 1 },
56 { XFLT, "VIEW_fuserb1_xyz", 3 },
57 { XINT, "VIEW_has_fuserb2", 1 },
58 { XFLT, "VIEW_fuserb2_xyz", 3 },
59 { XINT, "VIEW_has_taillite", 1 },
60 { XFLT, "VIEW_taillite_xyz", 3 },
61 { XINT, "VIEW_has_refuel", 1 },
62 { XFLT, "VIEW_refuel_xyz", 3 },
63 { XFLT, "VIEW_yawstring_x", 1 },
64 { XFLT, "VIEW_yawstring_y", 1 },
65 { XFLT, "VIEW_HUD_ctr_x", 1 },
66 { XFLT, "VIEW_HUD_ctr_y_OLD", 1 },
67 { XFLT, "VIEW_HUD_del_x", 1 },
68 { XFLT, "VIEW_HUD_del_y", 1 },
69 { XINT, "VIEW_lan_lite_steers", 1 },
70 { XFLT, "VIEW_lan_lite_power", 1 },
71 { XFLT, "VIEW_lan_lite_width", 1 },
72 { XFLT, "VIEW_lan_lite_the_ref", 1 },
73 { XFLT, "VIEW_stall_warn_aoa", 1 },
74 { XFLT, "VIEW_tow_hook_Y", 1 },
75 { XFLT, "VIEW_tow_hook_Z", 1 },
76 { XFLT, "VIEW_win_hook_Y", 1 },
77 { XFLT, "VIEW_win_hook_Z", 1 },
78 { XINT, "VIEW_has_HOOPS_HUD", 1 },
79 { XINT, "VIEW_cockpit_type", 1 },
80 { XINT, "VIEW_asi_is_kts", 1 },
81 { XINT, "VIEW_warn1_EQ", 1 },
82 { XINT, "VIEW_warn2_EQ", 1 },
83 { XINT, "VIEW_is_glossy", 1 },
84 { XINT, "VIEW_draw_geo_frnt_views", 1 },
85 { XINT, "VIEW_draw_geo_side_views", 1 },
86 { XINT, "VIEW_ins_type", 300 },
87 { XFLT, "VIEW_ins_size", 300 },
88 { XFLT, "VIEW_ins_x", 300 },
89 { XFLT, "VIEW_ins_y", 300 },
90 { XINT, "VIEW_cus_rnd_use", 50 },
91 { XFLT, "VIEW_cus_rnd_lo_val", 50 },
92 { XFLT, "VIEW_cus_rnd_hi_val", 50 },
93 { XFLT, "VIEW_cus_rnd_lo_ang", 50 },
94 { XFLT, "VIEW_cus_rnd_hi_ang", 50 },
95 { XINT, "VIEW_cus_rnd_mirror", 50 },
96 { XINT, "VIEW_cus_rnd_label", 50 },
97 { XINT, "VIEW_cus_dig_use", 50 },
98 { XFLT, "VIEW_cus_dig_offset", 50 },
99 { XFLT, "VIEW_cus_dig_scale", 50 },
100 { XINT, "VIEW_cus_dig_dig", 50 },
101 { XINT, "VIEW_cus_dig_dec", 50 },
102 { XINT, "ENGINE_num_engines", 1 },
103 { XINT, "ENGINE_num_thrustpoints", 1 },
104 { XFLT, "ENGINE_throt_max_FWD", 1 },
105 { XFLT, "ENGINE_throt_max_REV", 1 },
106 { XFLT, "ENGINE_idle_rat", 2 },
107 { XINT, "ENGINE_props_linked", 1 },
108 { XINT, "ENGINE_beta_prop_EQ", 1 },
109 { XINT, "ENGINE_auto_feather_EQ", 1 },
110 { XINT, "ENGINE_rev_thrust_EQ", 1 },
111 { XINT, "ENGINE_drive_by_wire_EQ", 1 },
112 { XFLT, "ENGINE_feathered_pitch", 1 },
113 { XFLT, "ENGINE_reversed_pitch", 1 },
114 { XFLT, "ENGINE_rotor_mi_rat", 1 },
115 { XFLT, "ENGINE_tip_weight", 1 },
116 { XFLT, "ENGINE_tip_mach_des_100", 1 },
117 { XFLT, "ENGINE_tip_mach_des_50", 1 },
118 { XFLT, "ENGINE_power_max", 1 },
119 { XFLT, "ENGINE_crit_alt", 1 },
120 { XFLT, "ENGINE_MP_max", 1 },
121 { XFLT, "ENGINE_trq_max_eng", 1 },
122 { XFLT, "ENGINE_RSC_idlespeed_ENGN", 1 },
123 { XFLT, "ENGINE_RSC_redline_ENGN", 1 },
124 { XFLT, "ENGINE_RSC_idlespeed_PROP", 1 },
125 { XFLT, "ENGINE_RSC_redline_PROP", 1 },
126 { XFLT, "ENGINE_RSC_mingreen_ENGN", 1 },
127 { XFLT, "ENGINE_RSC_maxgreen_ENGN", 1 },
128 { XFLT, "ENGINE_RSC_mingreen_PROP", 1 },
129 { XFLT, "ENGINE_RSC_maxgreen_PROP", 1 },
130 { XINT, "ENGINE_has_press_controls", 1 },
131 { XFLT, "ENGINE_throt_time_prop", 1 },
132 { XFLT, "ENGINE_trans_loss", 1 },
133 { XFLT, "ENGINE_thrust_max", 1 },
134 { XFLT, "ENGINE_burner_inc", 1 },
135 { XFLT, "ENGINE_max_mach_eff", 1 },
136 { XFLT, "ENGINE_face_jet", 1 },
137 { XFLT, "ENGINE_throt_time_jet", 1 },
138 { XFLT, "ENGINE_lift_fan_rat", 1 },
139 { XFLT, "ENGINE_rock_max_sl", 1 },
140 { XFLT, "ENGINE_rock_max_opt", 1 },
141 { XFLT, "ENGINE_rock_max_vac", 1 },
142 { XFLT, "ENGINE_rock_h_opt", 1 },
143 { XFLT, "ENGINE_face_rocket", 1 },
144 { XINT, "PROP_engn_type", 8 },
145 { XINT, "PROP_prop_type", 8 },
146 { XFLT, "PROP_engn_mass", 8 },
147 { XINT, "PROP_prop_clutch_EQ", 8 },
148 { XFLT, "PROP_prop_gear_rat", 8 },
149 { XFLT, "PROP_prop_dir", 8 },
150 { XFLT, "PROP_num_blades", 8 },
151 { XFLT, "PROP_SFC", 8 },
152 { XFLT, "PROP_vert_cant_init", 8 },
153 { XFLT, "PROP_side_cant_init", 8 },
154 { XFLT, "PROP_min_pitch", 8 },
155 { XFLT, "PROP_max_pitch", 8 },
156 { XFLT, "PROP_des_rpm_prp", 8 },
157 { XFLT, "PROP_des_kts_prp", 8 },
158 { XFLT, "PROP_des_kts_acf", 8 },
159 { XFLT, "PROP_prop_mass", 8 },
160 { XFLT, "PROP_mi_prop_rpm", 8 },
161 { XFLT, "PROP_mi_engn_rpm", 8 },
162 { XFLT, "PROP_discarea", 8 },
163 { XFLT, "PROP_ringarea", 80 },
164 { XFLT, "PROP_bladesweep", 80 },
165 { XFLT, "HYDRO_STICK_starter_rat", 1 },
166 { XFLT, "HYDRO_STICK_battery_rat", 1 },
167 { XINT, "HYDRO_STICK_ff_hydraulic", 1 },
168 { XINT, "HYDRO_STICK_ff_stickshaker", 1 },
169 { XFLT, "HYDRO_STICK_manual_reversion_rat", 1 },
170 { XFLT, "HYDRO_STICK_max_press_diff", 1 },
171 { XINT, "PARTS_part_eq", 73 },
172 { XCHR, "PARTS_Rafl0", 2920 },
173 { XCHR, "PARTS_Rafl1", 2920 },
174 { XCHR, "PARTS_Tafl0", 2920 },
175 { XCHR, "PARTS_Tafl1", 2920 },
176 { XINT, "PARTS_els", 73 },
177 { XFLT, "PARTS_Xarm", 73 },
178 { XFLT, "PARTS_Yarm", 73 },
179 { XFLT, "PARTS_Zarm", 73 },
180 { XFLT, "PARTS_Croot", 73 },
181 { XFLT, "PARTS_Ctip", 73 },
182 { XFLT, "PARTS_semilen_SEG", 73 },
183 { XFLT, "PARTS_semilen_JND", 73 },
184 { XFLT, "PARTS_element_len", 73 },
185 { XFLT, "PARTS_X_body_aero", 73 },
186 { XFLT, "PARTS_Y_body_aero", 73 },
187 { XFLT, "PARTS_Z_body_aero", 73 },
188 { XFLT, "PARTS_dihed1", 73 },
189 { XFLT, "PARTS_dihed2", 73 },
190 { XFLT, "PARTS_dihednow", 73 },
191 { XINT, "PARTS_vardihed", 73 },
192 { XINT, "PARTS_vardihedEQ", 1 },
193 { XFLT, "PARTS_sweep1", 73 },
194 { XFLT, "PARTS_sweep2", 73 },
195 { XFLT, "PARTS_sweepnow", 73 },
196 { XINT, "PARTS_varsweep", 73 },
197 { XINT, "PARTS_varsweepEQ", 1 },
198 { XFLT, "PARTS_e", 73 },
199 { XFLT, "PARTS_AR", 73 },
200 { XFLT, "PARTS_al_D_al0", 73 },
201 { XFLT, "PARTS_cl_D_cl0", 73 },
202 { XFLT, "PARTS_cm_D_cm0", 73 },
203 { XFLT, "PARTS_delta_fac", 73 },
204 { XFLT, "PARTS_spec_wash", 73 },
205 { XFLT, "PARTS_alpha_max", 73 },
206 { XFLT, "PARTS_slat_effect", 73 },
207 { XFLT, "PARTS_s", 730 },
208 { XFLT, "PARTS_mac", 730 },
209 { XFLT, "PARTS_incidence", 730 },
210 { XINT, "PARTS_ail1", 730 },
211 { XFLT, "PARTS_ail1_elR", 73 },
212 { XFLT, "PARTS_ail1_elT", 73 },
213 { XFLT, "PARTS_ail1_cratR", 1 },
214 { XFLT, "PARTS_ail1_cratT", 1 },
215 { XFLT, "PARTS_ail1_up", 1 },
216 { XFLT, "PARTS_ail1_dn", 1 },
217 { XINT, "PARTS_ail2", 730 },
218 { XFLT, "PARTS_ail2_elR", 73 },
219 { XFLT, "PARTS_ail2_elT", 73 },
220 { XFLT, "PARTS_ail2_cratR", 1 },
221 { XFLT, "PARTS_ail2_cratT", 1 },
222 { XFLT, "PARTS_ail2_up", 1 },
223 { XFLT, "PARTS_ail2_dn", 1 },
224 { XINT, "PARTS_elev", 730 },
225 { XFLT, "PARTS_elev_elR", 73 },
226 { XFLT, "PARTS_elev_elT", 73 },
227 { XFLT, "PARTS_elev_cratR", 1 },
228 { XFLT, "PARTS_elev_cratT", 1 },
229 { XFLT, "PARTS_elev_up", 1 },
230 { XFLT, "PARTS_elev_dn", 1 },
231 { XINT, "PARTS_rudd", 730 },
232 { XFLT, "PARTS_rudd_elR", 73 },
233 { XFLT, "PARTS_rudd_elT", 73 },
234 { XFLT, "PARTS_rudd_cratR", 1 },
235 { XFLT, "PARTS_rudd_cratT", 1 },
236 { XFLT, "PARTS_rudd_lr", 1 },
237 { XINT, "PARTS_spo1", 730 },
238 { XFLT, "PARTS_spo1_elR", 73 },
239 { XFLT, "PARTS_spo1_elT", 73 },
240 { XFLT, "PARTS_spo1_cratR", 1 },
241 { XFLT, "PARTS_spo1_cratT", 1 },
242 { XFLT, "PARTS_spo1_up", 1 },
243 { XINT, "PARTS_yawb", 730 },
244 { XFLT, "PARTS_yawb_elR", 73 },
245 { XFLT, "PARTS_yawb_elT", 73 },
246 { XFLT, "PARTS_yawb_cratR", 1 },
247 { XFLT, "PARTS_yawb_cratT", 1 },
248 { XFLT, "PARTS_yawb_ud", 1 },
249 { XINT, "PARTS_sbrk", 730 },
250 { XFLT, "PARTS_sbrk_elR", 73 },
251 { XFLT, "PARTS_sbrk_elT", 73 },
252 { XFLT, "PARTS_sbrk_cratR", 1 },
253 { XFLT, "PARTS_sbrk_cratT", 1 },
254 { XFLT, "PARTS_sbrk_up", 1 },
255 { XINT, "PARTS_sbrkEQ", 1 },
256 { XINT, "PARTS_flap", 730 },
257 { XFLT, "PARTS_flap_elR", 73 },
258 { XFLT, "PARTS_flap_elT", 73 },
259 { XFLT, "PARTS_flap_cratR", 1 },
260 { XFLT, "PARTS_flap_cratT", 1 },
261 { XFLT, "PARTS_flap_dn", 8 },
262 { XINT, "PARTS_flapEQ", 1 },
263 { XINT, "PARTS_slat", 730 },
264 { XFLT, "PARTS_slat_inc", 1 },
265 { XINT, "PARTS_slatEQ", 1 },
266 { XINT, "PARTS_inc_ail1", 730 },
267 { XINT, "PARTS_inc_ail2", 730 },
268 { XINT, "PARTS_inc_elev", 730 },
269 { XINT, "PARTS_inc_rudd", 730 },
270 { XINT, "PARTS_inc_vect", 730 },
271 { XINT, "PARTS_inc_trim", 730 },
272 { XINT, "PARTS_in_downwash", 53290 },
273 { XFLT, "PARTS_body_r", 73 },
274 { XFLT, "PARTS_body_X", 26280 },
275 { XFLT, "PARTS_body_Y", 26280 },
276 { XFLT, "PARTS_body_Z", 26280 },
277 { XINT, "PARTS_gear_type", 73 },
278 { XFLT, "PARTS_gear_latE", 73 },
279 { XFLT, "PARTS_gear_lonE", 73 },
280 { XFLT, "PARTS_gear_axiE", 73 },
281 { XFLT, "PARTS_gear_latR", 73 },
282 { XFLT, "PARTS_gear_lonR", 73 },
283 { XFLT, "PARTS_gear_axiR", 73 },
284 { XFLT, "PARTS_gear_latN", 73 },
285 { XFLT, "PARTS_gear_lonN", 73 },
286 { XFLT, "PARTS_gear_axiN", 73 },
287 { XFLT, "PARTS_gear_xnodef", 73 },
288 { XFLT, "PARTS_gear_ynodef", 73 },
289 { XFLT, "PARTS_gear_znodef", 73 },
290 { XFLT, "PARTS_gear_leglen", 73 },
291 { XFLT, "PARTS_tire_radius", 73 },
292 { XFLT, "PARTS_tire_swidth", 73 },
293 { XFLT, "PARTS_gearcon", 73 },
294 { XFLT, "PARTS_geardmp", 73 },
295 { XFLT, "PARTS_gear_deploy", 73 },
296 { XFLT, "PARTS_gearstatdef", 73 },
297 { XFLT, "PARTS_dummy", 73 },
298 { XINT, "PARTS_gear_steers", 73 },
299 { XFLT, "PARTS_gear_cyctim", 73 },
300 { XFLT, "BODIES_fuse_cd", 1 },
301 { XFLT, "CONTROL_hstb_trim_up", 1 },
302 { XFLT, "CONTROL_hstb_trim_dn", 1 },
303 { XINT, "CONTROL_flap_type", 1 },
304 { XINT, "CONTROL_con_smooth", 1 },
305 { XINT, "CONTROL_flap_detents", 1 },
306 { XFLT, "CONTROL_flap_deftime", 1 },
307 { XFLT, "CONTROL_flap_cl", 1 },
308 { XFLT, "CONTROL_flap_cd", 1 },
309 { XFLT, "CONTROL_flap_cm", 1 },
310 { XFLT, "CONTROL_blown_flap_add_speed", 1 },
311 { XFLT, "CONTROL_blown_flap_throt_red", 1 },
312 { XFLT, "CONTROL_blown_flap_min_engag", 1 },
313 { XINT, "CONTROL_blow_all_controls", 1 },
314 { XINT, "LANDING_GEAR_gear_retract", 1 },
315 { XFLT, "LANDING_GEAR_nw_steerdeg1", 1 },
316 { XFLT, "LANDING_GEAR_nw_steerdeg2", 1 },
317 { XFLT, "LANDING_GEAR_nw_cutoff_omega", 1 },
318 { XFLT, "LANDING_GEAR_nw_side_k", 1 },
319 { XFLT, "LANDING_GEAR_gear_door_size", 1 },
320 { XFLT, "LANDING_GEAR_water_rud_longarm", 1 },
321 { XFLT, "LANDING_GEAR_water_rud_area", 1 },
322 { XFLT, "LANDING_GEAR_water_rud_maxdef", 1 },
323 { XFLT, "LANDING_GEAR_roll_co", 1 },
324 { XFLT, "LANDING_GEAR_brake_co", 1 },
325 { XINT, "LANDING_GEAR_gear_door_typ", 10 },
326 { XFLT, "LANDING_GEAR_gear_door_loc", 30 },
327 { XFLT, "LANDING_GEAR_gear_door_geo", 120 },
328 { XFLT, "LANDING_GEAR_gear_door_axi_rot", 10 },
329 { XFLT, "LANDING_GEAR_gear_door_ext_ang", 10 },
330 { XFLT, "LANDING_GEAR_gear_door_ret_ang", 10 },
331 { XFLT, "LANDING_GEAR_gear_door_ang_now", 10 },
332 { XFLT, "WEIGHT_BALANCE_cgY", 1 },
333 { XFLT, "WEIGHT_BALANCE_cgZ", 1 },
334 { XFLT, "WEIGHT_BALANCE_cgZ_fwd", 1 },
335 { XFLT, "WEIGHT_BALANCE_cgZ_aft", 1 },
336 { XFLT, "WEIGHT_BALANCE_m_empty", 1 },
337 { XFLT, "WEIGHT_BALANCE_m_fuel_tot", 1 },
338 { XFLT, "WEIGHT_BALANCE_m_jettison", 1 },
339 { XFLT, "WEIGHT_BALANCE_m_max", 1 },
340 { XFLT, "WEIGHT_BALANCE_m_displaced", 1 },
341 { XFLT, "WEIGHT_BALANCE_Jxx_unitmass", 1 },
342 { XFLT, "WEIGHT_BALANCE_Jyy_unitmass", 1 },
343 { XFLT, "WEIGHT_BALANCE_Jzz_unitmass", 1 },
344 { XINT, "WEIGHT_BALANCE_num_tanks", 1 },
345 { XFLT, "WEIGHT_BALANCE_tank_rat", 3 },
346 { XFLT, "WEIGHT_BALANCE_tank_X", 3 },
347 { XFLT, "WEIGHT_BALANCE_tank_Y", 3 },
348 { XFLT, "WEIGHT_BALANCE_tank_Z", 3 },
349 { XINT, "WEIGHT_BALANCE_jett_is_slung", 1 },
350 { XINT, "WEIGHT_BALANCE_jett_is_water", 1 },
351 { XFLT, "WEIGHT_BALANCE_jett_len", 1 },
352 { XFLT, "WEIGHT_BALANCE_jett_xyz", 3 },
353 { XFLT, "SPECIAL_CONTROLS_flap_roll", 1 },
354 { XFLT, "SPECIAL_CONTROLS_flap_ptch", 1 },
355 { XFLT, "SPECIAL_CONTROLS_mass_shift", 1 },
356 { XFLT, "SPECIAL_CONTROLS_mass_shift_dx", 1 },
357 { XFLT, "SPECIAL_CONTROLS_mass_shift_dz", 1 },
358 { XFLT, "SPECIAL_CONTROLS_wing_tilt_ptch", 1 },
359 { XFLT, "SPECIAL_CONTROLS_wing_tilt_roll", 1 },
360 { XFLT, "SPECIAL_CONTROLS_tvec_ptch", 1 },
361 { XFLT, "SPECIAL_CONTROLS_tvec_roll", 1 },
362 { XFLT, "SPECIAL_CONTROLS_tvec_hdng", 1 },
363 { XFLT, "SPECIAL_CONTROLS_jato_Y", 1 },
364 { XFLT, "SPECIAL_CONTROLS_jato_Z", 1 },
365 { XFLT, "SPECIAL_CONTROLS_jato_theta", 1 },
366 { XFLT, "SPECIAL_CONTROLS_jato_thrust", 1 },
367 { XFLT, "SPECIAL_CONTROLS_jato_dur", 1 },
368 { XFLT, "SPECIAL_CONTROLS_jato_sfc", 1 },
369 { XFLT, "SPECIAL_CONTROLS_stab_roll", 1 },
370 { XFLT, "SPECIAL_CONTROLS_stab_hdng", 1 },
371 { XFLT, "SPECIAL_CONTROLS_elev_with_flap", 1 },
372 { XFLT, "SPECIAL_CONTROLS_ail1_pitch", 1 },
373 { XFLT, "SPECIAL_CONTROLS_ail1_flaps", 1 },
374 { XFLT, "SPECIAL_CONTROLS_ail2_pitch", 1 },
375 { XFLT, "SPECIAL_CONTROLS_ail2_flaps", 1 },
376 { XFLT, "SPECIAL_CONTROLS_ail2_vmax", 1 },
377 { XFLT, "SPECIAL_CONTROLS_diff_thro_hdng", 1 },
378 { XINT, "SPECIAL_CONTROLS_phase_ptch_tvect_in_at_90", 1 },
379 { XINT, "SPECIAL_CONTROLS_phase_ptch_tvect_in_at_00", 1 },
380 { XINT, "SPECIAL_CONTROLS_sbrk_on_td_EQ", 1 },
381 { XINT, "SPECIAL_CONTROLS_fbrk_on_td_EQ", 1 },
382 { XINT, "SPECIAL_CONTROLS_sweep_with_flaps_EQ", 1 },
383 { XINT, "SPECIAL_CONTROLS_flaps_with_gear_EQ", 1 },
384 { XINT, "SPECIAL_CONTROLS_slat_with_stall_EQ", 1 },
385 { XINT, "SPECIAL_CONTROLS_anti_ice_EQ", 1 },
386 { XINT, "SPECIAL_CONTROLS_arresting_EQ", 1 },
387 { XINT, "SPECIAL_CONTROLS_revt_on_td_EQ", 1 },
388 { XINT, "SPECIAL_CONTROLS_warn_gear_EQ", 1 },
389 { XINT, "SPECIAL_CONTROLS_warn_lorot_EQ", 1 },
390 { XINT, "SPECIAL_CONTROLS_auto_trim_EQ", 1 },
391 { XINT, "SPECIAL_CONTROLS_flaps_with_vec_EQ", 1 },
392 { XFLT, "SPECIAL_CONTROLS_brake_area", 1 },
393 { XFLT, "SPECIAL_CONTROLS_brake_Y", 1 },
394 { XFLT, "SPECIAL_CONTROLS_brake_Z", 1 },
395 { XFLT, "SPECIAL_CONTROLS_chute_area", 1 },
396 { XFLT, "SPECIAL_CONTROLS_chute_Y", 1 },
397 { XFLT, "SPECIAL_CONTROLS_chute_Z", 1 },
398 { XINT, "VTOL_CONTROL_vect_EQ", 1 },
399 { XINT, "VTOL_CONTROL_auto_rpm_with_tvec", 1 },
400 { XINT, "VTOL_CONTROL_hide_prop_at_90_vect", 1 },
401 { XFLT, "VTOL_CONTROL_vect_rate", 1 },
402 { XFLT, "VTOL_CONTROL_vect_min_disc", 1 },
403 { XFLT, "VTOL_CONTROL_vect_max_disc", 1 },
404 { XFLT, "VTOL_CONTROL_vectarmY", 1 },
405 { XFLT, "VTOL_CONTROL_vectarmZ", 1 },
406 { XFLT, "VTOL_CONTROL_cyclic_def_elev", 1 },
407 { XFLT, "VTOL_CONTROL_cyclic_def_ailn", 1 },
408 { XFLT, "VTOL_CONTROL_flap_arm", 1 },
409 { XFLT, "VTOL_CONTROL_delta3", 1 },
410 { XFLT, "VTOL_CONTROL_puff_LMN", 3 },
411 { XFLT, "VTOL_CONTROL_puff_xyz", 3 },
412 { XFLT, "VTOL_CONTROL_stab_delinc_to_Vne", 1 },
413 { XFLT, "VTOL_CONTROL_tail_with_coll", 1 },
414 { XFLT, "VTOL_CONTROL_diff_coll_with_roll", 1 },
415 { XFLT, "VTOL_CONTROL_diff_coll_with_hdng", 1 },
416 { XFLT, "VTOL_CONTROL_diff_coll_with_ptch", 1 },
417 { XFLT, "VTOL_CONTROL_diff_cycl_with_hdng_lon", 1 },
418 { XFLT, "VTOL_CONTROL_diff_cycl_with_hdng_lat", 1 },
419 { XFLT, "VTOL_CONTROL_rotor_trim_max_fwd", 1 },
420 { XFLT, "VTOL_CONTROL_rotor_trim_max_aft", 1 },
421 { XFLT, "ART_STAB_AShiV_old_all", 1 },
422 { XFLT, "ART_STAB_ASloV_old_all", 1 },
423 { XFLT, "ART_STAB_ASlo_max_thedot", 1 },
424 { XFLT, "ART_STAB_ASlo_thedot_k", 1 },
425 { XFLT, "ART_STAB_ASlo_max_psidot", 1 },
426 { XFLT, "ART_STAB_ASlo_psidot_k", 1 },
427 { XFLT, "ART_STAB_ASlo_max_phidot", 1 },
428 { XFLT, "ART_STAB_ASlo_phidot_k", 1 },
429 { XFLT, "ART_STAB_AShi_max_G", 1 },
430 { XFLT, "ART_STAB_AShi_G_k", 1 },
431 { XFLT, "ART_STAB_AShi_Gdot_k", 1 },
432 { XFLT, "ART_STAB_AShi_max_alpha", 1 },
433 { XFLT, "ART_STAB_AShi_alpha_k", 1 },
434 { XFLT, "ART_STAB_AShi_alphadot_k", 1 },
435 { XFLT, "ART_STAB_AShi_max_beta", 1 },
436 { XFLT, "ART_STAB_AShi_beta_k", 1 },
437 { XFLT, "ART_STAB_AShi_betadot_k", 1 },
438 { XFLT, "ART_STAB_AShi_max_phidot", 1 },
439 { XFLT, "ART_STAB_AShi_phidot_k", 1 },
440 { XCHR, "WEARONS_wpn_name", 12000 },
441 { XFLT, "WEARONS_x_wpn_att", 24 },
442 { XFLT, "WEARONS_y_wpn_att", 24 },
443 { XFLT, "WEARONS_z_wpn_att", 24 },
444 { XFLT, "AUTO_SETS_est_Vs_msc", 1 },
445 { XFLT, "AUTO_SETS_size_x", 1 },
446 { XFLT, "AUTO_SETS_size_z", 1 },
447 { XFLT, "AUTO_SETS_tire_s_contact", 1 },
448 { XFLT, "AUTO_SETS_m_displaced_y", 1 },
449 { XFLT, "AUTO_SETS_h_eqlbm", 1 },
450 { XFLT, "AUTO_SETS_the_eqlbm", 1 },
451 { XINT, "AUTO_SETS_steer_gear", 1 },
452 { XINT, "AUTO_SETS_is_skid_gear", 1 },
453 { XINT, "AUTO_SETS_dummy3", 7 },
454 { XINT, "AUTO_SETS_has_radar", 1 },
455 { XINT, "AUTO_SETS_has_SC_fd", 1 },
456 { XINT, "AUTO_SETS_has_DC_fd", 1 },
457 { XINT, "AUTO_SETS_has_stallwarn", 1 },
458 { XINT, "AUTO_SETS_has_clutchswitch", 1 },
459 { XINT, "AUTO_SETS_has_prerotate", 1 },
460 { XINT, "AUTO_SETS_has_idlespeed", 1 },
461 { XINT, "AUTO_SETS_has_FADECswitch", 1 },
462 { XINT, "AUTO_SETS_has_litemap_tex_1", 1 },
463 { XINT, "AUTO_SETS_has_tailrotor", 1 },
464 { XINT, "AUTO_SETS_has_collective", 1 },
465 { XFLT, "SOUND_REF_snd_kias", 1 },
466 { XFLT, "SOUND_REF_snd_rpm_prp", 1 },
467 { XFLT, "SOUND_REF_snd_rpm_eng", 1 },
468 { XFLT, "SOUND_REF_snd_n1", 1 },
469 { XFLT, "VAR_INCIDENCE_inc2", 73 },
470 { XFLT, "VAR_INCIDENCE_incnow", 73 },
471 { XINT, "VAR_INCIDENCE_varinc", 73 },
472 { XINT, "VAR_INCIDENCE_varincEQ", 1 },
473 { XFLT, "OVERFLOW_rudd_with_ailn", 1 },
474 { XFLT, "OVERFLOW_strut_comp", 73 },
475 { XINT, "OVERFLOW_is_left", 73 },
476 { XFLT, "OVERFLOW_lat_sign", 73 },
477 { XINT, "OVERFLOW_jett_is_acf", 1 },
478 { XINT, "OVERFLOW_collective_en", 1 },
479 { XINT, "OVERFLOW_is_flying_stab", 1 },
480 { XFLT, "OVERFLOW_dummy4", 7 },
481 { XFLT, "OVERFLOW_diff_thro_ptch", 1 },
482 { XFLT, "OVERFLOW_diff_thro_roll", 1 },
483 { XINT, "OVERFLOW_phase_roll_tvect_in_at_90", 1 },
484 { XINT, "OVERFLOW_phase_roll_tvect_in_at_00", 1 },
485 { XINT, "OVERFLOW_phase_hdng_tvect_in_at_90", 1 },
486 { XINT, "OVERFLOW_phase_hdng_tvect_in_at_00", 1 },
487 { XINT, "OVERFLOW_has_asi_set", 1 },
488 { XINT, "OVERFLOW_has_hdg_set", 1 },
489 { XINT, "OVERFLOW_has_alt_set", 1 },
490 { XFLT, "OVERFLOW_ASlo_the_V", 1 },
491 { XFLT, "OVERFLOW_ASlo_psi_V", 1 },
492 { XFLT, "OVERFLOW_ASlo_phi_V", 1 },
493 { XFLT, "OVERFLOW_AShi_the_V", 1 },
494 { XFLT, "OVERFLOW_AShi_psi_V", 1 },
495 { XFLT, "OVERFLOW_AShi_phi_V", 1 },
496 { XFLT, "OVERFLOW_spo1_vmax", 1 },
497 { XFLT, "OVERFLOW_max_boost_pas", 1 },
498 { XFLT, "OVERFLOW_min_trim_elev", 1 },
499 { XFLT, "OVERFLOW_max_trim_elev", 1 },
500 { XFLT, "OVERFLOW_min_trim_ailn", 1 },
501 { XFLT, "OVERFLOW_max_trim_ailn", 1 },
502 { XFLT, "OVERFLOW_min_trim_rudd", 1 },
503 { XFLT, "OVERFLOW_max_trim_rudd", 1 },
504 { XFLT, "OVERFLOW_lan_lite_psi_ref", 1 },
505 { XINT, "OVERFLOW_has_mixture", 1 },
506 { XFLT, "OVERFLOW_TR", 73 },
507 { XINT, "OVERFLOW_has_gear", 1 },
508 { XINT, "OVERFLOW_cus_non_lin", 50 },
509 { XFLT, "OVERFLOW_cus_doub_val", 50 },
510 { XINT, "OVERFLOW_beaconEQ", 1 },
511 { XINT, "OVERFLOW_has_knots_mach", 1 },
512 { XFLT, "OVERFLOW_elev_trim_speedrat", 1 },
513 { XFLT, "OVERFLOW_ailn_trim_speedrat", 1 },
514 { XFLT, "OVERFLOW_rudd_trim_speedrat", 1 },
515 { XFLT, "OVERFLOW_disp_rat", 1 },
516 { XFLT, "OVERFLOW_exhaust_rat", 1 },
517 { XINT, "OVERFLOW_lo_speed_is_position", 1 },
518 { XFLT, "OVERFLOW_ASlo_max_the", 1 },
519 { XFLT, "OVERFLOW_ASlo_the_k", 1 },
520 { XFLT, "OVERFLOW_ASlo_max_phi", 1 },
521 { XFLT, "OVERFLOW_ASlo_phi_k", 1 },
522 { XINT, "OVERFLOW_is_ducted", 8 },
523 { XFLT, "OVERFLOW_the_wpn_att", 24 },
524 { XFLT, "OVERFLOW_psi_wpn_att", 24 },
525 { XFLT, "OVERFLOW_big_panel_pix_default", 1 },
526 { XFLT, "OVERFLOW_HUD_ctr_y", 9 },
527 { XINT, "OVERFLOW_spo2", 730 },
528 { XFLT, "OVERFLOW_spo2_elR", 73 },
529 { XFLT, "OVERFLOW_spo2_elT", 73 },
530 { XFLT, "OVERFLOW_spo2_cratR", 1 },
531 { XFLT, "OVERFLOW_spo2_cratT", 1 },
532 { XFLT, "OVERFLOW_spo2_up", 1 },
533 { XFLT, "OVERFLOW_spo2_vmax", 1 },
534 { XFLT, "OVERFLOW_ail1_vmax", 1 },
535 { XFLT, "OVERFLOW_roll_to_eng_spo1", 1 },
536 { XFLT, "OVERFLOW_roll_to_eng_spo2", 1 },
537 { XFLT, "OVERFLOW_dummy2", 73 },
538 { XFLT, "OVERFLOW_EPR_max", 1 },
539 { XINT, "OVERFLOW_sweep_with_vect_EQ", 1 },
540 { XINT, "OVERFLOW_old_cus_layers", 1 },
541 { XINT, "OVERFLOW_has_litemap_tex_2", 1 },
542 { XFLT, "OVERFLOW_disc_tilt_elev", 1 },
543 { XFLT, "OVERFLOW_disc_tilt_ailn", 1 },
544 { XFLT, "OVERFLOW_lan_lite_psi_off", 1 },
545 { XFLT, "OVERFLOW_lan_lite_the_off", 1 },
546 { XFLT, "OVERFLOW_inertia_rat_prop", 1 },
547 { XFLT, "OVERFLOW_fuel_intro_time_jet", 1 },
548 { XFLT, "OVERFLOW_tire_mi", 73 },
549 { XFLT, "OVERFLOW_vect_min_nace", 1 },
550 { XFLT, "OVERFLOW_vect_max_nace", 1 },
551 { XINT, "OVERFLOW_manual_rad_gyr", 1 },
552 { XFLT, "OVERFLOW_max_ITT_C", 1 },
553 { XFLT, "OVERFLOW_max_EGT_C", 1 },
554 { XFLT, "OVERFLOW_fuel_intro_time_prop", 1 },
555 { XFLT, "OVERFLOW_spool_time_jet", 1 },
556 { XFLT, "OVERFLOW_takeoff_trim", 1 },
557 { XFLT, "OVERFLOW_average_MAC", 1 },
558 { XINT, "OVERFLOW_custom_autopilot", 1 },
559 { XFLT, "OVERFLOW_ott_asi_ratio", 1 },
560 { XFLT, "OVERFLOW_ott_asi_sec_into_future", 1 },
561 { XFLT, "OVERFLOW_ott_asi_kts_off_for_full_def", 1 },
562 { XFLT, "OVERFLOW_ott_phi_ratio", 1 },
563 { XFLT, "OVERFLOW_ott_phi_sec_into_future", 1 },
564 { XFLT, "OVERFLOW_ott_phi_deg_off_for_full_def", 1 },
565 { XFLT, "OVERFLOW_ott_phi_sec_to_tune", 1 },
566 { XFLT, "OVERFLOW_ott_def_sec_into_future", 1 },
567 { XFLT, "OVERFLOW_ott_def_dot_off_for_full_def", 1 },
568 { XFLT, "OVERFLOW_ott_def_sec_to_tune", 1 },
569 { XFLT, "OVERFLOW_ott_the_ratio", 1 },
570 { XFLT, "OVERFLOW_ott_the_sec_into_future", 1 },
571 { XFLT, "OVERFLOW_ott_the_deg_off_for_full_def", 1 },
572 { XFLT, "OVERFLOW_ott_the_sec_to_tune", 1 },
573 { XINT, "OVERFLOW_xint_overflow", 206 },
574 { XCHR, "OVERFLOW_is_hm", 1 },
575 { XCHR, "OVERFLOW_is_ga", 1 },
576 { XCHR, "OVERFLOW_ICAO", 40 },
577 { XCHR, "OVERFLOW_xchr_overflow", 958 },
578 { XCHR, "end_of_data", 1 },
579
580 { XEOF, NULL, 0 }
581
582};
583
584#endif
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_proto.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_proto.h
new file mode 100644
index 0000000..e6b216d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_proto.h
@@ -0,0 +1,49 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_ACF_DEF_PROTO_H
23#define _IMP_ACF_DEF_PROTO_H
24
25#include <glib.h>
26
27typedef enum {
28 XEOF,
29 XCHR,
30 XINT,
31 XFLT
32} AcfType;
33
34typedef struct {
35 AcfType type;
36 gchar *name;
37 guint32 num;
38 gchar *xchr;
39 gint32 *xint;
40 G3DFloat *xflt;
41} AcfValue;
42
43typedef struct {
44 AcfType type;
45 gchar *description;
46 guint32 num;
47} AcfDef;
48
49#endif
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_detect.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_detect.c
new file mode 100644
index 0000000..6f8070d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_detect.c
@@ -0,0 +1,77 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include "imp_acf_detect.h"
24#include "imp_acf_def_acf603.h"
25#include "imp_acf_def_acf625.h"
26#include "imp_acf_def_acf630.h"
27#include "imp_acf_def_acf640.h"
28#include "imp_acf_def_acf651.h"
29#include "imp_acf_def_acf700.h"
30#include "imp_acf_def_acf740.h"
31
32typedef struct {
33 goffset size;
34 guint32 vmajor;
35 guint32 vminor;
36 const AcfDef *def;
37} AcfDetectInfo;
38
39static AcfDetectInfo acf_detect_info[] = {
40 { 433337, 6, 3, acf_def_acf603 },
41 { 433693, 6, 25, acf_def_acf625 },
42 { 453981, 6, 30, acf_def_acf630 },
43 { 454977, 6, 40, acf_def_acf640 },
44 { 454985, 6, 51, acf_def_acf651 },
45 { 646626, 7, 0, acf_def_acf700 },
46 { 647101, 7, 40, acf_def_acf740 },
47 { 0, 0, 0, NULL }
48};
49
50const AcfDef *acf_detect_version(AcfGlobalData *global)
51{
52 gint32 i;
53
54 for(i = 0; acf_detect_info[i].size > 0; i ++) {
55 if(g3d_stream_size(global->stream) == acf_detect_info[i].size) {
56#if DEBUG > 0
57 g_debug("ACF: version %d.%02d detected",
58 acf_detect_info[i].vmajor, acf_detect_info[i].vminor);
59#endif
60 return acf_detect_info[i].def;
61 }
62 }
63
64 for(i = 0; acf_detect_info[i].size > 0; i ++)
65 if(acf_detect_info[i].size > g3d_stream_size(global->stream)) {
66#if DEBUG > 0
67 g_debug("ACF: falling back to version %d.%02d",
68 acf_detect_info[i].vmajor, acf_detect_info[i].vminor);
69#endif
70 return acf_detect_info[i].def;
71 }
72
73 /* FIXME: return 7.40 for models newer than that */
74
75 g_warning("ACF: could not detect version");
76 return NULL;
77}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_detect.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_detect.h
new file mode 100644
index 0000000..a4c55c5
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_detect.h
@@ -0,0 +1,30 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef IMP_ACF_DETECT_H
23#define IMP_ACF_DETECT_H
24
25#include "imp_acf.h"
26#include "imp_acf_def_proto.h"
27
28const AcfDef *acf_detect_version(AcfGlobalData *global);
29
30#endif /* IMP_ACF_DETECT_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_wing.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_wing.c
new file mode 100644
index 0000000..fd144e5
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_wing.c
@@ -0,0 +1,79 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <string.h>
23
24#include <g3d/types.h>
25#include <g3d/face.h>
26#include <g3d/vector.h>
27
28#include "imp_acf_airfoil.h"
29
30G3DObject *acf_wing(G3DMaterial *material, const gchar *name,
31 G3DFloat *msweep, G3DFloat *mdihed, G3DFloat *mtrans,
32 G3DFloat *vrt, G3DFloat *vtp,
33 AcfAirfoil *aflrt, AcfAirfoil *afltp,
34 G3DFloat wrt, G3DFloat wtp, G3DFloat lf)
35{
36 G3DObject *object;
37 G3DFace *face;
38 guint32 nverts;
39 gint32 i;
40 G3DFloat vec[3];
41
42 nverts = aflrt->vertex_count;
43
44 object = g_new0(G3DObject, 1);
45 object->name = g_strdup(name);
46 object->vertex_count = nverts * 2;
47 object->vertex_data = g_new0(G3DFloat, object->vertex_count * 3);
48
49 /* vertices */
50 for(i = 0; i < nverts; i ++) {
51 /* wing root */
52 vec[2] = aflrt->vertex_data[i * 2 + 0] * wrt;
53 vec[1] = aflrt->vertex_data[i * 2 + 1] * wrt;
54 vec[0] = 0.0;
55 g3d_vector_transform(vec, vec + 1, vec + 2, mdihed);
56 g3d_vector_transform(vec, vec + 1, vec + 2, mtrans);
57 memcpy(object->vertex_data + i * 3, vec, sizeof(vec));
58
59 /* wing tip */
60 vec[2] = afltp->vertex_data[i * 2 + 0] * wtp;
61 vec[1] = afltp->vertex_data[i * 2 + 1] * wtp;
62 vec[0] = 0.0;
63 g3d_vector_transform(vec, vec + 1, vec + 2, mdihed);
64 g3d_vector_transform(vec, vec + 1, vec + 2, mtrans);
65 vec[0] += lf * vtp[0];
66 vec[1] += lf * vtp[1];
67 vec[2] += lf * vtp[2];
68 memcpy(object->vertex_data + (i + nverts) * 3, vec, sizeof(vec));
69 }
70 /* faces */
71 for(i = 0; i < (nverts - 1); i ++) {
72 face = g3d_face_new_tri(material, i + 1, i, i + nverts);
73 object->faces = g_slist_prepend(object->faces, face);
74 face = g3d_face_new_tri(material, i + 1, i + nverts + 1, i + nverts);
75 object->faces = g_slist_prepend(object->faces, face);
76 }
77
78 return object;
79}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_wing.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_wing.h
new file mode 100644
index 0000000..8f3846c
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_wing.h
@@ -0,0 +1,35 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_ACF_WING_H
23#define _IMP_ACF_WING_H
24
25#include <g3d/types.h>
26
27#include "imp_acf_airfoil.h"
28
29G3DObject *acf_wing(G3DMaterial *material, const gchar *name,
30 G3DFloat *msweep, G3DFloat *mdihed, G3DFloat *mtrans,
31 G3DFloat *vrt, G3DFloat *vtp,
32 AcfAirfoil *aflrt, AcfAirfoil *afltp,
33 G3DFloat wrt, G3DFloat wtp, G3DFloat lf);
34
35#endif
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile
new file mode 100644
index 0000000..906d4b3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile
@@ -0,0 +1,517 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_ar/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_ar
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_ar_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_ar_la_OBJECTS = imp_ar.lo imp_ar_decompress.lo imp_ar_dof.lo \
59 imp_ar_carini.lo
60imp_ar_la_OBJECTS = $(am_imp_ar_la_OBJECTS)
61DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_ar_la_SOURCES)
74DIST_SOURCES = $(imp_ar_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
79AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
80AR = ar
81AS = as
82AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
83AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
84AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
85AWK = gawk
86CC = gcc
87CCDEPMODE = depmode=gcc3
88CFLAGS = -g -O2
89CPP = gcc -E
90CPPFLAGS =
91CXX = g++
92CXXCPP = g++ -E
93CXXDEPMODE = depmode=gcc3
94CXXFLAGS = -g -O2
95CYGPATH_W = echo
96DBG_CFLAGS = -O2
97DEBUG = 0
98DEFS = -DHAVE_CONFIG_H
99DEPDIR = .deps
100DLLTOOL = dlltool
101ECHO = echo
102ECHO_C =
103ECHO_N = -n
104ECHO_T =
105EGREP = /bin/grep -E
106EXEEXT =
107F77 =
108FFLAGS =
109GDKPIXBUF_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
110GDKPIXBUF_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
111GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
112GLIB_GENMARSHAL = glib-genmarshal
113GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
114GLIB_MKENUMS = glib-mkenums
115GOBJECT_QUERY = gobject-query
116GREP = /bin/grep
117GTKDOC_CHECK = /usr/bin/gtkdoc-check
118GTK_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
119GTK_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
120HTML_DIR = ${datadir}/gtk-doc/html
121INSTALL = /usr/bin/install -c
122INSTALL_DATA = ${INSTALL} -m 644
123INSTALL_PROGRAM = ${INSTALL}
124INSTALL_SCRIPT = ${INSTALL}
125INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
126LDFLAGS =
127LEX = flex
128LEXLIB = -lfl
129LEX_OUTPUT_ROOT = lex.yy
130LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
131LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
132LIBOBJS =
133LIBS = -lm
134LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
135LIBXML2_CFLAGS = -I/usr/include/libxml2
136LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
137LN_S = ln -s
138LTLIBOBJS =
139LTVERSION = 0:8:0
140MAGIC_LIBS = -lmagic
141MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
142MATH_LIBS = -lm
143MKDIR_P = /bin/mkdir -p
144OBJDUMP = objdump
145OBJEXT = o
146PACKAGE = libg3d
147PACKAGE_BUGREPORT =
148PACKAGE_NAME =
149PACKAGE_STRING =
150PACKAGE_TARNAME =
151PACKAGE_VERSION =
152PATH_SEPARATOR = :
153PKG_CONFIG = /usr/bin/pkg-config
154PLUGINS_LDFLAGS = -avoid-version -export-dynamic
155RANLIB = ranlib
156SET_MAKE =
157SHELL = /bin/bash
158STRIP = strip
159VERSION = 0.0.8
160XML2_CONFIG = /usr/bin/xml2-config
161XML_CPPFLAGS = -I/usr/include/libxml2
162XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
163Z_CFLAGS =
164Z_LIBS = -lz
165abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar
166abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar
167abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169ac_ct_CC = gcc
170ac_ct_CXX = g++
171ac_ct_F77 =
172am__include = include
173am__leading_dot = .
174am__quote =
175am__tar = ${AMTAR} chof - "$$tardir"
176am__untar = ${AMTAR} xf -
177bindir = ${exec_prefix}/bin
178build = x86_64-unknown-linux-gnu
179build_alias =
180build_cpu = x86_64
181build_os = linux-gnu
182build_vendor = unknown
183builddir = .
184datadir = ${datarootdir}
185datarootdir = ${prefix}/share
186docdir = ${datarootdir}/doc/${PACKAGE}
187dvidir = ${docdir}
188exec_prefix = ${prefix}
189host = x86_64-unknown-linux-gnu
190host_alias =
191host_cpu = x86_64
192host_os = linux-gnu
193host_vendor = unknown
194htmldir = ${docdir}
195includedir = ${prefix}/include
196infodir = ${datarootdir}/info
197install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
198libdir = ${exec_prefix}/lib
199libexecdir = ${exec_prefix}/libexec
200localedir = ${datarootdir}/locale
201localstatedir = ${prefix}/var
202mandir = ${datarootdir}/man
203mkdir_p = /bin/mkdir -p
204oldincludedir = /usr/include
205pdfdir = ${docdir}
206prefix = /usr/local
207program_transform_name = s,x,x,
208psdir = ${docdir}
209sbindir = ${exec_prefix}/sbin
210sharedstatedir = ${prefix}/com
211srcdir = .
212sysconfdir = ${prefix}/etc
213target_alias =
214top_builddir = ../../..
215top_srcdir = ../../..
216pluginimpdir = $(pkglibdir)/plugins/import
217pluginimp_LTLIBRARIES = imp_ar.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 -O2 -DDEBUG=0 \
222 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 -avoid-version -export-dynamic
228
229imp_ar_la_SOURCES = imp_ar.c imp_ar.h \
230 imp_ar_decompress.c imp_ar_decompress.h \
231 imp_ar_dof.c imp_ar_dof.h \
232 imp_ar_carini.c imp_ar_carini.h
233
234imp_ar_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
235all: all-am
236
237.SUFFIXES:
238.SUFFIXES: .c .lo .o .obj
239$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
240 @for dep in $?; do \
241 case '$(am__configure_deps)' in \
242 *$$dep*) \
243 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
244 && exit 0; \
245 exit 1;; \
246 esac; \
247 done; \
248 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_ar/Makefile'; \
249 cd $(top_srcdir) && \
250 $(AUTOMAKE) --gnu plugins/import/imp_ar/Makefile
251.PRECIOUS: Makefile
252Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
253 @case '$?' in \
254 *config.status*) \
255 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
256 *) \
257 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
258 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
259 esac;
260
261$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263
264$(top_srcdir)/configure: $(am__configure_deps)
265 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
266$(ACLOCAL_M4): $(am__aclocal_m4_deps)
267 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
268install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
269 @$(NORMAL_INSTALL)
270 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
271 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
272 if test -f $$p; then \
273 f=$(am__strip_dir) \
274 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
275 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
276 else :; fi; \
277 done
278
279uninstall-pluginimpLTLIBRARIES:
280 @$(NORMAL_UNINSTALL)
281 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
282 p=$(am__strip_dir) \
283 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
284 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
285 done
286
287clean-pluginimpLTLIBRARIES:
288 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
289 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
290 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
291 test "$$dir" != "$$p" || dir=.; \
292 echo "rm -f \"$${dir}/so_locations\""; \
293 rm -f "$${dir}/so_locations"; \
294 done
295imp_ar.la: $(imp_ar_la_OBJECTS) $(imp_ar_la_DEPENDENCIES)
296 $(LINK) -rpath $(pluginimpdir) $(imp_ar_la_OBJECTS) $(imp_ar_la_LIBADD) $(LIBS)
297
298mostlyclean-compile:
299 -rm -f *.$(OBJEXT)
300
301distclean-compile:
302 -rm -f *.tab.c
303
304include ./$(DEPDIR)/imp_ar.Plo
305include ./$(DEPDIR)/imp_ar_carini.Plo
306include ./$(DEPDIR)/imp_ar_decompress.Plo
307include ./$(DEPDIR)/imp_ar_dof.Plo
308
309.c.o:
310 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
311 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
312# source='$<' object='$@' libtool=no \
313# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
314# $(COMPILE) -c $<
315
316.c.obj:
317 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
318 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
319# source='$<' object='$@' libtool=no \
320# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
321# $(COMPILE) -c `$(CYGPATH_W) '$<'`
322
323.c.lo:
324 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
325 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
326# source='$<' object='$@' libtool=yes \
327# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
328# $(LTCOMPILE) -c -o $@ $<
329
330mostlyclean-libtool:
331 -rm -f *.lo
332
333clean-libtool:
334 -rm -rf .libs _libs
335
336ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
337 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
338 unique=`for i in $$list; do \
339 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
340 done | \
341 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
342 END { if (nonempty) { for (i in files) print i; }; }'`; \
343 mkid -fID $$unique
344tags: TAGS
345
346TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
347 $(TAGS_FILES) $(LISP)
348 tags=; \
349 here=`pwd`; \
350 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
351 unique=`for i in $$list; do \
352 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
353 done | \
354 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
355 END { if (nonempty) { for (i in files) print i; }; }'`; \
356 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
357 test -n "$$unique" || unique=$$empty_fix; \
358 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
359 $$tags $$unique; \
360 fi
361ctags: CTAGS
362CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
363 $(TAGS_FILES) $(LISP)
364 tags=; \
365 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
366 unique=`for i in $$list; do \
367 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
368 done | \
369 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
370 END { if (nonempty) { for (i in files) print i; }; }'`; \
371 test -z "$(CTAGS_ARGS)$$tags$$unique" \
372 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
373 $$tags $$unique
374
375GTAGS:
376 here=`$(am__cd) $(top_builddir) && pwd` \
377 && cd $(top_srcdir) \
378 && gtags -i $(GTAGS_ARGS) $$here
379
380distclean-tags:
381 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
382
383distdir: $(DISTFILES)
384 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
385 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
386 list='$(DISTFILES)'; \
387 dist_files=`for file in $$list; do echo $$file; done | \
388 sed -e "s|^$$srcdirstrip/||;t" \
389 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
390 case $$dist_files in \
391 */*) $(MKDIR_P) `echo "$$dist_files" | \
392 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
393 sort -u` ;; \
394 esac; \
395 for file in $$dist_files; do \
396 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
397 if test -d $$d/$$file; then \
398 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
399 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
400 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
401 fi; \
402 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
403 else \
404 test -f $(distdir)/$$file \
405 || cp -p $$d/$$file $(distdir)/$$file \
406 || exit 1; \
407 fi; \
408 done
409check-am: all-am
410check: check-am
411all-am: Makefile $(LTLIBRARIES)
412installdirs:
413 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
414 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
415 done
416install: install-am
417install-exec: install-exec-am
418install-data: install-data-am
419uninstall: uninstall-am
420
421install-am: all-am
422 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
423
424installcheck: installcheck-am
425install-strip:
426 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
427 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
428 `test -z '$(STRIP)' || \
429 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
430mostlyclean-generic:
431
432clean-generic:
433
434distclean-generic:
435 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
436
437maintainer-clean-generic:
438 @echo "This command is intended for maintainers to use"
439 @echo "it deletes files that may require special tools to rebuild."
440clean: clean-am
441
442clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
443 mostlyclean-am
444
445distclean: distclean-am
446 -rm -rf ./$(DEPDIR)
447 -rm -f Makefile
448distclean-am: clean-am distclean-compile distclean-generic \
449 distclean-tags
450
451dvi: dvi-am
452
453dvi-am:
454
455html: html-am
456
457info: info-am
458
459info-am:
460
461install-data-am: install-pluginimpLTLIBRARIES
462
463install-dvi: install-dvi-am
464
465install-exec-am:
466
467install-html: install-html-am
468
469install-info: install-info-am
470
471install-man:
472
473install-pdf: install-pdf-am
474
475install-ps: install-ps-am
476
477installcheck-am:
478
479maintainer-clean: maintainer-clean-am
480 -rm -rf ./$(DEPDIR)
481 -rm -f Makefile
482maintainer-clean-am: distclean-am maintainer-clean-generic
483
484mostlyclean: mostlyclean-am
485
486mostlyclean-am: mostlyclean-compile mostlyclean-generic \
487 mostlyclean-libtool
488
489pdf: pdf-am
490
491pdf-am:
492
493ps: ps-am
494
495ps-am:
496
497uninstall-am: uninstall-pluginimpLTLIBRARIES
498
499.MAKE: install-am install-strip
500
501.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
502 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
503 distclean-compile distclean-generic distclean-libtool \
504 distclean-tags distdir dvi dvi-am html html-am info info-am \
505 install install-am install-data install-data-am install-dvi \
506 install-dvi-am install-exec install-exec-am install-html \
507 install-html-am install-info install-info-am install-man \
508 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
509 install-ps install-ps-am install-strip installcheck \
510 installcheck-am installdirs maintainer-clean \
511 maintainer-clean-generic mostlyclean mostlyclean-compile \
512 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
513 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
514
515# Tell versions [3.59,3.63) of GNU make to not export all variables.
516# Otherwise a system limit (for SysV at least) may be exceeded.
517.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile.am
new file mode 100644
index 0000000..a307d0b
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile.am
@@ -0,0 +1,23 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_ar.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_ar_la_SOURCES = imp_ar.c imp_ar.h \
20 imp_ar_decompress.c imp_ar_decompress.h \
21 imp_ar_dof.c imp_ar_dof.h \
22 imp_ar_carini.c imp_ar_carini.h
23imp_ar_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile.in
new file mode 100644
index 0000000..1f67984
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile.in
@@ -0,0 +1,517 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_ar
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_ar_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_ar_la_OBJECTS = imp_ar.lo imp_ar_decompress.lo imp_ar_dof.lo \
59 imp_ar_carini.lo
60imp_ar_la_OBJECTS = $(am_imp_ar_la_OBJECTS)
61DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_ar_la_SOURCES)
74DIST_SOURCES = $(imp_ar_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = @ACLOCAL@
79AMTAR = @AMTAR@
80AR = @AR@
81AS = @AS@
82AUTOCONF = @AUTOCONF@
83AUTOHEADER = @AUTOHEADER@
84AUTOMAKE = @AUTOMAKE@
85AWK = @AWK@
86CC = @CC@
87CCDEPMODE = @CCDEPMODE@
88CFLAGS = @CFLAGS@
89CPP = @CPP@
90CPPFLAGS = @CPPFLAGS@
91CXX = @CXX@
92CXXCPP = @CXXCPP@
93CXXDEPMODE = @CXXDEPMODE@
94CXXFLAGS = @CXXFLAGS@
95CYGPATH_W = @CYGPATH_W@
96DBG_CFLAGS = @DBG_CFLAGS@
97DEBUG = @DEBUG@
98DEFS = @DEFS@
99DEPDIR = @DEPDIR@
100DLLTOOL = @DLLTOOL@
101ECHO = @ECHO@
102ECHO_C = @ECHO_C@
103ECHO_N = @ECHO_N@
104ECHO_T = @ECHO_T@
105EGREP = @EGREP@
106EXEEXT = @EXEEXT@
107F77 = @F77@
108FFLAGS = @FFLAGS@
109GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
110GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
111GLIB_CFLAGS = @GLIB_CFLAGS@
112GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
113GLIB_LIBS = @GLIB_LIBS@
114GLIB_MKENUMS = @GLIB_MKENUMS@
115GOBJECT_QUERY = @GOBJECT_QUERY@
116GREP = @GREP@
117GTKDOC_CHECK = @GTKDOC_CHECK@
118GTK_CFLAGS = @GTK_CFLAGS@
119GTK_LIBS = @GTK_LIBS@
120HTML_DIR = @HTML_DIR@
121INSTALL = @INSTALL@
122INSTALL_DATA = @INSTALL_DATA@
123INSTALL_PROGRAM = @INSTALL_PROGRAM@
124INSTALL_SCRIPT = @INSTALL_SCRIPT@
125INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
126LDFLAGS = @LDFLAGS@
127LEX = @LEX@
128LEXLIB = @LEXLIB@
129LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
130LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
131LIBGSF_LIBS = @LIBGSF_LIBS@
132LIBOBJS = @LIBOBJS@
133LIBS = @LIBS@
134LIBTOOL = @LIBTOOL@ --quiet
135LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
136LIBXML2_LIBS = @LIBXML2_LIBS@
137LN_S = @LN_S@
138LTLIBOBJS = @LTLIBOBJS@
139LTVERSION = @LTVERSION@
140MAGIC_LIBS = @MAGIC_LIBS@
141MAKEINFO = @MAKEINFO@
142MATH_LIBS = @MATH_LIBS@
143MKDIR_P = @MKDIR_P@
144OBJDUMP = @OBJDUMP@
145OBJEXT = @OBJEXT@
146PACKAGE = @PACKAGE@
147PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
148PACKAGE_NAME = @PACKAGE_NAME@
149PACKAGE_STRING = @PACKAGE_STRING@
150PACKAGE_TARNAME = @PACKAGE_TARNAME@
151PACKAGE_VERSION = @PACKAGE_VERSION@
152PATH_SEPARATOR = @PATH_SEPARATOR@
153PKG_CONFIG = @PKG_CONFIG@
154PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
155RANLIB = @RANLIB@
156SET_MAKE = @SET_MAKE@
157SHELL = @SHELL@
158STRIP = @STRIP@
159VERSION = @VERSION@
160XML2_CONFIG = @XML2_CONFIG@
161XML_CPPFLAGS = @XML_CPPFLAGS@
162XML_LIBS = @XML_LIBS@
163Z_CFLAGS = @Z_CFLAGS@
164Z_LIBS = @Z_LIBS@
165abs_builddir = @abs_builddir@
166abs_srcdir = @abs_srcdir@
167abs_top_builddir = @abs_top_builddir@
168abs_top_srcdir = @abs_top_srcdir@
169ac_ct_CC = @ac_ct_CC@
170ac_ct_CXX = @ac_ct_CXX@
171ac_ct_F77 = @ac_ct_F77@
172am__include = @am__include@
173am__leading_dot = @am__leading_dot@
174am__quote = @am__quote@
175am__tar = @am__tar@
176am__untar = @am__untar@
177bindir = @bindir@
178build = @build@
179build_alias = @build_alias@
180build_cpu = @build_cpu@
181build_os = @build_os@
182build_vendor = @build_vendor@
183builddir = @builddir@
184datadir = @datadir@
185datarootdir = @datarootdir@
186docdir = @docdir@
187dvidir = @dvidir@
188exec_prefix = @exec_prefix@
189host = @host@
190host_alias = @host_alias@
191host_cpu = @host_cpu@
192host_os = @host_os@
193host_vendor = @host_vendor@
194htmldir = @htmldir@
195includedir = @includedir@
196infodir = @infodir@
197install_sh = @install_sh@
198libdir = @libdir@
199libexecdir = @libexecdir@
200localedir = @localedir@
201localstatedir = @localstatedir@
202mandir = @mandir@
203mkdir_p = @mkdir_p@
204oldincludedir = @oldincludedir@
205pdfdir = @pdfdir@
206prefix = @prefix@
207program_transform_name = @program_transform_name@
208psdir = @psdir@
209sbindir = @sbindir@
210sharedstatedir = @sharedstatedir@
211srcdir = @srcdir@
212sysconfdir = @sysconfdir@
213target_alias = @target_alias@
214top_builddir = @top_builddir@
215top_srcdir = @top_srcdir@
216pluginimpdir = $(pkglibdir)/plugins/import
217pluginimp_LTLIBRARIES = imp_ar.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
222 @GLIB_CFLAGS@
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 @PLUGINS_LDFLAGS@
228
229imp_ar_la_SOURCES = imp_ar.c imp_ar.h \
230 imp_ar_decompress.c imp_ar_decompress.h \
231 imp_ar_dof.c imp_ar_dof.h \
232 imp_ar_carini.c imp_ar_carini.h
233
234imp_ar_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
235all: all-am
236
237.SUFFIXES:
238.SUFFIXES: .c .lo .o .obj
239$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
240 @for dep in $?; do \
241 case '$(am__configure_deps)' in \
242 *$$dep*) \
243 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
244 && exit 0; \
245 exit 1;; \
246 esac; \
247 done; \
248 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_ar/Makefile'; \
249 cd $(top_srcdir) && \
250 $(AUTOMAKE) --gnu plugins/import/imp_ar/Makefile
251.PRECIOUS: Makefile
252Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
253 @case '$?' in \
254 *config.status*) \
255 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
256 *) \
257 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
258 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
259 esac;
260
261$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263
264$(top_srcdir)/configure: $(am__configure_deps)
265 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
266$(ACLOCAL_M4): $(am__aclocal_m4_deps)
267 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
268install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
269 @$(NORMAL_INSTALL)
270 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
271 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
272 if test -f $$p; then \
273 f=$(am__strip_dir) \
274 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
275 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
276 else :; fi; \
277 done
278
279uninstall-pluginimpLTLIBRARIES:
280 @$(NORMAL_UNINSTALL)
281 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
282 p=$(am__strip_dir) \
283 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
284 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
285 done
286
287clean-pluginimpLTLIBRARIES:
288 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
289 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
290 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
291 test "$$dir" != "$$p" || dir=.; \
292 echo "rm -f \"$${dir}/so_locations\""; \
293 rm -f "$${dir}/so_locations"; \
294 done
295imp_ar.la: $(imp_ar_la_OBJECTS) $(imp_ar_la_DEPENDENCIES)
296 $(LINK) -rpath $(pluginimpdir) $(imp_ar_la_OBJECTS) $(imp_ar_la_LIBADD) $(LIBS)
297
298mostlyclean-compile:
299 -rm -f *.$(OBJEXT)
300
301distclean-compile:
302 -rm -f *.tab.c
303
304@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ar.Plo@am__quote@
305@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ar_carini.Plo@am__quote@
306@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ar_decompress.Plo@am__quote@
307@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ar_dof.Plo@am__quote@
308
309.c.o:
310@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
311@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
313@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
314@am__fastdepCC_FALSE@ $(COMPILE) -c $<
315
316.c.obj:
317@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
318@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
320@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
321@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
322
323.c.lo:
324@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
325@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
326@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
327@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
328@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
329
330mostlyclean-libtool:
331 -rm -f *.lo
332
333clean-libtool:
334 -rm -rf .libs _libs
335
336ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
337 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
338 unique=`for i in $$list; do \
339 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
340 done | \
341 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
342 END { if (nonempty) { for (i in files) print i; }; }'`; \
343 mkid -fID $$unique
344tags: TAGS
345
346TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
347 $(TAGS_FILES) $(LISP)
348 tags=; \
349 here=`pwd`; \
350 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
351 unique=`for i in $$list; do \
352 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
353 done | \
354 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
355 END { if (nonempty) { for (i in files) print i; }; }'`; \
356 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
357 test -n "$$unique" || unique=$$empty_fix; \
358 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
359 $$tags $$unique; \
360 fi
361ctags: CTAGS
362CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
363 $(TAGS_FILES) $(LISP)
364 tags=; \
365 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
366 unique=`for i in $$list; do \
367 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
368 done | \
369 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
370 END { if (nonempty) { for (i in files) print i; }; }'`; \
371 test -z "$(CTAGS_ARGS)$$tags$$unique" \
372 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
373 $$tags $$unique
374
375GTAGS:
376 here=`$(am__cd) $(top_builddir) && pwd` \
377 && cd $(top_srcdir) \
378 && gtags -i $(GTAGS_ARGS) $$here
379
380distclean-tags:
381 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
382
383distdir: $(DISTFILES)
384 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
385 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
386 list='$(DISTFILES)'; \
387 dist_files=`for file in $$list; do echo $$file; done | \
388 sed -e "s|^$$srcdirstrip/||;t" \
389 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
390 case $$dist_files in \
391 */*) $(MKDIR_P) `echo "$$dist_files" | \
392 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
393 sort -u` ;; \
394 esac; \
395 for file in $$dist_files; do \
396 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
397 if test -d $$d/$$file; then \
398 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
399 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
400 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
401 fi; \
402 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
403 else \
404 test -f $(distdir)/$$file \
405 || cp -p $$d/$$file $(distdir)/$$file \
406 || exit 1; \
407 fi; \
408 done
409check-am: all-am
410check: check-am
411all-am: Makefile $(LTLIBRARIES)
412installdirs:
413 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
414 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
415 done
416install: install-am
417install-exec: install-exec-am
418install-data: install-data-am
419uninstall: uninstall-am
420
421install-am: all-am
422 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
423
424installcheck: installcheck-am
425install-strip:
426 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
427 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
428 `test -z '$(STRIP)' || \
429 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
430mostlyclean-generic:
431
432clean-generic:
433
434distclean-generic:
435 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
436
437maintainer-clean-generic:
438 @echo "This command is intended for maintainers to use"
439 @echo "it deletes files that may require special tools to rebuild."
440clean: clean-am
441
442clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
443 mostlyclean-am
444
445distclean: distclean-am
446 -rm -rf ./$(DEPDIR)
447 -rm -f Makefile
448distclean-am: clean-am distclean-compile distclean-generic \
449 distclean-tags
450
451dvi: dvi-am
452
453dvi-am:
454
455html: html-am
456
457info: info-am
458
459info-am:
460
461install-data-am: install-pluginimpLTLIBRARIES
462
463install-dvi: install-dvi-am
464
465install-exec-am:
466
467install-html: install-html-am
468
469install-info: install-info-am
470
471install-man:
472
473install-pdf: install-pdf-am
474
475install-ps: install-ps-am
476
477installcheck-am:
478
479maintainer-clean: maintainer-clean-am
480 -rm -rf ./$(DEPDIR)
481 -rm -f Makefile
482maintainer-clean-am: distclean-am maintainer-clean-generic
483
484mostlyclean: mostlyclean-am
485
486mostlyclean-am: mostlyclean-compile mostlyclean-generic \
487 mostlyclean-libtool
488
489pdf: pdf-am
490
491pdf-am:
492
493ps: ps-am
494
495ps-am:
496
497uninstall-am: uninstall-pluginimpLTLIBRARIES
498
499.MAKE: install-am install-strip
500
501.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
502 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
503 distclean-compile distclean-generic distclean-libtool \
504 distclean-tags distdir dvi dvi-am html html-am info info-am \
505 install install-am install-data install-data-am install-dvi \
506 install-dvi-am install-exec install-exec-am install-html \
507 install-html-am install-info install-info-am install-man \
508 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
509 install-ps install-ps-am install-strip installcheck \
510 installcheck-am installdirs maintainer-clean \
511 maintainer-clean-generic mostlyclean mostlyclean-compile \
512 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
513 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
514
515# Tell versions [3.59,3.63) of GNU make to not export all variables.
516# Otherwise a system limit (for SysV at least) may be exceeded.
517.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar.c
new file mode 100644
index 0000000..58bd274
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar.c
@@ -0,0 +1,183 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <string.h>
25#include <stdarg.h>
26#include <locale.h>
27
28#include <g3d/types.h>
29#include <g3d/read.h>
30#include <g3d/material.h>
31#include <g3d/matrix.h>
32
33#include "imp_ar.h"
34#include "imp_ar_decompress.h"
35#include "imp_ar_dof.h"
36#include "imp_ar_carini.h"
37
38static GSList *ar_read_directory(G3DStream *stream);
39static G3DObject *ar_load_subfile(G3DContext *context, G3DModel *model,
40 G3DStream *stream, const gchar *subfile);
41
42/*****************************************************************************/
43/* plugin interface */
44
45EAPI
46gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
47 G3DModel *model, gpointer plugin_data)
48{
49 GSList *dir, *item;
50 GHashTable *carini;
51 G3DMaterial *material;
52 G3DObject *object;
53 gchar *mname;
54 G3DFloat x, y, z;
55
56 setlocale(LC_NUMERIC, "C");
57
58 /* default material */
59 material = g3d_material_new();
60 material->name = g_strdup("default material");
61 model->materials = g_slist_append(model->materials, material);
62
63 if(g_strcasecmp(stream->uri + (strlen(stream->uri) - 4), ".dof") == 0) {
64 /* single DOF file */
65 ar_dof_load(context, model, stream);
66 } else {
67 /* compressed AR archive */
68 carini = ar_carini_load();
69
70 /* load directory */
71 dir = ar_read_directory(stream);
72
73 /* decompress files */
74 for(item = dir; item != NULL; item = item->next)
75 ar_decompress_to_file(stream, (ArDirEntry *)item->data);
76
77 /* load body */
78 mname = g_hash_table_lookup(carini, "body.model.file");
79 ar_load_subfile(context, model, stream, mname);
80 /* steering wheel */
81 mname = g_hash_table_lookup(carini, "steer.model.file");
82 if(mname != NULL)
83 {
84 printf("D: steering wheel (%s)\n", mname);
85 object = ar_load_subfile(context, model, stream, mname);
86 ar_carini_get_position(carini, "steer", &x, &y, &z);
87 object->transformation = g_new0(G3DTransformation, 1);
88 g3d_matrix_identity(object->transformation->matrix);
89 g3d_matrix_translate(x, y, z, object->transformation->matrix);
90 }
91
92 /* load wheel 0 */
93 mname = g_hash_table_lookup(carini, "wheel0~wheel_front.model.file");
94 if(mname != NULL)
95 {
96 printf("D: loading wheel 0 (%s)\n", mname);
97 object = ar_load_subfile(context, model, stream, mname);
98 x = ar_carini_get_float(carini, "susp0~susp_front.x");
99 y = ar_carini_get_float(carini, "susp_front.y") -
100 ar_carini_get_float(carini, "wheel_front.radius");
101 z = ar_carini_get_float(carini, "susp_front.z");
102 object->transformation = g_new0(G3DTransformation, 1);
103 g3d_matrix_identity(object->transformation->matrix);
104 g3d_matrix_translate(x, y, z, object->transformation->matrix);
105 }
106
107 ar_carini_free(carini);
108 }
109
110 return TRUE;
111}
112
113EAPI
114gchar *plugin_description(void)
115{
116 return g_strdup("Racer models.");
117}
118
119EAPI
120gchar **plugin_extensions(void)
121{
122 return g_strsplit("ar:dof", ":", 0);
123}
124
125/*****************************************************************************/
126
127static GSList *ar_read_directory(G3DStream *stream)
128{
129 ArDirEntry *dirent;
130 GSList *list = NULL;
131 guint32 fsize, dpos;
132 gint32 nbytes;
133 gchar buffer[128];
134
135 g3d_stream_seek(stream, -4, G_SEEK_END);
136 fsize = g3d_stream_tell(stream);
137 dpos = g3d_stream_read_int32_le(stream);
138
139 /* start of directory */
140 g3d_stream_seek(stream, dpos, G_SEEK_SET);
141 nbytes = fsize - dpos;
142#if DEBUG > 0
143 printf("D: AR: directory @ 0x%08x, %d bytes\n", dpos, nbytes);
144#endif
145
146 while(nbytes > 0) {
147 dirent = g_new0(ArDirEntry, 1);
148 list = g_slist_append(list, dirent);
149
150 nbytes -= g3d_stream_read_cstr(stream, buffer, 127);
151 dirent->name = g_strdup(buffer);
152 dirent->offset = g3d_stream_read_int32_le(stream);
153 dirent->size = g3d_stream_read_int32_le(stream);
154 nbytes -= 8;
155
156#if DEBUG > 0
157 printf("D: AR: * %s @ 0x%08x, %d bytes\n",
158 dirent->name, dirent->offset, dirent->size);
159#endif
160 }
161
162 return list;
163}
164
165static G3DObject *ar_load_subfile(G3DContext *context, G3DModel *model,
166 G3DStream *stream, const gchar *subfile)
167{
168 G3DStream *substream;
169 G3DObject *o;
170
171 if(subfile == NULL)
172 return NULL;
173
174 substream = g3d_stream_open_file(subfile, "rb");
175 if(substream == NULL)
176 return NULL;
177
178 o = ar_dof_load(context, model, substream);
179 g3d_stream_close(substream);
180
181 return o;
182}
183
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar.h
new file mode 100644
index 0000000..8fb2989
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar.h
@@ -0,0 +1,33 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef _IMP_AR_H
24#define _IMP_AR_H
25
26typedef struct {
27 gchar *name;
28 guint32 offset;
29 guint32 size;
30} ArDirEntry;
31
32#endif /* _IMP_AR_H */
33
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_carini.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_carini.c
new file mode 100644
index 0000000..8ff4b18
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_carini.c
@@ -0,0 +1,247 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#define _ISOC99_SOURCE 1 /* strtof() */
24
25#include <stdio.h>
26#include <stdlib.h>
27#include <string.h>
28#include <glib.h>
29#include <g3d/types.h>
30
31#define CARINI_IN_VAR 1
32#define CARINI_IN_VALUE 2
33#define CARINI_IN_COMMENT 3
34
35static gchar *ar_carini_getpath(GQueue *queue)
36{
37 gchar *tmp, *path = NULL;
38 gint32 i;
39
40 for(i = 0; i < g_queue_get_length(queue); i ++)
41 {
42 if(path == NULL)
43 path = g_strdup((gchar *)g_queue_peek_nth(queue, i));
44 else
45 {
46 tmp = g_strdup_printf("%s.%s",
47 (gchar *)g_queue_peek_nth(queue, i), path);
48 g_free(path);
49 path = tmp;
50 }
51 }
52
53 return path;
54}
55
56GHashTable *ar_carini_load(void)
57{
58 GHashTable *ht;
59 GQueue *q;
60 FILE *f;
61 gchar var[256], *varp; /* section or variable */
62 gchar val[256], *valp; /* value */
63 gchar *tmps, *varname;
64 guint32 in = CARINI_IN_VAR;
65 gint32 c;
66
67 f = fopen("car.ini", "r");
68 if(f == NULL)
69 f = fopen("Car.ini", "r");
70
71 if(f == NULL)
72 {
73 g_error("failed to read 'car.ini'\n");
74 return NULL;
75 }
76
77 ht = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free);
78 if(ht == NULL)
79 {
80 fclose(f);
81 g_error("could not create hash table");
82 return NULL;
83 }
84
85 q = g_queue_new();
86
87 valp = val;
88 memset(val, 0, 256);
89 varp = var;
90 memset(var, 0, 256);
91
92 while(!feof(f))
93 {
94 c = fgetc(f);
95 switch(c)
96 {
97 case '\0':
98 case EOF:
99 break;
100
101 case '{':
102 /* push section */
103 g_queue_push_head(q, g_strdup(var));
104
105 in = CARINI_IN_VAR;
106 varp = var;
107 memset(var, 0, 256);
108 break;
109
110 case '}':
111 /* pop section */
112 tmps = (gchar *)g_queue_pop_head(q);
113 g_free(tmps);
114
115 in = CARINI_IN_VAR;
116 varp = var;
117 memset(var, 0, 256);
118 break;
119
120 case ';':
121 in = CARINI_IN_COMMENT;
122 break;
123
124 case '=':
125 if(in == CARINI_IN_VAR)
126 {
127 in = CARINI_IN_VALUE;
128 valp = val;
129 memset(val, 0, 256);
130 }
131 break;
132
133 case '\n':
134 case '\r':
135 if(in == CARINI_IN_VALUE)
136 {
137 tmps = ar_carini_getpath(q);
138 if(tmps)
139 {
140 varname = g_strdup_printf("%s.%s", tmps, var);
141 g_free(tmps);
142 }
143 else
144 varname = g_strdup(var);
145
146 /* update hash table */
147 g_hash_table_insert(ht, varname, g_strdup(val));
148#if DEBUG > 2
149 printf("D: %s = %s\n", varname, val);
150#endif
151
152 in = CARINI_IN_VAR;
153 varp = var;
154 memset(var, 0, 256);
155 }
156 else if(in == CARINI_IN_COMMENT)
157 {
158 in = CARINI_IN_VAR;
159 }
160 break;
161
162 case ' ':
163 case '\t':
164 if(in == CARINI_IN_VALUE)
165 {
166 *valp = c;
167 valp ++;
168 }
169 break;
170
171 default:
172 if(in == CARINI_IN_VALUE)
173 {
174 *valp = c;
175 valp ++;
176 }
177 else if(in == CARINI_IN_VAR)
178 {
179 *varp = c;
180 varp ++;
181 }
182 break;
183 } /* switch(c) */
184 } /* !feof(f) */
185
186 /* clean up */
187 g_queue_free(q);
188
189 return ht;
190}
191
192void ar_carini_free(GHashTable *ht)
193{
194 g_hash_table_destroy(ht);
195}
196
197G3DFloat ar_carini_get_float(GHashTable *ht, gchar *path)
198{
199 gchar *value;
200 G3DFloat valf;
201
202 value = (gchar *)g_hash_table_lookup(ht, path);
203 if(value == NULL)
204 return 0.0;
205
206 valf = strtof(value, NULL);
207 return valf;
208}
209
210gboolean ar_carini_get_position(GHashTable *ht, gchar *prefix,
211 G3DFloat *x, G3DFloat *y, G3DFloat *z)
212{
213 gchar *path, *value;
214
215 /* x */
216 path = g_strdup_printf("%s.x", prefix);
217 value = (gchar *)g_hash_table_lookup(ht, path);
218 if(value)
219 *x = strtof(value, NULL);
220 else
221 *x = 0.0;
222 g_free(path);
223
224 /* y */
225 path = g_strdup_printf("%s.y", prefix);
226 value = (gchar *)g_hash_table_lookup(ht, path);
227 if(value)
228 *y = strtof(value, NULL);
229 else
230 *y = 0.0;
231 g_free(path);
232
233 /* z */
234 path = g_strdup_printf("%s.z", prefix);
235 value = (gchar *)g_hash_table_lookup(ht, path);
236 if(value)
237 *z = strtof(value, NULL);
238 else
239 *z = 0.0;
240 g_free(path);
241
242#if DEBUG > 0
243 printf("D: position for '%s': %.2f, %.2f, %.2f\n", prefix, *x, *y, *z);
244#endif
245
246 return TRUE;
247}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_carini.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_carini.h
new file mode 100644
index 0000000..3c8b972
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_carini.h
@@ -0,0 +1,35 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef _IMP_AR_CARINI_H
24#define _IMP_AR_CARINI_H
25
26#include <glib.h>
27
28GHashTable *ar_carini_load(void);
29void ar_carini_free(GHashTable *ht);
30G3DFloat ar_carini_get_float(GHashTable *ht, gchar *path);
31gboolean ar_carini_get_position(GHashTable *ht, gchar *prefix,
32 G3DFloat *x, G3DFloat *y, G3DFloat *z);
33
34#endif /* _IMP_AR_CARINI_H */
35
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_decompress.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_decompress.c
new file mode 100644
index 0000000..90703f4
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_decompress.c
@@ -0,0 +1,161 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <string.h>
25#include <glib.h>
26#include <g3d/stream.h>
27
28#include "imp_ar.h"
29
30#define AR_FLAG_COPIED 0x80
31#define AR_FLAG_COMPRESS 0x40
32
33guint8 *ar_decompress_chunk(guint8 *src, guint16 srcsize, guint16 *dstsize)
34{
35 guint8 *dst = NULL, bit = 16;
36 gint32 i, j = 0, k, pos, size;
37 guint16 cmd;
38
39#if DEBUG > 2
40 printf("D: decompressing %d bytes chunk\n", srcsize);
41#endif
42
43 if(src[0] == AR_FLAG_COPIED)
44 {
45 *dstsize = srcsize - 1;
46 dst = g_new0(guint8, *dstsize);
47 memcpy(dst, src + 1, *dstsize);
48 return dst;
49 }
50
51 *dstsize = 0;
52 cmd = (src[1] << 8) + src[2];
53 for(i = 3; i < srcsize;)
54 {
55 if(bit == 0)
56 {
57 /* get new command */
58 cmd = (src[i] << 8) + src[i + 1];
59 i += 2;
60 bit = 16;
61 }
62
63 if(cmd & 0x8000)
64 {
65 pos = (src[i] << 4) + (src[i + 1] >> 4);
66 i ++;
67 if(pos != 0)
68 {
69 /* copy known chunk */
70 size = (src[i] & 0xF) + 3;
71 *dstsize += size;
72 dst = g_realloc(dst, *dstsize);
73 i ++;
74 for(k = 0; k < size; k ++)
75 dst[j + k] = dst[j - pos + k];
76 j += size;
77 }
78 else
79 {
80 /* RLE style... */
81 size = (src[i] << 8) + src[i + 1] + 16;
82 *dstsize += size;
83 dst = g_realloc(dst, *dstsize);
84 i += 2;
85 for(k = 0; k < size; k ++)
86 dst[j + k] = src[i];
87 i ++;
88 j += size;
89 }
90 }
91 else
92 {
93 /* plain copy */
94 *dstsize += 1;
95 dst = g_realloc(dst, *dstsize);
96 dst[j] = src[i];
97 i ++;
98 j ++;
99 }
100
101 cmd <<= 1;
102 bit --;
103 }
104
105 return dst;
106}
107
108gboolean ar_decompress_to_file(G3DStream *stream, ArDirEntry *dirent)
109{
110 FILE *o;
111 gchar cmd;
112 guint32 size;
113 guint16 srcsize, dstsize;
114 guint8 *src, *dst;
115
116 o = fopen(dirent->name, "wb");
117 if(o == NULL) {
118 g_warning("failed to write to '%s'", dirent->name);
119 return FALSE;
120 }
121
122 /* seek to file start */
123 g3d_stream_seek(stream, dirent->offset, G_SEEK_SET);
124
125 /* skip tags */
126 do {
127 cmd = g3d_stream_read_int8(stream);
128 if(cmd != 'D') {
129 size = g3d_stream_read_int32_le(stream);
130 g3d_stream_skip(stream, size);
131 }
132 } while(cmd != 'D');
133
134#if DEBUG > 2
135 printf("D: starting decompression part\n");
136#endif
137
138 /* decompress stuff */
139 while(1) {
140 srcsize = g3d_stream_read_int16_le(stream);
141 if(srcsize == 0)
142 break;
143
144 src = g_new0(guint8, srcsize);
145 g3d_stream_read(stream, src, srcsize);
146 dst = ar_decompress_chunk(src, srcsize, &dstsize);
147
148 if(dstsize > 0) {
149 fwrite(dst, 1, dstsize, o);
150 g_free(dst);
151 }
152
153 g_free(src);
154 }
155
156 fclose(o);
157
158 return TRUE;
159}
160
161
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_decompress.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_decompress.h
new file mode 100644
index 0000000..ad203a3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_decompress.h
@@ -0,0 +1,30 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef _IMP_AR_DECOMPRESS_H
24#define _IMP_AR_DECOMPRESS_H
25
26#include <g3d/stream.h>
27
28gboolean ar_decompress_to_file(G3DStream *stream, ArDirEntry *dirent);
29
30#endif /* _IMP_AR_DECOMPRESS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_dof.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_dof.c
new file mode 100644
index 0000000..6b2eff6
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_dof.c
@@ -0,0 +1,446 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <g3d/types.h>
24#include <g3d/stream.h>
25#include <g3d/texture.h>
26#include <g3d/material.h>
27#include <g3d/iff.h>
28
29gchar *ar_dof_read_string(G3DStream *stream, gint32 *dlen)
30{
31 gint32 len;
32 gchar *text;
33
34 len = g3d_stream_read_int16_le(stream);
35 *dlen -= 2;
36
37 text = g_new0(gchar, len + 1);
38 g3d_stream_read(stream, text, len);
39 *dlen -= len;
40
41 return text;
42}
43
44G3DMaterial *ar_dof_load_mat(G3DContext *context, G3DModel *model,
45 G3DStream *stream)
46{
47 G3DMaterial *material;
48 gint32 id, len = 0, dlen, i, ntex, trans = 0, blend = 0;
49 gchar *tmp;
50
51 id = g3d_stream_read_int32_be(stream);
52 if(id != G3D_IFF_MKID('M','A','T','0'))
53 return NULL;
54
55 material = g3d_material_new();
56
57 dlen = g3d_stream_read_int32_le(stream);
58 do {
59 id = g3d_stream_read_int32_be(stream);
60 if(id != G3D_IFF_MKID('M','E','N','D'))
61 len = g3d_stream_read_int32_le(stream);
62
63 switch(id) {
64 case G3D_IFF_MKID('M','E','N','D'):
65 break;
66
67 case G3D_IFF_MKID('M','H','D','R'):
68 material->name = ar_dof_read_string(stream, &dlen);
69 tmp = ar_dof_read_string(stream, &dlen);
70 g_free(tmp);
71 break;
72
73 case G3D_IFF_MKID('M','C','O','L'):
74 /* ambient */
75 material->r = g3d_stream_read_float_le(stream);
76 material->g = g3d_stream_read_float_le(stream);
77 material->b = g3d_stream_read_float_le(stream);
78 material->a = g3d_stream_read_float_le(stream);
79 dlen -= 16;
80 /* diffuse */
81 g3d_stream_skip(stream, 16);
82 dlen -= 16;
83 /* specular */
84 material->specular[0] = g3d_stream_read_float_le(stream);
85 material->specular[1] = g3d_stream_read_float_le(stream);
86 material->specular[2] = g3d_stream_read_float_le(stream);
87 material->specular[3] = g3d_stream_read_float_le(stream);
88 dlen -= 16;
89 /* emission */
90 g3d_stream_skip(stream, 16);
91 dlen -= 16;
92 /* shininess */
93 material->shininess = g3d_stream_read_float_le(stream);
94 dlen -= 4;
95 break;
96
97 case G3D_IFF_MKID('M','T','E','X'):
98 ntex = g3d_stream_read_int32_le(stream);
99 dlen -= 4;
100 for(i = 0; i < ntex; i ++) {
101 tmp = ar_dof_read_string(stream, &dlen);
102 if(i == 0) {
103 material->tex_image =
104 g3d_texture_load_cached(context, model, tmp);
105 if(material->tex_image)
106 material->tex_image->tex_id = g_str_hash(tmp);
107 }
108 g_free(tmp);
109 }
110 break;
111
112 case G3D_IFF_MKID('M','T','R','A'):
113 /* transparency */
114 trans = g3d_stream_read_int32_le(stream);
115 /* blend mode */
116 blend = g3d_stream_read_int32_le(stream);
117
118 printf("D: MTRA: %s: trans: 0x%04x, blend: 0x%04x\n",
119 (material->name ? material->name : "unnamed"),
120 trans, blend);
121
122 dlen -= 8;
123 break;
124
125 case G3D_IFF_MKID('M','C','F','L'):
126 /* creation flags */
127 g3d_stream_read_int32_le(stream);
128 dlen -= 4;
129 break;
130
131 case G3D_IFF_MKID('M','U','V','W'):
132 /* u offset */
133 g3d_stream_read_int32_le(stream);
134 /* v offset */
135 g3d_stream_read_int32_le(stream);
136 dlen -= 8;
137
138 /* u tiling */
139 g3d_stream_read_int32_le(stream);
140 /* v tiling */
141 g3d_stream_read_int32_le(stream);
142 dlen -= 8;
143
144 /* angle */
145 g3d_stream_read_float_le(stream);
146 /* blur */
147 g3d_stream_read_float_le(stream);
148 /* blur offset */
149 g3d_stream_read_int32_le(stream);
150 dlen -= 12;
151 break;
152
153 default:
154 g3d_stream_skip(stream, len);
155 dlen -= len;
156 break;
157 }
158 }
159 while((dlen > 0) && (id != G3D_IFF_MKID('M','E','N','D')));
160
161 if(material->tex_image != NULL) {
162 if(blend == 1)
163 material->tex_image->tex_env = G3D_TEXENV_BLEND;
164 else
165 material->tex_image->tex_env = G3D_TEXENV_DECAL;
166 }
167
168 return material;
169}
170
171G3DObject *ar_dof_load_obj(G3DContext *context, G3DModel *model,
172 G3DStream *stream)
173{
174 G3DObject *object, *pobj;
175 G3DFace *face;
176 G3DMaterial *material;
177 GSList *item;
178 gint32 id, len = 0, dlen, nverts, ntver, nnorm, nind, i, j, index;
179 G3DFloat *tex_vertices = NULL, *normals = NULL;
180
181 id = g3d_stream_read_int32_be(stream);
182 dlen = g3d_stream_read_int32_le(stream);
183
184 if(id != G3D_IFF_MKID('G','O','B','1')) {
185 g3d_stream_skip(stream, dlen);
186 return NULL;
187 }
188
189 object = g_new0(G3DObject, 1);
190 object->name = g_strdup_printf("object @ 0x%08x",
191 (guint32)g3d_stream_tell(stream));
192
193 /* parent object for material references */
194 pobj = (G3DObject *)g_slist_nth_data(model->objects, 0);
195
196 /* default material */
197 material = (G3DMaterial *)g_slist_nth_data(model->materials, 0);
198
199 do {
200 id = g3d_stream_read_int32_be(stream);
201 if(id != G3D_IFF_MKID('G','E','N','D'))
202 len = g3d_stream_read_int32_le(stream);
203
204 switch(id) {
205 case G3D_IFF_MKID('G','E','N','D'):
206 /* end of object */
207 break;
208
209 case G3D_IFF_MKID('G','H','D','R'):
210 /* object header */
211 /* flags */
212 i = g3d_stream_read_int32_le(stream);
213 printf("D: GHDR: flags = 0x%04X\n", i);
214 /* paint flags */
215 i = g3d_stream_read_int32_le(stream);
216 printf("D: GHDR: paint flags = 0x%04X\n", i);
217
218 /* material ref */
219 i = g3d_stream_read_int32_le(stream);
220 material = g_slist_nth_data(pobj->materials, i);
221 if(material == NULL)
222 material = (G3DMaterial *)g_slist_nth_data(
223 model->materials, 0);
224
225 dlen -= 12;
226 break;
227
228 case G3D_IFF_MKID('V','E','R','T'):
229 /* vertices */
230 nverts = g3d_stream_read_int32_le(stream);
231
232#if DEBUG > 2
233 printf("D: %d vertices\n", nverts);
234#endif
235
236 dlen -= 4;
237 if(nverts > 0) {
238 object->vertex_count = nverts;
239 object->vertex_data = g_new0(G3DFloat, nverts * 3);
240 for(i = 0; i < nverts; i ++) {
241 for(j = 0; j < 3; j ++)
242 object->vertex_data[i * 3 + j] =
243 g3d_stream_read_float_le(stream);
244 dlen -= 12;
245 }
246 }
247 break;
248
249 case G3D_IFF_MKID('N', 'O','R','M'):
250 /* normals */
251 nnorm = g3d_stream_read_int32_le(stream);
252 normals = g_new0(G3DFloat, nnorm * 3);
253 dlen -= 4;
254 for(i = 0; i < nnorm; i ++) {
255 for(j = 0; j < 3; j ++)
256 normals[i * 3 + j] = g3d_stream_read_float_le(stream);
257 dlen -= 12;
258 }
259 break;
260
261 case G3D_IFF_MKID('T', 'V','E','R'):
262 /* texture vertices */
263 ntver = g3d_stream_read_int32_le(stream);
264 tex_vertices = g_new0(G3DFloat, ntver * 2);
265 dlen -= 4;
266
267#if DEBUG > 2
268 printf("D: %d texture vertices @ 0x%08x\n", ntver,
269 (guint32)g3d_stream_tell(stream) - 12);
270#endif
271
272 for(i = 0; (i < ntver) && (len > 0); i ++) {
273 tex_vertices[i * 2 + 0] = g3d_stream_read_float_le(stream);
274 tex_vertices[i * 2 + 1] =
275 1.0 - g3d_stream_read_float_le(stream);
276 dlen -= 8;
277 }
278 break;
279
280 case G3D_IFF_MKID('B','R','S','T'):
281 /* bursts */
282 i = g3d_stream_read_int32_le(stream);
283 dlen -= 4;
284 g3d_stream_skip(stream, i * 4); /* burstStart */
285 g3d_stream_skip(stream, i * 4); /* burstCount */
286 g3d_stream_skip(stream, i * 4); /* burstMtlID */
287 g3d_stream_skip(stream, i * 4); /* burstVperP */
288 dlen -= (4 * 4 * i);
289 break;
290
291 case G3D_IFF_MKID('V','C','O','L'):
292 /* vertex colors */
293 i = g3d_stream_read_int32_le(stream);
294 dlen -= 4;
295 g3d_stream_skip(stream, i * 4 * 3);
296 dlen -= (i * 4 * 3);
297 break;
298
299 case G3D_IFF_MKID('I','N','D','I'):
300 /* indices */
301 nind = g3d_stream_read_int32_le(stream);
302 dlen -= 4;
303 len -= 4;
304
305#if DEBUG > 2
306 printf("D: %d indices in %d bytes\n", nind, len);
307#endif
308
309 for(i = 0; i < nind; i += 3) {
310 face = g_new0(G3DFace, 1);
311 face->material = material;
312 face->vertex_count = 3;
313 face->vertex_indices = g_new0(guint32, 3);
314
315 for(j = 0; j < 3; j ++)
316 face->vertex_indices[j] =
317 g3d_stream_read_int16_le(stream);
318 dlen -= 6;
319 len -= 6;
320
321 object->faces = g_slist_append(object->faces, face);
322 }
323 break;
324
325 default:
326#if DEBUG > 0
327 printf("D: skipping tag '%c%c%c%c @ 0x%08x'\n",
328 (id << 24) & 0xFF, (id << 16) & 0xFF,
329 (id << 8) & 0xFF, id & 0xFF,
330 (guint32)g3d_stream_tell(stream));
331#endif
332 g3d_stream_skip(stream, len);
333 dlen -= len;
334 break;
335 }
336 } while((dlen > 0) && (id != G3D_IFF_MKID('G','E','N','D')));
337
338 /* fix faces with normals and texture vertices */
339 for(item = object->faces; item != NULL; item = item->next) {
340 face = (G3DFace *)item->data;
341
342 if(tex_vertices != NULL) {
343 face->tex_image = material->tex_image;
344 face->tex_vertex_count = 3;
345 face->tex_vertex_data = g_new0(G3DFloat, 3 * 2);
346 for(j = 0; j < 3; j ++) {
347 index = face->vertex_indices[j];
348 face->tex_vertex_data[j * 2 + 0] = tex_vertices[index * 2 + 0];
349 face->tex_vertex_data[j * 2 + 1] = tex_vertices[index * 2 + 1];
350 }
351 if(face->tex_image != NULL)
352 face->flags |= G3D_FLAG_FAC_TEXMAP;
353 }
354
355 if(normals != NULL) {
356 face->normals = g_new0(G3DFloat, 3 * 3);
357 for(j = 0; j < 3; j ++) {
358 index = face->vertex_indices[j];
359 face->normals[j * 3 + 0] = normals[index * 3 + 0];
360 face->normals[j * 3 + 1] = normals[index * 3 + 1];
361 face->normals[j * 3 + 2] = normals[index * 3 + 2];
362 }
363 face->flags |= G3D_FLAG_FAC_NORMALS;
364 }
365 }
366
367 /* cleanup */
368 if(tex_vertices != NULL)
369 g_free(tex_vertices);
370
371 if(normals != NULL)
372 g_free(normals);
373
374 return object;
375}
376
377G3DObject *ar_dof_load(G3DContext *context, G3DModel *model,
378 G3DStream *stream)
379{
380 gint32 id, dlen, len = 0, nmat, nobj, i;
381 G3DObject *object, *cobj;
382 G3DMaterial *material;
383
384 /* file is little-endian, but read IDs as big-endian to use
385 * G3D_IFF_MKID to compare */
386
387 id = g3d_stream_read_int32_be(stream);
388 if(id != G3D_IFF_MKID('D','O','F','1')) {
389 g_warning("%s is not a DOF1 file\n", stream->uri);
390 return NULL;
391 }
392 dlen = g3d_stream_read_int32_le(stream);
393
394 object = g_new0(G3DObject, 1);
395 object->name = g_strdup(stream->uri);
396 model->objects = g_slist_append(model->objects, object);
397
398 do {
399 id = g3d_stream_read_int32_be(stream);
400 if(id != G3D_IFF_MKID('E','D','O','F'))
401 len = g3d_stream_read_int32_le(stream);
402 dlen -= 8;
403
404 switch(id) {
405 case G3D_IFF_MKID('E','D','O','F'):
406 /* end of DOF */
407 break;
408
409 case G3D_IFF_MKID('M','A','T','S'):
410 nmat = g3d_stream_read_int32_le(stream);
411 for(i = 0; i < nmat; i ++) {
412 material = ar_dof_load_mat(context, model, stream);
413 if(material)
414 object->materials = g_slist_append(object->materials,
415 material);
416 }
417 dlen -= len;
418 break;
419
420 case G3D_IFF_MKID('G','E','O','B'):
421 nobj = g3d_stream_read_int32_le(stream);
422 for(i = 0; i < nobj; i ++) {
423 cobj = ar_dof_load_obj(context, model, stream);
424 if(cobj)
425 object->objects =
426 g_slist_append(object->objects, cobj);
427 }
428 dlen -= len;
429 break;
430
431 default:
432 g_warning("DOF: unknown ID '%c%c%c%c' @ 0x%08x",
433 (id >> 24) & 0xFF, (id >> 16) & 0xFF,
434 (id >> 8) & 0xFF, id & 0xFF,
435 (guint32)g3d_stream_tell(stream) - 8);
436 g3d_stream_skip(stream, len);
437 dlen -= len;
438 break;
439 }
440 } while((dlen > 0) &&
441 (id != G3D_IFF_MKID('E','D','O','F')) &&
442 (!g3d_stream_eof(stream)));
443
444 return object;
445}
446
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_dof.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_dof.h
new file mode 100644
index 0000000..c3aa61a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_dof.h
@@ -0,0 +1,33 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef _IMP_AR_DOF_H
24#define _IMP_AR_DOF_H
25
26#include <glib.h>
27#include <g3d/types.h>
28#include <g3d/stream.h>
29
30G3DObject *ar_dof_load(G3DContext *context, G3DModel *model,
31 G3DStream *stream);
32
33#endif
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/Makefile
new file mode 100644
index 0000000..6f862f9
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/Makefile
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_ase/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_ase
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_ase_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_ase_la_OBJECTS = imp_ase.lo
59imp_ase_la_OBJECTS = $(am_imp_ase_la_OBJECTS)
60DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_ase_la_SOURCES)
73DIST_SOURCES = $(imp_ase_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
78AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
79AR = ar
80AS = as
81AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
82AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
83AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
84AWK = gawk
85CC = gcc
86CCDEPMODE = depmode=gcc3
87CFLAGS = -g -O2
88CPP = gcc -E
89CPPFLAGS =
90CXX = g++
91CXXCPP = g++ -E
92CXXDEPMODE = depmode=gcc3
93CXXFLAGS = -g -O2
94CYGPATH_W = echo
95DBG_CFLAGS = -O2
96DEBUG = 0
97DEFS = -DHAVE_CONFIG_H
98DEPDIR = .deps
99DLLTOOL = dlltool
100ECHO = echo
101ECHO_C =
102ECHO_N = -n
103ECHO_T =
104EGREP = /bin/grep -E
105EXEEXT =
106F77 =
107FFLAGS =
108GDKPIXBUF_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
109GDKPIXBUF_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
110GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
111GLIB_GENMARSHAL = glib-genmarshal
112GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
113GLIB_MKENUMS = glib-mkenums
114GOBJECT_QUERY = gobject-query
115GREP = /bin/grep
116GTKDOC_CHECK = /usr/bin/gtkdoc-check
117GTK_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
118GTK_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
119HTML_DIR = ${datadir}/gtk-doc/html
120INSTALL = /usr/bin/install -c
121INSTALL_DATA = ${INSTALL} -m 644
122INSTALL_PROGRAM = ${INSTALL}
123INSTALL_SCRIPT = ${INSTALL}
124INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
125LDFLAGS =
126LEX = flex
127LEXLIB = -lfl
128LEX_OUTPUT_ROOT = lex.yy
129LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
130LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
131LIBOBJS =
132LIBS = -lm
133LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
134LIBXML2_CFLAGS = -I/usr/include/libxml2
135LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
136LN_S = ln -s
137LTLIBOBJS =
138LTVERSION = 0:8:0
139MAGIC_LIBS = -lmagic
140MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
141MATH_LIBS = -lm
142MKDIR_P = /bin/mkdir -p
143OBJDUMP = objdump
144OBJEXT = o
145PACKAGE = libg3d
146PACKAGE_BUGREPORT =
147PACKAGE_NAME =
148PACKAGE_STRING =
149PACKAGE_TARNAME =
150PACKAGE_VERSION =
151PATH_SEPARATOR = :
152PKG_CONFIG = /usr/bin/pkg-config
153PLUGINS_LDFLAGS = -avoid-version -export-dynamic
154RANLIB = ranlib
155SET_MAKE =
156SHELL = /bin/bash
157STRIP = strip
158VERSION = 0.0.8
159XML2_CONFIG = /usr/bin/xml2-config
160XML_CPPFLAGS = -I/usr/include/libxml2
161XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
162Z_CFLAGS =
163Z_LIBS = -lz
164abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase
165abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase
166abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
167abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168ac_ct_CC = gcc
169ac_ct_CXX = g++
170ac_ct_F77 =
171am__include = include
172am__leading_dot = .
173am__quote =
174am__tar = ${AMTAR} chof - "$$tardir"
175am__untar = ${AMTAR} xf -
176bindir = ${exec_prefix}/bin
177build = x86_64-unknown-linux-gnu
178build_alias =
179build_cpu = x86_64
180build_os = linux-gnu
181build_vendor = unknown
182builddir = .
183datadir = ${datarootdir}
184datarootdir = ${prefix}/share
185docdir = ${datarootdir}/doc/${PACKAGE}
186dvidir = ${docdir}
187exec_prefix = ${prefix}
188host = x86_64-unknown-linux-gnu
189host_alias =
190host_cpu = x86_64
191host_os = linux-gnu
192host_vendor = unknown
193htmldir = ${docdir}
194includedir = ${prefix}/include
195infodir = ${datarootdir}/info
196install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
197libdir = ${exec_prefix}/lib
198libexecdir = ${exec_prefix}/libexec
199localedir = ${datarootdir}/locale
200localstatedir = ${prefix}/var
201mandir = ${datarootdir}/man
202mkdir_p = /bin/mkdir -p
203oldincludedir = /usr/include
204pdfdir = ${docdir}
205prefix = /usr/local
206program_transform_name = s,x,x,
207psdir = ${docdir}
208sbindir = ${exec_prefix}/sbin
209sharedstatedir = ${prefix}/com
210srcdir = .
211sysconfdir = ${prefix}/etc
212target_alias =
213top_builddir = ../../..
214top_srcdir = ../../..
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_ase.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 -O2 -DDEBUG=0 \
221 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 -avoid-version -export-dynamic
227
228imp_ase_la_SOURCES = imp_ase.c
229imp_ase_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_ase/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_ase/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_ase.la: $(imp_ase_la_OBJECTS) $(imp_ase_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_ase_la_OBJECTS) $(imp_ase_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299include ./$(DEPDIR)/imp_ase.Plo
300
301.c.o:
302 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304# source='$<' object='$@' libtool=no \
305# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
306# $(COMPILE) -c $<
307
308.c.obj:
309 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311# source='$<' object='$@' libtool=no \
312# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
313# $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318# source='$<' object='$@' libtool=yes \
319# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
320# $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/Makefile.am
new file mode 100644
index 0000000..867c6d3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/Makefile.am
@@ -0,0 +1,20 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_ase.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_ase_la_SOURCES = imp_ase.c
20imp_ase_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/Makefile.in
new file mode 100644
index 0000000..45a4ccb
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/Makefile.in
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_ase
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_ase_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_ase_la_OBJECTS = imp_ase.lo
59imp_ase_la_OBJECTS = $(am_imp_ase_la_OBJECTS)
60DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_ase_la_SOURCES)
73DIST_SOURCES = $(imp_ase_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = @ACLOCAL@
78AMTAR = @AMTAR@
79AR = @AR@
80AS = @AS@
81AUTOCONF = @AUTOCONF@
82AUTOHEADER = @AUTOHEADER@
83AUTOMAKE = @AUTOMAKE@
84AWK = @AWK@
85CC = @CC@
86CCDEPMODE = @CCDEPMODE@
87CFLAGS = @CFLAGS@
88CPP = @CPP@
89CPPFLAGS = @CPPFLAGS@
90CXX = @CXX@
91CXXCPP = @CXXCPP@
92CXXDEPMODE = @CXXDEPMODE@
93CXXFLAGS = @CXXFLAGS@
94CYGPATH_W = @CYGPATH_W@
95DBG_CFLAGS = @DBG_CFLAGS@
96DEBUG = @DEBUG@
97DEFS = @DEFS@
98DEPDIR = @DEPDIR@
99DLLTOOL = @DLLTOOL@
100ECHO = @ECHO@
101ECHO_C = @ECHO_C@
102ECHO_N = @ECHO_N@
103ECHO_T = @ECHO_T@
104EGREP = @EGREP@
105EXEEXT = @EXEEXT@
106F77 = @F77@
107FFLAGS = @FFLAGS@
108GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
109GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
110GLIB_CFLAGS = @GLIB_CFLAGS@
111GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
112GLIB_LIBS = @GLIB_LIBS@
113GLIB_MKENUMS = @GLIB_MKENUMS@
114GOBJECT_QUERY = @GOBJECT_QUERY@
115GREP = @GREP@
116GTKDOC_CHECK = @GTKDOC_CHECK@
117GTK_CFLAGS = @GTK_CFLAGS@
118GTK_LIBS = @GTK_LIBS@
119HTML_DIR = @HTML_DIR@
120INSTALL = @INSTALL@
121INSTALL_DATA = @INSTALL_DATA@
122INSTALL_PROGRAM = @INSTALL_PROGRAM@
123INSTALL_SCRIPT = @INSTALL_SCRIPT@
124INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125LDFLAGS = @LDFLAGS@
126LEX = @LEX@
127LEXLIB = @LEXLIB@
128LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
129LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
130LIBGSF_LIBS = @LIBGSF_LIBS@
131LIBOBJS = @LIBOBJS@
132LIBS = @LIBS@
133LIBTOOL = @LIBTOOL@ --quiet
134LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
135LIBXML2_LIBS = @LIBXML2_LIBS@
136LN_S = @LN_S@
137LTLIBOBJS = @LTLIBOBJS@
138LTVERSION = @LTVERSION@
139MAGIC_LIBS = @MAGIC_LIBS@
140MAKEINFO = @MAKEINFO@
141MATH_LIBS = @MATH_LIBS@
142MKDIR_P = @MKDIR_P@
143OBJDUMP = @OBJDUMP@
144OBJEXT = @OBJEXT@
145PACKAGE = @PACKAGE@
146PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147PACKAGE_NAME = @PACKAGE_NAME@
148PACKAGE_STRING = @PACKAGE_STRING@
149PACKAGE_TARNAME = @PACKAGE_TARNAME@
150PACKAGE_VERSION = @PACKAGE_VERSION@
151PATH_SEPARATOR = @PATH_SEPARATOR@
152PKG_CONFIG = @PKG_CONFIG@
153PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
154RANLIB = @RANLIB@
155SET_MAKE = @SET_MAKE@
156SHELL = @SHELL@
157STRIP = @STRIP@
158VERSION = @VERSION@
159XML2_CONFIG = @XML2_CONFIG@
160XML_CPPFLAGS = @XML_CPPFLAGS@
161XML_LIBS = @XML_LIBS@
162Z_CFLAGS = @Z_CFLAGS@
163Z_LIBS = @Z_LIBS@
164abs_builddir = @abs_builddir@
165abs_srcdir = @abs_srcdir@
166abs_top_builddir = @abs_top_builddir@
167abs_top_srcdir = @abs_top_srcdir@
168ac_ct_CC = @ac_ct_CC@
169ac_ct_CXX = @ac_ct_CXX@
170ac_ct_F77 = @ac_ct_F77@
171am__include = @am__include@
172am__leading_dot = @am__leading_dot@
173am__quote = @am__quote@
174am__tar = @am__tar@
175am__untar = @am__untar@
176bindir = @bindir@
177build = @build@
178build_alias = @build_alias@
179build_cpu = @build_cpu@
180build_os = @build_os@
181build_vendor = @build_vendor@
182builddir = @builddir@
183datadir = @datadir@
184datarootdir = @datarootdir@
185docdir = @docdir@
186dvidir = @dvidir@
187exec_prefix = @exec_prefix@
188host = @host@
189host_alias = @host_alias@
190host_cpu = @host_cpu@
191host_os = @host_os@
192host_vendor = @host_vendor@
193htmldir = @htmldir@
194includedir = @includedir@
195infodir = @infodir@
196install_sh = @install_sh@
197libdir = @libdir@
198libexecdir = @libexecdir@
199localedir = @localedir@
200localstatedir = @localstatedir@
201mandir = @mandir@
202mkdir_p = @mkdir_p@
203oldincludedir = @oldincludedir@
204pdfdir = @pdfdir@
205prefix = @prefix@
206program_transform_name = @program_transform_name@
207psdir = @psdir@
208sbindir = @sbindir@
209sharedstatedir = @sharedstatedir@
210srcdir = @srcdir@
211sysconfdir = @sysconfdir@
212target_alias = @target_alias@
213top_builddir = @top_builddir@
214top_srcdir = @top_srcdir@
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_ase.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
221 @GLIB_CFLAGS@
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 @PLUGINS_LDFLAGS@
227
228imp_ase_la_SOURCES = imp_ase.c
229imp_ase_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_ase/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_ase/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_ase.la: $(imp_ase_la_OBJECTS) $(imp_ase_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_ase_la_OBJECTS) $(imp_ase_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ase.Plo@am__quote@
300
301.c.o:
302@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
305@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
306@am__fastdepCC_FALSE@ $(COMPILE) -c $<
307
308.c.obj:
309@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
313@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
320@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/imp_ase.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/imp_ase.c
new file mode 100644
index 0000000..ed2904a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/imp_ase.c
@@ -0,0 +1,257 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <stdlib.h>
25#include <string.h>
26#include <locale.h>
27
28#include <g3d/types.h>
29#include <g3d/context.h>
30#include <g3d/stream.h>
31#include <g3d/material.h>
32#include <g3d/texture.h>
33#include <g3d/model.h>
34#include <g3d/matrix.h>
35
36EAPI
37gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
38 G3DModel *model)
39{
40 gchar line[2048], tmp[128], *s;
41 guint32 i, j, a, b, c, ab, bc, ca, mtlid, glid = 0, tvertcnt = 0, lnum = 0;
42 G3DVector x, y, z, *tverts = NULL;
43 G3DObject *object = NULL;
44 G3DMaterial *material;
45 G3DFace *face = NULL;
46 G3DMatrix rmatrix[16];
47
48 setlocale(LC_NUMERIC, "C");
49
50 while(g3d_stream_read_line(stream, line, 2048)) {
51 lnum ++;
52 g_strstrip(line);
53
54#if DEBUG > 4
55 g_debug("ASE: %s", line);
56#endif
57
58 if(strncmp(line, "*GEOMOBJECT ", 12) == 0)
59 {
60 object = g_new0(G3DObject, 1);
61 object->name = g_strdup("(unnamed object)");
62
63 model->objects = g_slist_append(model->objects, object);
64 }
65 else if(strncmp(line, "*MATERIAL ", 10) == 0)
66 {
67 material = g3d_material_new();
68 material->name = g_strdup_printf("material %d",
69 g_slist_length(model->materials));
70 model->materials = g_slist_append(model->materials, material);
71
72 if(sscanf(line, "*MATERIAL %u \"%s", &i, tmp) == 2)
73 {
74 tmp[strlen(tmp) - 1] = '\0';
75#if DEBUG > 2
76 g_debug("ASE: material file: %s", tmp);
77#endif
78 /* TODO: parse .fx file */
79 s = g_strdup_printf("%.*s.jpg", ((int) strlen(tmp)) - 3, tmp);
80 material->tex_image =
81 g3d_texture_load_cached(context, model, s);
82 if(material->tex_image)
83 material->tex_image->tex_id = ++ glid;
84 g_free(s);
85 }
86 }
87 else if(strncmp(line, "*NODE_NAME ", 11) == 0)
88 {
89 if(object)
90 {
91 if(object->name)
92 g_free(object->name);
93
94 object->name = g_strdup(line + 11);
95 }
96 }
97 else if(strncmp(line, "*MESH_NUMVERTEX ", 16) == 0)
98 {
99 if(sscanf(line, "*MESH_NUMVERTEX %u", &i) == 1)
100 {
101 if(object)
102 {
103 object->vertex_count = i;
104 object->vertex_data = g_new0(G3DFloat, i * 3);
105 }
106 }
107 }
108 else if(strncmp(line, "*MESH_VERTEX ", 13) == 0)
109 {
110 if(sscanf(line, "*MESH_VERTEX %u " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &i, &x, &y, &z) == 4)
111 {
112 if(object && (i < object->vertex_count))
113 {
114 object->vertex_data[i * 3 + 0] = x;
115 object->vertex_data[i * 3 + 1] = y;
116 object->vertex_data[i * 3 + 2] = z;
117 }
118 }
119 }
120 else if(strncmp(line, "*MESH_FACE ", 11) == 0)
121 {
122 if(object && (sscanf(line, "*MESH_FACE %u: A: %u B: %u C: %u "
123 "AB: %u BC: %u CA: %u *MESH_SMOOTHING %s *MESH_MTLID %u",
124 &i, &a, &b, &c, &ab, &bc, &ca, tmp, &mtlid) == 9))
125 {
126 face = g_new0(G3DFace, 1);
127 face->vertex_count = 3;
128 face->vertex_indices = g_new0(guint32, 3);
129 face->vertex_indices[0] = a;
130 face->vertex_indices[1] = b;
131 face->vertex_indices[2] = c;
132 face->material = g_slist_nth_data(model->materials, mtlid);
133 if(face->material == NULL)
134 face->material = g_slist_nth_data(model->materials, 0);
135 if(face->material == NULL) {
136 face->material = g3d_material_new();
137 face->material->name = g_strdup("(fallback material)");
138 model->materials = g_slist_append(model->materials,
139 face->material);
140 }
141
142 object->faces = g_slist_append(object->faces, face);
143 face = NULL;
144 }
145 }
146 else if(strncmp(line, "*MESH_FACENORMAL ", 17) == 0)
147 {
148 if(object && (sscanf(line, "*MESH_FACENORMAL %u " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT,
149 &i, &x, &y, &z) == 4))
150 {
151 face = g_slist_nth_data(object->faces, i);
152 if(face)
153 {
154 face->flags |= G3D_FLAG_FAC_NORMALS;
155 face->normals = g_new0(G3DFloat, 3 * 3);
156 for(j = 0; j < 3; j ++)
157 {
158 face->normals[j * 3 + 0] = x;
159 face->normals[j * 3 + 1] = y;
160 face->normals[j * 3 + 2] = z;
161 }
162 }
163 }
164 }
165 else if(strncmp(line, "*MESH_VERTEXNORMAL ", 19) == 0)
166 {
167 if(face && face->normals && (sscanf(line,
168 "*MESH_VERTEXNORMAL %u " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &i, &x, &y, &z) == 4))
169 {
170 for(j = 0; j < 3; j ++)
171 {
172 if(face->vertex_indices[j] == i)
173 {
174 face->normals[j * 3 + 0] = x;
175 face->normals[j * 3 + 1] = y;
176 face->normals[j * 3 + 2] = z;
177 }
178 }
179 }
180 }
181 else if(strncmp(line, "*MESH_NUMTVERTEX ", 17) == 0)
182 {
183 /* clear old tvertex data */
184 if(tverts)
185 {
186 g_free(tverts);
187 tvertcnt = 0;
188 }
189
190 if(sscanf(line, "*MESH_NUMTVERTEX %u", &tvertcnt) == 1)
191 tverts = g_new0(G3DFloat, tvertcnt * 2);
192 }
193 else if(strncmp(line, "*MESH_TVERT ", 12) == 0)
194 {
195 if(sscanf(line, "*MESH_TVERT %u " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &i, &x, &y, &z) == 4)
196 {
197 if(i < tvertcnt)
198 {
199 tverts[i * 2 + 0] = x;
200 tverts[i * 2 + 1] = y;
201 }
202 }
203 }
204 else if(strncmp(line, "*MESH_TFACE ", 12) == 0)
205 {
206 if(object && (sscanf(line, "*MESH_TFACE %u %u %u %u",
207 &i, &a, &b, &c) == 4))
208 {
209 face = g_slist_nth_data(object->faces, i);
210 if(face && face->material->tex_image &&
211 (a < tvertcnt) && (b < tvertcnt) && (c < tvertcnt))
212 {
213 face->flags |= G3D_FLAG_FAC_TEXMAP;
214 face->tex_image = face->material->tex_image;
215 face->tex_vertex_count = 3;
216 face->tex_vertex_data = g_new0(G3DFloat, 2 * 3);
217 face->tex_vertex_data[0 * 2 + 0] = tverts[a * 2 + 0];
218 face->tex_vertex_data[0 * 2 + 1] = 1.0 - tverts[a * 2 + 1];
219 face->tex_vertex_data[1 * 2 + 0] = tverts[b * 2 + 0];
220 face->tex_vertex_data[1 * 2 + 1] = 1.0 - tverts[b * 2 + 1];
221 face->tex_vertex_data[2 * 2 + 0] = tverts[c * 2 + 0];
222 face->tex_vertex_data[2 * 2 + 1] = 1.0 - tverts[c * 2 + 1];
223 }
224 }
225 }
226 if((lnum % 10) == 0)
227 g3d_context_update_progress_bar(context,
228 (G3DFloat)g3d_stream_tell(stream) /
229 (G3DFloat)g3d_stream_size(stream), TRUE);
230 } /* read line */
231
232 /* clean up */
233 if(tverts) {
234 g_free(tverts);
235 tvertcnt = 0;
236 }
237 g3d_context_update_progress_bar(context, 0.0, FALSE);
238
239 g3d_matrix_identity(rmatrix);
240 g3d_matrix_rotate_xyz(G_PI * -90.0 / 180, 0.0, 0.0, rmatrix);
241 g3d_model_transform(model, rmatrix);
242
243 return TRUE;
244}
245
246EAPI
247gchar *plugin_description(void)
248{
249 return g_strdup("ASCII Scene Exporter models.");
250}
251
252EAPI
253gchar **plugin_extensions(void)
254{
255 return g_strsplit("ase", ":", 0);
256}
257
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/Makefile
new file mode 100644
index 0000000..a07f936
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/Makefile
@@ -0,0 +1,519 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_blend/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_blend
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_blend_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_blend_la_OBJECTS = imp_blend.lo imp_blend_sdna.lo \
59 imp_blend_read.lo imp_blend_callbacks.lo
60imp_blend_la_OBJECTS = $(am_imp_blend_la_OBJECTS)
61#am_imp_blend_la_rpath = -rpath $(pluginimpdir)
62DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
63depcomp = $(SHELL) $(top_srcdir)/config/depcomp
64am__depfiles_maybe = depfiles
65COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
66 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
67LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
68 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
69 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
70CCLD = $(CC)
71LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
72 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
73 $(LDFLAGS) -o $@
74SOURCES = $(imp_blend_la_SOURCES)
75DIST_SOURCES = $(imp_blend_la_SOURCES)
76ETAGS = etags
77CTAGS = ctags
78DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
79ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
80AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
81AR = ar
82AS = as
83AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
84AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
85AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
86AWK = gawk
87CC = gcc
88CCDEPMODE = depmode=gcc3
89CFLAGS = -g -O2
90CPP = gcc -E
91CPPFLAGS =
92CXX = g++
93CXXCPP = g++ -E
94CXXDEPMODE = depmode=gcc3
95CXXFLAGS = -g -O2
96CYGPATH_W = echo
97DBG_CFLAGS = -O2
98DEBUG = 0
99DEFS = -DHAVE_CONFIG_H
100DEPDIR = .deps
101DLLTOOL = dlltool
102ECHO = echo
103ECHO_C =
104ECHO_N = -n
105ECHO_T =
106EGREP = /bin/grep -E
107EXEEXT =
108F77 =
109FFLAGS =
110GDKPIXBUF_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
111GDKPIXBUF_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
112GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
113GLIB_GENMARSHAL = glib-genmarshal
114GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
115GLIB_MKENUMS = glib-mkenums
116GOBJECT_QUERY = gobject-query
117GREP = /bin/grep
118GTKDOC_CHECK = /usr/bin/gtkdoc-check
119GTK_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
120GTK_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
121HTML_DIR = ${datadir}/gtk-doc/html
122INSTALL = /usr/bin/install -c
123INSTALL_DATA = ${INSTALL} -m 644
124INSTALL_PROGRAM = ${INSTALL}
125INSTALL_SCRIPT = ${INSTALL}
126INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
127LDFLAGS =
128LEX = flex
129LEXLIB = -lfl
130LEX_OUTPUT_ROOT = lex.yy
131LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
132LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
133LIBOBJS =
134LIBS = -lm
135LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
136LIBXML2_CFLAGS = -I/usr/include/libxml2
137LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
138LN_S = ln -s
139LTLIBOBJS =
140LTVERSION = 0:8:0
141MAGIC_LIBS = -lmagic
142MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
143MATH_LIBS = -lm
144MKDIR_P = /bin/mkdir -p
145OBJDUMP = objdump
146OBJEXT = o
147PACKAGE = libg3d
148PACKAGE_BUGREPORT =
149PACKAGE_NAME =
150PACKAGE_STRING =
151PACKAGE_TARNAME =
152PACKAGE_VERSION =
153PATH_SEPARATOR = :
154PKG_CONFIG = /usr/bin/pkg-config
155PLUGINS_LDFLAGS = -avoid-version -export-dynamic
156RANLIB = ranlib
157SET_MAKE =
158SHELL = /bin/bash
159STRIP = strip
160VERSION = 0.0.8
161XML2_CONFIG = /usr/bin/xml2-config
162XML_CPPFLAGS = -I/usr/include/libxml2
163XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
164Z_CFLAGS =
165Z_LIBS = -lz
166abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend
167abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend
168abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
170ac_ct_CC = gcc
171ac_ct_CXX = g++
172ac_ct_F77 =
173am__include = include
174am__leading_dot = .
175am__quote =
176am__tar = ${AMTAR} chof - "$$tardir"
177am__untar = ${AMTAR} xf -
178bindir = ${exec_prefix}/bin
179build = x86_64-unknown-linux-gnu
180build_alias =
181build_cpu = x86_64
182build_os = linux-gnu
183build_vendor = unknown
184builddir = .
185datadir = ${datarootdir}
186datarootdir = ${prefix}/share
187docdir = ${datarootdir}/doc/${PACKAGE}
188dvidir = ${docdir}
189exec_prefix = ${prefix}
190host = x86_64-unknown-linux-gnu
191host_alias =
192host_cpu = x86_64
193host_os = linux-gnu
194host_vendor = unknown
195htmldir = ${docdir}
196includedir = ${prefix}/include
197infodir = ${datarootdir}/info
198install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
199libdir = ${exec_prefix}/lib
200libexecdir = ${exec_prefix}/libexec
201localedir = ${datarootdir}/locale
202localstatedir = ${prefix}/var
203mandir = ${datarootdir}/man
204mkdir_p = /bin/mkdir -p
205oldincludedir = /usr/include
206pdfdir = ${docdir}
207prefix = /usr/local
208program_transform_name = s,x,x,
209psdir = ${docdir}
210sbindir = ${exec_prefix}/sbin
211sharedstatedir = ${prefix}/com
212srcdir = .
213sysconfdir = ${prefix}/etc
214target_alias =
215top_builddir = ../../..
216top_srcdir = ../../..
217pluginimpdir = $(pkglibdir)/plugins/import
218#pluginimp_LTLIBRARIES = imp_blend.la
219AM_CFLAGS = \
220 -Wall -ansi -pedantic \
221 -DG_LOG_DOMAIN=\"LibG3D\" \
222 -O2 -DDEBUG=0 \
223 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
224
225INCLUDES = -I$(top_srcdir)/include
226AM_LDFLAGS = \
227 -no-undefined -module \
228 -avoid-version -export-dynamic
229
230imp_blend_la_SOURCES = imp_blend.c imp_blend_def.h \
231 imp_blend_types.h imp_blend_chunks.h \
232 imp_blend_sdna.c imp_blend_sdna.h \
233 imp_blend_read.c imp_blend_read.h \
234 imp_blend_callbacks.h imp_blend_callbacks.c
235
236imp_blend_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
237all: all-am
238
239.SUFFIXES:
240.SUFFIXES: .c .lo .o .obj
241$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
242 @for dep in $?; do \
243 case '$(am__configure_deps)' in \
244 *$$dep*) \
245 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
246 && exit 0; \
247 exit 1;; \
248 esac; \
249 done; \
250 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_blend/Makefile'; \
251 cd $(top_srcdir) && \
252 $(AUTOMAKE) --gnu plugins/import/imp_blend/Makefile
253.PRECIOUS: Makefile
254Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
255 @case '$?' in \
256 *config.status*) \
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
258 *) \
259 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
260 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
261 esac;
262
263$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265
266$(top_srcdir)/configure: $(am__configure_deps)
267 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
268$(ACLOCAL_M4): $(am__aclocal_m4_deps)
269 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
270install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
271 @$(NORMAL_INSTALL)
272 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
273 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
274 if test -f $$p; then \
275 f=$(am__strip_dir) \
276 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
277 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
278 else :; fi; \
279 done
280
281uninstall-pluginimpLTLIBRARIES:
282 @$(NORMAL_UNINSTALL)
283 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
284 p=$(am__strip_dir) \
285 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
286 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
287 done
288
289clean-pluginimpLTLIBRARIES:
290 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
291 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
292 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
293 test "$$dir" != "$$p" || dir=.; \
294 echo "rm -f \"$${dir}/so_locations\""; \
295 rm -f "$${dir}/so_locations"; \
296 done
297imp_blend.la: $(imp_blend_la_OBJECTS) $(imp_blend_la_DEPENDENCIES)
298 $(LINK) $(am_imp_blend_la_rpath) $(imp_blend_la_OBJECTS) $(imp_blend_la_LIBADD) $(LIBS)
299
300mostlyclean-compile:
301 -rm -f *.$(OBJEXT)
302
303distclean-compile:
304 -rm -f *.tab.c
305
306include ./$(DEPDIR)/imp_blend.Plo
307include ./$(DEPDIR)/imp_blend_callbacks.Plo
308include ./$(DEPDIR)/imp_blend_read.Plo
309include ./$(DEPDIR)/imp_blend_sdna.Plo
310
311.c.o:
312 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
313 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
314# source='$<' object='$@' libtool=no \
315# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
316# $(COMPILE) -c $<
317
318.c.obj:
319 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
320 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
321# source='$<' object='$@' libtool=no \
322# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
323# $(COMPILE) -c `$(CYGPATH_W) '$<'`
324
325.c.lo:
326 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
327 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
328# source='$<' object='$@' libtool=yes \
329# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
330# $(LTCOMPILE) -c -o $@ $<
331
332mostlyclean-libtool:
333 -rm -f *.lo
334
335clean-libtool:
336 -rm -rf .libs _libs
337
338ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
339 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
340 unique=`for i in $$list; do \
341 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
342 done | \
343 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
344 END { if (nonempty) { for (i in files) print i; }; }'`; \
345 mkid -fID $$unique
346tags: TAGS
347
348TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
349 $(TAGS_FILES) $(LISP)
350 tags=; \
351 here=`pwd`; \
352 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
353 unique=`for i in $$list; do \
354 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
355 done | \
356 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
357 END { if (nonempty) { for (i in files) print i; }; }'`; \
358 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
359 test -n "$$unique" || unique=$$empty_fix; \
360 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
361 $$tags $$unique; \
362 fi
363ctags: CTAGS
364CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
365 $(TAGS_FILES) $(LISP)
366 tags=; \
367 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
368 unique=`for i in $$list; do \
369 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
370 done | \
371 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
372 END { if (nonempty) { for (i in files) print i; }; }'`; \
373 test -z "$(CTAGS_ARGS)$$tags$$unique" \
374 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
375 $$tags $$unique
376
377GTAGS:
378 here=`$(am__cd) $(top_builddir) && pwd` \
379 && cd $(top_srcdir) \
380 && gtags -i $(GTAGS_ARGS) $$here
381
382distclean-tags:
383 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
384
385distdir: $(DISTFILES)
386 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
387 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
388 list='$(DISTFILES)'; \
389 dist_files=`for file in $$list; do echo $$file; done | \
390 sed -e "s|^$$srcdirstrip/||;t" \
391 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
392 case $$dist_files in \
393 */*) $(MKDIR_P) `echo "$$dist_files" | \
394 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
395 sort -u` ;; \
396 esac; \
397 for file in $$dist_files; do \
398 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
399 if test -d $$d/$$file; then \
400 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
401 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
402 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
403 fi; \
404 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
405 else \
406 test -f $(distdir)/$$file \
407 || cp -p $$d/$$file $(distdir)/$$file \
408 || exit 1; \
409 fi; \
410 done
411check-am: all-am
412check: check-am
413all-am: Makefile $(LTLIBRARIES)
414installdirs:
415 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
416 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
417 done
418install: install-am
419install-exec: install-exec-am
420install-data: install-data-am
421uninstall: uninstall-am
422
423install-am: all-am
424 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
425
426installcheck: installcheck-am
427install-strip:
428 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
429 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
430 `test -z '$(STRIP)' || \
431 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
432mostlyclean-generic:
433
434clean-generic:
435
436distclean-generic:
437 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
438
439maintainer-clean-generic:
440 @echo "This command is intended for maintainers to use"
441 @echo "it deletes files that may require special tools to rebuild."
442clean: clean-am
443
444clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
445 mostlyclean-am
446
447distclean: distclean-am
448 -rm -rf ./$(DEPDIR)
449 -rm -f Makefile
450distclean-am: clean-am distclean-compile distclean-generic \
451 distclean-tags
452
453dvi: dvi-am
454
455dvi-am:
456
457html: html-am
458
459info: info-am
460
461info-am:
462
463install-data-am: install-pluginimpLTLIBRARIES
464
465install-dvi: install-dvi-am
466
467install-exec-am:
468
469install-html: install-html-am
470
471install-info: install-info-am
472
473install-man:
474
475install-pdf: install-pdf-am
476
477install-ps: install-ps-am
478
479installcheck-am:
480
481maintainer-clean: maintainer-clean-am
482 -rm -rf ./$(DEPDIR)
483 -rm -f Makefile
484maintainer-clean-am: distclean-am maintainer-clean-generic
485
486mostlyclean: mostlyclean-am
487
488mostlyclean-am: mostlyclean-compile mostlyclean-generic \
489 mostlyclean-libtool
490
491pdf: pdf-am
492
493pdf-am:
494
495ps: ps-am
496
497ps-am:
498
499uninstall-am: uninstall-pluginimpLTLIBRARIES
500
501.MAKE: install-am install-strip
502
503.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
504 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
505 distclean-compile distclean-generic distclean-libtool \
506 distclean-tags distdir dvi dvi-am html html-am info info-am \
507 install install-am install-data install-data-am install-dvi \
508 install-dvi-am install-exec install-exec-am install-html \
509 install-html-am install-info install-info-am install-man \
510 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
511 install-ps install-ps-am install-strip installcheck \
512 installcheck-am installdirs maintainer-clean \
513 maintainer-clean-generic mostlyclean mostlyclean-compile \
514 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
515 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
516
517# Tell versions [3.59,3.63) of GNU make to not export all variables.
518# Otherwise a system limit (for SysV at least) may be exceeded.
519.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/Makefile.am
new file mode 100644
index 0000000..7cc9cf5
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/Makefile.am
@@ -0,0 +1,26 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if EXPERIMENTAL
4pluginimp_LTLIBRARIES = imp_blend.la
5endif
6
7AM_CFLAGS = \
8 -Wall -ansi -pedantic \
9 -DG_LOG_DOMAIN=\"LibG3D\" \
10 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
11 @GLIB_CFLAGS@
12
13INCLUDES = -I$(top_srcdir)/include
14
15AM_LDFLAGS = \
16 -no-undefined -module \
17 @PLUGINS_LDFLAGS@
18
19LIBTOOL += --quiet
20
21imp_blend_la_SOURCES = imp_blend.c imp_blend_def.h \
22 imp_blend_types.h imp_blend_chunks.h \
23 imp_blend_sdna.c imp_blend_sdna.h \
24 imp_blend_read.c imp_blend_read.h \
25 imp_blend_callbacks.h imp_blend_callbacks.c
26imp_blend_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/Makefile.in
new file mode 100644
index 0000000..00b28ba
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/Makefile.in
@@ -0,0 +1,519 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_blend
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_blend_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_blend_la_OBJECTS = imp_blend.lo imp_blend_sdna.lo \
59 imp_blend_read.lo imp_blend_callbacks.lo
60imp_blend_la_OBJECTS = $(am_imp_blend_la_OBJECTS)
61@EXPERIMENTAL_TRUE@am_imp_blend_la_rpath = -rpath $(pluginimpdir)
62DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
63depcomp = $(SHELL) $(top_srcdir)/config/depcomp
64am__depfiles_maybe = depfiles
65COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
66 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
67LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
68 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
69 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
70CCLD = $(CC)
71LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
72 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
73 $(LDFLAGS) -o $@
74SOURCES = $(imp_blend_la_SOURCES)
75DIST_SOURCES = $(imp_blend_la_SOURCES)
76ETAGS = etags
77CTAGS = ctags
78DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
79ACLOCAL = @ACLOCAL@
80AMTAR = @AMTAR@
81AR = @AR@
82AS = @AS@
83AUTOCONF = @AUTOCONF@
84AUTOHEADER = @AUTOHEADER@
85AUTOMAKE = @AUTOMAKE@
86AWK = @AWK@
87CC = @CC@
88CCDEPMODE = @CCDEPMODE@
89CFLAGS = @CFLAGS@
90CPP = @CPP@
91CPPFLAGS = @CPPFLAGS@
92CXX = @CXX@
93CXXCPP = @CXXCPP@
94CXXDEPMODE = @CXXDEPMODE@
95CXXFLAGS = @CXXFLAGS@
96CYGPATH_W = @CYGPATH_W@
97DBG_CFLAGS = @DBG_CFLAGS@
98DEBUG = @DEBUG@
99DEFS = @DEFS@
100DEPDIR = @DEPDIR@
101DLLTOOL = @DLLTOOL@
102ECHO = @ECHO@
103ECHO_C = @ECHO_C@
104ECHO_N = @ECHO_N@
105ECHO_T = @ECHO_T@
106EGREP = @EGREP@
107EXEEXT = @EXEEXT@
108F77 = @F77@
109FFLAGS = @FFLAGS@
110GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
111GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
112GLIB_CFLAGS = @GLIB_CFLAGS@
113GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
114GLIB_LIBS = @GLIB_LIBS@
115GLIB_MKENUMS = @GLIB_MKENUMS@
116GOBJECT_QUERY = @GOBJECT_QUERY@
117GREP = @GREP@
118GTKDOC_CHECK = @GTKDOC_CHECK@
119GTK_CFLAGS = @GTK_CFLAGS@
120GTK_LIBS = @GTK_LIBS@
121HTML_DIR = @HTML_DIR@
122INSTALL = @INSTALL@
123INSTALL_DATA = @INSTALL_DATA@
124INSTALL_PROGRAM = @INSTALL_PROGRAM@
125INSTALL_SCRIPT = @INSTALL_SCRIPT@
126INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
127LDFLAGS = @LDFLAGS@
128LEX = @LEX@
129LEXLIB = @LEXLIB@
130LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
131LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
132LIBGSF_LIBS = @LIBGSF_LIBS@
133LIBOBJS = @LIBOBJS@
134LIBS = @LIBS@
135LIBTOOL = @LIBTOOL@ --quiet
136LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
137LIBXML2_LIBS = @LIBXML2_LIBS@
138LN_S = @LN_S@
139LTLIBOBJS = @LTLIBOBJS@
140LTVERSION = @LTVERSION@
141MAGIC_LIBS = @MAGIC_LIBS@
142MAKEINFO = @MAKEINFO@
143MATH_LIBS = @MATH_LIBS@
144MKDIR_P = @MKDIR_P@
145OBJDUMP = @OBJDUMP@
146OBJEXT = @OBJEXT@
147PACKAGE = @PACKAGE@
148PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
149PACKAGE_NAME = @PACKAGE_NAME@
150PACKAGE_STRING = @PACKAGE_STRING@
151PACKAGE_TARNAME = @PACKAGE_TARNAME@
152PACKAGE_VERSION = @PACKAGE_VERSION@
153PATH_SEPARATOR = @PATH_SEPARATOR@
154PKG_CONFIG = @PKG_CONFIG@
155PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
156RANLIB = @RANLIB@
157SET_MAKE = @SET_MAKE@
158SHELL = @SHELL@
159STRIP = @STRIP@
160VERSION = @VERSION@
161XML2_CONFIG = @XML2_CONFIG@
162XML_CPPFLAGS = @XML_CPPFLAGS@
163XML_LIBS = @XML_LIBS@
164Z_CFLAGS = @Z_CFLAGS@
165Z_LIBS = @Z_LIBS@
166abs_builddir = @abs_builddir@
167abs_srcdir = @abs_srcdir@
168abs_top_builddir = @abs_top_builddir@
169abs_top_srcdir = @abs_top_srcdir@
170ac_ct_CC = @ac_ct_CC@
171ac_ct_CXX = @ac_ct_CXX@
172ac_ct_F77 = @ac_ct_F77@
173am__include = @am__include@
174am__leading_dot = @am__leading_dot@
175am__quote = @am__quote@
176am__tar = @am__tar@
177am__untar = @am__untar@
178bindir = @bindir@
179build = @build@
180build_alias = @build_alias@
181build_cpu = @build_cpu@
182build_os = @build_os@
183build_vendor = @build_vendor@
184builddir = @builddir@
185datadir = @datadir@
186datarootdir = @datarootdir@
187docdir = @docdir@
188dvidir = @dvidir@
189exec_prefix = @exec_prefix@
190host = @host@
191host_alias = @host_alias@
192host_cpu = @host_cpu@
193host_os = @host_os@
194host_vendor = @host_vendor@
195htmldir = @htmldir@
196includedir = @includedir@
197infodir = @infodir@
198install_sh = @install_sh@
199libdir = @libdir@
200libexecdir = @libexecdir@
201localedir = @localedir@
202localstatedir = @localstatedir@
203mandir = @mandir@
204mkdir_p = @mkdir_p@
205oldincludedir = @oldincludedir@
206pdfdir = @pdfdir@
207prefix = @prefix@
208program_transform_name = @program_transform_name@
209psdir = @psdir@
210sbindir = @sbindir@
211sharedstatedir = @sharedstatedir@
212srcdir = @srcdir@
213sysconfdir = @sysconfdir@
214target_alias = @target_alias@
215top_builddir = @top_builddir@
216top_srcdir = @top_srcdir@
217pluginimpdir = $(pkglibdir)/plugins/import
218@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_blend.la
219AM_CFLAGS = \
220 -Wall -ansi -pedantic \
221 -DG_LOG_DOMAIN=\"LibG3D\" \
222 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
223 @GLIB_CFLAGS@
224
225INCLUDES = -I$(top_srcdir)/include
226AM_LDFLAGS = \
227 -no-undefined -module \
228 @PLUGINS_LDFLAGS@
229
230imp_blend_la_SOURCES = imp_blend.c imp_blend_def.h \
231 imp_blend_types.h imp_blend_chunks.h \
232 imp_blend_sdna.c imp_blend_sdna.h \
233 imp_blend_read.c imp_blend_read.h \
234 imp_blend_callbacks.h imp_blend_callbacks.c
235
236imp_blend_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
237all: all-am
238
239.SUFFIXES:
240.SUFFIXES: .c .lo .o .obj
241$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
242 @for dep in $?; do \
243 case '$(am__configure_deps)' in \
244 *$$dep*) \
245 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
246 && exit 0; \
247 exit 1;; \
248 esac; \
249 done; \
250 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_blend/Makefile'; \
251 cd $(top_srcdir) && \
252 $(AUTOMAKE) --gnu plugins/import/imp_blend/Makefile
253.PRECIOUS: Makefile
254Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
255 @case '$?' in \
256 *config.status*) \
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
258 *) \
259 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
260 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
261 esac;
262
263$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265
266$(top_srcdir)/configure: $(am__configure_deps)
267 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
268$(ACLOCAL_M4): $(am__aclocal_m4_deps)
269 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
270install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
271 @$(NORMAL_INSTALL)
272 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
273 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
274 if test -f $$p; then \
275 f=$(am__strip_dir) \
276 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
277 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
278 else :; fi; \
279 done
280
281uninstall-pluginimpLTLIBRARIES:
282 @$(NORMAL_UNINSTALL)
283 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
284 p=$(am__strip_dir) \
285 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
286 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
287 done
288
289clean-pluginimpLTLIBRARIES:
290 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
291 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
292 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
293 test "$$dir" != "$$p" || dir=.; \
294 echo "rm -f \"$${dir}/so_locations\""; \
295 rm -f "$${dir}/so_locations"; \
296 done
297imp_blend.la: $(imp_blend_la_OBJECTS) $(imp_blend_la_DEPENDENCIES)
298 $(LINK) $(am_imp_blend_la_rpath) $(imp_blend_la_OBJECTS) $(imp_blend_la_LIBADD) $(LIBS)
299
300mostlyclean-compile:
301 -rm -f *.$(OBJEXT)
302
303distclean-compile:
304 -rm -f *.tab.c
305
306@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_blend.Plo@am__quote@
307@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_blend_callbacks.Plo@am__quote@
308@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_blend_read.Plo@am__quote@
309@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_blend_sdna.Plo@am__quote@
310
311.c.o:
312@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
313@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
314@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
315@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
316@am__fastdepCC_FALSE@ $(COMPILE) -c $<
317
318.c.obj:
319@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
320@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
321@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
322@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
323@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
324
325.c.lo:
326@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
327@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
328@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
329@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
330@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
331
332mostlyclean-libtool:
333 -rm -f *.lo
334
335clean-libtool:
336 -rm -rf .libs _libs
337
338ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
339 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
340 unique=`for i in $$list; do \
341 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
342 done | \
343 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
344 END { if (nonempty) { for (i in files) print i; }; }'`; \
345 mkid -fID $$unique
346tags: TAGS
347
348TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
349 $(TAGS_FILES) $(LISP)
350 tags=; \
351 here=`pwd`; \
352 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
353 unique=`for i in $$list; do \
354 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
355 done | \
356 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
357 END { if (nonempty) { for (i in files) print i; }; }'`; \
358 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
359 test -n "$$unique" || unique=$$empty_fix; \
360 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
361 $$tags $$unique; \
362 fi
363ctags: CTAGS
364CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
365 $(TAGS_FILES) $(LISP)
366 tags=; \
367 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
368 unique=`for i in $$list; do \
369 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
370 done | \
371 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
372 END { if (nonempty) { for (i in files) print i; }; }'`; \
373 test -z "$(CTAGS_ARGS)$$tags$$unique" \
374 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
375 $$tags $$unique
376
377GTAGS:
378 here=`$(am__cd) $(top_builddir) && pwd` \
379 && cd $(top_srcdir) \
380 && gtags -i $(GTAGS_ARGS) $$here
381
382distclean-tags:
383 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
384
385distdir: $(DISTFILES)
386 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
387 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
388 list='$(DISTFILES)'; \
389 dist_files=`for file in $$list; do echo $$file; done | \
390 sed -e "s|^$$srcdirstrip/||;t" \
391 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
392 case $$dist_files in \
393 */*) $(MKDIR_P) `echo "$$dist_files" | \
394 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
395 sort -u` ;; \
396 esac; \
397 for file in $$dist_files; do \
398 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
399 if test -d $$d/$$file; then \
400 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
401 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
402 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
403 fi; \
404 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
405 else \
406 test -f $(distdir)/$$file \
407 || cp -p $$d/$$file $(distdir)/$$file \
408 || exit 1; \
409 fi; \
410 done
411check-am: all-am
412check: check-am
413all-am: Makefile $(LTLIBRARIES)
414installdirs:
415 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
416 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
417 done
418install: install-am
419install-exec: install-exec-am
420install-data: install-data-am
421uninstall: uninstall-am
422
423install-am: all-am
424 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
425
426installcheck: installcheck-am
427install-strip:
428 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
429 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
430 `test -z '$(STRIP)' || \
431 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
432mostlyclean-generic:
433
434clean-generic:
435
436distclean-generic:
437 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
438
439maintainer-clean-generic:
440 @echo "This command is intended for maintainers to use"
441 @echo "it deletes files that may require special tools to rebuild."
442clean: clean-am
443
444clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
445 mostlyclean-am
446
447distclean: distclean-am
448 -rm -rf ./$(DEPDIR)
449 -rm -f Makefile
450distclean-am: clean-am distclean-compile distclean-generic \
451 distclean-tags
452
453dvi: dvi-am
454
455dvi-am:
456
457html: html-am
458
459info: info-am
460
461info-am:
462
463install-data-am: install-pluginimpLTLIBRARIES
464
465install-dvi: install-dvi-am
466
467install-exec-am:
468
469install-html: install-html-am
470
471install-info: install-info-am
472
473install-man:
474
475install-pdf: install-pdf-am
476
477install-ps: install-ps-am
478
479installcheck-am:
480
481maintainer-clean: maintainer-clean-am
482 -rm -rf ./$(DEPDIR)
483 -rm -f Makefile
484maintainer-clean-am: distclean-am maintainer-clean-generic
485
486mostlyclean: mostlyclean-am
487
488mostlyclean-am: mostlyclean-compile mostlyclean-generic \
489 mostlyclean-libtool
490
491pdf: pdf-am
492
493pdf-am:
494
495ps: ps-am
496
497ps-am:
498
499uninstall-am: uninstall-pluginimpLTLIBRARIES
500
501.MAKE: install-am install-strip
502
503.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
504 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
505 distclean-compile distclean-generic distclean-libtool \
506 distclean-tags distdir dvi dvi-am html html-am info info-am \
507 install install-am install-data install-data-am install-dvi \
508 install-dvi-am install-exec install-exec-am install-html \
509 install-html-am install-info install-info-am install-man \
510 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
511 install-ps install-ps-am install-strip installcheck \
512 installcheck-am installdirs maintainer-clean \
513 maintainer-clean-generic mostlyclean mostlyclean-compile \
514 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
515 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
516
517# Tell versions [3.59,3.63) of GNU make to not export all variables.
518# Otherwise a system limit (for SysV at least) may be exceeded.
519.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend.c
new file mode 100644
index 0000000..7893c1e
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend.c
@@ -0,0 +1,201 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24#include <stdlib.h>
25
26#include <g3d/types.h>
27#include <g3d/stream.h>
28
29#include "imp_blend_def.h"
30#include "imp_blend_types.h"
31#include "imp_blend_sdna.h"
32#include "imp_blend_read.h"
33#include "imp_blend_chunks.h"
34
35static gboolean blend_read_file(BlendGlobal *global);
36
37EAPI
38gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
39 G3DModel *model, gpointer user_data)
40{
41 gchar buf[BLEND_HEADER_SIZE + 1];
42 guint32 flags = 0, version;
43 BlendGlobal *global;
44
45 if(g3d_stream_read(stream, buf, BLEND_HEADER_SIZE) != BLEND_HEADER_SIZE) {
46 g_warning("Blend: %s: failed to read header", stream->uri);
47 return FALSE;
48 }
49 buf[BLEND_HEADER_SIZE] = '\0';
50 if(strncmp(buf, "BLENDER", 7) != 0) {
51 g_warning("Blend: %s: not a blender file", stream->uri);
52 return FALSE;
53 }
54 if(buf[7] == '_')
55 flags |= FLAG_POINTERSIZE_4;
56 if(buf[8] == 'v')
57 flags |= FLAG_LITTLE_ENDIAN;
58 version = atoi(buf + 9);
59
60 g_debug("Blend: version %.2f, %s endian, pointer size is %d",
61 version / 100.0,
62 (flags & FLAG_LITTLE_ENDIAN) ? "little" : "big",
63 (flags & FLAG_POINTERSIZE_4) ? 4 : 8);
64
65 if(!(flags & FLAG_POINTERSIZE_4)) {
66 g_warning("Blend: 8-byte pointers are not implemented as I lack a "
67 "test file. Please send me one :).");
68 return FALSE;
69 }
70
71 global = g_new0(BlendGlobal, 1);
72 global->context = context;
73 global->stream = stream;
74 global->model = model;
75 global->flags = flags;
76
77 blend_read_file(global);
78
79 g_free(global);
80
81 return TRUE;
82}
83
84EAPI
85gchar *plugin_description(void)
86{
87 return g_strdup("Blender models.");
88}
89
90EAPI
91gchar **plugin_extensions(void)
92{
93 return g_strsplit("blend", ":", 0);
94}
95
96/*****************************************************************************/
97
98static inline const BlendChunkInfo *blend_get_chunk_info(guint32 code,
99 guint32 oid)
100{
101 gint32 i;
102
103 for(i = 0; blend_chunks[i].code != 0; i ++)
104 if((blend_chunks[i].code == code) && (blend_chunks[i].oid == oid))
105 return &(blend_chunks[i]);
106 if(oid != 0)
107 return blend_get_chunk_info(code, 0);
108 return NULL;
109}
110
111static gboolean blend_read_file(BlendGlobal *global)
112{
113 guint32 code, old, sdnanr, nr;
114 gsize len;
115 BlendLocal *local;
116 const BlendChunkInfo *cinfo;
117 const BlendSdnaStruct *sstruct;
118 gint i;
119 G3DObject *object = NULL;
120 G3DObject *grpobject = NULL;
121 guint32 object_id = 0;
122
123 while(TRUE) {
124 code = blend_read_uint(global->stream, global->flags);
125 len = blend_read_uint(global->stream, global->flags);
126 if(code == MKID('E','N','D','B'))
127 return TRUE;
128
129 old = blend_read_uint(global->stream, global->flags);
130 sdnanr = blend_read_uint(global->stream, global->flags);
131 nr = blend_read_uint(global->stream, global->flags);
132
133 if((global->sdna == NULL) && (code != MKID('D','N','A','1'))) {
134 g3d_stream_skip(global->stream, len);
135 continue;
136 }
137
138 cinfo = blend_get_chunk_info(code, (code == ID_DATA) ? object_id : 0);
139 if(cinfo == NULL)
140 g_warning("unknown chunk: %c%c%c%c",
141 blend_from_id(code, 0), blend_from_id(code, 1),
142 blend_from_id(code, 2), blend_from_id(code, 3));
143
144 g_debug("\\%c%c%c%c: %-20s - %8d bytes (0x%08x, %d, %d)",
145 blend_from_id(code, 0), blend_from_id(code, 1),
146 blend_from_id(code, 2), blend_from_id(code, 3),
147 cinfo ? cinfo->description : "(unknown)",
148 (int) len, old, sdnanr, nr);
149
150 if(len == 0)
151 return FALSE;
152
153 /* on non-DATA nodes a new object starts */
154 if(code != ID_DATA) {
155 object_id = code;
156 }
157
158 local = g_new0(BlendLocal, 1);
159 local->ndata = nr;
160 local->data = g_new0(BlendSdnaData *, nr);
161
162 if(global->sdna) {
163 for(i = 0; i < nr; i ++) {
164 sstruct = blend_sdna_get_struct_by_id(global->sdna, sdnanr);
165 if(sstruct) {
166#if DEBUG > BLEND_DEBUG_STRUCT
167 g_debug("|struct %s /* %d */",
168 sstruct->name, sstruct->size);
169#endif
170 local->data[i] = blend_sdna_data_read(global->sdna,
171 sstruct, global, &len, 0);
172 }
173 }
174 }
175
176 local->object = object;
177 local->grpobject = grpobject;
178 local->object_id = object_id;
179 local->len = len;
180
181 if(cinfo && cinfo->callback)
182 if(!cinfo->callback(global, local))
183 return FALSE;
184
185 len = local->len;
186 object = local->object;
187 grpobject = local->grpobject;
188
189 for(i = 0; i < local->ndata; i ++)
190 if(local->data[i])
191 blend_sdna_data_free(local->data[i]);
192 g_free(local->data);
193 g_free(local);
194
195 /* skip remaining data */
196 g3d_stream_skip(global->stream, len);
197 }
198
199 blend_sdna_cleanup(global->sdna);
200 return TRUE;
201}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_callbacks.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_callbacks.c
new file mode 100644
index 0000000..f5e7b95
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_callbacks.c
@@ -0,0 +1,237 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <string.h>
23
24#include <g3d/vector.h>
25#include <g3d/matrix.h>
26#include <g3d/material.h>
27
28#include "imp_blend_types.h"
29#include "imp_blend_def.h"
30#include "imp_blend_sdna.h"
31
32/* mesh data */
33gboolean blend_cb_DATA_ME(BlendGlobal *global, BlendLocal *local)
34{
35 G3DFace *face;
36 BlendSdnaPropData *spdata;
37 gchar *stmp;
38 gint32 i, j;
39
40 if((local->ndata == 0) || (local->data[0] == NULL))
41 return TRUE;
42 g_return_val_if_fail(local->object != NULL, FALSE);
43
44 /* all structs in one DATA chunk have the same type */
45 if(strcmp(local->data[0]->sstruct->name, "MVert") == 0) {
46 local->object->vertex_count = local->ndata;
47 local->object->vertex_data = g3d_vector_new(3,
48 local->object->vertex_count);
49 for(i = 0; i < local->ndata; i ++) {
50 spdata = blend_sdna_get_property(local->data[i], "co", T_FLOAT);
51 if(spdata)
52 for(j = 0; j < 3; j ++)
53 local->object->vertex_data[i * 3 + j] = spdata->fval[j];
54 }
55 } else if(strcmp(local->data[0]->sstruct->name, "MFace") == 0) {
56 for(i = 0; i < local->ndata; i ++) {
57 face = g_new0(G3DFace, 1);
58 face->vertex_count = 4;
59 face->vertex_indices = g_new0(guint32, 4);
60 face->material = g_slist_nth_data(local->object->materials, 0);
61 local->object->faces = g_slist_prepend(local->object->faces, face);
62 for(j = 0; j < 4; j ++) {
63 stmp = g_strdup_printf("v%d", j);
64 spdata = blend_sdna_get_property(local->data[i], stmp, T_INT);
65 if(spdata)
66 face->vertex_indices[j] = spdata->ival[0];
67 g_free(stmp);
68 }
69#if DEBUG > 2
70 g_debug("MFace: %03i (%02i, %02i, %02i, %02i)", i,
71 face->vertex_indices[0], face->vertex_indices[1],
72 face->vertex_indices[2], face->vertex_indices[3]);
73#endif
74 spdata = blend_sdna_get_property(local->data[i], "mat_nr", T_CHAR);
75 /* TODO */
76 }
77 } else {
78#if DEBUG > 0
79 for(i = 0; i < local->ndata; i ++)
80 blend_sdna_dump_data(local->data[i], 0);
81#endif
82 }
83 return TRUE;
84}
85
86/* struct DNA */
87gboolean blend_cb_DNA1(BlendGlobal *global, BlendLocal *local)
88{
89 if(global->sdna != NULL)
90 return TRUE;
91 global->sdna = blend_sdna_read_dna1(global->stream,
92 global->flags, local->len);
93 if(global->sdna == NULL) {
94 g_warning("Blend: failed to read DNA1, giving up...");
95 return FALSE;
96 }
97 /* rewind stream to really read content */
98 g3d_stream_seek(global->stream, BLEND_HEADER_SIZE, G_SEEK_SET);
99 local->len = 0;
100 return TRUE;
101}
102
103static gchar *get_name_from_id(BlendSdnaData *sdata)
104{
105 BlendSdnaPropData *spdata, *spdata2;
106 gchar *name = NULL;
107 gint32 i;
108
109 spdata = blend_sdna_get_property(sdata, "id", T_STRUCT);
110 if(spdata) {
111 spdata2 = blend_sdna_get_property(spdata->structval, "name", T_CHAR);
112 if(spdata2) {
113 name = g_new0(gchar, spdata2->sprop->nitems + 1);
114 for(i = 0; i < spdata2->sprop->nitems; i ++)
115 name[i] = spdata2->ival[i];
116 }
117 }
118 return name;
119}
120
121static G3DFloat get_float(BlendSdnaData *sdata, const gchar *var)
122{
123 BlendSdnaPropData *spdata;
124 spdata = blend_sdna_get_property(sdata, var, T_FLOAT);
125 if(spdata)
126 return spdata->fval[0];
127 return 0.0;
128}
129
130/* material */
131gboolean blend_cb_MA(BlendGlobal *global, BlendLocal *local)
132{
133 G3DMaterial *material;
134
135 g_return_val_if_fail(local->data[0] != NULL, FALSE);
136
137#if DEBUG > 0
138 blend_sdna_dump_data(local->data[0], 0);
139#endif
140
141 material = g3d_material_new();
142 material->name = get_name_from_id(local->data[0]);
143 global->model->materials = g_slist_append(global->model->materials,
144 material);
145 material->r = get_float(local->data[0], "r");
146 material->g = get_float(local->data[0], "g");
147 material->b = get_float(local->data[0], "b");
148 return TRUE;
149}
150
151/* mesh */
152gboolean blend_cb_ME(BlendGlobal *global, BlendLocal *local)
153{
154 G3DObject *object;
155 G3DMaterial *material;
156 G3DVector v[3];
157 BlendSdnaPropData *spdata;
158 gint32 i;
159
160 g_return_val_if_fail(local->data[0] != NULL, FALSE);
161
162#if DEBUG > 0
163 blend_sdna_dump_data(local->data[0], 0);
164#endif
165
166 object = g_new0(G3DObject, 1);
167 if(local->grpobject)
168 local->grpobject->objects = g_slist_append(local->grpobject->objects,
169 object);
170 else
171 global->model->objects = g_slist_append(global->model->objects,
172 object);
173 local->object = object;
174 material = g3d_material_new();
175 material->name = g_strdup("(default material)");
176 object->materials = g_slist_append(local->object->materials, material);
177
178 /* name */
179 object->name = get_name_from_id(local->data[0]);
180
181 object->transformation = g_new0(G3DTransformation, 1);
182 g3d_matrix_identity(object->transformation->matrix);
183
184 /* rotation */
185 spdata = blend_sdna_get_property(local->data[0], "rot", T_FLOAT);
186 if(spdata) {
187 for(i = 0; i < 3; i ++)
188 v[i] = spdata->fval[i];
189 g3d_matrix_rotate_xyz(v[0], v[1], v[2],
190 object->transformation->matrix);
191#if DEBUG > 0
192 g_debug("ME: rotate %f, %f, %f", v[0], v[1], v[2]);
193#endif
194 }
195 /* size */
196 spdata = blend_sdna_get_property(local->data[0], "size", T_FLOAT);
197 if(spdata) {
198 for(i = 0; i < 3; i ++)
199 v[i] = spdata->fval[i];
200 g3d_matrix_scale(v[0], v[1], v[2], object->transformation->matrix);
201#if DEBUG > 2
202 g_debug("ME: scale %f, %f, %f", v[0], v[1], v[2]);
203#endif
204 }
205 /* location */
206 spdata = blend_sdna_get_property(local->data[0], "loc", T_FLOAT);
207 if(spdata) {
208 for(i = 0; i < 3; i ++)
209 v[i] = spdata->fval[i];
210 g3d_matrix_translate(v[0], v[1], v[2],
211 object->transformation->matrix);
212#if DEBUG > 2
213 g_debug("ME: translate %f, %f, %f", v[0], v[1], v[2]);
214#endif
215 }
216 return TRUE;
217}
218
219gboolean blend_cb_OB(BlendGlobal *global, BlendLocal *local)
220{
221 G3DObject *object;
222
223 g_return_val_if_fail(local->data[0] != NULL, FALSE);
224
225#if DEBUG > 0
226 blend_sdna_dump_data(local->data[0], 0);
227#endif
228
229 object = g_new0(G3DObject, 1);
230 object->name = get_name_from_id(local->data[0]);
231 local->grpobject = object;
232 global->model->objects = g_slist_append(global->model->objects, object);
233
234 return TRUE;
235}
236
237
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_callbacks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_callbacks.h
new file mode 100644
index 0000000..160fd07
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_callbacks.h
@@ -0,0 +1,35 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_BLEND_CALLBACKS_H
23#define _IMP_BLEND_CALLBACKS_H
24
25#include "imp_blend_types.h"
26
27gboolean blend_cb_DATA_ME(BlendGlobal *global, BlendLocal *local);
28
29gboolean blend_cb_DNA1(BlendGlobal *global, BlendLocal *local);
30
31gboolean blend_cb_MA(BlendGlobal *global, BlendLocal *local);
32gboolean blend_cb_ME(BlendGlobal *global, BlendLocal *local);
33gboolean blend_cb_OB(BlendGlobal *global, BlendLocal *local);
34
35#endif /* _IMP_BLEND_CALLBACKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_chunks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_chunks.h
new file mode 100644
index 0000000..6ab82bd
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_chunks.h
@@ -0,0 +1,63 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_BLEND_CHUNKS_H
23#define _IMP_BLEND_CHUNKS_H
24
25#include "imp_blend_def.h"
26#include "imp_blend_types.h"
27#include "imp_blend_callbacks.h"
28
29typedef gboolean (* BlendCallback)(BlendGlobal *, BlendLocal *);
30
31typedef struct {
32 guint32 code;
33 guint32 oid;
34 const gchar *description;
35 BlendCallback callback;
36} BlendChunkInfo;
37
38#define ID_DATA MKID('D','A','T','A')
39
40static const BlendChunkInfo blend_chunks[] = {
41 { ID_DATA, MKID2('M','E'), "mesh data", blend_cb_DATA_ME },
42 { ID_DATA, 0, "struct data", NULL },
43
44 { MKID2('C','A'), 0, "camera", NULL },
45 { MKID2('I','M'), 0, "image", NULL },
46 { MKID2('L','A'), 0, "lamp", NULL },
47 { MKID2('M','A'), 0, "material", blend_cb_MA },
48 { MKID2('M','E'), 0, "mesh", blend_cb_ME },
49 { MKID2('O','B'), 0, "object", blend_cb_OB },
50 { MKID2('S','C'), 0, "scene", NULL },
51 { MKID2('S','R'), 0, "screen", NULL },
52 { MKID2('T','E'), 0, "texture", NULL },
53 { MKID2('T','X'), 0, "text", NULL },
54 { MKID2('W','O'), 0, "world", NULL },
55
56 { MKID('D','N','A','1'), 0, "SDNA data", blend_cb_DNA1 },
57 { MKID('G','L','O','B'), 0, "global data", NULL },
58 { MKID('R','E','N','D'), 0, "render data", NULL },
59
60 { 0, 0, NULL, NULL }
61};
62
63#endif /* _IMP_BLEND_CHUNKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_def.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_def.h
new file mode 100644
index 0000000..0a89af4
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_def.h
@@ -0,0 +1,42 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_BLEND_DEF_H
23#define _IMP_BLEND_DEF_H
24
25#include <glib.h>
26
27#define BLEND_HEADER_SIZE 12
28
29#define FLAG_LITTLE_ENDIAN 1
30#define FLAG_POINTERSIZE_4 4
31#define FLAG_POINTERSIZE_8 8
32#define FLAG_POINTER_MASK 0xC
33
34#define MKID(a,b,c,d) ((a) | ((b) << 8) | ((c) << 16) | ((d) << 24))
35#define MKID2(a,b) ((a) | ((b) << 8))
36
37static inline gchar blend_from_id(guint32 id, guint8 pos) {
38 guint8 c = ((id >> (pos * 8)) & 0xFF);
39 return ((c < 0x20) || (c > 0x7F)) ? '_' : c;
40}
41
42#endif /* _IMP_BLEND_DEF_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_read.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_read.c
new file mode 100644
index 0000000..b73c5dc
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_read.c
@@ -0,0 +1,39 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <g3d/stream.h>
23
24#include "imp_blend_def.h"
25
26guint32 blend_read_short(G3DStream *stream, guint32 flags)
27{
28 return (flags & FLAG_LITTLE_ENDIAN) ?
29 g3d_stream_read_int16_le(stream) :
30 g3d_stream_read_int16_be(stream);
31}
32
33guint32 blend_read_uint(G3DStream *stream, guint32 flags)
34{
35 return (flags & FLAG_LITTLE_ENDIAN) ?
36 g3d_stream_read_int32_le(stream) :
37 g3d_stream_read_int32_be(stream);
38}
39
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_read.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_read.h
new file mode 100644
index 0000000..4f0626d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_read.h
@@ -0,0 +1,30 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_BLEND_READ_H
23#define _IMP_BLEND_READ_H
24
25#include <g3d/stream.h>
26
27guint32 blend_read_short(G3DStream *stream, guint32 flags);
28guint32 blend_read_uint(G3DStream *stream, guint32 flags);
29
30#endif /* _IMP_BLEND_READ_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_sdna.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_sdna.c
new file mode 100644
index 0000000..058832a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_sdna.c
@@ -0,0 +1,467 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24#include <stdlib.h>
25
26#include <g3d/debug.h>
27
28#include "imp_blend_def.h"
29#include "imp_blend_types.h"
30#include "imp_blend_sdna.h"
31#include "imp_blend_read.h"
32
33static gboolean sdna_prop_check_array(BlendSdnaProperty *sprop)
34{
35 gchar *ob;
36 guint32 n;
37
38 while(TRUE) {
39 ob = strrchr(sprop->name, '[');
40 if(ob == NULL)
41 return TRUE;
42 n = atoi(ob + 1);
43 if(n == 0)
44 return FALSE;
45 sprop->nitems *= n;
46 *ob = '\0';
47 }
48 return FALSE;
49}
50
51BlendSdna *blend_sdna_read_dna1(G3DStream *stream, guint32 flags, gint32 len)
52{
53 BlendSdna *sdna;
54 BlendSdnaProperty *sprop;
55 BlendSdnaStruct *sstruct;
56 guint32 code, n, n2, nn, m, t;
57 gint32 i, j;
58 gchar buf[2048], *bufp, c, **aptr;
59
60 code = blend_read_uint(stream, flags);
61 len -= 4;
62 if(code != MKID('S','D','N','A')) {
63 g_warning("Blend: DNA1: no SDNA");
64 g3d_stream_skip(stream, len);
65 return NULL;
66 }
67
68 sdna = g_new0(BlendSdna, 1);
69
70 while(len > 0) {
71 code = blend_read_uint(stream, flags);
72 len -= 4;
73
74 switch(code) {
75 case MKID('N','A','M','E'):
76 case MKID('T','Y','P','E'):
77 n = blend_read_uint(stream, flags);
78 len -= 4;
79 if(code == MKID('T','Y','P','E')) {
80 g_debug("\\ TYPE: %d types", n);
81 sdna->n_types = n;
82 sdna->type_names = g_new0(gchar *, n);
83 sdna->type_sizes = g_new0(guint32, n);
84 aptr = sdna->type_names;
85 } else {
86 g_debug("\\ NAME: %d names", n);
87 sdna->n_names = n;
88 sdna->names = g_new0(gchar *, n);
89 aptr = sdna->names;
90 }
91 m = 0;
92 for(i = 0; i < n; i ++) {
93 bufp = buf;
94 do {
95 c = *bufp = g3d_stream_read_int8(stream);
96 bufp ++;
97 len --;
98 m ++;
99 } while(c != '\0');
100 aptr[i] = g_strdup(buf);
101#if DEBUG > 2
102 g_debug("\\ %s", buf);
103#endif
104 }
105 m %= 4;
106 if(m > 0) {
107 /* padding */
108 g3d_stream_skip(stream, 4 - m);
109 len -= (4 - m);
110 }
111 break;
112 case MKID('T','L','E','N'):
113 g_debug("\\ TLEN: %d type sizes", sdna->n_types);
114 for(i = 0; i < sdna->n_types; i ++) {
115 m = blend_read_short(stream, flags);
116 len -= 2;
117#if DEBUG > 2
118 g_debug("\\ %d", m);
119#endif
120 sdna->type_sizes[i] = m;
121 }
122 m = sdna->n_types % 2;
123 if(m > 0) {
124 g3d_stream_skip(stream, 2);
125 len -= 2;
126 }
127 break;
128 case MKID('S','T','R','C'):
129 n = blend_read_uint(stream, flags);
130 g_debug("\\ STRC: %d structs", n);
131 len -= 4;
132 for(i = 0; i < n; i ++) {
133 t = blend_read_short(stream, flags);
134 n2 = blend_read_short(stream, flags);
135 len -= 4;
136 sstruct = g_new0(BlendSdnaStruct, 1);
137 sstruct->tid = t;
138 sstruct->name = sdna->type_names[t];
139 sstruct->size = sdna->type_sizes[t];
140 sdna->structs = g_slist_append(sdna->structs, sstruct);
141 for(j = 0; j < n2; j ++) {
142 t = blend_read_short(stream, flags);
143 nn = blend_read_short(stream, flags);
144 len -= 4;
145 sprop = g_new0(BlendSdnaProperty, 1);
146 sprop->name = g_strdup(sdna->names[nn]);
147 sprop->tname = sdna->type_names[t];
148 sprop->tid = t;
149 sprop->tsize = sdna->type_sizes[t];
150 sprop->ptr =
151 (sprop->name[0] == '*') ||
152 (sprop->name[0] == '(');
153 sprop->nitems = 1;
154 sdna_prop_check_array(sprop);
155 sstruct->properties = g_slist_append(
156 sstruct->properties, sprop);
157 }
158 }
159 break;
160 default:
161 g_warning("Blend: DNA1: unexpected section 0x%x", code);
162 return sdna;
163 break;
164 }
165 }
166 return sdna;
167}
168
169static void blend_sdna_struct_free(BlendSdnaStruct *sstruct)
170{
171 GSList *item, *next;
172 BlendSdnaProperty *sprop;
173
174 item = sstruct->properties;
175 while(item) {
176 sprop = item->data;
177 next = item->next;
178 g_free(sprop->name);
179 g_free(sprop);
180 g_slist_free_1(item);
181 item = next;
182 }
183 g_free(sstruct);
184}
185
186void blend_sdna_cleanup(BlendSdna *sdna)
187{
188 GSList *item, *next;
189 BlendSdnaStruct *sstruct;
190
191 g_return_if_fail(sdna != NULL);
192
193 /* names */
194 g_free(sdna->names);
195 /* types */
196 g_free(sdna->type_names);
197 g_free(sdna->type_sizes);
198 /* structs */
199 item = sdna->structs;
200 while(item) {
201 sstruct = item->data;
202 next = item->next;
203 blend_sdna_struct_free(sstruct);
204 g_slist_free_1(next);
205 item = next;
206 }
207 /* sdna */
208 g_free(sdna);
209}
210
211const BlendSdnaStruct *blend_sdna_get_struct_by_id(BlendSdna *sdna,
212 guint32 sdnanr)
213{
214 g_return_val_if_fail(sdnanr < g_slist_length(sdna->structs), NULL);
215
216 if(sdnanr < 10)
217 return NULL;
218
219 return g_slist_nth_data(sdna->structs, sdnanr);
220}
221
222const BlendSdnaStruct *blend_sdna_get_struct_by_tid(BlendSdna *sdna,
223 guint32 tid)
224{
225 GSList *item;
226 BlendSdnaStruct *sstruct;
227
228 for(item = sdna->structs; item != NULL; item = item->next) {
229 sstruct = item->data;
230 if(sstruct->tid == tid)
231 return sstruct;
232 }
233
234 return NULL;
235}
236
237static inline void sdna_data_read_basic_types(BlendSdna *sdna,
238 BlendSdnaPropData *spdata, BlendGlobal *global, gsize *r)
239{
240 gint32 i;
241
242 g_return_if_fail(spdata->sprop->nitems > 0);
243
244 switch(spdata->type) {
245 case T_CHAR:
246 spdata->ival = g_new0(gint32, spdata->sprop->nitems);
247 for(i = 0; i < spdata->sprop->nitems; i ++)
248 spdata->ival[i] = g3d_stream_read_int8(global->stream);
249 (*r) -= spdata->sprop->nitems;
250 break;
251 case T_UCHAR:
252 spdata->uval = g_new0(guint32, spdata->sprop->nitems);
253 for(i = 0; i < spdata->sprop->nitems; i ++)
254 spdata->uval[i] = g3d_stream_read_int8(global->stream);
255 (*r) -= spdata->sprop->nitems;
256 break;
257 case T_SHORT: /* FIXME: BE/LE */
258 spdata->ival = g_new0(gint32, spdata->sprop->nitems);
259 for(i = 0; i < spdata->sprop->nitems; i ++)
260 spdata->ival[i] = g3d_stream_read_int16_le(global->stream);
261 (*r) -= spdata->sprop->nitems * 2;
262 break;
263 case T_USHORT:
264 spdata->uval = g_new0(guint32, spdata->sprop->nitems);
265 for(i = 0; i < spdata->sprop->nitems; i ++)
266 spdata->uval[i] = g3d_stream_read_int16_le(global->stream);
267 (*r) -= spdata->sprop->nitems * 2;
268 break;
269 case T_INT: /* FIXME: 32/64 bit */
270 spdata->ival = g_new0(gint32, spdata->sprop->nitems);
271 for(i = 0; i < spdata->sprop->nitems; i ++)
272 spdata->ival[i] = g3d_stream_read_int32_le(global->stream);
273 (*r) -= spdata->sprop->nitems * 4;
274 break;
275 case T_LONG:
276 spdata->ival = g_new0(gint32, spdata->sprop->nitems);
277 for(i = 0; i < spdata->sprop->nitems; i ++)
278 spdata->ival[i] = g3d_stream_read_int32_le(global->stream);
279 (*r) -= spdata->sprop->nitems * 4;
280 break;
281 case T_ULONG:
282 spdata->uval = g_new0(guint32, spdata->sprop->nitems);
283 for(i = 0; i < spdata->sprop->nitems; i ++)
284 spdata->uval[i] = g3d_stream_read_int32_le(global->stream);
285 (*r) -= spdata->sprop->nitems * 4;
286 break;
287 case T_FLOAT:
288 spdata->fval = g_new0(G3DFloat, spdata->sprop->nitems);
289 for(i = 0; i < spdata->sprop->nitems; i ++)
290 spdata->fval[i] = g3d_stream_read_float_le(global->stream);
291 (*r) -= spdata->sprop->nitems * 4;
292 break;
293 case T_DOUBLE:
294 spdata->fval = g_new0(G3DFloat, spdata->sprop->nitems);
295 for(i = 0; i < spdata->sprop->nitems; i ++)
296 spdata->fval[i] = g3d_stream_read_double_le(global->stream);
297 (*r) -= spdata->sprop->nitems * 8;
298 break;
299 case T_VOID:
300 g_warning("SDNA: non-pointer void type");
301 break;
302 case T_STRUCT:
303 /* handled elsewhere */
304 break;
305 }
306}
307
308BlendSdnaPropData *blend_sdna_get_property(BlendSdnaData *sdata,
309 const gchar *name, BlendSdnaPropType type)
310{
311 BlendSdnaPropData *spdata;
312
313 spdata = g_hash_table_lookup(sdata->prophash, name);
314 if(!spdata)
315 return NULL;
316 if(spdata->type != type)
317 return NULL;
318 return spdata;
319}
320
321BlendSdnaData *blend_sdna_data_read(BlendSdna *sdna,
322 const BlendSdnaStruct *sstruct, BlendGlobal *global, gsize *r,
323 guint32 level)
324{
325 BlendSdnaData *sdata;
326 BlendSdnaProperty *sprop;
327 BlendSdnaPropData *spdata;
328 const BlendSdnaStruct *substruct;
329 GSList *pitem;
330
331 sdata = g_new0(BlendSdnaData, 1);
332 sdata->sstruct = sstruct;
333 sdata->prophash = g_hash_table_new(g_str_hash, g_str_equal);
334
335#if DEBUG > BLEND_DEBUG_STRUCT
336 g_debug("|%s{ /* %s */",
337 debug_pad(level * 2), sstruct->name);
338#endif
339
340 for(pitem = sstruct->properties; pitem != NULL; pitem = pitem->next) {
341 sprop = pitem->data;
342 spdata = g_new0(BlendSdnaPropData, 1);
343 spdata->name = g_strdup(sprop->name);
344 spdata->sprop = sprop;
345 g_hash_table_insert(sdata->prophash, spdata->name, spdata);
346 spdata->type = (sprop->tid < 10) ? sprop->tid : 0xFF;
347
348 if(sprop->ptr) {
349 spdata->pval = g_new0(guint32, 1);
350 spdata->pval[0] = g3d_stream_read_int32_le(global->stream);
351 (*r) -= 4;
352#if DEBUG > BLEND_DEBUG_STRUCT
353 g_debug("|%s %-10s %-10s = 0x%08x; /* len = %d */",
354 debug_pad(level * 2),
355 sprop->tname, sprop->name, spdata->pval[0], *r);
356#endif
357 continue;
358 }
359
360 if(spdata->type == T_STRUCT) {
361 substruct = blend_sdna_get_struct_by_tid(sdna, sprop->tid);
362#if DEBUG > BLEND_DEBUG_STRUCT
363 g_debug("|%s %-10s %-10s = /* %s */",
364 debug_pad(level * 2),
365 sprop->tname, sprop->name,
366 substruct ? substruct->name : "(unknown)");
367#endif
368 if(substruct)
369 spdata->structval = blend_sdna_data_read(sdna,
370 substruct, global, r, level + 1);
371 else {
372 g3d_stream_skip(global->stream, sprop->tsize);
373 (*r) -= sprop->tsize;
374 }
375 } else {
376 sdna_data_read_basic_types(sdna, spdata, global, r);
377 }
378 } /* properties */
379
380#if DEBUG > BLEND_DEBUG_STRUCT
381 g_debug("|%s};", debug_pad(level * 2));
382#endif
383
384 return sdata;
385}
386
387void blend_sdna_data_free(BlendSdnaData *sdata)
388{
389 /* TODO: free BlendSdnaPropData nodes */
390 g_hash_table_destroy(sdata->prophash);
391 g_free(sdata);
392}
393
394/*****************************************************************************/
395/* debugging code */
396
397#if DEBUG > 0
398
399static void blend_sdna_dump_spdata_cb(gpointer key, gpointer value,
400 gpointer user_data)
401{
402 BlendSdnaPropData *spdata = value;
403 guint32 *levelp = user_data;
404
405#define DUMP_FORMAT "|%s %-10s %-10s [%03d]"
406#define DUMP_ARGS debug_pad(*levelp), \
407 spdata->sprop->tname, spdata->name, spdata->sprop->nitems
408
409 if(spdata->sprop->ptr) {
410 g_debug(DUMP_FORMAT " = 0x%08x;", DUMP_ARGS, spdata->pval[0]);
411 return;
412 }
413 switch(spdata->type) {
414 case T_CHAR:
415 case T_SHORT:
416 case T_INT:
417 case T_LONG:
418 g_debug(DUMP_FORMAT " = %i;", DUMP_ARGS, spdata->ival[0]);
419 break;
420 case T_UCHAR:
421 case T_USHORT:
422 case T_ULONG:
423 g_debug(DUMP_FORMAT " = %u;", DUMP_ARGS, spdata->uval[0]);
424 break;
425 case T_FLOAT:
426 case T_DOUBLE:
427 g_debug(DUMP_FORMAT " = %f;", DUMP_ARGS, spdata->fval[0]);
428 break;
429 case T_STRUCT:
430 g_debug(DUMP_FORMAT " =", DUMP_ARGS);
431 blend_sdna_dump_data(spdata->structval, *levelp + 1);
432 break;
433 default:
434 g_debug(DUMP_FORMAT ";", DUMP_ARGS);
435 break;
436 }
437}
438
439gboolean blend_sdna_dump_data(BlendSdnaData *sdata, guint32 level)
440{
441 g_debug("|%s{ /* %s */", debug_pad(level), sdata->sstruct->name);
442 g_hash_table_foreach(sdata->prophash, blend_sdna_dump_spdata_cb, &level);
443 g_debug("|%s},", debug_pad(level));
444 return TRUE;
445}
446
447gboolean blend_sdna_dump_struct(BlendSdna *sdna, guint32 sdnanr)
448{
449 const BlendSdnaStruct *sstruct;
450 BlendSdnaProperty *sprop;
451 GSList *pitem;
452
453 sstruct = blend_sdna_get_struct_by_id(sdna, sdnanr);
454 if(!sstruct)
455 return FALSE;
456 sstruct = g_slist_nth_data(sdna->structs, sdnanr);
457 g_debug("| struct %s { /* %d */", sstruct->name, sstruct->size);
458 for(pitem = sstruct->properties; pitem != NULL; pitem = pitem->next) {
459 sprop = pitem->data;
460 g_debug("| \t%-16s %-24s;", sprop->tname, sprop->name);
461 }
462 g_debug("| };");
463
464 return TRUE;
465}
466
467#endif
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_sdna.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_sdna.h
new file mode 100644
index 0000000..a95369f
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_sdna.h
@@ -0,0 +1,53 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_BLEND_SDNA_H
23#define _IMP_BLEND_SDNA_H
24
25#include <g3d/stream.h>
26
27#include "imp_blend_types.h"
28
29/* as in #if DEBUG > BLEND_DEBUG_STRUCT */
30#define BLEND_DEBUG_STRUCT 1
31
32BlendSdna *blend_sdna_read_dna1(G3DStream *stream, guint32 flags, gint32 len);
33void blend_sdna_cleanup(BlendSdna *sdna);
34
35const BlendSdnaStruct *blend_sdna_get_struct_by_id(BlendSdna *sdna,
36 guint32 sdnanr);
37const BlendSdnaStruct *blend_sdna_get_struct_by_name(BlendSdna *sdna,
38 const gchar *name);
39
40BlendSdnaData *blend_sdna_data_read(BlendSdna *sdna,
41 const BlendSdnaStruct *sstruct, BlendGlobal *global, gsize *r,
42 guint32 level);
43void blend_sdna_data_free(BlendSdnaData *sdata);
44
45BlendSdnaPropData *blend_sdna_get_property(BlendSdnaData *sdata,
46 const gchar *name, BlendSdnaPropType type);
47
48#if DEBUG > 0
49gboolean blend_sdna_dump_data(BlendSdnaData *sdata, guint32 level);
50gboolean blend_sdna_dump_struct(BlendSdna *sdna, guint32 sdnanr);
51#endif
52
53#endif /* _IMP_BLEND_SDNA_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_types.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_types.h
new file mode 100644
index 0000000..b2d9573
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_types.h
@@ -0,0 +1,100 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_BLEND_TYPES_H
23#define _IMP_BLEND_TYPES_H
24
25#include <g3d/types.h>
26
27typedef struct {
28 gchar *name;
29 const gchar *tname;
30 guint32 tid;
31 gsize tsize;
32 gsize nitems;
33 gboolean ptr;
34} BlendSdnaProperty;
35
36typedef struct {
37 const gchar *name;
38 guint32 tid;
39 gsize size;
40 GSList *properties;
41} BlendSdnaStruct;
42
43typedef struct {
44 const BlendSdnaStruct *sstruct;
45 GHashTable *prophash;
46} BlendSdnaData;
47
48typedef enum {
49 T_CHAR = 0,
50 T_UCHAR = 1,
51 T_SHORT = 2,
52 T_USHORT = 3,
53 T_INT = 4,
54 T_LONG = 5,
55 T_ULONG = 6,
56 T_FLOAT = 7,
57 T_DOUBLE = 8,
58 T_VOID = 9,
59 T_STRUCT = 0xFF
60} BlendSdnaPropType;
61
62typedef struct {
63 gchar *name;
64 BlendSdnaPropType type;
65 BlendSdnaProperty *sprop;
66 guint32 *uval; /* unsigned integer value */
67 gint32 *ival; /* signed integer value */
68 G3DFloat *fval; /* floating point value */
69 guint32 *pval; /* pointer value */
70 BlendSdnaData *structval; /* struct value */
71} BlendSdnaPropData;
72
73typedef struct {
74 guint32 n_names;
75 gchar **names;
76 guint32 n_types;
77 gchar **type_names;
78 guint32 *type_sizes;
79 GSList *structs;
80} BlendSdna;
81
82typedef struct {
83 G3DContext *context;
84 G3DModel *model;
85 G3DStream *stream;
86 guint32 flags;
87 BlendSdna *sdna;
88} BlendGlobal;
89
90typedef struct {
91 guint32 id;
92 guint32 len;
93 G3DObject *object;
94 G3DObject *grpobject;
95 guint32 object_id;
96 guint32 ndata;
97 BlendSdnaData **data;
98} BlendLocal;
99
100#endif
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/Makefile
new file mode 100644
index 0000000..61a0650
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/Makefile
@@ -0,0 +1,510 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_c4d/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_c4d
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_c4d_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_c4d_la_OBJECTS = imp_c4d.lo
59imp_c4d_la_OBJECTS = $(am_imp_c4d_la_OBJECTS)
60#am_imp_c4d_la_rpath = -rpath $(pluginimpdir)
61DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_c4d_la_SOURCES)
74DIST_SOURCES = $(imp_c4d_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
79AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
80AR = ar
81AS = as
82AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
83AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
84AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
85AWK = gawk
86CC = gcc
87CCDEPMODE = depmode=gcc3
88CFLAGS = -g -O2
89CPP = gcc -E
90CPPFLAGS =
91CXX = g++
92CXXCPP = g++ -E
93CXXDEPMODE = depmode=gcc3
94CXXFLAGS = -g -O2
95CYGPATH_W = echo
96DBG_CFLAGS = -O2
97DEBUG = 0
98DEFS = -DHAVE_CONFIG_H
99DEPDIR = .deps
100DLLTOOL = dlltool
101ECHO = echo
102ECHO_C =
103ECHO_N = -n
104ECHO_T =
105EGREP = /bin/grep -E
106EXEEXT =
107F77 =
108FFLAGS =
109GDKPIXBUF_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
110GDKPIXBUF_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
111GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
112GLIB_GENMARSHAL = glib-genmarshal
113GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
114GLIB_MKENUMS = glib-mkenums
115GOBJECT_QUERY = gobject-query
116GREP = /bin/grep
117GTKDOC_CHECK = /usr/bin/gtkdoc-check
118GTK_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
119GTK_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
120HTML_DIR = ${datadir}/gtk-doc/html
121INSTALL = /usr/bin/install -c
122INSTALL_DATA = ${INSTALL} -m 644
123INSTALL_PROGRAM = ${INSTALL}
124INSTALL_SCRIPT = ${INSTALL}
125INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
126LDFLAGS =
127LEX = flex
128LEXLIB = -lfl
129LEX_OUTPUT_ROOT = lex.yy
130LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
131LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
132LIBOBJS =
133LIBS = -lm
134LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
135LIBXML2_CFLAGS = -I/usr/include/libxml2
136LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
137LN_S = ln -s
138LTLIBOBJS =
139LTVERSION = 0:8:0
140MAGIC_LIBS = -lmagic
141MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
142MATH_LIBS = -lm
143MKDIR_P = /bin/mkdir -p
144OBJDUMP = objdump
145OBJEXT = o
146PACKAGE = libg3d
147PACKAGE_BUGREPORT =
148PACKAGE_NAME =
149PACKAGE_STRING =
150PACKAGE_TARNAME =
151PACKAGE_VERSION =
152PATH_SEPARATOR = :
153PKG_CONFIG = /usr/bin/pkg-config
154PLUGINS_LDFLAGS = -avoid-version -export-dynamic
155RANLIB = ranlib
156SET_MAKE =
157SHELL = /bin/bash
158STRIP = strip
159VERSION = 0.0.8
160XML2_CONFIG = /usr/bin/xml2-config
161XML_CPPFLAGS = -I/usr/include/libxml2
162XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
163Z_CFLAGS =
164Z_LIBS = -lz
165abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d
166abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d
167abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169ac_ct_CC = gcc
170ac_ct_CXX = g++
171ac_ct_F77 =
172am__include = include
173am__leading_dot = .
174am__quote =
175am__tar = ${AMTAR} chof - "$$tardir"
176am__untar = ${AMTAR} xf -
177bindir = ${exec_prefix}/bin
178build = x86_64-unknown-linux-gnu
179build_alias =
180build_cpu = x86_64
181build_os = linux-gnu
182build_vendor = unknown
183builddir = .
184datadir = ${datarootdir}
185datarootdir = ${prefix}/share
186docdir = ${datarootdir}/doc/${PACKAGE}
187dvidir = ${docdir}
188exec_prefix = ${prefix}
189host = x86_64-unknown-linux-gnu
190host_alias =
191host_cpu = x86_64
192host_os = linux-gnu
193host_vendor = unknown
194htmldir = ${docdir}
195includedir = ${prefix}/include
196infodir = ${datarootdir}/info
197install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
198libdir = ${exec_prefix}/lib
199libexecdir = ${exec_prefix}/libexec
200localedir = ${datarootdir}/locale
201localstatedir = ${prefix}/var
202mandir = ${datarootdir}/man
203mkdir_p = /bin/mkdir -p
204oldincludedir = /usr/include
205pdfdir = ${docdir}
206prefix = /usr/local
207program_transform_name = s,x,x,
208psdir = ${docdir}
209sbindir = ${exec_prefix}/sbin
210sharedstatedir = ${prefix}/com
211srcdir = .
212sysconfdir = ${prefix}/etc
213target_alias =
214top_builddir = ../../..
215top_srcdir = ../../..
216pluginimpdir = $(pkglibdir)/plugins/import
217#pluginimp_LTLIBRARIES = imp_c4d.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 -O2 -DDEBUG=0 \
222 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 -avoid-version -export-dynamic
228
229imp_c4d_la_SOURCES = imp_c4d.c
230imp_c4d_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
231all: all-am
232
233.SUFFIXES:
234.SUFFIXES: .c .lo .o .obj
235$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
236 @for dep in $?; do \
237 case '$(am__configure_deps)' in \
238 *$$dep*) \
239 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
240 && exit 0; \
241 exit 1;; \
242 esac; \
243 done; \
244 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_c4d/Makefile'; \
245 cd $(top_srcdir) && \
246 $(AUTOMAKE) --gnu plugins/import/imp_c4d/Makefile
247.PRECIOUS: Makefile
248Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
249 @case '$?' in \
250 *config.status*) \
251 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
252 *) \
253 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
254 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
255 esac;
256
257$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
258 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
259
260$(top_srcdir)/configure: $(am__configure_deps)
261 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
262$(ACLOCAL_M4): $(am__aclocal_m4_deps)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
265 @$(NORMAL_INSTALL)
266 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
267 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
268 if test -f $$p; then \
269 f=$(am__strip_dir) \
270 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
271 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
272 else :; fi; \
273 done
274
275uninstall-pluginimpLTLIBRARIES:
276 @$(NORMAL_UNINSTALL)
277 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
278 p=$(am__strip_dir) \
279 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
280 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
281 done
282
283clean-pluginimpLTLIBRARIES:
284 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
285 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
286 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
287 test "$$dir" != "$$p" || dir=.; \
288 echo "rm -f \"$${dir}/so_locations\""; \
289 rm -f "$${dir}/so_locations"; \
290 done
291imp_c4d.la: $(imp_c4d_la_OBJECTS) $(imp_c4d_la_DEPENDENCIES)
292 $(LINK) $(am_imp_c4d_la_rpath) $(imp_c4d_la_OBJECTS) $(imp_c4d_la_LIBADD) $(LIBS)
293
294mostlyclean-compile:
295 -rm -f *.$(OBJEXT)
296
297distclean-compile:
298 -rm -f *.tab.c
299
300include ./$(DEPDIR)/imp_c4d.Plo
301
302.c.o:
303 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
304 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
305# source='$<' object='$@' libtool=no \
306# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
307# $(COMPILE) -c $<
308
309.c.obj:
310 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
311 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
312# source='$<' object='$@' libtool=no \
313# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
314# $(COMPILE) -c `$(CYGPATH_W) '$<'`
315
316.c.lo:
317 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
318 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
319# source='$<' object='$@' libtool=yes \
320# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
321# $(LTCOMPILE) -c -o $@ $<
322
323mostlyclean-libtool:
324 -rm -f *.lo
325
326clean-libtool:
327 -rm -rf .libs _libs
328
329ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
330 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
331 unique=`for i in $$list; do \
332 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
333 done | \
334 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
335 END { if (nonempty) { for (i in files) print i; }; }'`; \
336 mkid -fID $$unique
337tags: TAGS
338
339TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
340 $(TAGS_FILES) $(LISP)
341 tags=; \
342 here=`pwd`; \
343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
344 unique=`for i in $$list; do \
345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
346 done | \
347 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
349 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
350 test -n "$$unique" || unique=$$empty_fix; \
351 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
352 $$tags $$unique; \
353 fi
354ctags: CTAGS
355CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
356 $(TAGS_FILES) $(LISP)
357 tags=; \
358 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
359 unique=`for i in $$list; do \
360 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
361 done | \
362 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
363 END { if (nonempty) { for (i in files) print i; }; }'`; \
364 test -z "$(CTAGS_ARGS)$$tags$$unique" \
365 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
366 $$tags $$unique
367
368GTAGS:
369 here=`$(am__cd) $(top_builddir) && pwd` \
370 && cd $(top_srcdir) \
371 && gtags -i $(GTAGS_ARGS) $$here
372
373distclean-tags:
374 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
375
376distdir: $(DISTFILES)
377 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
379 list='$(DISTFILES)'; \
380 dist_files=`for file in $$list; do echo $$file; done | \
381 sed -e "s|^$$srcdirstrip/||;t" \
382 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
383 case $$dist_files in \
384 */*) $(MKDIR_P) `echo "$$dist_files" | \
385 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
386 sort -u` ;; \
387 esac; \
388 for file in $$dist_files; do \
389 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
390 if test -d $$d/$$file; then \
391 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
392 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
393 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
394 fi; \
395 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
396 else \
397 test -f $(distdir)/$$file \
398 || cp -p $$d/$$file $(distdir)/$$file \
399 || exit 1; \
400 fi; \
401 done
402check-am: all-am
403check: check-am
404all-am: Makefile $(LTLIBRARIES)
405installdirs:
406 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
407 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
408 done
409install: install-am
410install-exec: install-exec-am
411install-data: install-data-am
412uninstall: uninstall-am
413
414install-am: all-am
415 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
416
417installcheck: installcheck-am
418install-strip:
419 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
420 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
421 `test -z '$(STRIP)' || \
422 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
423mostlyclean-generic:
424
425clean-generic:
426
427distclean-generic:
428 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
429
430maintainer-clean-generic:
431 @echo "This command is intended for maintainers to use"
432 @echo "it deletes files that may require special tools to rebuild."
433clean: clean-am
434
435clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
436 mostlyclean-am
437
438distclean: distclean-am
439 -rm -rf ./$(DEPDIR)
440 -rm -f Makefile
441distclean-am: clean-am distclean-compile distclean-generic \
442 distclean-tags
443
444dvi: dvi-am
445
446dvi-am:
447
448html: html-am
449
450info: info-am
451
452info-am:
453
454install-data-am: install-pluginimpLTLIBRARIES
455
456install-dvi: install-dvi-am
457
458install-exec-am:
459
460install-html: install-html-am
461
462install-info: install-info-am
463
464install-man:
465
466install-pdf: install-pdf-am
467
468install-ps: install-ps-am
469
470installcheck-am:
471
472maintainer-clean: maintainer-clean-am
473 -rm -rf ./$(DEPDIR)
474 -rm -f Makefile
475maintainer-clean-am: distclean-am maintainer-clean-generic
476
477mostlyclean: mostlyclean-am
478
479mostlyclean-am: mostlyclean-compile mostlyclean-generic \
480 mostlyclean-libtool
481
482pdf: pdf-am
483
484pdf-am:
485
486ps: ps-am
487
488ps-am:
489
490uninstall-am: uninstall-pluginimpLTLIBRARIES
491
492.MAKE: install-am install-strip
493
494.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
495 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
496 distclean-compile distclean-generic distclean-libtool \
497 distclean-tags distdir dvi dvi-am html html-am info info-am \
498 install install-am install-data install-data-am install-dvi \
499 install-dvi-am install-exec install-exec-am install-html \
500 install-html-am install-info install-info-am install-man \
501 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
502 install-ps install-ps-am install-strip installcheck \
503 installcheck-am installdirs maintainer-clean \
504 maintainer-clean-generic mostlyclean mostlyclean-compile \
505 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
506 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
507
508# Tell versions [3.59,3.63) of GNU make to not export all variables.
509# Otherwise a system limit (for SysV at least) may be exceeded.
510.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/Makefile.am
new file mode 100644
index 0000000..812c1fb
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/Makefile.am
@@ -0,0 +1,22 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if EXPERIMENTAL
4pluginimp_LTLIBRARIES = imp_c4d.la
5endif
6
7AM_CFLAGS = \
8 -Wall -ansi -pedantic \
9 -DG_LOG_DOMAIN=\"LibG3D\" \
10 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
11 @GLIB_CFLAGS@
12
13INCLUDES = -I$(top_srcdir)/include
14
15AM_LDFLAGS = \
16 -no-undefined -module \
17 @PLUGINS_LDFLAGS@
18
19LIBTOOL += --quiet
20
21imp_c4d_la_SOURCES = imp_c4d.c
22imp_c4d_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/Makefile.in
new file mode 100644
index 0000000..29afaee
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/Makefile.in
@@ -0,0 +1,510 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_c4d
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_c4d_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_c4d_la_OBJECTS = imp_c4d.lo
59imp_c4d_la_OBJECTS = $(am_imp_c4d_la_OBJECTS)
60@EXPERIMENTAL_TRUE@am_imp_c4d_la_rpath = -rpath $(pluginimpdir)
61DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_c4d_la_SOURCES)
74DIST_SOURCES = $(imp_c4d_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = @ACLOCAL@
79AMTAR = @AMTAR@
80AR = @AR@
81AS = @AS@
82AUTOCONF = @AUTOCONF@
83AUTOHEADER = @AUTOHEADER@
84AUTOMAKE = @AUTOMAKE@
85AWK = @AWK@
86CC = @CC@
87CCDEPMODE = @CCDEPMODE@
88CFLAGS = @CFLAGS@
89CPP = @CPP@
90CPPFLAGS = @CPPFLAGS@
91CXX = @CXX@
92CXXCPP = @CXXCPP@
93CXXDEPMODE = @CXXDEPMODE@
94CXXFLAGS = @CXXFLAGS@
95CYGPATH_W = @CYGPATH_W@
96DBG_CFLAGS = @DBG_CFLAGS@
97DEBUG = @DEBUG@
98DEFS = @DEFS@
99DEPDIR = @DEPDIR@
100DLLTOOL = @DLLTOOL@
101ECHO = @ECHO@
102ECHO_C = @ECHO_C@
103ECHO_N = @ECHO_N@
104ECHO_T = @ECHO_T@
105EGREP = @EGREP@
106EXEEXT = @EXEEXT@
107F77 = @F77@
108FFLAGS = @FFLAGS@
109GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
110GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
111GLIB_CFLAGS = @GLIB_CFLAGS@
112GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
113GLIB_LIBS = @GLIB_LIBS@
114GLIB_MKENUMS = @GLIB_MKENUMS@
115GOBJECT_QUERY = @GOBJECT_QUERY@
116GREP = @GREP@
117GTKDOC_CHECK = @GTKDOC_CHECK@
118GTK_CFLAGS = @GTK_CFLAGS@
119GTK_LIBS = @GTK_LIBS@
120HTML_DIR = @HTML_DIR@
121INSTALL = @INSTALL@
122INSTALL_DATA = @INSTALL_DATA@
123INSTALL_PROGRAM = @INSTALL_PROGRAM@
124INSTALL_SCRIPT = @INSTALL_SCRIPT@
125INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
126LDFLAGS = @LDFLAGS@
127LEX = @LEX@
128LEXLIB = @LEXLIB@
129LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
130LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
131LIBGSF_LIBS = @LIBGSF_LIBS@
132LIBOBJS = @LIBOBJS@
133LIBS = @LIBS@
134LIBTOOL = @LIBTOOL@ --quiet
135LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
136LIBXML2_LIBS = @LIBXML2_LIBS@
137LN_S = @LN_S@
138LTLIBOBJS = @LTLIBOBJS@
139LTVERSION = @LTVERSION@
140MAGIC_LIBS = @MAGIC_LIBS@
141MAKEINFO = @MAKEINFO@
142MATH_LIBS = @MATH_LIBS@
143MKDIR_P = @MKDIR_P@
144OBJDUMP = @OBJDUMP@
145OBJEXT = @OBJEXT@
146PACKAGE = @PACKAGE@
147PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
148PACKAGE_NAME = @PACKAGE_NAME@
149PACKAGE_STRING = @PACKAGE_STRING@
150PACKAGE_TARNAME = @PACKAGE_TARNAME@
151PACKAGE_VERSION = @PACKAGE_VERSION@
152PATH_SEPARATOR = @PATH_SEPARATOR@
153PKG_CONFIG = @PKG_CONFIG@
154PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
155RANLIB = @RANLIB@
156SET_MAKE = @SET_MAKE@
157SHELL = @SHELL@
158STRIP = @STRIP@
159VERSION = @VERSION@
160XML2_CONFIG = @XML2_CONFIG@
161XML_CPPFLAGS = @XML_CPPFLAGS@
162XML_LIBS = @XML_LIBS@
163Z_CFLAGS = @Z_CFLAGS@
164Z_LIBS = @Z_LIBS@
165abs_builddir = @abs_builddir@
166abs_srcdir = @abs_srcdir@
167abs_top_builddir = @abs_top_builddir@
168abs_top_srcdir = @abs_top_srcdir@
169ac_ct_CC = @ac_ct_CC@
170ac_ct_CXX = @ac_ct_CXX@
171ac_ct_F77 = @ac_ct_F77@
172am__include = @am__include@
173am__leading_dot = @am__leading_dot@
174am__quote = @am__quote@
175am__tar = @am__tar@
176am__untar = @am__untar@
177bindir = @bindir@
178build = @build@
179build_alias = @build_alias@
180build_cpu = @build_cpu@
181build_os = @build_os@
182build_vendor = @build_vendor@
183builddir = @builddir@
184datadir = @datadir@
185datarootdir = @datarootdir@
186docdir = @docdir@
187dvidir = @dvidir@
188exec_prefix = @exec_prefix@
189host = @host@
190host_alias = @host_alias@
191host_cpu = @host_cpu@
192host_os = @host_os@
193host_vendor = @host_vendor@
194htmldir = @htmldir@
195includedir = @includedir@
196infodir = @infodir@
197install_sh = @install_sh@
198libdir = @libdir@
199libexecdir = @libexecdir@
200localedir = @localedir@
201localstatedir = @localstatedir@
202mandir = @mandir@
203mkdir_p = @mkdir_p@
204oldincludedir = @oldincludedir@
205pdfdir = @pdfdir@
206prefix = @prefix@
207program_transform_name = @program_transform_name@
208psdir = @psdir@
209sbindir = @sbindir@
210sharedstatedir = @sharedstatedir@
211srcdir = @srcdir@
212sysconfdir = @sysconfdir@
213target_alias = @target_alias@
214top_builddir = @top_builddir@
215top_srcdir = @top_srcdir@
216pluginimpdir = $(pkglibdir)/plugins/import
217@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_c4d.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
222 @GLIB_CFLAGS@
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 @PLUGINS_LDFLAGS@
228
229imp_c4d_la_SOURCES = imp_c4d.c
230imp_c4d_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
231all: all-am
232
233.SUFFIXES:
234.SUFFIXES: .c .lo .o .obj
235$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
236 @for dep in $?; do \
237 case '$(am__configure_deps)' in \
238 *$$dep*) \
239 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
240 && exit 0; \
241 exit 1;; \
242 esac; \
243 done; \
244 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_c4d/Makefile'; \
245 cd $(top_srcdir) && \
246 $(AUTOMAKE) --gnu plugins/import/imp_c4d/Makefile
247.PRECIOUS: Makefile
248Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
249 @case '$?' in \
250 *config.status*) \
251 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
252 *) \
253 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
254 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
255 esac;
256
257$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
258 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
259
260$(top_srcdir)/configure: $(am__configure_deps)
261 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
262$(ACLOCAL_M4): $(am__aclocal_m4_deps)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
265 @$(NORMAL_INSTALL)
266 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
267 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
268 if test -f $$p; then \
269 f=$(am__strip_dir) \
270 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
271 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
272 else :; fi; \
273 done
274
275uninstall-pluginimpLTLIBRARIES:
276 @$(NORMAL_UNINSTALL)
277 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
278 p=$(am__strip_dir) \
279 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
280 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
281 done
282
283clean-pluginimpLTLIBRARIES:
284 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
285 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
286 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
287 test "$$dir" != "$$p" || dir=.; \
288 echo "rm -f \"$${dir}/so_locations\""; \
289 rm -f "$${dir}/so_locations"; \
290 done
291imp_c4d.la: $(imp_c4d_la_OBJECTS) $(imp_c4d_la_DEPENDENCIES)
292 $(LINK) $(am_imp_c4d_la_rpath) $(imp_c4d_la_OBJECTS) $(imp_c4d_la_LIBADD) $(LIBS)
293
294mostlyclean-compile:
295 -rm -f *.$(OBJEXT)
296
297distclean-compile:
298 -rm -f *.tab.c
299
300@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_c4d.Plo@am__quote@
301
302.c.o:
303@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
304@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
305@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
306@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
307@am__fastdepCC_FALSE@ $(COMPILE) -c $<
308
309.c.obj:
310@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
311@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
313@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
314@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
315
316.c.lo:
317@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
318@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
320@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
321@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
322
323mostlyclean-libtool:
324 -rm -f *.lo
325
326clean-libtool:
327 -rm -rf .libs _libs
328
329ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
330 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
331 unique=`for i in $$list; do \
332 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
333 done | \
334 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
335 END { if (nonempty) { for (i in files) print i; }; }'`; \
336 mkid -fID $$unique
337tags: TAGS
338
339TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
340 $(TAGS_FILES) $(LISP)
341 tags=; \
342 here=`pwd`; \
343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
344 unique=`for i in $$list; do \
345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
346 done | \
347 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
349 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
350 test -n "$$unique" || unique=$$empty_fix; \
351 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
352 $$tags $$unique; \
353 fi
354ctags: CTAGS
355CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
356 $(TAGS_FILES) $(LISP)
357 tags=; \
358 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
359 unique=`for i in $$list; do \
360 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
361 done | \
362 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
363 END { if (nonempty) { for (i in files) print i; }; }'`; \
364 test -z "$(CTAGS_ARGS)$$tags$$unique" \
365 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
366 $$tags $$unique
367
368GTAGS:
369 here=`$(am__cd) $(top_builddir) && pwd` \
370 && cd $(top_srcdir) \
371 && gtags -i $(GTAGS_ARGS) $$here
372
373distclean-tags:
374 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
375
376distdir: $(DISTFILES)
377 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
379 list='$(DISTFILES)'; \
380 dist_files=`for file in $$list; do echo $$file; done | \
381 sed -e "s|^$$srcdirstrip/||;t" \
382 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
383 case $$dist_files in \
384 */*) $(MKDIR_P) `echo "$$dist_files" | \
385 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
386 sort -u` ;; \
387 esac; \
388 for file in $$dist_files; do \
389 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
390 if test -d $$d/$$file; then \
391 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
392 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
393 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
394 fi; \
395 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
396 else \
397 test -f $(distdir)/$$file \
398 || cp -p $$d/$$file $(distdir)/$$file \
399 || exit 1; \
400 fi; \
401 done
402check-am: all-am
403check: check-am
404all-am: Makefile $(LTLIBRARIES)
405installdirs:
406 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
407 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
408 done
409install: install-am
410install-exec: install-exec-am
411install-data: install-data-am
412uninstall: uninstall-am
413
414install-am: all-am
415 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
416
417installcheck: installcheck-am
418install-strip:
419 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
420 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
421 `test -z '$(STRIP)' || \
422 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
423mostlyclean-generic:
424
425clean-generic:
426
427distclean-generic:
428 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
429
430maintainer-clean-generic:
431 @echo "This command is intended for maintainers to use"
432 @echo "it deletes files that may require special tools to rebuild."
433clean: clean-am
434
435clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
436 mostlyclean-am
437
438distclean: distclean-am
439 -rm -rf ./$(DEPDIR)
440 -rm -f Makefile
441distclean-am: clean-am distclean-compile distclean-generic \
442 distclean-tags
443
444dvi: dvi-am
445
446dvi-am:
447
448html: html-am
449
450info: info-am
451
452info-am:
453
454install-data-am: install-pluginimpLTLIBRARIES
455
456install-dvi: install-dvi-am
457
458install-exec-am:
459
460install-html: install-html-am
461
462install-info: install-info-am
463
464install-man:
465
466install-pdf: install-pdf-am
467
468install-ps: install-ps-am
469
470installcheck-am:
471
472maintainer-clean: maintainer-clean-am
473 -rm -rf ./$(DEPDIR)
474 -rm -f Makefile
475maintainer-clean-am: distclean-am maintainer-clean-generic
476
477mostlyclean: mostlyclean-am
478
479mostlyclean-am: mostlyclean-compile mostlyclean-generic \
480 mostlyclean-libtool
481
482pdf: pdf-am
483
484pdf-am:
485
486ps: ps-am
487
488ps-am:
489
490uninstall-am: uninstall-pluginimpLTLIBRARIES
491
492.MAKE: install-am install-strip
493
494.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
495 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
496 distclean-compile distclean-generic distclean-libtool \
497 distclean-tags distdir dvi dvi-am html html-am info info-am \
498 install install-am install-data install-data-am install-dvi \
499 install-dvi-am install-exec install-exec-am install-html \
500 install-html-am install-info install-info-am install-man \
501 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
502 install-ps install-ps-am install-strip installcheck \
503 installcheck-am installdirs maintainer-clean \
504 maintainer-clean-generic mostlyclean mostlyclean-compile \
505 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
506 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
507
508# Tell versions [3.59,3.63) of GNU make to not export all variables.
509# Otherwise a system limit (for SysV at least) may be exceeded.
510.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/imp_c4d.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/imp_c4d.c
new file mode 100644
index 0000000..93415f2
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/imp_c4d.c
@@ -0,0 +1,363 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24
25#include <g3d/types.h>
26#include <g3d/stream.h>
27#include <g3d/debug.h>
28
29static gboolean c4d_load_v5(G3DContext *context, G3DStream *stream,
30 G3DModel *model);
31static gboolean c4d_load_v6(G3DContext *context, G3DStream *stream,
32 G3DModel *model);
33
34EAPI
35gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
36 G3DModel *model, gpointer user_data)
37{
38 gchar magic[5];
39
40 g3d_stream_read(stream, magic, 4);
41 magic[4] = '\0';
42 if(strncmp(magic + 1, "C4D", 3) == 0) {
43 g3d_stream_read(stream, magic, 4);
44 if(strncmp(magic, "C4D6", 4) == 0)
45 return c4d_load_v6(context, stream, model);
46 else {
47 g_warning("unknown C4D magic: %s", magic);
48 return FALSE;
49 }
50 } else if(strncmp(magic + 1, "C50", 3) == 0) {
51 g_debug("C4D v5: %s", magic);
52 return c4d_load_v5(context, stream, model);
53 } else {
54 g_warning("C4D: unknown magic %s, not a C4D file?", magic);
55 return FALSE;
56 }
57 return TRUE;
58}
59
60EAPI
61gchar *plugin_description(void)
62{
63 return g_strdup("Cinema4D models.");
64}
65
66EAPI
67gchar **plugin_extensions(void)
68{
69 return g_strsplit("c4d", ":", 0);
70}
71
72/*****************************************************************************/
73
74static gchar *c4d_read_wchar(G3DStream *stream, gsize *n_bytes)
75{
76 guint32 len;
77 gunichar2 *u16text;
78 gchar *text;
79 gint32 i;
80 GError *error = NULL;
81
82 len = g3d_stream_read_int32_be(stream);
83 *n_bytes += 4 + len;
84 u16text = g_new0(gunichar2, len + 1);
85 for(i = 0; i < len / 2; i ++)
86 u16text[i] = g3d_stream_read_int16_be(stream);
87 text = g_utf16_to_utf8(u16text, len, NULL, NULL, &error);
88 if(error != NULL) {
89 g_warning("UTF-16 to UTF-8 conversion failed: %s", error->message);
90 g_error_free(error);
91 }
92 g_free(u16text);
93 return text;
94}
95
96#define C4D_DEBUG_OPCODE 0
97
98static gboolean c4d_handle_opcode(guint8 opcode, G3DStream *stream,
99 G3DModel *model, gsize *n_bytes, guint32 *level)
100{
101 guint8 u1, *data;
102 guint16 w1, w2, w3;
103 guint32 x1, x3;
104 gsize x2;
105 G3DFloat f1, f2, f3;
106 gchar *str;
107 gint32 i;
108
109 switch(opcode) {
110 case 0x01: /* 64 bit something */
111 *level += 1;
112 x1 = g3d_stream_read_int32_be(stream);
113 x2 = g3d_stream_read_int32_be(stream);
114 *n_bytes += 8;
115#if DEBUG > C4D_DEBUG_OPCODE
116 g_debug("\\%s01: 0x%08x 0x%08x", debug_pad(*level), x1, x2);
117#endif
118 break;
119 case 0x02: /* no payload */
120#if DEBUG > C4D_DEBUG_OPCODE
121 g_debug("\\%s02", debug_pad(*level));
122#endif
123 if(*level == 0) {
124 g_warning("E: 02: level == 0)");
125 } else
126 *level -= 1;
127 break;
128 case 0x0C: /* 8 bit something */
129 u1 = g3d_stream_read_int8(stream);
130 *n_bytes += 1;
131#if DEBUG > C4D_DEBUG_OPCODE
132 g_debug("\\%s0C: 0x%02x", debug_pad(*level), u1);
133#endif
134 break;
135 case 0x0F: /* 32 bit something */
136 x1 = g3d_stream_read_int32_be(stream);
137 *n_bytes += 4;
138#if DEBUG > C4D_DEBUG_OPCODE
139 g_debug("\\%s0F: 0x%08x", debug_pad(*level), x1);
140#endif
141 break;
142 case 0x10: /* 32 bit something */
143 x1 = g3d_stream_read_int32_be(stream);
144 *n_bytes += 4;
145#if DEBUG > C4D_DEBUG_OPCODE
146 g_debug("\\%s10: 0x%08x", debug_pad(*level), x1);
147#endif
148 break;
149 case 0x13: /* float */
150 f1 = g3d_stream_read_float_be(stream);
151 *n_bytes += 4;
152#if DEBUG > C4D_DEBUG_OPCODE
153 g_debug("\\%s13: %.3f", debug_pad(*level), f1);
154#endif
155 break;
156 case 0x15: /* 8 bit something */
157 u1 = g3d_stream_read_int8(stream);
158 *n_bytes += 1;
159#if DEBUG > C4D_DEBUG_OPCODE
160 g_debug("\\%s15: 0x%02x", debug_pad(*level), u1);
161#endif
162 break;
163 case 0x16: /* 2 x float */
164 f1 = g3d_stream_read_float_be(stream);
165 f2 = g3d_stream_read_float_be(stream);
166 *n_bytes += 8;
167#if DEBUG > C4D_DEBUG_OPCODE
168 g_debug("\\%s16: %.3f, %.3f", debug_pad(*level), f1, f2);
169#endif
170 break;
171 case 0x17: /* 3 x float */
172 f1 = g3d_stream_read_float_be(stream);
173 f2 = g3d_stream_read_float_be(stream);
174 f3 = g3d_stream_read_float_be(stream);
175 *n_bytes += 12;
176#if DEBUG > C4D_DEBUG_OPCODE
177 g_debug("\\%s17: %.3f, %.3f, %.3f", debug_pad(*level), f1, f2, f3);
178#endif
179 break;
180 case 0x19: /* 12 x float */
181#if DEBUG > C4D_DEBUG_OPCODE
182 g_debug("\\%s19:", debug_pad(*level));
183#endif
184 for(i = 0; i < 4; i ++) {
185 f1 = g3d_stream_read_float_be(stream);
186 f2 = g3d_stream_read_float_be(stream);
187 f3 = g3d_stream_read_float_be(stream);
188 *n_bytes += 12;
189#if DEBUG > C4D_DEBUG_OPCODE
190 g_debug("\\%s %.3f, %.3f, %.3f", debug_pad(*level),
191 f1, f2, f3);
192#endif
193 }
194 break;
195 case 0x80: /* data */
196 x1 = g3d_stream_read_int32_be(stream);
197 *n_bytes += 4 + x1;
198 data = g_new0(guint8, x1);
199 g3d_stream_read(stream, data, x1);
200#if DEBUG > C4D_DEBUG_OPCODE
201 g_debug("\\%s80: %d bytes of data", debug_pad(*level), x1);
202#endif
203 g_free(data);
204 break;
205 case 0x81: /* embedded file */
206 x1 = g3d_stream_read_int32_be(stream);
207 *n_bytes += 4;
208 g3d_stream_skip(stream, x1);
209 *n_bytes += x1;
210#if DEBUG > C4D_DEBUG_OPCODE
211 g_debug("\\%s81: skipped %d bytes", debug_pad(*level), x1);
212#endif
213 break;
214 case 0x82: /* wide-char string */
215 str = c4d_read_wchar(stream, n_bytes);
216#if DEBUG > C4D_DEBUG_OPCODE
217 g_debug("\\%s82: %s", debug_pad(*level), str);
218#endif
219 if(str)
220 g_free(str);
221 break;
222 case 0x83: /* file name */
223 str = c4d_read_wchar(stream, n_bytes);
224#if DEBUG > C4D_DEBUG_OPCODE
225 g_debug("\\%s83: %s", debug_pad(*level), str);
226#endif
227 if(str)
228 g_free(str);
229 break;
230 case 0x84: /* typed content */
231 x1 = g3d_stream_read_int32_be(stream);
232 *n_bytes += 4;
233 x2 = 0;
234#if DEBUG > C4D_DEBUG_OPCODE
235 g_debug("\\%s84: 0x%08x", debug_pad(*level), x1);
236#endif
237 *level += 1;
238 while(x2 < x1) {
239 u1 = g3d_stream_read_int8(stream);
240 x2 ++;
241 if(!c4d_handle_opcode(u1, stream, model, &x2, level))
242 return FALSE;
243 x3 = g3d_stream_read_int32_be(stream);
244 x2 += 4;
245 u1 = g3d_stream_read_int8(stream);
246 x2 += 1;
247 }
248 *level -= 1;
249 *n_bytes += x1;
250 break;
251 case 0x85: /* n * 3 * float */
252 x1 = g3d_stream_read_int32_be(stream);
253 *n_bytes += 4;
254#if DEBUG > C4D_DEBUG_OPCODE
255 g_debug("\\%s85:", debug_pad(*level));
256#endif
257 for(i = 0; i < (x1 / 12); i ++) {
258 f1 = g3d_stream_read_float_be(stream);
259 f2 = g3d_stream_read_float_be(stream);
260 f3 = g3d_stream_read_float_be(stream);
261 *n_bytes += 12;
262#if DEBUG > C4D_DEBUG_OPCODE
263 g_debug("\\%s %.3f, %.3f, %.3f", debug_pad(*level),
264 f1, f2, f3);
265#endif
266 }
267 break;
268 case 0x86: /* n * int16 */
269 x1 = g3d_stream_read_int32_be(stream);
270 *n_bytes += 4;
271#if DEBUG > C4D_DEBUG_OPCODE
272 g_debug("\\%s86:", debug_pad(*level));
273#endif
274 for(i = 0; i < (x1 / 2); i ++) {
275 w1 = g3d_stream_read_int16_be(stream);
276 *n_bytes += 2;
277#if DEBUG > C4D_DEBUG_OPCODE
278 g_debug("\\%s 0x%04x", debug_pad(*level), w1);
279#endif
280 }
281 break;
282 case 0x87: /* n * 3 * int16 */
283 x1 = g3d_stream_read_int32_be(stream);
284 *n_bytes += 4;
285#if DEBUG > C4D_DEBUG_OPCODE
286 g_debug("\\%s87:", debug_pad(*level));
287#endif
288 for(i = 0; i < (x1 / 6); i ++) {
289 w1 = g3d_stream_read_int16_be(stream);
290 w2 = g3d_stream_read_int16_be(stream);
291 w3 = g3d_stream_read_int16_be(stream);
292 *n_bytes += 6;
293#if DEBUG > C4D_DEBUG_OPCODE
294 g_debug("\\%s 0x%04x 0x%04x 0x%04x", debug_pad(*level),
295 w1, w2, w3);
296#endif
297 }
298 break;
299 default:
300 if(g3d_stream_eof(stream))
301 return TRUE;
302#if DEBUG > 0
303 g_debug("%sunknown opcode 0x%02X @ 0x%08x", debug_pad(*level),
304 opcode, (guint32)g3d_stream_tell(stream));
305#endif
306 return FALSE;
307 }
308 return TRUE;
309}
310
311static gboolean c4d_read_v5_cntr(G3DContext *context, G3DStream *stream,
312 G3DModel *model, goffset *n_bytes, guint32 level)
313{
314 guint32 id;
315 goffset size;
316
317 while(!g3d_stream_eof(stream) && (*n_bytes > 0)) {
318 id = g3d_stream_read_int32_be(stream);
319 size = g3d_stream_read_int32_be(stream);
320 *n_bytes -= 8;
321 if(*n_bytes < 0)
322 return FALSE;
323#if DEBUG > 0
324 g_debug("\\%s0x%08x @ 0x%08x (%u bytes)", debug_pad(level), id,
325 (guint32)g3d_stream_tell(stream), (guint32)size);
326#endif
327 *n_bytes -= size;
328 if((id == 0x00001647) || (id == 0x0000139c)) {
329 if(!c4d_read_v5_cntr(context, stream, model, &size, level + 1))
330 return FALSE;
331 } else {
332 g3d_stream_skip(stream, size);
333 }
334 }
335 return TRUE;
336}
337
338static gboolean c4d_load_v5(G3DContext *context, G3DStream *stream,
339 G3DModel *model)
340{
341 goffset n_bytes;
342
343 n_bytes = g3d_stream_read_int32_be(stream); /* file size */
344 g3d_stream_read_int32_be(stream); /* DOK5 */
345 g3d_stream_read_int32_be(stream); /* unknown 1 */
346
347 return c4d_read_v5_cntr(context, stream, model, &n_bytes, 0);
348}
349
350static gboolean c4d_load_v6(G3DContext *context, G3DStream *stream,
351 G3DModel *model)
352{
353 guint8 opcode;
354 gsize n_bytes = 0;
355 guint32 level = 0;
356
357 while(!g3d_stream_eof(stream)) {
358 opcode = g3d_stream_read_int8(stream);
359 if(!c4d_handle_opcode(opcode, stream, model, &n_bytes, &level))
360 return FALSE;
361 }
362 return TRUE;
363}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile
new file mode 100644
index 0000000..d870ee3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_cob/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_cob
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_cob_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_cob_la_OBJECTS = imp_cob.lo
59imp_cob_la_OBJECTS = $(am_imp_cob_la_OBJECTS)
60DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_cob_la_SOURCES)
73DIST_SOURCES = $(imp_cob_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
78AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
79AR = ar
80AS = as
81AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
82AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
83AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
84AWK = gawk
85CC = gcc
86CCDEPMODE = depmode=gcc3
87CFLAGS = -g -O2
88CPP = gcc -E
89CPPFLAGS =
90CXX = g++
91CXXCPP = g++ -E
92CXXDEPMODE = depmode=gcc3
93CXXFLAGS = -g -O2
94CYGPATH_W = echo
95DBG_CFLAGS = -O2
96DEBUG = 0
97DEFS = -DHAVE_CONFIG_H
98DEPDIR = .deps
99DLLTOOL = dlltool
100ECHO = echo
101ECHO_C =
102ECHO_N = -n
103ECHO_T =
104EGREP = /bin/grep -E
105EXEEXT =
106F77 =
107FFLAGS =
108GDKPIXBUF_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
109GDKPIXBUF_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
110GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
111GLIB_GENMARSHAL = glib-genmarshal
112GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
113GLIB_MKENUMS = glib-mkenums
114GOBJECT_QUERY = gobject-query
115GREP = /bin/grep
116GTKDOC_CHECK = /usr/bin/gtkdoc-check
117GTK_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
118GTK_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
119HTML_DIR = ${datadir}/gtk-doc/html
120INSTALL = /usr/bin/install -c
121INSTALL_DATA = ${INSTALL} -m 644
122INSTALL_PROGRAM = ${INSTALL}
123INSTALL_SCRIPT = ${INSTALL}
124INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
125LDFLAGS =
126LEX = flex
127LEXLIB = -lfl
128LEX_OUTPUT_ROOT = lex.yy
129LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
130LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
131LIBOBJS =
132LIBS = -lm
133LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
134LIBXML2_CFLAGS = -I/usr/include/libxml2
135LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
136LN_S = ln -s
137LTLIBOBJS =
138LTVERSION = 0:8:0
139MAGIC_LIBS = -lmagic
140MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
141MATH_LIBS = -lm
142MKDIR_P = /bin/mkdir -p
143OBJDUMP = objdump
144OBJEXT = o
145PACKAGE = libg3d
146PACKAGE_BUGREPORT =
147PACKAGE_NAME =
148PACKAGE_STRING =
149PACKAGE_TARNAME =
150PACKAGE_VERSION =
151PATH_SEPARATOR = :
152PKG_CONFIG = /usr/bin/pkg-config
153PLUGINS_LDFLAGS = -avoid-version -export-dynamic
154RANLIB = ranlib
155SET_MAKE =
156SHELL = /bin/bash
157STRIP = strip
158VERSION = 0.0.8
159XML2_CONFIG = /usr/bin/xml2-config
160XML_CPPFLAGS = -I/usr/include/libxml2
161XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
162Z_CFLAGS =
163Z_LIBS = -lz
164abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob
165abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob
166abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
167abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168ac_ct_CC = gcc
169ac_ct_CXX = g++
170ac_ct_F77 =
171am__include = include
172am__leading_dot = .
173am__quote =
174am__tar = ${AMTAR} chof - "$$tardir"
175am__untar = ${AMTAR} xf -
176bindir = ${exec_prefix}/bin
177build = x86_64-unknown-linux-gnu
178build_alias =
179build_cpu = x86_64
180build_os = linux-gnu
181build_vendor = unknown
182builddir = .
183datadir = ${datarootdir}
184datarootdir = ${prefix}/share
185docdir = ${datarootdir}/doc/${PACKAGE}
186dvidir = ${docdir}
187exec_prefix = ${prefix}
188host = x86_64-unknown-linux-gnu
189host_alias =
190host_cpu = x86_64
191host_os = linux-gnu
192host_vendor = unknown
193htmldir = ${docdir}
194includedir = ${prefix}/include
195infodir = ${datarootdir}/info
196install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
197libdir = ${exec_prefix}/lib
198libexecdir = ${exec_prefix}/libexec
199localedir = ${datarootdir}/locale
200localstatedir = ${prefix}/var
201mandir = ${datarootdir}/man
202mkdir_p = /bin/mkdir -p
203oldincludedir = /usr/include
204pdfdir = ${docdir}
205prefix = /usr/local
206program_transform_name = s,x,x,
207psdir = ${docdir}
208sbindir = ${exec_prefix}/sbin
209sharedstatedir = ${prefix}/com
210srcdir = .
211sysconfdir = ${prefix}/etc
212target_alias =
213top_builddir = ../../..
214top_srcdir = ../../..
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_cob.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 -O2 -DDEBUG=0 \
221 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 -avoid-version -export-dynamic
227
228imp_cob_la_SOURCES = imp_cob.c
229imp_cob_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_cob/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_cob/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_cob.la: $(imp_cob_la_OBJECTS) $(imp_cob_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_cob_la_OBJECTS) $(imp_cob_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299include ./$(DEPDIR)/imp_cob.Plo
300
301.c.o:
302 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304# source='$<' object='$@' libtool=no \
305# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
306# $(COMPILE) -c $<
307
308.c.obj:
309 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311# source='$<' object='$@' libtool=no \
312# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
313# $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318# source='$<' object='$@' libtool=yes \
319# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
320# $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile.am
new file mode 100644
index 0000000..523e7c0
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile.am
@@ -0,0 +1,20 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_cob.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_cob_la_SOURCES = imp_cob.c
20imp_cob_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile.in
new file mode 100644
index 0000000..d65e4c6
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile.in
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_cob
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_cob_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_cob_la_OBJECTS = imp_cob.lo
59imp_cob_la_OBJECTS = $(am_imp_cob_la_OBJECTS)
60DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_cob_la_SOURCES)
73DIST_SOURCES = $(imp_cob_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = @ACLOCAL@
78AMTAR = @AMTAR@
79AR = @AR@
80AS = @AS@
81AUTOCONF = @AUTOCONF@
82AUTOHEADER = @AUTOHEADER@
83AUTOMAKE = @AUTOMAKE@
84AWK = @AWK@
85CC = @CC@
86CCDEPMODE = @CCDEPMODE@
87CFLAGS = @CFLAGS@
88CPP = @CPP@
89CPPFLAGS = @CPPFLAGS@
90CXX = @CXX@
91CXXCPP = @CXXCPP@
92CXXDEPMODE = @CXXDEPMODE@
93CXXFLAGS = @CXXFLAGS@
94CYGPATH_W = @CYGPATH_W@
95DBG_CFLAGS = @DBG_CFLAGS@
96DEBUG = @DEBUG@
97DEFS = @DEFS@
98DEPDIR = @DEPDIR@
99DLLTOOL = @DLLTOOL@
100ECHO = @ECHO@
101ECHO_C = @ECHO_C@
102ECHO_N = @ECHO_N@
103ECHO_T = @ECHO_T@
104EGREP = @EGREP@
105EXEEXT = @EXEEXT@
106F77 = @F77@
107FFLAGS = @FFLAGS@
108GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
109GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
110GLIB_CFLAGS = @GLIB_CFLAGS@
111GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
112GLIB_LIBS = @GLIB_LIBS@
113GLIB_MKENUMS = @GLIB_MKENUMS@
114GOBJECT_QUERY = @GOBJECT_QUERY@
115GREP = @GREP@
116GTKDOC_CHECK = @GTKDOC_CHECK@
117GTK_CFLAGS = @GTK_CFLAGS@
118GTK_LIBS = @GTK_LIBS@
119HTML_DIR = @HTML_DIR@
120INSTALL = @INSTALL@
121INSTALL_DATA = @INSTALL_DATA@
122INSTALL_PROGRAM = @INSTALL_PROGRAM@
123INSTALL_SCRIPT = @INSTALL_SCRIPT@
124INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125LDFLAGS = @LDFLAGS@
126LEX = @LEX@
127LEXLIB = @LEXLIB@
128LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
129LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
130LIBGSF_LIBS = @LIBGSF_LIBS@
131LIBOBJS = @LIBOBJS@
132LIBS = @LIBS@
133LIBTOOL = @LIBTOOL@ --quiet
134LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
135LIBXML2_LIBS = @LIBXML2_LIBS@
136LN_S = @LN_S@
137LTLIBOBJS = @LTLIBOBJS@
138LTVERSION = @LTVERSION@
139MAGIC_LIBS = @MAGIC_LIBS@
140MAKEINFO = @MAKEINFO@
141MATH_LIBS = @MATH_LIBS@
142MKDIR_P = @MKDIR_P@
143OBJDUMP = @OBJDUMP@
144OBJEXT = @OBJEXT@
145PACKAGE = @PACKAGE@
146PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147PACKAGE_NAME = @PACKAGE_NAME@
148PACKAGE_STRING = @PACKAGE_STRING@
149PACKAGE_TARNAME = @PACKAGE_TARNAME@
150PACKAGE_VERSION = @PACKAGE_VERSION@
151PATH_SEPARATOR = @PATH_SEPARATOR@
152PKG_CONFIG = @PKG_CONFIG@
153PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
154RANLIB = @RANLIB@
155SET_MAKE = @SET_MAKE@
156SHELL = @SHELL@
157STRIP = @STRIP@
158VERSION = @VERSION@
159XML2_CONFIG = @XML2_CONFIG@
160XML_CPPFLAGS = @XML_CPPFLAGS@
161XML_LIBS = @XML_LIBS@
162Z_CFLAGS = @Z_CFLAGS@
163Z_LIBS = @Z_LIBS@
164abs_builddir = @abs_builddir@
165abs_srcdir = @abs_srcdir@
166abs_top_builddir = @abs_top_builddir@
167abs_top_srcdir = @abs_top_srcdir@
168ac_ct_CC = @ac_ct_CC@
169ac_ct_CXX = @ac_ct_CXX@
170ac_ct_F77 = @ac_ct_F77@
171am__include = @am__include@
172am__leading_dot = @am__leading_dot@
173am__quote = @am__quote@
174am__tar = @am__tar@
175am__untar = @am__untar@
176bindir = @bindir@
177build = @build@
178build_alias = @build_alias@
179build_cpu = @build_cpu@
180build_os = @build_os@
181build_vendor = @build_vendor@
182builddir = @builddir@
183datadir = @datadir@
184datarootdir = @datarootdir@
185docdir = @docdir@
186dvidir = @dvidir@
187exec_prefix = @exec_prefix@
188host = @host@
189host_alias = @host_alias@
190host_cpu = @host_cpu@
191host_os = @host_os@
192host_vendor = @host_vendor@
193htmldir = @htmldir@
194includedir = @includedir@
195infodir = @infodir@
196install_sh = @install_sh@
197libdir = @libdir@
198libexecdir = @libexecdir@
199localedir = @localedir@
200localstatedir = @localstatedir@
201mandir = @mandir@
202mkdir_p = @mkdir_p@
203oldincludedir = @oldincludedir@
204pdfdir = @pdfdir@
205prefix = @prefix@
206program_transform_name = @program_transform_name@
207psdir = @psdir@
208sbindir = @sbindir@
209sharedstatedir = @sharedstatedir@
210srcdir = @srcdir@
211sysconfdir = @sysconfdir@
212target_alias = @target_alias@
213top_builddir = @top_builddir@
214top_srcdir = @top_srcdir@
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_cob.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
221 @GLIB_CFLAGS@
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 @PLUGINS_LDFLAGS@
227
228imp_cob_la_SOURCES = imp_cob.c
229imp_cob_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_cob/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_cob/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_cob.la: $(imp_cob_la_OBJECTS) $(imp_cob_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_cob_la_OBJECTS) $(imp_cob_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_cob.Plo@am__quote@
300
301.c.o:
302@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
305@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
306@am__fastdepCC_FALSE@ $(COMPILE) -c $<
307
308.c.obj:
309@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
313@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
320@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/imp_cob.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/imp_cob.c
new file mode 100644
index 0000000..0e9df6b
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/imp_cob.c
@@ -0,0 +1,430 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <stdlib.h>
25#include <string.h>
26
27#include <g3d/types.h>
28#include <g3d/context.h>
29#include <g3d/material.h>
30#include <g3d/model.h>
31#include <g3d/vector.h>
32#include <g3d/matrix.h>
33#include <g3d/stream.h>
34#include <g3d/iff.h>
35
36static gboolean cob_read_file_bin(G3DStream *stream, G3DModel *model,
37 gboolean is_be, G3DContext *context);
38
39EAPI
40gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
41 G3DModel *model, gpointer user_data)
42{
43 gchar header[32];
44 gboolean file_is_ascii, file_is_be;
45 G3DMatrix rmatrix[16];
46
47 if(g3d_stream_read(stream, header, 32) != 32) {
48 g_warning("COB: could not read header");
49 return FALSE;
50 }
51
52 if(strncmp(header, "Caligari ", 9) != 0) {
53 g_warning("COB: '%s' is not a valid TrueSpace file", stream->uri);
54 return FALSE;
55 }
56
57 file_is_ascii = (header[15] == 'A');
58 file_is_be = (header[16] == 'H');
59
60#if DEBUG > 0
61 g_debug("COB: file version %.*s, %s, %s endian\n",
62 6, header + 9,
63 file_is_ascii ? "ASCII" : "binary",
64 file_is_be ? "big" : "little" );
65#endif
66
67 if(file_is_ascii) {
68 g_warning("COB: ASCII files are unsupported at the moment");
69 return FALSE;
70 }
71
72 cob_read_file_bin(stream, model, file_is_be, context);
73
74 g3d_matrix_identity(rmatrix);
75 g3d_matrix_rotate_xyz(G_PI * -90.0 / 180, 0.0, 0.0, rmatrix);
76 g3d_model_transform(model, rmatrix);
77
78 return TRUE;
79}
80
81EAPI
82gchar *plugin_description(void)
83{
84 return g_strdup("Caligari TrueSpace models.");
85}
86
87EAPI
88gchar **plugin_extensions(void)
89{
90 return g_strsplit("cob", ":", 0);
91}
92
93/*
94 * COB specific
95 */
96
97#define cob_read_e(stream, what, be) \
98 ((be) ? g3d_stream_read_ ## what ## _be(stream) : \
99 g3d_stream_read_ ## what ## _le(stream))
100
101#define COB_F_HOLE 0x08
102#define COB_F_BACKCULL 0x10
103
104static gboolean cob_read_chunk_header_bin(G3DStream *stream, gboolean is_be,
105 guint32 *type, guint16 *ver_maj, guint16 *ver_min,
106 guint32 *id, guint32 *parent_id, guint32 *len)
107{
108 *type =
109 (g3d_stream_read_int8(stream) << 24) +
110 (g3d_stream_read_int8(stream) << 16) +
111 (g3d_stream_read_int8(stream) << 8) +
112 (g3d_stream_read_int8(stream));
113 *ver_maj = cob_read_e(stream, int16, is_be);
114 *ver_min = cob_read_e(stream, int16, is_be);
115 *id = cob_read_e(stream, int32, is_be);
116 *parent_id = cob_read_e(stream, int32, is_be);
117 *len = cob_read_e(stream, int32, is_be);
118
119 return TRUE;
120}
121
122static gchar *cob_read_name_bin(G3DStream *stream, guint32 *len, gboolean is_be)
123{
124 gchar *buffer, *name;
125 guint32 dc, namelen;
126
127 dc = cob_read_e(stream, int16, is_be);
128 *len -= 2;
129
130 namelen = cob_read_e(stream, int16, is_be);
131 *len -= 2;
132
133 buffer = g_new0(gchar, namelen + 1);
134 g3d_stream_read(stream, buffer, namelen);
135 *len -= namelen;
136
137 name = g_strdup_printf("%s (%d)", buffer, dc);
138
139 g_free(buffer);
140 return name;
141}
142
143static G3DObject *cob_read_grou_bin(G3DStream *stream, guint32 len, gboolean is_be)
144{
145 G3DObject *object;
146
147 object = g_new0(G3DObject, 1);
148 object->name = cob_read_name_bin(stream, &len, is_be);
149#if DEBUG > 0
150 g_debug("COB: Grou: name is '%s'", object->name);
151#endif
152
153 if(len > 0)
154 g3d_stream_skip(stream, len);
155
156 return object;
157}
158
159static G3DObject *cob_read_polh_bin(G3DStream *stream, guint32 len, gboolean is_be,
160 G3DContext *context)
161{
162 G3DObject *object;
163 guint32 nfaces, i;
164 G3DFloat curpos[16];
165
166 object = g_new0(G3DObject, 1);
167 object->name = cob_read_name_bin(stream, &len, is_be);
168#if DEBUG > 0
169 g_debug("COB: PolH: name is '%s'", object->name);
170#endif
171
172 /* local axes: 4 x 12 */
173 g3d_stream_skip(stream, 48);
174 len -= 48;
175
176 /* current position: 3 x 16 */
177 g3d_matrix_identity(curpos);
178 for(i = 0; i < 12; i ++)
179 {
180 curpos[i] = cob_read_e(stream, float, is_be);
181 len -= 4;
182 }
183 g3d_matrix_transpose(curpos);
184
185 /*g3d_matrix_dump(curpos);*/
186
187 /* vertex list */
188 object->vertex_count = cob_read_e(stream, int32, is_be);
189 len -= 4;
190 object->vertex_data = g_new0(G3DFloat, object->vertex_count * 3);
191 for(i = 0; i < object->vertex_count; i ++)
192 {
193 object->vertex_data[i*3+0] = cob_read_e(stream, float, is_be);
194 object->vertex_data[i*3+1] = cob_read_e(stream, float, is_be);
195 object->vertex_data[i*3+2] = cob_read_e(stream, float, is_be);
196 g3d_vector_transform(
197 &(object->vertex_data[i*3+0]),
198 &(object->vertex_data[i*3+1]),
199 &(object->vertex_data[i*3+2]),
200 curpos);
201 g3d_context_update_interface(context);
202 len -= 12;
203 }
204
205 /* texture vertex list */
206 object->tex_vertex_count = cob_read_e(stream, int32, is_be);
207 len -= 4;
208 object->tex_vertex_data = g_new0(G3DFloat, object->tex_vertex_count * 2);
209 for(i = 0; i < object->tex_vertex_count; i ++)
210 {
211 object->tex_vertex_data[i*2+0] = cob_read_e(stream, float, is_be);
212 object->tex_vertex_data[i*2+1] = cob_read_e(stream, float, is_be);
213 g3d_context_update_interface(context);
214 len -= 8;
215 }
216
217 /* faces and holes */
218 nfaces = cob_read_e(stream, int32, is_be);
219 len -= 4;
220 for(i = 0; i < nfaces; i ++)
221 {
222 G3DFace *face;
223 guint8 flags;
224 guint32 nverts, j, matidx;
225
226 flags = g3d_stream_read_int8(stream);
227 len -= 1;
228 if(flags & COB_F_HOLE)
229 {
230 /* hole: ignore for now */
231 nverts = cob_read_e(stream, int16, is_be);
232 len -= 2;
233 for(j = 0; j < nverts; j ++)
234 {
235 cob_read_e(stream, int32, is_be);
236 cob_read_e(stream, int32, is_be);
237 len -= 8;
238 }
239 }
240 else
241 {
242 /* "real" face */
243 nverts = cob_read_e(stream, int16, is_be);
244 len -= 2;
245 matidx = cob_read_e(stream, int16, is_be);
246 len -= 2;
247 face = g_new0(G3DFace, 1);
248
249 face->vertex_count = nverts;
250 face->vertex_indices = g_new0(guint32, nverts);
251 for(j = 0; j < nverts; j ++)
252 {
253 face->vertex_indices[j] = cob_read_e(stream, int32, is_be);
254 cob_read_e(stream, int32, is_be); /* UV indices */
255 len -= 8;
256 }
257
258 /* set material */
259 if(matidx < g_slist_length(object->materials))
260 face->material = g_slist_nth_data(object->materials, matidx);
261 else
262 {
263 for(j = g_slist_length(object->materials); j <= matidx; j ++)
264 {
265 G3DMaterial *material = g3d_material_new();
266 material->name = g_strdup_printf("fallback material %d",
267 j);
268 object->materials =
269 g_slist_append(object->materials, material);
270 }
271
272 face->material = g_slist_nth_data(object->materials, matidx);
273 }
274
275 object->faces = g_slist_prepend(object->faces, face);
276 }
277
278 g3d_context_update_interface(context);
279 }
280
281 if(len > 0)
282 g3d_stream_skip(stream, len);
283
284 return object;
285}
286
287static int cob_read_mat1_bin(G3DStream *stream, guint32 len, gboolean is_be,
288 G3DObject *object)
289{
290 G3DMaterial *material;
291 guint32 matidx;
292
293 g_return_val_if_fail(object != NULL, FALSE);
294
295 matidx = cob_read_e(stream, int16, is_be);
296 len -= 2;
297
298 material = g_slist_nth_data(object->materials, matidx);
299
300 if(material)
301 {
302 g_free(material->name);
303 material->name = g_strdup_printf("material #%d", matidx);
304
305 /* shader type */
306 g3d_stream_read_int8(stream);
307 len --;
308
309 /* facet type */
310 g3d_stream_read_int8(stream);
311 len --;
312
313 /* autofacet angle */
314 g3d_stream_read_int8(stream);
315 len --;
316
317 /* RGBA */
318 material->r = cob_read_e(stream, float, is_be);
319 material->g = cob_read_e(stream, float, is_be);
320 material->b = cob_read_e(stream, float, is_be);
321 material->a = cob_read_e(stream, float, is_be);
322 len -= 16;
323 }
324 else
325 {
326#if DEBUG > 0
327 g_debug("COB: Mat1: material #%d not used, ignoring...", matidx);
328#endif
329 }
330
331 if(len > 0)
332 g3d_stream_skip(stream, len);
333
334 return TRUE;
335}
336
337static int cob_read_unit_bin(G3DStream *stream, guint32 len, gboolean is_be)
338{
339 guint16 uidx;
340#if DEBUG > 0
341 static gchar *units[] = {
342 "millimeters",
343 "centimeters",
344 "meters",
345 "kilometers",
346 "inches",
347 "feet",
348 "yards",
349 "miles",
350 "points" };
351#endif
352
353 uidx = cob_read_e(stream, int16, is_be);
354#if DEBUG > 0
355 if(uidx >= (sizeof(units) / sizeof(gchar *)))
356 {
357 g_warning("COB: Unit: out of range (%d)", uidx);
358 return FALSE;
359 }
360 g_debug("COB: units are %s", units[uidx]);
361#endif
362 return TRUE;
363}
364
365static gboolean cob_read_file_bin(G3DStream *stream, G3DModel *model,
366 gboolean is_be, G3DContext *context)
367{
368 G3DObject *object = NULL;
369 guint32 type, id, parent_id, len;
370 guint16 ver_min, ver_maj;
371 gboolean exit = FALSE;
372
373 do {
374 cob_read_chunk_header_bin(stream, is_be, &type, &ver_maj, &ver_min,
375 &id, &parent_id, &len);
376
377#if DEBUG > 0
378 g_debug("\\[%c%c%c%c] 0x%08x (0x%08x) %d bytes",
379 (type >> 24) & 0xFF, (type >> 16) & 0xFF,
380 (type >> 8) & 0xFF, type & 0xFF,
381 id, parent_id, len);
382#endif
383
384 switch(type)
385 {
386 case G3D_IFF_MKID('E', 'N', 'D', ' '):
387 /* end of file */
388 exit = TRUE;
389 break;
390
391 case G3D_IFF_MKID('G', 'r', 'o', 'u'):
392 /* group */
393 object = cob_read_grou_bin(stream, len, is_be);
394#if 0
395 model->objects = g_slist_append(model->objects, object);
396#endif
397 break;
398
399 case G3D_IFF_MKID('M', 'a', 't', '1'):
400 cob_read_mat1_bin(stream, len, is_be, object);
401 break;
402
403 case G3D_IFF_MKID('P', 'o', 'l', 'H'):
404 /* polygonal data */
405 object = cob_read_polh_bin(stream, len, is_be, context);
406 model->objects = g_slist_append(model->objects, object);
407 break;
408
409 case G3D_IFF_MKID('U', 'n', 'i', 't'):
410 cob_read_unit_bin(stream, len, is_be);
411 break;
412
413 default:
414#if DEBUG > 0
415 g_warning("COB: unknown chunk type: %c%c%c%c: 0x%08x (0x%08x),"
416 " %u bytes",
417 (type >> 24) & 0xFF, (type >> 16) & 0xFF,
418 (type >> 8) & 0xFF, type & 0xFF,
419 id, parent_id, len);
420#endif
421 g3d_stream_skip(stream, len);
422 break;
423 }
424 }
425 while(type && !exit);
426
427 return TRUE;
428}
429
430#undef cob_read_e
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/Makefile
new file mode 100644
index 0000000..258d4dd
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/Makefile
@@ -0,0 +1,518 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_dae/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_dae
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_dae_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_dae_la_OBJECTS = imp_dae.lo imp_dae_xml.lo imp_dae_library.lo \
59 imp_dae_cb.lo
60imp_dae_la_OBJECTS = $(am_imp_dae_la_OBJECTS)
61am_imp_dae_la_rpath = -rpath $(pluginimpdir)
62DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
63depcomp = $(SHELL) $(top_srcdir)/config/depcomp
64am__depfiles_maybe = depfiles
65COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
66 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
67LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
68 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
69 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
70CCLD = $(CC)
71LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
72 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
73 $(LDFLAGS) -o $@
74SOURCES = $(imp_dae_la_SOURCES)
75DIST_SOURCES = $(imp_dae_la_SOURCES)
76ETAGS = etags
77CTAGS = ctags
78DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
79ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
80AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
81AR = ar
82AS = as
83AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
84AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
85AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
86AWK = gawk
87CC = gcc
88CCDEPMODE = depmode=gcc3
89CFLAGS = -g -O2
90CPP = gcc -E
91CPPFLAGS =
92CXX = g++
93CXXCPP = g++ -E
94CXXDEPMODE = depmode=gcc3
95CXXFLAGS = -g -O2
96CYGPATH_W = echo
97DBG_CFLAGS = -O2
98DEBUG = 0
99DEFS = -DHAVE_CONFIG_H
100DEPDIR = .deps
101DLLTOOL = dlltool
102ECHO = echo
103ECHO_C =
104ECHO_N = -n
105ECHO_T =
106EGREP = /bin/grep -E
107EXEEXT =
108F77 =
109FFLAGS =
110GDKPIXBUF_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
111GDKPIXBUF_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
112GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
113GLIB_GENMARSHAL = glib-genmarshal
114GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
115GLIB_MKENUMS = glib-mkenums
116GOBJECT_QUERY = gobject-query
117GREP = /bin/grep
118GTKDOC_CHECK = /usr/bin/gtkdoc-check
119GTK_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
120GTK_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
121HTML_DIR = ${datadir}/gtk-doc/html
122INSTALL = /usr/bin/install -c
123INSTALL_DATA = ${INSTALL} -m 644
124INSTALL_PROGRAM = ${INSTALL}
125INSTALL_SCRIPT = ${INSTALL}
126INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
127LDFLAGS =
128LEX = flex
129LEXLIB = -lfl
130LEX_OUTPUT_ROOT = lex.yy
131LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
132LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
133LIBOBJS =
134LIBS = -lm
135LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
136LIBXML2_CFLAGS = -I/usr/include/libxml2
137LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
138LN_S = ln -s
139LTLIBOBJS =
140LTVERSION = 0:8:0
141MAGIC_LIBS = -lmagic
142MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
143MATH_LIBS = -lm
144MKDIR_P = /bin/mkdir -p
145OBJDUMP = objdump
146OBJEXT = o
147PACKAGE = libg3d
148PACKAGE_BUGREPORT =
149PACKAGE_NAME =
150PACKAGE_STRING =
151PACKAGE_TARNAME =
152PACKAGE_VERSION =
153PATH_SEPARATOR = :
154PKG_CONFIG = /usr/bin/pkg-config
155PLUGINS_LDFLAGS = -avoid-version -export-dynamic
156RANLIB = ranlib
157SET_MAKE =
158SHELL = /bin/bash
159STRIP = strip
160VERSION = 0.0.8
161XML2_CONFIG = /usr/bin/xml2-config
162XML_CPPFLAGS = -I/usr/include/libxml2
163XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
164Z_CFLAGS =
165Z_LIBS = -lz
166abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae
167abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae
168abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
170ac_ct_CC = gcc
171ac_ct_CXX = g++
172ac_ct_F77 =
173am__include = include
174am__leading_dot = .
175am__quote =
176am__tar = ${AMTAR} chof - "$$tardir"
177am__untar = ${AMTAR} xf -
178bindir = ${exec_prefix}/bin
179build = x86_64-unknown-linux-gnu
180build_alias =
181build_cpu = x86_64
182build_os = linux-gnu
183build_vendor = unknown
184builddir = .
185datadir = ${datarootdir}
186datarootdir = ${prefix}/share
187docdir = ${datarootdir}/doc/${PACKAGE}
188dvidir = ${docdir}
189exec_prefix = ${prefix}
190host = x86_64-unknown-linux-gnu
191host_alias =
192host_cpu = x86_64
193host_os = linux-gnu
194host_vendor = unknown
195htmldir = ${docdir}
196includedir = ${prefix}/include
197infodir = ${datarootdir}/info
198install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
199libdir = ${exec_prefix}/lib
200libexecdir = ${exec_prefix}/libexec
201localedir = ${datarootdir}/locale
202localstatedir = ${prefix}/var
203mandir = ${datarootdir}/man
204mkdir_p = /bin/mkdir -p
205oldincludedir = /usr/include
206pdfdir = ${docdir}
207prefix = /usr/local
208program_transform_name = s,x,x,
209psdir = ${docdir}
210sbindir = ${exec_prefix}/sbin
211sharedstatedir = ${prefix}/com
212srcdir = .
213sysconfdir = ${prefix}/etc
214target_alias =
215top_builddir = ../../..
216top_srcdir = ../../..
217pluginimpdir = $(pkglibdir)/plugins/import
218pluginimp_LTLIBRARIES = imp_dae.la
219AM_CFLAGS = \
220 -Wall -ansi -pedantic \
221 -DG_LOG_DOMAIN=\"LibG3D\" \
222 -O2 -DDEBUG=0 \
223 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2
224
225INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include
226AM_LDFLAGS = \
227 -no-undefined -module \
228 -avoid-version -export-dynamic
229
230imp_dae_la_SOURCES = imp_dae.c \
231 imp_dae_xml.h imp_dae_xml.c \
232 imp_dae_library.h imp_dae_library.c \
233 imp_dae_cb.h imp_dae_cb.c imp_dae_chunks.h
234
235imp_dae_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 -L/usr/lib/x86_64-linux-gnu -lxml2
236all: all-am
237
238.SUFFIXES:
239.SUFFIXES: .c .lo .o .obj
240$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
241 @for dep in $?; do \
242 case '$(am__configure_deps)' in \
243 *$$dep*) \
244 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
245 && exit 0; \
246 exit 1;; \
247 esac; \
248 done; \
249 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_dae/Makefile'; \
250 cd $(top_srcdir) && \
251 $(AUTOMAKE) --gnu plugins/import/imp_dae/Makefile
252.PRECIOUS: Makefile
253Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
254 @case '$?' in \
255 *config.status*) \
256 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
257 *) \
258 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
259 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
260 esac;
261
262$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264
265$(top_srcdir)/configure: $(am__configure_deps)
266 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
267$(ACLOCAL_M4): $(am__aclocal_m4_deps)
268 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
269install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
270 @$(NORMAL_INSTALL)
271 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
272 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
273 if test -f $$p; then \
274 f=$(am__strip_dir) \
275 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
276 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
277 else :; fi; \
278 done
279
280uninstall-pluginimpLTLIBRARIES:
281 @$(NORMAL_UNINSTALL)
282 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
283 p=$(am__strip_dir) \
284 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
285 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
286 done
287
288clean-pluginimpLTLIBRARIES:
289 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
290 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
291 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
292 test "$$dir" != "$$p" || dir=.; \
293 echo "rm -f \"$${dir}/so_locations\""; \
294 rm -f "$${dir}/so_locations"; \
295 done
296imp_dae.la: $(imp_dae_la_OBJECTS) $(imp_dae_la_DEPENDENCIES)
297 $(LINK) $(am_imp_dae_la_rpath) $(imp_dae_la_OBJECTS) $(imp_dae_la_LIBADD) $(LIBS)
298
299mostlyclean-compile:
300 -rm -f *.$(OBJEXT)
301
302distclean-compile:
303 -rm -f *.tab.c
304
305include ./$(DEPDIR)/imp_dae.Plo
306include ./$(DEPDIR)/imp_dae_cb.Plo
307include ./$(DEPDIR)/imp_dae_library.Plo
308include ./$(DEPDIR)/imp_dae_xml.Plo
309
310.c.o:
311 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
312 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
313# source='$<' object='$@' libtool=no \
314# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
315# $(COMPILE) -c $<
316
317.c.obj:
318 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
319 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
320# source='$<' object='$@' libtool=no \
321# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
322# $(COMPILE) -c `$(CYGPATH_W) '$<'`
323
324.c.lo:
325 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
326 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
327# source='$<' object='$@' libtool=yes \
328# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
329# $(LTCOMPILE) -c -o $@ $<
330
331mostlyclean-libtool:
332 -rm -f *.lo
333
334clean-libtool:
335 -rm -rf .libs _libs
336
337ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
338 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
339 unique=`for i in $$list; do \
340 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
341 done | \
342 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
343 END { if (nonempty) { for (i in files) print i; }; }'`; \
344 mkid -fID $$unique
345tags: TAGS
346
347TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
348 $(TAGS_FILES) $(LISP)
349 tags=; \
350 here=`pwd`; \
351 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
352 unique=`for i in $$list; do \
353 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
354 done | \
355 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
356 END { if (nonempty) { for (i in files) print i; }; }'`; \
357 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
358 test -n "$$unique" || unique=$$empty_fix; \
359 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
360 $$tags $$unique; \
361 fi
362ctags: CTAGS
363CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
364 $(TAGS_FILES) $(LISP)
365 tags=; \
366 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
367 unique=`for i in $$list; do \
368 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
369 done | \
370 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
371 END { if (nonempty) { for (i in files) print i; }; }'`; \
372 test -z "$(CTAGS_ARGS)$$tags$$unique" \
373 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
374 $$tags $$unique
375
376GTAGS:
377 here=`$(am__cd) $(top_builddir) && pwd` \
378 && cd $(top_srcdir) \
379 && gtags -i $(GTAGS_ARGS) $$here
380
381distclean-tags:
382 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
383
384distdir: $(DISTFILES)
385 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
386 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
387 list='$(DISTFILES)'; \
388 dist_files=`for file in $$list; do echo $$file; done | \
389 sed -e "s|^$$srcdirstrip/||;t" \
390 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
391 case $$dist_files in \
392 */*) $(MKDIR_P) `echo "$$dist_files" | \
393 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
394 sort -u` ;; \
395 esac; \
396 for file in $$dist_files; do \
397 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
398 if test -d $$d/$$file; then \
399 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
400 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
401 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
402 fi; \
403 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
404 else \
405 test -f $(distdir)/$$file \
406 || cp -p $$d/$$file $(distdir)/$$file \
407 || exit 1; \
408 fi; \
409 done
410check-am: all-am
411check: check-am
412all-am: Makefile $(LTLIBRARIES)
413installdirs:
414 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
415 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
416 done
417install: install-am
418install-exec: install-exec-am
419install-data: install-data-am
420uninstall: uninstall-am
421
422install-am: all-am
423 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
424
425installcheck: installcheck-am
426install-strip:
427 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
428 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
429 `test -z '$(STRIP)' || \
430 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
431mostlyclean-generic:
432
433clean-generic:
434
435distclean-generic:
436 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
437
438maintainer-clean-generic:
439 @echo "This command is intended for maintainers to use"
440 @echo "it deletes files that may require special tools to rebuild."
441clean: clean-am
442
443clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
444 mostlyclean-am
445
446distclean: distclean-am
447 -rm -rf ./$(DEPDIR)
448 -rm -f Makefile
449distclean-am: clean-am distclean-compile distclean-generic \
450 distclean-tags
451
452dvi: dvi-am
453
454dvi-am:
455
456html: html-am
457
458info: info-am
459
460info-am:
461
462install-data-am: install-pluginimpLTLIBRARIES
463
464install-dvi: install-dvi-am
465
466install-exec-am:
467
468install-html: install-html-am
469
470install-info: install-info-am
471
472install-man:
473
474install-pdf: install-pdf-am
475
476install-ps: install-ps-am
477
478installcheck-am:
479
480maintainer-clean: maintainer-clean-am
481 -rm -rf ./$(DEPDIR)
482 -rm -f Makefile
483maintainer-clean-am: distclean-am maintainer-clean-generic
484
485mostlyclean: mostlyclean-am
486
487mostlyclean-am: mostlyclean-compile mostlyclean-generic \
488 mostlyclean-libtool
489
490pdf: pdf-am
491
492pdf-am:
493
494ps: ps-am
495
496ps-am:
497
498uninstall-am: uninstall-pluginimpLTLIBRARIES
499
500.MAKE: install-am install-strip
501
502.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
503 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
504 distclean-compile distclean-generic distclean-libtool \
505 distclean-tags distdir dvi dvi-am html html-am info info-am \
506 install install-am install-data install-data-am install-dvi \
507 install-dvi-am install-exec install-exec-am install-html \
508 install-html-am install-info install-info-am install-man \
509 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
510 install-ps install-ps-am install-strip installcheck \
511 installcheck-am installdirs maintainer-clean \
512 maintainer-clean-generic mostlyclean mostlyclean-compile \
513 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
514 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
515
516# Tell versions [3.59,3.63) of GNU make to not export all variables.
517# Otherwise a system limit (for SysV at least) may be exceeded.
518.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/Makefile.am
new file mode 100644
index 0000000..27cd426
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/Makefile.am
@@ -0,0 +1,25 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if HAVE_LIBXML2
4pluginimp_LTLIBRARIES = imp_dae.la
5endif
6
7AM_CFLAGS = \
8 -Wall -ansi -pedantic \
9 -DG_LOG_DOMAIN=\"LibG3D\" \
10 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
11 @GLIB_CFLAGS@ @LIBXML2_CFLAGS@
12
13INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include
14
15AM_LDFLAGS = \
16 -no-undefined -module \
17 @PLUGINS_LDFLAGS@
18
19LIBTOOL += --quiet
20
21imp_dae_la_SOURCES = imp_dae.c \
22 imp_dae_xml.h imp_dae_xml.c \
23 imp_dae_library.h imp_dae_library.c \
24 imp_dae_cb.h imp_dae_cb.c imp_dae_chunks.h
25imp_dae_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ @LIBXML2_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/Makefile.in
new file mode 100644
index 0000000..68bb8a3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/Makefile.in
@@ -0,0 +1,518 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_dae
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_dae_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_dae_la_OBJECTS = imp_dae.lo imp_dae_xml.lo imp_dae_library.lo \
59 imp_dae_cb.lo
60imp_dae_la_OBJECTS = $(am_imp_dae_la_OBJECTS)
61@HAVE_LIBXML2_TRUE@am_imp_dae_la_rpath = -rpath $(pluginimpdir)
62DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
63depcomp = $(SHELL) $(top_srcdir)/config/depcomp
64am__depfiles_maybe = depfiles
65COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
66 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
67LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
68 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
69 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
70CCLD = $(CC)
71LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
72 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
73 $(LDFLAGS) -o $@
74SOURCES = $(imp_dae_la_SOURCES)
75DIST_SOURCES = $(imp_dae_la_SOURCES)
76ETAGS = etags
77CTAGS = ctags
78DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
79ACLOCAL = @ACLOCAL@
80AMTAR = @AMTAR@
81AR = @AR@
82AS = @AS@
83AUTOCONF = @AUTOCONF@
84AUTOHEADER = @AUTOHEADER@
85AUTOMAKE = @AUTOMAKE@
86AWK = @AWK@
87CC = @CC@
88CCDEPMODE = @CCDEPMODE@
89CFLAGS = @CFLAGS@
90CPP = @CPP@
91CPPFLAGS = @CPPFLAGS@
92CXX = @CXX@
93CXXCPP = @CXXCPP@
94CXXDEPMODE = @CXXDEPMODE@
95CXXFLAGS = @CXXFLAGS@
96CYGPATH_W = @CYGPATH_W@
97DBG_CFLAGS = @DBG_CFLAGS@
98DEBUG = @DEBUG@
99DEFS = @DEFS@
100DEPDIR = @DEPDIR@
101DLLTOOL = @DLLTOOL@
102ECHO = @ECHO@
103ECHO_C = @ECHO_C@
104ECHO_N = @ECHO_N@
105ECHO_T = @ECHO_T@
106EGREP = @EGREP@
107EXEEXT = @EXEEXT@
108F77 = @F77@
109FFLAGS = @FFLAGS@
110GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
111GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
112GLIB_CFLAGS = @GLIB_CFLAGS@
113GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
114GLIB_LIBS = @GLIB_LIBS@
115GLIB_MKENUMS = @GLIB_MKENUMS@
116GOBJECT_QUERY = @GOBJECT_QUERY@
117GREP = @GREP@
118GTKDOC_CHECK = @GTKDOC_CHECK@
119GTK_CFLAGS = @GTK_CFLAGS@
120GTK_LIBS = @GTK_LIBS@
121HTML_DIR = @HTML_DIR@
122INSTALL = @INSTALL@
123INSTALL_DATA = @INSTALL_DATA@
124INSTALL_PROGRAM = @INSTALL_PROGRAM@
125INSTALL_SCRIPT = @INSTALL_SCRIPT@
126INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
127LDFLAGS = @LDFLAGS@
128LEX = @LEX@
129LEXLIB = @LEXLIB@
130LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
131LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
132LIBGSF_LIBS = @LIBGSF_LIBS@
133LIBOBJS = @LIBOBJS@
134LIBS = @LIBS@
135LIBTOOL = @LIBTOOL@ --quiet
136LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
137LIBXML2_LIBS = @LIBXML2_LIBS@
138LN_S = @LN_S@
139LTLIBOBJS = @LTLIBOBJS@
140LTVERSION = @LTVERSION@
141MAGIC_LIBS = @MAGIC_LIBS@
142MAKEINFO = @MAKEINFO@
143MATH_LIBS = @MATH_LIBS@
144MKDIR_P = @MKDIR_P@
145OBJDUMP = @OBJDUMP@
146OBJEXT = @OBJEXT@
147PACKAGE = @PACKAGE@
148PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
149PACKAGE_NAME = @PACKAGE_NAME@
150PACKAGE_STRING = @PACKAGE_STRING@
151PACKAGE_TARNAME = @PACKAGE_TARNAME@
152PACKAGE_VERSION = @PACKAGE_VERSION@
153PATH_SEPARATOR = @PATH_SEPARATOR@
154PKG_CONFIG = @PKG_CONFIG@
155PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
156RANLIB = @RANLIB@
157SET_MAKE = @SET_MAKE@
158SHELL = @SHELL@
159STRIP = @STRIP@
160VERSION = @VERSION@
161XML2_CONFIG = @XML2_CONFIG@
162XML_CPPFLAGS = @XML_CPPFLAGS@
163XML_LIBS = @XML_LIBS@
164Z_CFLAGS = @Z_CFLAGS@
165Z_LIBS = @Z_LIBS@
166abs_builddir = @abs_builddir@
167abs_srcdir = @abs_srcdir@
168abs_top_builddir = @abs_top_builddir@
169abs_top_srcdir = @abs_top_srcdir@
170ac_ct_CC = @ac_ct_CC@
171ac_ct_CXX = @ac_ct_CXX@
172ac_ct_F77 = @ac_ct_F77@
173am__include = @am__include@
174am__leading_dot = @am__leading_dot@
175am__quote = @am__quote@
176am__tar = @am__tar@
177am__untar = @am__untar@
178bindir = @bindir@
179build = @build@
180build_alias = @build_alias@
181build_cpu = @build_cpu@
182build_os = @build_os@
183build_vendor = @build_vendor@
184builddir = @builddir@
185datadir = @datadir@
186datarootdir = @datarootdir@
187docdir = @docdir@
188dvidir = @dvidir@
189exec_prefix = @exec_prefix@
190host = @host@
191host_alias = @host_alias@
192host_cpu = @host_cpu@
193host_os = @host_os@
194host_vendor = @host_vendor@
195htmldir = @htmldir@
196includedir = @includedir@
197infodir = @infodir@
198install_sh = @install_sh@
199libdir = @libdir@
200libexecdir = @libexecdir@
201localedir = @localedir@
202localstatedir = @localstatedir@
203mandir = @mandir@
204mkdir_p = @mkdir_p@
205oldincludedir = @oldincludedir@
206pdfdir = @pdfdir@
207prefix = @prefix@
208program_transform_name = @program_transform_name@
209psdir = @psdir@
210sbindir = @sbindir@
211sharedstatedir = @sharedstatedir@
212srcdir = @srcdir@
213sysconfdir = @sysconfdir@
214target_alias = @target_alias@
215top_builddir = @top_builddir@
216top_srcdir = @top_srcdir@
217pluginimpdir = $(pkglibdir)/plugins/import
218@HAVE_LIBXML2_TRUE@pluginimp_LTLIBRARIES = imp_dae.la
219AM_CFLAGS = \
220 -Wall -ansi -pedantic \
221 -DG_LOG_DOMAIN=\"LibG3D\" \
222 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
223 @GLIB_CFLAGS@ @LIBXML2_CFLAGS@
224
225INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include
226AM_LDFLAGS = \
227 -no-undefined -module \
228 @PLUGINS_LDFLAGS@
229
230imp_dae_la_SOURCES = imp_dae.c \
231 imp_dae_xml.h imp_dae_xml.c \
232 imp_dae_library.h imp_dae_library.c \
233 imp_dae_cb.h imp_dae_cb.c imp_dae_chunks.h
234
235imp_dae_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ @LIBXML2_LIBS@
236all: all-am
237
238.SUFFIXES:
239.SUFFIXES: .c .lo .o .obj
240$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
241 @for dep in $?; do \
242 case '$(am__configure_deps)' in \
243 *$$dep*) \
244 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
245 && exit 0; \
246 exit 1;; \
247 esac; \
248 done; \
249 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_dae/Makefile'; \
250 cd $(top_srcdir) && \
251 $(AUTOMAKE) --gnu plugins/import/imp_dae/Makefile
252.PRECIOUS: Makefile
253Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
254 @case '$?' in \
255 *config.status*) \
256 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
257 *) \
258 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
259 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
260 esac;
261
262$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264
265$(top_srcdir)/configure: $(am__configure_deps)
266 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
267$(ACLOCAL_M4): $(am__aclocal_m4_deps)
268 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
269install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
270 @$(NORMAL_INSTALL)
271 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
272 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
273 if test -f $$p; then \
274 f=$(am__strip_dir) \
275 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
276 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
277 else :; fi; \
278 done
279
280uninstall-pluginimpLTLIBRARIES:
281 @$(NORMAL_UNINSTALL)
282 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
283 p=$(am__strip_dir) \
284 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
285 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
286 done
287
288clean-pluginimpLTLIBRARIES:
289 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
290 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
291 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
292 test "$$dir" != "$$p" || dir=.; \
293 echo "rm -f \"$${dir}/so_locations\""; \
294 rm -f "$${dir}/so_locations"; \
295 done
296imp_dae.la: $(imp_dae_la_OBJECTS) $(imp_dae_la_DEPENDENCIES)
297 $(LINK) $(am_imp_dae_la_rpath) $(imp_dae_la_OBJECTS) $(imp_dae_la_LIBADD) $(LIBS)
298
299mostlyclean-compile:
300 -rm -f *.$(OBJEXT)
301
302distclean-compile:
303 -rm -f *.tab.c
304
305@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_dae.Plo@am__quote@
306@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_dae_cb.Plo@am__quote@
307@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_dae_library.Plo@am__quote@
308@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_dae_xml.Plo@am__quote@
309
310.c.o:
311@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
312@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
313@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
314@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
315@am__fastdepCC_FALSE@ $(COMPILE) -c $<
316
317.c.obj:
318@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
319@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
320@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
321@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
322@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
323
324.c.lo:
325@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
326@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
327@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
328@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
329@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
330
331mostlyclean-libtool:
332 -rm -f *.lo
333
334clean-libtool:
335 -rm -rf .libs _libs
336
337ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
338 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
339 unique=`for i in $$list; do \
340 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
341 done | \
342 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
343 END { if (nonempty) { for (i in files) print i; }; }'`; \
344 mkid -fID $$unique
345tags: TAGS
346
347TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
348 $(TAGS_FILES) $(LISP)
349 tags=; \
350 here=`pwd`; \
351 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
352 unique=`for i in $$list; do \
353 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
354 done | \
355 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
356 END { if (nonempty) { for (i in files) print i; }; }'`; \
357 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
358 test -n "$$unique" || unique=$$empty_fix; \
359 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
360 $$tags $$unique; \
361 fi
362ctags: CTAGS
363CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
364 $(TAGS_FILES) $(LISP)
365 tags=; \
366 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
367 unique=`for i in $$list; do \
368 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
369 done | \
370 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
371 END { if (nonempty) { for (i in files) print i; }; }'`; \
372 test -z "$(CTAGS_ARGS)$$tags$$unique" \
373 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
374 $$tags $$unique
375
376GTAGS:
377 here=`$(am__cd) $(top_builddir) && pwd` \
378 && cd $(top_srcdir) \
379 && gtags -i $(GTAGS_ARGS) $$here
380
381distclean-tags:
382 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
383
384distdir: $(DISTFILES)
385 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
386 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
387 list='$(DISTFILES)'; \
388 dist_files=`for file in $$list; do echo $$file; done | \
389 sed -e "s|^$$srcdirstrip/||;t" \
390 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
391 case $$dist_files in \
392 */*) $(MKDIR_P) `echo "$$dist_files" | \
393 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
394 sort -u` ;; \
395 esac; \
396 for file in $$dist_files; do \
397 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
398 if test -d $$d/$$file; then \
399 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
400 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
401 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
402 fi; \
403 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
404 else \
405 test -f $(distdir)/$$file \
406 || cp -p $$d/$$file $(distdir)/$$file \
407 || exit 1; \
408 fi; \
409 done
410check-am: all-am
411check: check-am
412all-am: Makefile $(LTLIBRARIES)
413installdirs:
414 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
415 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
416 done
417install: install-am
418install-exec: install-exec-am
419install-data: install-data-am
420uninstall: uninstall-am
421
422install-am: all-am
423 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
424
425installcheck: installcheck-am
426install-strip:
427 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
428 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
429 `test -z '$(STRIP)' || \
430 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
431mostlyclean-generic:
432
433clean-generic:
434
435distclean-generic:
436 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
437
438maintainer-clean-generic:
439 @echo "This command is intended for maintainers to use"
440 @echo "it deletes files that may require special tools to rebuild."
441clean: clean-am
442
443clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
444 mostlyclean-am
445
446distclean: distclean-am
447 -rm -rf ./$(DEPDIR)
448 -rm -f Makefile
449distclean-am: clean-am distclean-compile distclean-generic \
450 distclean-tags
451
452dvi: dvi-am
453
454dvi-am:
455
456html: html-am
457
458info: info-am
459
460info-am:
461
462install-data-am: install-pluginimpLTLIBRARIES
463
464install-dvi: install-dvi-am
465
466install-exec-am:
467
468install-html: install-html-am
469
470install-info: install-info-am
471
472install-man:
473
474install-pdf: install-pdf-am
475
476install-ps: install-ps-am
477
478installcheck-am:
479
480maintainer-clean: maintainer-clean-am
481 -rm -rf ./$(DEPDIR)
482 -rm -f Makefile
483maintainer-clean-am: distclean-am maintainer-clean-generic
484
485mostlyclean: mostlyclean-am
486
487mostlyclean-am: mostlyclean-compile mostlyclean-generic \
488 mostlyclean-libtool
489
490pdf: pdf-am
491
492pdf-am:
493
494ps: ps-am
495
496ps-am:
497
498uninstall-am: uninstall-pluginimpLTLIBRARIES
499
500.MAKE: install-am install-strip
501
502.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
503 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
504 distclean-compile distclean-generic distclean-libtool \
505 distclean-tags distdir dvi dvi-am html html-am info info-am \
506 install install-am install-data install-data-am install-dvi \
507 install-dvi-am install-exec install-exec-am install-html \
508 install-html-am install-info install-info-am install-man \
509 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
510 install-ps install-ps-am install-strip installcheck \
511 installcheck-am installdirs maintainer-clean \
512 maintainer-clean-generic mostlyclean mostlyclean-compile \
513 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
514 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
515
516# Tell versions [3.59,3.63) of GNU make to not export all variables.
517# Otherwise a system limit (for SysV at least) may be exceeded.
518.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae.c
new file mode 100644
index 0000000..c478d6e
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae.c
@@ -0,0 +1,126 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24#include <locale.h>
25
26#include <libxml/parser.h>
27#include <libxml/tree.h>
28
29#include <g3d/stream.h>
30#include <g3d/types.h>
31
32#include "imp_dae_xml.h"
33#include "imp_dae_library.h"
34#include "imp_dae_cb.h"
35
36static int dae_input_read_cb(gpointer ctx, gchar *buffer, gint len)
37{
38 return g3d_stream_read((G3DStream *)ctx, buffer, len);
39}
40
41static gboolean dae_load_scene(G3DContext *context, G3DStream *stream,
42 G3DModel *model, DaeLibrary *lib, xmlDocPtr xmldoc);
43
44/*****************************************************************************/
45
46EAPI
47gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
48 G3DModel *model, gpointer user_data)
49{
50 xmlDocPtr xmldoc;
51 DaeLibrary *lib;
52 gboolean retval = FALSE;
53
54 setlocale(LC_NUMERIC, "C");
55 xmlInitParser();
56
57 xmldoc = xmlReadIO(dae_input_read_cb, NULL, stream, stream->uri, NULL, 0);
58 if(xmldoc) {
59 lib = dae_library_load(xmldoc);
60 retval = dae_load_scene(context, stream, model, lib, xmldoc);
61
62 dae_library_cleanup(lib);
63 xmlFreeDoc(xmldoc);
64 }
65
66 xmlCleanupParser();
67 return retval;
68}
69
70EAPI
71gchar *plugin_description(void)
72{
73 return g_strdup("COLLADA models.");
74}
75
76EAPI
77gchar **plugin_extensions(void)
78{
79 return g_strsplit("dae", ":", 0);
80}
81
82/*****************************************************************************/
83/* COLLADA specific stuff */
84
85static gboolean dae_load_scene(G3DContext *context, G3DStream *stream,
86 G3DModel *model, DaeLibrary *lib, xmlDocPtr xmldoc)
87{
88 DaeGlobalData *global;
89 DaeLocalData *local;
90 xmlNodePtr scenenode, node = NULL, instance = NULL;
91 gchar *name;
92
93 scenenode = dae_xml_get_child_by_tagname(
94 xmlDocGetRootElement(xmldoc), "scene");
95
96 if(scenenode == NULL) {
97 g_warning("DAE: could not get scene node");
98 return FALSE;
99 }
100
101 global = g_new0(DaeGlobalData, 1);
102 global->context = context;
103 global->stream = stream;
104 global->model = model;
105 global->xmldoc = xmldoc;
106 global->lib = lib;
107
108 while(dae_xml_next_child(lib, scenenode, &node, &instance, &name)) {
109#if DEBUG > 2
110 g_debug("DAE: got node %s", name);
111#endif
112 if(strcmp(name, "visual_scene") == 0) {
113 local = g_new0(DaeLocalData, 1);
114 local->node = node;
115 local->instance = instance;
116 local->parent = scenenode;
117 dae_cb_visual_scene(global, local);
118 g_free(local);
119 }
120 g_free(name);
121 }
122
123 g_free(global);
124
125 return TRUE;
126}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_cb.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_cb.c
new file mode 100644
index 0000000..d6aea7d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_cb.c
@@ -0,0 +1,877 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24
25#include <g3d/config.h>
26
27#include <g3d/types.h>
28#include <g3d/material.h>
29#include <g3d/matrix.h>
30#include <g3d/object.h>
31#include <g3d/texture.h>
32#include <g3d/stream.h>
33
34#include "imp_dae_cb.h"
35#include "imp_dae_chunks.h"
36#include "imp_dae_xml.h"
37
38typedef struct {
39 guint32 offset;
40 enum {
41 SEM_UNKNOWN,
42 SEM_VERTEX,
43 SEM_NORMAL,
44 SEM_TEXCOORD
45 } semantic;
46 gchar *source;
47} DaeInput;
48
49/*****************************************************************************/
50
51static G3DMaterial *dae_get_material_by_name(DaeGlobalData *global,
52 const gchar *id, guint32 level)
53{
54 G3DMaterial *material;
55 GSList *mitem;
56 xmlNodePtr matnode;
57
58 /* try to find material */
59 for(mitem = global->model->materials; mitem != NULL; mitem = mitem->next) {
60 material = (G3DMaterial *)mitem->data;
61 if(strcmp(material->name, id) == 0)
62 return material;
63 }
64
65 material = g3d_material_new();
66 material->name = g_strdup(id);
67 global->model->materials = g_slist_append(global->model->materials,
68 material);
69
70 /* find material in library */
71 matnode = dae_library_lookup(global->lib, "symbol", id);
72
73 if(matnode) {
74 dae_xml_parse(global, matnode, dae_chunks_material,
75 level, material);
76 }
77 return material;
78}
79
80static GSList *dae_get_inputs(xmlNodePtr node)
81{
82 xmlNodePtr inode = NULL;
83 gchar *soff, *ssem;
84 DaeInput *input;
85 GSList *inputs = NULL;
86
87 while(dae_xml_next_child_by_tagname(node, &inode, "input")) {
88 input = g_new0(DaeInput, 1);
89 soff = dae_xml_get_attr(inode, "offset");
90 if(soff) {
91 input->offset = atoi(soff);
92 g_free(soff);
93 }
94 ssem = dae_xml_get_attr(inode, "semantic");
95 if(ssem) {
96 if(strcmp(ssem, "VERTEX") == 0)
97 input->semantic = SEM_VERTEX;
98 else if(strcmp(ssem, "NORMAL") == 0)
99 input->semantic = SEM_NORMAL;
100 else if(strcmp(ssem, "TEXCOORD") == 0)
101 input->semantic = SEM_TEXCOORD;
102 else {
103 g_warning("DAE: unknown input semantic '%s'", ssem);
104 input->semantic = SEM_UNKNOWN;
105 }
106 g_free(ssem);
107 }
108 input->source = dae_xml_get_attr(inode, "source");
109 inputs = g_slist_append(inputs, input);
110 }
111 return inputs;
112}
113
114static void dae_inputs_free(GSList *inputs)
115{
116 GSList *item;
117 DaeInput *input;
118
119 for(item = inputs; item != NULL; item = item->next) {
120 input = (DaeInput *)item->data;
121 if(input->source)
122 g_free(input->source);
123 g_free(input);
124 item->data = NULL;
125 }
126 g_slist_free(inputs);
127}
128
129static gboolean dae_load_source(DaeLibrary *lib, gchar *id,
130 G3DFloat **asrc, guint32 *nsrc)
131{
132 xmlNodePtr snode, fnode;
133 gchar *scnt, *next = NULL;
134 gint i;
135
136 snode = dae_library_lookup(lib, "source", id + 1);
137#if DEBUG > 0
138 g_debug("DAE: source '%s': %p", id + 1, (void *)snode);
139#endif
140 if(snode == NULL)
141 return FALSE;
142
143 fnode = dae_xml_get_child_by_tagname(snode, "float_array");
144 if(fnode == NULL)
145 return FALSE;
146
147 scnt = dae_xml_get_attr(fnode, "count");
148#if DEBUG > 0
149 g_debug("DAE: float_array count=\"%s\"", scnt);
150#endif
151 if(scnt == NULL)
152 return FALSE;
153 *nsrc = atoi(scnt);
154 g_free(scnt);
155 if(*nsrc == 0)
156 return FALSE;
157
158 *asrc = g_new0(G3DFloat, *nsrc);
159 for(i = 0; i < *nsrc; i ++)
160#if G3D_FLOAT_IS_DOUBLE
161 if(!dae_xml_next_double(fnode, &next, &((*asrc)[i])))
162#else
163 if(!dae_xml_next_float(fnode, &next, &((*asrc)[i])))
164#endif
165 return FALSE;
166
167 return TRUE;
168}
169
170/*****************************************************************************/
171
172gboolean dae_cb_bind_material(DaeGlobalData *global, DaeLocalData *local)
173{
174 return dae_xml_parse(global, local->node, dae_chunks_bind_material,
175 local->level, local->user_data);
176}
177
178gboolean dae_cb_effect(DaeGlobalData *global, DaeLocalData *local)
179{
180 return dae_xml_parse(global, local->node, dae_chunks_effect,
181 local->level, local->user_data);
182}
183
184gboolean dae_cb_geometry(DaeGlobalData *global, DaeLocalData *local)
185{
186 G3DObject *object;
187 G3DMaterial *material;
188
189 object = (G3DObject *)local->user_data;
190 g_return_val_if_fail(object != NULL, FALSE);
191
192 material = g3d_material_new();
193 material->name = g_strdup("(default material)");
194 object->materials = g_slist_append(object->materials, material);
195
196 if(local->instance) {
197 /* parse original node */
198 dae_xml_parse(global, local->instance,
199 dae_chunks_geometry, local->level, object);
200 }
201
202 /* parse instanced stuff */
203 return dae_xml_parse(global, local->node, dae_chunks_geometry,
204 local->level, object);
205}
206
207gboolean dae_cb_matrix(DaeGlobalData *global, DaeLocalData *local)
208{
209 G3DObject *object = local->user_data;
210 G3DTransformation *transform;
211 gchar *next = NULL;
212 gint i;
213
214 g_return_val_if_fail(object != NULL, FALSE);
215
216 transform = object->transformation;
217 if(transform == NULL) {
218 transform = g_new0(G3DTransformation, 1);
219 g3d_matrix_identity(transform->matrix);
220 object->transformation = transform;
221 }
222
223 for(i = 0; i < 16; i ++)
224#if G3D_FLOAT_IS_DOUBLE
225 dae_xml_next_double(local->node, &next, transform->matrix + i);
226#else
227 dae_xml_next_float(local->node, &next, transform->matrix + i);
228#endif
229 g3d_matrix_transpose(transform->matrix);
230#if DEBUG > 3
231 g_debug("DAE: matrix for '%s':", object->name);
232 g3d_matrix_dump(transform->matrix);
233#endif
234 return TRUE;
235}
236
237gboolean dae_cb_mesh(DaeGlobalData *global, DaeLocalData *local)
238{
239 return dae_xml_parse(global, local->node, dae_chunks_mesh,
240 local->level, local->user_data);
241}
242
243gboolean dae_cb_newparam(DaeGlobalData *global, DaeLocalData *local)
244{
245 G3DMaterial *material = (G3DMaterial *)local->user_data;
246 G3DStream *imgstream = NULL;
247 xmlNodePtr n1, n2;
248 gchar *siid = NULL, *filename, *subfile;
249#ifdef HAVE_LIBGSF
250 gchar *container, *pipe;
251#endif
252
253 g_return_val_if_fail(material != NULL, FALSE);
254
255 n1 = dae_xml_get_child_by_tagname(local->node, "surface");
256 if(n1 != NULL) {
257 n2 = dae_xml_get_child_by_tagname(n1, "init_from");
258 if(n2 != NULL)
259 siid = g_strdup((gchar *)n2->children->content);
260 }
261 if(siid == NULL)
262 return FALSE;
263
264 n1 = dae_library_lookup(global->lib, "image", siid);
265 g_free(siid);
266 if(n1 == NULL)
267 return FALSE;
268
269 n2 = dae_xml_get_child_by_tagname(n1, "init_from");
270 if(n2 == NULL)
271 return FALSE;
272
273 filename = (gchar *)n2->children->content;
274
275 if(strncmp(global->stream->uri, "zip://", 6) == 0) {
276#ifdef HAVE_LIBGSF
277 /* .dae was loaded from .kmz, get texture from .kmz, too */
278 pipe = strchr(global->stream->uri, '|');
279 if(pipe != NULL) {
280 container = g_strndup(global->stream->uri + 6,
281 (pipe - global->stream->uri) - 6);
282 subfile = filename;
283 while(strncmp(subfile, "../", 3) == 0)
284 subfile += 3;
285 g_debug("DAE: loading '%s' from: '%s'", subfile, container);
286 imgstream = g3d_stream_open_zip_from_stream(global->stream->zip_container, subfile);
287 }
288#endif
289 } else {
290 imgstream = g3d_stream_open_file(filename, "rb");
291 if(imgstream == NULL) {
292 /* if opened from unpacked doc.kml, textures are found in
293 * ../images/, so strip leading ../ */
294 subfile = filename;
295 while(strncmp(subfile, "../", 3) == 0)
296 subfile += 3;
297 imgstream = g3d_stream_open_file(subfile, "rb");
298 }
299 }
300
301 if(imgstream != NULL) {
302 material->tex_image = g3d_texture_load_from_stream(global->context,
303 global->model, imgstream);
304 if(material->tex_image) {
305 material->tex_image->tex_env = G3D_TEXENV_DECAL;
306 }
307 g3d_stream_close(imgstream);
308 return TRUE;
309 }
310
311 return FALSE;
312}
313
314gboolean dae_cb_node(DaeGlobalData *global, DaeLocalData *local)
315{
316 G3DObject *object, *pobject;
317 G3DMatrix matrix[16];
318 gchar *name;
319
320 name = dae_xml_get_attr(local->node, "name");
321 if(name == NULL)
322 name = dae_xml_get_attr(local->node, "id");
323 if(name == NULL)
324 return FALSE;
325
326 pobject = (G3DObject *)local->user_data;
327 object = g_new0(G3DObject, 1);
328 object->name = name;
329 if(pobject)
330 pobject->objects = g_slist_append(pobject->objects, object);
331 else
332 global->model->objects = g_slist_append(global->model->objects,
333 object);
334
335 if(dae_xml_parse(global, local->node, dae_chunks_node, local->level,
336 object)) {
337 if(object->transformation) {
338 g3d_object_transform(object, object->transformation->matrix);
339#if DEBUG > 3
340 g_debug("DAE: transforming object '%s'", object->name);
341 g3d_matrix_dump(object->transformation->matrix);
342#endif
343 g_free(object->transformation);
344 object->transformation = NULL;
345 }
346
347 if(!pobject) {
348 g3d_matrix_identity(matrix);
349 g3d_matrix_rotate(-90.0 * G_PI / 180.0, 1.0, 0.0, 0.0, matrix);
350 g3d_object_transform(object, matrix);
351 }
352 return TRUE;
353 }
354 return FALSE;
355}
356
357gboolean dae_cb_phong(DaeGlobalData *global, DaeLocalData *local)
358{
359 G3DMaterial *material = (G3DMaterial *)local->user_data;
360 xmlNodePtr n1, n2;
361 gchar *next;
362
363 g_return_val_if_fail(material != NULL, FALSE);
364
365 /* diffuse */
366 n1 = dae_xml_get_child_by_tagname(local->node, "diffuse");
367 if(n1 != NULL) {
368 n2 = dae_xml_get_child_by_tagname(n1, "color");
369 if(n2 != NULL) {
370 next = NULL;
371#if G3D_FLOAT_IS_DOUBLE
372 dae_xml_next_double(n2, &next, &(material->r));
373 dae_xml_next_double(n2, &next, &(material->g));
374 dae_xml_next_double(n2, &next, &(material->b));
375 dae_xml_next_double(n2, &next, &(material->a));
376#else
377 dae_xml_next_float(n2, &next, &(material->r));
378 dae_xml_next_float(n2, &next, &(material->g));
379 dae_xml_next_float(n2, &next, &(material->b));
380 dae_xml_next_float(n2, &next, &(material->a));
381#endif
382 }
383 }
384
385 /* specular */
386 n1 = dae_xml_get_child_by_tagname(local->node, "specular");
387 if(n1 != NULL) {
388 n2 = dae_xml_get_child_by_tagname(n1, "color");
389 if(n2 != NULL) {
390 next = NULL;
391 /* These are floats either way. */
392 dae_xml_next_float(n2, &next, &(material->specular[0]));
393 dae_xml_next_float(n2, &next, &(material->specular[1]));
394 dae_xml_next_float(n2, &next, &(material->specular[2]));
395 dae_xml_next_float(n2, &next, &(material->specular[3]));
396 }
397 }
398
399 return TRUE;
400}
401
402gboolean dae_cb_polylist(DaeGlobalData *global, DaeLocalData *local)
403{
404 G3DObject *object = local->user_data;
405 G3DFace *face;
406 G3DMaterial *material;
407 xmlNodePtr pnode, vnode;
408 gchar *scnt, *smat, *nextp = NULL, *nextv = NULL;
409 guint32 count, normal_count, tex_count, flags = 0;
410 gint i, j, nv, tmp;
411 GSList *inputs, *item;
412 DaeInput *input;
413 G3DFloat *normal_data = NULL, *tex_data = NULL;
414
415 g_return_val_if_fail(object != NULL, FALSE);
416
417 scnt = dae_xml_get_attr(local->node, "count");
418 g_return_val_if_fail(scnt != NULL, FALSE);
419 count = atoi(scnt);
420 g_free(scnt);
421 g_return_val_if_fail(count != 0, FALSE);
422
423 pnode = dae_xml_get_child_by_tagname(local->node, "p");
424 vnode = dae_xml_get_child_by_tagname(local->node, "vcount");
425 g_return_val_if_fail((pnode != NULL) && (vnode != NULL), FALSE);
426
427 /* material */
428 material = g_slist_nth_data(object->materials, 0);
429 smat = dae_xml_get_attr(local->node, "material");
430 if(smat != NULL) {
431 material = dae_get_material_by_name(global, smat, local->level);
432 g_free(smat);
433 }
434
435 /* get all inputs */
436 inputs = dae_get_inputs(local->node);
437 for(item = inputs; item != NULL; item = item->next) {
438 input = (DaeInput *)item->data;
439 if(input->semantic == SEM_NORMAL)
440 if(dae_load_source(global->lib, input->source,
441 &normal_data, &normal_count))
442 flags |= G3D_FLAG_FAC_NORMALS;
443 if(input->semantic == SEM_TEXCOORD)
444 if(dae_load_source(global->lib, input->source,
445 &tex_data, &tex_count) && (material->tex_image != NULL))
446 flags |= G3D_FLAG_FAC_TEXMAP;
447 }
448
449 for(i = 0; i < count; i ++) {
450 if(dae_xml_next_int(vnode, &nextv, &nv) && (nv > 0)) {
451 face = g_new0(G3DFace, 1);
452 face->vertex_count = nv;
453 face->vertex_indices = g_new0(guint32, nv);
454 face->material = material;
455 face->flags = flags;
456 object->faces = g_slist_append(object->faces, face);
457
458 if(face->flags & G3D_FLAG_FAC_NORMALS) {
459 face->normals = g_new0(G3DFloat, nv * 3);
460 }
461 if(face->flags & G3D_FLAG_FAC_TEXMAP) {
462 face->tex_image = material->tex_image;
463 face->tex_vertex_count = nv;
464 face->tex_vertex_data = g_new0(G3DFloat, nv * 2);
465 }
466
467 for(j = 0; j < nv; j ++) {
468 for(item = inputs; item != NULL; item = item->next) {
469 input = (DaeInput *)item->data;
470 dae_xml_next_int(pnode, &nextp, &tmp);
471 switch(input->semantic) {
472 case SEM_VERTEX:
473 face->vertex_indices[j] = tmp;
474 if(face->vertex_indices[j] >= object->vertex_count)
475 {
476 g_warning("polylist: [%s] face[%d] (%d) >= %d",
477 object->name, j, face->vertex_indices[j],
478 object->vertex_count);
479 face->vertex_indices[j] = 0;
480 }
481 break;
482 case SEM_NORMAL:
483 if(flags & G3D_FLAG_FAC_NORMALS) {
484 face->normals[j * 3 + 0] =
485 normal_data[tmp * 3 + 0];
486 face->normals[j * 3 + 1] =
487 normal_data[tmp * 3 + 1];
488 face->normals[j * 3 + 2] =
489 normal_data[tmp * 3 + 2];
490 }
491 break;
492 case SEM_TEXCOORD:
493 if(flags & G3D_FLAG_FAC_TEXMAP) {
494 face->tex_vertex_data[j * 2 + 0] =
495 tex_data[tmp * 2 + 0];
496 face->tex_vertex_data[j * 2 + 1] = 1.0 -
497 tex_data[tmp * 2 + 1];
498 }
499 break;
500 case SEM_UNKNOWN:
501 break;
502 }
503 } /* inputs */
504 }
505#if DEBUG > 3
506 g_debug("DAE: %-2i, %-2i, %-2i, (%-2i)",
507 face->vertex_indices[0],
508 face->vertex_indices[1],
509 face->vertex_indices[2],
510 ((nv > 3) ? face->vertex_indices[3] : -1));
511#endif
512 }
513 }
514
515 if(tex_data)
516 g_free(tex_data);
517 if(normal_data)
518 g_free(normal_data);
519 dae_inputs_free(inputs);
520
521 return TRUE;
522}
523
524gboolean dae_cb_profile_COMMON(DaeGlobalData *global, DaeLocalData *local)
525{
526 return dae_xml_parse(global, local->node, dae_chunks_profile_COMMON,
527 local->level, local->user_data);
528}
529
530gboolean dae_cb_rotate(DaeGlobalData *global, DaeLocalData *local)
531{
532 G3DObject *object = local->user_data;
533 G3DTransformation *transform;
534 G3DFloat x = 0.0, y = 0.0, z = 0.0, a = 0.0, m[16];
535 gchar *next = NULL;
536
537 g_return_val_if_fail(object != NULL, FALSE);
538
539 transform = object->transformation;
540 if(transform == NULL) {
541 transform = g_new0(G3DTransformation, 1);
542 g3d_matrix_identity(transform->matrix);
543 object->transformation = transform;
544 }
545
546#if G3D_FLOAT_IS_DOUBLE
547 dae_xml_next_double(local->node, &next, &x);
548 dae_xml_next_double(local->node, &next, &y);
549 dae_xml_next_double(local->node, &next, &z);
550 dae_xml_next_double(local->node, &next, &a);
551#else
552 dae_xml_next_float(local->node, &next, &x);
553 dae_xml_next_float(local->node, &next, &y);
554 dae_xml_next_float(local->node, &next, &z);
555 dae_xml_next_float(local->node, &next, &a);
556#endif
557 g_return_val_if_fail((x != 0.0) || (y != 0.0) || (z != 0.0), FALSE);
558 g3d_matrix_rotate(a, x, y, z, m);
559 g3d_matrix_multiply(transform->matrix, m, transform->matrix);
560#if DEBUG > 3
561 g_debug("DAE: rotation for '%s': %.2f, %.2f, %.2f - %.2f", object->name,
562 x, y, z, a);
563 g3d_matrix_dump(transform->matrix);
564#endif
565 return TRUE;
566}
567
568gboolean dae_cb_scale(DaeGlobalData *global, DaeLocalData *local)
569{
570 G3DObject *object = local->user_data;
571 G3DTransformation *transform;
572 G3DFloat x = 0.0, y = 0.0, z = 0.0;
573 gchar *next = NULL;
574
575 g_return_val_if_fail(object != NULL, FALSE);
576
577 transform = object->transformation;
578 if(transform == NULL) {
579 transform = g_new0(G3DTransformation, 1);
580 g3d_matrix_identity(transform->matrix);
581 object->transformation = transform;
582 }
583
584#if G3D_FLOAT_IS_DOUBLE
585 dae_xml_next_double(local->node, &next, &x);
586 dae_xml_next_double(local->node, &next, &y);
587 dae_xml_next_double(local->node, &next, &z);
588#else
589 dae_xml_next_float(local->node, &next, &x);
590 dae_xml_next_float(local->node, &next, &y);
591 dae_xml_next_float(local->node, &next, &z);
592#endif
593 g3d_matrix_scale(x, y, z, transform->matrix);
594#if DEBUG > 3
595 g_debug("DAE: scale for '%s': %.2f, %.2f, %.2f", object->name,
596 x, y, z);
597 g3d_matrix_dump(transform->matrix);
598#endif
599 return TRUE;
600}
601
602gboolean dae_cb_source(DaeGlobalData *global, DaeLocalData *local)
603{
604 gchar *id;
605
606 id = dae_xml_get_attr(local->node, "id");
607 if(id) {
608 dae_library_add(global->lib, "source", id, local->node);
609 g_free(id);
610 return TRUE;
611 }
612 return FALSE;
613}
614
615gboolean dae_cb_technique(DaeGlobalData *global, DaeLocalData *local)
616{
617 return dae_xml_parse(global, local->node, dae_chunks_technique,
618 local->level, local->user_data);
619}
620
621/* instance_geometry::bind_material::technique_common */
622gboolean dae_cb_technique_common(DaeGlobalData *global, DaeLocalData *local)
623{
624 xmlNodePtr node = NULL, tnode;
625 gchar *symbol, *target;
626
627 while(dae_xml_next_child_by_tagname(local->node, &node,
628 "instance_material")) {
629 symbol = dae_xml_get_attr(node, "symbol");
630 if(symbol == NULL)
631 continue;
632 target = dae_xml_get_attr(node, "target");
633 if(target == NULL) {
634 g_free(symbol);
635 continue;
636 }
637 tnode = dae_library_lookup(global->lib, "material", target + 1);
638 if(tnode)
639 dae_library_add(global->lib, "symbol", symbol, tnode);
640 g_free(symbol);
641 g_free(target);
642 }
643 return TRUE;
644}
645
646gboolean dae_cb_translate(DaeGlobalData *global, DaeLocalData *local)
647{
648 G3DObject *object = local->user_data;
649 G3DTransformation *transform;
650 G3DFloat x = 0.0, y = 0.0, z = 0.0;
651 gchar *next = NULL;
652
653 g_return_val_if_fail(object != NULL, FALSE);
654
655 transform = object->transformation;
656 if(transform == NULL) {
657 transform = g_new0(G3DTransformation, 1);
658 g3d_matrix_identity(transform->matrix);
659 object->transformation = transform;
660 }
661
662#if G3D_FLOAT_IS_DOUBLE
663 dae_xml_next_double(local->node, &next, &x);
664 dae_xml_next_double(local->node, &next, &y);
665 dae_xml_next_double(local->node, &next, &z);
666#else
667 dae_xml_next_float(local->node, &next, &x);
668 dae_xml_next_float(local->node, &next, &y);
669 dae_xml_next_float(local->node, &next, &z);
670#endif
671 g3d_matrix_translate(x, y, z, transform->matrix);
672#if DEBUG > 3
673 g_debug("DAE: translation for '%s': %.2f, %.2f, %.2f", object->name,
674 x, y, z);
675 g3d_matrix_dump(transform->matrix);
676#endif
677 return TRUE;
678}
679
680gboolean dae_cb_triangles(DaeGlobalData *global, DaeLocalData *local)
681{
682 G3DObject *object = local->user_data;
683 G3DFace *face;
684 G3DMaterial *material;
685 xmlNodePtr pnode;
686 gchar *scnt, *smat, *nextp = NULL;
687 guint32 count, normal_count, tex_count, flags = 0;
688 G3DFloat *normal_data = NULL, *tex_data = NULL;
689 gint i, j, tmp;
690 GSList *inputs, *item;
691 DaeInput *input;
692
693 g_return_val_if_fail(object != NULL, FALSE);
694
695 scnt = dae_xml_get_attr(local->node, "count");
696 g_return_val_if_fail(scnt != NULL, FALSE);
697 count = atoi(scnt);
698 g_return_val_if_fail(count != 0, FALSE);
699 g_free(scnt);
700
701 pnode = dae_xml_get_child_by_tagname(local->node, "p");
702 g_return_val_if_fail(pnode != NULL, FALSE);
703
704 /* material */
705 material = g_slist_nth_data(object->materials, 0);
706 smat = dae_xml_get_attr(local->node, "material");
707 if(smat != NULL) {
708 material = dae_get_material_by_name(global, smat, local->level);
709 g_free(smat);
710 }
711
712 /* get all inputs */
713 inputs = dae_get_inputs(local->node);
714 for(item = inputs; item != NULL; item = item->next) {
715 input = (DaeInput *)item->data;
716 if(input->semantic == SEM_NORMAL)
717 if(dae_load_source(global->lib, input->source,
718 &normal_data, &normal_count)) {
719 flags |= G3D_FLAG_FAC_NORMALS;
720 }
721 if(input->semantic == SEM_TEXCOORD)
722 if(dae_load_source(global->lib, input->source,
723 &tex_data, &tex_count) && (material->tex_image != NULL)) {
724 flags |= G3D_FLAG_FAC_TEXMAP;
725 }
726 }
727
728 for(i = 0; i < count; i ++) {
729 face = g_new0(G3DFace, 1);
730 face->vertex_count = 3;
731 face->vertex_indices = g_new0(guint32, 3);
732 face->material = material;
733 face->flags = flags;
734 object->faces = g_slist_append(object->faces, face);
735
736 if(face->flags & G3D_FLAG_FAC_NORMALS) {
737 face->normals = g_new0(G3DFloat, 3 * 3);
738 }
739 if(face->flags & G3D_FLAG_FAC_TEXMAP) {
740 face->tex_image = material->tex_image;
741 face->tex_vertex_count = 3;
742 face->tex_vertex_data = g_new0(G3DFloat, 3 * 2);
743 }
744
745 for(j = 0; j < 3; j ++) {
746 for(item = inputs; item != NULL; item = item->next) {
747 input = (DaeInput *)item->data;
748 dae_xml_next_int(pnode, &nextp, &tmp);
749 switch(input->semantic) {
750 case SEM_VERTEX:
751 face->vertex_indices[j] = tmp;
752 if(face->vertex_indices[j] >= object->vertex_count) {
753 g_warning("triangles: [%s] face[%d] (%d) >= %d",
754 object->name, j, face->vertex_indices[j],
755 object->vertex_count);
756 face->vertex_indices[j] = 0;
757 }
758 break;
759 case SEM_NORMAL:
760 if(flags & G3D_FLAG_FAC_NORMALS) {
761 face->normals[j * 3 + 0] =
762 normal_data[tmp * 3 + 0];
763 face->normals[j * 3 + 1] =
764 normal_data[tmp * 3 + 1];
765 face->normals[j * 3 + 2] =
766 normal_data[tmp * 3 + 2];
767 }
768 break;
769 case SEM_TEXCOORD:
770 if(flags & G3D_FLAG_FAC_TEXMAP) {
771 face->tex_vertex_data[j * 2 + 0] =
772 tex_data[tmp * 2 + 0];
773 face->tex_vertex_data[j * 2 + 1] = 1.0 -
774 tex_data[tmp * 2 + 1];
775 }
776 break;
777 case SEM_UNKNOWN:
778 break;
779 }
780 } /* inputs */
781#if DEBUG > 3
782 g_debug("DAE: %-2i, %-2i, %-2i",
783 face->vertex_indices[0],
784 face->vertex_indices[1],
785 face->vertex_indices[2]);
786#endif
787 }
788 }
789 if(tex_data)
790 g_free(tex_data);
791 if(normal_data)
792 g_free(normal_data);
793 dae_inputs_free(inputs);
794
795 return TRUE;
796}
797
798gboolean dae_cb_vertices(DaeGlobalData *global, DaeLocalData *local)
799{
800 return dae_xml_parse(global, local->node, dae_chunks_vertices,
801 local->level, local->user_data);
802}
803
804gboolean dae_cb_vertices__input(DaeGlobalData *global, DaeLocalData *local)
805{
806 G3DObject *object = (G3DObject *)(local->user_data);
807 gchar *sid, *sem, *cnt, *next = NULL;
808 gboolean skip = FALSE;
809 xmlNodePtr snode, fanode;
810 gint i, j;
811
812 g_return_val_if_fail(object != NULL, FALSE);
813
814 sem = dae_xml_get_attr(local->node, "semantic");
815 sid = dae_xml_get_attr(local->node, "source");
816 g_return_val_if_fail((sem != NULL) && (sid != NULL), FALSE);
817
818 /* get 'source' node, skip leading '#' from 'source' attribute */
819 snode = dae_library_lookup(global->lib, "source", sid + 1);
820#if DEBUG > 0
821 g_debug("DAE: looking up source '%s' from library: %p", sid + 1,
822 (void *)snode);
823#endif
824 g_return_val_if_fail(snode != NULL, FALSE);
825
826 if(sem)
827 g_free(sem);
828 if(sid)
829 g_free(sid);
830
831 /* TODO: check technique_common/accessor */
832
833 fanode = dae_xml_get_child_by_tagname(snode, "float_array");
834 if(fanode) {
835 cnt = dae_xml_get_attr(fanode, "count");
836#if DEBUG > 0
837 g_debug("DAE: float_array count=\"%s\"", cnt);
838#endif
839 g_return_val_if_fail(cnt != NULL, FALSE);
840
841 object->vertex_count = atoi(cnt);
842 g_return_val_if_fail(object->vertex_count != 0, FALSE);
843
844 object->vertex_data = g_new0(G3DFloat, 3 * object->vertex_count);
845 for(i = 0; i < object->vertex_count / 3; i ++)
846 {
847 for(j = 0; j < 3; j ++)
848 {
849#if G3D_FLOAT_IS_DOUBLE
850 if(!dae_xml_next_double(fanode, &next, &(object->vertex_data[i * 3 + j])))
851#else
852 if(!dae_xml_next_float(fanode, &next, &(object->vertex_data[i * 3 + j])))
853#endif
854 {
855 skip = TRUE;
856 break;
857 }
858 }
859#if DEBUG > 3
860 g_debug("DAE: %-3.2f, %-3.2f, %-3.2f",
861 object->vertex_data[i * 3 + 0],
862 object->vertex_data[i * 3 + 1],
863 object->vertex_data[i * 3 + 2]);
864#endif
865 if(skip)
866 break;
867 }
868 }
869
870 return TRUE;
871}
872
873gboolean dae_cb_visual_scene(DaeGlobalData *global, DaeLocalData *local)
874{
875 return dae_xml_parse(global, local->node, dae_chunks_visual_scene,
876 local->level, NULL);
877}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_cb.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_cb.h
new file mode 100644
index 0000000..ecf1138
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_cb.h
@@ -0,0 +1,75 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef _IMP_DAE_CB_H
24#define _IMP_DAE_CB_H
25
26#include <g3d/types.h>
27#include <libxml/tree.h>
28
29#include "imp_dae_library.h"
30
31typedef struct {
32 G3DContext *context;
33 G3DStream *stream;
34 G3DModel *model;
35 DaeLibrary *lib;
36 xmlDocPtr xmldoc;
37} DaeGlobalData;
38
39typedef struct {
40 xmlNodePtr parent;
41 xmlNodePtr node;
42 xmlNodePtr instance;
43 guint32 level;
44 gpointer user_data;
45} DaeLocalData;
46
47typedef gboolean (* DaeCallback)(DaeGlobalData *global, DaeLocalData *local);
48
49typedef struct {
50 const gchar *name;
51 DaeCallback callback;
52} DaeChunkDesc;
53
54gboolean dae_cb_bind_material(DaeGlobalData *global, DaeLocalData *local);
55gboolean dae_cb_effect(DaeGlobalData *global, DaeLocalData *local);
56gboolean dae_cb_geometry(DaeGlobalData *global, DaeLocalData *local);
57gboolean dae_cb_matrix(DaeGlobalData *global, DaeLocalData *local);
58gboolean dae_cb_mesh(DaeGlobalData *global, DaeLocalData *local);
59gboolean dae_cb_newparam(DaeGlobalData *global, DaeLocalData *local);
60gboolean dae_cb_node(DaeGlobalData *global, DaeLocalData *local);
61gboolean dae_cb_phong(DaeGlobalData *global, DaeLocalData *local);
62gboolean dae_cb_polylist(DaeGlobalData *global, DaeLocalData *local);
63gboolean dae_cb_profile_COMMON(DaeGlobalData *global, DaeLocalData *local);
64gboolean dae_cb_rotate(DaeGlobalData *global, DaeLocalData *local);
65gboolean dae_cb_scale(DaeGlobalData *global, DaeLocalData *local);
66gboolean dae_cb_source(DaeGlobalData *global, DaeLocalData *local);
67gboolean dae_cb_technique(DaeGlobalData *global, DaeLocalData *local);
68gboolean dae_cb_technique_common(DaeGlobalData *global, DaeLocalData *local);
69gboolean dae_cb_translate(DaeGlobalData *global, DaeLocalData *local);
70gboolean dae_cb_triangles(DaeGlobalData *global, DaeLocalData *local);
71gboolean dae_cb_vertices(DaeGlobalData *global, DaeLocalData *local);
72gboolean dae_cb_vertices__input(DaeGlobalData *global, DaeLocalData *local);
73gboolean dae_cb_visual_scene(DaeGlobalData *global, DaeLocalData *local);
74
75#endif /* _IMP_DAE_CB_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_chunks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_chunks.h
new file mode 100644
index 0000000..ac9e3fc
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_chunks.h
@@ -0,0 +1,95 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef _IMP_DAE_CHUNKS_H
24#define _IMP_DAE_CHUNKS_H
25
26#include "imp_dae_cb.h"
27
28static DaeChunkDesc dae_chunks_bind_material[] = {
29 { "technique_common", dae_cb_technique_common },
30 { NULL, NULL }
31};
32
33static DaeChunkDesc dae_chunks_effect[] = {
34 { "profile_COMMON", dae_cb_profile_COMMON },
35 { NULL, NULL }
36};
37
38static DaeChunkDesc dae_chunks_geometry[] = {
39 { "bind_material", dae_cb_bind_material },
40 { "mesh", dae_cb_mesh },
41 { NULL, NULL }
42};
43
44static DaeChunkDesc dae_chunks_material[] = {
45 { "effect", dae_cb_effect },
46 { NULL, NULL }
47};
48
49static DaeChunkDesc dae_chunks_mesh[] = {
50 { "lines", NULL },
51 { "polylist", dae_cb_polylist },
52 { "source", dae_cb_source },
53 { "triangles", dae_cb_triangles },
54 { "vertices", dae_cb_vertices },
55 { NULL, NULL }
56};
57
58static DaeChunkDesc dae_chunks_node[] = {
59 { "camera", NULL },
60 { "controller", NULL },
61 { "geometry", dae_cb_geometry },
62 { "light", NULL },
63 { "matrix", dae_cb_matrix },
64 { "node", dae_cb_node },
65 { "scale", dae_cb_scale },
66 { "rotate", dae_cb_rotate },
67 { "translate", dae_cb_translate },
68 { NULL, NULL }
69};
70
71static DaeChunkDesc dae_chunks_profile_COMMON[] = {
72 { "extra", NULL },
73 { "newparam", dae_cb_newparam },
74 { "technique", dae_cb_technique },
75 { NULL, NULL }
76};
77
78static DaeChunkDesc dae_chunks_technique[] = {
79 { "blinn", dae_cb_phong },
80 { "lambert", dae_cb_phong },
81 { "phong", dae_cb_phong },
82 { NULL, NULL }
83};
84
85static DaeChunkDesc dae_chunks_vertices[] = {
86 { "input", dae_cb_vertices__input },
87 { NULL, NULL }
88};
89
90static DaeChunkDesc dae_chunks_visual_scene[] = {
91 { "node", dae_cb_node },
92 { NULL, NULL }
93};
94
95#endif /* _IMP_DAE_CHUNKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_library.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_library.c
new file mode 100644
index 0000000..dd10351
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_library.c
@@ -0,0 +1,167 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <glib.h>
24#include <libxml/tree.h>
25
26#include "imp_dae_xml.h"
27#include "imp_dae_library.h"
28
29struct _DaeLibrary {
30 GHashTable *ids;
31 GSList *libs;
32};
33
34typedef struct {
35 GHashTable *ids;
36 GSList *nodes;
37} DaeLibraryNodes;
38
39static gchar *dae_library_names[][2] = {
40 { "library_animations", "animation" },
41 { "library_cameras", "camera" },
42 { "library_controllers", "controller" },
43 { "library_effects", "effect" },
44 { "library_geometries", "geometry" },
45 { "library_images", "image" },
46 { "library_lights", "light" },
47 { "library_materials", "material" },
48 { "library_nodes", "node" },
49 { "library_physics_scenes", "physics_scene" },
50 { "library_visual_scenes", "visual_scene" },
51 { NULL, NULL }
52};
53
54static gboolean dae_add_library(DaeLibrary *lib, xmlNodePtr libnode,
55 guint32 entryid)
56{
57 xmlNodePtr node;
58 DaeLibraryNodes *nodelib;
59 gchar *id;
60
61 nodelib = g_new0(DaeLibraryNodes, 1);
62 nodelib->ids = g_hash_table_new_full(
63 g_str_hash, g_str_equal, g_free, NULL);
64 g_hash_table_insert(lib->ids, g_strdup(dae_library_names[entryid][1]),
65 nodelib);
66 lib->libs = g_slist_append(lib->libs, nodelib);
67
68 node = libnode->children;
69 while(node != NULL) {
70 if((node->type == XML_ELEMENT_NODE) &&
71 (xmlStrcmp(node->name,
72 (const xmlChar *)dae_library_names[entryid][1]) == 0)) {
73 /* found library entry */
74 id = dae_xml_get_attr(node, "id");
75 if(id != NULL) {
76#if DEBUG > 2
77 g_debug("\t%s id=\"%s\"", dae_library_names[entryid][1], id);
78#endif
79 g_hash_table_insert(nodelib->ids, id, node);
80 nodelib->nodes = g_slist_append(nodelib->nodes, node);
81 }
82 }
83 node = node->next;
84 }
85 return TRUE;
86}
87
88gboolean dae_library_add(DaeLibrary *lib, const gchar *libname,
89 const gchar *id, xmlNodePtr node)
90{
91 DaeLibraryNodes *nodelib;
92
93 g_return_val_if_fail(lib != NULL, FALSE);
94
95 nodelib = g_hash_table_lookup(lib->ids, libname);
96 if(nodelib == NULL) {
97 nodelib = g_new0(DaeLibraryNodes, 1);
98 nodelib->ids = g_hash_table_new_full(
99 g_str_hash, g_str_equal, g_free, NULL);
100 g_hash_table_insert(lib->ids, g_strdup(libname), nodelib);
101 lib->libs = g_slist_append(lib->libs, nodelib);
102 }
103 g_hash_table_insert(nodelib->ids, g_strdup(id), node);
104 nodelib->nodes = g_slist_append(nodelib->nodes, node);
105 return TRUE;
106}
107
108DaeLibrary *dae_library_load(xmlDocPtr xmldoc)
109{
110 DaeLibrary *lib;
111 gint i = 0;
112 xmlNodePtr rootnode, node;
113
114 lib = g_new0(DaeLibrary, 1);
115 lib->ids = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL);
116
117 rootnode = xmlDocGetRootElement(xmldoc);
118 g_return_val_if_fail(rootnode != NULL, NULL);
119
120 while(dae_library_names[i][0] != NULL) {
121#if DEBUG > 2
122 g_debug("loading library %s", dae_library_names[i][0]);
123#endif
124 node = rootnode->children;
125 while(node != NULL) {
126 if((node->type == XML_ELEMENT_NODE) &&
127 (xmlStrcmp(node->name,
128 (const xmlChar *)dae_library_names[i][0]) == 0)) {
129 dae_add_library(lib, node, i);
130 break;
131 }
132 node = node->next;
133 }
134 i ++;
135 }
136 return lib;
137}
138
139xmlNodePtr dae_library_lookup(DaeLibrary *library, const gchar *tagname,
140 const gchar *id)
141{
142 DaeLibraryNodes *nodelib;
143
144 nodelib = g_hash_table_lookup(library->ids, tagname);
145 if(nodelib == NULL) {
146 g_warning("DAE: failed to lookup library for '%s'", tagname);
147 return NULL;
148 }
149 return (xmlNodePtr)g_hash_table_lookup(nodelib->ids, id);
150}
151
152void dae_library_cleanup(DaeLibrary *library)
153{
154 DaeLibraryNodes *nodelib;
155 GSList *item;
156
157 for(item = library->libs; item != NULL; item = item->next) {
158 nodelib = (DaeLibraryNodes *)item->data;
159 g_hash_table_destroy(nodelib->ids);
160 g_slist_free(nodelib->nodes);
161 }
162
163 g_hash_table_destroy(library->ids);
164 g_slist_free(library->libs);
165 g_free(library);
166}
167
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_library.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_library.h
new file mode 100644
index 0000000..c7bb767
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_library.h
@@ -0,0 +1,38 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef _IMP_DAE_LIBRARY_H
24#define _IMP_DAE_LIBRARY_H
25
26#include <glib.h>
27#include <libxml/tree.h>
28
29typedef struct _DaeLibrary DaeLibrary;
30
31DaeLibrary *dae_library_load(xmlDocPtr xmldoc);
32gboolean dae_library_add(DaeLibrary *lib, const gchar *libname,
33 const gchar *id, xmlNodePtr node);
34xmlNodePtr dae_library_lookup(DaeLibrary *library, const gchar *tagname,
35 const gchar *id);
36void dae_library_cleanup(DaeLibrary *library);
37
38#endif /* _IMP_DAE_LIBRARY_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_xml.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_xml.c
new file mode 100644
index 0000000..a67be0d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_xml.c
@@ -0,0 +1,257 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24#include <ctype.h>
25
26#include <g3d/context.h>
27#include <g3d/debug.h>
28
29#include <glib.h>
30#include <libxml/tree.h>
31
32#include "imp_dae_library.h"
33#include "imp_dae_xml.h"
34#include "imp_dae_cb.h"
35
36gchar *dae_xml_get_attr(xmlNodePtr node, const gchar *attrname)
37{
38 xmlAttrPtr attr;
39 gchar *val = NULL;
40
41 g_return_val_if_fail(node != NULL, NULL);
42 g_return_val_if_fail(attrname != NULL, NULL);
43
44 attr = node->properties;
45 while(attr != NULL) {
46 if(xmlStrcmp(attr->name, (xmlChar *)attrname) == 0) {
47 val = g_strdup((gchar *)attr->children->content);
48 break;
49 }
50 attr = attr->next;
51 }
52
53 return val;
54}
55
56xmlNodePtr dae_xml_get_child_by_tagname(xmlNodePtr parent, const gchar *tag)
57{
58 xmlNodePtr node;
59
60 g_return_val_if_fail(parent != NULL, NULL);
61
62 node = parent->children;
63 while(node != NULL) {
64 if((node->type == XML_ELEMENT_NODE) &&
65 (xmlStrcmp(node->name, (const xmlChar *)tag) == 0)) {
66 return node;
67 }
68 node = node->next;
69 }
70 return NULL;
71}
72
73xmlNodePtr dae_xml_next_child_by_tagname(xmlNodePtr parent, xmlNodePtr *node,
74 gchar *nodename)
75{
76 xmlNodePtr tmpnode;
77 gchar *name;
78
79 do {
80 tmpnode = dae_xml_next_child(NULL, parent, node, NULL, &name);
81 if(tmpnode == NULL)
82 return NULL;
83 if(strcmp(name, nodename) == 0) {
84 g_free(name);
85 return tmpnode;
86 }
87 g_free(name);
88 } while(1);
89}
90
91xmlNodePtr dae_xml_next_child(DaeLibrary *lib, xmlNodePtr parent,
92 xmlNodePtr *node, xmlNodePtr *instance, gchar **nodename)
93{
94 gchar *url, *name;
95
96 g_return_val_if_fail(node != NULL, NULL);
97 g_return_val_if_fail(nodename != NULL, NULL);
98 *nodename = NULL;
99
100 if(*node == NULL)
101 *node = parent->children;
102 else if(instance && *instance)
103 *node = (*instance)->next;
104 else
105 *node = (*node)->next;
106
107 if(instance)
108 *instance = NULL;
109
110 /* skip TEXT nodes */
111 while(*node && ((*node)->type != XML_ELEMENT_NODE))
112 *node = (*node)->next;
113
114 if(*node == NULL)
115 return NULL;
116
117 if(lib && instance &&
118 (xmlStrncmp((*node)->name, (xmlChar *)"instance_", 9) == 0)) {
119 url = dae_xml_get_attr(*node, "url");
120 if(url) {
121 /* skip 'instance_' part of node name */
122 name = g_strdup((gchar *)((*node)->name + 9));
123#if DEBUG > 1
124 g_debug("DAE: looking up '%s' in '%s'", url + 1, name);
125#endif
126 *instance = *node;
127 *node = dae_library_lookup(lib, name, url + 1 /* skip '#' */);
128 g_free(url);
129 g_free(name);
130 }
131 }
132 if(*node == NULL)
133 return NULL;
134
135 *nodename = g_strdup((gchar *)(*node)->name);
136
137 return *node;
138}
139
140gboolean dae_xml_parse(DaeGlobalData *global, xmlNodePtr parent,
141 DaeChunkDesc *chunks, guint32 level, gpointer user_data)
142{
143 DaeLocalData *local;
144 xmlNodePtr node = NULL, instance = NULL;
145 gchar *name;
146 gint i;
147
148 g_return_val_if_fail(parent != NULL, FALSE);
149
150 while(dae_xml_next_child(global->lib, parent, &node, &instance, &name)) {
151#if DEBUG > 0
152 g_debug("\\%s<%s>", debug_pad(level), name);
153#endif
154 if(chunks) {
155 local = g_new0(DaeLocalData, 1);
156 local->parent = parent;
157 local->node = node;
158 local->instance = instance;
159 local->level = level + 1;
160 local->user_data = user_data;
161
162 /* find callback */
163 for(i = 0; chunks[i].name != NULL; i ++) {
164 if(strcmp(chunks[i].name, name) == 0) {
165 /* found chunk */
166#if DEBUG > 3
167 g_debug("DAE: found chunk description for '%s'", name);
168#endif
169 if(chunks[i].callback)
170 chunks[i].callback(global, local);
171 break;
172 }
173 }
174
175 g_free(local);
176
177 if(chunks[i].name == NULL)
178 g_debug("DAE: unhandled chunk '%s' in '%s'", name,
179 (gchar *)parent->name);
180 }
181
182 g_free(name);
183 g3d_context_update_interface(global->context);
184 }
185
186 return TRUE;
187}
188
189gboolean dae_xml_next_int(xmlNodePtr node, gchar **nextp, gint *i)
190{
191 gchar *s, *err = NULL;
192
193 s = *nextp;
194
195 if(s == NULL)
196 s = (gchar *)node->children->content;
197
198 /* skip leading whitespace */
199 while(isspace(*s))
200 s ++;
201
202 *i = strtol(s, &err, 0);
203 if(s == err) {
204 g_debug("DAE: imp_xml_next_int: error at '%.*s...'", 5, s);
205 return FALSE;
206 }
207
208 *nextp = err;
209 return TRUE;
210}
211
212gboolean dae_xml_next_double(xmlNodePtr node, gchar **nextp, GLdouble *d)
213{
214 gchar *s, *err = NULL;
215
216 s = *nextp;
217
218 if(s == NULL)
219 s = (gchar *)node->children->content;
220
221 /* skip leading whitespace */
222 while(isspace(*s))
223 s ++;
224
225 *d = strtod(s, &err);
226 if(s == err) {
227 g_debug("DAE: imp_xml_next_float: error at '%.*s...'", 5, s);
228 return FALSE;
229 }
230
231 *nextp = err;
232 return TRUE;
233}
234
235gboolean dae_xml_next_float(xmlNodePtr node, gchar **nextp, GLfloat *f)
236{
237 gchar *s, *err = NULL;
238
239 s = *nextp;
240
241 if(s == NULL)
242 s = (gchar *)node->children->content;
243
244 /* skip leading whitespace */
245 while(isspace(*s))
246 s ++;
247
248 *f = strtof(s, &err);
249 if(s == err) {
250 g_debug("DAE: imp_xml_next_float: error at '%.*s...'", 5, s);
251 return FALSE;
252 }
253
254 *nextp = err;
255 return TRUE;
256}
257
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_xml.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_xml.h
new file mode 100644
index 0000000..949437e
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_xml.h
@@ -0,0 +1,44 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef _IMP_DAE_XML_H
24#define _IMP_DAE_XML_H
25
26#include <glib.h>
27#include <libxml/tree.h>
28
29#include "imp_dae_library.h"
30#include "imp_dae_cb.h"
31
32gchar *dae_xml_get_attr(xmlNodePtr node, const gchar *attrname);
33xmlNodePtr dae_xml_get_child_by_tagname(xmlNodePtr parent, const gchar *tag);
34xmlNodePtr dae_xml_next_child_by_tagname(xmlNodePtr parent, xmlNodePtr *node,
35 gchar *nodename);
36xmlNodePtr dae_xml_next_child(DaeLibrary *lib, xmlNodePtr parent,
37 xmlNodePtr *node, xmlNodePtr *instance, gchar **nodename);
38gboolean dae_xml_parse(DaeGlobalData *global, xmlNodePtr parent,
39 DaeChunkDesc *chunks, guint32 level, gpointer user_data);
40gboolean dae_xml_next_int(xmlNodePtr node, gchar **nextp, gint *i);
41gboolean dae_xml_next_double(xmlNodePtr node, gchar **nextp, GLdouble *d);
42gboolean dae_xml_next_float(xmlNodePtr node, gchar **nextp, GLfloat *f);
43
44#endif /* _IMP_DAE_XML_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/Makefile
new file mode 100644
index 0000000..b23d3c5
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/Makefile
@@ -0,0 +1,510 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_dpm/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_dpm
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_dpm_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_dpm_la_OBJECTS = imp_dpm.lo
59imp_dpm_la_OBJECTS = $(am_imp_dpm_la_OBJECTS)
60#am_imp_dpm_la_rpath = -rpath $(pluginimpdir)
61DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_dpm_la_SOURCES)
74DIST_SOURCES = $(imp_dpm_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
79AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
80AR = ar
81AS = as
82AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
83AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
84AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
85AWK = gawk
86CC = gcc
87CCDEPMODE = depmode=gcc3
88CFLAGS = -g -O2
89CPP = gcc -E
90CPPFLAGS =
91CXX = g++
92CXXCPP = g++ -E
93CXXDEPMODE = depmode=gcc3
94CXXFLAGS = -g -O2
95CYGPATH_W = echo
96DBG_CFLAGS = -O2
97DEBUG = 0
98DEFS = -DHAVE_CONFIG_H
99DEPDIR = .deps
100DLLTOOL = dlltool
101ECHO = echo
102ECHO_C =
103ECHO_N = -n
104ECHO_T =
105EGREP = /bin/grep -E
106EXEEXT =
107F77 =
108FFLAGS =
109GDKPIXBUF_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
110GDKPIXBUF_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
111GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
112GLIB_GENMARSHAL = glib-genmarshal
113GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
114GLIB_MKENUMS = glib-mkenums
115GOBJECT_QUERY = gobject-query
116GREP = /bin/grep
117GTKDOC_CHECK = /usr/bin/gtkdoc-check
118GTK_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
119GTK_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
120HTML_DIR = ${datadir}/gtk-doc/html
121INSTALL = /usr/bin/install -c
122INSTALL_DATA = ${INSTALL} -m 644
123INSTALL_PROGRAM = ${INSTALL}
124INSTALL_SCRIPT = ${INSTALL}
125INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
126LDFLAGS =
127LEX = flex
128LEXLIB = -lfl
129LEX_OUTPUT_ROOT = lex.yy
130LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
131LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
132LIBOBJS =
133LIBS = -lm
134LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
135LIBXML2_CFLAGS = -I/usr/include/libxml2
136LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
137LN_S = ln -s
138LTLIBOBJS =
139LTVERSION = 0:8:0
140MAGIC_LIBS = -lmagic
141MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
142MATH_LIBS = -lm
143MKDIR_P = /bin/mkdir -p
144OBJDUMP = objdump
145OBJEXT = o
146PACKAGE = libg3d
147PACKAGE_BUGREPORT =
148PACKAGE_NAME =
149PACKAGE_STRING =
150PACKAGE_TARNAME =
151PACKAGE_VERSION =
152PATH_SEPARATOR = :
153PKG_CONFIG = /usr/bin/pkg-config
154PLUGINS_LDFLAGS = -avoid-version -export-dynamic
155RANLIB = ranlib
156SET_MAKE =
157SHELL = /bin/bash
158STRIP = strip
159VERSION = 0.0.8
160XML2_CONFIG = /usr/bin/xml2-config
161XML_CPPFLAGS = -I/usr/include/libxml2
162XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
163Z_CFLAGS =
164Z_LIBS = -lz
165abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm
166abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm
167abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169ac_ct_CC = gcc
170ac_ct_CXX = g++
171ac_ct_F77 =
172am__include = include
173am__leading_dot = .
174am__quote =
175am__tar = ${AMTAR} chof - "$$tardir"
176am__untar = ${AMTAR} xf -
177bindir = ${exec_prefix}/bin
178build = x86_64-unknown-linux-gnu
179build_alias =
180build_cpu = x86_64
181build_os = linux-gnu
182build_vendor = unknown
183builddir = .
184datadir = ${datarootdir}
185datarootdir = ${prefix}/share
186docdir = ${datarootdir}/doc/${PACKAGE}
187dvidir = ${docdir}
188exec_prefix = ${prefix}
189host = x86_64-unknown-linux-gnu
190host_alias =
191host_cpu = x86_64
192host_os = linux-gnu
193host_vendor = unknown
194htmldir = ${docdir}
195includedir = ${prefix}/include
196infodir = ${datarootdir}/info
197install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
198libdir = ${exec_prefix}/lib
199libexecdir = ${exec_prefix}/libexec
200localedir = ${datarootdir}/locale
201localstatedir = ${prefix}/var
202mandir = ${datarootdir}/man
203mkdir_p = /bin/mkdir -p
204oldincludedir = /usr/include
205pdfdir = ${docdir}
206prefix = /usr/local
207program_transform_name = s,x,x,
208psdir = ${docdir}
209sbindir = ${exec_prefix}/sbin
210sharedstatedir = ${prefix}/com
211srcdir = .
212sysconfdir = ${prefix}/etc
213target_alias =
214top_builddir = ../../..
215top_srcdir = ../../..
216pluginimpdir = $(pkglibdir)/plugins/import
217#pluginimp_LTLIBRARIES = imp_dpm.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 -O2 -DDEBUG=0 \
222 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 -avoid-version -export-dynamic
228
229imp_dpm_la_SOURCES = imp_dpm.c
230imp_dpm_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
231all: all-am
232
233.SUFFIXES:
234.SUFFIXES: .c .lo .o .obj
235$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
236 @for dep in $?; do \
237 case '$(am__configure_deps)' in \
238 *$$dep*) \
239 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
240 && exit 0; \
241 exit 1;; \
242 esac; \
243 done; \
244 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_dpm/Makefile'; \
245 cd $(top_srcdir) && \
246 $(AUTOMAKE) --gnu plugins/import/imp_dpm/Makefile
247.PRECIOUS: Makefile
248Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
249 @case '$?' in \
250 *config.status*) \
251 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
252 *) \
253 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
254 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
255 esac;
256
257$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
258 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
259
260$(top_srcdir)/configure: $(am__configure_deps)
261 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
262$(ACLOCAL_M4): $(am__aclocal_m4_deps)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
265 @$(NORMAL_INSTALL)
266 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
267 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
268 if test -f $$p; then \
269 f=$(am__strip_dir) \
270 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
271 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
272 else :; fi; \
273 done
274
275uninstall-pluginimpLTLIBRARIES:
276 @$(NORMAL_UNINSTALL)
277 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
278 p=$(am__strip_dir) \
279 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
280 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
281 done
282
283clean-pluginimpLTLIBRARIES:
284 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
285 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
286 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
287 test "$$dir" != "$$p" || dir=.; \
288 echo "rm -f \"$${dir}/so_locations\""; \
289 rm -f "$${dir}/so_locations"; \
290 done
291imp_dpm.la: $(imp_dpm_la_OBJECTS) $(imp_dpm_la_DEPENDENCIES)
292 $(LINK) $(am_imp_dpm_la_rpath) $(imp_dpm_la_OBJECTS) $(imp_dpm_la_LIBADD) $(LIBS)
293
294mostlyclean-compile:
295 -rm -f *.$(OBJEXT)
296
297distclean-compile:
298 -rm -f *.tab.c
299
300include ./$(DEPDIR)/imp_dpm.Plo
301
302.c.o:
303 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
304 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
305# source='$<' object='$@' libtool=no \
306# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
307# $(COMPILE) -c $<
308
309.c.obj:
310 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
311 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
312# source='$<' object='$@' libtool=no \
313# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
314# $(COMPILE) -c `$(CYGPATH_W) '$<'`
315
316.c.lo:
317 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
318 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
319# source='$<' object='$@' libtool=yes \
320# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
321# $(LTCOMPILE) -c -o $@ $<
322
323mostlyclean-libtool:
324 -rm -f *.lo
325
326clean-libtool:
327 -rm -rf .libs _libs
328
329ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
330 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
331 unique=`for i in $$list; do \
332 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
333 done | \
334 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
335 END { if (nonempty) { for (i in files) print i; }; }'`; \
336 mkid -fID $$unique
337tags: TAGS
338
339TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
340 $(TAGS_FILES) $(LISP)
341 tags=; \
342 here=`pwd`; \
343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
344 unique=`for i in $$list; do \
345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
346 done | \
347 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
349 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
350 test -n "$$unique" || unique=$$empty_fix; \
351 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
352 $$tags $$unique; \
353 fi
354ctags: CTAGS
355CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
356 $(TAGS_FILES) $(LISP)
357 tags=; \
358 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
359 unique=`for i in $$list; do \
360 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
361 done | \
362 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
363 END { if (nonempty) { for (i in files) print i; }; }'`; \
364 test -z "$(CTAGS_ARGS)$$tags$$unique" \
365 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
366 $$tags $$unique
367
368GTAGS:
369 here=`$(am__cd) $(top_builddir) && pwd` \
370 && cd $(top_srcdir) \
371 && gtags -i $(GTAGS_ARGS) $$here
372
373distclean-tags:
374 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
375
376distdir: $(DISTFILES)
377 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
379 list='$(DISTFILES)'; \
380 dist_files=`for file in $$list; do echo $$file; done | \
381 sed -e "s|^$$srcdirstrip/||;t" \
382 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
383 case $$dist_files in \
384 */*) $(MKDIR_P) `echo "$$dist_files" | \
385 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
386 sort -u` ;; \
387 esac; \
388 for file in $$dist_files; do \
389 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
390 if test -d $$d/$$file; then \
391 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
392 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
393 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
394 fi; \
395 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
396 else \
397 test -f $(distdir)/$$file \
398 || cp -p $$d/$$file $(distdir)/$$file \
399 || exit 1; \
400 fi; \
401 done
402check-am: all-am
403check: check-am
404all-am: Makefile $(LTLIBRARIES)
405installdirs:
406 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
407 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
408 done
409install: install-am
410install-exec: install-exec-am
411install-data: install-data-am
412uninstall: uninstall-am
413
414install-am: all-am
415 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
416
417installcheck: installcheck-am
418install-strip:
419 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
420 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
421 `test -z '$(STRIP)' || \
422 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
423mostlyclean-generic:
424
425clean-generic:
426
427distclean-generic:
428 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
429
430maintainer-clean-generic:
431 @echo "This command is intended for maintainers to use"
432 @echo "it deletes files that may require special tools to rebuild."
433clean: clean-am
434
435clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
436 mostlyclean-am
437
438distclean: distclean-am
439 -rm -rf ./$(DEPDIR)
440 -rm -f Makefile
441distclean-am: clean-am distclean-compile distclean-generic \
442 distclean-tags
443
444dvi: dvi-am
445
446dvi-am:
447
448html: html-am
449
450info: info-am
451
452info-am:
453
454install-data-am: install-pluginimpLTLIBRARIES
455
456install-dvi: install-dvi-am
457
458install-exec-am:
459
460install-html: install-html-am
461
462install-info: install-info-am
463
464install-man:
465
466install-pdf: install-pdf-am
467
468install-ps: install-ps-am
469
470installcheck-am:
471
472maintainer-clean: maintainer-clean-am
473 -rm -rf ./$(DEPDIR)
474 -rm -f Makefile
475maintainer-clean-am: distclean-am maintainer-clean-generic
476
477mostlyclean: mostlyclean-am
478
479mostlyclean-am: mostlyclean-compile mostlyclean-generic \
480 mostlyclean-libtool
481
482pdf: pdf-am
483
484pdf-am:
485
486ps: ps-am
487
488ps-am:
489
490uninstall-am: uninstall-pluginimpLTLIBRARIES
491
492.MAKE: install-am install-strip
493
494.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
495 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
496 distclean-compile distclean-generic distclean-libtool \
497 distclean-tags distdir dvi dvi-am html html-am info info-am \
498 install install-am install-data install-data-am install-dvi \
499 install-dvi-am install-exec install-exec-am install-html \
500 install-html-am install-info install-info-am install-man \
501 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
502 install-ps install-ps-am install-strip installcheck \
503 installcheck-am installdirs maintainer-clean \
504 maintainer-clean-generic mostlyclean mostlyclean-compile \
505 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
506 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
507
508# Tell versions [3.59,3.63) of GNU make to not export all variables.
509# Otherwise a system limit (for SysV at least) may be exceeded.
510.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/Makefile.am
new file mode 100644
index 0000000..2d6f5c8
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/Makefile.am
@@ -0,0 +1,22 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if EXPERIMENTAL
4pluginimp_LTLIBRARIES = imp_dpm.la
5endif
6
7AM_CFLAGS = \
8 -Wall -ansi -pedantic \
9 -DG_LOG_DOMAIN=\"LibG3D\" \
10 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
11 @GLIB_CFLAGS@
12
13INCLUDES = -I$(top_srcdir)/include
14
15AM_LDFLAGS = \
16 -no-undefined -module \
17 @PLUGINS_LDFLAGS@
18
19LIBTOOL += --quiet
20
21imp_dpm_la_SOURCES = imp_dpm.c
22imp_dpm_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/Makefile.in
new file mode 100644
index 0000000..dce5205
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/Makefile.in
@@ -0,0 +1,510 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_dpm
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_dpm_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_dpm_la_OBJECTS = imp_dpm.lo
59imp_dpm_la_OBJECTS = $(am_imp_dpm_la_OBJECTS)
60@EXPERIMENTAL_TRUE@am_imp_dpm_la_rpath = -rpath $(pluginimpdir)
61DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_dpm_la_SOURCES)
74DIST_SOURCES = $(imp_dpm_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = @ACLOCAL@
79AMTAR = @AMTAR@
80AR = @AR@
81AS = @AS@
82AUTOCONF = @AUTOCONF@
83AUTOHEADER = @AUTOHEADER@
84AUTOMAKE = @AUTOMAKE@
85AWK = @AWK@
86CC = @CC@
87CCDEPMODE = @CCDEPMODE@
88CFLAGS = @CFLAGS@
89CPP = @CPP@
90CPPFLAGS = @CPPFLAGS@
91CXX = @CXX@
92CXXCPP = @CXXCPP@
93CXXDEPMODE = @CXXDEPMODE@
94CXXFLAGS = @CXXFLAGS@
95CYGPATH_W = @CYGPATH_W@
96DBG_CFLAGS = @DBG_CFLAGS@
97DEBUG = @DEBUG@
98DEFS = @DEFS@
99DEPDIR = @DEPDIR@
100DLLTOOL = @DLLTOOL@
101ECHO = @ECHO@
102ECHO_C = @ECHO_C@
103ECHO_N = @ECHO_N@
104ECHO_T = @ECHO_T@
105EGREP = @EGREP@
106EXEEXT = @EXEEXT@
107F77 = @F77@
108FFLAGS = @FFLAGS@
109GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
110GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
111GLIB_CFLAGS = @GLIB_CFLAGS@
112GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
113GLIB_LIBS = @GLIB_LIBS@
114GLIB_MKENUMS = @GLIB_MKENUMS@
115GOBJECT_QUERY = @GOBJECT_QUERY@
116GREP = @GREP@
117GTKDOC_CHECK = @GTKDOC_CHECK@
118GTK_CFLAGS = @GTK_CFLAGS@
119GTK_LIBS = @GTK_LIBS@
120HTML_DIR = @HTML_DIR@
121INSTALL = @INSTALL@
122INSTALL_DATA = @INSTALL_DATA@
123INSTALL_PROGRAM = @INSTALL_PROGRAM@
124INSTALL_SCRIPT = @INSTALL_SCRIPT@
125INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
126LDFLAGS = @LDFLAGS@
127LEX = @LEX@
128LEXLIB = @LEXLIB@
129LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
130LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
131LIBGSF_LIBS = @LIBGSF_LIBS@
132LIBOBJS = @LIBOBJS@
133LIBS = @LIBS@
134LIBTOOL = @LIBTOOL@ --quiet
135LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
136LIBXML2_LIBS = @LIBXML2_LIBS@
137LN_S = @LN_S@
138LTLIBOBJS = @LTLIBOBJS@
139LTVERSION = @LTVERSION@
140MAGIC_LIBS = @MAGIC_LIBS@
141MAKEINFO = @MAKEINFO@
142MATH_LIBS = @MATH_LIBS@
143MKDIR_P = @MKDIR_P@
144OBJDUMP = @OBJDUMP@
145OBJEXT = @OBJEXT@
146PACKAGE = @PACKAGE@
147PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
148PACKAGE_NAME = @PACKAGE_NAME@
149PACKAGE_STRING = @PACKAGE_STRING@
150PACKAGE_TARNAME = @PACKAGE_TARNAME@
151PACKAGE_VERSION = @PACKAGE_VERSION@
152PATH_SEPARATOR = @PATH_SEPARATOR@
153PKG_CONFIG = @PKG_CONFIG@
154PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
155RANLIB = @RANLIB@
156SET_MAKE = @SET_MAKE@
157SHELL = @SHELL@
158STRIP = @STRIP@
159VERSION = @VERSION@
160XML2_CONFIG = @XML2_CONFIG@
161XML_CPPFLAGS = @XML_CPPFLAGS@
162XML_LIBS = @XML_LIBS@
163Z_CFLAGS = @Z_CFLAGS@
164Z_LIBS = @Z_LIBS@
165abs_builddir = @abs_builddir@
166abs_srcdir = @abs_srcdir@
167abs_top_builddir = @abs_top_builddir@
168abs_top_srcdir = @abs_top_srcdir@
169ac_ct_CC = @ac_ct_CC@
170ac_ct_CXX = @ac_ct_CXX@
171ac_ct_F77 = @ac_ct_F77@
172am__include = @am__include@
173am__leading_dot = @am__leading_dot@
174am__quote = @am__quote@
175am__tar = @am__tar@
176am__untar = @am__untar@
177bindir = @bindir@
178build = @build@
179build_alias = @build_alias@
180build_cpu = @build_cpu@
181build_os = @build_os@
182build_vendor = @build_vendor@
183builddir = @builddir@
184datadir = @datadir@
185datarootdir = @datarootdir@
186docdir = @docdir@
187dvidir = @dvidir@
188exec_prefix = @exec_prefix@
189host = @host@
190host_alias = @host_alias@
191host_cpu = @host_cpu@
192host_os = @host_os@
193host_vendor = @host_vendor@
194htmldir = @htmldir@
195includedir = @includedir@
196infodir = @infodir@
197install_sh = @install_sh@
198libdir = @libdir@
199libexecdir = @libexecdir@
200localedir = @localedir@
201localstatedir = @localstatedir@
202mandir = @mandir@
203mkdir_p = @mkdir_p@
204oldincludedir = @oldincludedir@
205pdfdir = @pdfdir@
206prefix = @prefix@
207program_transform_name = @program_transform_name@
208psdir = @psdir@
209sbindir = @sbindir@
210sharedstatedir = @sharedstatedir@
211srcdir = @srcdir@
212sysconfdir = @sysconfdir@
213target_alias = @target_alias@
214top_builddir = @top_builddir@
215top_srcdir = @top_srcdir@
216pluginimpdir = $(pkglibdir)/plugins/import
217@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_dpm.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
222 @GLIB_CFLAGS@
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 @PLUGINS_LDFLAGS@
228
229imp_dpm_la_SOURCES = imp_dpm.c
230imp_dpm_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
231all: all-am
232
233.SUFFIXES:
234.SUFFIXES: .c .lo .o .obj
235$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
236 @for dep in $?; do \
237 case '$(am__configure_deps)' in \
238 *$$dep*) \
239 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
240 && exit 0; \
241 exit 1;; \
242 esac; \
243 done; \
244 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_dpm/Makefile'; \
245 cd $(top_srcdir) && \
246 $(AUTOMAKE) --gnu plugins/import/imp_dpm/Makefile
247.PRECIOUS: Makefile
248Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
249 @case '$?' in \
250 *config.status*) \
251 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
252 *) \
253 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
254 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
255 esac;
256
257$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
258 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
259
260$(top_srcdir)/configure: $(am__configure_deps)
261 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
262$(ACLOCAL_M4): $(am__aclocal_m4_deps)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
265 @$(NORMAL_INSTALL)
266 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
267 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
268 if test -f $$p; then \
269 f=$(am__strip_dir) \
270 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
271 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
272 else :; fi; \
273 done
274
275uninstall-pluginimpLTLIBRARIES:
276 @$(NORMAL_UNINSTALL)
277 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
278 p=$(am__strip_dir) \
279 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
280 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
281 done
282
283clean-pluginimpLTLIBRARIES:
284 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
285 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
286 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
287 test "$$dir" != "$$p" || dir=.; \
288 echo "rm -f \"$${dir}/so_locations\""; \
289 rm -f "$${dir}/so_locations"; \
290 done
291imp_dpm.la: $(imp_dpm_la_OBJECTS) $(imp_dpm_la_DEPENDENCIES)
292 $(LINK) $(am_imp_dpm_la_rpath) $(imp_dpm_la_OBJECTS) $(imp_dpm_la_LIBADD) $(LIBS)
293
294mostlyclean-compile:
295 -rm -f *.$(OBJEXT)
296
297distclean-compile:
298 -rm -f *.tab.c
299
300@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_dpm.Plo@am__quote@
301
302.c.o:
303@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
304@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
305@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
306@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
307@am__fastdepCC_FALSE@ $(COMPILE) -c $<
308
309.c.obj:
310@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
311@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
313@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
314@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
315
316.c.lo:
317@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
318@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
320@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
321@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
322
323mostlyclean-libtool:
324 -rm -f *.lo
325
326clean-libtool:
327 -rm -rf .libs _libs
328
329ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
330 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
331 unique=`for i in $$list; do \
332 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
333 done | \
334 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
335 END { if (nonempty) { for (i in files) print i; }; }'`; \
336 mkid -fID $$unique
337tags: TAGS
338
339TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
340 $(TAGS_FILES) $(LISP)
341 tags=; \
342 here=`pwd`; \
343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
344 unique=`for i in $$list; do \
345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
346 done | \
347 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
349 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
350 test -n "$$unique" || unique=$$empty_fix; \
351 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
352 $$tags $$unique; \
353 fi
354ctags: CTAGS
355CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
356 $(TAGS_FILES) $(LISP)
357 tags=; \
358 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
359 unique=`for i in $$list; do \
360 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
361 done | \
362 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
363 END { if (nonempty) { for (i in files) print i; }; }'`; \
364 test -z "$(CTAGS_ARGS)$$tags$$unique" \
365 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
366 $$tags $$unique
367
368GTAGS:
369 here=`$(am__cd) $(top_builddir) && pwd` \
370 && cd $(top_srcdir) \
371 && gtags -i $(GTAGS_ARGS) $$here
372
373distclean-tags:
374 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
375
376distdir: $(DISTFILES)
377 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
379 list='$(DISTFILES)'; \
380 dist_files=`for file in $$list; do echo $$file; done | \
381 sed -e "s|^$$srcdirstrip/||;t" \
382 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
383 case $$dist_files in \
384 */*) $(MKDIR_P) `echo "$$dist_files" | \
385 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
386 sort -u` ;; \
387 esac; \
388 for file in $$dist_files; do \
389 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
390 if test -d $$d/$$file; then \
391 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
392 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
393 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
394 fi; \
395 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
396 else \
397 test -f $(distdir)/$$file \
398 || cp -p $$d/$$file $(distdir)/$$file \
399 || exit 1; \
400 fi; \
401 done
402check-am: all-am
403check: check-am
404all-am: Makefile $(LTLIBRARIES)
405installdirs:
406 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
407 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
408 done
409install: install-am
410install-exec: install-exec-am
411install-data: install-data-am
412uninstall: uninstall-am
413
414install-am: all-am
415 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
416
417installcheck: installcheck-am
418install-strip:
419 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
420 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
421 `test -z '$(STRIP)' || \
422 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
423mostlyclean-generic:
424
425clean-generic:
426
427distclean-generic:
428 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
429
430maintainer-clean-generic:
431 @echo "This command is intended for maintainers to use"
432 @echo "it deletes files that may require special tools to rebuild."
433clean: clean-am
434
435clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
436 mostlyclean-am
437
438distclean: distclean-am
439 -rm -rf ./$(DEPDIR)
440 -rm -f Makefile
441distclean-am: clean-am distclean-compile distclean-generic \
442 distclean-tags
443
444dvi: dvi-am
445
446dvi-am:
447
448html: html-am
449
450info: info-am
451
452info-am:
453
454install-data-am: install-pluginimpLTLIBRARIES
455
456install-dvi: install-dvi-am
457
458install-exec-am:
459
460install-html: install-html-am
461
462install-info: install-info-am
463
464install-man:
465
466install-pdf: install-pdf-am
467
468install-ps: install-ps-am
469
470installcheck-am:
471
472maintainer-clean: maintainer-clean-am
473 -rm -rf ./$(DEPDIR)
474 -rm -f Makefile
475maintainer-clean-am: distclean-am maintainer-clean-generic
476
477mostlyclean: mostlyclean-am
478
479mostlyclean-am: mostlyclean-compile mostlyclean-generic \
480 mostlyclean-libtool
481
482pdf: pdf-am
483
484pdf-am:
485
486ps: ps-am
487
488ps-am:
489
490uninstall-am: uninstall-pluginimpLTLIBRARIES
491
492.MAKE: install-am install-strip
493
494.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
495 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
496 distclean-compile distclean-generic distclean-libtool \
497 distclean-tags distdir dvi dvi-am html html-am info info-am \
498 install install-am install-data install-data-am install-dvi \
499 install-dvi-am install-exec install-exec-am install-html \
500 install-html-am install-info install-info-am install-man \
501 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
502 install-ps install-ps-am install-strip installcheck \
503 installcheck-am installdirs maintainer-clean \
504 maintainer-clean-generic mostlyclean mostlyclean-compile \
505 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
506 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
507
508# Tell versions [3.59,3.63) of GNU make to not export all variables.
509# Otherwise a system limit (for SysV at least) may be exceeded.
510.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/imp_dpm.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/imp_dpm.c
new file mode 100644
index 0000000..415bc74
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/imp_dpm.c
@@ -0,0 +1,156 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21
22 plugin by Martin Gerhardy <martin.gerhardy@gmail.com>
23*/
24
25#include <stdio.h>
26#include <string.h>
27
28#include <g3d/types.h>
29#include <g3d/material.h>
30#include <g3d/texture.h>
31#include <g3d/stream.h>
32#include <g3d/iff.h>
33
34EAPI
35gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
36 G3DModel *model, gpointer user_data)
37{
38 G3DObject *object;
39 gchar magic[16], texture[32];
40 guint32 type, filesize;
41 guint32 num_bones, num_meshs, num_frames;
42 guint32 ofs_bones, ofs_meshs, ofs_frames;
43 guint32 ofs_texcoords, ofs_verts, ofs_indices;
44 goffset off_start;
45 G3DImage *image = NULL;
46 G3DMaterial *material, *mat;
47 G3DFace *face;
48 GSList *mitem;
49 G3DFloat *normals;
50 int i;
51
52 off_start = g3d_stream_tell(stream);
53
54 g3d_stream_read(stream, magic, 16);
55 if(strcmp("DARKPLACESMODEL", magic)) {
56 g_warning("DPM: Unknown magic id: '%s'\n", magic);
57 return FALSE;
58 }
59
60 object = g_new0(G3DObject, 1);
61
62 /* read the header information */
63 type = g3d_stream_read_int32_be(stream);
64 filesize = g3d_stream_read_int32_be(stream);
65 /* skip some floats */
66 for (i = 0; i < 8; i++)
67 g3d_stream_read_float_le(stream);
68 num_bones = g3d_stream_read_int32_be(stream);
69 num_meshs = g3d_stream_read_int32_be(stream);
70 num_frames = g3d_stream_read_int32_be(stream);
71 ofs_bones = g3d_stream_read_int32_be(stream);
72 ofs_meshs = g3d_stream_read_int32_be(stream);
73 ofs_frames = g3d_stream_read_int32_be(stream);
74
75 /* default material */
76 material = g3d_material_new();
77 material->name = g_strdup("default material");
78 object->materials = g_slist_append(object->materials, material);
79
80 num_meshs = 1; /* only load the first mesh */
81 for (i = 0; i < num_meshs; i++) {
82 guint32 nvertex, ntris;
83 int j;
84
85 g3d_stream_seek(stream, off_start + ofs_meshs, G_SEEK_SET);
86 g3d_stream_read(stream, texture, 32);
87
88 /* read texture image */
89 if(strlen(texture) > 0) {
90 image = g3d_texture_load_cached(context, model, texture);
91 if(image == NULL) {
92 /* try jpeg */
93 char *strp = strrchr(texture, '.');
94 if(strp) {
95 strcpy(strp, ".jpg");
96 image = g3d_texture_load_cached(context, model, texture);
97 }
98 }
99 }
100
101 if(image == NULL) {
102 mitem = model->materials;
103 while(mitem) {
104 mat = (G3DMaterial *)mitem->data;
105 if(strcmp(mat->name, object->name) == 0) {
106 image = mat->tex_image;
107 break;
108 }
109 mitem = mitem->next;
110 }
111 }
112
113 nvertex = g3d_stream_read_int32_be(stream);
114 ntris = g3d_stream_read_int32_be(stream);
115 ofs_verts = g3d_stream_read_int32_be(stream);
116 ofs_texcoords = g3d_stream_read_int32_be(stream);
117 ofs_indices = g3d_stream_read_int32_be(stream);
118
119 /* read vertex data */
120 g3d_stream_seek(stream, off_start + ofs_verts, G_SEEK_SET);
121 object->vertex_count = nvertex;
122 object->vertex_data = g_new0(G3DFloat, nvertex * 3);
123 normals = g_new0(G3DFloat, nvertex * 3);
124 for(j = 0; j < nvertex; j++) {
125
126 }
127
128 /* read texture coords */
129 g3d_stream_seek(stream, off_start + ofs_texcoords, G_SEEK_SET);
130 object->tex_vertex_data = g_new0(G3DFloat, nvertex * 2);
131 for(j = 0; j < nvertex; j++) {
132 object->tex_vertex_data[j * 2 + 0] =
133 g3d_stream_read_float_be(stream);
134 object->tex_vertex_data[j * 2 + 1] =
135 g3d_stream_read_float_be(stream);
136 }
137
138 /* read triangles */
139 /* TODO */
140 }
141
142 return TRUE;
143}
144
145EAPI
146gchar *plugin_description(G3DContext *context)
147{
148 return g_strdup("Darkplaces engine models.");
149}
150
151EAPI
152gchar **plugin_extensions(G3DContext *context)
153{
154 return g_strsplit("dpm", ":", 0);
155}
156
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/Makefile
new file mode 100644
index 0000000..8b8a6ed
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/Makefile
@@ -0,0 +1,523 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_dxf/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_dxf
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_dxf_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_dxf_la_OBJECTS = imp_dxf.lo imp_dxf_callbacks.lo \
59 imp_dxf_section.lo imp_dxf_color.lo imp_dxf_prop.lo
60imp_dxf_la_OBJECTS = $(am_imp_dxf_la_OBJECTS)
61DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_dxf_la_SOURCES)
74DIST_SOURCES = $(imp_dxf_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
79AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
80AR = ar
81AS = as
82AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
83AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
84AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
85AWK = gawk
86CC = gcc
87CCDEPMODE = depmode=gcc3
88CFLAGS = -g -O2
89CPP = gcc -E
90CPPFLAGS =
91CXX = g++
92CXXCPP = g++ -E
93CXXDEPMODE = depmode=gcc3
94CXXFLAGS = -g -O2
95CYGPATH_W = echo
96DBG_CFLAGS = -O2
97DEBUG = 0
98DEFS = -DHAVE_CONFIG_H
99DEPDIR = .deps
100DLLTOOL = dlltool
101ECHO = echo
102ECHO_C =
103ECHO_N = -n
104ECHO_T =
105EGREP = /bin/grep -E
106EXEEXT =
107F77 =
108FFLAGS =
109GDKPIXBUF_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
110GDKPIXBUF_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
111GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
112GLIB_GENMARSHAL = glib-genmarshal
113GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
114GLIB_MKENUMS = glib-mkenums
115GOBJECT_QUERY = gobject-query
116GREP = /bin/grep
117GTKDOC_CHECK = /usr/bin/gtkdoc-check
118GTK_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
119GTK_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
120HTML_DIR = ${datadir}/gtk-doc/html
121INSTALL = /usr/bin/install -c
122INSTALL_DATA = ${INSTALL} -m 644
123INSTALL_PROGRAM = ${INSTALL}
124INSTALL_SCRIPT = ${INSTALL}
125INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
126LDFLAGS =
127LEX = flex
128LEXLIB = -lfl
129LEX_OUTPUT_ROOT = lex.yy
130LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
131LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
132LIBOBJS =
133LIBS = -lm
134LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
135LIBXML2_CFLAGS = -I/usr/include/libxml2
136LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
137LN_S = ln -s
138LTLIBOBJS =
139LTVERSION = 0:8:0
140MAGIC_LIBS = -lmagic
141MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
142MATH_LIBS = -lm
143MKDIR_P = /bin/mkdir -p
144OBJDUMP = objdump
145OBJEXT = o
146PACKAGE = libg3d
147PACKAGE_BUGREPORT =
148PACKAGE_NAME =
149PACKAGE_STRING =
150PACKAGE_TARNAME =
151PACKAGE_VERSION =
152PATH_SEPARATOR = :
153PKG_CONFIG = /usr/bin/pkg-config
154PLUGINS_LDFLAGS = -avoid-version -export-dynamic
155RANLIB = ranlib
156SET_MAKE =
157SHELL = /bin/bash
158STRIP = strip
159VERSION = 0.0.8
160XML2_CONFIG = /usr/bin/xml2-config
161XML_CPPFLAGS = -I/usr/include/libxml2
162XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
163Z_CFLAGS =
164Z_LIBS = -lz
165abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf
166abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf
167abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169ac_ct_CC = gcc
170ac_ct_CXX = g++
171ac_ct_F77 =
172am__include = include
173am__leading_dot = .
174am__quote =
175am__tar = ${AMTAR} chof - "$$tardir"
176am__untar = ${AMTAR} xf -
177bindir = ${exec_prefix}/bin
178build = x86_64-unknown-linux-gnu
179build_alias =
180build_cpu = x86_64
181build_os = linux-gnu
182build_vendor = unknown
183builddir = .
184datadir = ${datarootdir}
185datarootdir = ${prefix}/share
186docdir = ${datarootdir}/doc/${PACKAGE}
187dvidir = ${docdir}
188exec_prefix = ${prefix}
189host = x86_64-unknown-linux-gnu
190host_alias =
191host_cpu = x86_64
192host_os = linux-gnu
193host_vendor = unknown
194htmldir = ${docdir}
195includedir = ${prefix}/include
196infodir = ${datarootdir}/info
197install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
198libdir = ${exec_prefix}/lib
199libexecdir = ${exec_prefix}/libexec
200localedir = ${datarootdir}/locale
201localstatedir = ${prefix}/var
202mandir = ${datarootdir}/man
203mkdir_p = /bin/mkdir -p
204oldincludedir = /usr/include
205pdfdir = ${docdir}
206prefix = /usr/local
207program_transform_name = s,x,x,
208psdir = ${docdir}
209sbindir = ${exec_prefix}/sbin
210sharedstatedir = ${prefix}/com
211srcdir = .
212sysconfdir = ${prefix}/etc
213target_alias =
214top_builddir = ../../..
215top_srcdir = ../../..
216pluginimpdir = $(pkglibdir)/plugins/import
217pluginimp_LTLIBRARIES = \
218 imp_dxf.la
219
220AM_CFLAGS = \
221 -Wall -ansi -pedantic \
222 -DG_LOG_DOMAIN=\"LibG3D\" \
223 -O2 -DDEBUG=0 \
224 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
225
226INCLUDES = -I$(top_srcdir)/include
227AM_LDFLAGS = \
228 -no-undefined -module \
229 -avoid-version -export-dynamic
230
231imp_dxf_la_SOURCES = imp_dxf.c imp_dxf.h \
232 imp_dxf_types.h imp_dxf_def.h imp_dxf_vars.h \
233 imp_dxf_entities.h imp_dxf_chunks.h \
234 imp_dxf_callbacks.c imp_dxf_callbacks.h \
235 imp_dxf_section.c imp_dxf_section.h \
236 imp_dxf_color.c imp_dxf_color.h \
237 imp_dxf_prop.c imp_dxf_prop.h
238
239imp_dxf_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
240all: all-am
241
242.SUFFIXES:
243.SUFFIXES: .c .lo .o .obj
244$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
245 @for dep in $?; do \
246 case '$(am__configure_deps)' in \
247 *$$dep*) \
248 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
249 && exit 0; \
250 exit 1;; \
251 esac; \
252 done; \
253 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_dxf/Makefile'; \
254 cd $(top_srcdir) && \
255 $(AUTOMAKE) --gnu plugins/import/imp_dxf/Makefile
256.PRECIOUS: Makefile
257Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
258 @case '$?' in \
259 *config.status*) \
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
261 *) \
262 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
263 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
264 esac;
265
266$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
267 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
268
269$(top_srcdir)/configure: $(am__configure_deps)
270 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
271$(ACLOCAL_M4): $(am__aclocal_m4_deps)
272 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
273install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
274 @$(NORMAL_INSTALL)
275 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 if test -f $$p; then \
278 f=$(am__strip_dir) \
279 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
280 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
281 else :; fi; \
282 done
283
284uninstall-pluginimpLTLIBRARIES:
285 @$(NORMAL_UNINSTALL)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 p=$(am__strip_dir) \
288 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
289 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
290 done
291
292clean-pluginimpLTLIBRARIES:
293 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
294 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
295 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
296 test "$$dir" != "$$p" || dir=.; \
297 echo "rm -f \"$${dir}/so_locations\""; \
298 rm -f "$${dir}/so_locations"; \
299 done
300imp_dxf.la: $(imp_dxf_la_OBJECTS) $(imp_dxf_la_DEPENDENCIES)
301 $(LINK) -rpath $(pluginimpdir) $(imp_dxf_la_OBJECTS) $(imp_dxf_la_LIBADD) $(LIBS)
302
303mostlyclean-compile:
304 -rm -f *.$(OBJEXT)
305
306distclean-compile:
307 -rm -f *.tab.c
308
309include ./$(DEPDIR)/imp_dxf.Plo
310include ./$(DEPDIR)/imp_dxf_callbacks.Plo
311include ./$(DEPDIR)/imp_dxf_color.Plo
312include ./$(DEPDIR)/imp_dxf_prop.Plo
313include ./$(DEPDIR)/imp_dxf_section.Plo
314
315.c.o:
316 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
318# source='$<' object='$@' libtool=no \
319# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
320# $(COMPILE) -c $<
321
322.c.obj:
323 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
324 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
325# source='$<' object='$@' libtool=no \
326# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
327# $(COMPILE) -c `$(CYGPATH_W) '$<'`
328
329.c.lo:
330 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
331 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
332# source='$<' object='$@' libtool=yes \
333# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
334# $(LTCOMPILE) -c -o $@ $<
335
336mostlyclean-libtool:
337 -rm -f *.lo
338
339clean-libtool:
340 -rm -rf .libs _libs
341
342ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
344 unique=`for i in $$list; do \
345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
346 done | \
347 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
349 mkid -fID $$unique
350tags: TAGS
351
352TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
353 $(TAGS_FILES) $(LISP)
354 tags=; \
355 here=`pwd`; \
356 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
357 unique=`for i in $$list; do \
358 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
359 done | \
360 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
361 END { if (nonempty) { for (i in files) print i; }; }'`; \
362 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
363 test -n "$$unique" || unique=$$empty_fix; \
364 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
365 $$tags $$unique; \
366 fi
367ctags: CTAGS
368CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
369 $(TAGS_FILES) $(LISP)
370 tags=; \
371 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
372 unique=`for i in $$list; do \
373 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
374 done | \
375 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
376 END { if (nonempty) { for (i in files) print i; }; }'`; \
377 test -z "$(CTAGS_ARGS)$$tags$$unique" \
378 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
379 $$tags $$unique
380
381GTAGS:
382 here=`$(am__cd) $(top_builddir) && pwd` \
383 && cd $(top_srcdir) \
384 && gtags -i $(GTAGS_ARGS) $$here
385
386distclean-tags:
387 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
388
389distdir: $(DISTFILES)
390 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
391 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
392 list='$(DISTFILES)'; \
393 dist_files=`for file in $$list; do echo $$file; done | \
394 sed -e "s|^$$srcdirstrip/||;t" \
395 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
396 case $$dist_files in \
397 */*) $(MKDIR_P) `echo "$$dist_files" | \
398 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
399 sort -u` ;; \
400 esac; \
401 for file in $$dist_files; do \
402 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
403 if test -d $$d/$$file; then \
404 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
405 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
406 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
407 fi; \
408 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
409 else \
410 test -f $(distdir)/$$file \
411 || cp -p $$d/$$file $(distdir)/$$file \
412 || exit 1; \
413 fi; \
414 done
415check-am: all-am
416check: check-am
417all-am: Makefile $(LTLIBRARIES)
418installdirs:
419 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
420 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
421 done
422install: install-am
423install-exec: install-exec-am
424install-data: install-data-am
425uninstall: uninstall-am
426
427install-am: all-am
428 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
429
430installcheck: installcheck-am
431install-strip:
432 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
433 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
434 `test -z '$(STRIP)' || \
435 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
436mostlyclean-generic:
437
438clean-generic:
439
440distclean-generic:
441 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
442
443maintainer-clean-generic:
444 @echo "This command is intended for maintainers to use"
445 @echo "it deletes files that may require special tools to rebuild."
446clean: clean-am
447
448clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
449 mostlyclean-am
450
451distclean: distclean-am
452 -rm -rf ./$(DEPDIR)
453 -rm -f Makefile
454distclean-am: clean-am distclean-compile distclean-generic \
455 distclean-tags
456
457dvi: dvi-am
458
459dvi-am:
460
461html: html-am
462
463info: info-am
464
465info-am:
466
467install-data-am: install-pluginimpLTLIBRARIES
468
469install-dvi: install-dvi-am
470
471install-exec-am:
472
473install-html: install-html-am
474
475install-info: install-info-am
476
477install-man:
478
479install-pdf: install-pdf-am
480
481install-ps: install-ps-am
482
483installcheck-am:
484
485maintainer-clean: maintainer-clean-am
486 -rm -rf ./$(DEPDIR)
487 -rm -f Makefile
488maintainer-clean-am: distclean-am maintainer-clean-generic
489
490mostlyclean: mostlyclean-am
491
492mostlyclean-am: mostlyclean-compile mostlyclean-generic \
493 mostlyclean-libtool
494
495pdf: pdf-am
496
497pdf-am:
498
499ps: ps-am
500
501ps-am:
502
503uninstall-am: uninstall-pluginimpLTLIBRARIES
504
505.MAKE: install-am install-strip
506
507.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
508 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
509 distclean-compile distclean-generic distclean-libtool \
510 distclean-tags distdir dvi dvi-am html html-am info info-am \
511 install install-am install-data install-data-am install-dvi \
512 install-dvi-am install-exec install-exec-am install-html \
513 install-html-am install-info install-info-am install-man \
514 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
515 install-ps install-ps-am install-strip installcheck \
516 installcheck-am installdirs maintainer-clean \
517 maintainer-clean-generic mostlyclean mostlyclean-compile \
518 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
519 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
520
521# Tell versions [3.59,3.63) of GNU make to not export all variables.
522# Otherwise a system limit (for SysV at least) may be exceeded.
523.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/Makefile.am
new file mode 100644
index 0000000..a370a73
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/Makefile.am
@@ -0,0 +1,28 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = \
4 imp_dxf.la
5
6LIBTOOL += --quiet
7
8AM_CFLAGS = \
9 -Wall -ansi -pedantic \
10 -DG_LOG_DOMAIN=\"LibG3D\" \
11 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
12 @GLIB_CFLAGS@
13
14INCLUDES = -I$(top_srcdir)/include
15
16AM_LDFLAGS = \
17 -no-undefined -module \
18 @PLUGINS_LDFLAGS@
19
20imp_dxf_la_SOURCES = imp_dxf.c imp_dxf.h \
21 imp_dxf_types.h imp_dxf_def.h imp_dxf_vars.h \
22 imp_dxf_entities.h imp_dxf_chunks.h \
23 imp_dxf_callbacks.c imp_dxf_callbacks.h \
24 imp_dxf_section.c imp_dxf_section.h \
25 imp_dxf_color.c imp_dxf_color.h \
26 imp_dxf_prop.c imp_dxf_prop.h
27imp_dxf_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
28
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/Makefile.in
new file mode 100644
index 0000000..f9f23a4
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/Makefile.in
@@ -0,0 +1,523 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_dxf
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_dxf_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_dxf_la_OBJECTS = imp_dxf.lo imp_dxf_callbacks.lo \
59 imp_dxf_section.lo imp_dxf_color.lo imp_dxf_prop.lo
60imp_dxf_la_OBJECTS = $(am_imp_dxf_la_OBJECTS)
61DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_dxf_la_SOURCES)
74DIST_SOURCES = $(imp_dxf_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = @ACLOCAL@
79AMTAR = @AMTAR@
80AR = @AR@
81AS = @AS@
82AUTOCONF = @AUTOCONF@
83AUTOHEADER = @AUTOHEADER@
84AUTOMAKE = @AUTOMAKE@
85AWK = @AWK@
86CC = @CC@
87CCDEPMODE = @CCDEPMODE@
88CFLAGS = @CFLAGS@
89CPP = @CPP@
90CPPFLAGS = @CPPFLAGS@
91CXX = @CXX@
92CXXCPP = @CXXCPP@
93CXXDEPMODE = @CXXDEPMODE@
94CXXFLAGS = @CXXFLAGS@
95CYGPATH_W = @CYGPATH_W@
96DBG_CFLAGS = @DBG_CFLAGS@
97DEBUG = @DEBUG@
98DEFS = @DEFS@
99DEPDIR = @DEPDIR@
100DLLTOOL = @DLLTOOL@
101ECHO = @ECHO@
102ECHO_C = @ECHO_C@
103ECHO_N = @ECHO_N@
104ECHO_T = @ECHO_T@
105EGREP = @EGREP@
106EXEEXT = @EXEEXT@
107F77 = @F77@
108FFLAGS = @FFLAGS@
109GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
110GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
111GLIB_CFLAGS = @GLIB_CFLAGS@
112GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
113GLIB_LIBS = @GLIB_LIBS@
114GLIB_MKENUMS = @GLIB_MKENUMS@
115GOBJECT_QUERY = @GOBJECT_QUERY@
116GREP = @GREP@
117GTKDOC_CHECK = @GTKDOC_CHECK@
118GTK_CFLAGS = @GTK_CFLAGS@
119GTK_LIBS = @GTK_LIBS@
120HTML_DIR = @HTML_DIR@
121INSTALL = @INSTALL@
122INSTALL_DATA = @INSTALL_DATA@
123INSTALL_PROGRAM = @INSTALL_PROGRAM@
124INSTALL_SCRIPT = @INSTALL_SCRIPT@
125INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
126LDFLAGS = @LDFLAGS@
127LEX = @LEX@
128LEXLIB = @LEXLIB@
129LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
130LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
131LIBGSF_LIBS = @LIBGSF_LIBS@
132LIBOBJS = @LIBOBJS@
133LIBS = @LIBS@
134LIBTOOL = @LIBTOOL@ --quiet
135LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
136LIBXML2_LIBS = @LIBXML2_LIBS@
137LN_S = @LN_S@
138LTLIBOBJS = @LTLIBOBJS@
139LTVERSION = @LTVERSION@
140MAGIC_LIBS = @MAGIC_LIBS@
141MAKEINFO = @MAKEINFO@
142MATH_LIBS = @MATH_LIBS@
143MKDIR_P = @MKDIR_P@
144OBJDUMP = @OBJDUMP@
145OBJEXT = @OBJEXT@
146PACKAGE = @PACKAGE@
147PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
148PACKAGE_NAME = @PACKAGE_NAME@
149PACKAGE_STRING = @PACKAGE_STRING@
150PACKAGE_TARNAME = @PACKAGE_TARNAME@
151PACKAGE_VERSION = @PACKAGE_VERSION@
152PATH_SEPARATOR = @PATH_SEPARATOR@
153PKG_CONFIG = @PKG_CONFIG@
154PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
155RANLIB = @RANLIB@
156SET_MAKE = @SET_MAKE@
157SHELL = @SHELL@
158STRIP = @STRIP@
159VERSION = @VERSION@
160XML2_CONFIG = @XML2_CONFIG@
161XML_CPPFLAGS = @XML_CPPFLAGS@
162XML_LIBS = @XML_LIBS@
163Z_CFLAGS = @Z_CFLAGS@
164Z_LIBS = @Z_LIBS@
165abs_builddir = @abs_builddir@
166abs_srcdir = @abs_srcdir@
167abs_top_builddir = @abs_top_builddir@
168abs_top_srcdir = @abs_top_srcdir@
169ac_ct_CC = @ac_ct_CC@
170ac_ct_CXX = @ac_ct_CXX@
171ac_ct_F77 = @ac_ct_F77@
172am__include = @am__include@
173am__leading_dot = @am__leading_dot@
174am__quote = @am__quote@
175am__tar = @am__tar@
176am__untar = @am__untar@
177bindir = @bindir@
178build = @build@
179build_alias = @build_alias@
180build_cpu = @build_cpu@
181build_os = @build_os@
182build_vendor = @build_vendor@
183builddir = @builddir@
184datadir = @datadir@
185datarootdir = @datarootdir@
186docdir = @docdir@
187dvidir = @dvidir@
188exec_prefix = @exec_prefix@
189host = @host@
190host_alias = @host_alias@
191host_cpu = @host_cpu@
192host_os = @host_os@
193host_vendor = @host_vendor@
194htmldir = @htmldir@
195includedir = @includedir@
196infodir = @infodir@
197install_sh = @install_sh@
198libdir = @libdir@
199libexecdir = @libexecdir@
200localedir = @localedir@
201localstatedir = @localstatedir@
202mandir = @mandir@
203mkdir_p = @mkdir_p@
204oldincludedir = @oldincludedir@
205pdfdir = @pdfdir@
206prefix = @prefix@
207program_transform_name = @program_transform_name@
208psdir = @psdir@
209sbindir = @sbindir@
210sharedstatedir = @sharedstatedir@
211srcdir = @srcdir@
212sysconfdir = @sysconfdir@
213target_alias = @target_alias@
214top_builddir = @top_builddir@
215top_srcdir = @top_srcdir@
216pluginimpdir = $(pkglibdir)/plugins/import
217pluginimp_LTLIBRARIES = \
218 imp_dxf.la
219
220AM_CFLAGS = \
221 -Wall -ansi -pedantic \
222 -DG_LOG_DOMAIN=\"LibG3D\" \
223 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
224 @GLIB_CFLAGS@
225
226INCLUDES = -I$(top_srcdir)/include
227AM_LDFLAGS = \
228 -no-undefined -module \
229 @PLUGINS_LDFLAGS@
230
231imp_dxf_la_SOURCES = imp_dxf.c imp_dxf.h \
232 imp_dxf_types.h imp_dxf_def.h imp_dxf_vars.h \
233 imp_dxf_entities.h imp_dxf_chunks.h \
234 imp_dxf_callbacks.c imp_dxf_callbacks.h \
235 imp_dxf_section.c imp_dxf_section.h \
236 imp_dxf_color.c imp_dxf_color.h \
237 imp_dxf_prop.c imp_dxf_prop.h
238
239imp_dxf_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
240all: all-am
241
242.SUFFIXES:
243.SUFFIXES: .c .lo .o .obj
244$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
245 @for dep in $?; do \
246 case '$(am__configure_deps)' in \
247 *$$dep*) \
248 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
249 && exit 0; \
250 exit 1;; \
251 esac; \
252 done; \
253 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_dxf/Makefile'; \
254 cd $(top_srcdir) && \
255 $(AUTOMAKE) --gnu plugins/import/imp_dxf/Makefile
256.PRECIOUS: Makefile
257Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
258 @case '$?' in \
259 *config.status*) \
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
261 *) \
262 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
263 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
264 esac;
265
266$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
267 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
268
269$(top_srcdir)/configure: $(am__configure_deps)
270 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
271$(ACLOCAL_M4): $(am__aclocal_m4_deps)
272 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
273install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
274 @$(NORMAL_INSTALL)
275 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 if test -f $$p; then \
278 f=$(am__strip_dir) \
279 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
280 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
281 else :; fi; \
282 done
283
284uninstall-pluginimpLTLIBRARIES:
285 @$(NORMAL_UNINSTALL)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 p=$(am__strip_dir) \
288 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
289 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
290 done
291
292clean-pluginimpLTLIBRARIES:
293 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
294 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
295 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
296 test "$$dir" != "$$p" || dir=.; \
297 echo "rm -f \"$${dir}/so_locations\""; \
298 rm -f "$${dir}/so_locations"; \
299 done
300imp_dxf.la: $(imp_dxf_la_OBJECTS) $(imp_dxf_la_DEPENDENCIES)
301 $(LINK) -rpath $(pluginimpdir) $(imp_dxf_la_OBJECTS) $(imp_dxf_la_LIBADD) $(LIBS)
302
303mostlyclean-compile:
304 -rm -f *.$(OBJEXT)
305
306distclean-compile:
307 -rm -f *.tab.c
308
309@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_dxf.Plo@am__quote@
310@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_dxf_callbacks.Plo@am__quote@
311@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_dxf_color.Plo@am__quote@
312@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_dxf_prop.Plo@am__quote@
313@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_dxf_section.Plo@am__quote@
314
315.c.o:
316@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
318@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
320@am__fastdepCC_FALSE@ $(COMPILE) -c $<
321
322.c.obj:
323@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
324@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
325@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
326@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
327@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
328
329.c.lo:
330@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
331@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
332@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
333@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
334@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
335
336mostlyclean-libtool:
337 -rm -f *.lo
338
339clean-libtool:
340 -rm -rf .libs _libs
341
342ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
344 unique=`for i in $$list; do \
345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
346 done | \
347 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
349 mkid -fID $$unique
350tags: TAGS
351
352TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
353 $(TAGS_FILES) $(LISP)
354 tags=; \
355 here=`pwd`; \
356 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
357 unique=`for i in $$list; do \
358 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
359 done | \
360 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
361 END { if (nonempty) { for (i in files) print i; }; }'`; \
362 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
363 test -n "$$unique" || unique=$$empty_fix; \
364 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
365 $$tags $$unique; \
366 fi
367ctags: CTAGS
368CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
369 $(TAGS_FILES) $(LISP)
370 tags=; \
371 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
372 unique=`for i in $$list; do \
373 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
374 done | \
375 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
376 END { if (nonempty) { for (i in files) print i; }; }'`; \
377 test -z "$(CTAGS_ARGS)$$tags$$unique" \
378 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
379 $$tags $$unique
380
381GTAGS:
382 here=`$(am__cd) $(top_builddir) && pwd` \
383 && cd $(top_srcdir) \
384 && gtags -i $(GTAGS_ARGS) $$here
385
386distclean-tags:
387 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
388
389distdir: $(DISTFILES)
390 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
391 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
392 list='$(DISTFILES)'; \
393 dist_files=`for file in $$list; do echo $$file; done | \
394 sed -e "s|^$$srcdirstrip/||;t" \
395 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
396 case $$dist_files in \
397 */*) $(MKDIR_P) `echo "$$dist_files" | \
398 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
399 sort -u` ;; \
400 esac; \
401 for file in $$dist_files; do \
402 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
403 if test -d $$d/$$file; then \
404 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
405 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
406 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
407 fi; \
408 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
409 else \
410 test -f $(distdir)/$$file \
411 || cp -p $$d/$$file $(distdir)/$$file \
412 || exit 1; \
413 fi; \
414 done
415check-am: all-am
416check: check-am
417all-am: Makefile $(LTLIBRARIES)
418installdirs:
419 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
420 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
421 done
422install: install-am
423install-exec: install-exec-am
424install-data: install-data-am
425uninstall: uninstall-am
426
427install-am: all-am
428 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
429
430installcheck: installcheck-am
431install-strip:
432 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
433 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
434 `test -z '$(STRIP)' || \
435 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
436mostlyclean-generic:
437
438clean-generic:
439
440distclean-generic:
441 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
442
443maintainer-clean-generic:
444 @echo "This command is intended for maintainers to use"
445 @echo "it deletes files that may require special tools to rebuild."
446clean: clean-am
447
448clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
449 mostlyclean-am
450
451distclean: distclean-am
452 -rm -rf ./$(DEPDIR)
453 -rm -f Makefile
454distclean-am: clean-am distclean-compile distclean-generic \
455 distclean-tags
456
457dvi: dvi-am
458
459dvi-am:
460
461html: html-am
462
463info: info-am
464
465info-am:
466
467install-data-am: install-pluginimpLTLIBRARIES
468
469install-dvi: install-dvi-am
470
471install-exec-am:
472
473install-html: install-html-am
474
475install-info: install-info-am
476
477install-man:
478
479install-pdf: install-pdf-am
480
481install-ps: install-ps-am
482
483installcheck-am:
484
485maintainer-clean: maintainer-clean-am
486 -rm -rf ./$(DEPDIR)
487 -rm -f Makefile
488maintainer-clean-am: distclean-am maintainer-clean-generic
489
490mostlyclean: mostlyclean-am
491
492mostlyclean-am: mostlyclean-compile mostlyclean-generic \
493 mostlyclean-libtool
494
495pdf: pdf-am
496
497pdf-am:
498
499ps: ps-am
500
501ps-am:
502
503uninstall-am: uninstall-pluginimpLTLIBRARIES
504
505.MAKE: install-am install-strip
506
507.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
508 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
509 distclean-compile distclean-generic distclean-libtool \
510 distclean-tags distdir dvi dvi-am html html-am info info-am \
511 install install-am install-data install-data-am install-dvi \
512 install-dvi-am install-exec install-exec-am install-html \
513 install-html-am install-info install-info-am install-man \
514 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
515 install-ps install-ps-am install-strip installcheck \
516 installcheck-am installdirs maintainer-clean \
517 maintainer-clean-generic mostlyclean mostlyclean-compile \
518 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
519 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
520
521# Tell versions [3.59,3.63) of GNU make to not export all variables.
522# Otherwise a system limit (for SysV at least) may be exceeded.
523.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf.c
new file mode 100644
index 0000000..1b08d6e
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf.c
@@ -0,0 +1,291 @@
1/* $Id: imp_dxf.c 256 2008-09-04 12:02:58Z mmmaddd $ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <string.h>
25#include <locale.h>
26
27#include <g3d/types.h>
28#include <g3d/stream.h>
29#include <g3d/material.h>
30#include <g3d/model.h>
31#include <g3d/matrix.h>
32
33#include "imp_dxf.h"
34#include "imp_dxf_section.h"
35#include "imp_dxf_def.h"
36
37static void dxf_cleanup(DxfGlobalData *global);
38
39EAPI
40gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
41 G3DModel *model, gpointer user_data)
42{
43 gchar binmagic[22];
44 G3DObject *object;
45 G3DMaterial *material;
46 DxfGlobalData *global;
47 G3DMatrix rmatrix[16];
48
49 global = g_new0(DxfGlobalData, 1);
50 global->context = context;
51 global->model = model;
52 global->stream = stream;
53 global->blocks = g_hash_table_new(g_str_hash, g_str_equal);
54
55 setlocale(LC_NUMERIC, "C");
56
57 if((g3d_stream_read(stream, binmagic, 22) == 22) &&
58 (strncmp(binmagic, "AutoCAD Binary DXF", 18) == 0))
59 global->binary = TRUE;
60 else {
61 setlocale(LC_NUMERIC, "C");
62 g3d_stream_seek(stream, 0, G_SEEK_SET);
63 }
64
65 object = g_new0(G3DObject, 1);
66 object->name = g_strdup("DXF Object");
67 model->objects = g_slist_append(model->objects, object);
68
69 material = g3d_material_new();
70 material->name = g_strdup("default material");
71 material->flags |= G3D_FLAG_MAT_TWOSIDE;
72 object->materials = g_slist_append(object->materials, material);
73
74 while(!g3d_stream_eof(stream)) {
75 int retval = dxf_read_section(global, object);
76 if(retval != TRUE) {
77 if(retval == 0xE0F) {
78 g3d_matrix_identity(rmatrix);
79 g3d_matrix_rotate_xyz(G_PI * -90.0 / 180, 0.0, 0.0, rmatrix);
80 g3d_model_transform(model, rmatrix);
81 dxf_cleanup(global);
82 return TRUE;
83 }
84 g_printerr("error in section..\n");
85 dxf_cleanup(global);
86 return FALSE;
87 }
88 }
89
90 g3d_matrix_identity(rmatrix);
91 g3d_matrix_rotate_xyz(G_PI * -90.0 / 180, 0.0, 0.0, rmatrix);
92 g3d_model_transform(model, rmatrix);
93 dxf_cleanup(global);
94
95 return TRUE;
96}
97
98EAPI
99gchar *plugin_description(void)
100{
101 return g_strdup("AutoCAD models.");
102}
103
104EAPI
105gchar **plugin_extensions(void)
106{
107 return g_strsplit("dxf", ":", 0);
108}
109
110/*****************************************************************************/
111
112static void dxf_cleanup(DxfGlobalData *global)
113{
114 g_hash_table_destroy(global->blocks);
115 g_free(global);
116}
117
118gboolean dxf_read_section(DxfGlobalData *global, G3DObject *object)
119{
120 gint grpcode;
121 gchar val_str[DXF_MAX_LINE + 1];
122
123 grpcode = dxf_read_code(global);
124 if(grpcode != 0) {
125#if DEBUG > 0
126 g_printerr("unexpected group code: %d (0 expected)\n", grpcode);
127#endif
128 return FALSE;
129 }
130 dxf_read_string(global, val_str);
131 if(strcmp("EOF", val_str) == 0)
132 return 0xE0F;
133 if(strcmp("SECTION", val_str) != 0) {
134#if DEBUG > 0
135 g_printerr("SECTION expected, found: %s\n", val_str);
136#endif
137 return FALSE;
138 }
139 grpcode = dxf_read_code(global);
140 if(grpcode != 2) {
141#if DEBUG > 0
142 g_printerr("unexpected group code: %d (2 expected)\n", grpcode);
143#endif
144 return FALSE;
145 }
146 dxf_read_string(global, val_str);
147
148 if(strcmp(val_str, "HEADER") == 0)
149 return dxf_section_HEADER(global);
150 else if(strcmp(val_str, "TABLES") == 0)
151 return dxf_section_TABLES(global);
152 else if(strcmp(val_str, "ENTITIES") == 0)
153 return dxf_section_ENTITIES(global);
154 else if(strcmp(val_str, "BLOCKS") == 0)
155 return dxf_section_BLOCKS(global);
156 else if(strcmp(val_str, "OBJECTS") == 0)
157 return dxf_section_OBJECTS(global);
158 else if(strcmp(val_str, "CLASSES") == 0)
159 return dxf_section_CLASSES(global);
160 else {
161#if DEBUG > 0
162 g_printerr("unknown section '%s', skipping...\n", val_str);
163#endif
164 dxf_skip_section(global);
165 }
166 return TRUE;
167}
168
169gchar *dxf_read_string(DxfGlobalData *global, gchar *value)
170{
171 if(global->binary) {
172 int pos = 0;
173 int c;
174 do
175 {
176 c = g3d_stream_read_int8(global->stream);
177 value[pos] = (char)c;
178 pos++;
179 } while(c != '\0');
180 return value;
181 } else {
182 gchar line[DXF_MAX_LINE + 1];
183
184 g3d_stream_read_line(global->stream, line, DXF_MAX_LINE);
185 line[DXF_MAX_LINE] = '\0';
186 if(sscanf(line, "%s", value) == 1)
187 return g_strchomp(value);
188 if(sscanf(line, " %s", value) == 1)
189 return g_strchomp(value);
190 return NULL;
191 }
192}
193
194gint32 dxf_read_code(DxfGlobalData *global)
195{
196 gint32 val = DXF_CODE_INVALID;
197 gchar line[DXF_MAX_LINE + 1];
198
199 if(global->binary)
200 return g3d_stream_read_int8(global->stream);
201 else {
202 g3d_stream_read_line(global->stream, line, DXF_MAX_LINE);
203 if((sscanf(line, "%d", &val) != 1) &&
204 (sscanf(line, " %d", &val) != 1))
205 return DXF_CODE_INVALID;
206 if(val == 999) { /* comment */
207 g3d_stream_read_line(global->stream, line, DXF_MAX_LINE);
208 return dxf_read_code(global);
209 }
210 return val;
211 }
212}
213
214gint32 dxf_read_int16(DxfGlobalData *global)
215{
216 if(global->binary)
217 return g3d_stream_read_int16_le(global->stream);
218 else
219 {
220 gint32 val;
221 gchar line[DXF_MAX_LINE];
222
223 g3d_stream_read_line(global->stream, line, DXF_MAX_LINE);
224 if(sscanf(line, "%i", &val) == 1)
225 return val;
226 if(sscanf(line, " %i", &val) == 1)
227 return val;
228 else
229 return DXF_CODE_INVALID;
230 }
231}
232
233gint32 dxf_read_int32(DxfGlobalData *global)
234{
235 if(global->binary)
236 return g3d_stream_read_int32_le(global->stream);
237 else
238 {
239 gint32 val;
240 gchar line[DXF_MAX_LINE];
241
242 g3d_stream_read_line(global->stream, line, DXF_MAX_LINE);
243 if(sscanf(line, "%i", &val) == 1)
244 return val;
245 if(sscanf(line, " %i", &val) == 1)
246 return val;
247 else
248 return DXF_CODE_INVALID;
249 }
250}
251
252gdouble dxf_read_float64(DxfGlobalData *global)
253{
254 if(global->binary)
255 return g3d_stream_read_double_le(global->stream);
256 else
257 {
258 gdouble val;
259 gchar line[DXF_MAX_LINE];
260
261 g3d_stream_read_line(global->stream, line, DXF_MAX_LINE);
262 if(sscanf(line, "%lf", &val) == 1)
263 return val;
264 if(sscanf(line, " %lf", &val) == 1)
265 return val;
266 else
267 return 0.0;
268 }
269}
270
271gboolean dxf_skip_section(DxfGlobalData *global)
272{
273 gchar c, buf[7], line[DXF_MAX_LINE];
274 gsize read;
275
276 while(!g3d_stream_eof(global->stream))
277 if(global->binary) {
278 do { c = g3d_stream_read_int8(global->stream); } while(c != 0);
279 read = g3d_stream_read(global->stream, buf, 7);
280 if((read == 7) && (strncmp(buf, "ENDSEC", 6) == 0))
281 return TRUE;
282 else
283 g3d_stream_seek(global->stream, -read, G_SEEK_CUR);
284 } else {
285 g3d_stream_read_line(global->stream, line, DXF_MAX_LINE);
286 if(strncmp(line, "ENDSEC", 6) == 0)
287 return TRUE;
288 }
289 return TRUE;
290}
291
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf.h
new file mode 100644
index 0000000..8c0cc1d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf.h
@@ -0,0 +1,53 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_DXF_H
23#define _IMP_DXF_H
24
25#include <g3d/types.h>
26#include <g3d/stream.h>
27
28#include "imp_dxf_types.h"
29
30#define DXF_TEST_ENDSEC(str) \
31 if(strcmp((str), "ENDSEC") == 0) return TRUE;
32
33#define DXF_HANDLE_UNKNOWN(global, key, str, section) \
34 if(global->binary) { \
35 g_warning("imp_dxf: unhandled key %d in section %s @ %#x", \
36 key, section, (guint32)g3d_stream_tell(global->stream)); \
37 return FALSE; \
38 } else { \
39 g3d_stream_read_line(global->stream, str, DXF_MAX_LINE); \
40 g_debug(\
41 "imp_dxf: skipping line %d (section %s, key %d):\n\t\"%s\"\n", \
42 g3d_stream_line(global->stream), section, key, str); \
43 }
44
45gint32 dxf_read_section(DxfGlobalData *global, G3DObject *object);
46gint32 dxf_read_code(DxfGlobalData *global);
47gchar *dxf_read_string(DxfGlobalData *global, gchar *value);
48gint32 dxf_read_int16(DxfGlobalData *global);
49gint32 dxf_read_int32(DxfGlobalData *global);
50gdouble dxf_read_float64(DxfGlobalData *global);
51gboolean dxf_skip_section(DxfGlobalData *global);
52
53#endif
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_callbacks.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_callbacks.c
new file mode 100644
index 0000000..c7a6e7c
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_callbacks.c
@@ -0,0 +1,349 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <string.h>
23#include <math.h>
24
25/* need a way to detect non-set float values */
26#ifndef FP_NAN
27# ifdef HUGE
28# define FP_NAN HUGE
29# else
30# define FP_NAN 3.40282347e+38F
31# endif
32#endif
33
34#include <g3d/face.h>
35#include <g3d/object.h>
36#include <g3d/matrix.h>
37#include <g3d/primitive.h>
38
39#include "imp_dxf.h"
40#include "imp_dxf_callbacks.h"
41#include "imp_dxf_vars.h"
42#include "imp_dxf_def.h"
43#include "imp_dxf_prop.h"
44#include "imp_dxf_color.h"
45
46static gboolean dxf_str_in_array(gchar **array, const gchar *needle)
47{
48 gchar **p = array;
49 while(*p != NULL) {
50 if(strcmp(*p, needle) == 0)
51 return TRUE;
52 p ++;
53 }
54 return FALSE;
55}
56
57#define DXF_VAR_DEBUG 2
58
59gboolean dxf_debug_var(DxfGlobalData *global, DxfLocalData *local)
60{
61 gint32 key;
62 gint16 i16;
63 gchar str[DXF_MAX_LINE + 1], strval[DXF_MAX_LINE + 1];
64 gdouble x, y, z;
65
66 dxf_read_string(global, str);
67 if(dxf_str_in_array(dxf_vars_vector3d, str)) {
68 key = dxf_read_code(global); /* 10 */
69 x = dxf_read_float64(global);
70 key = dxf_read_code(global); /* 20 */
71 y = dxf_read_float64(global);
72 key = dxf_read_code(global); /* 30 */
73 z = dxf_read_float64(global);
74#if DEBUG > DXF_VAR_DEBUG
75 g_debug("DXF: [v3d] %s: %.2f, %.2f, %.2f", str, x, y, z);
76#endif
77 } else if(dxf_str_in_array(dxf_vars_vector2d, str)) {
78 key = dxf_read_code(global); /* 10 */
79 x = dxf_read_float64(global);
80 key = dxf_read_code(global); /* 20 */
81 y = dxf_read_float64(global);
82#if DEBUG > DXF_VAR_DEBUG
83 g_debug("DXF: [v2d] %s: %.2f, %.2f", str, x, y);
84#endif
85 } else {
86 key = dxf_read_code(global);
87 switch(key) {
88 case 1: case 2: case 3: case 4:
89 case 5: case 6: case 7: case 8:
90 /* string */
91 dxf_read_string(global, strval);
92#if DEBUG > DXF_VAR_DEBUG
93 g_debug("DXF: [str] %s: %s", str, strval);
94#endif
95 break;
96 case 40:
97 case 50:
98 x = dxf_read_float64(global);
99#if DEBUG > DXF_VAR_DEBUG
100 g_debug("DXF: [dbl] %s: %.2f", str, x);
101#endif
102 break;
103 case 62:
104 case 70:
105 case 280:
106 case 290: /* FIXME: boolean */
107 case 370:
108 case 380:
109 /* 16-bit integer */
110 i16 = dxf_read_int16(global);
111#if DEBUG > DXF_VAR_DEBUG
112 g_debug("DXF: [i16] %s: %d", str, i16);
113#endif
114 break;
115 default:
116 DXF_HANDLE_UNKNOWN(global, key, strval, "** VARIABLE **");
117 break;
118 }
119 }
120 return TRUE;
121}
122
123static inline void dxf_object_append(DxfGlobalData *global,
124 DxfLocalData *local, G3DObject *object)
125{
126 if(local->edata->block)
127 local->edata->block->objects = g_slist_append(
128 local->edata->block->objects, object);
129 else
130 global->model->objects = g_slist_append(global->model->objects,
131 object);
132}
133
134gboolean dxf_e_3DFACE(DxfGlobalData *global, DxfLocalData *local)
135{
136 G3DObject *object;
137 G3DFace *face;
138 G3DMaterial *material;
139 gint32 key, i, j, col;
140 gboolean quad;
141
142 col = dxf_prop_get_int(local->eprop, 62, 254);
143 material = dxf_color_get_material(global->model, col);
144 if(material == NULL)
145 material = local->edata->material;
146
147 object = g_slist_nth_data(global->model->objects, 0);
148 local->edata->object = object;
149 local->edata->polyline_flags = 0;
150
151 quad = (dxf_prop_get_dbl(local->eprop, 13, FP_NAN) != FP_NAN);
152
153 face = g_new0(G3DFace, 1);
154 face->material = material;
155 face->vertex_count = quad ? 4 : 3;
156 face->vertex_indices = g_new0(guint32, face->vertex_count);
157 local->edata->vertex_offset = object->vertex_count;
158 for(i = 0; i < face->vertex_count; i ++)
159 face->vertex_indices[i] = local->edata->vertex_offset + i;
160
161 object->vertex_count += face->vertex_count;
162 object->vertex_data = g_realloc(object->vertex_data,
163 object->vertex_count * 3 * sizeof(G3DFloat));
164 object->faces = g_slist_prepend(object->faces, face);
165
166 for(i = 0; i < face->vertex_count; i ++) {
167 for(j = 0; j < 3; j ++) {
168 key = (j + 1) * 10 + i;
169 object->vertex_data[(local->edata->vertex_offset + i) * 3 + j] =
170 dxf_prop_get_dbl(local->eprop, key, 0.0);
171#if DEBUG > 2
172 g_debug("| 3DFACE: data[%d = o + %d * 3 + %d] = prop[%d] = %.2f",
173 (local->edata->vertex_offset + i) * 3 + j,
174 i, j, key,
175 object->vertex_data[
176 (local->edata->vertex_offset + i) * 3 + j]);
177#endif
178 }
179 }
180 return TRUE;
181}
182
183gboolean dxf_e_BLOCK(DxfGlobalData *global, DxfLocalData *local)
184{
185 G3DObject *object;
186 const gchar *name;
187
188 name = dxf_prop_get_str(local->eprop, 2, NULL);
189 if(local->sid == DXF_ID_BLOCKS) {
190 object = g_new0(G3DObject, 1);
191 object->hide = TRUE;
192 object->name = name ? g_strdup(name) :
193 g_strdup_printf("unnamed block @ line %d",
194 g3d_stream_line(global->stream));
195 local->edata->block = object;
196 global->model->objects = g_slist_append(global->model->objects,
197 object);
198 if(name)
199 g_hash_table_insert(global->blocks, object->name, object);
200 }
201 return TRUE;
202}
203
204gboolean dxf_e_ENDBLK(DxfGlobalData *global, DxfLocalData *local)
205{
206 local->edata->block = NULL;
207 return TRUE;
208}
209
210gboolean dxf_e_INSERT(DxfGlobalData *global, DxfLocalData *local)
211{
212 G3DObject *block, *object, *subobject;
213 GSList *item;
214 const gchar *name;
215 G3DFloat matrix[16];
216
217 name = dxf_prop_get_str(local->eprop, 2, "*** error ***");
218 block = g_hash_table_lookup(global->blocks, name);
219 if(block) {
220 object = g_new0(G3DObject, 1);
221 object->name = g_strdup_printf("copy of %s", name);
222 for(item = block->objects; item != NULL; item = item->next) {
223 subobject = g3d_object_duplicate(item->data);
224 object->objects = g_slist_append(object->objects, subobject);
225 }
226 global->model->objects = g_slist_append(global->model->objects,
227 object);
228 local->edata->object = object;
229 local->edata->vertex_offset = 0;
230
231 /* scale */
232 g3d_matrix_identity(matrix);
233 g3d_matrix_scale(
234 dxf_prop_get_dbl(local->eprop, 41, 1.0),
235 dxf_prop_get_dbl(local->eprop, 42, 1.0),
236 dxf_prop_get_dbl(local->eprop, 43, 1.0),
237 matrix);
238 g3d_object_transform(object, matrix);
239
240 /* rotate */
241 g3d_matrix_identity(matrix);
242 g3d_matrix_rotate(
243 dxf_prop_get_dbl(local->eprop, 50, 0.0),
244 dxf_prop_get_dbl(local->eprop, 210, 0.0),
245 dxf_prop_get_dbl(local->eprop, 220, 0.0),
246 dxf_prop_get_dbl(local->eprop, 230, 1.0),
247 matrix);
248 g3d_object_transform(object, matrix);
249
250 /* translate */
251 g3d_matrix_identity(matrix);
252 g3d_matrix_translate(
253 dxf_prop_get_dbl(local->eprop, 10, 0.0),
254 dxf_prop_get_dbl(local->eprop, 20, 0.0),
255 dxf_prop_get_dbl(local->eprop, 30, 0.0),
256 matrix);
257 g3d_object_transform(object, matrix);
258 }
259 return TRUE;
260}
261
262gboolean dxf_e_POLYLINE(DxfGlobalData *global, DxfLocalData *local)
263{
264 G3DObject *object = NULL;
265 G3DMaterial *material;
266 guint32 flags;
267 gint32 m, n, col;
268
269 col = dxf_prop_get_int(local->eprop, 62, 254);
270 material = dxf_color_get_material(global->model, col);
271 if(material == NULL)
272 material = local->edata->material;
273
274 flags = dxf_prop_get_int(local->eprop, 70, 0);
275 if(flags & DXF_POLY_POLYFACE) {
276 object = g_new0(G3DObject, 1);
277 object->name = g_strdup_printf("POLYFACE @ line %d",
278 g3d_stream_line(global->stream));
279 object->vertex_count = dxf_prop_get_int(local->eprop, 71, 0);
280 object->vertex_data = g_new0(G3DFloat, 3 * object->vertex_count);
281 } else if(flags & DXF_POLY_3D_POLYMESH) {
282 m = dxf_prop_get_int(local->eprop, 71, 0);
283 n = dxf_prop_get_int(local->eprop, 72, 0);
284 object = g3d_primitive_mesh(n, m,
285 (flags & DXF_POLY_CLOSED),
286 (flags & DXF_POLY_N_CLOSED),
287 material);
288 object->name = g_strdup_printf("3D POLYMESH %d x %d @ line %d",
289 m, n, g3d_stream_line(global->stream));
290 }
291
292 if(object)
293 dxf_object_append(global, local, object);
294
295 local->edata->object = object;
296 local->edata->vertex_offset = 0;
297 local->edata->polyline_flags = flags;
298 local->edata->tmp_i1 = 0;
299 return TRUE;
300}
301
302gboolean dxf_e_VERTEX(DxfGlobalData *global, DxfLocalData *local)
303{
304 G3DObject *object = local->edata->object;
305 G3DFace *face;
306 G3DMaterial *material;
307 guint32 index, flags;
308 gint32 i, col;
309
310 if(object == NULL)
311 return TRUE;
312
313 index = local->edata->vertex_offset + local->edata->tmp_i1;
314
315 if(local->edata->polyline_flags & DXF_POLY_3D_POLYMESH) {
316 g_return_val_if_fail(index < object->vertex_count, FALSE);
317 for(i = 0; i < 3; i ++)
318 object->vertex_data[index * 3 + i] = dxf_prop_get_dbl(local->eprop,
319 10 * (i + 1), 0.0);
320 local->edata->tmp_i1 ++;
321 } else if(local->edata->polyline_flags & DXF_POLY_POLYFACE) {
322 flags = dxf_prop_get_int(local->eprop, 70, 0);
323 if(flags & 64) { /* vertex coords */
324 g_return_val_if_fail(index < object->vertex_count, FALSE);
325 for(i = 0; i < 3; i ++)
326 object->vertex_data[index * 3 + i] = dxf_prop_get_dbl(
327 local->eprop, 10 * (i + 1), 0.0);
328 local->edata->tmp_i1 ++;
329 }
330 if(flags & 128) {
331 col = dxf_prop_get_int(local->eprop, 62, 254);
332 material = dxf_color_get_material(global->model, col);
333 if(material == NULL)
334 material = local->edata->material;
335
336 face = g_new0(G3DFace, 1);
337 face->material = material;
338 face->vertex_count =
339 dxf_prop_get_int(local->eprop, 74, 0) ? 4 : 3;
340 face->vertex_indices = g_new0(guint32, face->vertex_count);
341 for(i = 0; i < face->vertex_count; i ++)
342 face->vertex_indices[i] =
343 MAX(ABS(dxf_prop_get_int(local->eprop, 71 + i, 0)) - 1, 0);
344 object->faces = g_slist_prepend(object->faces, face);
345 }
346 }
347
348 return TRUE;
349}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_callbacks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_callbacks.h
new file mode 100644
index 0000000..3e84fc3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_callbacks.h
@@ -0,0 +1,36 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_DXF_CALLBACKS_H
23#define _IMP_DXF_CALLBACKS_H
24
25#include "imp_dxf_types.h"
26
27gboolean dxf_debug_var(DxfGlobalData *global, DxfLocalData *local);
28
29gboolean dxf_e_3DFACE(DxfGlobalData *global, DxfLocalData *local);
30gboolean dxf_e_BLOCK(DxfGlobalData *global, DxfLocalData *local);
31gboolean dxf_e_ENDBLK(DxfGlobalData *global, DxfLocalData *local);
32gboolean dxf_e_INSERT(DxfGlobalData *global, DxfLocalData *local);
33gboolean dxf_e_POLYLINE(DxfGlobalData *global, DxfLocalData *local);
34gboolean dxf_e_VERTEX(DxfGlobalData *global, DxfLocalData *local);
35
36#endif /* _IMP_DXF_CALLBACKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_chunks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_chunks.h
new file mode 100644
index 0000000..4382888
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_chunks.h
@@ -0,0 +1,196 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_DXF_CHUNKS_H
23#define _IMP_DXF_CHUNKS_H
24
25#include "imp_dxf_callbacks.h"
26#include "imp_dxf_types.h"
27#include "imp_dxf_def.h"
28
29static DxfChunkInfo dxf_chunks[] = {
30 /* app: <0 */
31 /* string: 0-9 */
32 { 0, "entity type", DXF_T_EMPTY },
33 { 1, "primary text value", DXF_T_STRING },
34 { 2, "name", DXF_T_STRING },
35 { 3, "other text (3)", DXF_T_STRING },
36 { 4, "other text (4)", DXF_T_STRING },
37 { 5, "entity handle", DXF_T_STRING },
38 { 6, "linetype name", DXF_T_STRING },
39 { 7, "text style name", DXF_T_STRING },
40 { 8, "layer name", DXF_T_STRING },
41 { 9, "variable name identifier", DXF_T_UNKNOWN },
42 /* double precision 3D point value: 10-39 */
43 { 10, "primary point, X value", DXF_T_FLOAT64 },
44 { 11, "point #2, X value", DXF_T_FLOAT64 },
45 { 12, "point #3, X value", DXF_T_FLOAT64 },
46 { 13, "point #4, X value", DXF_T_FLOAT64 },
47 { 14, "point #5, X value", DXF_T_FLOAT64 },
48 { 15, "point #6, X value", DXF_T_FLOAT64 },
49 { 16, "point #7, X value", DXF_T_FLOAT64 },
50 { 17, "point #8, X value", DXF_T_FLOAT64 },
51 { 18, "point #9, X value", DXF_T_FLOAT64 },
52 { 19, "point #10, X value", DXF_T_FLOAT64 },
53 { 20, "primary point, Y value", DXF_T_FLOAT64 },
54 { 21, "point #2, Y value", DXF_T_FLOAT64 },
55 { 22, "point #3, Y value", DXF_T_FLOAT64 },
56 { 23, "point #4, Y value", DXF_T_FLOAT64 },
57 { 24, "point #5, Y value", DXF_T_FLOAT64 },
58 { 25, "point #6, Y value", DXF_T_FLOAT64 },
59 { 26, "point #7, Y value", DXF_T_FLOAT64 },
60 { 27, "point #8, Y value", DXF_T_FLOAT64 },
61 { 28, "point #9, Y value", DXF_T_FLOAT64 },
62 { 29, "point #10, Y value", DXF_T_FLOAT64 },
63 { 30, "primary point, Z value", DXF_T_FLOAT64 },
64 { 31, "point #2, Z value", DXF_T_FLOAT64 },
65 { 32, "point #3, Z value", DXF_T_FLOAT64 },
66 { 33, "point #4, Z value", DXF_T_FLOAT64 },
67 { 34, "point #5, Z value", DXF_T_FLOAT64 },
68 { 35, "point #6, Z value", DXF_T_FLOAT64 },
69 { 36, "point #7, Z value", DXF_T_FLOAT64 },
70 { 37, "point #8, Z value", DXF_T_FLOAT64 },
71 { 38, "point #9, Z value", DXF_T_FLOAT64 },
72 { 39, "point #10, Z value", DXF_T_FLOAT64 },
73 /* double precision floating-point value: 40-59 */
74 { 40, "double-precision floating-point value", DXF_T_FLOAT64 },
75 { 41, "double-precision floating-point value", DXF_T_FLOAT64 },
76 { 42, "double-precision floating-point value", DXF_T_FLOAT64 },
77 { 43, "double-precision floating-point value", DXF_T_FLOAT64 },
78 { 44, "double-precision floating-point value", DXF_T_FLOAT64 },
79 { 45, "double-precision floating-point value", DXF_T_FLOAT64 },
80 { 46, "double-precision floating-point value", DXF_T_FLOAT64 },
81 { 47, "double-precision floating-point value", DXF_T_FLOAT64 },
82 { 48, "linetype scale dbl-prec fp value", DXF_T_FLOAT64 },
83 { 49, "repeated dbl-prec fp value", DXF_T_FLOAT64 },
84 { 50, "angle", DXF_T_FLOAT64 },
85 { 51, "angle", DXF_T_FLOAT64 },
86 { 52, "angle", DXF_T_FLOAT64 },
87 /* 16-bit integer value: 60-79 */
88 { 60, "entity visibility", DXF_T_INT16 },
89 { 62, "color number", DXF_T_INT16 },
90 { 65, "integer value, 16-bit", DXF_T_INT16 },
91 { 66, "entities follow", DXF_T_INT16 },
92 { 67, "space", DXF_T_INT16 },
93 { 68, "APP: viewport not visible", DXF_T_INT16 },
94 { 69, "APP: viewport identification number", DXF_T_INT16 },
95 { 70, "integer value, 16-bit", DXF_T_INT16 },
96 { 71, "integer value, 16-bit", DXF_T_INT16 },
97 { 72, "integer value, 16-bit", DXF_T_INT16 },
98 { 73, "integer value, 16-bit", DXF_T_INT16 },
99 { 74, "integer value, 16-bit", DXF_T_INT16 },
100 { 75, "integer value, 16-bit", DXF_T_INT16 },
101 { 76, "integer value, 16-bit", DXF_T_INT16 },
102 { 77, "integer value, 16-bit", DXF_T_INT16 },
103 { 78, "integer value, 16-bit", DXF_T_INT16 },
104 { 79, "integer value, 16-bit", DXF_T_INT16 },
105 /* 32-bit integer value: 90-99 */
106 { 90, "integer value, 32-bit", DXF_T_INT32 },
107 { 91, "integer value, 32-bit", DXF_T_INT32 },
108
109 { 100, "subclass data marker", DXF_T_STRING },
110 { 102, "control string", DXF_T_STRING },
111 { 105, "DIMVAR object handle", DXF_T_STRING },
112
113 { 110, "UCS origin, X value", DXF_T_FLOAT64 },
114 { 111, "UCS X-axis, X value", DXF_T_FLOAT64 },
115 { 112, "UCS Y-axis, X value", DXF_T_FLOAT64 },
116 { 120, "UCS origin, Y value", DXF_T_FLOAT64 },
117 { 121, "UCS X-axis, Y value", DXF_T_FLOAT64 },
118 { 122, "UCS Y-axis, Y value", DXF_T_FLOAT64 },
119 { 130, "UCS origin, Z value", DXF_T_FLOAT64 },
120 { 131, "UCS X-axis, Z value", DXF_T_FLOAT64 },
121 { 132, "UCS Y-axis, Z value", DXF_T_FLOAT64 },
122
123 /* double precision floating-point value: 140-149 */
124 { 140, "double-precision floating-point value", DXF_T_FLOAT64 },
125 { 141, "double-precision floating-point value", DXF_T_FLOAT64 },
126 { 142, "double-precision floating-point value", DXF_T_FLOAT64 },
127 { 143, "double-precision floating-point value", DXF_T_FLOAT64 },
128 { 144, "double-precision floating-point value", DXF_T_FLOAT64 },
129 { 145, "double-precision floating-point value", DXF_T_FLOAT64 },
130 { 146, "double-precision floating-point value", DXF_T_FLOAT64 },
131 { 147, "double-precision floating-point value", DXF_T_FLOAT64 },
132 { 148, "double-precision floating-point value", DXF_T_FLOAT64 },
133 { 149, "double-precision floating-point value", DXF_T_FLOAT64 },
134 /* 16-bit integer value: 170-179 */
135 { 170, "integer value, 16-bit", DXF_T_INT16 },
136 { 171, "integer value, 16-bit", DXF_T_INT16 },
137 { 172, "integer value, 16-bit", DXF_T_INT16 },
138
139 { 210, "extrusion direction, X value", DXF_T_FLOAT64 },
140 { 220, "extrusion direction, Y value", DXF_T_FLOAT64 },
141 { 230, "extrusion direction, Z value", DXF_T_FLOAT64 },
142 /* 16-bit integer value: 270-279 */
143 { 270, "integer value, 16-bit", DXF_T_INT16 },
144 { 271, "integer value, 16-bit", DXF_T_INT16 },
145 { 272, "integer value, 16-bit", DXF_T_INT16 },
146 { 273, "integer value, 16-bit", DXF_T_INT16 },
147 { 274, "integer value, 16-bit", DXF_T_INT16 },
148 { 275, "integer value, 16-bit", DXF_T_INT16 },
149 { 276, "integer value, 16-bit", DXF_T_INT16 },
150 { 277, "integer value, 16-bit", DXF_T_INT16 },
151 { 278, "integer value, 16-bit", DXF_T_INT16 },
152 { 279, "integer value, 16-bit", DXF_T_INT16 },
153 /* 16-bit integer value: 280-289 */
154 { 280, "integer value, 16-bit", DXF_T_INT16 },
155 { 281, "integer value, 16-bit", DXF_T_INT16 },
156 { 282, "integer value, 16-bit", DXF_T_INT16 },
157 { 283, "integer value, 16-bit", DXF_T_INT16 },
158 { 284, "integer value, 16-bit", DXF_T_INT16 },
159 { 285, "integer value, 16-bit", DXF_T_INT16 },
160 { 286, "integer value, 16-bit", DXF_T_INT16 },
161 { 287, "integer value, 16-bit", DXF_T_INT16 },
162 { 288, "integer value, 16-bit", DXF_T_INT16 },
163 { 289, "integer value, 16-bit", DXF_T_INT16 },
164
165 /* boolean flag value: 290-299 */
166
167 { 330, "softpointer handle", DXF_T_STRING },
168 { 331, "softpointer handle", DXF_T_STRING },
169 { 340, "hardpointer handle", DXF_T_STRING },
170 { 350, "softowner handle", DXF_T_STRING },
171
172 { 370, "lineweight enum value", DXF_T_INT16 },
173
174 { 390, "PlotStyleName handle", DXF_T_STRING },
175
176 { 420, "integer value, 32-bit", DXF_T_INT32 },
177
178 { 1000, "ASCII string", DXF_T_STRING },
179 { 1001, "registered application name", DXF_T_STRING },
180 { 1002, "extended data control string", DXF_T_STRING },
181
182 { 1010, "extended data point, X value", DXF_T_FLOAT64 },
183 { 1011, "extended 3D world space, X value", DXF_T_FLOAT64 },
184 { 1020, "extended data point, Y value", DXF_T_FLOAT64 },
185 { 1021, "extended 3D world space, Y value", DXF_T_FLOAT64 },
186 { 1030, "extended data point, Z value", DXF_T_FLOAT64 },
187 { 1031, "extended 3D world space, Z value", DXF_T_FLOAT64 },
188 { 1040, "extended data dbl-prec fp value", DXF_T_FLOAT64 },
189 { 1041, "extended data distance value", DXF_T_FLOAT64 },
190 { 1070, "extended data 16-bit integer", DXF_T_INT16 },
191 { 1071, "extended data 32-bit integer", DXF_T_INT32 },
192
193 { DXF_CODE_INVALID, NULL, DXF_T_UNKNOWN },
194};
195
196#endif /* _IMP_DXF_CHUNKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_color.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_color.c
new file mode 100644
index 0000000..6ffdf87
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_color.c
@@ -0,0 +1,130 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <string.h>
23
24#include <g3d/types.h>
25#include <g3d/material.h>
26
27static G3DMaterial *get_material(G3DModel *model, const gchar *cname)
28{
29 G3DMaterial *material;
30 GSList *item;
31
32 for(item = model->materials; item != NULL; item = item->next) {
33 material = item->data;
34 if(strcmp(material->name, cname) == 0)
35 return material;
36 }
37 return NULL;
38}
39
40#define DXF_COL_SET(rx, gx, bx) \
41 material->r = ((G3DFloat)(rx) / 255.0); \
42 material->g = ((G3DFloat)(gx) / 255.0); \
43 material->b = ((G3DFloat)(bx) / 255.0);
44
45/*
46 * based on GPL code from
47 * http://wiki.inkscape.org/wiki/index.php/SOC_Accepted_Proposals
48 */
49static gboolean set_aci(G3DMaterial *material, gint32 aci)
50{
51 G3DFloat r, g, b, h, s, l, m;
52 gint32 mod10;
53
54 if((aci < 10) || (aci > 249)) {
55 switch(aci) {
56 case 0: DXF_COL_SET(0x00, 0x00, 0x00); break;
57 case 1: DXF_COL_SET(0xFF, 0x00, 0x00); break;
58 case 2: DXF_COL_SET(0xFF, 0xFF, 0x00); break;
59 case 3: DXF_COL_SET(0x00, 0xFF, 0x00); break;
60 case 4: DXF_COL_SET(0x00, 0xFF, 0xFF); break;
61 case 5: DXF_COL_SET(0x00, 0x00, 0xFF); break;
62 case 6: DXF_COL_SET(0xFF, 0x00, 0xFF); break;
63 case 7: DXF_COL_SET(0xFF, 0xFF, 0xFF); break;
64 case 8: DXF_COL_SET(0x80, 0x80, 0x80); break;
65 case 9: DXF_COL_SET(0xC0, 0xC0, 0xC0); break;
66
67 case 250: DXF_COL_SET(0x33, 0x33, 0x33); break;
68 case 251: DXF_COL_SET(0x5B, 0x5B, 0x5B); break;
69 case 252: DXF_COL_SET(0x84, 0x84, 0x84); break;
70 case 253: DXF_COL_SET(0xAD, 0xAD, 0xAD); break;
71 case 254: DXF_COL_SET(0xD6, 0xD6, 0xD6); break;
72 case 255: DXF_COL_SET(0xFF, 0xFF, 0xFF); break;
73 default: break;
74 }
75 } else {
76 mod10 = aci % 10;
77 h = 1.5 * (aci - mod10 - 10);
78 s = ((aci % 2) ? 0.5 : 1.0);
79 if(mod10 < 2) l = 1.0;
80 else if(mod10 < 4) l = 0.8;
81 else if(mod10 < 6) l = 0.6;
82 else if(mod10 < 8) l = 0.5;
83 else l = 0.3;
84
85 if(h <= 120) {
86 r = (120 - h) / 60;
87 g = h / 60;
88 b = 0;
89 } else if(h <= 240) {
90 r = 0;
91 g = (240 - h) / 60;
92 b = (h - 120) / 60;
93 } else if(h <= 360) {
94 r = (h - 240) / 60;
95 g = 0;
96 b = (360 - h) / 60;
97 }
98 r = MIN(r, 1.0);
99 g = MIN(g, 1.0);
100 b = MIN(b, 1.0);
101 m = MAX(r, MAX(g, b));
102 material->r = (m - s * (m - r)) * l;
103 material->g = (m - s * (m - g)) * l;
104 material->b = (m - s * (m - b)) * l;
105 }
106 return TRUE;
107}
108
109G3DMaterial *dxf_color_get_material(G3DModel *model, gint32 aci)
110{
111 gchar *cname;
112 G3DMaterial *material;
113
114 cname = g_strdup_printf("color #%d", ABS(aci));
115 material = get_material(model, cname);
116 if(material != NULL) {
117 g_free(cname);
118 return material;
119 }
120 material = g3d_material_new();
121 material->name = cname;
122 model->materials = g_slist_append(model->materials, material);
123 set_aci(material, ABS(aci));
124#if DEBUG > 0
125 g_debug("| color: %.2f %.2f %.2f", material->r, material->g, material->b);
126#endif
127
128 return material;
129}
130
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_color.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_color.h
new file mode 100644
index 0000000..18d09f0
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_color.h
@@ -0,0 +1,29 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_DXF_COLOR_H
23#define _IMP_DXF_COLOR_H
24
25#include <g3d/types.h>
26
27G3DMaterial *dxf_color_get_material(G3DModel *model, gint32 aci);
28
29#endif /* _IMP_DXF_COLOR_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_def.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_def.h
new file mode 100644
index 0000000..d64d2ab
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_def.h
@@ -0,0 +1,51 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_DXF_DEF_H
23#define _IMP_DXF_DEF_H
24
25#define DXF_MAX_LINE 512
26#define DXF_CODE_INVALID 0xDEADBEEF
27
28#define DXF_ID_HEADER 0x00FF0000
29#define DXF_ID_TABLES 0x00FF0001
30#define DXF_ID_ENTITIES 0x00FF0002
31#define DXF_ID_BLOCKS 0x00FF0003
32#define DXF_ID_OBJECTS 0x00FF0004
33#define DXF_ID_CLASSES 0x00FF0005
34
35#define DXF_E_3DFACE 0x0001
36#define DXF_E_POLYLINE 0x0002
37#define DXF_E_VERTEX 0x0003
38#define DXF_E_BLOCK 0x0004
39#define DXF_E_INSERT 0x0005
40#define DXF_E_OTHER 0xFFFF
41
42#define DXF_POLY_CLOSED 1
43#define DXF_POLY_CURVE_FIT_ADDED 2
44#define DXF_POLY_SPLINE_FIT_ADDED 4
45#define DXF_POLY_3D_POLYLINE 8
46#define DXF_POLY_3D_POLYMESH 16
47#define DXF_POLY_N_CLOSED 32
48#define DXF_POLY_POLYFACE 64
49#define DXF_POLY_LT_PATTERN 128
50
51#endif /* _IMP_DXF_DEF_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_entities.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_entities.h
new file mode 100644
index 0000000..2e8a0ee
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_entities.h
@@ -0,0 +1,70 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_DXF_ENTITIES_H
23#define _IMP_DXF_ENTITIES_H
24
25#include "imp_dxf_types.h"
26#include "imp_dxf_def.h"
27#include "imp_dxf_callbacks.h"
28
29static DxfEntityInfo dxf_entities[] = {
30 { "3DFACE", "3D face", DXF_E_3DFACE, dxf_e_3DFACE },
31 { "POLYLINE", "Polyline", DXF_E_POLYLINE, dxf_e_POLYLINE },
32 { "VERTEX", "Vertex", DXF_E_VERTEX, dxf_e_VERTEX },
33
34 { "BLOCK", "block", DXF_E_BLOCK, dxf_e_BLOCK },
35 { "ENDBLK", "end of block", DXF_E_OTHER, dxf_e_ENDBLK },
36 { "INSERT", "insert block reference", DXF_E_INSERT, dxf_e_INSERT },
37
38 { "3DLINE", "3D line", DXF_E_OTHER, NULL },
39 { "ACDBDICTIONARYWDFLT", "unknown", DXF_E_OTHER, NULL },
40 { "ACDBPLACEHOLDER", "unknown", DXF_E_OTHER, NULL },
41 { "APPID", "application ID", DXF_E_OTHER, NULL },
42 { "ARC", "arc", DXF_E_OTHER, NULL },
43 { "ATTDEF", "attribute definition", DXF_E_OTHER, NULL },
44 { "ATTRIB", "attribute", DXF_E_OTHER, NULL },
45 { "BLOCK_RECORD", "block record", DXF_E_OTHER, NULL },
46 { "CIRCLE", "circle", DXF_E_OTHER, NULL },
47 { "CLASS", "class", DXF_E_OTHER, NULL },
48 { "DICTIONARY", "dictionary", DXF_E_OTHER, NULL },
49 { "DIMSTYLE", "unknown", DXF_E_OTHER, NULL },
50 { "ENDTAB", "end of table", DXF_E_OTHER, NULL },
51 { "LAYER", "layer", DXF_E_OTHER, NULL },
52 { "LAYOUT", "layout", DXF_E_OTHER, NULL },
53 { "LINE", "line", DXF_E_OTHER, NULL },
54 { "LTYPE", "line type", DXF_E_OTHER, NULL },
55 { "LWPOLYLINE", "unknown", DXF_E_OTHER, NULL },
56 { "MLINESTYLE", "unknown", DXF_E_OTHER, NULL },
57 { "POINT", "point", DXF_E_OTHER, NULL },
58 { "SEQEND", "end of sequence", DXF_E_OTHER, NULL },
59 { "SPLINE", "spline curve", DXF_E_OTHER, NULL },
60 { "STYLE", "style", DXF_E_OTHER, NULL },
61 { "TABLE", "table", DXF_E_OTHER, NULL },
62 { "UCS", "UCS", DXF_E_OTHER, NULL },
63 { "VIEW", "view", DXF_E_OTHER, NULL },
64 { "VIEWPORT", "viewport", DXF_E_OTHER, NULL },
65 { "VPORT", "viewport", DXF_E_OTHER, NULL },
66
67 { NULL, NULL, 0, NULL }
68};
69
70#endif
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_prop.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_prop.c
new file mode 100644
index 0000000..ce63334
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_prop.c
@@ -0,0 +1,128 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include "imp_dxf_types.h"
23
24struct _DxfEntityProps {
25 GHashTable *hash;
26};
27
28typedef struct {
29 gint32 key;
30 DxfChunkType type;
31 union {
32 gint32 ival;
33 gdouble dval;
34 gchar *strval;
35 } u;
36} DxfEProp;
37
38DxfEntityProps *dxf_prop_create(void)
39{
40 DxfEntityProps *eprop;
41
42 eprop = g_new0(DxfEntityProps, 1);
43 eprop->hash = g_hash_table_new(g_int_hash, g_int_equal);
44
45 return eprop;
46}
47
48static gboolean remove_p(gpointer key, gpointer value, gpointer user_data)
49{
50 DxfEProp *p = value;
51 if(p->type == DXF_T_STRING)
52 g_free(p->u.strval);
53 g_free(p);
54 return TRUE;
55}
56
57void dxf_prop_cleanup(DxfEntityProps *eprop)
58{
59 g_hash_table_foreach_remove(eprop->hash, remove_p, NULL);
60 g_hash_table_destroy(eprop->hash);
61 g_free(eprop);
62}
63
64static DxfEProp *prop_get(DxfEntityProps *eprop, gint32 key)
65{
66 DxfEProp *p;
67
68 p = g_hash_table_lookup(eprop->hash, &key);
69 if(p)
70 return p;
71 p = g_new0(DxfEProp, 1);
72 p->key = key;
73 g_hash_table_insert(eprop->hash, &(p->key), p);
74 return p;
75}
76
77gboolean dxf_prop_set_int(DxfEntityProps *eprop, gint32 key, gint32 i)
78{
79 DxfEProp *p = prop_get(eprop, key);
80 p->type = DXF_T_INT32;
81 p->u.ival = i;
82 return TRUE;
83}
84
85gboolean dxf_prop_set_dbl(DxfEntityProps *eprop, gint32 key, gdouble dbl)
86{
87 DxfEProp *p = prop_get(eprop, key);
88 p->type = DXF_T_FLOAT64;
89 p->u.dval = dbl;
90 return TRUE;
91}
92
93gboolean dxf_prop_set_str(DxfEntityProps *eprop, gint32 key,
94 const gchar *str)
95{
96 DxfEProp *p = prop_get(eprop, key);
97 p->type = DXF_T_STRING;
98 if(p->u.strval)
99 g_free(p->u.strval);
100 p->u.strval = g_strdup(str);
101 return TRUE;
102}
103
104gint32 dxf_prop_get_int(DxfEntityProps *eprop, gint32 key, gint32 dfl)
105{
106 DxfEProp *p = g_hash_table_lookup(eprop->hash, &key);
107 if(p)
108 return p->u.ival;
109 return dfl;
110}
111
112gdouble dxf_prop_get_dbl(DxfEntityProps *eprop, gint32 key, gdouble dfl)
113{
114 DxfEProp *p = g_hash_table_lookup(eprop->hash, &key);
115 if(p)
116 return p->u.dval;
117 return dfl;
118}
119
120const gchar *dxf_prop_get_str(DxfEntityProps *eprop, gint32 key,
121 const gchar *dfl)
122{
123 DxfEProp *p = g_hash_table_lookup(eprop->hash, &key);
124 if(p)
125 return p->u.strval;
126 return dfl;
127}
128
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_prop.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_prop.h
new file mode 100644
index 0000000..224f69a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_prop.h
@@ -0,0 +1,40 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_DXF_PROP_H
23#define _IMP_DXF_PROP_H
24
25#include "imp_dxf_types.h"
26
27DxfEntityProps *dxf_prop_create(void);
28void dxf_prop_cleanup(DxfEntityProps *eprop);
29
30gboolean dxf_prop_set_int(DxfEntityProps *eprop, gint32 key, gint32 i);
31gboolean dxf_prop_set_dbl(DxfEntityProps *eprop, gint32 key, gdouble dbl);
32gboolean dxf_prop_set_str(DxfEntityProps *eprop, gint32 key,
33 const gchar *str);
34
35gint32 dxf_prop_get_int(DxfEntityProps *eprop, gint32 key, gint32 dfl);
36gdouble dxf_prop_get_dbl(DxfEntityProps *eprop, gint32 key, gdouble dfl);
37const gchar *dxf_prop_get_str(DxfEntityProps *eprop, gint32 key,
38 const gchar *dfl);
39
40#endif /* _IMP_DXF_PROP_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_section.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_section.c
new file mode 100644
index 0000000..39cd155
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_section.c
@@ -0,0 +1,233 @@
1/* $Id: imp_dxf_section.c 312 2008-11-17 18:28:56Z mmmaddd $ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <string.h>
23#include <math.h>
24
25#include <g3d/context.h>
26
27#include "imp_dxf.h"
28#include "imp_dxf_prop.h"
29#include "imp_dxf_chunks.h"
30#include "imp_dxf_entities.h"
31
32static DxfChunkInfo *dxf_get_chunk_info(DxfChunkInfo *chunks, gint32 id)
33{
34 guint32 i;
35
36 for(i = 0; chunks[i].id != DXF_CODE_INVALID; i ++)
37 if(chunks[i].id == id)
38 return &(chunks[i]);
39 return NULL;
40}
41
42static DxfEntityInfo *dxf_get_entity_info(const gchar *str)
43{
44 guint32 i;
45
46 for(i = 0; dxf_entities[i].name != NULL; i ++)
47 if(strcmp(dxf_entities[i].name, str) == 0)
48 return &(dxf_entities[i]);
49#if DEBUG > 0
50 g_debug("unknown entity: %s", str);
51#endif
52 return NULL;
53}
54
55static gboolean dxf_entity_finalize(DxfGlobalData *global, guint32 sid,
56 DxfEntityData *edata, DxfEntityInfo *einfo, DxfEntityProps *eprop)
57{
58 DxfLocalData *local;
59
60 if(einfo->callback) {
61 local = g_new0(DxfLocalData, 1);
62 local->sid = sid;
63 local->eid = einfo->id;
64 local->edata = edata;
65 local->eprop = eprop;
66
67 einfo->callback(global, local);
68
69 g_free(local);
70 }
71 return TRUE;
72}
73
74static gboolean dxf_read_chunk(DxfGlobalData *global, DxfChunkInfo *cinfo,
75 DxfEntityProps *eprop)
76{
77 gint32 i;
78 gdouble dbl;
79 gchar str[DXF_MAX_LINE + 1];
80
81 switch(cinfo->type) {
82 case DXF_T_UNKNOWN:
83 if(cinfo->id == 9) /* variable name */
84 return dxf_debug_var(global, NULL);
85 break;
86 case DXF_T_EMPTY:
87 return TRUE;
88 break;
89 case DXF_T_INT16:
90 i = dxf_read_int16(global);
91 dxf_prop_set_int(eprop, cinfo->id, i);
92 break;
93 case DXF_T_INT32:
94 i = dxf_read_int32(global);
95 dxf_prop_set_int(eprop, cinfo->id, i);
96 break;
97 case DXF_T_FLOAT64:
98 dbl = dxf_read_float64(global);
99 dxf_prop_set_dbl(eprop, cinfo->id, dbl);
100 break;
101 case DXF_T_STRING:
102 dxf_read_string(global, str);
103 dxf_prop_set_str(eprop, cinfo->id, str);
104 break;
105 }
106 return TRUE;
107}
108
109static gboolean dxf_parse_chunks(DxfGlobalData *global, DxfChunkInfo *chunks,
110 gint32 parentid, const gchar *section)
111{
112 gint32 key;
113 DxfChunkInfo *chunk_info;
114 DxfEntityData *edata;
115 DxfEntityInfo *einfo = NULL;
116 DxfEntityProps *eprop = NULL;
117 gchar str[DXF_MAX_LINE + 1];
118 G3DFloat pcnt, prev_pcnt = 0.0;
119
120#if DEBUG > 0
121 g_debug("\\[%s]", section);
122#endif
123
124 edata = g_new0(DxfEntityData, 1);
125
126 if((strcmp(section, "ENTITIES") == 0) ||
127 (strcmp(section, "BLOCKS") == 0)) {
128 edata->object = g_slist_nth_data(global->model->objects, 0);
129 edata->material = g_slist_nth_data(edata->object->materials, 0);
130 }
131
132 while(TRUE) {
133 key = dxf_read_code(global);
134 chunk_info = dxf_get_chunk_info(chunks, key);
135
136 if(key == DXF_CODE_INVALID) {
137 g_free(edata);
138 return FALSE;
139 }
140
141 if(key == 0) { /* new entity or end of section */
142 if(einfo) {
143 dxf_entity_finalize(global, parentid, edata, einfo, eprop);
144 dxf_prop_cleanup(eprop);
145 eprop = NULL;
146 }
147 dxf_read_string(global, str);
148 DXF_TEST_ENDSEC(str);
149 einfo = dxf_get_entity_info(str);
150 eprop = dxf_prop_create();
151#if DEBUG > 0
152 g_debug("| entity: %s", str);
153#endif
154 }
155
156#if DEBUG > 0
157 if(chunk_info)
158 g_debug("\\ %s[%+4d]: %s%s%s (line %d)",
159 key ? " " : "",
160 key, chunk_info->description,
161 key ? "" : ": ",
162 key ? "" : str,
163 g3d_stream_line(global->stream));
164 else
165 g_warning("unknown chunk type %d in line %d", key,
166 g3d_stream_line(global->stream));
167#endif
168
169 if(chunk_info) {
170 dxf_read_chunk(global, chunk_info, eprop);
171 } /* chunk_info */
172 else {
173 DXF_HANDLE_UNKNOWN(global, key, str, section);
174 }
175
176 pcnt = (G3DFloat)g3d_stream_tell(global->stream) /
177 (G3DFloat)g3d_stream_size(global->stream);
178 if((pcnt - prev_pcnt) > 0.01) {
179 prev_pcnt = pcnt;
180 g3d_context_update_progress_bar(global->context, pcnt, TRUE);
181 }
182 g3d_context_update_interface(global->context);
183 } /* endless loop */
184
185 g_free(edata);
186 return FALSE;
187}
188
189gboolean dxf_section_HEADER(DxfGlobalData *global)
190{
191#if 0
192 return dxf_parse_chunks(global, dxf_chunks, DXF_ID_HEADER, "HEADER");
193#else
194 return dxf_skip_section(global);
195#endif
196}
197
198gboolean dxf_section_ENTITIES(DxfGlobalData *global)
199{
200 return dxf_parse_chunks(global, dxf_chunks, DXF_ID_ENTITIES, "ENTITIES");
201}
202
203gboolean dxf_section_BLOCKS(DxfGlobalData *global)
204{
205 return dxf_parse_chunks(global, dxf_chunks, DXF_ID_BLOCKS, "BLOCKS");
206}
207
208gboolean dxf_section_TABLES(DxfGlobalData *global)
209{
210#if 0
211 return dxf_parse_chunks(global, dxf_chunks, DXF_ID_TABLES, "TABLES");
212#else
213 return dxf_skip_section(global);
214#endif
215}
216
217gboolean dxf_section_OBJECTS(DxfGlobalData *global)
218{
219#if 0
220 return dxf_parse_chunks(global, dxf_chunks, DXF_ID_OBJECTS, "OBJECTS");
221#else
222 return dxf_skip_section(global);
223#endif
224}
225
226gboolean dxf_section_CLASSES(DxfGlobalData *global)
227{
228#if 0
229 return dxf_parse_chunks(global, dxf_chunks, DXF_ID_CLASSES, "TABLES");
230#else
231 return dxf_skip_section(global);
232#endif
233}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_section.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_section.h
new file mode 100644
index 0000000..3adb9c3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_section.h
@@ -0,0 +1,34 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_DXF_SECTION_H
23#define _IMP_DXF_SECTION_H
24
25#include "imp_dxf_types.h"
26
27gboolean dxf_section_HEADER(DxfGlobalData *global);
28gboolean dxf_section_TABLES(DxfGlobalData *global);
29gboolean dxf_section_BLOCKS(DxfGlobalData *global);
30gboolean dxf_section_ENTITIES(DxfGlobalData *global);
31gboolean dxf_section_OBJECTS(DxfGlobalData *global);
32gboolean dxf_section_CLASSES(DxfGlobalData *global);
33
34#endif /* _IMP_DXF_SECTION_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_types.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_types.h
new file mode 100644
index 0000000..7be6036
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_types.h
@@ -0,0 +1,78 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_DXF_TYPES_H
23#define _IMP_DXF_TYPES_H
24
25#include <g3d/types.h>
26
27typedef struct {
28 G3DContext *context;
29 G3DModel *model;
30 G3DStream *stream;
31 gboolean binary;
32 GHashTable *blocks;
33} DxfGlobalData;
34
35typedef struct {
36 G3DObject *object;
37 G3DObject *block;
38 G3DMaterial *material;
39 guint32 vertex_offset;
40 guint32 tmp_i1;
41 guint32 polyline_flags;
42} DxfEntityData;
43
44typedef struct _DxfEntityProps DxfEntityProps;
45
46typedef struct {
47 gint32 id;
48 guint32 sid; /* section id */
49 guint32 eid; /* entity id */
50 DxfEntityData *edata;
51 DxfEntityProps *eprop;
52} DxfLocalData;
53
54typedef gboolean (* DxfCallback)(DxfGlobalData *, DxfLocalData *);
55
56typedef struct {
57 const gchar *name;
58 const gchar *description;
59 guint32 id;
60 DxfCallback callback;
61} DxfEntityInfo;
62
63typedef enum {
64 DXF_T_UNKNOWN,
65 DXF_T_EMPTY,
66 DXF_T_INT16,
67 DXF_T_INT32,
68 DXF_T_FLOAT64,
69 DXF_T_STRING
70} DxfChunkType;
71
72typedef struct {
73 gint32 id;
74 const gchar *description;
75 DxfChunkType type;
76} DxfChunkInfo;
77
78#endif /* _IMP_DXF_TYPES_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_vars.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_vars.h
new file mode 100644
index 0000000..a8ea174
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_vars.h
@@ -0,0 +1,64 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_DXF_VARS_H
23#define _IMP_DXF_VARS_H
24
25#include <glib.h>
26
27static gchar *dxf_vars_vector2d[] = {
28 "$AXISUNIT",
29 "$LIMMAX",
30 "$LIMMIN",
31 "$PLIMMIN",
32 "$PLIMMAX",
33 NULL
34};
35
36static gchar *dxf_vars_vector3d[] = {
37 "$EXTMIN",
38 "$EXTMAX",
39 "$INSBASE",
40 "$PEXTMAX",
41 "$PEXTMIN",
42 "$PINSBASE",
43 "$PUCSORG",
44 "$PUCSORGBACK",
45 "$PUCSORGBOTTOM",
46 "$PUCSORGFRONT",
47 "$PUCSORGLEFT",
48 "$PUCSORGRIGHT",
49 "$PUCSORGTOP",
50 "$PUCSXDIR",
51 "$PUCSYDIR",
52 "$UCSORG",
53 "$UCSORGBACK",
54 "$UCSORGBOTTOM",
55 "$UCSORGFRONT",
56 "$UCSORGLEFT",
57 "$UCSORGRIGHT",
58 "$UCSORGTOP",
59 "$UCSXDIR",
60 "$UCSYDIR",
61 NULL
62};
63
64#endif
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/Makefile
new file mode 100644
index 0000000..a9fb9fa
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/Makefile
@@ -0,0 +1,514 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_flt/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_flt
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_flt_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_flt_la_OBJECTS = imp_flt.lo imp_flt_callbacks.lo
59imp_flt_la_OBJECTS = $(am_imp_flt_la_OBJECTS)
60#am_imp_flt_la_rpath = -rpath $(pluginimpdir)
61DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_flt_la_SOURCES)
74DIST_SOURCES = $(imp_flt_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
79AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
80AR = ar
81AS = as
82AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
83AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
84AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
85AWK = gawk
86CC = gcc
87CCDEPMODE = depmode=gcc3
88CFLAGS = -g -O2
89CPP = gcc -E
90CPPFLAGS =
91CXX = g++
92CXXCPP = g++ -E
93CXXDEPMODE = depmode=gcc3
94CXXFLAGS = -g -O2
95CYGPATH_W = echo
96DBG_CFLAGS = -O2
97DEBUG = 0
98DEFS = -DHAVE_CONFIG_H
99DEPDIR = .deps
100DLLTOOL = dlltool
101ECHO = echo
102ECHO_C =
103ECHO_N = -n
104ECHO_T =
105EGREP = /bin/grep -E
106EXEEXT =
107F77 =
108FFLAGS =
109GDKPIXBUF_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
110GDKPIXBUF_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
111GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
112GLIB_GENMARSHAL = glib-genmarshal
113GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
114GLIB_MKENUMS = glib-mkenums
115GOBJECT_QUERY = gobject-query
116GREP = /bin/grep
117GTKDOC_CHECK = /usr/bin/gtkdoc-check
118GTK_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
119GTK_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
120HTML_DIR = ${datadir}/gtk-doc/html
121INSTALL = /usr/bin/install -c
122INSTALL_DATA = ${INSTALL} -m 644
123INSTALL_PROGRAM = ${INSTALL}
124INSTALL_SCRIPT = ${INSTALL}
125INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
126LDFLAGS =
127LEX = flex
128LEXLIB = -lfl
129LEX_OUTPUT_ROOT = lex.yy
130LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
131LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
132LIBOBJS =
133LIBS = -lm
134LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
135LIBXML2_CFLAGS = -I/usr/include/libxml2
136LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
137LN_S = ln -s
138LTLIBOBJS =
139LTVERSION = 0:8:0
140MAGIC_LIBS = -lmagic
141MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
142MATH_LIBS = -lm
143MKDIR_P = /bin/mkdir -p
144OBJDUMP = objdump
145OBJEXT = o
146PACKAGE = libg3d
147PACKAGE_BUGREPORT =
148PACKAGE_NAME =
149PACKAGE_STRING =
150PACKAGE_TARNAME =
151PACKAGE_VERSION =
152PATH_SEPARATOR = :
153PKG_CONFIG = /usr/bin/pkg-config
154PLUGINS_LDFLAGS = -avoid-version -export-dynamic
155RANLIB = ranlib
156SET_MAKE =
157SHELL = /bin/bash
158STRIP = strip
159VERSION = 0.0.8
160XML2_CONFIG = /usr/bin/xml2-config
161XML_CPPFLAGS = -I/usr/include/libxml2
162XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
163Z_CFLAGS =
164Z_LIBS = -lz
165abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt
166abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt
167abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169ac_ct_CC = gcc
170ac_ct_CXX = g++
171ac_ct_F77 =
172am__include = include
173am__leading_dot = .
174am__quote =
175am__tar = ${AMTAR} chof - "$$tardir"
176am__untar = ${AMTAR} xf -
177bindir = ${exec_prefix}/bin
178build = x86_64-unknown-linux-gnu
179build_alias =
180build_cpu = x86_64
181build_os = linux-gnu
182build_vendor = unknown
183builddir = .
184datadir = ${datarootdir}
185datarootdir = ${prefix}/share
186docdir = ${datarootdir}/doc/${PACKAGE}
187dvidir = ${docdir}
188exec_prefix = ${prefix}
189host = x86_64-unknown-linux-gnu
190host_alias =
191host_cpu = x86_64
192host_os = linux-gnu
193host_vendor = unknown
194htmldir = ${docdir}
195includedir = ${prefix}/include
196infodir = ${datarootdir}/info
197install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
198libdir = ${exec_prefix}/lib
199libexecdir = ${exec_prefix}/libexec
200localedir = ${datarootdir}/locale
201localstatedir = ${prefix}/var
202mandir = ${datarootdir}/man
203mkdir_p = /bin/mkdir -p
204oldincludedir = /usr/include
205pdfdir = ${docdir}
206prefix = /usr/local
207program_transform_name = s,x,x,
208psdir = ${docdir}
209sbindir = ${exec_prefix}/sbin
210sharedstatedir = ${prefix}/com
211srcdir = .
212sysconfdir = ${prefix}/etc
213target_alias =
214top_builddir = ../../..
215top_srcdir = ../../..
216pluginimpdir = $(pkglibdir)/plugins/import
217#pluginimp_LTLIBRARIES = imp_flt.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 -O2 -DDEBUG=0 \
222 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 -avoid-version -export-dynamic
228
229imp_flt_la_SOURCES = imp_flt.c imp_flt.h \
230 imp_flt_opcodes.h \
231 imp_flt_callbacks.c imp_flt_callbacks.h
232
233imp_flt_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
234all: all-am
235
236.SUFFIXES:
237.SUFFIXES: .c .lo .o .obj
238$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
239 @for dep in $?; do \
240 case '$(am__configure_deps)' in \
241 *$$dep*) \
242 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
243 && exit 0; \
244 exit 1;; \
245 esac; \
246 done; \
247 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_flt/Makefile'; \
248 cd $(top_srcdir) && \
249 $(AUTOMAKE) --gnu plugins/import/imp_flt/Makefile
250.PRECIOUS: Makefile
251Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
252 @case '$?' in \
253 *config.status*) \
254 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
255 *) \
256 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
257 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
258 esac;
259
260$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
261 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
262
263$(top_srcdir)/configure: $(am__configure_deps)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265$(ACLOCAL_M4): $(am__aclocal_m4_deps)
266 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
267install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
268 @$(NORMAL_INSTALL)
269 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
270 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
271 if test -f $$p; then \
272 f=$(am__strip_dir) \
273 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
274 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
275 else :; fi; \
276 done
277
278uninstall-pluginimpLTLIBRARIES:
279 @$(NORMAL_UNINSTALL)
280 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
281 p=$(am__strip_dir) \
282 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
283 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
284 done
285
286clean-pluginimpLTLIBRARIES:
287 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
288 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
289 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
290 test "$$dir" != "$$p" || dir=.; \
291 echo "rm -f \"$${dir}/so_locations\""; \
292 rm -f "$${dir}/so_locations"; \
293 done
294imp_flt.la: $(imp_flt_la_OBJECTS) $(imp_flt_la_DEPENDENCIES)
295 $(LINK) $(am_imp_flt_la_rpath) $(imp_flt_la_OBJECTS) $(imp_flt_la_LIBADD) $(LIBS)
296
297mostlyclean-compile:
298 -rm -f *.$(OBJEXT)
299
300distclean-compile:
301 -rm -f *.tab.c
302
303include ./$(DEPDIR)/imp_flt.Plo
304include ./$(DEPDIR)/imp_flt_callbacks.Plo
305
306.c.o:
307 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
308 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
309# source='$<' object='$@' libtool=no \
310# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
311# $(COMPILE) -c $<
312
313.c.obj:
314 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
315 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
316# source='$<' object='$@' libtool=no \
317# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
318# $(COMPILE) -c `$(CYGPATH_W) '$<'`
319
320.c.lo:
321 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
322 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
323# source='$<' object='$@' libtool=yes \
324# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
325# $(LTCOMPILE) -c -o $@ $<
326
327mostlyclean-libtool:
328 -rm -f *.lo
329
330clean-libtool:
331 -rm -rf .libs _libs
332
333ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
334 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
335 unique=`for i in $$list; do \
336 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
337 done | \
338 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
339 END { if (nonempty) { for (i in files) print i; }; }'`; \
340 mkid -fID $$unique
341tags: TAGS
342
343TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
344 $(TAGS_FILES) $(LISP)
345 tags=; \
346 here=`pwd`; \
347 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
348 unique=`for i in $$list; do \
349 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
350 done | \
351 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
352 END { if (nonempty) { for (i in files) print i; }; }'`; \
353 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
354 test -n "$$unique" || unique=$$empty_fix; \
355 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
356 $$tags $$unique; \
357 fi
358ctags: CTAGS
359CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
360 $(TAGS_FILES) $(LISP)
361 tags=; \
362 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
363 unique=`for i in $$list; do \
364 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
365 done | \
366 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
367 END { if (nonempty) { for (i in files) print i; }; }'`; \
368 test -z "$(CTAGS_ARGS)$$tags$$unique" \
369 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
370 $$tags $$unique
371
372GTAGS:
373 here=`$(am__cd) $(top_builddir) && pwd` \
374 && cd $(top_srcdir) \
375 && gtags -i $(GTAGS_ARGS) $$here
376
377distclean-tags:
378 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
379
380distdir: $(DISTFILES)
381 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
382 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
383 list='$(DISTFILES)'; \
384 dist_files=`for file in $$list; do echo $$file; done | \
385 sed -e "s|^$$srcdirstrip/||;t" \
386 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
387 case $$dist_files in \
388 */*) $(MKDIR_P) `echo "$$dist_files" | \
389 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
390 sort -u` ;; \
391 esac; \
392 for file in $$dist_files; do \
393 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
394 if test -d $$d/$$file; then \
395 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
396 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
397 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
398 fi; \
399 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
400 else \
401 test -f $(distdir)/$$file \
402 || cp -p $$d/$$file $(distdir)/$$file \
403 || exit 1; \
404 fi; \
405 done
406check-am: all-am
407check: check-am
408all-am: Makefile $(LTLIBRARIES)
409installdirs:
410 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
411 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
412 done
413install: install-am
414install-exec: install-exec-am
415install-data: install-data-am
416uninstall: uninstall-am
417
418install-am: all-am
419 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
420
421installcheck: installcheck-am
422install-strip:
423 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
424 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
425 `test -z '$(STRIP)' || \
426 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
427mostlyclean-generic:
428
429clean-generic:
430
431distclean-generic:
432 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
433
434maintainer-clean-generic:
435 @echo "This command is intended for maintainers to use"
436 @echo "it deletes files that may require special tools to rebuild."
437clean: clean-am
438
439clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
440 mostlyclean-am
441
442distclean: distclean-am
443 -rm -rf ./$(DEPDIR)
444 -rm -f Makefile
445distclean-am: clean-am distclean-compile distclean-generic \
446 distclean-tags
447
448dvi: dvi-am
449
450dvi-am:
451
452html: html-am
453
454info: info-am
455
456info-am:
457
458install-data-am: install-pluginimpLTLIBRARIES
459
460install-dvi: install-dvi-am
461
462install-exec-am:
463
464install-html: install-html-am
465
466install-info: install-info-am
467
468install-man:
469
470install-pdf: install-pdf-am
471
472install-ps: install-ps-am
473
474installcheck-am:
475
476maintainer-clean: maintainer-clean-am
477 -rm -rf ./$(DEPDIR)
478 -rm -f Makefile
479maintainer-clean-am: distclean-am maintainer-clean-generic
480
481mostlyclean: mostlyclean-am
482
483mostlyclean-am: mostlyclean-compile mostlyclean-generic \
484 mostlyclean-libtool
485
486pdf: pdf-am
487
488pdf-am:
489
490ps: ps-am
491
492ps-am:
493
494uninstall-am: uninstall-pluginimpLTLIBRARIES
495
496.MAKE: install-am install-strip
497
498.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
499 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
500 distclean-compile distclean-generic distclean-libtool \
501 distclean-tags distdir dvi dvi-am html html-am info info-am \
502 install install-am install-data install-data-am install-dvi \
503 install-dvi-am install-exec install-exec-am install-html \
504 install-html-am install-info install-info-am install-man \
505 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
506 install-ps install-ps-am install-strip installcheck \
507 installcheck-am installdirs maintainer-clean \
508 maintainer-clean-generic mostlyclean mostlyclean-compile \
509 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
510 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
511
512# Tell versions [3.59,3.63) of GNU make to not export all variables.
513# Otherwise a system limit (for SysV at least) may be exceeded.
514.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/Makefile.am
new file mode 100644
index 0000000..4b479c7
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/Makefile.am
@@ -0,0 +1,24 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if EXPERIMENTAL
4pluginimp_LTLIBRARIES = imp_flt.la
5endif
6
7AM_CFLAGS = \
8 -Wall -ansi -pedantic \
9 -DG_LOG_DOMAIN=\"LibG3D\" \
10 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
11 @GLIB_CFLAGS@
12
13INCLUDES = -I$(top_srcdir)/include
14
15AM_LDFLAGS = \
16 -no-undefined -module \
17 @PLUGINS_LDFLAGS@
18
19LIBTOOL += --quiet
20
21imp_flt_la_SOURCES = imp_flt.c imp_flt.h \
22 imp_flt_opcodes.h \
23 imp_flt_callbacks.c imp_flt_callbacks.h
24imp_flt_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/Makefile.in
new file mode 100644
index 0000000..1838da2
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/Makefile.in
@@ -0,0 +1,514 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_flt
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_flt_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_flt_la_OBJECTS = imp_flt.lo imp_flt_callbacks.lo
59imp_flt_la_OBJECTS = $(am_imp_flt_la_OBJECTS)
60@EXPERIMENTAL_TRUE@am_imp_flt_la_rpath = -rpath $(pluginimpdir)
61DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_flt_la_SOURCES)
74DIST_SOURCES = $(imp_flt_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = @ACLOCAL@
79AMTAR = @AMTAR@
80AR = @AR@
81AS = @AS@
82AUTOCONF = @AUTOCONF@
83AUTOHEADER = @AUTOHEADER@
84AUTOMAKE = @AUTOMAKE@
85AWK = @AWK@
86CC = @CC@
87CCDEPMODE = @CCDEPMODE@
88CFLAGS = @CFLAGS@
89CPP = @CPP@
90CPPFLAGS = @CPPFLAGS@
91CXX = @CXX@
92CXXCPP = @CXXCPP@
93CXXDEPMODE = @CXXDEPMODE@
94CXXFLAGS = @CXXFLAGS@
95CYGPATH_W = @CYGPATH_W@
96DBG_CFLAGS = @DBG_CFLAGS@
97DEBUG = @DEBUG@
98DEFS = @DEFS@
99DEPDIR = @DEPDIR@
100DLLTOOL = @DLLTOOL@
101ECHO = @ECHO@
102ECHO_C = @ECHO_C@
103ECHO_N = @ECHO_N@
104ECHO_T = @ECHO_T@
105EGREP = @EGREP@
106EXEEXT = @EXEEXT@
107F77 = @F77@
108FFLAGS = @FFLAGS@
109GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
110GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
111GLIB_CFLAGS = @GLIB_CFLAGS@
112GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
113GLIB_LIBS = @GLIB_LIBS@
114GLIB_MKENUMS = @GLIB_MKENUMS@
115GOBJECT_QUERY = @GOBJECT_QUERY@
116GREP = @GREP@
117GTKDOC_CHECK = @GTKDOC_CHECK@
118GTK_CFLAGS = @GTK_CFLAGS@
119GTK_LIBS = @GTK_LIBS@
120HTML_DIR = @HTML_DIR@
121INSTALL = @INSTALL@
122INSTALL_DATA = @INSTALL_DATA@
123INSTALL_PROGRAM = @INSTALL_PROGRAM@
124INSTALL_SCRIPT = @INSTALL_SCRIPT@
125INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
126LDFLAGS = @LDFLAGS@
127LEX = @LEX@
128LEXLIB = @LEXLIB@
129LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
130LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
131LIBGSF_LIBS = @LIBGSF_LIBS@
132LIBOBJS = @LIBOBJS@
133LIBS = @LIBS@
134LIBTOOL = @LIBTOOL@ --quiet
135LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
136LIBXML2_LIBS = @LIBXML2_LIBS@
137LN_S = @LN_S@
138LTLIBOBJS = @LTLIBOBJS@
139LTVERSION = @LTVERSION@
140MAGIC_LIBS = @MAGIC_LIBS@
141MAKEINFO = @MAKEINFO@
142MATH_LIBS = @MATH_LIBS@
143MKDIR_P = @MKDIR_P@
144OBJDUMP = @OBJDUMP@
145OBJEXT = @OBJEXT@
146PACKAGE = @PACKAGE@
147PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
148PACKAGE_NAME = @PACKAGE_NAME@
149PACKAGE_STRING = @PACKAGE_STRING@
150PACKAGE_TARNAME = @PACKAGE_TARNAME@
151PACKAGE_VERSION = @PACKAGE_VERSION@
152PATH_SEPARATOR = @PATH_SEPARATOR@
153PKG_CONFIG = @PKG_CONFIG@
154PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
155RANLIB = @RANLIB@
156SET_MAKE = @SET_MAKE@
157SHELL = @SHELL@
158STRIP = @STRIP@
159VERSION = @VERSION@
160XML2_CONFIG = @XML2_CONFIG@
161XML_CPPFLAGS = @XML_CPPFLAGS@
162XML_LIBS = @XML_LIBS@
163Z_CFLAGS = @Z_CFLAGS@
164Z_LIBS = @Z_LIBS@
165abs_builddir = @abs_builddir@
166abs_srcdir = @abs_srcdir@
167abs_top_builddir = @abs_top_builddir@
168abs_top_srcdir = @abs_top_srcdir@
169ac_ct_CC = @ac_ct_CC@
170ac_ct_CXX = @ac_ct_CXX@
171ac_ct_F77 = @ac_ct_F77@
172am__include = @am__include@
173am__leading_dot = @am__leading_dot@
174am__quote = @am__quote@
175am__tar = @am__tar@
176am__untar = @am__untar@
177bindir = @bindir@
178build = @build@
179build_alias = @build_alias@
180build_cpu = @build_cpu@
181build_os = @build_os@
182build_vendor = @build_vendor@
183builddir = @builddir@
184datadir = @datadir@
185datarootdir = @datarootdir@
186docdir = @docdir@
187dvidir = @dvidir@
188exec_prefix = @exec_prefix@
189host = @host@
190host_alias = @host_alias@
191host_cpu = @host_cpu@
192host_os = @host_os@
193host_vendor = @host_vendor@
194htmldir = @htmldir@
195includedir = @includedir@
196infodir = @infodir@
197install_sh = @install_sh@
198libdir = @libdir@
199libexecdir = @libexecdir@
200localedir = @localedir@
201localstatedir = @localstatedir@
202mandir = @mandir@
203mkdir_p = @mkdir_p@
204oldincludedir = @oldincludedir@
205pdfdir = @pdfdir@
206prefix = @prefix@
207program_transform_name = @program_transform_name@
208psdir = @psdir@
209sbindir = @sbindir@
210sharedstatedir = @sharedstatedir@
211srcdir = @srcdir@
212sysconfdir = @sysconfdir@
213target_alias = @target_alias@
214top_builddir = @top_builddir@
215top_srcdir = @top_srcdir@
216pluginimpdir = $(pkglibdir)/plugins/import
217@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_flt.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
222 @GLIB_CFLAGS@
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 @PLUGINS_LDFLAGS@
228
229imp_flt_la_SOURCES = imp_flt.c imp_flt.h \
230 imp_flt_opcodes.h \
231 imp_flt_callbacks.c imp_flt_callbacks.h
232
233imp_flt_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
234all: all-am
235
236.SUFFIXES:
237.SUFFIXES: .c .lo .o .obj
238$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
239 @for dep in $?; do \
240 case '$(am__configure_deps)' in \
241 *$$dep*) \
242 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
243 && exit 0; \
244 exit 1;; \
245 esac; \
246 done; \
247 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_flt/Makefile'; \
248 cd $(top_srcdir) && \
249 $(AUTOMAKE) --gnu plugins/import/imp_flt/Makefile
250.PRECIOUS: Makefile
251Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
252 @case '$?' in \
253 *config.status*) \
254 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
255 *) \
256 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
257 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
258 esac;
259
260$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
261 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
262
263$(top_srcdir)/configure: $(am__configure_deps)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265$(ACLOCAL_M4): $(am__aclocal_m4_deps)
266 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
267install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
268 @$(NORMAL_INSTALL)
269 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
270 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
271 if test -f $$p; then \
272 f=$(am__strip_dir) \
273 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
274 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
275 else :; fi; \
276 done
277
278uninstall-pluginimpLTLIBRARIES:
279 @$(NORMAL_UNINSTALL)
280 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
281 p=$(am__strip_dir) \
282 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
283 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
284 done
285
286clean-pluginimpLTLIBRARIES:
287 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
288 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
289 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
290 test "$$dir" != "$$p" || dir=.; \
291 echo "rm -f \"$${dir}/so_locations\""; \
292 rm -f "$${dir}/so_locations"; \
293 done
294imp_flt.la: $(imp_flt_la_OBJECTS) $(imp_flt_la_DEPENDENCIES)
295 $(LINK) $(am_imp_flt_la_rpath) $(imp_flt_la_OBJECTS) $(imp_flt_la_LIBADD) $(LIBS)
296
297mostlyclean-compile:
298 -rm -f *.$(OBJEXT)
299
300distclean-compile:
301 -rm -f *.tab.c
302
303@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_flt.Plo@am__quote@
304@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_flt_callbacks.Plo@am__quote@
305
306.c.o:
307@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
308@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
309@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
310@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
311@am__fastdepCC_FALSE@ $(COMPILE) -c $<
312
313.c.obj:
314@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
315@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
316@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
317@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
318@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
319
320.c.lo:
321@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
322@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
323@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
324@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
325@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
326
327mostlyclean-libtool:
328 -rm -f *.lo
329
330clean-libtool:
331 -rm -rf .libs _libs
332
333ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
334 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
335 unique=`for i in $$list; do \
336 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
337 done | \
338 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
339 END { if (nonempty) { for (i in files) print i; }; }'`; \
340 mkid -fID $$unique
341tags: TAGS
342
343TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
344 $(TAGS_FILES) $(LISP)
345 tags=; \
346 here=`pwd`; \
347 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
348 unique=`for i in $$list; do \
349 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
350 done | \
351 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
352 END { if (nonempty) { for (i in files) print i; }; }'`; \
353 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
354 test -n "$$unique" || unique=$$empty_fix; \
355 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
356 $$tags $$unique; \
357 fi
358ctags: CTAGS
359CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
360 $(TAGS_FILES) $(LISP)
361 tags=; \
362 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
363 unique=`for i in $$list; do \
364 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
365 done | \
366 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
367 END { if (nonempty) { for (i in files) print i; }; }'`; \
368 test -z "$(CTAGS_ARGS)$$tags$$unique" \
369 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
370 $$tags $$unique
371
372GTAGS:
373 here=`$(am__cd) $(top_builddir) && pwd` \
374 && cd $(top_srcdir) \
375 && gtags -i $(GTAGS_ARGS) $$here
376
377distclean-tags:
378 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
379
380distdir: $(DISTFILES)
381 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
382 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
383 list='$(DISTFILES)'; \
384 dist_files=`for file in $$list; do echo $$file; done | \
385 sed -e "s|^$$srcdirstrip/||;t" \
386 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
387 case $$dist_files in \
388 */*) $(MKDIR_P) `echo "$$dist_files" | \
389 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
390 sort -u` ;; \
391 esac; \
392 for file in $$dist_files; do \
393 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
394 if test -d $$d/$$file; then \
395 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
396 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
397 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
398 fi; \
399 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
400 else \
401 test -f $(distdir)/$$file \
402 || cp -p $$d/$$file $(distdir)/$$file \
403 || exit 1; \
404 fi; \
405 done
406check-am: all-am
407check: check-am
408all-am: Makefile $(LTLIBRARIES)
409installdirs:
410 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
411 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
412 done
413install: install-am
414install-exec: install-exec-am
415install-data: install-data-am
416uninstall: uninstall-am
417
418install-am: all-am
419 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
420
421installcheck: installcheck-am
422install-strip:
423 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
424 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
425 `test -z '$(STRIP)' || \
426 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
427mostlyclean-generic:
428
429clean-generic:
430
431distclean-generic:
432 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
433
434maintainer-clean-generic:
435 @echo "This command is intended for maintainers to use"
436 @echo "it deletes files that may require special tools to rebuild."
437clean: clean-am
438
439clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
440 mostlyclean-am
441
442distclean: distclean-am
443 -rm -rf ./$(DEPDIR)
444 -rm -f Makefile
445distclean-am: clean-am distclean-compile distclean-generic \
446 distclean-tags
447
448dvi: dvi-am
449
450dvi-am:
451
452html: html-am
453
454info: info-am
455
456info-am:
457
458install-data-am: install-pluginimpLTLIBRARIES
459
460install-dvi: install-dvi-am
461
462install-exec-am:
463
464install-html: install-html-am
465
466install-info: install-info-am
467
468install-man:
469
470install-pdf: install-pdf-am
471
472install-ps: install-ps-am
473
474installcheck-am:
475
476maintainer-clean: maintainer-clean-am
477 -rm -rf ./$(DEPDIR)
478 -rm -f Makefile
479maintainer-clean-am: distclean-am maintainer-clean-generic
480
481mostlyclean: mostlyclean-am
482
483mostlyclean-am: mostlyclean-compile mostlyclean-generic \
484 mostlyclean-libtool
485
486pdf: pdf-am
487
488pdf-am:
489
490ps: ps-am
491
492ps-am:
493
494uninstall-am: uninstall-pluginimpLTLIBRARIES
495
496.MAKE: install-am install-strip
497
498.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
499 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
500 distclean-compile distclean-generic distclean-libtool \
501 distclean-tags distdir dvi dvi-am html html-am info info-am \
502 install install-am install-data install-data-am install-dvi \
503 install-dvi-am install-exec install-exec-am install-html \
504 install-html-am install-info install-info-am install-man \
505 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
506 install-ps install-ps-am install-strip installcheck \
507 installcheck-am installdirs maintainer-clean \
508 maintainer-clean-generic mostlyclean mostlyclean-compile \
509 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
510 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
511
512# Tell versions [3.59,3.63) of GNU make to not export all variables.
513# Otherwise a system limit (for SysV at least) may be exceeded.
514.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt.c
new file mode 100644
index 0000000..6a92b5a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt.c
@@ -0,0 +1,175 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <g3d/types.h>
24#include <g3d/context.h>
25#include <g3d/stream.h>
26#include <g3d/material.h>
27#include <g3d/model.h>
28#include <g3d/matrix.h>
29
30#include "imp_flt_opcodes.h"
31
32FltOpcode *flt_opcode_info(guint32 opcode);
33
34EAPI
35gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
36 G3DModel *model, gpointer user_data)
37{
38 guint16 opcode, rlen;
39 FltOpcode *oi;
40 FltGlobalData *gd;
41 FltLocalData *ld;
42 G3DObject *g3dobj = NULL;
43 gpointer level_object = NULL;
44 gchar *pad;
45 G3DFloat prev_pcnt = 0.0, pcnt;
46 G3DMatrix rmatrix[16];
47
48 gd = g_new0(FltGlobalData, 1);
49 gd->context = context;
50 gd->model = model;
51 gd->stream = stream;
52 gd->oqueue = g_queue_new();
53
54 while(!g3d_stream_eof(stream)) {
55 /* get record information */
56 opcode = g3d_stream_read_int16_be(stream);
57 rlen = g3d_stream_read_int16_be(stream);
58
59 /* create local data */
60 ld = g_new0(FltLocalData, 1);
61 ld->opcode = opcode;
62 ld->nb = rlen - 4;
63 ld->g3dobj = g3dobj;
64 ld->level_object = level_object;
65
66 if(opcode == 0) {
67 /* end of file or error */
68 break;
69 }
70
71 oi = flt_opcode_info(opcode);
72
73 pad = g_strnfill(gd->level, ' ');
74 g_debug("\\%s[%04d][%c] %8d: %s", pad, opcode,
75 oi ? (oi->callback ? 'f' : ' ') : ' ',
76 rlen,
77 oi ? oi->description : "unknown");
78 g_free(pad);
79
80 if(oi && oi->callback)
81 oi->callback(gd, ld);
82
83 /* skip remaining bytes */
84 if(ld->nb > 0)
85 g3d_stream_skip(stream, ld->nb);
86
87 /* free local data */
88 g3dobj = ld->g3dobj;
89 level_object = ld->level_object;
90 g_free(ld);
91
92 /* update caller */
93 pcnt = (G3DFloat)g3d_stream_tell(stream) /
94 (G3DFloat)g3d_stream_size(stream);
95 if((pcnt - prev_pcnt) > 0.002) {
96 prev_pcnt = pcnt;
97 g3d_context_update_progress_bar(context, pcnt, TRUE);
98 }
99 g3d_context_update_interface(context);
100 }
101
102 g_queue_free(gd->oqueue);
103 if(gd->vertex_palette) {
104 g_free(gd->vertex_palette->offsets);
105 g_free(gd->vertex_palette->flags);
106 g_free(gd->vertex_palette->vertex_data);
107 g_free(gd->vertex_palette->normal_data);
108 g_free(gd->vertex_palette->tex_vertex_data);
109 g_free(gd->vertex_palette->vertex_materials);
110 g_free(gd->vertex_palette);
111 }
112 if(gd->texture_palette) {
113 g_free(gd->texture_palette->offsets);
114 g_free(gd->texture_palette->textures);
115 g_free(gd->texture_palette);
116 }
117 g_free(gd);
118
119 g3d_matrix_identity(rmatrix);
120 g3d_matrix_rotate_xyz(G_PI * -90.0 / 180, 0.0, 0.0, rmatrix);
121 g3d_model_transform(model, rmatrix);
122
123 return TRUE;
124}
125
126EAPI
127gchar *plugin_description(G3DContext *context)
128{
129 return g_strdup("OpenFlight models.");
130}
131
132EAPI
133gchar **plugin_extensions(G3DContext *context)
134{
135 return g_strsplit("flt", ":", 0);
136}
137
138/*
139 * FLT specific
140 */
141
142FltOpcode *flt_opcode_info(guint32 opcode)
143{
144 guint32 i;
145
146 for(i = 0; flt_opcodes[i].opcode != 0; i ++)
147 if(flt_opcodes[i].opcode == opcode)
148 return &(flt_opcodes[i]);
149 return NULL;
150}
151
152guint32 flt_read_typed_index(G3DStream *stream, guint32 type, gint32 *len)
153{
154 guint32 val = 0;
155
156 switch(type) {
157 case 1:
158 val = g3d_stream_read_int8(stream);
159 *len -= 1;
160 break;
161 case 2:
162 val = g3d_stream_read_int16_be(stream);
163 *len -= 2;
164 break;
165 case 4:
166 val = g3d_stream_read_int32_be(stream);
167 *len -= 4;
168 break;
169 default:
170 g_warning("FLT: unknown index type %d\n", type);
171 break;
172 }
173 return val;
174}
175
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt.h
new file mode 100644
index 0000000..0c23cd1
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt.h
@@ -0,0 +1,30 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_FLT_H
23#define _IMP_FLT_H
24
25#include <glib.h>
26#include <g3d/stream.h>
27
28guint32 flt_read_typed_index(G3DStream *stream, guint32 type, gint32 *len);
29
30#endif /* _IMP_FLT_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt_callbacks.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt_callbacks.c
new file mode 100644
index 0000000..44fd8f6
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt_callbacks.c
@@ -0,0 +1,999 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24#include <math.h>
25
26#include <g3d/stream.h>
27#include <g3d/material.h>
28#include <g3d/texture.h>
29#include <g3d/model.h>
30
31#include "imp_flt.h"
32#include "imp_flt_callbacks.h"
33
34/* header */
35gboolean flt_cb_0001(FltGlobalData *gd, FltLocalData *ld)
36{
37 gchar id[8];
38
39 g3d_stream_read(gd->stream, id, 8);
40 id[7] = '\0';
41 ld->nb -= 8;
42 gd->fversion = g3d_stream_read_int32_be(gd->stream);
43 ld->nb -= 4;
44
45 g_debug("FLT: header: '%s' revision %u", id, gd->fversion);
46
47 return TRUE;
48}
49
50/* group */
51gboolean flt_cb_0002(FltGlobalData *gd, FltLocalData *ld)
52{
53 G3DObject *object, *pobj;
54 gchar namebuf[8];
55
56 object = g_new0(G3DObject, 1);
57 pobj = (G3DObject *)g_queue_peek_head(gd->oqueue);
58 if(pobj != NULL)
59 pobj->objects = g_slist_append(pobj->objects, object);
60 else
61 gd->model->objects = g_slist_append(gd->model->objects, object);
62 ld->g3dobj = object;
63
64 /* group ID */
65 g3d_stream_read(gd->stream, namebuf, 8);
66 ld->nb -= 8;
67 namebuf[7] = '\0';
68 object->name = g_strdup_printf("group '%s'", namebuf);
69
70 return TRUE;
71}
72
73/* object */
74gboolean flt_cb_0004(FltGlobalData *gd, FltLocalData *ld)
75{
76 G3DObject *object, *pobj;
77 G3DMaterial *material;
78 gchar namebuf[8];
79
80 object = g_new0(G3DObject, 1);
81 pobj = (G3DObject *)g_queue_peek_head(gd->oqueue);
82 if(pobj != NULL)
83 pobj->objects = g_slist_append(pobj->objects, object);
84 else
85 gd->model->objects = g_slist_append(gd->model->objects, object);
86 ld->g3dobj = object;
87
88 material = g3d_material_new();
89 material->name = g_strdup("fallback material");
90 object->materials = g_slist_append(object->materials, material);
91
92 /* object ID */
93 g3d_stream_read(gd->stream, namebuf, 8);
94 ld->nb -= 8;
95 namebuf[7] = '\0';
96 object->name = g_strdup_printf("object '%s'", namebuf);
97
98 /* flags */
99 g3d_stream_read_int32_be(gd->stream);
100 ld->nb -= 4;
101
102 /* relative priority */
103 g3d_stream_read_int16_be(gd->stream);
104 ld->nb -= 2;
105
106 /* transparency */
107 g3d_stream_read_int16_be(gd->stream);
108 ld->nb -= 2;
109
110 /* special effect ID 1 */
111 g3d_stream_read_int16_be(gd->stream);
112 ld->nb -= 2;
113
114 /* special effect ID 2 */
115 g3d_stream_read_int16_be(gd->stream);
116 ld->nb -= 2;
117
118 /* significance */
119 g3d_stream_read_int16_be(gd->stream);
120 ld->nb -= 2;
121
122 /* reserved */
123 g3d_stream_read_int16_be(gd->stream);
124 ld->nb -= 2;
125
126 return TRUE;
127}
128
129/* face */
130gboolean flt_cb_0005(FltGlobalData *gd, FltLocalData *ld)
131{
132 G3DObject *object = ld->g3dobj;
133 G3DMaterial *material;
134 G3DFace *face;
135 gint16 index;
136 guint32 flags;
137 G3DFloat r, g, b;
138
139 g_return_val_if_fail(object != NULL, FALSE);
140
141 if(object->materials == NULL) {
142 material = g3d_material_new();
143 material->name = g_strdup("(default material)");
144 object->materials = g_slist_append(object->materials, material);
145 }
146
147 face = g_new0(G3DFace, 1);
148 face->material = g_slist_nth_data(object->materials, 0);
149 object->faces = g_slist_append(object->faces, face);
150 ld->level_object = face;
151
152 if(object->vertex_count == 0) {
153 if(gd->vertex_palette) {
154 /* copy vertex palette to object */
155 object->vertex_count = gd->vertex_palette->n_entries;
156 object->vertex_data = g_new0(G3DFloat, object->vertex_count * 3);
157 memcpy(object->vertex_data, gd->vertex_palette->vertex_data,
158 object->vertex_count * 3 * sizeof(G3DFloat));
159 }
160 }
161
162 /* id */
163 g3d_stream_skip(gd->stream, 8);
164 ld->nb -= 8;
165 /* IR color code */
166 g3d_stream_read_int32_be(gd->stream);
167 ld->nb -= 4;
168 /* relative priority */
169 g3d_stream_read_int16_be(gd->stream);
170 ld->nb -= 2;
171 /* draw type */
172 g3d_stream_read_int8(gd->stream);
173 ld->nb --;
174 /* texture white */
175 g3d_stream_read_int8(gd->stream);
176 ld->nb --;
177 /* color name index */
178 g3d_stream_read_int16_be(gd->stream);
179 ld->nb -= 2;
180 /* alternate color name index */
181 g3d_stream_read_int16_be(gd->stream);
182 ld->nb -= 2;
183 /* reserved */
184 g3d_stream_read_int8(gd->stream);
185 ld->nb --;
186 /* template (billboard) */
187 g3d_stream_read_int8(gd->stream);
188 ld->nb --;
189 /* detail texture pattern */
190 index = g3d_stream_read_int16_be(gd->stream);
191 ld->nb -= 2;
192 if(index != -1)
193 if(gd->texture_palette && (index < gd->texture_palette->size))
194 face->tex_image = gd->texture_palette->textures[index];
195 /* texture pattern */
196 index = g3d_stream_read_int16_be(gd->stream);
197 ld->nb -= 2;
198 if((face->tex_image == NULL) && (index != -1))
199 if(gd->texture_palette && (index < gd->texture_palette->size))
200 face->tex_image = gd->texture_palette->textures[index];
201
202 if(face->tex_image)
203 face->tex_image->tex_env = G3D_TEXENV_REPLACE;
204
205 /* material index */
206 index = g3d_stream_read_int16_be(gd->stream);
207 ld->nb -= 2;
208 if(index != -1) {
209 material = g_slist_nth_data(gd->model->materials, index);
210 if(material)
211 face->material = material;
212 }
213 /* surface material code */
214 g3d_stream_read_int16_be(gd->stream);
215 ld->nb -= 2;
216 /* feature ID */
217 g3d_stream_read_int16_be(gd->stream);
218 ld->nb -= 2;
219 /* IR material code */
220 g3d_stream_read_int32_be(gd->stream);
221 ld->nb -= 4;
222 /* transparency */
223 g3d_stream_read_int16_be(gd->stream);
224 ld->nb -= 2;
225 /* LOD generation control */
226 g3d_stream_read_int8(gd->stream);
227 ld->nb --;
228 /* line style index */
229 g3d_stream_read_int8(gd->stream);
230 ld->nb --;
231 /* flags */
232 flags = g3d_stream_read_int32_be(gd->stream);
233 ld->nb -= 4;
234 /* light mode */
235 g3d_stream_read_int8(gd->stream);
236 ld->nb --;
237 /* reserved */
238 g3d_stream_skip(gd->stream, 7);
239 ld->nb -= 7;
240 /* packed color, primary */
241 if((flags & (1 << 1)) /* no color */ ||
242 !(flags & (1 << 3))) /* packed color */
243 g3d_stream_read_int32_be(gd->stream);
244 else {
245 g3d_stream_read_int8(gd->stream); /* alpha, unused */
246 b = (G3DFloat)g3d_stream_read_int8(gd->stream) / 255.0;
247 g = (G3DFloat)g3d_stream_read_int8(gd->stream) / 255.0;
248 r = (G3DFloat)g3d_stream_read_int8(gd->stream) / 255.0;
249 material = g3d_material_new();
250 material->r = r;
251 material->g = g;
252 material->b = b;
253 material->a = 1.0;
254 face->material = material;
255 }
256 ld->nb -= 4;
257 /* packed color, alternate */
258 g3d_stream_read_int32_be(gd->stream);
259 ld->nb -= 4;
260 /* texture mapping index */
261 index = g3d_stream_read_int16_be(gd->stream);
262 ld->nb -= 2;
263
264 return TRUE;
265}
266
267/* push level */
268gboolean flt_cb_0010(FltGlobalData *gd, FltLocalData *ld)
269{
270 g_queue_push_head(gd->oqueue, ld->g3dobj);
271
272 gd->level ++;
273 return TRUE;
274}
275
276/* pop level */
277gboolean flt_cb_0011(FltGlobalData *gd, FltLocalData *ld)
278{
279 ld->g3dobj = g_queue_pop_head(gd->oqueue);
280 ld->level_object = NULL;
281
282 if(gd->level > 0)
283 gd->level --;
284 return TRUE;
285}
286
287/* color palette */
288gboolean flt_cb_0032(FltGlobalData *gd, FltLocalData *ld)
289{
290 G3DMaterial *material;
291 G3DObject *cobj;
292 gint32 i;
293
294 cobj = g_new0(G3DObject, 1);
295 cobj->name = g_strdup("color palette");
296 gd->model->objects = g_slist_append(gd->model->objects, cobj);
297
298 /* skip reserved bytes */
299 g3d_stream_skip(gd->stream, 128);
300 ld->nb -= 128;
301
302 /* get colors */
303 for(i = 0; i < 1024; i ++) {
304 material = g3d_material_new();
305 material->name = g_strdup_printf("color %d", i);
306 cobj->materials = g_slist_append(cobj->materials, material);
307
308 material->a = g3d_stream_read_int8(gd->stream) / 255.0;
309 material->b = g3d_stream_read_int8(gd->stream) / 255.0;
310 material->g = g3d_stream_read_int8(gd->stream) / 255.0;
311 material->r = g3d_stream_read_int8(gd->stream) / 255.0;
312 ld->nb -= 4;
313 }
314
315 return TRUE;
316}
317
318/* long ID */
319gboolean flt_cb_0033(FltGlobalData *gd, FltLocalData *ld)
320{
321 G3DObject *object = ld->g3dobj;
322
323 g_return_val_if_fail(object != NULL, FALSE);
324
325 g_free(object->name);
326 object->name = g_new0(gchar, ld->nb);
327 g3d_stream_read(gd->stream, object->name, ld->nb);
328 object->name[ld->nb - 1] = '\0';
329 ld->nb = 0;
330
331 return TRUE;
332}
333
334/* texture palette */
335gboolean flt_cb_0064(FltGlobalData *gd, FltLocalData *ld)
336{
337 gchar fname[201];
338 gint32 max, index, offx, offy;
339
340 g3d_stream_read(gd->stream, fname, 200);
341 ld->nb -= 200;
342
343 index = g3d_stream_read_int32_be(gd->stream);
344 offx = g3d_stream_read_int32_be(gd->stream);
345 offy = g3d_stream_read_int32_be(gd->stream);
346 ld->nb -= 12;
347
348 if(gd->texture_palette == NULL)
349 gd->texture_palette = g_new0(FltTexturePalette, 1);
350
351 max = MAX(index + 1, gd->texture_palette->size);
352 gd->texture_palette->size = max;
353 gd->texture_palette->offsets = g_realloc(gd->texture_palette->offsets,
354 max * 2 * sizeof(gint32));
355 gd->texture_palette->textures = g_realloc(gd->texture_palette->textures,
356 max * sizeof(G3DImage *));
357 gd->texture_palette->offsets[index * 2 + 0] = offx;
358 gd->texture_palette->offsets[index * 2 + 1] = offy;
359
360#if DEBUG > 2
361 g_debug("FLT: 0064: %s (index %d @ %d, %d)", fname, index, offx, offy);
362#endif
363
364 gd->texture_palette->textures[index] =
365 g3d_texture_load_cached(gd->context, gd->model, fname);
366
367 return TRUE;
368}
369
370static gboolean flt_inc_vertex_palette(FltGlobalData *gd)
371{
372 g_return_val_if_fail(gd->vertex_palette != NULL, FALSE);
373
374 gd->vertex_palette->n_entries ++;
375 gd->vertex_palette->offsets = g_realloc(
376 gd->vertex_palette->offsets,
377 gd->vertex_palette->n_entries * sizeof(goffset));
378 gd->vertex_palette->flags = g_realloc(
379 gd->vertex_palette->flags,
380 gd->vertex_palette->n_entries * sizeof(guint32));
381 gd->vertex_palette->vertex_data = g_realloc(
382 gd->vertex_palette->vertex_data,
383 gd->vertex_palette->n_entries * 3 * sizeof(G3DFloat));
384 gd->vertex_palette->normal_data = g_realloc(
385 gd->vertex_palette->normal_data,
386 gd->vertex_palette->n_entries * 3 * sizeof(G3DFloat));
387 gd->vertex_palette->tex_vertex_data = g_realloc(
388 gd->vertex_palette->tex_vertex_data,
389 gd->vertex_palette->n_entries * 2 * sizeof(G3DFloat));
390 gd->vertex_palette->vertex_materials = g_realloc(
391 gd->vertex_palette->vertex_materials,
392 gd->vertex_palette->n_entries * sizeof(G3DMaterial *));
393 return TRUE;
394}
395
396/* vertex palette */
397gboolean flt_cb_0067(FltGlobalData *gd, FltLocalData *ld)
398{
399 gd->vertex_palette = g_new0(FltVertexPalette, 1);
400 gd->vertex_palette->offset = 8;
401 return TRUE;
402}
403
404static G3DMaterial *flt_material_by_index(FltGlobalData *gd, guint32 i)
405{
406 G3DObject *colobj;
407
408 colobj = g3d_model_get_object_by_name(gd->model, "color palette");
409 if(colobj == NULL)
410 return NULL;
411
412 return g_slist_nth_data(colobj->materials, i);
413}
414
415#define FLOAT_EQUALS(a, b) (fabs((a) - (b)) < 0.001)
416
417static G3DMaterial *flt_find_color(G3DObject *pobj,
418 G3DFloat r, G3DFloat g, G3DFloat b, G3DFloat a)
419{
420 GSList *item;
421 G3DMaterial *material;
422
423 for(item = pobj->materials; item != NULL; item = item->next) {
424 material = item->data;
425 if(FLOAT_EQUALS(material->r, r) && FLOAT_EQUALS(material->g, g) &&
426 FLOAT_EQUALS(material->b, b) && FLOAT_EQUALS(material->a, a))
427 return material;
428 }
429 g_debug("did not find material");
430 return NULL;
431}
432
433static gboolean flt_handle_vertex_color(FltGlobalData *gd, FltLocalData *ld,
434 guint32 flags)
435{
436 G3DObject *vcolobj;
437 G3DMaterial *material;
438 G3DFloat r, g, b, a;
439
440 if(flags & FLT_FLAG_NO_COLOR)
441 return TRUE;
442
443 vcolobj = g3d_model_get_object_by_name(gd->model, "vertex colors");
444 if(vcolobj == NULL) {
445 vcolobj = g_new0(G3DObject, 1);
446 vcolobj->name = g_strdup("vertex colors");
447 gd->model->objects = g_slist_append(gd->model->objects, vcolobj);
448 }
449 a = (G3DFloat)g3d_stream_read_int8(gd->stream) / 255.0;
450 b = (G3DFloat)g3d_stream_read_int8(gd->stream) / 255.0;
451 g = (G3DFloat)g3d_stream_read_int8(gd->stream) / 255.0;
452 r = (G3DFloat)g3d_stream_read_int8(gd->stream) / 255.0;
453 ld->nb -= 4;
454
455 if(flags & FLT_FLAG_PACKED_COLOR) {
456 material = flt_find_color(vcolobj, r, g, b, a);
457 if(material == NULL) {
458 material = g3d_material_new();
459 material->r = r;
460 material->g = g;
461 material->b = b;
462 material->a = a;
463 material->name = g_strdup_printf(
464 "vertex material (%.2f, %.2f, %.2f, %.2f)", r, g, b, a);
465 vcolobj->materials = g_slist_prepend(vcolobj->materials, material);
466 }
467 } else {
468 /* color index */
469 material = flt_material_by_index(gd,
470 g3d_stream_read_int32_be(gd->stream));
471 ld->nb -= 4;
472 }
473 gd->vertex_palette->vertex_materials[gd->vertex_palette->n_entries - 1] =
474 material;
475 return TRUE;
476}
477
478/* vertex with color record */
479gboolean flt_cb_0068(FltGlobalData *gd, FltLocalData *ld)
480{
481 gint32 i, index;
482 guint32 flags;
483
484 if(!flt_inc_vertex_palette(gd))
485 return FALSE;
486
487 index = gd->vertex_palette->n_entries - 1;
488 gd->vertex_palette->offsets[index] = gd->vertex_palette->offset;
489 gd->vertex_palette->offset += ld->nb + 4;
490 gd->vertex_palette->flags[index] = 0;
491
492 /* color name index */
493 gd->vertex_palette->vertex_materials[index] =
494 flt_material_by_index(gd, g3d_stream_read_int16_be(gd->stream));
495 ld->nb -= 2;
496
497 /* flags */
498 flags = g3d_stream_read_int16_be(gd->stream);
499 ld->nb -= 2;
500
501 /* vertex coordinate */
502 for(i = 0; i < 3; i ++) {
503 gd->vertex_palette->vertex_data[index * 3 + i] =
504 g3d_stream_read_double_be(gd->stream);
505 ld->nb -= 8;
506 }
507
508 flt_handle_vertex_color(gd, ld, flags);
509
510 return TRUE;
511}
512
513/* vertex with color and normal record */
514gboolean flt_cb_0069(FltGlobalData *gd, FltLocalData *ld)
515{
516 gint32 i, index;
517 guint32 flags;
518
519 if(!flt_inc_vertex_palette(gd))
520 return FALSE;
521
522 index = gd->vertex_palette->n_entries - 1;
523 gd->vertex_palette->offsets[index] = gd->vertex_palette->offset;
524 gd->vertex_palette->offset += ld->nb + 4;
525 gd->vertex_palette->flags[index] = G3D_FLAG_FAC_NORMALS;
526
527 /* color name index */
528 gd->vertex_palette->vertex_materials[index] =
529 flt_material_by_index(gd, g3d_stream_read_int16_be(gd->stream));
530 ld->nb -= 2;
531
532 /* flags */
533 flags = g3d_stream_read_int16_be(gd->stream);
534 ld->nb -= 2;
535
536 /* vertex coordinate */
537 for(i = 0; i < 3; i ++) {
538 gd->vertex_palette->vertex_data[index * 3 + i] =
539 g3d_stream_read_double_be(gd->stream);
540 ld->nb -= 8;
541 }
542
543 /* vertex normal */
544 for(i = 0; i < 3; i ++) {
545 gd->vertex_palette->normal_data[index * 3 + i] =
546 g3d_stream_read_float_be(gd->stream);
547 ld->nb -= 4;
548 }
549
550 flt_handle_vertex_color(gd, ld, flags);
551
552 return TRUE;
553}
554
555/* vertex with color, normal and uv record */
556gboolean flt_cb_0070(FltGlobalData *gd, FltLocalData *ld)
557{
558 gint32 i, index;
559 guint32 flags;
560
561 if(!flt_inc_vertex_palette(gd))
562 return FALSE;
563
564 index = gd->vertex_palette->n_entries - 1;
565 gd->vertex_palette->offsets[index] = gd->vertex_palette->offset;
566 gd->vertex_palette->offset += ld->nb + 4;
567 gd->vertex_palette->flags[index] =
568 G3D_FLAG_FAC_NORMALS | G3D_FLAG_FAC_TEXMAP;
569
570 /* color name index */
571 gd->vertex_palette->vertex_materials[index] =
572 flt_material_by_index(gd, g3d_stream_read_int16_be(gd->stream));
573 ld->nb -= 2;
574
575 /* flags */
576 flags = g3d_stream_read_int16_be(gd->stream);
577 ld->nb -= 2;
578
579 /* vertex coordinate */
580 for(i = 0; i < 3; i ++) {
581 gd->vertex_palette->vertex_data[index * 3 + i] =
582 g3d_stream_read_double_be(gd->stream);
583 ld->nb -= 8;
584 }
585
586 /* vertex normal */
587 for(i = 0; i < 3; i ++) {
588 gd->vertex_palette->normal_data[index * 3 + i] =
589 g3d_stream_read_float_be(gd->stream);
590 ld->nb -= 4;
591 }
592
593 /* vertex texture coordinate */
594 for(i = 0; i < 2; i ++) {
595 gd->vertex_palette->tex_vertex_data[index * 2 + i] =
596 g3d_stream_read_float_be(gd->stream);
597 ld->nb -= 4;
598 }
599
600 flt_handle_vertex_color(gd, ld, flags);
601
602 return TRUE;
603}
604
605/* vertex with color and uv record */
606gboolean flt_cb_0071(FltGlobalData *gd, FltLocalData *ld)
607{
608 gint32 i, index;
609 guint32 flags;
610
611 if(!flt_inc_vertex_palette(gd))
612 return FALSE;
613
614 index = gd->vertex_palette->n_entries - 1;
615 gd->vertex_palette->offsets[index] = gd->vertex_palette->offset;
616 gd->vertex_palette->offset += ld->nb + 4;
617 gd->vertex_palette->flags[index] = G3D_FLAG_FAC_TEXMAP;
618
619 /* color name index */
620 gd->vertex_palette->vertex_materials[index] =
621 flt_material_by_index(gd, g3d_stream_read_int16_be(gd->stream));
622 ld->nb -= 2;
623
624 /* flags */
625 flags = g3d_stream_read_int16_be(gd->stream);
626 ld->nb -= 2;
627
628 /* vertex coordinate */
629 for(i = 0; i < 3; i ++) {
630 gd->vertex_palette->vertex_data[index * 3 + i] =
631 g3d_stream_read_double_be(gd->stream);
632 ld->nb -= 8;
633 }
634
635 /* vertex texture coordinate */
636 for(i = 0; i < 2; i ++) {
637 gd->vertex_palette->tex_vertex_data[index * 2 + i] =
638 g3d_stream_read_float_be(gd->stream);
639 ld->nb -= 4;
640 }
641
642 flt_handle_vertex_color(gd, ld, flags);
643
644 return TRUE;
645}
646
647static gint32 flt_vertex_palette_index_from_offset(FltGlobalData *gd,
648 goffset offset)
649{
650 FltVertexPalette *pal = gd->vertex_palette;
651 gint i;
652
653 g_return_val_if_fail(pal != NULL, -1);
654
655 for(i = 0; (i < pal->n_entries) && (pal->offsets[i] < offset); i ++);
656 if((i < pal->n_entries) && (pal->offsets[i] == offset))
657 return i;
658 g_warning("FLT: flt_vertex_palette_index_from_offset: "
659 "could not get index for offset %li (i=%d)", (long int)offset, i);
660 return -1;
661}
662
663/* vertex list */
664gboolean flt_cb_0072(FltGlobalData *gd, FltLocalData *ld)
665{
666 G3DFace *face = ld->level_object;
667 gint32 i, j, index;
668 guint32 n;
669
670 g_return_val_if_fail(face != NULL, FALSE);
671
672 n = ld->nb / 4;
673 face->vertex_count = n;
674 face->vertex_indices = g_new0(guint32, n);
675
676 for(i = 0; i < n; i ++) {
677 j = g3d_stream_read_int32_be(gd->stream);
678 ld->nb -= 4;
679
680#define FLT_SUPPORT_BROKEN_VERTEX_LIST 1
681#if FLT_SUPPORT_BROKEN_VERTEX_LIST
682 /* FIXME: there are some broken models which directly specify the
683 * index instead of a byte offset in the vertex palette */
684
685 if(gd->flags & FLT_FLAG_BROKEN_VERTEX_LIST)
686 index = j;
687 else
688 index = flt_vertex_palette_index_from_offset(gd, j);
689 if(index == -1) {
690 index = j;
691 gd->flags |= FLT_FLAG_BROKEN_VERTEX_LIST;
692 }
693#else
694 index = flt_vertex_palette_index_from_offset(gd, j);
695#endif
696 if(index == -1)
697 return FALSE;
698 face->vertex_indices[i] = index;
699 if(gd->vertex_palette->flags[index] & G3D_FLAG_FAC_NORMALS) {
700 /* copy normal data */
701 if(face->normals == NULL) {
702 face->normals = g_new0(G3DFloat, n * 3);
703 face->flags |= G3D_FLAG_FAC_NORMALS;
704 }
705 for(j = 0; j < 3; j ++)
706 face->normals[i * 3 + j] =
707 gd->vertex_palette->normal_data[index * 3 + j];
708 }
709 if(gd->vertex_palette->flags[index] & G3D_FLAG_FAC_TEXMAP) {
710 /* copy texture coordinate data */
711 if(face->tex_vertex_data == NULL) {
712 face->tex_vertex_data = g_new0(G3DFloat, n * 2);
713 face->tex_vertex_count = n;
714 if(face->tex_image)
715 face->flags |= G3D_FLAG_FAC_TEXMAP;
716 }
717 for(j = 0; j < 2; j ++)
718 face->tex_vertex_data[i * 2 + j] =
719 gd->vertex_palette->tex_vertex_data[index * 2 + j];
720 }
721 if(gd->vertex_palette->vertex_materials[index] != NULL)
722 face->material = gd->vertex_palette->vertex_materials[index];
723 }
724 return TRUE;
725}
726
727/* mesh */
728gboolean flt_cb_0084(FltGlobalData *gd, FltLocalData *ld)
729{
730 G3DObject *object;
731 gchar *namebuf[8];
732 gint32 index;
733
734 object = (G3DObject *)g_queue_peek_head(gd->oqueue);
735 g_return_val_if_fail(object != NULL, FALSE);
736
737 /* ASCII ID */
738 g3d_stream_read(gd->stream, namebuf, 8);
739 namebuf[7] = '\0';
740 ld->nb -= 8;
741
742 /* reserved */
743 g3d_stream_read_int32_be(gd->stream);
744 ld->nb -= 4;
745 /* IR color code */
746 g3d_stream_read_int32_be(gd->stream);
747 ld->nb -= 4;
748 /* priority */
749 g3d_stream_read_int16_be(gd->stream);
750 ld->nb -= 2;
751 /* draw type */
752 g3d_stream_read_int8(gd->stream);
753 ld->nb --;
754 /* texture white */
755 g3d_stream_read_int8(gd->stream);
756 ld->nb --;
757 /* color name index */
758 g3d_stream_read_int16_be(gd->stream);
759 ld->nb -= 2;
760 /* alternate color name index */
761 g3d_stream_read_int16_be(gd->stream);
762 ld->nb -= 2;
763 /* reserved */
764 g3d_stream_read_int8(gd->stream);
765 ld->nb --;
766 /* template (billboard) */
767 g3d_stream_read_int8(gd->stream);
768 ld->nb --;
769 /* detail texture pattern */
770 index = g3d_stream_read_int16_be(gd->stream);
771 ld->nb -= 2;
772 if(index > -1)
773 if(gd->texture_palette && (index < gd->texture_palette->size))
774 object->tex_image = gd->texture_palette->textures[index];
775 /* texture pattern */
776 index = g3d_stream_read_int16_be(gd->stream);
777 ld->nb -= 2;
778 if((index > -1) && (object->tex_image == NULL))
779 if(gd->texture_palette && (index < gd->texture_palette->size))
780 object->tex_image = gd->texture_palette->textures[index];
781
782 return TRUE;
783}
784
785/* local vertex pool */
786gboolean flt_cb_0085(FltGlobalData *gd, FltLocalData *ld)
787{
788 G3DObject *object;
789 guint32 nverts, attrmask;
790 gint32 i;
791
792 object = (G3DObject *)g_queue_peek_head(gd->oqueue);
793 g_return_val_if_fail(object != NULL, FALSE);
794
795 nverts = g3d_stream_read_int32_be(gd->stream);
796 attrmask = g3d_stream_read_int32_be(gd->stream);
797 ld->nb -= 8;
798
799 object->vertex_count = nverts;
800 object->vertex_data = g_new0(G3DFloat, nverts * 3);
801 object->tex_vertex_count = nverts;
802 object->tex_vertex_data = g_new0(G3DFloat, nverts * 2);
803
804 for(i = 0; i < nverts; i ++) {
805 if(attrmask & (1 << 31)) { /* has position */
806 object->vertex_data[i * 3 + 0] =
807 g3d_stream_read_double_be(gd->stream);
808 object->vertex_data[i * 3 + 1] =
809 g3d_stream_read_double_be(gd->stream);
810 object->vertex_data[i * 3 + 2] =
811 g3d_stream_read_double_be(gd->stream);
812 ld->nb -= 24;
813 }
814
815 if(attrmask & (1 << 30)) { /* has color index */
816 g3d_stream_read_int32_be(gd->stream);
817 ld->nb -= 4;
818 }
819
820 if(attrmask & (1 << 29)) { /* has RGBA color */
821 g3d_stream_read_int32_be(gd->stream);
822 ld->nb -= 4;
823 }
824
825 if(attrmask & (1 << 28)) { /* has normal */
826 g3d_stream_read_float_be(gd->stream);
827 g3d_stream_read_float_be(gd->stream);
828 g3d_stream_read_float_be(gd->stream);
829 ld->nb -= 12;
830 }
831
832 if(attrmask & (1 << 27)) { /* has base UV */
833 object->tex_vertex_data[i * 2 + 0] =
834 g3d_stream_read_float_be(gd->stream);
835 object->tex_vertex_data[i * 2 + 1] =
836 g3d_stream_read_float_be(gd->stream);
837 ld->nb -= 8;
838 }
839
840 if(attrmask & (1 << 26)) { /* has UV layer 1 */
841 g3d_stream_read_float_be(gd->stream);
842 g3d_stream_read_float_be(gd->stream);
843 ld->nb -= 8;
844 }
845
846 if(attrmask & (1 << 25)) { /* has UV layer 2 */
847 g3d_stream_read_float_be(gd->stream);
848 g3d_stream_read_float_be(gd->stream);
849 ld->nb -= 8;
850 }
851
852 if(attrmask & (1 << 24)) { /* has UV layer 3 */
853 g3d_stream_read_float_be(gd->stream);
854 g3d_stream_read_float_be(gd->stream);
855 ld->nb -= 8;
856 }
857
858 if(attrmask & (1 << 23)) { /* has UV layer 4 */
859 g3d_stream_read_float_be(gd->stream);
860 g3d_stream_read_float_be(gd->stream);
861 ld->nb -= 8;
862 }
863
864 if(attrmask & (1 << 22)) { /* has UV layer 5 */
865 g3d_stream_read_float_be(gd->stream);
866 g3d_stream_read_float_be(gd->stream);
867 ld->nb -= 8;
868 }
869
870 if(attrmask & (1 << 21)) { /* has UV layer 6 */
871 g3d_stream_read_float_be(gd->stream);
872 g3d_stream_read_float_be(gd->stream);
873 ld->nb -= 8;
874 }
875
876 if(attrmask & (1 << 20)) { /* has UV layer 7 */
877 g3d_stream_read_float_be(gd->stream);
878 g3d_stream_read_float_be(gd->stream);
879 ld->nb -= 8;
880 }
881 }
882
883 return TRUE;
884}
885
886/* mesh primitive */
887gboolean flt_cb_0086(FltGlobalData *gd, FltLocalData *ld)
888{
889 guint32 type, isize, nverts;
890 gint32 i;
891 G3DFace *face;
892 G3DObject *object;
893
894 object = (G3DObject *)g_queue_peek_head(gd->oqueue);
895 g_return_val_if_fail(object != NULL, FALSE);
896
897 type = g3d_stream_read_int16_be(gd->stream);
898 isize = g3d_stream_read_int16_be(gd->stream);
899 nverts = g3d_stream_read_int32_be(gd->stream);
900 ld->nb -= 8;
901
902 switch(type) {
903 case 1: /* triangle strip */
904 g_debug("0086: triangle strip");
905 break;
906
907 case 2: /* triangle fan */
908 g_debug("0086: triangle fan");
909 break;
910
911 case 3: /* quadriteral strip */
912 g_debug("0086: quadriteral strip");
913 break;
914
915 case 4: /* indexed polygon */
916 face = g_new0(G3DFace, 1);
917 face->material = (G3DMaterial *)g_slist_nth_data(object->materials,
918 0);
919 face->vertex_count = nverts;
920 face->vertex_indices = g_new0(guint32, nverts);
921 for(i = 0; i < nverts; i ++) {
922 face->vertex_indices[i] = flt_read_typed_index(
923 gd->stream, isize, &(ld->nb));
924 }
925 face->tex_image = object->tex_image;
926 if(face->tex_image != NULL) {
927 face->tex_vertex_count = nverts;
928 face->tex_vertex_data = g_new0(G3DFloat, nverts * 2);
929 for(i = 0; i < nverts; i ++) {
930 face->tex_vertex_data[i * 2 + 0] =
931 object->tex_vertex_data[
932 face->vertex_indices[i] * 2 + 0];
933 face->tex_vertex_data[i * 2 + 1] =
934 object->tex_vertex_data[
935 face->vertex_indices[i] * 2 + 1];
936 }
937 face->flags |= G3D_FLAG_FAC_TEXMAP;
938 }
939 object->faces = g_slist_append(object->faces, face);
940 break;
941
942 default:
943 g_warning("FLT: mesh primitive: unknown type %d\n", type);
944 }
945
946 return TRUE;
947}
948
949/* material palette */
950gboolean flt_cb_0113(FltGlobalData *gd, FltLocalData *ld)
951{
952 G3DMaterial *material;
953 gchar name[13];
954
955 material = g3d_material_new();
956
957 /* material index */
958 g3d_stream_read_int32_be(gd->stream);
959 ld->nb -= 4;
960 /* material name */
961 g3d_stream_read(gd->stream, name, 12);
962 ld->nb -= 12;
963 name[12] = '\0';
964 material->name = g_strdup(name);
965 /* flags */
966 g3d_stream_read_int32_be(gd->stream);
967 ld->nb -= 4;
968 /* ambient */
969 g3d_stream_read_float_be(gd->stream);
970 g3d_stream_read_float_be(gd->stream);
971 g3d_stream_read_float_be(gd->stream);
972 ld->nb -= 12;
973 /* diffuse */
974 material->r = g3d_stream_read_float_be(gd->stream);
975 material->g = g3d_stream_read_float_be(gd->stream);
976 material->b = g3d_stream_read_float_be(gd->stream);
977 ld->nb -= 12;
978 /* specular */
979 material->specular[0] = g3d_stream_read_float_be(gd->stream);
980 material->specular[1] = g3d_stream_read_float_be(gd->stream);
981 material->specular[2] = g3d_stream_read_float_be(gd->stream);
982 ld->nb -= 12;
983 /* emissive */
984 g3d_stream_read_float_be(gd->stream);
985 g3d_stream_read_float_be(gd->stream);
986 g3d_stream_read_float_be(gd->stream);
987 ld->nb -= 12;
988 /* shininess */
989 material->shininess = g3d_stream_read_float_be(gd->stream);
990 ld->nb -= 4;
991 /* alpha */
992 material->a = g3d_stream_read_float_be(gd->stream);
993 ld->nb -= 4;
994
995 gd->model->materials = g_slist_append(gd->model->materials, material);
996
997 return TRUE;
998}
999
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt_callbacks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt_callbacks.h
new file mode 100644
index 0000000..cc26120
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt_callbacks.h
@@ -0,0 +1,95 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_FLT_CALLBACKS_H
23#define _IMP_FLT_CALLBACKS_H
24
25#include <stdio.h>
26#include <glib.h>
27#include <g3d/types.h>
28#include <g3d/stream.h>
29
30typedef struct {
31 guint32 n_entries;
32 goffset offset;
33
34 goffset *offsets; /* n * goffset */
35 guint32 *flags; /* n * guint32 */
36 G3DMaterial **vertex_materials; /* n * G3DMaterial* */
37 G3DFloat *vertex_data; /* 3 x n * G3DFloat */
38 G3DFloat *normal_data; /* 3 x n * G3DFloat */
39 G3DFloat *tex_vertex_data; /* 2 x n * G3DFloat */
40} FltVertexPalette;
41
42typedef struct {
43 guint32 size;
44 G3DImage **textures;
45 gint32 *offsets;
46} FltTexturePalette;
47
48#define FLT_FLAG_BROKEN_VERTEX_LIST (1 << 0)
49
50#define FLT_FLAG_NO_COLOR (1 << 2)
51#define FLT_FLAG_PACKED_COLOR (1 << 3)
52
53typedef struct {
54 G3DContext *context;
55 G3DModel *model;
56 G3DStream *stream;
57 guint32 level;
58 GQueue *oqueue;
59 FltVertexPalette *vertex_palette;
60 FltTexturePalette *texture_palette;
61 guint32 fversion; /* format version */
62 guint32 flags;
63} FltGlobalData;
64
65typedef struct {
66 guint32 opcode;
67 G3DObject *g3dobj;
68 gpointer level_object;
69 gint32 nb;
70} FltLocalData;
71
72typedef gboolean (*FltCallbackFunc)(FltGlobalData *gd, FltLocalData *ld);
73
74/* callback functions */
75gboolean flt_cb_0001(FltGlobalData *gd, FltLocalData *ld);
76gboolean flt_cb_0002(FltGlobalData *gd, FltLocalData *ld);
77gboolean flt_cb_0004(FltGlobalData *gd, FltLocalData *ld);
78gboolean flt_cb_0005(FltGlobalData *gd, FltLocalData *ld);
79gboolean flt_cb_0010(FltGlobalData *gd, FltLocalData *ld);
80gboolean flt_cb_0011(FltGlobalData *gd, FltLocalData *ld);
81gboolean flt_cb_0032(FltGlobalData *gd, FltLocalData *ld);
82gboolean flt_cb_0033(FltGlobalData *gd, FltLocalData *ld);
83gboolean flt_cb_0064(FltGlobalData *gd, FltLocalData *ld);
84gboolean flt_cb_0067(FltGlobalData *gd, FltLocalData *ld);
85gboolean flt_cb_0068(FltGlobalData *gd, FltLocalData *ld);
86gboolean flt_cb_0069(FltGlobalData *gd, FltLocalData *ld);
87gboolean flt_cb_0070(FltGlobalData *gd, FltLocalData *ld);
88gboolean flt_cb_0071(FltGlobalData *gd, FltLocalData *ld);
89gboolean flt_cb_0072(FltGlobalData *gd, FltLocalData *ld);
90gboolean flt_cb_0084(FltGlobalData *gd, FltLocalData *ld);
91gboolean flt_cb_0085(FltGlobalData *gd, FltLocalData *ld);
92gboolean flt_cb_0086(FltGlobalData *gd, FltLocalData *ld);
93gboolean flt_cb_0113(FltGlobalData *gd, FltLocalData *ld);
94
95#endif /* _IMP_FLT_CALLBACKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt_opcodes.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt_opcodes.h
new file mode 100644
index 0000000..8cb02b0
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt_opcodes.h
@@ -0,0 +1,136 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_FLT_OPCODES_H
23#define _IMP_FLT_OPCODES_H
24
25#include <glib.h>
26
27#include "imp_flt_callbacks.h"
28
29typedef struct {
30 guint32 opcode;
31 gchar *description;
32 gboolean container;
33 FltCallbackFunc callback;
34} FltOpcode;
35
36static FltOpcode flt_opcodes[] = {
37 { 1, "header", 0, flt_cb_0001 },
38 { 2, "group", 0, flt_cb_0002 },
39
40 { 4, "object", 0, flt_cb_0004 },
41 { 5, "face", 0, flt_cb_0005 },
42
43 { 10, "push level", 0, flt_cb_0010 },
44 { 11, "pop level", 0, flt_cb_0011 },
45
46 { 14, "degree of freedom", 0, NULL },
47
48 { 19, "push subface", 0, NULL },
49 { 20, "pop subface", 0, NULL },
50 { 21, "push extension", 0, NULL },
51 { 22, "pop extension", 0, NULL },
52 { 23, "continuation", 0, NULL },
53
54 { 31, "comment", 0, NULL },
55 { 32, "color palette", 0, flt_cb_0032 },
56 { 33, "long ID", 0, flt_cb_0033 },
57
58 { 49, "matrix", 0, NULL },
59 { 50, "vector", 0, NULL },
60
61 { 52, "multitexture", 0, NULL },
62 { 53, "UV list", 0, NULL },
63
64 { 55, "binary separating plane", 0, NULL },
65
66 { 60, "replicate", 0, NULL },
67 { 61, "instance reference", 0, NULL },
68 { 62, "instance definition", 0, NULL },
69 { 63, "external reference", 0, NULL },
70 { 64, "texture palette", 0, flt_cb_0064 },
71
72 { 67, "vertex palette", 0, flt_cb_0067 },
73 { 68, "vertex with color", 0, flt_cb_0068 },
74 { 69, "vertex with color and normal", 0, flt_cb_0069 },
75 { 70, "vertex with color, normal and UV", 0, flt_cb_0070 },
76 { 71, "vertex with color and UV", 0, flt_cb_0071 },
77 { 72, "vertex list", 0, flt_cb_0072 },
78 { 73, "level of detail", 0, NULL },
79 { 74, "bounding box", 0, NULL },
80
81 { 76, "rotate about edge", 0, NULL },
82
83 { 78, "translate", 0, NULL },
84 { 79, "scale", 0, NULL },
85 { 80, "rotate about point", 0, NULL },
86 { 81, "rotate and/or scale to point", 0, NULL },
87 { 82, "put", 0, NULL },
88 { 83, "eyepoint and trackplane palette", 0, NULL },
89 { 84, "mesh", 0, flt_cb_0084 },
90 { 85, "local vertex pool", 0, flt_cb_0085 },
91 { 86, "mesh primitive", 0, flt_cb_0086 },
92 { 87, "road segment", 0, NULL },
93 { 88, "road zone", 0, NULL },
94 { 89, "morph vertex list", 0, NULL },
95 { 90, "linkage palette", 0, NULL },
96 { 91, "sound node", 0, NULL },
97 { 92, "road path", 0, NULL },
98 { 93, "sound palette", 0, NULL },
99 { 94, "general matrix", 0, NULL },
100 { 95, "text", 0, NULL },
101 { 96, "switch", 0, NULL },
102 { 97, "line style palette", 0, NULL },
103 { 98, "clip region", 0, NULL },
104
105 { 100, "extension", 0, NULL },
106 { 101, "light source", 0, NULL },
107 { 102, "light source palette", 0, NULL },
108
109 { 105, "bounding sphere", 0, NULL },
110 { 106, "bounding cylinder", 0, NULL },
111 { 107, "bounding convex hull", 0, NULL },
112 { 108, "bounding volume center", 0, NULL },
113 { 109, "bounding volume orientation", 0, NULL },
114
115 { 111, "light point", 0, NULL },
116 { 112, "texture mapping palette", 0, NULL },
117 { 113, "material palette", 0, flt_cb_0113 },
118 { 114, "name table", 0, NULL },
119 { 115, "continuously adaptive terrain (CAT)", 0, NULL },
120 { 116, "CAT data", 0, NULL },
121
122 { 119, "bounding histogram", 0, NULL },
123
124 { 126, "curve", 0, NULL },
125 { 127, "road construction", 0, NULL },
126 { 128, "light point appearance palette", 0, NULL },
127 { 129, "light point animation", 0, NULL },
128 { 130, "indexed light point", 0, NULL },
129
130 { 132, "indexed string", 0, NULL },
131 { 133, "shader", 0, NULL },
132
133 { 0, NULL, 0, NULL }
134};
135
136#endif /* _IMP_FLT_OPCODES_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/Makefile
new file mode 100644
index 0000000..fa6eb57
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/Makefile
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_glb/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_glb
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_glb_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_glb_la_OBJECTS = imp_glb.lo
59imp_glb_la_OBJECTS = $(am_imp_glb_la_OBJECTS)
60DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_glb_la_SOURCES)
73DIST_SOURCES = $(imp_glb_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
78AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
79AR = ar
80AS = as
81AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
82AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
83AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
84AWK = gawk
85CC = gcc
86CCDEPMODE = depmode=gcc3
87CFLAGS = -g -O2
88CPP = gcc -E
89CPPFLAGS =
90CXX = g++
91CXXCPP = g++ -E
92CXXDEPMODE = depmode=gcc3
93CXXFLAGS = -g -O2
94CYGPATH_W = echo
95DBG_CFLAGS = -O2
96DEBUG = 0
97DEFS = -DHAVE_CONFIG_H
98DEPDIR = .deps
99DLLTOOL = dlltool
100ECHO = echo
101ECHO_C =
102ECHO_N = -n
103ECHO_T =
104EGREP = /bin/grep -E
105EXEEXT =
106F77 =
107FFLAGS =
108GDKPIXBUF_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
109GDKPIXBUF_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
110GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
111GLIB_GENMARSHAL = glib-genmarshal
112GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
113GLIB_MKENUMS = glib-mkenums
114GOBJECT_QUERY = gobject-query
115GREP = /bin/grep
116GTKDOC_CHECK = /usr/bin/gtkdoc-check
117GTK_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
118GTK_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
119HTML_DIR = ${datadir}/gtk-doc/html
120INSTALL = /usr/bin/install -c
121INSTALL_DATA = ${INSTALL} -m 644
122INSTALL_PROGRAM = ${INSTALL}
123INSTALL_SCRIPT = ${INSTALL}
124INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
125LDFLAGS =
126LEX = flex
127LEXLIB = -lfl
128LEX_OUTPUT_ROOT = lex.yy
129LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
130LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
131LIBOBJS =
132LIBS = -lm
133LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
134LIBXML2_CFLAGS = -I/usr/include/libxml2
135LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
136LN_S = ln -s
137LTLIBOBJS =
138LTVERSION = 0:8:0
139MAGIC_LIBS = -lmagic
140MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
141MATH_LIBS = -lm
142MKDIR_P = /bin/mkdir -p
143OBJDUMP = objdump
144OBJEXT = o
145PACKAGE = libg3d
146PACKAGE_BUGREPORT =
147PACKAGE_NAME =
148PACKAGE_STRING =
149PACKAGE_TARNAME =
150PACKAGE_VERSION =
151PATH_SEPARATOR = :
152PKG_CONFIG = /usr/bin/pkg-config
153PLUGINS_LDFLAGS = -avoid-version -export-dynamic
154RANLIB = ranlib
155SET_MAKE =
156SHELL = /bin/bash
157STRIP = strip
158VERSION = 0.0.8
159XML2_CONFIG = /usr/bin/xml2-config
160XML_CPPFLAGS = -I/usr/include/libxml2
161XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
162Z_CFLAGS =
163Z_LIBS = -lz
164abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb
165abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb
166abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
167abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168ac_ct_CC = gcc
169ac_ct_CXX = g++
170ac_ct_F77 =
171am__include = include
172am__leading_dot = .
173am__quote =
174am__tar = ${AMTAR} chof - "$$tardir"
175am__untar = ${AMTAR} xf -
176bindir = ${exec_prefix}/bin
177build = x86_64-unknown-linux-gnu
178build_alias =
179build_cpu = x86_64
180build_os = linux-gnu
181build_vendor = unknown
182builddir = .
183datadir = ${datarootdir}
184datarootdir = ${prefix}/share
185docdir = ${datarootdir}/doc/${PACKAGE}
186dvidir = ${docdir}
187exec_prefix = ${prefix}
188host = x86_64-unknown-linux-gnu
189host_alias =
190host_cpu = x86_64
191host_os = linux-gnu
192host_vendor = unknown
193htmldir = ${docdir}
194includedir = ${prefix}/include
195infodir = ${datarootdir}/info
196install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
197libdir = ${exec_prefix}/lib
198libexecdir = ${exec_prefix}/libexec
199localedir = ${datarootdir}/locale
200localstatedir = ${prefix}/var
201mandir = ${datarootdir}/man
202mkdir_p = /bin/mkdir -p
203oldincludedir = /usr/include
204pdfdir = ${docdir}
205prefix = /usr/local
206program_transform_name = s,x,x,
207psdir = ${docdir}
208sbindir = ${exec_prefix}/sbin
209sharedstatedir = ${prefix}/com
210srcdir = .
211sysconfdir = ${prefix}/etc
212target_alias =
213top_builddir = ../../..
214top_srcdir = ../../..
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_glb.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 -O2 -DDEBUG=0 \
221 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 -avoid-version -export-dynamic
227
228imp_glb_la_SOURCES = imp_glb.c
229imp_glb_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_glb/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_glb/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_glb.la: $(imp_glb_la_OBJECTS) $(imp_glb_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_glb_la_OBJECTS) $(imp_glb_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299include ./$(DEPDIR)/imp_glb.Plo
300
301.c.o:
302 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304# source='$<' object='$@' libtool=no \
305# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
306# $(COMPILE) -c $<
307
308.c.obj:
309 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311# source='$<' object='$@' libtool=no \
312# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
313# $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318# source='$<' object='$@' libtool=yes \
319# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
320# $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/Makefile.am
new file mode 100644
index 0000000..15af6d8
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/Makefile.am
@@ -0,0 +1,20 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_glb.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_glb_la_SOURCES = imp_glb.c
20imp_glb_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/Makefile.in
new file mode 100644
index 0000000..377efd7
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/Makefile.in
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_glb
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_glb_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_glb_la_OBJECTS = imp_glb.lo
59imp_glb_la_OBJECTS = $(am_imp_glb_la_OBJECTS)
60DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_glb_la_SOURCES)
73DIST_SOURCES = $(imp_glb_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = @ACLOCAL@
78AMTAR = @AMTAR@
79AR = @AR@
80AS = @AS@
81AUTOCONF = @AUTOCONF@
82AUTOHEADER = @AUTOHEADER@
83AUTOMAKE = @AUTOMAKE@
84AWK = @AWK@
85CC = @CC@
86CCDEPMODE = @CCDEPMODE@
87CFLAGS = @CFLAGS@
88CPP = @CPP@
89CPPFLAGS = @CPPFLAGS@
90CXX = @CXX@
91CXXCPP = @CXXCPP@
92CXXDEPMODE = @CXXDEPMODE@
93CXXFLAGS = @CXXFLAGS@
94CYGPATH_W = @CYGPATH_W@
95DBG_CFLAGS = @DBG_CFLAGS@
96DEBUG = @DEBUG@
97DEFS = @DEFS@
98DEPDIR = @DEPDIR@
99DLLTOOL = @DLLTOOL@
100ECHO = @ECHO@
101ECHO_C = @ECHO_C@
102ECHO_N = @ECHO_N@
103ECHO_T = @ECHO_T@
104EGREP = @EGREP@
105EXEEXT = @EXEEXT@
106F77 = @F77@
107FFLAGS = @FFLAGS@
108GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
109GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
110GLIB_CFLAGS = @GLIB_CFLAGS@
111GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
112GLIB_LIBS = @GLIB_LIBS@
113GLIB_MKENUMS = @GLIB_MKENUMS@
114GOBJECT_QUERY = @GOBJECT_QUERY@
115GREP = @GREP@
116GTKDOC_CHECK = @GTKDOC_CHECK@
117GTK_CFLAGS = @GTK_CFLAGS@
118GTK_LIBS = @GTK_LIBS@
119HTML_DIR = @HTML_DIR@
120INSTALL = @INSTALL@
121INSTALL_DATA = @INSTALL_DATA@
122INSTALL_PROGRAM = @INSTALL_PROGRAM@
123INSTALL_SCRIPT = @INSTALL_SCRIPT@
124INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125LDFLAGS = @LDFLAGS@
126LEX = @LEX@
127LEXLIB = @LEXLIB@
128LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
129LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
130LIBGSF_LIBS = @LIBGSF_LIBS@
131LIBOBJS = @LIBOBJS@
132LIBS = @LIBS@
133LIBTOOL = @LIBTOOL@ --quiet
134LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
135LIBXML2_LIBS = @LIBXML2_LIBS@
136LN_S = @LN_S@
137LTLIBOBJS = @LTLIBOBJS@
138LTVERSION = @LTVERSION@
139MAGIC_LIBS = @MAGIC_LIBS@
140MAKEINFO = @MAKEINFO@
141MATH_LIBS = @MATH_LIBS@
142MKDIR_P = @MKDIR_P@
143OBJDUMP = @OBJDUMP@
144OBJEXT = @OBJEXT@
145PACKAGE = @PACKAGE@
146PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147PACKAGE_NAME = @PACKAGE_NAME@
148PACKAGE_STRING = @PACKAGE_STRING@
149PACKAGE_TARNAME = @PACKAGE_TARNAME@
150PACKAGE_VERSION = @PACKAGE_VERSION@
151PATH_SEPARATOR = @PATH_SEPARATOR@
152PKG_CONFIG = @PKG_CONFIG@
153PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
154RANLIB = @RANLIB@
155SET_MAKE = @SET_MAKE@
156SHELL = @SHELL@
157STRIP = @STRIP@
158VERSION = @VERSION@
159XML2_CONFIG = @XML2_CONFIG@
160XML_CPPFLAGS = @XML_CPPFLAGS@
161XML_LIBS = @XML_LIBS@
162Z_CFLAGS = @Z_CFLAGS@
163Z_LIBS = @Z_LIBS@
164abs_builddir = @abs_builddir@
165abs_srcdir = @abs_srcdir@
166abs_top_builddir = @abs_top_builddir@
167abs_top_srcdir = @abs_top_srcdir@
168ac_ct_CC = @ac_ct_CC@
169ac_ct_CXX = @ac_ct_CXX@
170ac_ct_F77 = @ac_ct_F77@
171am__include = @am__include@
172am__leading_dot = @am__leading_dot@
173am__quote = @am__quote@
174am__tar = @am__tar@
175am__untar = @am__untar@
176bindir = @bindir@
177build = @build@
178build_alias = @build_alias@
179build_cpu = @build_cpu@
180build_os = @build_os@
181build_vendor = @build_vendor@
182builddir = @builddir@
183datadir = @datadir@
184datarootdir = @datarootdir@
185docdir = @docdir@
186dvidir = @dvidir@
187exec_prefix = @exec_prefix@
188host = @host@
189host_alias = @host_alias@
190host_cpu = @host_cpu@
191host_os = @host_os@
192host_vendor = @host_vendor@
193htmldir = @htmldir@
194includedir = @includedir@
195infodir = @infodir@
196install_sh = @install_sh@
197libdir = @libdir@
198libexecdir = @libexecdir@
199localedir = @localedir@
200localstatedir = @localstatedir@
201mandir = @mandir@
202mkdir_p = @mkdir_p@
203oldincludedir = @oldincludedir@
204pdfdir = @pdfdir@
205prefix = @prefix@
206program_transform_name = @program_transform_name@
207psdir = @psdir@
208sbindir = @sbindir@
209sharedstatedir = @sharedstatedir@
210srcdir = @srcdir@
211sysconfdir = @sysconfdir@
212target_alias = @target_alias@
213top_builddir = @top_builddir@
214top_srcdir = @top_srcdir@
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_glb.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
221 @GLIB_CFLAGS@
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 @PLUGINS_LDFLAGS@
227
228imp_glb_la_SOURCES = imp_glb.c
229imp_glb_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_glb/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_glb/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_glb.la: $(imp_glb_la_OBJECTS) $(imp_glb_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_glb_la_OBJECTS) $(imp_glb_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_glb.Plo@am__quote@
300
301.c.o:
302@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
305@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
306@am__fastdepCC_FALSE@ $(COMPILE) -c $<
307
308.c.obj:
309@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
313@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
320@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/imp_glb.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/imp_glb.c
new file mode 100644
index 0000000..d9bea0b
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/imp_glb.c
@@ -0,0 +1,258 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <stdlib.h>
25#include <string.h>
26
27#include <g3d/types.h>
28#include <g3d/stream.h>
29#include <g3d/material.h>
30#include <g3d/texture.h>
31#include <g3d/iff.h>
32#include <g3d/vector.h>
33
34static G3DObject *glb_load_object(G3DContext *context, G3DStream *stream,
35 G3DModel *model);
36
37EAPI
38gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
39 G3DModel *model, gpointer user_data)
40{
41 return (glb_load_object(context, stream, model) != NULL);
42}
43
44EAPI
45gchar *plugin_description(G3DContext *context)
46{
47 return g_strdup("UltimateStunts models.");
48}
49
50EAPI
51gchar **plugin_extensions(G3DContext *context)
52{
53 return g_strsplit("glb", ":", 0);
54}
55
56/*****************************************************************************/
57/* GLB specific */
58
59static G3DFloat glb_get_float(G3DStream *stream)
60{
61 return 0.001 * (
62 (float)((guint32)g3d_stream_read_int32_be(stream)) - (float)(0x7FFFFFFF));
63}
64
65static G3DObject *glb_load_object(G3DContext *context, G3DStream *stream,
66 G3DModel *model)
67{
68 G3DObject *pobject, *object;
69 G3DMaterial *material;
70 G3DFace *face;
71 guint32 magic, otype, index;
72 gint32 i, j, msize, namelen, datalen, nvertices, nindices;
73 gchar *name;
74 G3DFloat *normals = NULL, *texcoords = NULL;
75
76 magic = g3d_stream_read_int32_be(stream);
77 if(magic != G3D_IFF_MKID('\0', 'G', 'L', 'B')) {
78 g_warning("%s is not a correct GLB file (wrong magic)\n",
79 stream->uri);
80 return NULL;
81 }
82
83 pobject = g_new0(G3DObject, 1);
84 pobject->name = g_strdup(stream->uri);
85 model->objects = g_slist_append(model->objects, pobject);
86
87 while(!g3d_stream_eof(stream)) {
88 otype = g3d_stream_read_int32_be(stream);
89 namelen = g3d_stream_read_int32_be(stream);
90
91 if(namelen == 0)
92 break;
93
94 name = g_new0(gchar, namelen + 1);
95 g3d_stream_read(stream, name, namelen);
96#if DEBUG > 0
97 printf("GLB: object named '%s'\n", name);
98#endif
99
100 object = g_new0(G3DObject, 1);
101 object->name = g_strdup(name);
102 g_free(name);
103 pobject->objects = g_slist_append(pobject->objects, object);
104
105 /* hide collision planes by default */
106 if(strncmp(object->name, "Collision plane", 15) == 0)
107 object->hide = TRUE;
108
109 datalen = g3d_stream_read_int32_be(stream);
110
111 if(otype != 0) {
112 /* skip */
113 g3d_stream_skip(stream, datalen);
114 continue;
115 }
116
117 /* object type 0 */
118 msize = g3d_stream_read_int32_be(stream);
119 nvertices = g3d_stream_read_int32_be(stream);
120 nindices = g3d_stream_read_int32_be(stream);
121
122#if DEBUG > 0
123 printf("GLB: material size: %d bytes, %d vertices, %d indices\n",
124 msize, nvertices, nindices);
125#endif
126 if(msize > 0) {
127 /* material */
128 material = g3d_material_new();
129 material->name = g_strdup("default material");
130 object->materials = g_slist_append(object->materials, material);
131
132 material->r = (G3DFloat)g3d_stream_read_int8(stream) / 255.0;
133 material->g = (G3DFloat)g3d_stream_read_int8(stream) / 255.0;
134 material->b = (G3DFloat)g3d_stream_read_int8(stream) / 255.0;
135 material->a = (G3DFloat)g3d_stream_read_int8(stream) / 255.0;
136
137 if(material->a == 0.0)
138 material->a = 1.0;
139
140 /* replacement color */
141 g3d_stream_read_int8(stream);
142 g3d_stream_read_int8(stream);
143 g3d_stream_read_int8(stream);
144 g3d_stream_read_int8(stream); /* unused */
145
146 g3d_stream_read_int8(stream); /* LODs */
147 g3d_stream_read_int8(stream); /* reflectance */
148 /* emissivity */
149 material->shininess = (G3DFloat)g3d_stream_read_int8(stream) / 255.0;
150 g3d_stream_read_int8(stream); /* static friction */
151 g3d_stream_read_int8(stream); /* dynamic friction */
152 g3d_stream_read_int8(stream); /* unused */
153 g3d_stream_read_int8(stream); /* unused */
154 g3d_stream_read_int8(stream); /* unused */
155
156 /* texture name */
157 namelen = msize - 16;
158 if(namelen > 0) {
159 name = g_new0(gchar, namelen + 1);
160 g3d_stream_read(stream, name, namelen);
161#if DEBUG > 1
162 printf("GLB: texture name: %s\n", name);
163#endif
164
165 /* texture name is something like "0", the real name is in
166 * "../$carname.conf"; try to load default texture */
167 if(name[0] == '0') {
168 if(g_file_test("textures.jpg", G_FILE_TEST_EXISTS)) {
169 material->tex_image = g3d_texture_load_cached(
170 context, model, "textures.jpg");
171 if(material->tex_image != NULL)
172 material->tex_image->tex_id = 1;
173 }
174 }
175
176 g_free(name);
177 }
178 }
179
180 /* vertices */
181 if(nvertices > 0) {
182 object->vertex_count = nvertices;
183 object->vertex_data = g_new0(G3DFloat, nvertices * 3);
184 normals = g_new0(G3DFloat, nvertices * 3);
185 texcoords = g_new0(G3DFloat, nvertices * 2);
186
187 for(i = 0; i < nvertices; i ++) {
188 object->vertex_data[i * 3 + 0] = glb_get_float(stream);
189 object->vertex_data[i * 3 + 1] = glb_get_float(stream);
190 object->vertex_data[i * 3 + 2] = glb_get_float(stream);
191
192#if DEBUG > 3
193 printf("D: %f, %f, %f\n",
194 object->vertex_data[i * 3 + 0],
195 object->vertex_data[i * 3 + 1],
196 object->vertex_data[i * 3 + 2]);
197#endif
198
199 /* normal */
200 normals[i * 3 + 0] = glb_get_float(stream);
201 normals[i * 3 + 1] = glb_get_float(stream);
202 normals[i * 3 + 2] = glb_get_float(stream);
203 g3d_vector_unify(
204 normals + i * 3 + 0,
205 normals + i * 3 + 1,
206 normals + i * 3 + 2);
207
208 /* texture coordinates */
209 texcoords[i * 2 + 0] = glb_get_float(stream) / 64;
210 texcoords[i * 2 + 1] = 1.0 - glb_get_float(stream) / 64;
211 }
212 }
213
214 if(nindices > 0) {
215 for(i = 0; i < nindices; i += 3) {
216 face = g_new0(G3DFace, 1);
217 face->vertex_count = 3;
218 face->vertex_indices = g_new0(guint32, 3);
219 face->normals = g_new0(G3DFloat, 3 * 3);
220 face->flags |= G3D_FLAG_FAC_NORMALS;
221 for(j = 0; j < 3; j ++) {
222 face->vertex_indices[j] = g3d_stream_read_int32_be(stream);
223
224 /* set normals */
225 index = face->vertex_indices[j];
226 face->normals[j * 3 + 0] = normals[index * 3 + 0];
227 face->normals[j * 3 + 1] = normals[index * 3 + 1];
228 face->normals[j * 3 + 2] = normals[index * 3 + 2];
229 }
230 face->material = g_slist_nth_data(object->materials, 0);
231
232 if(face->material->tex_image != NULL) {
233 face->tex_vertex_count = 3;
234 face->tex_vertex_data = g_new0(G3DFloat, 3 * 2);
235 face->tex_image = face->material->tex_image;
236 for(j = 0; j < 3; j ++) {
237 index = face->vertex_indices[j];
238
239 face->tex_vertex_data[j * 2 + 0] =
240 texcoords[index * 2 + 0];
241 face->tex_vertex_data[j * 2 + 1] =
242 texcoords[index * 2 + 1];
243 face->flags |= G3D_FLAG_FAC_TEXMAP;
244 }
245 }
246
247 object->faces = g_slist_append(object->faces, face);
248 }
249 }
250
251 if(normals != NULL)
252 g_free(normals);
253 if(texcoords != NULL)
254 g_free(texcoords);
255 }
256
257 return pobject;
258}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/Makefile
new file mode 100644
index 0000000..f7be1ca
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/Makefile
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_heightfield/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_heightfield
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_heightfield_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_heightfield_la_OBJECTS = imp_heightfield.lo
59imp_heightfield_la_OBJECTS = $(am_imp_heightfield_la_OBJECTS)
60DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_heightfield_la_SOURCES)
73DIST_SOURCES = $(imp_heightfield_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
78AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
79AR = ar
80AS = as
81AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
82AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
83AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
84AWK = gawk
85CC = gcc
86CCDEPMODE = depmode=gcc3
87CFLAGS = -g -O2
88CPP = gcc -E
89CPPFLAGS =
90CXX = g++
91CXXCPP = g++ -E
92CXXDEPMODE = depmode=gcc3
93CXXFLAGS = -g -O2
94CYGPATH_W = echo
95DBG_CFLAGS = -O2
96DEBUG = 0
97DEFS = -DHAVE_CONFIG_H
98DEPDIR = .deps
99DLLTOOL = dlltool
100ECHO = echo
101ECHO_C =
102ECHO_N = -n
103ECHO_T =
104EGREP = /bin/grep -E
105EXEEXT =
106F77 =
107FFLAGS =
108GDKPIXBUF_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
109GDKPIXBUF_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
110GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
111GLIB_GENMARSHAL = glib-genmarshal
112GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
113GLIB_MKENUMS = glib-mkenums
114GOBJECT_QUERY = gobject-query
115GREP = /bin/grep
116GTKDOC_CHECK = /usr/bin/gtkdoc-check
117GTK_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
118GTK_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
119HTML_DIR = ${datadir}/gtk-doc/html
120INSTALL = /usr/bin/install -c
121INSTALL_DATA = ${INSTALL} -m 644
122INSTALL_PROGRAM = ${INSTALL}
123INSTALL_SCRIPT = ${INSTALL}
124INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
125LDFLAGS =
126LEX = flex
127LEXLIB = -lfl
128LEX_OUTPUT_ROOT = lex.yy
129LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
130LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
131LIBOBJS =
132LIBS = -lm
133LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
134LIBXML2_CFLAGS = -I/usr/include/libxml2
135LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
136LN_S = ln -s
137LTLIBOBJS =
138LTVERSION = 0:8:0
139MAGIC_LIBS = -lmagic
140MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
141MATH_LIBS = -lm
142MKDIR_P = /bin/mkdir -p
143OBJDUMP = objdump
144OBJEXT = o
145PACKAGE = libg3d
146PACKAGE_BUGREPORT =
147PACKAGE_NAME =
148PACKAGE_STRING =
149PACKAGE_TARNAME =
150PACKAGE_VERSION =
151PATH_SEPARATOR = :
152PKG_CONFIG = /usr/bin/pkg-config
153PLUGINS_LDFLAGS = -avoid-version -export-dynamic
154RANLIB = ranlib
155SET_MAKE =
156SHELL = /bin/bash
157STRIP = strip
158VERSION = 0.0.8
159XML2_CONFIG = /usr/bin/xml2-config
160XML_CPPFLAGS = -I/usr/include/libxml2
161XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
162Z_CFLAGS =
163Z_LIBS = -lz
164abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield
165abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield
166abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
167abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168ac_ct_CC = gcc
169ac_ct_CXX = g++
170ac_ct_F77 =
171am__include = include
172am__leading_dot = .
173am__quote =
174am__tar = ${AMTAR} chof - "$$tardir"
175am__untar = ${AMTAR} xf -
176bindir = ${exec_prefix}/bin
177build = x86_64-unknown-linux-gnu
178build_alias =
179build_cpu = x86_64
180build_os = linux-gnu
181build_vendor = unknown
182builddir = .
183datadir = ${datarootdir}
184datarootdir = ${prefix}/share
185docdir = ${datarootdir}/doc/${PACKAGE}
186dvidir = ${docdir}
187exec_prefix = ${prefix}
188host = x86_64-unknown-linux-gnu
189host_alias =
190host_cpu = x86_64
191host_os = linux-gnu
192host_vendor = unknown
193htmldir = ${docdir}
194includedir = ${prefix}/include
195infodir = ${datarootdir}/info
196install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
197libdir = ${exec_prefix}/lib
198libexecdir = ${exec_prefix}/libexec
199localedir = ${datarootdir}/locale
200localstatedir = ${prefix}/var
201mandir = ${datarootdir}/man
202mkdir_p = /bin/mkdir -p
203oldincludedir = /usr/include
204pdfdir = ${docdir}
205prefix = /usr/local
206program_transform_name = s,x,x,
207psdir = ${docdir}
208sbindir = ${exec_prefix}/sbin
209sharedstatedir = ${prefix}/com
210srcdir = .
211sysconfdir = ${prefix}/etc
212target_alias =
213top_builddir = ../../..
214top_srcdir = ../../..
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_heightfield.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 -O2 -DDEBUG=0 \
221 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 -avoid-version -export-dynamic
227
228imp_heightfield_la_SOURCES = imp_heightfield.c
229imp_heightfield_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_heightfield/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_heightfield/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_heightfield.la: $(imp_heightfield_la_OBJECTS) $(imp_heightfield_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_heightfield_la_OBJECTS) $(imp_heightfield_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299include ./$(DEPDIR)/imp_heightfield.Plo
300
301.c.o:
302 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304# source='$<' object='$@' libtool=no \
305# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
306# $(COMPILE) -c $<
307
308.c.obj:
309 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311# source='$<' object='$@' libtool=no \
312# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
313# $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318# source='$<' object='$@' libtool=yes \
319# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
320# $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/Makefile.am
new file mode 100644
index 0000000..1830aae
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/Makefile.am
@@ -0,0 +1,20 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_heightfield.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_heightfield_la_SOURCES = imp_heightfield.c
20imp_heightfield_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/Makefile.in
new file mode 100644
index 0000000..c64114d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/Makefile.in
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_heightfield
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_heightfield_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_heightfield_la_OBJECTS = imp_heightfield.lo
59imp_heightfield_la_OBJECTS = $(am_imp_heightfield_la_OBJECTS)
60DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_heightfield_la_SOURCES)
73DIST_SOURCES = $(imp_heightfield_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = @ACLOCAL@
78AMTAR = @AMTAR@
79AR = @AR@
80AS = @AS@
81AUTOCONF = @AUTOCONF@
82AUTOHEADER = @AUTOHEADER@
83AUTOMAKE = @AUTOMAKE@
84AWK = @AWK@
85CC = @CC@
86CCDEPMODE = @CCDEPMODE@
87CFLAGS = @CFLAGS@
88CPP = @CPP@
89CPPFLAGS = @CPPFLAGS@
90CXX = @CXX@
91CXXCPP = @CXXCPP@
92CXXDEPMODE = @CXXDEPMODE@
93CXXFLAGS = @CXXFLAGS@
94CYGPATH_W = @CYGPATH_W@
95DBG_CFLAGS = @DBG_CFLAGS@
96DEBUG = @DEBUG@
97DEFS = @DEFS@
98DEPDIR = @DEPDIR@
99DLLTOOL = @DLLTOOL@
100ECHO = @ECHO@
101ECHO_C = @ECHO_C@
102ECHO_N = @ECHO_N@
103ECHO_T = @ECHO_T@
104EGREP = @EGREP@
105EXEEXT = @EXEEXT@
106F77 = @F77@
107FFLAGS = @FFLAGS@
108GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
109GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
110GLIB_CFLAGS = @GLIB_CFLAGS@
111GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
112GLIB_LIBS = @GLIB_LIBS@
113GLIB_MKENUMS = @GLIB_MKENUMS@
114GOBJECT_QUERY = @GOBJECT_QUERY@
115GREP = @GREP@
116GTKDOC_CHECK = @GTKDOC_CHECK@
117GTK_CFLAGS = @GTK_CFLAGS@
118GTK_LIBS = @GTK_LIBS@
119HTML_DIR = @HTML_DIR@
120INSTALL = @INSTALL@
121INSTALL_DATA = @INSTALL_DATA@
122INSTALL_PROGRAM = @INSTALL_PROGRAM@
123INSTALL_SCRIPT = @INSTALL_SCRIPT@
124INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125LDFLAGS = @LDFLAGS@
126LEX = @LEX@
127LEXLIB = @LEXLIB@
128LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
129LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
130LIBGSF_LIBS = @LIBGSF_LIBS@
131LIBOBJS = @LIBOBJS@
132LIBS = @LIBS@
133LIBTOOL = @LIBTOOL@ --quiet
134LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
135LIBXML2_LIBS = @LIBXML2_LIBS@
136LN_S = @LN_S@
137LTLIBOBJS = @LTLIBOBJS@
138LTVERSION = @LTVERSION@
139MAGIC_LIBS = @MAGIC_LIBS@
140MAKEINFO = @MAKEINFO@
141MATH_LIBS = @MATH_LIBS@
142MKDIR_P = @MKDIR_P@
143OBJDUMP = @OBJDUMP@
144OBJEXT = @OBJEXT@
145PACKAGE = @PACKAGE@
146PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147PACKAGE_NAME = @PACKAGE_NAME@
148PACKAGE_STRING = @PACKAGE_STRING@
149PACKAGE_TARNAME = @PACKAGE_TARNAME@
150PACKAGE_VERSION = @PACKAGE_VERSION@
151PATH_SEPARATOR = @PATH_SEPARATOR@
152PKG_CONFIG = @PKG_CONFIG@
153PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
154RANLIB = @RANLIB@
155SET_MAKE = @SET_MAKE@
156SHELL = @SHELL@
157STRIP = @STRIP@
158VERSION = @VERSION@
159XML2_CONFIG = @XML2_CONFIG@
160XML_CPPFLAGS = @XML_CPPFLAGS@
161XML_LIBS = @XML_LIBS@
162Z_CFLAGS = @Z_CFLAGS@
163Z_LIBS = @Z_LIBS@
164abs_builddir = @abs_builddir@
165abs_srcdir = @abs_srcdir@
166abs_top_builddir = @abs_top_builddir@
167abs_top_srcdir = @abs_top_srcdir@
168ac_ct_CC = @ac_ct_CC@
169ac_ct_CXX = @ac_ct_CXX@
170ac_ct_F77 = @ac_ct_F77@
171am__include = @am__include@
172am__leading_dot = @am__leading_dot@
173am__quote = @am__quote@
174am__tar = @am__tar@
175am__untar = @am__untar@
176bindir = @bindir@
177build = @build@
178build_alias = @build_alias@
179build_cpu = @build_cpu@
180build_os = @build_os@
181build_vendor = @build_vendor@
182builddir = @builddir@
183datadir = @datadir@
184datarootdir = @datarootdir@
185docdir = @docdir@
186dvidir = @dvidir@
187exec_prefix = @exec_prefix@
188host = @host@
189host_alias = @host_alias@
190host_cpu = @host_cpu@
191host_os = @host_os@
192host_vendor = @host_vendor@
193htmldir = @htmldir@
194includedir = @includedir@
195infodir = @infodir@
196install_sh = @install_sh@
197libdir = @libdir@
198libexecdir = @libexecdir@
199localedir = @localedir@
200localstatedir = @localstatedir@
201mandir = @mandir@
202mkdir_p = @mkdir_p@
203oldincludedir = @oldincludedir@
204pdfdir = @pdfdir@
205prefix = @prefix@
206program_transform_name = @program_transform_name@
207psdir = @psdir@
208sbindir = @sbindir@
209sharedstatedir = @sharedstatedir@
210srcdir = @srcdir@
211sysconfdir = @sysconfdir@
212target_alias = @target_alias@
213top_builddir = @top_builddir@
214top_srcdir = @top_srcdir@
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_heightfield.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
221 @GLIB_CFLAGS@
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 @PLUGINS_LDFLAGS@
227
228imp_heightfield_la_SOURCES = imp_heightfield.c
229imp_heightfield_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_heightfield/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_heightfield/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_heightfield.la: $(imp_heightfield_la_OBJECTS) $(imp_heightfield_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_heightfield_la_OBJECTS) $(imp_heightfield_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_heightfield.Plo@am__quote@
300
301.c.o:
302@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
305@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
306@am__fastdepCC_FALSE@ $(COMPILE) -c $<
307
308.c.obj:
309@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
313@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
320@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/imp_heightfield.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/imp_heightfield.c
new file mode 100644
index 0000000..a8251a1
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/imp_heightfield.c
@@ -0,0 +1,115 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdlib.h>
24#include <string.h>
25
26#include <g3d/types.h>
27#include <g3d/context.h>
28#include <g3d/plugins.h>
29#include <g3d/material.h>
30#include <g3d/primitive.h>
31
32EAPI
33gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
34 G3DModel *model, gpointer user_data)
35{
36 G3DImage *image = g_new0(G3DImage, 1);
37 G3DObject *object;
38 G3DMaterial *material;
39 guint32 x, y, index;
40 G3DFloat pcnt, prev_pcnt = 0.0;
41
42 if(!g3d_plugins_load_image_from_stream(context, stream, image)) {
43 g_free(image);
44 return FALSE;
45 }
46
47 material = g3d_material_new();
48 material->name = g_strdup("default material");
49 material->r = 0.4;
50 material->g = 0.4;
51 material->b = 0.4;
52 material->a = 1.0;
53 model->materials = g_slist_append(model->materials, material);
54
55 object = g3d_primitive_mesh(image->width, image->height, FALSE, FALSE,
56 material);
57 object->name = g_strdup("height field");
58 model->objects = g_slist_append(model->objects, object);
59
60#if DEBUG > 0
61 g_debug("height field loader: image: %dx%dx%d",
62 image->width, image->height, image->depth);
63#endif
64
65 for(y = 0; y < image->height; y ++) {
66 for(x = 0; x < image->width; x ++) {
67 index = y * image->width + x;
68
69 object->vertex_data[index * 3 + 0] = x;
70 object->vertex_data[index * 3 + 1] = y;
71 switch(image->depth) {
72 case 8:
73 object->vertex_data[index * 3 + 2] = 0.0 +
74 (G3DFloat)image->pixeldata[index] / 32.0;
75 break;
76 case 15:
77 case 16:
78 object->vertex_data[index*3+2] = 0.0 +
79 *((guint16*)&image->pixeldata[index]);
80 break;
81 case 24:
82 case 32:
83 object->vertex_data[index * 3 + 2] = 0.0 +
84 image->pixeldata[index * 4] / 32.0;
85 break;
86 default:
87 break;
88 }
89
90 pcnt = (G3DFloat)(y * image->width + x) /
91 (G3DFloat)(image->width * image->height);
92 if((pcnt - prev_pcnt) > 0.01) {
93 prev_pcnt = pcnt;
94 g3d_context_update_progress_bar(context, pcnt, TRUE);
95 }
96 g3d_context_update_interface(context);
97 } /* for(x) */
98 } /* for(y) */
99
100 return TRUE;
101}
102
103EAPI
104gchar *plugin_description(G3DContext *context)
105{
106 return g_strdup("Generate height fields from images.\n"
107 "Author: Markus Dahms");
108}
109
110EAPI
111gchar **plugin_extensions(G3DContext *context)
112{
113 return g3d_plugins_get_image_extensions(context);
114}
115
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile
new file mode 100644
index 0000000..469df7b
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile
@@ -0,0 +1,512 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_iob/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_iob
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_iob_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_iob_la_OBJECTS = imp_iob.lo imp_iob_callbacks.lo
59imp_iob_la_OBJECTS = $(am_imp_iob_la_OBJECTS)
60DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_iob_la_SOURCES)
73DIST_SOURCES = $(imp_iob_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
78AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
79AR = ar
80AS = as
81AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
82AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
83AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
84AWK = gawk
85CC = gcc
86CCDEPMODE = depmode=gcc3
87CFLAGS = -g -O2
88CPP = gcc -E
89CPPFLAGS =
90CXX = g++
91CXXCPP = g++ -E
92CXXDEPMODE = depmode=gcc3
93CXXFLAGS = -g -O2
94CYGPATH_W = echo
95DBG_CFLAGS = -O2
96DEBUG = 0
97DEFS = -DHAVE_CONFIG_H
98DEPDIR = .deps
99DLLTOOL = dlltool
100ECHO = echo
101ECHO_C =
102ECHO_N = -n
103ECHO_T =
104EGREP = /bin/grep -E
105EXEEXT =
106F77 =
107FFLAGS =
108GDKPIXBUF_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
109GDKPIXBUF_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
110GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
111GLIB_GENMARSHAL = glib-genmarshal
112GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
113GLIB_MKENUMS = glib-mkenums
114GOBJECT_QUERY = gobject-query
115GREP = /bin/grep
116GTKDOC_CHECK = /usr/bin/gtkdoc-check
117GTK_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
118GTK_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
119HTML_DIR = ${datadir}/gtk-doc/html
120INSTALL = /usr/bin/install -c
121INSTALL_DATA = ${INSTALL} -m 644
122INSTALL_PROGRAM = ${INSTALL}
123INSTALL_SCRIPT = ${INSTALL}
124INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
125LDFLAGS =
126LEX = flex
127LEXLIB = -lfl
128LEX_OUTPUT_ROOT = lex.yy
129LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
130LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
131LIBOBJS =
132LIBS = -lm
133LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
134LIBXML2_CFLAGS = -I/usr/include/libxml2
135LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
136LN_S = ln -s
137LTLIBOBJS =
138LTVERSION = 0:8:0
139MAGIC_LIBS = -lmagic
140MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
141MATH_LIBS = -lm
142MKDIR_P = /bin/mkdir -p
143OBJDUMP = objdump
144OBJEXT = o
145PACKAGE = libg3d
146PACKAGE_BUGREPORT =
147PACKAGE_NAME =
148PACKAGE_STRING =
149PACKAGE_TARNAME =
150PACKAGE_VERSION =
151PATH_SEPARATOR = :
152PKG_CONFIG = /usr/bin/pkg-config
153PLUGINS_LDFLAGS = -avoid-version -export-dynamic
154RANLIB = ranlib
155SET_MAKE =
156SHELL = /bin/bash
157STRIP = strip
158VERSION = 0.0.8
159XML2_CONFIG = /usr/bin/xml2-config
160XML_CPPFLAGS = -I/usr/include/libxml2
161XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
162Z_CFLAGS =
163Z_LIBS = -lz
164abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob
165abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob
166abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
167abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168ac_ct_CC = gcc
169ac_ct_CXX = g++
170ac_ct_F77 =
171am__include = include
172am__leading_dot = .
173am__quote =
174am__tar = ${AMTAR} chof - "$$tardir"
175am__untar = ${AMTAR} xf -
176bindir = ${exec_prefix}/bin
177build = x86_64-unknown-linux-gnu
178build_alias =
179build_cpu = x86_64
180build_os = linux-gnu
181build_vendor = unknown
182builddir = .
183datadir = ${datarootdir}
184datarootdir = ${prefix}/share
185docdir = ${datarootdir}/doc/${PACKAGE}
186dvidir = ${docdir}
187exec_prefix = ${prefix}
188host = x86_64-unknown-linux-gnu
189host_alias =
190host_cpu = x86_64
191host_os = linux-gnu
192host_vendor = unknown
193htmldir = ${docdir}
194includedir = ${prefix}/include
195infodir = ${datarootdir}/info
196install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
197libdir = ${exec_prefix}/lib
198libexecdir = ${exec_prefix}/libexec
199localedir = ${datarootdir}/locale
200localstatedir = ${prefix}/var
201mandir = ${datarootdir}/man
202mkdir_p = /bin/mkdir -p
203oldincludedir = /usr/include
204pdfdir = ${docdir}
205prefix = /usr/local
206program_transform_name = s,x,x,
207psdir = ${docdir}
208sbindir = ${exec_prefix}/sbin
209sharedstatedir = ${prefix}/com
210srcdir = .
211sysconfdir = ${prefix}/etc
212target_alias =
213top_builddir = ../../..
214top_srcdir = ../../..
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_iob.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 -O2 -DDEBUG=0 \
221 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 -avoid-version -export-dynamic
227
228imp_iob_la_SOURCES = imp_iob.c imp_iob.h imp_iob_chunks.h \
229 imp_iob_callbacks.c imp_iob_callbacks.h
230
231imp_iob_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
232all: all-am
233
234.SUFFIXES:
235.SUFFIXES: .c .lo .o .obj
236$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
237 @for dep in $?; do \
238 case '$(am__configure_deps)' in \
239 *$$dep*) \
240 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
241 && exit 0; \
242 exit 1;; \
243 esac; \
244 done; \
245 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_iob/Makefile'; \
246 cd $(top_srcdir) && \
247 $(AUTOMAKE) --gnu plugins/import/imp_iob/Makefile
248.PRECIOUS: Makefile
249Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
250 @case '$?' in \
251 *config.status*) \
252 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
253 *) \
254 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
255 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
256 esac;
257
258$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
259 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
260
261$(top_srcdir)/configure: $(am__configure_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263$(ACLOCAL_M4): $(am__aclocal_m4_deps)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
266 @$(NORMAL_INSTALL)
267 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
268 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
269 if test -f $$p; then \
270 f=$(am__strip_dir) \
271 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
272 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
273 else :; fi; \
274 done
275
276uninstall-pluginimpLTLIBRARIES:
277 @$(NORMAL_UNINSTALL)
278 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
279 p=$(am__strip_dir) \
280 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
281 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
282 done
283
284clean-pluginimpLTLIBRARIES:
285 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
288 test "$$dir" != "$$p" || dir=.; \
289 echo "rm -f \"$${dir}/so_locations\""; \
290 rm -f "$${dir}/so_locations"; \
291 done
292imp_iob.la: $(imp_iob_la_OBJECTS) $(imp_iob_la_DEPENDENCIES)
293 $(LINK) -rpath $(pluginimpdir) $(imp_iob_la_OBJECTS) $(imp_iob_la_LIBADD) $(LIBS)
294
295mostlyclean-compile:
296 -rm -f *.$(OBJEXT)
297
298distclean-compile:
299 -rm -f *.tab.c
300
301include ./$(DEPDIR)/imp_iob.Plo
302include ./$(DEPDIR)/imp_iob_callbacks.Plo
303
304.c.o:
305 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
306 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
307# source='$<' object='$@' libtool=no \
308# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
309# $(COMPILE) -c $<
310
311.c.obj:
312 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
313 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
314# source='$<' object='$@' libtool=no \
315# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
316# $(COMPILE) -c `$(CYGPATH_W) '$<'`
317
318.c.lo:
319 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
320 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
321# source='$<' object='$@' libtool=yes \
322# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
323# $(LTCOMPILE) -c -o $@ $<
324
325mostlyclean-libtool:
326 -rm -f *.lo
327
328clean-libtool:
329 -rm -rf .libs _libs
330
331ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
332 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
333 unique=`for i in $$list; do \
334 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
335 done | \
336 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
337 END { if (nonempty) { for (i in files) print i; }; }'`; \
338 mkid -fID $$unique
339tags: TAGS
340
341TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
342 $(TAGS_FILES) $(LISP)
343 tags=; \
344 here=`pwd`; \
345 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
346 unique=`for i in $$list; do \
347 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
348 done | \
349 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
350 END { if (nonempty) { for (i in files) print i; }; }'`; \
351 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
352 test -n "$$unique" || unique=$$empty_fix; \
353 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
354 $$tags $$unique; \
355 fi
356ctags: CTAGS
357CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
358 $(TAGS_FILES) $(LISP)
359 tags=; \
360 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
361 unique=`for i in $$list; do \
362 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
363 done | \
364 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
365 END { if (nonempty) { for (i in files) print i; }; }'`; \
366 test -z "$(CTAGS_ARGS)$$tags$$unique" \
367 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
368 $$tags $$unique
369
370GTAGS:
371 here=`$(am__cd) $(top_builddir) && pwd` \
372 && cd $(top_srcdir) \
373 && gtags -i $(GTAGS_ARGS) $$here
374
375distclean-tags:
376 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
377
378distdir: $(DISTFILES)
379 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
380 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
381 list='$(DISTFILES)'; \
382 dist_files=`for file in $$list; do echo $$file; done | \
383 sed -e "s|^$$srcdirstrip/||;t" \
384 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
385 case $$dist_files in \
386 */*) $(MKDIR_P) `echo "$$dist_files" | \
387 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
388 sort -u` ;; \
389 esac; \
390 for file in $$dist_files; do \
391 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
392 if test -d $$d/$$file; then \
393 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
394 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
395 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
396 fi; \
397 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
398 else \
399 test -f $(distdir)/$$file \
400 || cp -p $$d/$$file $(distdir)/$$file \
401 || exit 1; \
402 fi; \
403 done
404check-am: all-am
405check: check-am
406all-am: Makefile $(LTLIBRARIES)
407installdirs:
408 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
409 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
410 done
411install: install-am
412install-exec: install-exec-am
413install-data: install-data-am
414uninstall: uninstall-am
415
416install-am: all-am
417 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
418
419installcheck: installcheck-am
420install-strip:
421 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
422 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
423 `test -z '$(STRIP)' || \
424 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
425mostlyclean-generic:
426
427clean-generic:
428
429distclean-generic:
430 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
431
432maintainer-clean-generic:
433 @echo "This command is intended for maintainers to use"
434 @echo "it deletes files that may require special tools to rebuild."
435clean: clean-am
436
437clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
438 mostlyclean-am
439
440distclean: distclean-am
441 -rm -rf ./$(DEPDIR)
442 -rm -f Makefile
443distclean-am: clean-am distclean-compile distclean-generic \
444 distclean-tags
445
446dvi: dvi-am
447
448dvi-am:
449
450html: html-am
451
452info: info-am
453
454info-am:
455
456install-data-am: install-pluginimpLTLIBRARIES
457
458install-dvi: install-dvi-am
459
460install-exec-am:
461
462install-html: install-html-am
463
464install-info: install-info-am
465
466install-man:
467
468install-pdf: install-pdf-am
469
470install-ps: install-ps-am
471
472installcheck-am:
473
474maintainer-clean: maintainer-clean-am
475 -rm -rf ./$(DEPDIR)
476 -rm -f Makefile
477maintainer-clean-am: distclean-am maintainer-clean-generic
478
479mostlyclean: mostlyclean-am
480
481mostlyclean-am: mostlyclean-compile mostlyclean-generic \
482 mostlyclean-libtool
483
484pdf: pdf-am
485
486pdf-am:
487
488ps: ps-am
489
490ps-am:
491
492uninstall-am: uninstall-pluginimpLTLIBRARIES
493
494.MAKE: install-am install-strip
495
496.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
497 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
498 distclean-compile distclean-generic distclean-libtool \
499 distclean-tags distdir dvi dvi-am html html-am info info-am \
500 install install-am install-data install-data-am install-dvi \
501 install-dvi-am install-exec install-exec-am install-html \
502 install-html-am install-info install-info-am install-man \
503 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
504 install-ps install-ps-am install-strip installcheck \
505 installcheck-am installdirs maintainer-clean \
506 maintainer-clean-generic mostlyclean mostlyclean-compile \
507 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
508 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
509
510# Tell versions [3.59,3.63) of GNU make to not export all variables.
511# Otherwise a system limit (for SysV at least) may be exceeded.
512.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile.am
new file mode 100644
index 0000000..295d757
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile.am
@@ -0,0 +1,21 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_iob.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_iob_la_SOURCES = imp_iob.c imp_iob.h imp_iob_chunks.h \
20 imp_iob_callbacks.c imp_iob_callbacks.h
21imp_iob_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile.in
new file mode 100644
index 0000000..907f8c3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile.in
@@ -0,0 +1,512 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_iob
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_iob_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_iob_la_OBJECTS = imp_iob.lo imp_iob_callbacks.lo
59imp_iob_la_OBJECTS = $(am_imp_iob_la_OBJECTS)
60DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_iob_la_SOURCES)
73DIST_SOURCES = $(imp_iob_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = @ACLOCAL@
78AMTAR = @AMTAR@
79AR = @AR@
80AS = @AS@
81AUTOCONF = @AUTOCONF@
82AUTOHEADER = @AUTOHEADER@
83AUTOMAKE = @AUTOMAKE@
84AWK = @AWK@
85CC = @CC@
86CCDEPMODE = @CCDEPMODE@
87CFLAGS = @CFLAGS@
88CPP = @CPP@
89CPPFLAGS = @CPPFLAGS@
90CXX = @CXX@
91CXXCPP = @CXXCPP@
92CXXDEPMODE = @CXXDEPMODE@
93CXXFLAGS = @CXXFLAGS@
94CYGPATH_W = @CYGPATH_W@
95DBG_CFLAGS = @DBG_CFLAGS@
96DEBUG = @DEBUG@
97DEFS = @DEFS@
98DEPDIR = @DEPDIR@
99DLLTOOL = @DLLTOOL@
100ECHO = @ECHO@
101ECHO_C = @ECHO_C@
102ECHO_N = @ECHO_N@
103ECHO_T = @ECHO_T@
104EGREP = @EGREP@
105EXEEXT = @EXEEXT@
106F77 = @F77@
107FFLAGS = @FFLAGS@
108GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
109GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
110GLIB_CFLAGS = @GLIB_CFLAGS@
111GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
112GLIB_LIBS = @GLIB_LIBS@
113GLIB_MKENUMS = @GLIB_MKENUMS@
114GOBJECT_QUERY = @GOBJECT_QUERY@
115GREP = @GREP@
116GTKDOC_CHECK = @GTKDOC_CHECK@
117GTK_CFLAGS = @GTK_CFLAGS@
118GTK_LIBS = @GTK_LIBS@
119HTML_DIR = @HTML_DIR@
120INSTALL = @INSTALL@
121INSTALL_DATA = @INSTALL_DATA@
122INSTALL_PROGRAM = @INSTALL_PROGRAM@
123INSTALL_SCRIPT = @INSTALL_SCRIPT@
124INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125LDFLAGS = @LDFLAGS@
126LEX = @LEX@
127LEXLIB = @LEXLIB@
128LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
129LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
130LIBGSF_LIBS = @LIBGSF_LIBS@
131LIBOBJS = @LIBOBJS@
132LIBS = @LIBS@
133LIBTOOL = @LIBTOOL@ --quiet
134LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
135LIBXML2_LIBS = @LIBXML2_LIBS@
136LN_S = @LN_S@
137LTLIBOBJS = @LTLIBOBJS@
138LTVERSION = @LTVERSION@
139MAGIC_LIBS = @MAGIC_LIBS@
140MAKEINFO = @MAKEINFO@
141MATH_LIBS = @MATH_LIBS@
142MKDIR_P = @MKDIR_P@
143OBJDUMP = @OBJDUMP@
144OBJEXT = @OBJEXT@
145PACKAGE = @PACKAGE@
146PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147PACKAGE_NAME = @PACKAGE_NAME@
148PACKAGE_STRING = @PACKAGE_STRING@
149PACKAGE_TARNAME = @PACKAGE_TARNAME@
150PACKAGE_VERSION = @PACKAGE_VERSION@
151PATH_SEPARATOR = @PATH_SEPARATOR@
152PKG_CONFIG = @PKG_CONFIG@
153PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
154RANLIB = @RANLIB@
155SET_MAKE = @SET_MAKE@
156SHELL = @SHELL@
157STRIP = @STRIP@
158VERSION = @VERSION@
159XML2_CONFIG = @XML2_CONFIG@
160XML_CPPFLAGS = @XML_CPPFLAGS@
161XML_LIBS = @XML_LIBS@
162Z_CFLAGS = @Z_CFLAGS@
163Z_LIBS = @Z_LIBS@
164abs_builddir = @abs_builddir@
165abs_srcdir = @abs_srcdir@
166abs_top_builddir = @abs_top_builddir@
167abs_top_srcdir = @abs_top_srcdir@
168ac_ct_CC = @ac_ct_CC@
169ac_ct_CXX = @ac_ct_CXX@
170ac_ct_F77 = @ac_ct_F77@
171am__include = @am__include@
172am__leading_dot = @am__leading_dot@
173am__quote = @am__quote@
174am__tar = @am__tar@
175am__untar = @am__untar@
176bindir = @bindir@
177build = @build@
178build_alias = @build_alias@
179build_cpu = @build_cpu@
180build_os = @build_os@
181build_vendor = @build_vendor@
182builddir = @builddir@
183datadir = @datadir@
184datarootdir = @datarootdir@
185docdir = @docdir@
186dvidir = @dvidir@
187exec_prefix = @exec_prefix@
188host = @host@
189host_alias = @host_alias@
190host_cpu = @host_cpu@
191host_os = @host_os@
192host_vendor = @host_vendor@
193htmldir = @htmldir@
194includedir = @includedir@
195infodir = @infodir@
196install_sh = @install_sh@
197libdir = @libdir@
198libexecdir = @libexecdir@
199localedir = @localedir@
200localstatedir = @localstatedir@
201mandir = @mandir@
202mkdir_p = @mkdir_p@
203oldincludedir = @oldincludedir@
204pdfdir = @pdfdir@
205prefix = @prefix@
206program_transform_name = @program_transform_name@
207psdir = @psdir@
208sbindir = @sbindir@
209sharedstatedir = @sharedstatedir@
210srcdir = @srcdir@
211sysconfdir = @sysconfdir@
212target_alias = @target_alias@
213top_builddir = @top_builddir@
214top_srcdir = @top_srcdir@
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_iob.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
221 @GLIB_CFLAGS@
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 @PLUGINS_LDFLAGS@
227
228imp_iob_la_SOURCES = imp_iob.c imp_iob.h imp_iob_chunks.h \
229 imp_iob_callbacks.c imp_iob_callbacks.h
230
231imp_iob_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
232all: all-am
233
234.SUFFIXES:
235.SUFFIXES: .c .lo .o .obj
236$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
237 @for dep in $?; do \
238 case '$(am__configure_deps)' in \
239 *$$dep*) \
240 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
241 && exit 0; \
242 exit 1;; \
243 esac; \
244 done; \
245 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_iob/Makefile'; \
246 cd $(top_srcdir) && \
247 $(AUTOMAKE) --gnu plugins/import/imp_iob/Makefile
248.PRECIOUS: Makefile
249Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
250 @case '$?' in \
251 *config.status*) \
252 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
253 *) \
254 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
255 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
256 esac;
257
258$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
259 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
260
261$(top_srcdir)/configure: $(am__configure_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263$(ACLOCAL_M4): $(am__aclocal_m4_deps)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
266 @$(NORMAL_INSTALL)
267 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
268 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
269 if test -f $$p; then \
270 f=$(am__strip_dir) \
271 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
272 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
273 else :; fi; \
274 done
275
276uninstall-pluginimpLTLIBRARIES:
277 @$(NORMAL_UNINSTALL)
278 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
279 p=$(am__strip_dir) \
280 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
281 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
282 done
283
284clean-pluginimpLTLIBRARIES:
285 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
288 test "$$dir" != "$$p" || dir=.; \
289 echo "rm -f \"$${dir}/so_locations\""; \
290 rm -f "$${dir}/so_locations"; \
291 done
292imp_iob.la: $(imp_iob_la_OBJECTS) $(imp_iob_la_DEPENDENCIES)
293 $(LINK) -rpath $(pluginimpdir) $(imp_iob_la_OBJECTS) $(imp_iob_la_LIBADD) $(LIBS)
294
295mostlyclean-compile:
296 -rm -f *.$(OBJEXT)
297
298distclean-compile:
299 -rm -f *.tab.c
300
301@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_iob.Plo@am__quote@
302@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_iob_callbacks.Plo@am__quote@
303
304.c.o:
305@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
306@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
307@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
308@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
309@am__fastdepCC_FALSE@ $(COMPILE) -c $<
310
311.c.obj:
312@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
313@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
314@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
315@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
316@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
317
318.c.lo:
319@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
320@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
321@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
322@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
323@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
324
325mostlyclean-libtool:
326 -rm -f *.lo
327
328clean-libtool:
329 -rm -rf .libs _libs
330
331ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
332 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
333 unique=`for i in $$list; do \
334 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
335 done | \
336 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
337 END { if (nonempty) { for (i in files) print i; }; }'`; \
338 mkid -fID $$unique
339tags: TAGS
340
341TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
342 $(TAGS_FILES) $(LISP)
343 tags=; \
344 here=`pwd`; \
345 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
346 unique=`for i in $$list; do \
347 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
348 done | \
349 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
350 END { if (nonempty) { for (i in files) print i; }; }'`; \
351 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
352 test -n "$$unique" || unique=$$empty_fix; \
353 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
354 $$tags $$unique; \
355 fi
356ctags: CTAGS
357CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
358 $(TAGS_FILES) $(LISP)
359 tags=; \
360 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
361 unique=`for i in $$list; do \
362 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
363 done | \
364 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
365 END { if (nonempty) { for (i in files) print i; }; }'`; \
366 test -z "$(CTAGS_ARGS)$$tags$$unique" \
367 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
368 $$tags $$unique
369
370GTAGS:
371 here=`$(am__cd) $(top_builddir) && pwd` \
372 && cd $(top_srcdir) \
373 && gtags -i $(GTAGS_ARGS) $$here
374
375distclean-tags:
376 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
377
378distdir: $(DISTFILES)
379 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
380 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
381 list='$(DISTFILES)'; \
382 dist_files=`for file in $$list; do echo $$file; done | \
383 sed -e "s|^$$srcdirstrip/||;t" \
384 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
385 case $$dist_files in \
386 */*) $(MKDIR_P) `echo "$$dist_files" | \
387 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
388 sort -u` ;; \
389 esac; \
390 for file in $$dist_files; do \
391 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
392 if test -d $$d/$$file; then \
393 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
394 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
395 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
396 fi; \
397 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
398 else \
399 test -f $(distdir)/$$file \
400 || cp -p $$d/$$file $(distdir)/$$file \
401 || exit 1; \
402 fi; \
403 done
404check-am: all-am
405check: check-am
406all-am: Makefile $(LTLIBRARIES)
407installdirs:
408 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
409 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
410 done
411install: install-am
412install-exec: install-exec-am
413install-data: install-data-am
414uninstall: uninstall-am
415
416install-am: all-am
417 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
418
419installcheck: installcheck-am
420install-strip:
421 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
422 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
423 `test -z '$(STRIP)' || \
424 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
425mostlyclean-generic:
426
427clean-generic:
428
429distclean-generic:
430 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
431
432maintainer-clean-generic:
433 @echo "This command is intended for maintainers to use"
434 @echo "it deletes files that may require special tools to rebuild."
435clean: clean-am
436
437clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
438 mostlyclean-am
439
440distclean: distclean-am
441 -rm -rf ./$(DEPDIR)
442 -rm -f Makefile
443distclean-am: clean-am distclean-compile distclean-generic \
444 distclean-tags
445
446dvi: dvi-am
447
448dvi-am:
449
450html: html-am
451
452info: info-am
453
454info-am:
455
456install-data-am: install-pluginimpLTLIBRARIES
457
458install-dvi: install-dvi-am
459
460install-exec-am:
461
462install-html: install-html-am
463
464install-info: install-info-am
465
466install-man:
467
468install-pdf: install-pdf-am
469
470install-ps: install-ps-am
471
472installcheck-am:
473
474maintainer-clean: maintainer-clean-am
475 -rm -rf ./$(DEPDIR)
476 -rm -f Makefile
477maintainer-clean-am: distclean-am maintainer-clean-generic
478
479mostlyclean: mostlyclean-am
480
481mostlyclean-am: mostlyclean-compile mostlyclean-generic \
482 mostlyclean-libtool
483
484pdf: pdf-am
485
486pdf-am:
487
488ps: ps-am
489
490ps-am:
491
492uninstall-am: uninstall-pluginimpLTLIBRARIES
493
494.MAKE: install-am install-strip
495
496.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
497 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
498 distclean-compile distclean-generic distclean-libtool \
499 distclean-tags distdir dvi dvi-am html html-am info info-am \
500 install install-am install-data install-data-am install-dvi \
501 install-dvi-am install-exec install-exec-am install-html \
502 install-html-am install-info install-info-am install-man \
503 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
504 install-ps install-ps-am install-strip installcheck \
505 installcheck-am installdirs maintainer-clean \
506 maintainer-clean-generic mostlyclean mostlyclean-compile \
507 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
508 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
509
510# Tell versions [3.59,3.63) of GNU make to not export all variables.
511# Otherwise a system limit (for SysV at least) may be exceeded.
512.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob.c
new file mode 100644
index 0000000..1c4ce17
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob.c
@@ -0,0 +1,98 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <string.h>
25
26#include <glib.h>
27
28#include <g3d/types.h>
29#include <g3d/context.h>
30#include <g3d/model.h>
31#include <g3d/material.h>
32#include <g3d/stream.h>
33#include <g3d/iff.h>
34#include <g3d/matrix.h>
35
36#include "imp_iob_chunks.h"
37
38EAPI
39gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
40 G3DModel *model, gpointer user_data)
41{
42 G3DIffGlobal *global;
43 G3DIffLocal *local;
44 guint32 id;
45 gsize len;
46 G3DMatrix rmatrix[16];
47
48 if(!g3d_iff_check(stream, &id, &len) ||
49 (id != G3D_IFF_MKID('T','D','D','D'))) {
50 g_warning("file is not an .iob (TDDD) file %s", stream->uri);
51 return FALSE;
52 }
53
54 local = g_new0(G3DIffLocal, 1);
55 global = g_new0(G3DIffGlobal, 1);
56
57 global->context = context;
58 global->model = model;
59 global->stream = stream;
60
61 local->parent_id = id;
62 local->nb = len;
63
64 g3d_iff_read_ctnr(global, local, iob_chunks, G3D_IFF_PAD2);
65
66 g3d_matrix_identity(rmatrix);
67 g3d_matrix_rotate_xyz(G_PI * -90.0 / 180, 0.0, 0.0, rmatrix);
68 g3d_model_transform(model, rmatrix);
69
70 g_free(local);
71 g_free(global);
72
73 return TRUE;
74}
75
76EAPI
77char *plugin_description(void)
78{
79 return g_strdup("Impulse Turbo Silver / Imagine models.");
80}
81
82EAPI
83char **plugin_extensions(void)
84{
85 return g_strsplit("iob", ":", 0);
86}
87
88
89/*****************************************************************************/
90/* IOB specific */
91/*****************************************************************************/
92
93G3DFloat iob_read_fract(G3DStream *stream)
94{
95 gint32 i = g3d_stream_read_int32_be(stream);
96 return (G3DFloat)(i / 0xFFFF);
97}
98
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob.h
new file mode 100644
index 0000000..56ee3f6
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob.h
@@ -0,0 +1,33 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef _IMP_IOB_H
24#define _IMP_IOB_H
25
26#include <stdio.h>
27#include <glib.h>
28
29#include <g3d/stream.h>
30
31G3DFloat iob_read_fract(G3DStream *stream);
32
33#endif /* _IMP_IOB_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_callbacks.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_callbacks.c
new file mode 100644
index 0000000..ddbbc27
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_callbacks.c
@@ -0,0 +1,347 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <g3d/iff.h>
23#include <g3d/stream.h>
24#include <g3d/material.h>
25
26#include "imp_iob.h"
27
28gboolean iob_cb_xLSx(G3DIffGlobal *global, G3DIffLocal *local)
29{
30 G3DObject *object;
31 G3DMaterial *material;
32 G3DFace *face;
33 gint32 i, nitems;
34
35 object = (G3DObject *)local->object;
36 g_return_val_if_fail(object != NULL, FALSE);
37
38 if((local->id & 0xFF) == '2')
39 {
40 nitems = g3d_stream_read_int32_be(global->stream);
41 local->nb -= 4;
42 }
43 else
44 {
45 nitems = g3d_stream_read_int16_be(global->stream);
46 local->nb -= 2;
47 }
48
49 for(i = 0; i < nitems; i ++)
50 {
51 /* TODO: find material by parameters, don't create too much
52 * materials */
53
54 /* default material + nth */
55 material = g_slist_nth_data(object->materials, i + 1);
56 if(material == NULL)
57 {
58 material = g3d_material_new();
59 material->flags |= G3D_FLAG_MAT_TWOSIDE;
60 material->name = g_strdup_printf("per face material #%d", i);
61 object->materials = g_slist_append(object->materials, material);
62
63 /* assign to face */
64 face = g_slist_nth_data(object->faces, i);
65 if(face)
66 face->material = material;
67 }
68
69 switch(local->id)
70 {
71 case G3D_IFF_MKID('C', 'L', 'S', 'T'):
72 case G3D_IFF_MKID('C', 'L', 'S', '2'):
73 material->r = (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0;
74 material->g = (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0;
75 material->b = (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0;
76 break;
77
78 case G3D_IFF_MKID('R', 'L', 'S', 'T'):
79 case G3D_IFF_MKID('R', 'L', 'S', '2'):
80 material->specular[0] =
81 (GLfloat)g3d_stream_read_int8(global->stream) / 255.0;
82 material->specular[1] =
83 (GLfloat)g3d_stream_read_int8(global->stream) / 255.0;
84 material->specular[2] =
85 (GLfloat)g3d_stream_read_int8(global->stream) / 255.0;
86 break;
87
88 case G3D_IFF_MKID('T', 'L', 'S', 'T'):
89 case G3D_IFF_MKID('T', 'L', 'S', '2'):
90 material->a = 1.0 - (
91 (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0 +
92 (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0 +
93 (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0) / 3.0;
94 break;
95 }
96
97 local->nb -= 3;
98 }
99
100 return TRUE;
101}
102
103gboolean iob_cb_COLR(G3DIffGlobal *global, G3DIffLocal *local)
104{
105 G3DObject *object;
106 G3DMaterial *material;
107
108 object = (G3DObject *)local->object;
109 g_return_val_if_fail(object != NULL, FALSE);
110
111 material = g_slist_nth_data(object->materials, 0);
112 g_return_val_if_fail(material != NULL, FALSE);
113
114 g3d_stream_read_int8(global->stream);
115 material->r = (float)g3d_stream_read_int8(global->stream) / 255.0;
116 material->g = (float)g3d_stream_read_int8(global->stream) / 255.0;
117 material->b = (float)g3d_stream_read_int8(global->stream) / 255.0;
118 local->nb -= 4;
119
120 return TRUE;
121}
122
123gboolean iob_cb_DESC(G3DIffGlobal *global, G3DIffLocal *local)
124{
125 G3DObject *object;
126 G3DMaterial *material;
127
128 if(local->finalize) return TRUE;
129
130 object = g_new0(G3DObject, 1);
131 global->model->objects = g_slist_append(global->model->objects, object);
132
133 material = g3d_material_new();
134 material->flags |= G3D_FLAG_MAT_TWOSIDE;
135 material->name = g_strdup("(default material)");
136
137 object->materials = g_slist_append(object->materials, material);
138
139 local->object = object;
140
141 return TRUE;
142}
143
144gboolean iob_cb_EDGx(G3DIffGlobal *global, G3DIffLocal *local)
145{
146 G3DObject *object;
147 gint32 i, nedges;
148 gint32 *edges;
149
150 object = (G3DObject *)local->object;
151 g_return_val_if_fail(object != NULL, FALSE);
152
153 if(local->id == G3D_IFF_MKID('E','D','G','E'))
154 {
155 nedges = g3d_stream_read_int16_be(global->stream);
156 local->nb -= 2;
157 }
158 else
159 {
160 nedges = g3d_stream_read_int32_be(global->stream);
161 local->nb -= 4;
162 }
163
164 edges = g_malloc(nedges * 2 * sizeof(gint32));
165 for(i = 0; i < nedges; i ++)
166 {
167 if(local->id == G3D_IFF_MKID('E','D','G','E'))
168 {
169 edges[i * 2 + 0] = g3d_stream_read_int16_be(global->stream);
170 edges[i * 2 + 1] = g3d_stream_read_int16_be(global->stream);
171 local->nb -= 4;
172 }
173 else
174 {
175 edges[i * 2 + 0] = g3d_stream_read_int32_be(global->stream);
176 edges[i * 2 + 1] = g3d_stream_read_int32_be(global->stream);
177 local->nb -= 8;
178 }
179 }
180
181 local->level_object = edges;
182
183 return TRUE;
184}
185
186gboolean iob_cb_FACx(G3DIffGlobal *global, G3DIffLocal *local)
187{
188 G3DObject *object;
189 gint32 *edges, e[3], v1, v2, v3;
190 gint32 i, nfaces;
191
192 object = (G3DObject *)local->object;
193 g_return_val_if_fail(object != NULL, FALSE);
194
195 /* edges are read in EDGE/EDG2 chunk */
196 edges = (gint32 *)local->level_object;
197 g_return_val_if_fail(edges != NULL, FALSE);
198
199 if(local->id == G3D_IFF_MKID('F','A','C','E'))
200 {
201 nfaces = g3d_stream_read_int16_be(global->stream);
202 local->nb -= 2;
203 }
204 else
205 {
206 nfaces = g3d_stream_read_int32_be(global->stream);
207 local->nb -= 4;
208 }
209
210 for(i = 0; i < nfaces; i ++)
211 {
212 G3DFace *face = g_new0(G3DFace, 1);
213 face->vertex_count = 3;
214 face->vertex_indices = g_new0(guint32, 3);
215
216 if(local->id == G3D_IFF_MKID('F','A','C','E'))
217 {
218 e[0] = g3d_stream_read_int16_be(global->stream);
219 e[1] = g3d_stream_read_int16_be(global->stream);
220 e[2] = g3d_stream_read_int16_be(global->stream);
221 local->nb -= 6;
222 }
223 else
224 {
225 e[0] = g3d_stream_read_int32_be(global->stream);
226 e[1] = g3d_stream_read_int32_be(global->stream);
227 e[2] = g3d_stream_read_int32_be(global->stream);
228 local->nb -= 12;
229 }
230
231 face->vertex_indices[0] = v1 = edges[e[0] * 2 + 0];
232 face->vertex_indices[1] = v2 = edges[e[0] * 2 + 1];
233 if((v1 != edges[e[1] * 2 + 0]) && (v2 != edges[e[1] * 2 + 0]))
234 v3 = edges[e[1] * 2 + 0];
235 else if((v1 != edges[e[1] * 2 + 1]) && (v2 != edges[e[1] * 2 + 1]))
236 v3 = edges[e[1] * 2 + 1];
237 else if((v1 != edges[e[2] * 2 + 0]) && (v2 != edges[e[2] * 2 + 0]))
238 v3 = edges[e[2] * 2 + 0];
239 else
240 v3 = edges[e[2] * 2 + 1];
241
242 face->vertex_indices[2] = v3;
243
244 face->material = g_slist_nth_data(object->materials, 0);
245 object->faces = g_slist_append(object->faces, face);
246 }
247
248 /* free edges now */
249 g_free(edges);
250 local->level_object = NULL;
251
252 return TRUE;
253}
254
255gboolean iob_cb_NAME(G3DIffGlobal *global, G3DIffLocal *local)
256{
257 G3DObject *object;
258 gchar buffer[512];
259
260 object = (G3DObject *)local->object;
261 g_return_val_if_fail(object != NULL, FALSE);
262
263 g3d_stream_read(global->stream, buffer, local->nb);
264
265 object->name = g_convert(buffer, local->nb,
266 "UTF-8", "ISO-8859-1",
267 NULL, NULL, NULL);
268
269 local->nb = 0;
270
271 return TRUE;
272}
273
274gboolean iob_cb_PNTx(G3DIffGlobal *global, G3DIffLocal *local)
275{
276 G3DObject *object;
277 gint32 i;
278
279 object = (G3DObject *)local->object;
280 g_return_val_if_fail(object != NULL, FALSE);
281
282 if(local->id == G3D_IFF_MKID('P','N','T','S'))
283 {
284 object->vertex_count = g3d_stream_read_int16_be(global->stream);
285 local->nb -= 2;
286 }
287 else
288 {
289 object->vertex_count = g3d_stream_read_int32_be(global->stream);
290 local->nb -= 4;
291 }
292
293 object->vertex_data = g_new0(G3DFloat, object->vertex_count * 3);
294
295 for(i = 0; i < object->vertex_count; i ++)
296 {
297 object->vertex_data[i * 3 + 0] = iob_read_fract(global->stream);
298 object->vertex_data[i * 3 + 1] = iob_read_fract(global->stream);
299 object->vertex_data[i * 3 + 2] = iob_read_fract(global->stream);
300 local->nb -= 12;
301 }
302
303 return TRUE;
304}
305
306gboolean iob_cb_REFL(G3DIffGlobal *global, G3DIffLocal *local)
307{
308 G3DObject *object;
309 G3DMaterial *material;
310 gint32 i;
311
312 object = (G3DObject *)local->object;
313 g_return_val_if_fail(object != NULL, FALSE);
314
315 material = g_slist_nth_data(object->materials, 0);
316 g_return_val_if_fail(material != NULL, FALSE);
317
318 g3d_stream_read_int8(global->stream);
319 for(i = 0; i < 3; i ++)
320 material->specular[i] =
321 (GLfloat)g3d_stream_read_int8(global->stream) / 255.0;
322 local->nb -= 4;
323
324 return TRUE;
325}
326
327gboolean iob_cb_TRAN(G3DIffGlobal *global, G3DIffLocal *local)
328{
329 G3DObject *object;
330 G3DMaterial *material;
331
332 object = (G3DObject *)local->object;
333 g_return_val_if_fail(object != NULL, FALSE);
334
335 material = g_slist_nth_data(object->materials, 0);
336 g_return_val_if_fail(material != NULL, FALSE);
337
338 g3d_stream_read_int8(global->stream);
339 material->a = 1.0 - (
340 (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0 +
341 (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0 +
342 (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0) / 3.0;
343 local->nb -= 4;
344
345 return TRUE;
346}
347
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_callbacks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_callbacks.h
new file mode 100644
index 0000000..f4b78a0
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_callbacks.h
@@ -0,0 +1,37 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_IOB_CALLBACKS_H
23#define _IMP_IOB_CALLBACKS_H
24
25#include <g3d/iff.h>
26
27gboolean iob_cb_xLSx(G3DIffGlobal *global, G3DIffLocal *local);
28gboolean iob_cb_COLR(G3DIffGlobal *global, G3DIffLocal *local);
29gboolean iob_cb_DESC(G3DIffGlobal *global, G3DIffLocal *local);
30gboolean iob_cb_EDGx(G3DIffGlobal *global, G3DIffLocal *local);
31gboolean iob_cb_FACx(G3DIffGlobal *global, G3DIffLocal *local);
32gboolean iob_cb_NAME(G3DIffGlobal *global, G3DIffLocal *local);
33gboolean iob_cb_PNTx(G3DIffGlobal *global, G3DIffLocal *local);
34gboolean iob_cb_REFL(G3DIffGlobal *global, G3DIffLocal *local);
35gboolean iob_cb_TRAN(G3DIffGlobal *global, G3DIffLocal *local);
36
37#endif /* _IMP_IOB_CALLBACKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_chunks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_chunks.h
new file mode 100644
index 0000000..1a10d44
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_chunks.h
@@ -0,0 +1,73 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_IOB_CHUNKS_H
23#define _IMP_IOB_CHUNKS_H
24
25#include <g3d/iff.h>
26
27#include "imp_iob_callbacks.h"
28
29static G3DIffChunkInfo iob_chunks[] = {
30 { "AXIS", "coordinate system", 0, NULL },
31 { "BBOX", "bounding box data", 0, NULL },
32 { "BRS4", "brush (4)", 0, NULL },
33 { "BRS5", "brush (5)", 0, NULL },
34 { "COLR", "color", 0, iob_cb_COLR },
35 { "CLS2", "color list (2)", 0, iob_cb_xLSx },
36 { "CLST", "color list", 0, iob_cb_xLSx },
37 { "DESC", "object description", 1, iob_cb_DESC },
38 { "EDG2", "edges", 0, iob_cb_EDGx },
39 { "EDGE", "edges", 0, iob_cb_EDGx },
40 { "EFLG", "edge flags", 0, NULL },
41 { "FACE", "faces", 0, iob_cb_FACx },
42 { "FAC2", "faces (2)", 0, iob_cb_FACx },
43 { "FGR2", "face group (2)", 0, NULL },
44 { "FGR3", "face group (3)", 0, NULL },
45 { "FGR4", "face group (4)", 0, NULL },
46 { "INT1", "light intensity (1)", 0, NULL },
47 { "NAME", "name", 0, iob_cb_NAME },
48 { "OBJ ", "object", 1, NULL },
49 { "PART", "particle parameters", 0, NULL },
50 { "PNT2", "points (2)", 0, iob_cb_PNTx },
51 { "PNTS", "points", 0, iob_cb_PNTx },
52 { "POSI", "position in world", 0, NULL },
53 { "PRP1", "properties (1)", 0, NULL },
54 { "PRP2", "properties (2)", 0, NULL },
55 { "REFL", "reflection", 0, iob_cb_REFL },
56 { "RLS2", "reflection list (2)", 0, iob_cb_xLSx },
57 { "RLST", "reflection list", 0, iob_cb_xLSx },
58 { "SPC1", "specularity (1)", 0, NULL },
59 { "SPC2", "specularity (2)", 0, NULL },
60 { "SHAP", "shape type", 0, NULL },
61 { "SHP2", "shape type (2)", 0, NULL },
62 { "SIZE", "size", 0, NULL },
63 { "TLS2", "transparency list", 0, iob_cb_xLSx },
64 { "TLST", "transparency list (2)", 0, iob_cb_xLSx },
65 { "TOBJ", "end of object", 0, NULL },
66 { "TRAN", "transparency", 0, iob_cb_TRAN },
67 { "TXT3", "texture data (3)", 0, NULL },
68 { "TXT4", "texture data (4)", 0, NULL },
69
70 { NULL, NULL, 0, NULL }
71};
72
73#endif /* _IMP_IOB_CHUNKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/Makefile
new file mode 100644
index 0000000..971e951
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/Makefile
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_joe/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_joe
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_joe_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_joe_la_OBJECTS = imp_joe.lo
59imp_joe_la_OBJECTS = $(am_imp_joe_la_OBJECTS)
60DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_joe_la_SOURCES)
73DIST_SOURCES = $(imp_joe_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
78AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
79AR = ar
80AS = as
81AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
82AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
83AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
84AWK = gawk
85CC = gcc
86CCDEPMODE = depmode=gcc3
87CFLAGS = -g -O2
88CPP = gcc -E
89CPPFLAGS =
90CXX = g++
91CXXCPP = g++ -E
92CXXDEPMODE = depmode=gcc3
93CXXFLAGS = -g -O2
94CYGPATH_W = echo
95DBG_CFLAGS = -O2
96DEBUG = 0
97DEFS = -DHAVE_CONFIG_H
98DEPDIR = .deps
99DLLTOOL = dlltool
100ECHO = echo
101ECHO_C =
102ECHO_N = -n
103ECHO_T =
104EGREP = /bin/grep -E
105EXEEXT =
106F77 =
107FFLAGS =
108GDKPIXBUF_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
109GDKPIXBUF_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
110GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
111GLIB_GENMARSHAL = glib-genmarshal
112GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
113GLIB_MKENUMS = glib-mkenums
114GOBJECT_QUERY = gobject-query
115GREP = /bin/grep
116GTKDOC_CHECK = /usr/bin/gtkdoc-check
117GTK_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
118GTK_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
119HTML_DIR = ${datadir}/gtk-doc/html
120INSTALL = /usr/bin/install -c
121INSTALL_DATA = ${INSTALL} -m 644
122INSTALL_PROGRAM = ${INSTALL}
123INSTALL_SCRIPT = ${INSTALL}
124INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
125LDFLAGS =
126LEX = flex
127LEXLIB = -lfl
128LEX_OUTPUT_ROOT = lex.yy
129LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
130LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
131LIBOBJS =
132LIBS = -lm
133LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
134LIBXML2_CFLAGS = -I/usr/include/libxml2
135LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
136LN_S = ln -s
137LTLIBOBJS =
138LTVERSION = 0:8:0
139MAGIC_LIBS = -lmagic
140MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
141MATH_LIBS = -lm
142MKDIR_P = /bin/mkdir -p
143OBJDUMP = objdump
144OBJEXT = o
145PACKAGE = libg3d
146PACKAGE_BUGREPORT =
147PACKAGE_NAME =
148PACKAGE_STRING =
149PACKAGE_TARNAME =
150PACKAGE_VERSION =
151PATH_SEPARATOR = :
152PKG_CONFIG = /usr/bin/pkg-config
153PLUGINS_LDFLAGS = -avoid-version -export-dynamic
154RANLIB = ranlib
155SET_MAKE =
156SHELL = /bin/bash
157STRIP = strip
158VERSION = 0.0.8
159XML2_CONFIG = /usr/bin/xml2-config
160XML_CPPFLAGS = -I/usr/include/libxml2
161XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
162Z_CFLAGS =
163Z_LIBS = -lz
164abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe
165abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe
166abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
167abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168ac_ct_CC = gcc
169ac_ct_CXX = g++
170ac_ct_F77 =
171am__include = include
172am__leading_dot = .
173am__quote =
174am__tar = ${AMTAR} chof - "$$tardir"
175am__untar = ${AMTAR} xf -
176bindir = ${exec_prefix}/bin
177build = x86_64-unknown-linux-gnu
178build_alias =
179build_cpu = x86_64
180build_os = linux-gnu
181build_vendor = unknown
182builddir = .
183datadir = ${datarootdir}
184datarootdir = ${prefix}/share
185docdir = ${datarootdir}/doc/${PACKAGE}
186dvidir = ${docdir}
187exec_prefix = ${prefix}
188host = x86_64-unknown-linux-gnu
189host_alias =
190host_cpu = x86_64
191host_os = linux-gnu
192host_vendor = unknown
193htmldir = ${docdir}
194includedir = ${prefix}/include
195infodir = ${datarootdir}/info
196install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
197libdir = ${exec_prefix}/lib
198libexecdir = ${exec_prefix}/libexec
199localedir = ${datarootdir}/locale
200localstatedir = ${prefix}/var
201mandir = ${datarootdir}/man
202mkdir_p = /bin/mkdir -p
203oldincludedir = /usr/include
204pdfdir = ${docdir}
205prefix = /usr/local
206program_transform_name = s,x,x,
207psdir = ${docdir}
208sbindir = ${exec_prefix}/sbin
209sharedstatedir = ${prefix}/com
210srcdir = .
211sysconfdir = ${prefix}/etc
212target_alias =
213top_builddir = ../../..
214top_srcdir = ../../..
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_joe.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 -O2 -DDEBUG=0 \
221 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 -avoid-version -export-dynamic
227
228imp_joe_la_SOURCES = imp_joe.c
229imp_joe_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_joe/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_joe/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_joe.la: $(imp_joe_la_OBJECTS) $(imp_joe_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_joe_la_OBJECTS) $(imp_joe_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299include ./$(DEPDIR)/imp_joe.Plo
300
301.c.o:
302 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304# source='$<' object='$@' libtool=no \
305# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
306# $(COMPILE) -c $<
307
308.c.obj:
309 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311# source='$<' object='$@' libtool=no \
312# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
313# $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318# source='$<' object='$@' libtool=yes \
319# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
320# $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/Makefile.am
new file mode 100644
index 0000000..c157cf7
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/Makefile.am
@@ -0,0 +1,20 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_joe.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_joe_la_SOURCES = imp_joe.c
20imp_joe_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/Makefile.in
new file mode 100644
index 0000000..ebd7ce6
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/Makefile.in
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_joe
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_joe_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_joe_la_OBJECTS = imp_joe.lo
59imp_joe_la_OBJECTS = $(am_imp_joe_la_OBJECTS)
60DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_joe_la_SOURCES)
73DIST_SOURCES = $(imp_joe_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = @ACLOCAL@
78AMTAR = @AMTAR@
79AR = @AR@
80AS = @AS@
81AUTOCONF = @AUTOCONF@
82AUTOHEADER = @AUTOHEADER@
83AUTOMAKE = @AUTOMAKE@
84AWK = @AWK@
85CC = @CC@
86CCDEPMODE = @CCDEPMODE@
87CFLAGS = @CFLAGS@
88CPP = @CPP@
89CPPFLAGS = @CPPFLAGS@
90CXX = @CXX@
91CXXCPP = @CXXCPP@
92CXXDEPMODE = @CXXDEPMODE@
93CXXFLAGS = @CXXFLAGS@
94CYGPATH_W = @CYGPATH_W@
95DBG_CFLAGS = @DBG_CFLAGS@
96DEBUG = @DEBUG@
97DEFS = @DEFS@
98DEPDIR = @DEPDIR@
99DLLTOOL = @DLLTOOL@
100ECHO = @ECHO@
101ECHO_C = @ECHO_C@
102ECHO_N = @ECHO_N@
103ECHO_T = @ECHO_T@
104EGREP = @EGREP@
105EXEEXT = @EXEEXT@
106F77 = @F77@
107FFLAGS = @FFLAGS@
108GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
109GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
110GLIB_CFLAGS = @GLIB_CFLAGS@
111GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
112GLIB_LIBS = @GLIB_LIBS@
113GLIB_MKENUMS = @GLIB_MKENUMS@
114GOBJECT_QUERY = @GOBJECT_QUERY@
115GREP = @GREP@
116GTKDOC_CHECK = @GTKDOC_CHECK@
117GTK_CFLAGS = @GTK_CFLAGS@
118GTK_LIBS = @GTK_LIBS@
119HTML_DIR = @HTML_DIR@
120INSTALL = @INSTALL@
121INSTALL_DATA = @INSTALL_DATA@
122INSTALL_PROGRAM = @INSTALL_PROGRAM@
123INSTALL_SCRIPT = @INSTALL_SCRIPT@
124INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125LDFLAGS = @LDFLAGS@
126LEX = @LEX@
127LEXLIB = @LEXLIB@
128LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
129LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
130LIBGSF_LIBS = @LIBGSF_LIBS@
131LIBOBJS = @LIBOBJS@
132LIBS = @LIBS@
133LIBTOOL = @LIBTOOL@ --quiet
134LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
135LIBXML2_LIBS = @LIBXML2_LIBS@
136LN_S = @LN_S@
137LTLIBOBJS = @LTLIBOBJS@
138LTVERSION = @LTVERSION@
139MAGIC_LIBS = @MAGIC_LIBS@
140MAKEINFO = @MAKEINFO@
141MATH_LIBS = @MATH_LIBS@
142MKDIR_P = @MKDIR_P@
143OBJDUMP = @OBJDUMP@
144OBJEXT = @OBJEXT@
145PACKAGE = @PACKAGE@
146PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147PACKAGE_NAME = @PACKAGE_NAME@
148PACKAGE_STRING = @PACKAGE_STRING@
149PACKAGE_TARNAME = @PACKAGE_TARNAME@
150PACKAGE_VERSION = @PACKAGE_VERSION@
151PATH_SEPARATOR = @PATH_SEPARATOR@
152PKG_CONFIG = @PKG_CONFIG@
153PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
154RANLIB = @RANLIB@
155SET_MAKE = @SET_MAKE@
156SHELL = @SHELL@
157STRIP = @STRIP@
158VERSION = @VERSION@
159XML2_CONFIG = @XML2_CONFIG@
160XML_CPPFLAGS = @XML_CPPFLAGS@
161XML_LIBS = @XML_LIBS@
162Z_CFLAGS = @Z_CFLAGS@
163Z_LIBS = @Z_LIBS@
164abs_builddir = @abs_builddir@
165abs_srcdir = @abs_srcdir@
166abs_top_builddir = @abs_top_builddir@
167abs_top_srcdir = @abs_top_srcdir@
168ac_ct_CC = @ac_ct_CC@
169ac_ct_CXX = @ac_ct_CXX@
170ac_ct_F77 = @ac_ct_F77@
171am__include = @am__include@
172am__leading_dot = @am__leading_dot@
173am__quote = @am__quote@
174am__tar = @am__tar@
175am__untar = @am__untar@
176bindir = @bindir@
177build = @build@
178build_alias = @build_alias@
179build_cpu = @build_cpu@
180build_os = @build_os@
181build_vendor = @build_vendor@
182builddir = @builddir@
183datadir = @datadir@
184datarootdir = @datarootdir@
185docdir = @docdir@
186dvidir = @dvidir@
187exec_prefix = @exec_prefix@
188host = @host@
189host_alias = @host_alias@
190host_cpu = @host_cpu@
191host_os = @host_os@
192host_vendor = @host_vendor@
193htmldir = @htmldir@
194includedir = @includedir@
195infodir = @infodir@
196install_sh = @install_sh@
197libdir = @libdir@
198libexecdir = @libexecdir@
199localedir = @localedir@
200localstatedir = @localstatedir@
201mandir = @mandir@
202mkdir_p = @mkdir_p@
203oldincludedir = @oldincludedir@
204pdfdir = @pdfdir@
205prefix = @prefix@
206program_transform_name = @program_transform_name@
207psdir = @psdir@
208sbindir = @sbindir@
209sharedstatedir = @sharedstatedir@
210srcdir = @srcdir@
211sysconfdir = @sysconfdir@
212target_alias = @target_alias@
213top_builddir = @top_builddir@
214top_srcdir = @top_srcdir@
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_joe.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
221 @GLIB_CFLAGS@
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 @PLUGINS_LDFLAGS@
227
228imp_joe_la_SOURCES = imp_joe.c
229imp_joe_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_joe/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_joe/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_joe.la: $(imp_joe_la_OBJECTS) $(imp_joe_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_joe_la_OBJECTS) $(imp_joe_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_joe.Plo@am__quote@
300
301.c.o:
302@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
305@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
306@am__fastdepCC_FALSE@ $(COMPILE) -c $<
307
308.c.obj:
309@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
313@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
320@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/imp_joe.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/imp_joe.c
new file mode 100644
index 0000000..b79447e
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/imp_joe.c
@@ -0,0 +1,386 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <string.h>
25#include <locale.h>
26
27#include <g3d/types.h>
28#include <g3d/stream.h>
29#include <g3d/model.h>
30#include <g3d/object.h>
31#include <g3d/iff.h>
32#include <g3d/material.h>
33#include <g3d/texture.h>
34#include <g3d/matrix.h>
35
36G3DObject *joe_load_object(G3DContext *context, const gchar *filename,
37 G3DModel *model);
38GHashTable *joe_load_car(const gchar *filename);
39void joe_destroy_car(GHashTable *hashtable);
40gboolean joe_parse_vertex(const gchar *text, G3DFloat *x, G3DFloat *y, G3DFloat *z);
41void joe_object_flip_x(G3DObject *object);
42
43/*****************************************************************************/
44/* plugin interface */
45/*****************************************************************************/
46
47EAPI
48gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
49 G3DModel *model, gpointer plugin_data)
50{
51 G3DObject *object;
52 GHashTable *cardata;
53 gchar *value;
54 G3DFloat x, y, z;
55 G3DMatrix matrix[16];
56 gboolean rval = FALSE;
57
58 if(g_strcasecmp(stream->uri + strlen(stream->uri) - 3, "car") == 0)
59 {
60 /* .car file */
61 setlocale(LC_NUMERIC, "C");
62
63 cardata = joe_load_car(stream->uri);
64
65 joe_load_object(context, "body.joe", model);
66 joe_load_object(context, "interior.joe", model);
67 joe_load_object(context, "glass.joe", model);
68
69 /* wheels */
70 object = joe_load_object(context, "wheel_front.joe", model);
71 joe_object_flip_x(object);
72 value = g_hash_table_lookup(cardata, "wheel-FL.position");
73 if(value != NULL)
74 {
75 joe_parse_vertex(value, &x, &y, &z);
76 g3d_matrix_identity(matrix);
77 g3d_matrix_translate(y, x, z, matrix);
78 g3d_object_transform(object, matrix);
79 }
80
81 object = joe_load_object(context, "wheel_front.joe", model);
82 value = g_hash_table_lookup(cardata, "wheel-FR.position");
83 if(value != NULL)
84 {
85 joe_parse_vertex(value, &x, &y, &z);
86 g3d_matrix_identity(matrix);
87 g3d_matrix_translate(y, x, z, matrix);
88 g3d_object_transform(object, matrix);
89 }
90
91 object = joe_load_object(context, "wheel_rear.joe", model);
92 joe_object_flip_x(object);
93 value = g_hash_table_lookup(cardata, "wheel-RL.position");
94 if(value != NULL)
95 {
96 joe_parse_vertex(value, &x, &y, &z);
97 g3d_matrix_identity(matrix);
98 g3d_matrix_translate(y, x, z, matrix);
99 g3d_object_transform(object, matrix);
100 }
101
102 object = joe_load_object(context, "wheel_rear.joe", model);
103 value = g_hash_table_lookup(cardata, "wheel-RR.position");
104 if(value != NULL)
105 {
106 joe_parse_vertex(value, &x, &y, &z);
107 g3d_matrix_identity(matrix);
108 g3d_matrix_translate(y, x, z, matrix);
109 g3d_object_transform(object, matrix);
110 }
111
112 joe_destroy_car(cardata);
113 rval = TRUE;
114 }
115 else
116 {
117 /* .joe file */
118 rval = (joe_load_object(context, stream->uri, model) != NULL);
119 }
120
121 g3d_matrix_identity(matrix);
122 g3d_matrix_rotate_xyz(G_PI * -90.0 / 180, 0.0, 0.0, matrix);
123 g3d_model_transform(model, matrix);
124
125 return rval;
126}
127
128EAPI
129gchar *plugin_description(void)
130{
131 return g_strdup("VDrift models.");
132}
133
134EAPI
135gchar **plugin_extensions(void)
136{
137 return g_strsplit("joe:car", ":", 0);
138}
139
140/*****************************************************************************/
141
142G3DObject *joe_load_object(G3DContext *context, const gchar *filename,
143 G3DModel *model)
144{
145 G3DStream *stream;
146 gchar *basename, *texname;
147 G3DObject *object;
148 G3DMaterial *material;
149 G3DFace *face;
150 G3DImage *image;
151 GSList *item;
152 guint32 magic, version;
153 guint32 num_faces, num_frames, num_verts, num_texcoords, num_normals;
154 gint32 frame, i, j, index;
155 guint16 *tex_indices, *normal_indices;
156 G3DFloat *normals = NULL, *texcoords = NULL;
157
158 stream = g3d_stream_open_file(filename, "rb");
159 if(stream == NULL) {
160 g_critical("JOE: failed to read '%s'", filename);
161 return NULL;
162 }
163
164 magic = g3d_stream_read_int32_be(stream);
165 if(magic != G3D_IFF_MKID('I','D','P','2')) {
166 g_critical("JOE: wrong magic in '%s'", filename);
167 g3d_stream_close(stream);
168 return NULL;
169 }
170
171 /* base file name for object name & texture loading */
172 basename = g_path_get_basename(filename);
173
174 /* version 3 */
175
176 version = g3d_stream_read_int32_le(stream);
177 num_faces = g3d_stream_read_int32_le(stream);
178 num_frames = g3d_stream_read_int32_le(stream);
179
180 printf("JOE: faces: %d, frames: %d\n", num_faces, num_frames);
181
182 /* create object */
183 object = g_new0(G3DObject, 1);
184 object->name = g_strdup(basename);
185 model->objects = g_slist_append(model->objects, object);
186
187 /* load texture image */
188 memcpy(basename + strlen(basename) - 3, "png", 3);
189 texname = g_strdup_printf("textures/%s", basename);
190 image = g3d_texture_load_cached(context, model, texname);
191 if(image == NULL)
192 g_warning("JOE: failed to load texture '%s'\n", texname);
193 else
194 image->tex_id = g_str_hash(texname);
195 g_free(texname);
196
197 /* create default material */
198 material = g3d_material_new();
199 material->name = g_strdup("default material");
200 material->tex_image = image;
201 object->materials = g_slist_append(object->materials, material);
202
203 /* frames */
204 for(frame = 0; frame < 1; frame ++) {
205 /* create temporary storage */
206 tex_indices = g_new0(guint16, num_faces * 3 * 3);
207 normal_indices = g_new0(guint16, num_faces * 3 * 2);
208
209 /* faces blob */
210 for(i = 0; i < num_faces; i ++) {
211 face = g_new0(G3DFace, 1);
212 face->material = material;
213 face->vertex_count = 3;
214 face->vertex_indices = g_new0(guint32, 3);
215
216 for(j = 0; j < 3; j ++)
217 face->vertex_indices[j] = g3d_stream_read_int16_le(stream);
218
219 /* normalIndex */
220 for(j = 0; j < 3; j ++)
221 normal_indices[i * 3 + j] = g3d_stream_read_int16_le(stream);
222
223 /* textureIndex */
224 /* JOE_MAX_TEXTURES times, 1x for version 3 */
225 for(j = 0; j < 3; j ++)
226 tex_indices[i * 3 + j] = g3d_stream_read_int16_le(stream);
227
228 object->faces = g_slist_append(object->faces, face);
229 }
230
231 /* num_verts */
232 num_verts = g3d_stream_read_int32_le(stream);
233
234 /* num_texcoords */
235 num_texcoords = g3d_stream_read_int32_le(stream);
236 if(num_texcoords != 0)
237 texcoords = g_new0(G3DFloat, num_texcoords * 2);
238
239 /* num_normals */
240 num_normals = g3d_stream_read_int32_le(stream);
241 if(num_normals != 0)
242 normals = g_new0(G3DFloat, num_normals * 3);
243
244 g_debug("JOE: verts: %d, texcoords: %d, normals: %d\n",
245 num_verts, num_texcoords, num_normals);
246
247 /* verts blob */
248 object->vertex_count = num_verts;
249 object->vertex_data = g_new0(G3DFloat, num_verts * 3);
250 for(i = 0; i < num_verts; i ++) {
251 object->vertex_data[i * 3 + 0] = g3d_stream_read_float_le(stream);
252 object->vertex_data[i * 3 + 1] = g3d_stream_read_float_le(stream);
253 object->vertex_data[i * 3 + 2] = g3d_stream_read_float_le(stream);
254 }
255
256 /* normals blob */
257 for(i = 0; i < num_normals; i ++) {
258 normals[i * 3 + 0] = - g3d_stream_read_float_le(stream);
259 normals[i * 3 + 1] = - g3d_stream_read_float_le(stream);
260 normals[i * 3 + 2] = - g3d_stream_read_float_le(stream);
261 }
262
263 /* texcoords blob */
264 for(i = 0; i < num_texcoords; i ++) {
265 texcoords[i * 2 + 0] = g3d_stream_read_float_le(stream);
266 texcoords[i * 2 + 1] = g3d_stream_read_float_le(stream);
267 }
268
269 /* fix faces */
270 for(item = object->faces, i = 0; item != NULL; item = item->next, i ++)
271 {
272 face = (G3DFace *)item->data;
273
274 face->flags |= G3D_FLAG_FAC_NORMALS;
275 if(image != NULL) face->flags |= G3D_FLAG_FAC_TEXMAP;
276
277 face->normals = g_new0(G3DFloat, 3 * 3);
278 face->tex_image = image;
279 face->tex_vertex_count = 3;
280 face->tex_vertex_data = g_new0(G3DFloat, 3 * 2);
281 for(j = 0; j < 3; j ++)
282 {
283 index = normal_indices[i * 3 + j];
284 face->normals[j * 3 + 0] = normals[index * 3 + 0];
285 face->normals[j * 3 + 1] = normals[index * 3 + 1];
286 face->normals[j * 3 + 2] = normals[index * 3 + 2];
287
288 index = tex_indices[i * 3 + j];
289 face->tex_vertex_data[j * 2 + 0] = texcoords[index * 2 + 0];
290 face->tex_vertex_data[j * 2 + 1] = texcoords[index * 2 + 1];
291 }
292 }
293
294 /* clear temporary storage */
295 g_free(normal_indices);
296 g_free(tex_indices);
297
298 if(normals != NULL)
299 {
300 g_free(normals);
301 normals = NULL;
302 }
303
304 if(texcoords != NULL)
305 {
306 g_free(texcoords);
307 texcoords = NULL;
308 }
309 }
310
311 /* clean up */
312 g_free(basename);
313 g3d_stream_close(stream);
314
315 return object;
316}
317
318GHashTable *joe_load_car(const gchar *filename)
319{
320 G3DStream *stream;
321 GHashTable *ht;
322 gchar buffer[2048 + 1], section[256], varname[256], value[256];
323 gchar *ep;
324
325 stream = g3d_stream_open_file(filename, "r");
326 if(stream == NULL) {
327 g_critical("JOE: failed to read '%s'", filename);
328 return NULL;
329 }
330
331 ht = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free);
332
333 memset(section, 0, 256);
334
335 while(!g3d_stream_eof(stream)) {
336 g3d_stream_read_line(stream, buffer, 2048);
337 if((buffer[0] == '\0') || (buffer[0] == '\n'))
338 continue;
339
340 if(buffer[0] == '[') {
341 /* section title */
342 if(sscanf(buffer, "[ %s ]", section) != 1) {
343 g_warning("JOE: CAR: failed to read section title '%s'\n",
344 buffer);
345 }
346 } else {
347 /* property */
348 ep = strchr(buffer, '=');
349 if(ep != NULL)
350 {
351 memset(varname, 0, 256);
352 strncpy(varname, buffer, (ep - buffer));
353 g_strstrip(varname);
354
355 strcpy(value, ep + 1);
356 g_strstrip(value);
357#if DEBUG > 0
358 g_debug("JOE: %s.%s = %s", section, varname, value);
359#endif
360 g_hash_table_insert(ht,
361 g_strdup_printf("%s.%s", section, varname),
362 g_strdup(value));
363 }
364 }
365 }
366
367 return ht;
368}
369
370void joe_destroy_car(GHashTable *hashtable)
371{
372 g_hash_table_destroy(hashtable);
373}
374
375gboolean joe_parse_vertex(const gchar *text, G3DFloat *x, G3DFloat *y, G3DFloat *z)
376{
377 return (sscanf(text, G3D_SCANF_FLOAT ", " G3D_SCANF_FLOAT ", " G3D_SCANF_FLOAT, x, y, z) == 3);
378}
379
380void joe_object_flip_x(G3DObject *object)
381{
382 guint32 i;
383
384 for(i = 0; i < object->vertex_count; i ++)
385 object->vertex_data[i * 3 + 0] *= -1;
386}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/Makefile
new file mode 100644
index 0000000..43766b6
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/Makefile
@@ -0,0 +1,514 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_kmz/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_kmz
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_kmz_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_kmz_la_OBJECTS = imp_kmz.lo
59imp_kmz_la_OBJECTS = $(am_imp_kmz_la_OBJECTS)
60am_imp_kmz_la_rpath = -rpath \
61 $(pluginimpdir)
62DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
63depcomp = $(SHELL) $(top_srcdir)/config/depcomp
64am__depfiles_maybe = depfiles
65COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
66 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
67LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
68 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
69 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
70CCLD = $(CC)
71LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
72 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
73 $(LDFLAGS) -o $@
74SOURCES = $(imp_kmz_la_SOURCES)
75DIST_SOURCES = $(imp_kmz_la_SOURCES)
76ETAGS = etags
77CTAGS = ctags
78DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
79ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
80AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
81AR = ar
82AS = as
83AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
84AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
85AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
86AWK = gawk
87CC = gcc
88CCDEPMODE = depmode=gcc3
89CFLAGS = -g -O2
90CPP = gcc -E
91CPPFLAGS =
92CXX = g++
93CXXCPP = g++ -E
94CXXDEPMODE = depmode=gcc3
95CXXFLAGS = -g -O2
96CYGPATH_W = echo
97DBG_CFLAGS = -O2
98DEBUG = 0
99DEFS = -DHAVE_CONFIG_H
100DEPDIR = .deps
101DLLTOOL = dlltool
102ECHO = echo
103ECHO_C =
104ECHO_N = -n
105ECHO_T =
106EGREP = /bin/grep -E
107EXEEXT =
108F77 =
109FFLAGS =
110GDKPIXBUF_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
111GDKPIXBUF_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
112GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
113GLIB_GENMARSHAL = glib-genmarshal
114GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
115GLIB_MKENUMS = glib-mkenums
116GOBJECT_QUERY = gobject-query
117GREP = /bin/grep
118GTKDOC_CHECK = /usr/bin/gtkdoc-check
119GTK_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
120GTK_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
121HTML_DIR = ${datadir}/gtk-doc/html
122INSTALL = /usr/bin/install -c
123INSTALL_DATA = ${INSTALL} -m 644
124INSTALL_PROGRAM = ${INSTALL}
125INSTALL_SCRIPT = ${INSTALL}
126INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
127LDFLAGS =
128LEX = flex
129LEXLIB = -lfl
130LEX_OUTPUT_ROOT = lex.yy
131LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
132LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
133LIBOBJS =
134LIBS = -lm
135LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
136LIBXML2_CFLAGS = -I/usr/include/libxml2
137LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
138LN_S = ln -s
139LTLIBOBJS =
140LTVERSION = 0:8:0
141MAGIC_LIBS = -lmagic
142MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
143MATH_LIBS = -lm
144MKDIR_P = /bin/mkdir -p
145OBJDUMP = objdump
146OBJEXT = o
147PACKAGE = libg3d
148PACKAGE_BUGREPORT =
149PACKAGE_NAME =
150PACKAGE_STRING =
151PACKAGE_TARNAME =
152PACKAGE_VERSION =
153PATH_SEPARATOR = :
154PKG_CONFIG = /usr/bin/pkg-config
155PLUGINS_LDFLAGS = -avoid-version -export-dynamic
156RANLIB = ranlib
157SET_MAKE =
158SHELL = /bin/bash
159STRIP = strip
160VERSION = 0.0.8
161XML2_CONFIG = /usr/bin/xml2-config
162XML_CPPFLAGS = -I/usr/include/libxml2
163XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
164Z_CFLAGS =
165Z_LIBS = -lz
166abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz
167abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz
168abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
170ac_ct_CC = gcc
171ac_ct_CXX = g++
172ac_ct_F77 =
173am__include = include
174am__leading_dot = .
175am__quote =
176am__tar = ${AMTAR} chof - "$$tardir"
177am__untar = ${AMTAR} xf -
178bindir = ${exec_prefix}/bin
179build = x86_64-unknown-linux-gnu
180build_alias =
181build_cpu = x86_64
182build_os = linux-gnu
183build_vendor = unknown
184builddir = .
185datadir = ${datarootdir}
186datarootdir = ${prefix}/share
187docdir = ${datarootdir}/doc/${PACKAGE}
188dvidir = ${docdir}
189exec_prefix = ${prefix}
190host = x86_64-unknown-linux-gnu
191host_alias =
192host_cpu = x86_64
193host_os = linux-gnu
194host_vendor = unknown
195htmldir = ${docdir}
196includedir = ${prefix}/include
197infodir = ${datarootdir}/info
198install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
199libdir = ${exec_prefix}/lib
200libexecdir = ${exec_prefix}/libexec
201localedir = ${datarootdir}/locale
202localstatedir = ${prefix}/var
203mandir = ${datarootdir}/man
204mkdir_p = /bin/mkdir -p
205oldincludedir = /usr/include
206pdfdir = ${docdir}
207prefix = /usr/local
208program_transform_name = s,x,x,
209psdir = ${docdir}
210sbindir = ${exec_prefix}/sbin
211sharedstatedir = ${prefix}/com
212srcdir = .
213sysconfdir = ${prefix}/etc
214target_alias =
215top_builddir = ../../..
216top_srcdir = ../../..
217pluginimpdir = $(pkglibdir)/plugins/import
218pluginimp_LTLIBRARIES = imp_kmz.la
219AM_CFLAGS = \
220 -Wall -ansi -pedantic \
221 -DG_LOG_DOMAIN=\"LibG3D\" \
222 -O2 -DDEBUG=0 \
223 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 \
224 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
225
226INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include
227AM_LDFLAGS = \
228 -no-undefined -module \
229 -avoid-version -export-dynamic
230
231imp_kmz_la_SOURCES = imp_kmz.c
232imp_kmz_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 \
233 -L/usr/lib/x86_64-linux-gnu -lxml2
234
235all: all-am
236
237.SUFFIXES:
238.SUFFIXES: .c .lo .o .obj
239$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
240 @for dep in $?; do \
241 case '$(am__configure_deps)' in \
242 *$$dep*) \
243 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
244 && exit 0; \
245 exit 1;; \
246 esac; \
247 done; \
248 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_kmz/Makefile'; \
249 cd $(top_srcdir) && \
250 $(AUTOMAKE) --gnu plugins/import/imp_kmz/Makefile
251.PRECIOUS: Makefile
252Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
253 @case '$?' in \
254 *config.status*) \
255 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
256 *) \
257 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
258 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
259 esac;
260
261$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263
264$(top_srcdir)/configure: $(am__configure_deps)
265 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
266$(ACLOCAL_M4): $(am__aclocal_m4_deps)
267 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
268install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
269 @$(NORMAL_INSTALL)
270 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
271 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
272 if test -f $$p; then \
273 f=$(am__strip_dir) \
274 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
275 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
276 else :; fi; \
277 done
278
279uninstall-pluginimpLTLIBRARIES:
280 @$(NORMAL_UNINSTALL)
281 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
282 p=$(am__strip_dir) \
283 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
284 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
285 done
286
287clean-pluginimpLTLIBRARIES:
288 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
289 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
290 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
291 test "$$dir" != "$$p" || dir=.; \
292 echo "rm -f \"$${dir}/so_locations\""; \
293 rm -f "$${dir}/so_locations"; \
294 done
295imp_kmz.la: $(imp_kmz_la_OBJECTS) $(imp_kmz_la_DEPENDENCIES)
296 $(LINK) $(am_imp_kmz_la_rpath) $(imp_kmz_la_OBJECTS) $(imp_kmz_la_LIBADD) $(LIBS)
297
298mostlyclean-compile:
299 -rm -f *.$(OBJEXT)
300
301distclean-compile:
302 -rm -f *.tab.c
303
304include ./$(DEPDIR)/imp_kmz.Plo
305
306.c.o:
307 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
308 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
309# source='$<' object='$@' libtool=no \
310# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
311# $(COMPILE) -c $<
312
313.c.obj:
314 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
315 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
316# source='$<' object='$@' libtool=no \
317# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
318# $(COMPILE) -c `$(CYGPATH_W) '$<'`
319
320.c.lo:
321 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
322 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
323# source='$<' object='$@' libtool=yes \
324# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
325# $(LTCOMPILE) -c -o $@ $<
326
327mostlyclean-libtool:
328 -rm -f *.lo
329
330clean-libtool:
331 -rm -rf .libs _libs
332
333ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
334 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
335 unique=`for i in $$list; do \
336 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
337 done | \
338 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
339 END { if (nonempty) { for (i in files) print i; }; }'`; \
340 mkid -fID $$unique
341tags: TAGS
342
343TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
344 $(TAGS_FILES) $(LISP)
345 tags=; \
346 here=`pwd`; \
347 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
348 unique=`for i in $$list; do \
349 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
350 done | \
351 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
352 END { if (nonempty) { for (i in files) print i; }; }'`; \
353 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
354 test -n "$$unique" || unique=$$empty_fix; \
355 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
356 $$tags $$unique; \
357 fi
358ctags: CTAGS
359CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
360 $(TAGS_FILES) $(LISP)
361 tags=; \
362 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
363 unique=`for i in $$list; do \
364 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
365 done | \
366 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
367 END { if (nonempty) { for (i in files) print i; }; }'`; \
368 test -z "$(CTAGS_ARGS)$$tags$$unique" \
369 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
370 $$tags $$unique
371
372GTAGS:
373 here=`$(am__cd) $(top_builddir) && pwd` \
374 && cd $(top_srcdir) \
375 && gtags -i $(GTAGS_ARGS) $$here
376
377distclean-tags:
378 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
379
380distdir: $(DISTFILES)
381 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
382 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
383 list='$(DISTFILES)'; \
384 dist_files=`for file in $$list; do echo $$file; done | \
385 sed -e "s|^$$srcdirstrip/||;t" \
386 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
387 case $$dist_files in \
388 */*) $(MKDIR_P) `echo "$$dist_files" | \
389 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
390 sort -u` ;; \
391 esac; \
392 for file in $$dist_files; do \
393 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
394 if test -d $$d/$$file; then \
395 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
396 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
397 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
398 fi; \
399 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
400 else \
401 test -f $(distdir)/$$file \
402 || cp -p $$d/$$file $(distdir)/$$file \
403 || exit 1; \
404 fi; \
405 done
406check-am: all-am
407check: check-am
408all-am: Makefile $(LTLIBRARIES)
409installdirs:
410 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
411 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
412 done
413install: install-am
414install-exec: install-exec-am
415install-data: install-data-am
416uninstall: uninstall-am
417
418install-am: all-am
419 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
420
421installcheck: installcheck-am
422install-strip:
423 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
424 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
425 `test -z '$(STRIP)' || \
426 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
427mostlyclean-generic:
428
429clean-generic:
430
431distclean-generic:
432 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
433
434maintainer-clean-generic:
435 @echo "This command is intended for maintainers to use"
436 @echo "it deletes files that may require special tools to rebuild."
437clean: clean-am
438
439clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
440 mostlyclean-am
441
442distclean: distclean-am
443 -rm -rf ./$(DEPDIR)
444 -rm -f Makefile
445distclean-am: clean-am distclean-compile distclean-generic \
446 distclean-tags
447
448dvi: dvi-am
449
450dvi-am:
451
452html: html-am
453
454info: info-am
455
456info-am:
457
458install-data-am: install-pluginimpLTLIBRARIES
459
460install-dvi: install-dvi-am
461
462install-exec-am:
463
464install-html: install-html-am
465
466install-info: install-info-am
467
468install-man:
469
470install-pdf: install-pdf-am
471
472install-ps: install-ps-am
473
474installcheck-am:
475
476maintainer-clean: maintainer-clean-am
477 -rm -rf ./$(DEPDIR)
478 -rm -f Makefile
479maintainer-clean-am: distclean-am maintainer-clean-generic
480
481mostlyclean: mostlyclean-am
482
483mostlyclean-am: mostlyclean-compile mostlyclean-generic \
484 mostlyclean-libtool
485
486pdf: pdf-am
487
488pdf-am:
489
490ps: ps-am
491
492ps-am:
493
494uninstall-am: uninstall-pluginimpLTLIBRARIES
495
496.MAKE: install-am install-strip
497
498.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
499 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
500 distclean-compile distclean-generic distclean-libtool \
501 distclean-tags distdir dvi dvi-am html html-am info info-am \
502 install install-am install-data install-data-am install-dvi \
503 install-dvi-am install-exec install-exec-am install-html \
504 install-html-am install-info install-info-am install-man \
505 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
506 install-ps install-ps-am install-strip installcheck \
507 installcheck-am installdirs maintainer-clean \
508 maintainer-clean-generic mostlyclean mostlyclean-compile \
509 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
510 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
511
512# Tell versions [3.59,3.63) of GNU make to not export all variables.
513# Otherwise a system limit (for SysV at least) may be exceeded.
514.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/Makefile.am
new file mode 100644
index 0000000..17f747d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/Makefile.am
@@ -0,0 +1,26 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if HAVE_LIBXML2
4if HAVE_LIBGSF
5pluginimp_LTLIBRARIES = imp_kmz.la
6endif
7endif
8
9AM_CFLAGS = \
10 -Wall -ansi -pedantic \
11 -DG_LOG_DOMAIN=\"LibG3D\" \
12 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
13 @GLIB_CFLAGS@ @LIBXML2_CFLAGS@ \
14 @LIBGSF_CFLAGS@
15
16INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include
17
18AM_LDFLAGS = \
19 -no-undefined -module \
20 @PLUGINS_LDFLAGS@
21
22LIBTOOL += --quiet
23
24imp_kmz_la_SOURCES = imp_kmz.c
25imp_kmz_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ @LIBGSF_LIBS@ \
26 @LIBXML2_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/Makefile.in
new file mode 100644
index 0000000..b519d28
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/Makefile.in
@@ -0,0 +1,514 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_kmz
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_kmz_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_kmz_la_OBJECTS = imp_kmz.lo
59imp_kmz_la_OBJECTS = $(am_imp_kmz_la_OBJECTS)
60@HAVE_LIBGSF_TRUE@@HAVE_LIBXML2_TRUE@am_imp_kmz_la_rpath = -rpath \
61@HAVE_LIBGSF_TRUE@@HAVE_LIBXML2_TRUE@ $(pluginimpdir)
62DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
63depcomp = $(SHELL) $(top_srcdir)/config/depcomp
64am__depfiles_maybe = depfiles
65COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
66 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
67LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
68 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
69 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
70CCLD = $(CC)
71LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
72 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
73 $(LDFLAGS) -o $@
74SOURCES = $(imp_kmz_la_SOURCES)
75DIST_SOURCES = $(imp_kmz_la_SOURCES)
76ETAGS = etags
77CTAGS = ctags
78DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
79ACLOCAL = @ACLOCAL@
80AMTAR = @AMTAR@
81AR = @AR@
82AS = @AS@
83AUTOCONF = @AUTOCONF@
84AUTOHEADER = @AUTOHEADER@
85AUTOMAKE = @AUTOMAKE@
86AWK = @AWK@
87CC = @CC@
88CCDEPMODE = @CCDEPMODE@
89CFLAGS = @CFLAGS@
90CPP = @CPP@
91CPPFLAGS = @CPPFLAGS@
92CXX = @CXX@
93CXXCPP = @CXXCPP@
94CXXDEPMODE = @CXXDEPMODE@
95CXXFLAGS = @CXXFLAGS@
96CYGPATH_W = @CYGPATH_W@
97DBG_CFLAGS = @DBG_CFLAGS@
98DEBUG = @DEBUG@
99DEFS = @DEFS@
100DEPDIR = @DEPDIR@
101DLLTOOL = @DLLTOOL@
102ECHO = @ECHO@
103ECHO_C = @ECHO_C@
104ECHO_N = @ECHO_N@
105ECHO_T = @ECHO_T@
106EGREP = @EGREP@
107EXEEXT = @EXEEXT@
108F77 = @F77@
109FFLAGS = @FFLAGS@
110GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
111GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
112GLIB_CFLAGS = @GLIB_CFLAGS@
113GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
114GLIB_LIBS = @GLIB_LIBS@
115GLIB_MKENUMS = @GLIB_MKENUMS@
116GOBJECT_QUERY = @GOBJECT_QUERY@
117GREP = @GREP@
118GTKDOC_CHECK = @GTKDOC_CHECK@
119GTK_CFLAGS = @GTK_CFLAGS@
120GTK_LIBS = @GTK_LIBS@
121HTML_DIR = @HTML_DIR@
122INSTALL = @INSTALL@
123INSTALL_DATA = @INSTALL_DATA@
124INSTALL_PROGRAM = @INSTALL_PROGRAM@
125INSTALL_SCRIPT = @INSTALL_SCRIPT@
126INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
127LDFLAGS = @LDFLAGS@
128LEX = @LEX@
129LEXLIB = @LEXLIB@
130LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
131LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
132LIBGSF_LIBS = @LIBGSF_LIBS@
133LIBOBJS = @LIBOBJS@
134LIBS = @LIBS@
135LIBTOOL = @LIBTOOL@ --quiet
136LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
137LIBXML2_LIBS = @LIBXML2_LIBS@
138LN_S = @LN_S@
139LTLIBOBJS = @LTLIBOBJS@
140LTVERSION = @LTVERSION@
141MAGIC_LIBS = @MAGIC_LIBS@
142MAKEINFO = @MAKEINFO@
143MATH_LIBS = @MATH_LIBS@
144MKDIR_P = @MKDIR_P@
145OBJDUMP = @OBJDUMP@
146OBJEXT = @OBJEXT@
147PACKAGE = @PACKAGE@
148PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
149PACKAGE_NAME = @PACKAGE_NAME@
150PACKAGE_STRING = @PACKAGE_STRING@
151PACKAGE_TARNAME = @PACKAGE_TARNAME@
152PACKAGE_VERSION = @PACKAGE_VERSION@
153PATH_SEPARATOR = @PATH_SEPARATOR@
154PKG_CONFIG = @PKG_CONFIG@
155PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
156RANLIB = @RANLIB@
157SET_MAKE = @SET_MAKE@
158SHELL = @SHELL@
159STRIP = @STRIP@
160VERSION = @VERSION@
161XML2_CONFIG = @XML2_CONFIG@
162XML_CPPFLAGS = @XML_CPPFLAGS@
163XML_LIBS = @XML_LIBS@
164Z_CFLAGS = @Z_CFLAGS@
165Z_LIBS = @Z_LIBS@
166abs_builddir = @abs_builddir@
167abs_srcdir = @abs_srcdir@
168abs_top_builddir = @abs_top_builddir@
169abs_top_srcdir = @abs_top_srcdir@
170ac_ct_CC = @ac_ct_CC@
171ac_ct_CXX = @ac_ct_CXX@
172ac_ct_F77 = @ac_ct_F77@
173am__include = @am__include@
174am__leading_dot = @am__leading_dot@
175am__quote = @am__quote@
176am__tar = @am__tar@
177am__untar = @am__untar@
178bindir = @bindir@
179build = @build@
180build_alias = @build_alias@
181build_cpu = @build_cpu@
182build_os = @build_os@
183build_vendor = @build_vendor@
184builddir = @builddir@
185datadir = @datadir@
186datarootdir = @datarootdir@
187docdir = @docdir@
188dvidir = @dvidir@
189exec_prefix = @exec_prefix@
190host = @host@
191host_alias = @host_alias@
192host_cpu = @host_cpu@
193host_os = @host_os@
194host_vendor = @host_vendor@
195htmldir = @htmldir@
196includedir = @includedir@
197infodir = @infodir@
198install_sh = @install_sh@
199libdir = @libdir@
200libexecdir = @libexecdir@
201localedir = @localedir@
202localstatedir = @localstatedir@
203mandir = @mandir@
204mkdir_p = @mkdir_p@
205oldincludedir = @oldincludedir@
206pdfdir = @pdfdir@
207prefix = @prefix@
208program_transform_name = @program_transform_name@
209psdir = @psdir@
210sbindir = @sbindir@
211sharedstatedir = @sharedstatedir@
212srcdir = @srcdir@
213sysconfdir = @sysconfdir@
214target_alias = @target_alias@
215top_builddir = @top_builddir@
216top_srcdir = @top_srcdir@
217pluginimpdir = $(pkglibdir)/plugins/import
218@HAVE_LIBGSF_TRUE@@HAVE_LIBXML2_TRUE@pluginimp_LTLIBRARIES = imp_kmz.la
219AM_CFLAGS = \
220 -Wall -ansi -pedantic \
221 -DG_LOG_DOMAIN=\"LibG3D\" \
222 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
223 @GLIB_CFLAGS@ @LIBXML2_CFLAGS@ \
224 @LIBGSF_CFLAGS@
225
226INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include
227AM_LDFLAGS = \
228 -no-undefined -module \
229 @PLUGINS_LDFLAGS@
230
231imp_kmz_la_SOURCES = imp_kmz.c
232imp_kmz_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ @LIBGSF_LIBS@ \
233 @LIBXML2_LIBS@
234
235all: all-am
236
237.SUFFIXES:
238.SUFFIXES: .c .lo .o .obj
239$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
240 @for dep in $?; do \
241 case '$(am__configure_deps)' in \
242 *$$dep*) \
243 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
244 && exit 0; \
245 exit 1;; \
246 esac; \
247 done; \
248 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_kmz/Makefile'; \
249 cd $(top_srcdir) && \
250 $(AUTOMAKE) --gnu plugins/import/imp_kmz/Makefile
251.PRECIOUS: Makefile
252Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
253 @case '$?' in \
254 *config.status*) \
255 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
256 *) \
257 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
258 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
259 esac;
260
261$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263
264$(top_srcdir)/configure: $(am__configure_deps)
265 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
266$(ACLOCAL_M4): $(am__aclocal_m4_deps)
267 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
268install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
269 @$(NORMAL_INSTALL)
270 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
271 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
272 if test -f $$p; then \
273 f=$(am__strip_dir) \
274 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
275 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
276 else :; fi; \
277 done
278
279uninstall-pluginimpLTLIBRARIES:
280 @$(NORMAL_UNINSTALL)
281 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
282 p=$(am__strip_dir) \
283 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
284 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
285 done
286
287clean-pluginimpLTLIBRARIES:
288 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
289 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
290 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
291 test "$$dir" != "$$p" || dir=.; \
292 echo "rm -f \"$${dir}/so_locations\""; \
293 rm -f "$${dir}/so_locations"; \
294 done
295imp_kmz.la: $(imp_kmz_la_OBJECTS) $(imp_kmz_la_DEPENDENCIES)
296 $(LINK) $(am_imp_kmz_la_rpath) $(imp_kmz_la_OBJECTS) $(imp_kmz_la_LIBADD) $(LIBS)
297
298mostlyclean-compile:
299 -rm -f *.$(OBJEXT)
300
301distclean-compile:
302 -rm -f *.tab.c
303
304@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_kmz.Plo@am__quote@
305
306.c.o:
307@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
308@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
309@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
310@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
311@am__fastdepCC_FALSE@ $(COMPILE) -c $<
312
313.c.obj:
314@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
315@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
316@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
317@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
318@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
319
320.c.lo:
321@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
322@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
323@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
324@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
325@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
326
327mostlyclean-libtool:
328 -rm -f *.lo
329
330clean-libtool:
331 -rm -rf .libs _libs
332
333ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
334 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
335 unique=`for i in $$list; do \
336 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
337 done | \
338 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
339 END { if (nonempty) { for (i in files) print i; }; }'`; \
340 mkid -fID $$unique
341tags: TAGS
342
343TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
344 $(TAGS_FILES) $(LISP)
345 tags=; \
346 here=`pwd`; \
347 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
348 unique=`for i in $$list; do \
349 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
350 done | \
351 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
352 END { if (nonempty) { for (i in files) print i; }; }'`; \
353 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
354 test -n "$$unique" || unique=$$empty_fix; \
355 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
356 $$tags $$unique; \
357 fi
358ctags: CTAGS
359CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
360 $(TAGS_FILES) $(LISP)
361 tags=; \
362 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
363 unique=`for i in $$list; do \
364 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
365 done | \
366 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
367 END { if (nonempty) { for (i in files) print i; }; }'`; \
368 test -z "$(CTAGS_ARGS)$$tags$$unique" \
369 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
370 $$tags $$unique
371
372GTAGS:
373 here=`$(am__cd) $(top_builddir) && pwd` \
374 && cd $(top_srcdir) \
375 && gtags -i $(GTAGS_ARGS) $$here
376
377distclean-tags:
378 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
379
380distdir: $(DISTFILES)
381 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
382 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
383 list='$(DISTFILES)'; \
384 dist_files=`for file in $$list; do echo $$file; done | \
385 sed -e "s|^$$srcdirstrip/||;t" \
386 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
387 case $$dist_files in \
388 */*) $(MKDIR_P) `echo "$$dist_files" | \
389 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
390 sort -u` ;; \
391 esac; \
392 for file in $$dist_files; do \
393 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
394 if test -d $$d/$$file; then \
395 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
396 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
397 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
398 fi; \
399 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
400 else \
401 test -f $(distdir)/$$file \
402 || cp -p $$d/$$file $(distdir)/$$file \
403 || exit 1; \
404 fi; \
405 done
406check-am: all-am
407check: check-am
408all-am: Makefile $(LTLIBRARIES)
409installdirs:
410 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
411 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
412 done
413install: install-am
414install-exec: install-exec-am
415install-data: install-data-am
416uninstall: uninstall-am
417
418install-am: all-am
419 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
420
421installcheck: installcheck-am
422install-strip:
423 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
424 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
425 `test -z '$(STRIP)' || \
426 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
427mostlyclean-generic:
428
429clean-generic:
430
431distclean-generic:
432 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
433
434maintainer-clean-generic:
435 @echo "This command is intended for maintainers to use"
436 @echo "it deletes files that may require special tools to rebuild."
437clean: clean-am
438
439clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
440 mostlyclean-am
441
442distclean: distclean-am
443 -rm -rf ./$(DEPDIR)
444 -rm -f Makefile
445distclean-am: clean-am distclean-compile distclean-generic \
446 distclean-tags
447
448dvi: dvi-am
449
450dvi-am:
451
452html: html-am
453
454info: info-am
455
456info-am:
457
458install-data-am: install-pluginimpLTLIBRARIES
459
460install-dvi: install-dvi-am
461
462install-exec-am:
463
464install-html: install-html-am
465
466install-info: install-info-am
467
468install-man:
469
470install-pdf: install-pdf-am
471
472install-ps: install-ps-am
473
474installcheck-am:
475
476maintainer-clean: maintainer-clean-am
477 -rm -rf ./$(DEPDIR)
478 -rm -f Makefile
479maintainer-clean-am: distclean-am maintainer-clean-generic
480
481mostlyclean: mostlyclean-am
482
483mostlyclean-am: mostlyclean-compile mostlyclean-generic \
484 mostlyclean-libtool
485
486pdf: pdf-am
487
488pdf-am:
489
490ps: ps-am
491
492ps-am:
493
494uninstall-am: uninstall-pluginimpLTLIBRARIES
495
496.MAKE: install-am install-strip
497
498.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
499 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
500 distclean-compile distclean-generic distclean-libtool \
501 distclean-tags distdir dvi dvi-am html html-am info info-am \
502 install install-am install-data install-data-am install-dvi \
503 install-dvi-am install-exec install-exec-am install-html \
504 install-html-am install-info install-info-am install-man \
505 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
506 install-ps install-ps-am install-strip installcheck \
507 installcheck-am installdirs maintainer-clean \
508 maintainer-clean-generic mostlyclean mostlyclean-compile \
509 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
510 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
511
512# Tell versions [3.59,3.63) of GNU make to not export all variables.
513# Otherwise a system limit (for SysV at least) may be exceeded.
514.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/imp_kmz.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/imp_kmz.c
new file mode 100644
index 0000000..9f44f87
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/imp_kmz.c
@@ -0,0 +1,168 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <g3d/config.h>
24
25#include <locale.h>
26#include <string.h>
27
28#include <libxml/parser.h>
29#include <libxml/tree.h>
30
31#include <g3d/types.h>
32#include <g3d/stream.h>
33#include <g3d/plugins.h>
34
35static gchar * kmz_find_model(xmlDocPtr xmldoc);
36
37static int kml_stream_read_cb(gpointer ctx, gchar *buffer, gint len)
38{
39 return g3d_stream_read((G3DStream *)ctx, buffer, len);
40}
41
42EAPI
43gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
44 G3DModel *model)
45{
46 G3DStream *stream_dockml, *stream_model;
47 gchar *daename;
48 xmlDocPtr xmldoc;
49 gboolean retval = FALSE, from_zip = TRUE;
50
51 setlocale(LC_NUMERIC, "C");
52
53 xmlInitParser();
54
55 stream_dockml = g3d_stream_open_zip_from_stream(stream, "doc.kml");
56 if(stream_dockml == NULL) {
57 g_debug("KMZ: failed to read 'doc.kml' from '%s', trying to "
58 "use input stream as 'doc.kml'", stream->uri);
59 stream_dockml = stream;
60 from_zip = FALSE;
61 }
62
63 xmldoc = xmlReadIO(kml_stream_read_cb, NULL,
64 stream_dockml, "file:///tmp/doc.kml", NULL, 0);
65 if(xmldoc) {
66 g_debug("KMZ: parsed doc.kml");
67
68 daename = kmz_find_model(xmldoc);
69 if(daename != NULL) {
70/*#if DEBUG > 1*/
71 g_debug("KMZ: loading '%s' from '%s'", daename, stream->uri);
72/*#endif*/
73 if(from_zip)
74 stream_model = g3d_stream_open_zip_from_stream(stream,
75 daename);
76 else
77 stream_model = g3d_stream_open_file(daename, "r");
78
79 if(stream_model != NULL) {
80 retval = g3d_plugins_load_model_from_stream(context,
81 stream_model, model);
82 g3d_stream_close(stream_model);
83 } else {
84 g_warning("KMZ: failed to find '%s'%s%s%s", daename,
85 from_zip ? " in '" : "",
86 from_zip ? stream->uri : "",
87 from_zip ? "'" : "");
88 }
89 }
90
91 xmlFreeDoc(xmldoc);
92 }
93
94 if(from_zip)
95 g3d_stream_close(stream_dockml);
96 xmlCleanupParser();
97
98 return retval;
99}
100
101EAPI
102gchar *plugin_description(void)
103{
104 return g_strdup("Keyhole Markup Language model containers.");
105}
106
107EAPI
108gchar **plugin_extensions(void)
109{
110 return g_strsplit("kmz:kml:zip", ":", 0);
111}
112
113/*****************************************************************************/
114
115static xmlNodePtr kmz_find_node(xmlNodePtr parentnode, const gchar *path)
116{
117 gchar *slash, *elem;
118 xmlNodePtr node, pathnode;
119 gboolean last = FALSE;
120
121 slash = strchr(path, '/');
122 if(slash)
123 elem = g_strndup(path, slash - path);
124 else {
125 elem = g_strdup(path);
126 last = TRUE;
127 }
128
129 if(strlen(elem) == 0)
130 return NULL;
131
132 for(node = parentnode->children; node != NULL; node = node->next) {
133 if(node->type != XML_ELEMENT_NODE)
134 continue;
135 if(xmlStrcmp(node->name, (xmlChar *)elem) == 0) {
136 if(last) {
137 g_free(elem);
138 return node;
139 } else {
140 pathnode = kmz_find_node(node, slash + 1);
141 if(pathnode != NULL) {
142 g_free(elem);
143 return pathnode;
144 }
145 }
146 }
147 }
148 g_free(elem);
149 return NULL;
150}
151
152static gchar * kmz_find_model(xmlDocPtr xmldoc)
153{
154 xmlNodePtr rootnode, hrefnode;
155
156 rootnode = xmlDocGetRootElement(xmldoc);
157 if(rootnode == NULL)
158 return NULL;
159
160 hrefnode = kmz_find_node(rootnode, "Folder/Placemark/Model/Link/href");
161 if(hrefnode)
162 return (gchar *)hrefnode->children->content;
163 hrefnode = kmz_find_node(rootnode, "Placemark/Model/Link/href");
164 if(hrefnode)
165 return (gchar *)hrefnode->children->content;
166 return NULL;
167}
168
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/Makefile
new file mode 100644
index 0000000..f57ae4d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/Makefile
@@ -0,0 +1,519 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_ldraw/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_ldraw
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_ldraw_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_ldraw_la_OBJECTS = imp_ldraw.lo imp_ldraw_part.lo \
59 imp_ldraw_library.lo imp_ldraw_color.lo imp_ldraw_mpd.lo
60imp_ldraw_la_OBJECTS = $(am_imp_ldraw_la_OBJECTS)
61DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_ldraw_la_SOURCES)
74DIST_SOURCES = $(imp_ldraw_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
79AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
80AR = ar
81AS = as
82AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
83AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
84AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
85AWK = gawk
86CC = gcc
87CCDEPMODE = depmode=gcc3
88CFLAGS = -g -O2
89CPP = gcc -E
90CPPFLAGS =
91CXX = g++
92CXXCPP = g++ -E
93CXXDEPMODE = depmode=gcc3
94CXXFLAGS = -g -O2
95CYGPATH_W = echo
96DBG_CFLAGS = -O2
97DEBUG = 0
98DEFS = -DHAVE_CONFIG_H
99DEPDIR = .deps
100DLLTOOL = dlltool
101ECHO = echo
102ECHO_C =
103ECHO_N = -n
104ECHO_T =
105EGREP = /bin/grep -E
106EXEEXT =
107F77 =
108FFLAGS =
109GDKPIXBUF_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
110GDKPIXBUF_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
111GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
112GLIB_GENMARSHAL = glib-genmarshal
113GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
114GLIB_MKENUMS = glib-mkenums
115GOBJECT_QUERY = gobject-query
116GREP = /bin/grep
117GTKDOC_CHECK = /usr/bin/gtkdoc-check
118GTK_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
119GTK_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
120HTML_DIR = ${datadir}/gtk-doc/html
121INSTALL = /usr/bin/install -c
122INSTALL_DATA = ${INSTALL} -m 644
123INSTALL_PROGRAM = ${INSTALL}
124INSTALL_SCRIPT = ${INSTALL}
125INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
126LDFLAGS =
127LEX = flex
128LEXLIB = -lfl
129LEX_OUTPUT_ROOT = lex.yy
130LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
131LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
132LIBOBJS =
133LIBS = -lm
134LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
135LIBXML2_CFLAGS = -I/usr/include/libxml2
136LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
137LN_S = ln -s
138LTLIBOBJS =
139LTVERSION = 0:8:0
140MAGIC_LIBS = -lmagic
141MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
142MATH_LIBS = -lm
143MKDIR_P = /bin/mkdir -p
144OBJDUMP = objdump
145OBJEXT = o
146PACKAGE = libg3d
147PACKAGE_BUGREPORT =
148PACKAGE_NAME =
149PACKAGE_STRING =
150PACKAGE_TARNAME =
151PACKAGE_VERSION =
152PATH_SEPARATOR = :
153PKG_CONFIG = /usr/bin/pkg-config
154PLUGINS_LDFLAGS = -avoid-version -export-dynamic
155RANLIB = ranlib
156SET_MAKE =
157SHELL = /bin/bash
158STRIP = strip
159VERSION = 0.0.8
160XML2_CONFIG = /usr/bin/xml2-config
161XML_CPPFLAGS = -I/usr/include/libxml2
162XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
163Z_CFLAGS =
164Z_LIBS = -lz
165abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw
166abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw
167abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169ac_ct_CC = gcc
170ac_ct_CXX = g++
171ac_ct_F77 =
172am__include = include
173am__leading_dot = .
174am__quote =
175am__tar = ${AMTAR} chof - "$$tardir"
176am__untar = ${AMTAR} xf -
177bindir = ${exec_prefix}/bin
178build = x86_64-unknown-linux-gnu
179build_alias =
180build_cpu = x86_64
181build_os = linux-gnu
182build_vendor = unknown
183builddir = .
184datadir = ${datarootdir}
185datarootdir = ${prefix}/share
186docdir = ${datarootdir}/doc/${PACKAGE}
187dvidir = ${docdir}
188exec_prefix = ${prefix}
189host = x86_64-unknown-linux-gnu
190host_alias =
191host_cpu = x86_64
192host_os = linux-gnu
193host_vendor = unknown
194htmldir = ${docdir}
195includedir = ${prefix}/include
196infodir = ${datarootdir}/info
197install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
198libdir = ${exec_prefix}/lib
199libexecdir = ${exec_prefix}/libexec
200localedir = ${datarootdir}/locale
201localstatedir = ${prefix}/var
202mandir = ${datarootdir}/man
203mkdir_p = /bin/mkdir -p
204oldincludedir = /usr/include
205pdfdir = ${docdir}
206prefix = /usr/local
207program_transform_name = s,x,x,
208psdir = ${docdir}
209sbindir = ${exec_prefix}/sbin
210sharedstatedir = ${prefix}/com
211srcdir = .
212sysconfdir = ${prefix}/etc
213target_alias =
214top_builddir = ../../..
215top_srcdir = ../../..
216pluginimpdir = $(pkglibdir)/plugins/import
217pluginimp_LTLIBRARIES = imp_ldraw.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 -O2 -DDEBUG=0 \
222 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 -avoid-version -export-dynamic
228
229imp_ldraw_la_SOURCES = imp_ldraw.c imp_ldraw_misc.h imp_ldraw_types.h \
230 imp_ldraw_part.c imp_ldraw_part.h \
231 imp_ldraw_library.c imp_ldraw_library.h \
232 imp_ldraw_color.c imp_ldraw_color.h \
233 imp_ldraw_mpd.c imp_ldraw_mpd.h
234
235imp_ldraw_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
236all: all-am
237
238.SUFFIXES:
239.SUFFIXES: .c .lo .o .obj
240$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
241 @for dep in $?; do \
242 case '$(am__configure_deps)' in \
243 *$$dep*) \
244 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
245 && exit 0; \
246 exit 1;; \
247 esac; \
248 done; \
249 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_ldraw/Makefile'; \
250 cd $(top_srcdir) && \
251 $(AUTOMAKE) --gnu plugins/import/imp_ldraw/Makefile
252.PRECIOUS: Makefile
253Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
254 @case '$?' in \
255 *config.status*) \
256 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
257 *) \
258 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
259 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
260 esac;
261
262$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264
265$(top_srcdir)/configure: $(am__configure_deps)
266 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
267$(ACLOCAL_M4): $(am__aclocal_m4_deps)
268 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
269install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
270 @$(NORMAL_INSTALL)
271 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
272 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
273 if test -f $$p; then \
274 f=$(am__strip_dir) \
275 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
276 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
277 else :; fi; \
278 done
279
280uninstall-pluginimpLTLIBRARIES:
281 @$(NORMAL_UNINSTALL)
282 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
283 p=$(am__strip_dir) \
284 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
285 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
286 done
287
288clean-pluginimpLTLIBRARIES:
289 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
290 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
291 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
292 test "$$dir" != "$$p" || dir=.; \
293 echo "rm -f \"$${dir}/so_locations\""; \
294 rm -f "$${dir}/so_locations"; \
295 done
296imp_ldraw.la: $(imp_ldraw_la_OBJECTS) $(imp_ldraw_la_DEPENDENCIES)
297 $(LINK) -rpath $(pluginimpdir) $(imp_ldraw_la_OBJECTS) $(imp_ldraw_la_LIBADD) $(LIBS)
298
299mostlyclean-compile:
300 -rm -f *.$(OBJEXT)
301
302distclean-compile:
303 -rm -f *.tab.c
304
305include ./$(DEPDIR)/imp_ldraw.Plo
306include ./$(DEPDIR)/imp_ldraw_color.Plo
307include ./$(DEPDIR)/imp_ldraw_library.Plo
308include ./$(DEPDIR)/imp_ldraw_mpd.Plo
309include ./$(DEPDIR)/imp_ldraw_part.Plo
310
311.c.o:
312 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
313 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
314# source='$<' object='$@' libtool=no \
315# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
316# $(COMPILE) -c $<
317
318.c.obj:
319 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
320 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
321# source='$<' object='$@' libtool=no \
322# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
323# $(COMPILE) -c `$(CYGPATH_W) '$<'`
324
325.c.lo:
326 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
327 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
328# source='$<' object='$@' libtool=yes \
329# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
330# $(LTCOMPILE) -c -o $@ $<
331
332mostlyclean-libtool:
333 -rm -f *.lo
334
335clean-libtool:
336 -rm -rf .libs _libs
337
338ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
339 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
340 unique=`for i in $$list; do \
341 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
342 done | \
343 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
344 END { if (nonempty) { for (i in files) print i; }; }'`; \
345 mkid -fID $$unique
346tags: TAGS
347
348TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
349 $(TAGS_FILES) $(LISP)
350 tags=; \
351 here=`pwd`; \
352 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
353 unique=`for i in $$list; do \
354 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
355 done | \
356 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
357 END { if (nonempty) { for (i in files) print i; }; }'`; \
358 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
359 test -n "$$unique" || unique=$$empty_fix; \
360 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
361 $$tags $$unique; \
362 fi
363ctags: CTAGS
364CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
365 $(TAGS_FILES) $(LISP)
366 tags=; \
367 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
368 unique=`for i in $$list; do \
369 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
370 done | \
371 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
372 END { if (nonempty) { for (i in files) print i; }; }'`; \
373 test -z "$(CTAGS_ARGS)$$tags$$unique" \
374 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
375 $$tags $$unique
376
377GTAGS:
378 here=`$(am__cd) $(top_builddir) && pwd` \
379 && cd $(top_srcdir) \
380 && gtags -i $(GTAGS_ARGS) $$here
381
382distclean-tags:
383 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
384
385distdir: $(DISTFILES)
386 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
387 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
388 list='$(DISTFILES)'; \
389 dist_files=`for file in $$list; do echo $$file; done | \
390 sed -e "s|^$$srcdirstrip/||;t" \
391 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
392 case $$dist_files in \
393 */*) $(MKDIR_P) `echo "$$dist_files" | \
394 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
395 sort -u` ;; \
396 esac; \
397 for file in $$dist_files; do \
398 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
399 if test -d $$d/$$file; then \
400 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
401 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
402 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
403 fi; \
404 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
405 else \
406 test -f $(distdir)/$$file \
407 || cp -p $$d/$$file $(distdir)/$$file \
408 || exit 1; \
409 fi; \
410 done
411check-am: all-am
412check: check-am
413all-am: Makefile $(LTLIBRARIES)
414installdirs:
415 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
416 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
417 done
418install: install-am
419install-exec: install-exec-am
420install-data: install-data-am
421uninstall: uninstall-am
422
423install-am: all-am
424 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
425
426installcheck: installcheck-am
427install-strip:
428 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
429 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
430 `test -z '$(STRIP)' || \
431 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
432mostlyclean-generic:
433
434clean-generic:
435
436distclean-generic:
437 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
438
439maintainer-clean-generic:
440 @echo "This command is intended for maintainers to use"
441 @echo "it deletes files that may require special tools to rebuild."
442clean: clean-am
443
444clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
445 mostlyclean-am
446
447distclean: distclean-am
448 -rm -rf ./$(DEPDIR)
449 -rm -f Makefile
450distclean-am: clean-am distclean-compile distclean-generic \
451 distclean-tags
452
453dvi: dvi-am
454
455dvi-am:
456
457html: html-am
458
459info: info-am
460
461info-am:
462
463install-data-am: install-pluginimpLTLIBRARIES
464
465install-dvi: install-dvi-am
466
467install-exec-am:
468
469install-html: install-html-am
470
471install-info: install-info-am
472
473install-man:
474
475install-pdf: install-pdf-am
476
477install-ps: install-ps-am
478
479installcheck-am:
480
481maintainer-clean: maintainer-clean-am
482 -rm -rf ./$(DEPDIR)
483 -rm -f Makefile
484maintainer-clean-am: distclean-am maintainer-clean-generic
485
486mostlyclean: mostlyclean-am
487
488mostlyclean-am: mostlyclean-compile mostlyclean-generic \
489 mostlyclean-libtool
490
491pdf: pdf-am
492
493pdf-am:
494
495ps: ps-am
496
497ps-am:
498
499uninstall-am: uninstall-pluginimpLTLIBRARIES
500
501.MAKE: install-am install-strip
502
503.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
504 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
505 distclean-compile distclean-generic distclean-libtool \
506 distclean-tags distdir dvi dvi-am html html-am info info-am \
507 install install-am install-data install-data-am install-dvi \
508 install-dvi-am install-exec install-exec-am install-html \
509 install-html-am install-info install-info-am install-man \
510 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
511 install-ps install-ps-am install-strip installcheck \
512 installcheck-am installdirs maintainer-clean \
513 maintainer-clean-generic mostlyclean mostlyclean-compile \
514 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
515 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
516
517# Tell versions [3.59,3.63) of GNU make to not export all variables.
518# Otherwise a system limit (for SysV at least) may be exceeded.
519.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/Makefile.am
new file mode 100644
index 0000000..f27cd09
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/Makefile.am
@@ -0,0 +1,24 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_ldraw.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_ldraw_la_SOURCES = imp_ldraw.c imp_ldraw_misc.h imp_ldraw_types.h \
20 imp_ldraw_part.c imp_ldraw_part.h \
21 imp_ldraw_library.c imp_ldraw_library.h \
22 imp_ldraw_color.c imp_ldraw_color.h \
23 imp_ldraw_mpd.c imp_ldraw_mpd.h
24imp_ldraw_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/Makefile.in
new file mode 100644
index 0000000..94985b2
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/Makefile.in
@@ -0,0 +1,519 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_ldraw
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_ldraw_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_ldraw_la_OBJECTS = imp_ldraw.lo imp_ldraw_part.lo \
59 imp_ldraw_library.lo imp_ldraw_color.lo imp_ldraw_mpd.lo
60imp_ldraw_la_OBJECTS = $(am_imp_ldraw_la_OBJECTS)
61DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_ldraw_la_SOURCES)
74DIST_SOURCES = $(imp_ldraw_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = @ACLOCAL@
79AMTAR = @AMTAR@
80AR = @AR@
81AS = @AS@
82AUTOCONF = @AUTOCONF@
83AUTOHEADER = @AUTOHEADER@
84AUTOMAKE = @AUTOMAKE@
85AWK = @AWK@
86CC = @CC@
87CCDEPMODE = @CCDEPMODE@
88CFLAGS = @CFLAGS@
89CPP = @CPP@
90CPPFLAGS = @CPPFLAGS@
91CXX = @CXX@
92CXXCPP = @CXXCPP@
93CXXDEPMODE = @CXXDEPMODE@
94CXXFLAGS = @CXXFLAGS@
95CYGPATH_W = @CYGPATH_W@
96DBG_CFLAGS = @DBG_CFLAGS@
97DEBUG = @DEBUG@
98DEFS = @DEFS@
99DEPDIR = @DEPDIR@
100DLLTOOL = @DLLTOOL@
101ECHO = @ECHO@
102ECHO_C = @ECHO_C@
103ECHO_N = @ECHO_N@
104ECHO_T = @ECHO_T@
105EGREP = @EGREP@
106EXEEXT = @EXEEXT@
107F77 = @F77@
108FFLAGS = @FFLAGS@
109GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
110GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
111GLIB_CFLAGS = @GLIB_CFLAGS@
112GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
113GLIB_LIBS = @GLIB_LIBS@
114GLIB_MKENUMS = @GLIB_MKENUMS@
115GOBJECT_QUERY = @GOBJECT_QUERY@
116GREP = @GREP@
117GTKDOC_CHECK = @GTKDOC_CHECK@
118GTK_CFLAGS = @GTK_CFLAGS@
119GTK_LIBS = @GTK_LIBS@
120HTML_DIR = @HTML_DIR@
121INSTALL = @INSTALL@
122INSTALL_DATA = @INSTALL_DATA@
123INSTALL_PROGRAM = @INSTALL_PROGRAM@
124INSTALL_SCRIPT = @INSTALL_SCRIPT@
125INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
126LDFLAGS = @LDFLAGS@
127LEX = @LEX@
128LEXLIB = @LEXLIB@
129LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
130LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
131LIBGSF_LIBS = @LIBGSF_LIBS@
132LIBOBJS = @LIBOBJS@
133LIBS = @LIBS@
134LIBTOOL = @LIBTOOL@ --quiet
135LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
136LIBXML2_LIBS = @LIBXML2_LIBS@
137LN_S = @LN_S@
138LTLIBOBJS = @LTLIBOBJS@
139LTVERSION = @LTVERSION@
140MAGIC_LIBS = @MAGIC_LIBS@
141MAKEINFO = @MAKEINFO@
142MATH_LIBS = @MATH_LIBS@
143MKDIR_P = @MKDIR_P@
144OBJDUMP = @OBJDUMP@
145OBJEXT = @OBJEXT@
146PACKAGE = @PACKAGE@
147PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
148PACKAGE_NAME = @PACKAGE_NAME@
149PACKAGE_STRING = @PACKAGE_STRING@
150PACKAGE_TARNAME = @PACKAGE_TARNAME@
151PACKAGE_VERSION = @PACKAGE_VERSION@
152PATH_SEPARATOR = @PATH_SEPARATOR@
153PKG_CONFIG = @PKG_CONFIG@
154PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
155RANLIB = @RANLIB@
156SET_MAKE = @SET_MAKE@
157SHELL = @SHELL@
158STRIP = @STRIP@
159VERSION = @VERSION@
160XML2_CONFIG = @XML2_CONFIG@
161XML_CPPFLAGS = @XML_CPPFLAGS@
162XML_LIBS = @XML_LIBS@
163Z_CFLAGS = @Z_CFLAGS@
164Z_LIBS = @Z_LIBS@
165abs_builddir = @abs_builddir@
166abs_srcdir = @abs_srcdir@
167abs_top_builddir = @abs_top_builddir@
168abs_top_srcdir = @abs_top_srcdir@
169ac_ct_CC = @ac_ct_CC@
170ac_ct_CXX = @ac_ct_CXX@
171ac_ct_F77 = @ac_ct_F77@
172am__include = @am__include@
173am__leading_dot = @am__leading_dot@
174am__quote = @am__quote@
175am__tar = @am__tar@
176am__untar = @am__untar@
177bindir = @bindir@
178build = @build@
179build_alias = @build_alias@
180build_cpu = @build_cpu@
181build_os = @build_os@
182build_vendor = @build_vendor@
183builddir = @builddir@
184datadir = @datadir@
185datarootdir = @datarootdir@
186docdir = @docdir@
187dvidir = @dvidir@
188exec_prefix = @exec_prefix@
189host = @host@
190host_alias = @host_alias@
191host_cpu = @host_cpu@
192host_os = @host_os@
193host_vendor = @host_vendor@
194htmldir = @htmldir@
195includedir = @includedir@
196infodir = @infodir@
197install_sh = @install_sh@
198libdir = @libdir@
199libexecdir = @libexecdir@
200localedir = @localedir@
201localstatedir = @localstatedir@
202mandir = @mandir@
203mkdir_p = @mkdir_p@
204oldincludedir = @oldincludedir@
205pdfdir = @pdfdir@
206prefix = @prefix@
207program_transform_name = @program_transform_name@
208psdir = @psdir@
209sbindir = @sbindir@
210sharedstatedir = @sharedstatedir@
211srcdir = @srcdir@
212sysconfdir = @sysconfdir@
213target_alias = @target_alias@
214top_builddir = @top_builddir@
215top_srcdir = @top_srcdir@
216pluginimpdir = $(pkglibdir)/plugins/import
217pluginimp_LTLIBRARIES = imp_ldraw.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
222 @GLIB_CFLAGS@
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 @PLUGINS_LDFLAGS@
228
229imp_ldraw_la_SOURCES = imp_ldraw.c imp_ldraw_misc.h imp_ldraw_types.h \
230 imp_ldraw_part.c imp_ldraw_part.h \
231 imp_ldraw_library.c imp_ldraw_library.h \
232 imp_ldraw_color.c imp_ldraw_color.h \
233 imp_ldraw_mpd.c imp_ldraw_mpd.h
234
235imp_ldraw_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
236all: all-am
237
238.SUFFIXES:
239.SUFFIXES: .c .lo .o .obj
240$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
241 @for dep in $?; do \
242 case '$(am__configure_deps)' in \
243 *$$dep*) \
244 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
245 && exit 0; \
246 exit 1;; \
247 esac; \
248 done; \
249 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_ldraw/Makefile'; \
250 cd $(top_srcdir) && \
251 $(AUTOMAKE) --gnu plugins/import/imp_ldraw/Makefile
252.PRECIOUS: Makefile
253Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
254 @case '$?' in \
255 *config.status*) \
256 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
257 *) \
258 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
259 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
260 esac;
261
262$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264
265$(top_srcdir)/configure: $(am__configure_deps)
266 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
267$(ACLOCAL_M4): $(am__aclocal_m4_deps)
268 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
269install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
270 @$(NORMAL_INSTALL)
271 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
272 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
273 if test -f $$p; then \
274 f=$(am__strip_dir) \
275 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
276 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
277 else :; fi; \
278 done
279
280uninstall-pluginimpLTLIBRARIES:
281 @$(NORMAL_UNINSTALL)
282 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
283 p=$(am__strip_dir) \
284 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
285 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
286 done
287
288clean-pluginimpLTLIBRARIES:
289 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
290 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
291 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
292 test "$$dir" != "$$p" || dir=.; \
293 echo "rm -f \"$${dir}/so_locations\""; \
294 rm -f "$${dir}/so_locations"; \
295 done
296imp_ldraw.la: $(imp_ldraw_la_OBJECTS) $(imp_ldraw_la_DEPENDENCIES)
297 $(LINK) -rpath $(pluginimpdir) $(imp_ldraw_la_OBJECTS) $(imp_ldraw_la_LIBADD) $(LIBS)
298
299mostlyclean-compile:
300 -rm -f *.$(OBJEXT)
301
302distclean-compile:
303 -rm -f *.tab.c
304
305@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ldraw.Plo@am__quote@
306@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ldraw_color.Plo@am__quote@
307@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ldraw_library.Plo@am__quote@
308@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ldraw_mpd.Plo@am__quote@
309@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ldraw_part.Plo@am__quote@
310
311.c.o:
312@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
313@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
314@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
315@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
316@am__fastdepCC_FALSE@ $(COMPILE) -c $<
317
318.c.obj:
319@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
320@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
321@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
322@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
323@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
324
325.c.lo:
326@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
327@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
328@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
329@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
330@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
331
332mostlyclean-libtool:
333 -rm -f *.lo
334
335clean-libtool:
336 -rm -rf .libs _libs
337
338ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
339 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
340 unique=`for i in $$list; do \
341 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
342 done | \
343 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
344 END { if (nonempty) { for (i in files) print i; }; }'`; \
345 mkid -fID $$unique
346tags: TAGS
347
348TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
349 $(TAGS_FILES) $(LISP)
350 tags=; \
351 here=`pwd`; \
352 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
353 unique=`for i in $$list; do \
354 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
355 done | \
356 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
357 END { if (nonempty) { for (i in files) print i; }; }'`; \
358 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
359 test -n "$$unique" || unique=$$empty_fix; \
360 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
361 $$tags $$unique; \
362 fi
363ctags: CTAGS
364CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
365 $(TAGS_FILES) $(LISP)
366 tags=; \
367 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
368 unique=`for i in $$list; do \
369 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
370 done | \
371 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
372 END { if (nonempty) { for (i in files) print i; }; }'`; \
373 test -z "$(CTAGS_ARGS)$$tags$$unique" \
374 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
375 $$tags $$unique
376
377GTAGS:
378 here=`$(am__cd) $(top_builddir) && pwd` \
379 && cd $(top_srcdir) \
380 && gtags -i $(GTAGS_ARGS) $$here
381
382distclean-tags:
383 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
384
385distdir: $(DISTFILES)
386 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
387 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
388 list='$(DISTFILES)'; \
389 dist_files=`for file in $$list; do echo $$file; done | \
390 sed -e "s|^$$srcdirstrip/||;t" \
391 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
392 case $$dist_files in \
393 */*) $(MKDIR_P) `echo "$$dist_files" | \
394 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
395 sort -u` ;; \
396 esac; \
397 for file in $$dist_files; do \
398 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
399 if test -d $$d/$$file; then \
400 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
401 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
402 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
403 fi; \
404 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
405 else \
406 test -f $(distdir)/$$file \
407 || cp -p $$d/$$file $(distdir)/$$file \
408 || exit 1; \
409 fi; \
410 done
411check-am: all-am
412check: check-am
413all-am: Makefile $(LTLIBRARIES)
414installdirs:
415 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
416 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
417 done
418install: install-am
419install-exec: install-exec-am
420install-data: install-data-am
421uninstall: uninstall-am
422
423install-am: all-am
424 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
425
426installcheck: installcheck-am
427install-strip:
428 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
429 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
430 `test -z '$(STRIP)' || \
431 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
432mostlyclean-generic:
433
434clean-generic:
435
436distclean-generic:
437 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
438
439maintainer-clean-generic:
440 @echo "This command is intended for maintainers to use"
441 @echo "it deletes files that may require special tools to rebuild."
442clean: clean-am
443
444clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
445 mostlyclean-am
446
447distclean: distclean-am
448 -rm -rf ./$(DEPDIR)
449 -rm -f Makefile
450distclean-am: clean-am distclean-compile distclean-generic \
451 distclean-tags
452
453dvi: dvi-am
454
455dvi-am:
456
457html: html-am
458
459info: info-am
460
461info-am:
462
463install-data-am: install-pluginimpLTLIBRARIES
464
465install-dvi: install-dvi-am
466
467install-exec-am:
468
469install-html: install-html-am
470
471install-info: install-info-am
472
473install-man:
474
475install-pdf: install-pdf-am
476
477install-ps: install-ps-am
478
479installcheck-am:
480
481maintainer-clean: maintainer-clean-am
482 -rm -rf ./$(DEPDIR)
483 -rm -f Makefile
484maintainer-clean-am: distclean-am maintainer-clean-generic
485
486mostlyclean: mostlyclean-am
487
488mostlyclean-am: mostlyclean-compile mostlyclean-generic \
489 mostlyclean-libtool
490
491pdf: pdf-am
492
493pdf-am:
494
495ps: ps-am
496
497ps-am:
498
499uninstall-am: uninstall-pluginimpLTLIBRARIES
500
501.MAKE: install-am install-strip
502
503.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
504 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
505 distclean-compile distclean-generic distclean-libtool \
506 distclean-tags distdir dvi dvi-am html html-am info info-am \
507 install install-am install-data install-data-am install-dvi \
508 install-dvi-am install-exec install-exec-am install-html \
509 install-html-am install-info install-info-am install-man \
510 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
511 install-ps install-ps-am install-strip installcheck \
512 installcheck-am installdirs maintainer-clean \
513 maintainer-clean-generic mostlyclean mostlyclean-compile \
514 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
515 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
516
517# Tell versions [3.59,3.63) of GNU make to not export all variables.
518# Otherwise a system limit (for SysV at least) may be exceeded.
519.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw.c
new file mode 100644
index 0000000..09a013d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw.c
@@ -0,0 +1,112 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24#include <stdio.h>
25
26#include <g3d/types.h>
27#include <g3d/stream.h>
28#include <g3d/matrix.h>
29#include <g3d/object.h>
30
31#include "imp_ldraw_types.h"
32#include "imp_ldraw_part.h"
33#include "imp_ldraw_library.h"
34#include "imp_ldraw_mpd.h"
35
36static gboolean ldraw_load_simple(G3DStream *stream, G3DModel *model,
37 LDrawLibrary *lib);
38
39
40EAPI
41gpointer plugin_init(G3DContext *context)
42{
43 return ldraw_library_init();
44}
45
46EAPI
47void plugin_cleanup(gpointer user_data)
48{
49 LDrawLibrary *lib = user_data;
50
51 ldraw_library_cleanup(lib);
52}
53
54EAPI
55gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
56 G3DModel *model, gpointer user_data)
57{
58 LDrawLibrary *lib = user_data;
59
60 g_return_val_if_fail(lib != NULL, FALSE);
61 if(lib->libdir == NULL) {
62 g_warning("LDraw: library not found, please set LDRAWDIR");
63 return FALSE;
64 }
65
66 lib->context = context;
67
68 if(g_ascii_strcasecmp(stream->uri + strlen(stream->uri) - 4, ".mpd") == 0)
69 return ldraw_mpd_load(stream, model, lib);
70 else
71 return ldraw_load_simple(stream, model, lib);
72
73 return TRUE;
74}
75
76EAPI
77gchar *plugin_description(void)
78{
79 return g_strdup("LDraw models.");
80}
81
82EAPI
83gchar **plugin_extensions(void)
84{
85 return g_strsplit("ldr:mpd:dat", ":", 0);
86}
87
88/*****************************************************************************/
89
90static gboolean ldraw_load_simple(G3DStream *stream, G3DModel *model,
91 LDrawLibrary *lib)
92{
93 LDrawPart *part;
94 G3DObject *object;
95 G3DFloat m[16];
96
97 part = g_new0(LDrawPart, 1);
98 part->name = g_path_get_basename(stream->uri);
99 part->stream = stream;
100 part->master = TRUE;
101
102 object = ldraw_part_get_object(part, lib);
103 if(object == NULL)
104 return FALSE;
105
106 g3d_matrix_identity(m);
107 g3d_matrix_rotate_xyz(0.0, 0.0, G_PI, m);
108 g3d_object_transform(object, m);
109 model->objects = g_slist_append(model->objects, object);
110 return TRUE;
111}
112
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_color.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_color.c
new file mode 100644
index 0000000..6b76e50
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_color.c
@@ -0,0 +1,124 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <g3d/material.h>
23
24#include "imp_ldraw_types.h"
25
26typedef struct {
27 gint32 id;
28 const gchar *name;
29 G3DFloat r;
30 G3DFloat g;
31 G3DFloat b;
32 G3DFloat a;
33} LDrawColorDef;
34
35static LDrawColorDef ldraw_colors[] = {
36 { 0, "Black", 0.13, 0.13, 0.13, 1.0 },
37 { 1, "Blue", 0.00, 0.20, 0.70, 1.0 },
38 { 2, "Green", 0.00, 0.55, 0.08, 1.0 },
39 { 3, "Teal", 0.00, 0.60, 0.62, 1.0 },
40 { 4, "Red", 0.77, 0.00, 0.15, 1.0 },
41 { 5, "Dark Pink", 0.87, 0.40, 0.58, 1.0 },
42 { 6, "Brown", 0.36, 0.13, 0.00, 1.0 },
43 { 7, "Gray", 0.76, 0.76, 0.76, 1.0 },
44 { 8, "Dark Gray", 0.39, 0.37, 0.32, 1.0 },
45 { 9, "Light Blue", 0.42, 0.67, 0.86, 1.0 },
46 { 10, "Bright Green", 0.42, 0.93, 0.56, 1.0 },
47 { 11, "Cyan", 0.20, 0.65, 0.65, 1.0 },
48 { 12, "Light Red", 1.00, 0.52, 0.48, 1.0 },
49 { 13, "Pink", 0.98, 0.64, 0.78, 1.0 },
50 { 14, "Yellow", 1.00, 0.86, 0.00, 1.0 },
51 { 15, "White", 1.00, 1.00, 1.00, 1.0 },
52
53 { 17, "Light Green", 0.73, 1.00, 0.81, 1.0 },
54 { 18, "Light Yellow", 0.99, 0.91, 0.59, 1.0 },
55 { 20, "Light Violet", 0.84, 0.77, 0.90, 1.0 },
56 { 28, "Dark Tan", 0.77, 0.59, 0.31, 1.0 },
57 { 32, "Trans Gray", 0.39, 0.37, 0.32, 0.9 },
58 { 33, "Trans Blue", 0.00, 0.13, 0.63, 0.9 },
59 { 36, "Trans Red", 0.77, 0.00, 0.15, 0.9 },
60 { 39, "Trans Light Gray", 0.76, 0.76, 0.76, 0.9 }, /* FIXME */
61 { 40, "Trans Gray", 0.39, 0.37, 0.32, 0.9 },
62 { 41, "Trans Light Cyan", 0.68, 0.94, 0.93, 0.95 },
63 { 46, "Trans Yellow", 0.79, 0.69, 0.00, 0.9 },
64 { 47, "Clear (trans white)", 1.00, 1.00, 1.00, 0.9 },
65 { 72, "Dark Stone Gray", 0.39, 0.37, 0.38, 1.0 },
66 { 272, "Dark Blue", 0.00, 0.11, 0.41, 1.0 },
67 { 288, "Dark Green", 0.15, 0.27, 0.17, 1.0 },
68 { 320, "Dark Red", 0.47, 0.00, 0.11, 1.0 },
69 { 334, "Chrome Gold", 0.88, 0.43, 0.07, 1.0 },
70 { 336, "Earth Orange", 0.82, 0.51, 0.02, 1.0 },
71 { 383, "Chrome Silver", 0.88, 0.88, 0.88, 1.0 },
72 { 431, "Light Green", 0.73, 1.00, 0.81, 1.0 },
73 { 463, "Light Red", 1.00, 0.52, 0.48, 1.0 },
74 { 484, "Dark Orange", 0.70, 0.24, 0.00, 1.0 },
75 { 494, "Electric Contact", 0.82, 0.82, 0.82, 1.0 },
76 { 495, "Light Yellow", 0.99, 0.91, 0.59, 1.0 },
77 { 503, "Light Gray", 0.90, 0.89, 0.85, 1.0 },
78
79 { -1, NULL, 0,0,0,0 }
80};
81
82gboolean ldraw_color_init(LDrawLibrary *lib)
83{
84 G3DMaterial *material;
85 gint32 i;
86
87 lib->colordb = g_hash_table_new(g_int_hash, g_int_equal);
88
89 for(i = 0; ldraw_colors[i].id >= 0; i ++) {
90 material = g3d_material_new();
91 material->name = g_strdup(ldraw_colors[i].name);
92 material->r = ldraw_colors[i].r;
93 material->g = ldraw_colors[i].g;
94 material->b = ldraw_colors[i].b;
95 material->a = ldraw_colors[i].a;
96 g_hash_table_insert(lib->colordb, &(ldraw_colors[i].id), material);
97 lib->colorlist = g_slist_append(lib->colorlist, material);
98#if DEBUG > 2
99 g_debug("LDraw: adding color '%s' with id %d",
100 ldraw_colors[i].name, ldraw_colors[i].id);
101#endif
102 }
103 return TRUE;
104}
105
106G3DMaterial *ldraw_color_lookup(LDrawLibrary *lib, guint32 colid)
107{
108 G3DMaterial *material;
109 guint32 fbid = 0;
110
111 /* current color */
112 if(colid == 16)
113 return NULL;
114
115 material = g_hash_table_lookup(lib->colordb, &colid);
116 if(material == NULL) { /* fall back */
117#if DEBUG > 0
118 g_debug("LDraw: failed to lookup color %u", colid);
119#endif
120 material = g_hash_table_lookup(lib->colordb, &fbid);
121 }
122 return material;
123}
124
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_color.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_color.h
new file mode 100644
index 0000000..e5844de
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_color.h
@@ -0,0 +1,30 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_LDRAW_COLOR_H
23#define _IMP_LDRAW_COLOR_H
24
25#include "imp_ldraw_types.h"
26
27gboolean ldraw_color_init(LDrawLibrary *lib);
28G3DMaterial *ldraw_color_lookup(LDrawLibrary *lib, guint32 colid);
29
30#endif /* _IMP_LDRAW_COLOR_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_library.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_library.c
new file mode 100644
index 0000000..aa07cdb
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_library.c
@@ -0,0 +1,175 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <string.h>
23
24#include <g3d/object.h>
25
26#include "imp_ldraw_types.h"
27#include "imp_ldraw_part.h"
28#include "imp_ldraw_color.h"
29#include "imp_ldraw_misc.h"
30
31static gboolean ldraw_library_add_dir(LDrawLibrary *lib, const gchar *subdir)
32{
33 LDrawPart *part;
34 const gchar *filename;
35 gchar *partdir, *strup;
36 GDir *dir;
37 GError *error;
38 gboolean prefix = FALSE;
39
40 partdir = g_strdup_printf("%s%c%s", lib->libdir, G_DIR_SEPARATOR, subdir);
41 dir = g_dir_open(partdir, 0, &error);
42 if(dir == NULL) {
43 g_warning("LDraw: failed to open directory '%s': %s", partdir,
44 error->message);
45 g_error_free(error);
46 g_free(partdir);
47 return FALSE;
48 }
49
50 if(path_sep(subdir))
51 prefix = TRUE;
52
53 filename = g_dir_read_name(dir);
54 while(filename) {
55 if(g_ascii_strcasecmp(filename + strlen(filename) - 4, ".dat") == 0) {
56#if DEBUG > 3
57 g_debug("LDraw: Library: adding '%s'", filename);
58#endif
59 part = g_new0(LDrawPart, 1);
60 part->filename = g_strdup_printf("%s%c%s",
61 partdir, G_DIR_SEPARATOR, filename);
62 strup = g_ascii_strup(filename, -1);
63 if(prefix)
64 part->name = g_strdup_printf("%s%c%s",
65 path_sep(subdir) + 1,
66 G_DIR_SEPARATOR, strup);
67 else
68 part->name = g_strdup(strup);
69 g_free(strup);
70 g_hash_table_insert(lib->partdb, part->name, part);
71 lib->partlist = g_slist_append(lib->partlist, part);
72 }
73 filename = g_dir_read_name(dir);
74 }
75 g_dir_close(dir);
76 g_free(partdir);
77
78 return TRUE;
79}
80
81LDrawLibrary *ldraw_library_init(void)
82{
83 LDrawLibrary *lib;
84 const gchar *lddir;
85
86 lib = g_new0(LDrawLibrary, 1);
87 lib->partdb = g_hash_table_new(g_str_hash, g_str_equal);
88
89 ldraw_color_init(lib);
90
91 lddir = g_getenv("LDRAWDIR");
92 if(lddir == NULL) /* warning is issued when trying to load a model */
93 return lib;
94
95 lib->libdir = g_strdup(lddir);
96
97 ldraw_library_add_dir(lib, "PARTS");
98 ldraw_library_add_dir(lib, "PARTS" G_DIR_SEPARATOR_S "S");
99 ldraw_library_add_dir(lib, "P");
100 ldraw_library_add_dir(lib, "P" G_DIR_SEPARATOR_S "48");
101
102 return lib;
103}
104
105void ldraw_library_cleanup(LDrawLibrary *lib)
106{
107 GSList *item;
108 LDrawPart *part;
109
110 item = lib->partlist;
111 while(item != NULL) {
112 part = item->data;
113 item = g_slist_remove(item, part);
114 ldraw_part_free(part);
115 }
116 g_hash_table_destroy(lib->partdb);
117 g_free(lib);
118}
119
120void ldraw_library_insert(LDrawLibrary *lib, gchar *name, gpointer data)
121{
122 g_hash_table_insert(lib->partdb, name, data);
123}
124
125G3DObject *ldraw_library_lookup(LDrawLibrary *lib, const gchar *name)
126{
127 LDrawPart *part;
128 gchar *strc;
129
130 part = g_hash_table_lookup(lib->partdb, name);
131 if(part == NULL) {
132 strc = g_ascii_strup(name, -1);
133 g_strdelimit(strc, "/\\", G_DIR_SEPARATOR);
134 part = g_hash_table_lookup(lib->partdb, strc);
135 g_free(strc);
136 }
137#if 0
138 if(part == NULL) {
139 strc = g_ascii_strdown(name, -1);
140 g_strdelimit(strc, "/\\", G_DIR_SEPARATOR);
141 part = g_hash_table_lookup(lib->partdb, strc);
142 g_free(strc);
143 }
144#endif
145 if(part == NULL) {
146 g_warning("LDraw: failed to find '%s' in library", name);
147 return NULL;
148 }
149 if(part->object == NULL) {
150 if(part->stream) {
151 /* MPD loader has a custom stream */
152 part->object = ldraw_part_get_object(part, lib);
153 } else if(part->filename) {
154 /* try to load part from standard library */
155 part->stream = g3d_stream_open_file(part->filename, "r");
156 if(part->stream) {
157 part->object = ldraw_part_get_object(part, lib);
158 g3d_stream_close(part->stream);
159 part->stream = NULL;
160 } else {
161 g_warning("LDraw: failed to open stream for '%s'",
162 part->filename);
163 }
164 } else {
165 g_warning("LDraw: don't know how to open part '%s'", part->name);
166 }
167
168 if(part->object == NULL) {
169 g_warning("LDraw: failed to load part '%s'", part->name);
170 return NULL;
171 }
172 }
173 return g3d_object_duplicate(part->object);
174}
175
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_library.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_library.h
new file mode 100644
index 0000000..39fa0f9
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_library.h
@@ -0,0 +1,32 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_LDRAW_LIBRARY_H
23#define _IMP_LDRAW_LIBRARY_H
24
25#include "imp_ldraw_types.h"
26
27LDrawLibrary *ldraw_library_init(void);
28void ldraw_library_cleanup(LDrawLibrary *lib);
29void ldraw_library_insert(LDrawLibrary *lib, gchar *name, gpointer data);
30G3DObject *ldraw_library_lookup(LDrawLibrary *lib, const gchar *name);
31
32#endif
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_misc.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_misc.h
new file mode 100644
index 0000000..16651d5
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_misc.h
@@ -0,0 +1,36 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_LDRAW_MISC_H
23#define _IMP_LDRAW_MISC_H
24
25#include <string.h>
26#include <glib.h>
27
28static inline gchar *path_sep(const gchar *text)
29{
30 gchar *p = strchr(text, '/');
31 if(p != NULL)
32 return p;
33 return strchr(text, '\\');
34}
35
36#endif
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_mpd.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_mpd.c
new file mode 100644
index 0000000..a699f2a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_mpd.c
@@ -0,0 +1,121 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <string.h>
23#include <stdio.h>
24
25#include <g3d/types.h>
26#include <g3d/matrix.h>
27#include <g3d/object.h>
28
29#include "imp_ldraw_types.h"
30#include "imp_ldraw_part.h"
31#include "imp_ldraw_library.h"
32
33static inline void ldraw_create_subpart(LDrawLibrary *lib, gchar *name,
34 gchar *buffer, GSList **partsp)
35{
36 G3DStream *substream;
37 LDrawPart *part;
38
39#if DEBUG > 2
40 g_debug("LDraw: adding sub-file %s to library", name);
41#endif
42
43 substream = g3d_stream_from_buffer((guint8 *)buffer, strlen(buffer),
44 name, TRUE);
45 if(substream == NULL) {
46 g_warning("LDraw: failed to create stream for %s", name);
47 return;
48 }
49 part = g_new0(LDrawPart, 1);
50 part->name = g_ascii_strup(name, -1);
51 part->stream = substream;
52
53 ldraw_library_insert(lib, part->name, part);
54 *partsp = g_slist_append(*partsp, part);
55}
56
57gboolean ldraw_mpd_load(G3DStream *stream, G3DModel *model,
58 LDrawLibrary *lib)
59{
60 G3DObject *object = NULL;
61 GSList *parts = NULL, *item;
62 LDrawPart *part;
63 gchar buffer[1024], name[256], *streambuf = NULL;
64 gsize size;
65 goffset off;
66 G3DFloat m[16];
67
68 while(!g3d_stream_eof(stream)) {
69 memset(buffer, 0, 1024);
70 g3d_stream_read_line(stream, buffer, 1023);
71 if(strncmp(buffer, "0 FILE ", 7) == 0) {
72 if(streambuf) {
73 ldraw_create_subpart(lib, name, streambuf, &parts);
74 streambuf = NULL;
75 }
76 memset(name, 0, 256);
77 if(sscanf(buffer + 7, "%255s", name) == 1)
78 streambuf = g_strdup("");
79 } else if(strncmp(buffer, "0 NOFILE", 8) == 0) {
80 if(streambuf) {
81 ldraw_create_subpart(lib, name, streambuf, &parts);
82 streambuf = NULL;
83 }
84 break;
85 } else if(streambuf) {
86 /* append line to buffer */
87 size = strlen(buffer) + strlen(streambuf) + 1;
88 off = strlen(streambuf);
89 streambuf = g_realloc(streambuf, size * sizeof(gchar));
90 strcpy(streambuf + off, buffer);
91 }
92 } /* !eof */
93
94 if(streambuf)
95 ldraw_create_subpart(lib, name, streambuf, &parts);
96
97 if(parts) {
98 part = parts->data;
99 part->master = TRUE;
100 object = ldraw_part_get_object(part, lib);
101 if(object != NULL) {
102 g3d_matrix_identity(m);
103 g3d_matrix_rotate_xyz(0.0, 0.0, G_PI, m);
104 g3d_object_transform(object, m);
105 model->objects = g_slist_append(model->objects, object);
106 }
107 }
108
109#if 1
110 /* close open streams */
111 for(item = parts; item != NULL; item = item->next) {
112 part = item->data;
113 if(part->stream) {
114 g3d_stream_close(part->stream);
115 part->stream = NULL;
116 }
117 }
118#endif
119 return (object != NULL);
120}
121
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_mpd.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_mpd.h
new file mode 100644
index 0000000..75a5f11
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_mpd.h
@@ -0,0 +1,33 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_LDRAW_MPD_H
23#define _IMP_LDRAW_MPD_H
24
25#include <g3d/types.h>
26#include <g3d/stream.h>
27
28#include "imp_ldraw_types.h"
29
30gboolean ldraw_mpd_load(G3DStream *stream, G3DModel *model,
31 LDrawLibrary *lib);
32
33#endif /* _IMP_LDRAW_MPD_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_part.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_part.c
new file mode 100644
index 0000000..9f7f608
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_part.c
@@ -0,0 +1,291 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <stdio.h>
23#include <string.h>
24
25#include <g3d/types.h>
26#include <g3d/context.h>
27#include <g3d/stream.h>
28#include <g3d/material.h>
29#include <g3d/matrix.h>
30#include <g3d/object.h>
31
32#include "imp_ldraw_types.h"
33#include "imp_ldraw_part.h"
34#include "imp_ldraw_library.h"
35#include "imp_ldraw_color.h"
36#include "imp_ldraw_misc.h"
37
38static gboolean ldraw_part_parse_meta(G3DObject *object, gchar *buffer)
39{
40 if(object->name == NULL) {
41 object->name = g_strdup(buffer);
42 return TRUE;
43 }
44#if DEBUG > 2
45 g_debug("META: %s", buffer);
46#endif
47 return TRUE;
48}
49
50static void ldraw_part_replace_material(G3DObject *object,
51 G3DMaterial *material)
52{
53 GSList *item;
54 G3DObject *sub;
55 G3DFace *face;
56
57 for(item = object->faces; item != NULL; item = item->next) {
58 face = item->data;
59 if(face->material == NULL)
60 face->material = material;
61 }
62 for(item = object->objects; item != NULL; item = item->next) {
63 sub = item->data;
64 ldraw_part_replace_material(sub, material);
65 }
66}
67
68static gboolean ldraw_part_parse_ref(G3DObject *object, gchar *buffer,
69 LDrawLibrary *lib)
70{
71 G3DObject *subobj;
72 G3DMaterial *material;
73 G3DFloat m[16], x, y, z;
74 guint32 colid;
75 gchar fname[256], *strp;
76
77 g3d_matrix_identity(m);
78 memset(fname, 0, 256);
79
80 if(sscanf(buffer, "%u "
81 G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " "
82 G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " "
83 G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " %255s",
84 &colid, &x, &y, &z,
85 m + 0 * 4 + 0, m + 1 * 4 + 0, m + 2 * 4 + 0,
86 m + 0 * 4 + 1, m + 1 * 4 + 1, m + 2 * 4 + 1,
87 m + 0 * 4 + 2, m + 1 * 4 + 2, m + 2 * 4 + 2,
88 fname) == 14) {
89
90 strp = path_sep(fname);
91 if(strp != NULL)
92 strp[0] = G_DIR_SEPARATOR;
93
94 subobj = ldraw_part_from_file(lib, fname);
95 if(!subobj)
96 subobj = ldraw_library_lookup(lib, fname);
97 if(subobj != NULL) {
98 g3d_object_transform(subobj, m);
99 g3d_matrix_identity(m);
100 g3d_matrix_translate(x, y, z, m);
101 g3d_object_transform(subobj, m);
102 if(colid != 16) {
103 material = ldraw_color_lookup(lib, colid);
104 ldraw_part_replace_material(subobj, material);
105 }
106 object->objects = g_slist_append(object->objects, subobj);
107 return TRUE;
108 }
109 }
110#if DEBUG > 1
111 g_warning("LDraw: failed to parse/process reference: %s", buffer);
112#endif
113 return FALSE;
114}
115
116static gboolean ldraw_part_parse_tri(G3DObject *object, gchar *buffer,
117 LDrawLibrary *lib)
118{
119 guint32 off, colid;
120 G3DFace *face;
121
122 off = object->vertex_count;
123 object->vertex_count += 3;
124 object->vertex_data = g_realloc(object->vertex_data,
125 object->vertex_count * 3 * sizeof(G3DFloat));
126 if(sscanf(buffer, "%u "
127 G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " "
128 G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " "
129 G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT,
130 &colid,
131 object->vertex_data + (off + 0) * 3 + 0,
132 object->vertex_data + (off + 0) * 3 + 1,
133 object->vertex_data + (off + 0) * 3 + 2,
134 object->vertex_data + (off + 1) * 3 + 0,
135 object->vertex_data + (off + 1) * 3 + 1,
136 object->vertex_data + (off + 1) * 3 + 2,
137 object->vertex_data + (off + 2) * 3 + 0,
138 object->vertex_data + (off + 2) * 3 + 1,
139 object->vertex_data + (off + 2) * 3 + 2) == 10) {
140
141 face = g_new0(G3DFace, 1);
142 face->material = ldraw_color_lookup(lib, colid);
143 face->vertex_count = 3;
144 face->vertex_indices = g_new0(guint32, 3);
145 face->vertex_indices[0] = off + 0;
146 face->vertex_indices[1] = off + 1;
147 face->vertex_indices[2] = off + 2;
148 object->faces = g_slist_append(object->faces, face);
149 return TRUE;
150 }
151 return FALSE;
152}
153
154static gboolean ldraw_part_parse_quad(G3DObject *object, gchar *buffer,
155 LDrawLibrary *lib)
156{
157 guint32 off, colid;
158 G3DFace *face;
159
160 off = object->vertex_count;
161 object->vertex_count += 4;
162 object->vertex_data = g_realloc(object->vertex_data,
163 object->vertex_count * 3 * sizeof(G3DFloat));
164 if(sscanf(buffer, "%u "
165 G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " "
166 G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " "
167 G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT,
168 &colid,
169 object->vertex_data + (off + 0) * 3 + 0,
170 object->vertex_data + (off + 0) * 3 + 1,
171 object->vertex_data + (off + 0) * 3 + 2,
172 object->vertex_data + (off + 1) * 3 + 0,
173 object->vertex_data + (off + 1) * 3 + 1,
174 object->vertex_data + (off + 1) * 3 + 2,
175 object->vertex_data + (off + 2) * 3 + 0,
176 object->vertex_data + (off + 2) * 3 + 1,
177 object->vertex_data + (off + 2) * 3 + 2,
178 object->vertex_data + (off + 3) * 3 + 0,
179 object->vertex_data + (off + 3) * 3 + 1,
180 object->vertex_data + (off + 3) * 3 + 2) == 13) {
181
182 face = g_new0(G3DFace, 1);
183 face->material = ldraw_color_lookup(lib, colid);
184 face->vertex_count = 4;
185 face->vertex_indices = g_new0(guint32, 4);
186 face->vertex_indices[0] = off + 0;
187 face->vertex_indices[1] = off + 1;
188 face->vertex_indices[2] = off + 2;
189 face->vertex_indices[3] = off + 3;
190 object->faces = g_slist_append(object->faces, face);
191 return TRUE;
192 }
193 return FALSE;
194}
195
196static inline G3DObject *ldraw_part_open_file(LDrawLibrary *lib,
197 const gchar *filename)
198{
199 LDrawPart *part;
200
201 part = g_new0(LDrawPart, 1);
202 part->name = g_strdup(filename);
203 part->stream = g3d_stream_open_file(filename, "r");
204 if(part->stream == NULL) {
205 g_free(part);
206 return NULL;
207 }
208 part->object = ldraw_part_get_object(part, lib);
209 g3d_stream_close(part->stream);
210 part->stream = NULL;
211
212 ldraw_library_insert(lib, part->name, part);
213
214 return part->object;
215}
216
217G3DObject *ldraw_part_from_file(LDrawLibrary *lib, const gchar *filename)
218{
219 G3DObject *object;
220 gchar *path;
221
222 if(g_file_test(filename, G_FILE_TEST_EXISTS))
223 return ldraw_part_open_file(lib, filename);
224 path = g_ascii_strdown(filename, -1);
225 if(g_file_test(path, G_FILE_TEST_EXISTS)) {
226 object = ldraw_part_open_file(lib, path);
227 g_free(path);
228 return object;
229 }
230 g_free(path);
231 return NULL;
232}
233
234G3DObject *ldraw_part_get_object(LDrawPart *part, LDrawLibrary *lib)
235{
236 G3DObject *object;
237 G3DMaterial *material;
238 gchar buffer[1024];
239
240 object = g_new0(G3DObject, 1);
241 material = g3d_material_new();
242 material->name = g_strdup("default material");
243 object->materials = g_slist_append(object->materials, material);
244
245 while(!g3d_stream_eof(part->stream)) {
246 memset(buffer, 0, 1024);
247 g3d_stream_read_line(part->stream, buffer, 1023);
248 g_strstrip(buffer);
249 if(strlen(buffer) == 0)
250 continue;
251 switch(buffer[0] - 0x30) {
252 case 0: /* meta data */
253 ldraw_part_parse_meta(object, buffer + 2);
254 break;
255 case 1: /* sub-file reference */
256 ldraw_part_parse_ref(object, buffer + 2, lib);
257 break;
258 case 2: /* line */
259 break;
260 case 3: /* triangle */
261 ldraw_part_parse_tri(object, buffer + 2, lib);
262 break;
263 case 4: /* quadrilateral */
264 ldraw_part_parse_quad(object, buffer + 2, lib);
265 break;
266 case 5: /* optional line */
267 break;
268 default:
269 g_warning("LDraw: unknown type of line: %s", buffer);
270 break;
271 }
272 if(part->master) {
273 g3d_context_update_progress_bar(lib->context,
274 (G3DFloat)g3d_stream_tell(part->stream) /
275 (G3DFloat)g3d_stream_size(part->stream), TRUE);
276 g3d_context_update_interface(lib->context);
277 }
278 }
279
280 return object;
281}
282
283void ldraw_part_free(LDrawPart *part)
284{
285 if(part->stream)
286 g3d_stream_close(part->stream);
287 if(part->filename)
288 g_free(part->filename);
289 g_free(part->name);
290 g_free(part);
291}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_part.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_part.h
new file mode 100644
index 0000000..8bd758d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_part.h
@@ -0,0 +1,31 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_LDRAW_PART_H
23#define _IMP_LDRAW_PART_H
24
25#include "imp_ldraw_types.h"
26
27G3DObject *ldraw_part_from_file(LDrawLibrary *lib, const gchar *filename);
28G3DObject *ldraw_part_get_object(LDrawPart *part, LDrawLibrary *lib);
29void ldraw_part_free(LDrawPart *part);
30
31#endif /* _IMP_LDRAW_PART_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_types.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_types.h
new file mode 100644
index 0000000..56805db
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_types.h
@@ -0,0 +1,48 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_LDRAW_TYPES_H
23#define _IMP_LDRAW_TYPES_H
24
25#include <glib.h>
26
27#include <g3d/types.h>
28#include <g3d/stream.h>
29
30typedef struct {
31 gchar *name;
32 gchar *filename;
33 G3DObject *object;
34 G3DStream *stream;
35 gboolean failed;
36 gboolean master;
37} LDrawPart;
38
39typedef struct {
40 G3DContext *context;
41 gchar *libdir;
42 GHashTable *partdb;
43 GSList *partlist;
44 GHashTable *colordb;
45 GSList *colorlist;
46} LDrawLibrary;
47
48#endif /* _IMP_LDRAW_TYPES_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/Makefile
new file mode 100644
index 0000000..9c0164a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/Makefile
@@ -0,0 +1,510 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_leocad/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_leocad
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_leocad_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_leocad_la_OBJECTS = imp_leocad.lo imp_leocad_library.lo
59imp_leocad_la_OBJECTS = $(am_imp_leocad_la_OBJECTS)
60DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_leocad_la_SOURCES)
73DIST_SOURCES = $(imp_leocad_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
78AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
79AR = ar
80AS = as
81AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
82AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
83AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
84AWK = gawk
85CC = gcc
86CCDEPMODE = depmode=gcc3
87CFLAGS = -g -O2
88CPP = gcc -E
89CPPFLAGS =
90CXX = g++
91CXXCPP = g++ -E
92CXXDEPMODE = depmode=gcc3
93CXXFLAGS = -g -O2
94CYGPATH_W = echo
95DBG_CFLAGS = -O2
96DEBUG = 0
97DEFS = -DHAVE_CONFIG_H
98DEPDIR = .deps
99DLLTOOL = dlltool
100ECHO = echo
101ECHO_C =
102ECHO_N = -n
103ECHO_T =
104EGREP = /bin/grep -E
105EXEEXT =
106F77 =
107FFLAGS =
108GDKPIXBUF_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
109GDKPIXBUF_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
110GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
111GLIB_GENMARSHAL = glib-genmarshal
112GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
113GLIB_MKENUMS = glib-mkenums
114GOBJECT_QUERY = gobject-query
115GREP = /bin/grep
116GTKDOC_CHECK = /usr/bin/gtkdoc-check
117GTK_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
118GTK_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
119HTML_DIR = ${datadir}/gtk-doc/html
120INSTALL = /usr/bin/install -c
121INSTALL_DATA = ${INSTALL} -m 644
122INSTALL_PROGRAM = ${INSTALL}
123INSTALL_SCRIPT = ${INSTALL}
124INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
125LDFLAGS =
126LEX = flex
127LEXLIB = -lfl
128LEX_OUTPUT_ROOT = lex.yy
129LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
130LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
131LIBOBJS =
132LIBS = -lm
133LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
134LIBXML2_CFLAGS = -I/usr/include/libxml2
135LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
136LN_S = ln -s
137LTLIBOBJS =
138LTVERSION = 0:8:0
139MAGIC_LIBS = -lmagic
140MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
141MATH_LIBS = -lm
142MKDIR_P = /bin/mkdir -p
143OBJDUMP = objdump
144OBJEXT = o
145PACKAGE = libg3d
146PACKAGE_BUGREPORT =
147PACKAGE_NAME =
148PACKAGE_STRING =
149PACKAGE_TARNAME =
150PACKAGE_VERSION =
151PATH_SEPARATOR = :
152PKG_CONFIG = /usr/bin/pkg-config
153PLUGINS_LDFLAGS = -avoid-version -export-dynamic
154RANLIB = ranlib
155SET_MAKE =
156SHELL = /bin/bash
157STRIP = strip
158VERSION = 0.0.8
159XML2_CONFIG = /usr/bin/xml2-config
160XML_CPPFLAGS = -I/usr/include/libxml2
161XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
162Z_CFLAGS =
163Z_LIBS = -lz
164abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad
165abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad
166abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
167abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168ac_ct_CC = gcc
169ac_ct_CXX = g++
170ac_ct_F77 =
171am__include = include
172am__leading_dot = .
173am__quote =
174am__tar = ${AMTAR} chof - "$$tardir"
175am__untar = ${AMTAR} xf -
176bindir = ${exec_prefix}/bin
177build = x86_64-unknown-linux-gnu
178build_alias =
179build_cpu = x86_64
180build_os = linux-gnu
181build_vendor = unknown
182builddir = .
183datadir = ${datarootdir}
184datarootdir = ${prefix}/share
185docdir = ${datarootdir}/doc/${PACKAGE}
186dvidir = ${docdir}
187exec_prefix = ${prefix}
188host = x86_64-unknown-linux-gnu
189host_alias =
190host_cpu = x86_64
191host_os = linux-gnu
192host_vendor = unknown
193htmldir = ${docdir}
194includedir = ${prefix}/include
195infodir = ${datarootdir}/info
196install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
197libdir = ${exec_prefix}/lib
198libexecdir = ${exec_prefix}/libexec
199localedir = ${datarootdir}/locale
200localstatedir = ${prefix}/var
201mandir = ${datarootdir}/man
202mkdir_p = /bin/mkdir -p
203oldincludedir = /usr/include
204pdfdir = ${docdir}
205prefix = /usr/local
206program_transform_name = s,x,x,
207psdir = ${docdir}
208sbindir = ${exec_prefix}/sbin
209sharedstatedir = ${prefix}/com
210srcdir = .
211sysconfdir = ${prefix}/etc
212target_alias =
213top_builddir = ../../..
214top_srcdir = ../../..
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_leocad.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 -O2 -DDEBUG=0 \
221 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 -avoid-version -export-dynamic
227
228imp_leocad_la_SOURCES = imp_leocad.c imp_leocad_library.h imp_leocad_library.c
229imp_leocad_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_leocad/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_leocad/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_leocad.la: $(imp_leocad_la_OBJECTS) $(imp_leocad_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_leocad_la_OBJECTS) $(imp_leocad_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299include ./$(DEPDIR)/imp_leocad.Plo
300include ./$(DEPDIR)/imp_leocad_library.Plo
301
302.c.o:
303 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
304 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
305# source='$<' object='$@' libtool=no \
306# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
307# $(COMPILE) -c $<
308
309.c.obj:
310 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
311 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
312# source='$<' object='$@' libtool=no \
313# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
314# $(COMPILE) -c `$(CYGPATH_W) '$<'`
315
316.c.lo:
317 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
318 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
319# source='$<' object='$@' libtool=yes \
320# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
321# $(LTCOMPILE) -c -o $@ $<
322
323mostlyclean-libtool:
324 -rm -f *.lo
325
326clean-libtool:
327 -rm -rf .libs _libs
328
329ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
330 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
331 unique=`for i in $$list; do \
332 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
333 done | \
334 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
335 END { if (nonempty) { for (i in files) print i; }; }'`; \
336 mkid -fID $$unique
337tags: TAGS
338
339TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
340 $(TAGS_FILES) $(LISP)
341 tags=; \
342 here=`pwd`; \
343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
344 unique=`for i in $$list; do \
345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
346 done | \
347 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
349 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
350 test -n "$$unique" || unique=$$empty_fix; \
351 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
352 $$tags $$unique; \
353 fi
354ctags: CTAGS
355CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
356 $(TAGS_FILES) $(LISP)
357 tags=; \
358 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
359 unique=`for i in $$list; do \
360 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
361 done | \
362 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
363 END { if (nonempty) { for (i in files) print i; }; }'`; \
364 test -z "$(CTAGS_ARGS)$$tags$$unique" \
365 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
366 $$tags $$unique
367
368GTAGS:
369 here=`$(am__cd) $(top_builddir) && pwd` \
370 && cd $(top_srcdir) \
371 && gtags -i $(GTAGS_ARGS) $$here
372
373distclean-tags:
374 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
375
376distdir: $(DISTFILES)
377 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
379 list='$(DISTFILES)'; \
380 dist_files=`for file in $$list; do echo $$file; done | \
381 sed -e "s|^$$srcdirstrip/||;t" \
382 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
383 case $$dist_files in \
384 */*) $(MKDIR_P) `echo "$$dist_files" | \
385 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
386 sort -u` ;; \
387 esac; \
388 for file in $$dist_files; do \
389 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
390 if test -d $$d/$$file; then \
391 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
392 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
393 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
394 fi; \
395 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
396 else \
397 test -f $(distdir)/$$file \
398 || cp -p $$d/$$file $(distdir)/$$file \
399 || exit 1; \
400 fi; \
401 done
402check-am: all-am
403check: check-am
404all-am: Makefile $(LTLIBRARIES)
405installdirs:
406 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
407 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
408 done
409install: install-am
410install-exec: install-exec-am
411install-data: install-data-am
412uninstall: uninstall-am
413
414install-am: all-am
415 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
416
417installcheck: installcheck-am
418install-strip:
419 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
420 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
421 `test -z '$(STRIP)' || \
422 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
423mostlyclean-generic:
424
425clean-generic:
426
427distclean-generic:
428 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
429
430maintainer-clean-generic:
431 @echo "This command is intended for maintainers to use"
432 @echo "it deletes files that may require special tools to rebuild."
433clean: clean-am
434
435clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
436 mostlyclean-am
437
438distclean: distclean-am
439 -rm -rf ./$(DEPDIR)
440 -rm -f Makefile
441distclean-am: clean-am distclean-compile distclean-generic \
442 distclean-tags
443
444dvi: dvi-am
445
446dvi-am:
447
448html: html-am
449
450info: info-am
451
452info-am:
453
454install-data-am: install-pluginimpLTLIBRARIES
455
456install-dvi: install-dvi-am
457
458install-exec-am:
459
460install-html: install-html-am
461
462install-info: install-info-am
463
464install-man:
465
466install-pdf: install-pdf-am
467
468install-ps: install-ps-am
469
470installcheck-am:
471
472maintainer-clean: maintainer-clean-am
473 -rm -rf ./$(DEPDIR)
474 -rm -f Makefile
475maintainer-clean-am: distclean-am maintainer-clean-generic
476
477mostlyclean: mostlyclean-am
478
479mostlyclean-am: mostlyclean-compile mostlyclean-generic \
480 mostlyclean-libtool
481
482pdf: pdf-am
483
484pdf-am:
485
486ps: ps-am
487
488ps-am:
489
490uninstall-am: uninstall-pluginimpLTLIBRARIES
491
492.MAKE: install-am install-strip
493
494.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
495 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
496 distclean-compile distclean-generic distclean-libtool \
497 distclean-tags distdir dvi dvi-am html html-am info info-am \
498 install install-am install-data install-data-am install-dvi \
499 install-dvi-am install-exec install-exec-am install-html \
500 install-html-am install-info install-info-am install-man \
501 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
502 install-ps install-ps-am install-strip installcheck \
503 installcheck-am installdirs maintainer-clean \
504 maintainer-clean-generic mostlyclean mostlyclean-compile \
505 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
506 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
507
508# Tell versions [3.59,3.63) of GNU make to not export all variables.
509# Otherwise a system limit (for SysV at least) may be exceeded.
510.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/Makefile.am
new file mode 100644
index 0000000..50b500a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/Makefile.am
@@ -0,0 +1,20 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_leocad.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_leocad_la_SOURCES = imp_leocad.c imp_leocad_library.h imp_leocad_library.c
20imp_leocad_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/Makefile.in
new file mode 100644
index 0000000..8549398
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/Makefile.in
@@ -0,0 +1,510 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_leocad
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_leocad_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_leocad_la_OBJECTS = imp_leocad.lo imp_leocad_library.lo
59imp_leocad_la_OBJECTS = $(am_imp_leocad_la_OBJECTS)
60DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_leocad_la_SOURCES)
73DIST_SOURCES = $(imp_leocad_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = @ACLOCAL@
78AMTAR = @AMTAR@
79AR = @AR@
80AS = @AS@
81AUTOCONF = @AUTOCONF@
82AUTOHEADER = @AUTOHEADER@
83AUTOMAKE = @AUTOMAKE@
84AWK = @AWK@
85CC = @CC@
86CCDEPMODE = @CCDEPMODE@
87CFLAGS = @CFLAGS@
88CPP = @CPP@
89CPPFLAGS = @CPPFLAGS@
90CXX = @CXX@
91CXXCPP = @CXXCPP@
92CXXDEPMODE = @CXXDEPMODE@
93CXXFLAGS = @CXXFLAGS@
94CYGPATH_W = @CYGPATH_W@
95DBG_CFLAGS = @DBG_CFLAGS@
96DEBUG = @DEBUG@
97DEFS = @DEFS@
98DEPDIR = @DEPDIR@
99DLLTOOL = @DLLTOOL@
100ECHO = @ECHO@
101ECHO_C = @ECHO_C@
102ECHO_N = @ECHO_N@
103ECHO_T = @ECHO_T@
104EGREP = @EGREP@
105EXEEXT = @EXEEXT@
106F77 = @F77@
107FFLAGS = @FFLAGS@
108GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
109GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
110GLIB_CFLAGS = @GLIB_CFLAGS@
111GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
112GLIB_LIBS = @GLIB_LIBS@
113GLIB_MKENUMS = @GLIB_MKENUMS@
114GOBJECT_QUERY = @GOBJECT_QUERY@
115GREP = @GREP@
116GTKDOC_CHECK = @GTKDOC_CHECK@
117GTK_CFLAGS = @GTK_CFLAGS@
118GTK_LIBS = @GTK_LIBS@
119HTML_DIR = @HTML_DIR@
120INSTALL = @INSTALL@
121INSTALL_DATA = @INSTALL_DATA@
122INSTALL_PROGRAM = @INSTALL_PROGRAM@
123INSTALL_SCRIPT = @INSTALL_SCRIPT@
124INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125LDFLAGS = @LDFLAGS@
126LEX = @LEX@
127LEXLIB = @LEXLIB@
128LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
129LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
130LIBGSF_LIBS = @LIBGSF_LIBS@
131LIBOBJS = @LIBOBJS@
132LIBS = @LIBS@
133LIBTOOL = @LIBTOOL@ --quiet
134LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
135LIBXML2_LIBS = @LIBXML2_LIBS@
136LN_S = @LN_S@
137LTLIBOBJS = @LTLIBOBJS@
138LTVERSION = @LTVERSION@
139MAGIC_LIBS = @MAGIC_LIBS@
140MAKEINFO = @MAKEINFO@
141MATH_LIBS = @MATH_LIBS@
142MKDIR_P = @MKDIR_P@
143OBJDUMP = @OBJDUMP@
144OBJEXT = @OBJEXT@
145PACKAGE = @PACKAGE@
146PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147PACKAGE_NAME = @PACKAGE_NAME@
148PACKAGE_STRING = @PACKAGE_STRING@
149PACKAGE_TARNAME = @PACKAGE_TARNAME@
150PACKAGE_VERSION = @PACKAGE_VERSION@
151PATH_SEPARATOR = @PATH_SEPARATOR@
152PKG_CONFIG = @PKG_CONFIG@
153PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
154RANLIB = @RANLIB@
155SET_MAKE = @SET_MAKE@
156SHELL = @SHELL@
157STRIP = @STRIP@
158VERSION = @VERSION@
159XML2_CONFIG = @XML2_CONFIG@
160XML_CPPFLAGS = @XML_CPPFLAGS@
161XML_LIBS = @XML_LIBS@
162Z_CFLAGS = @Z_CFLAGS@
163Z_LIBS = @Z_LIBS@
164abs_builddir = @abs_builddir@
165abs_srcdir = @abs_srcdir@
166abs_top_builddir = @abs_top_builddir@
167abs_top_srcdir = @abs_top_srcdir@
168ac_ct_CC = @ac_ct_CC@
169ac_ct_CXX = @ac_ct_CXX@
170ac_ct_F77 = @ac_ct_F77@
171am__include = @am__include@
172am__leading_dot = @am__leading_dot@
173am__quote = @am__quote@
174am__tar = @am__tar@
175am__untar = @am__untar@
176bindir = @bindir@
177build = @build@
178build_alias = @build_alias@
179build_cpu = @build_cpu@
180build_os = @build_os@
181build_vendor = @build_vendor@
182builddir = @builddir@
183datadir = @datadir@
184datarootdir = @datarootdir@
185docdir = @docdir@
186dvidir = @dvidir@
187exec_prefix = @exec_prefix@
188host = @host@
189host_alias = @host_alias@
190host_cpu = @host_cpu@
191host_os = @host_os@
192host_vendor = @host_vendor@
193htmldir = @htmldir@
194includedir = @includedir@
195infodir = @infodir@
196install_sh = @install_sh@
197libdir = @libdir@
198libexecdir = @libexecdir@
199localedir = @localedir@
200localstatedir = @localstatedir@
201mandir = @mandir@
202mkdir_p = @mkdir_p@
203oldincludedir = @oldincludedir@
204pdfdir = @pdfdir@
205prefix = @prefix@
206program_transform_name = @program_transform_name@
207psdir = @psdir@
208sbindir = @sbindir@
209sharedstatedir = @sharedstatedir@
210srcdir = @srcdir@
211sysconfdir = @sysconfdir@
212target_alias = @target_alias@
213top_builddir = @top_builddir@
214top_srcdir = @top_srcdir@
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_leocad.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
221 @GLIB_CFLAGS@
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 @PLUGINS_LDFLAGS@
227
228imp_leocad_la_SOURCES = imp_leocad.c imp_leocad_library.h imp_leocad_library.c
229imp_leocad_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_leocad/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_leocad/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_leocad.la: $(imp_leocad_la_OBJECTS) $(imp_leocad_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_leocad_la_OBJECTS) $(imp_leocad_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_leocad.Plo@am__quote@
300@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_leocad_library.Plo@am__quote@
301
302.c.o:
303@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
304@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
305@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
306@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
307@am__fastdepCC_FALSE@ $(COMPILE) -c $<
308
309.c.obj:
310@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
311@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
313@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
314@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
315
316.c.lo:
317@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
318@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
320@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
321@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
322
323mostlyclean-libtool:
324 -rm -f *.lo
325
326clean-libtool:
327 -rm -rf .libs _libs
328
329ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
330 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
331 unique=`for i in $$list; do \
332 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
333 done | \
334 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
335 END { if (nonempty) { for (i in files) print i; }; }'`; \
336 mkid -fID $$unique
337tags: TAGS
338
339TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
340 $(TAGS_FILES) $(LISP)
341 tags=; \
342 here=`pwd`; \
343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
344 unique=`for i in $$list; do \
345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
346 done | \
347 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
349 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
350 test -n "$$unique" || unique=$$empty_fix; \
351 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
352 $$tags $$unique; \
353 fi
354ctags: CTAGS
355CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
356 $(TAGS_FILES) $(LISP)
357 tags=; \
358 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
359 unique=`for i in $$list; do \
360 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
361 done | \
362 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
363 END { if (nonempty) { for (i in files) print i; }; }'`; \
364 test -z "$(CTAGS_ARGS)$$tags$$unique" \
365 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
366 $$tags $$unique
367
368GTAGS:
369 here=`$(am__cd) $(top_builddir) && pwd` \
370 && cd $(top_srcdir) \
371 && gtags -i $(GTAGS_ARGS) $$here
372
373distclean-tags:
374 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
375
376distdir: $(DISTFILES)
377 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
379 list='$(DISTFILES)'; \
380 dist_files=`for file in $$list; do echo $$file; done | \
381 sed -e "s|^$$srcdirstrip/||;t" \
382 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
383 case $$dist_files in \
384 */*) $(MKDIR_P) `echo "$$dist_files" | \
385 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
386 sort -u` ;; \
387 esac; \
388 for file in $$dist_files; do \
389 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
390 if test -d $$d/$$file; then \
391 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
392 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
393 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
394 fi; \
395 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
396 else \
397 test -f $(distdir)/$$file \
398 || cp -p $$d/$$file $(distdir)/$$file \
399 || exit 1; \
400 fi; \
401 done
402check-am: all-am
403check: check-am
404all-am: Makefile $(LTLIBRARIES)
405installdirs:
406 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
407 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
408 done
409install: install-am
410install-exec: install-exec-am
411install-data: install-data-am
412uninstall: uninstall-am
413
414install-am: all-am
415 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
416
417installcheck: installcheck-am
418install-strip:
419 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
420 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
421 `test -z '$(STRIP)' || \
422 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
423mostlyclean-generic:
424
425clean-generic:
426
427distclean-generic:
428 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
429
430maintainer-clean-generic:
431 @echo "This command is intended for maintainers to use"
432 @echo "it deletes files that may require special tools to rebuild."
433clean: clean-am
434
435clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
436 mostlyclean-am
437
438distclean: distclean-am
439 -rm -rf ./$(DEPDIR)
440 -rm -f Makefile
441distclean-am: clean-am distclean-compile distclean-generic \
442 distclean-tags
443
444dvi: dvi-am
445
446dvi-am:
447
448html: html-am
449
450info: info-am
451
452info-am:
453
454install-data-am: install-pluginimpLTLIBRARIES
455
456install-dvi: install-dvi-am
457
458install-exec-am:
459
460install-html: install-html-am
461
462install-info: install-info-am
463
464install-man:
465
466install-pdf: install-pdf-am
467
468install-ps: install-ps-am
469
470installcheck-am:
471
472maintainer-clean: maintainer-clean-am
473 -rm -rf ./$(DEPDIR)
474 -rm -f Makefile
475maintainer-clean-am: distclean-am maintainer-clean-generic
476
477mostlyclean: mostlyclean-am
478
479mostlyclean-am: mostlyclean-compile mostlyclean-generic \
480 mostlyclean-libtool
481
482pdf: pdf-am
483
484pdf-am:
485
486ps: ps-am
487
488ps-am:
489
490uninstall-am: uninstall-pluginimpLTLIBRARIES
491
492.MAKE: install-am install-strip
493
494.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
495 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
496 distclean-compile distclean-generic distclean-libtool \
497 distclean-tags distdir dvi dvi-am html html-am info info-am \
498 install install-am install-data install-data-am install-dvi \
499 install-dvi-am install-exec install-exec-am install-html \
500 install-html-am install-info install-info-am install-man \
501 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
502 install-ps install-ps-am install-strip installcheck \
503 installcheck-am installdirs maintainer-clean \
504 maintainer-clean-generic mostlyclean mostlyclean-compile \
505 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
506 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
507
508# Tell versions [3.59,3.63) of GNU make to not export all variables.
509# Otherwise a system limit (for SysV at least) may be exceeded.
510.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/imp_leocad.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/imp_leocad.c
new file mode 100644
index 0000000..590c342
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/imp_leocad.c
@@ -0,0 +1,496 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdlib.h>
24#include <string.h>
25#include <locale.h>
26
27#include <math.h>
28
29#include <g3d/types.h>
30#include <g3d/context.h>
31#include <g3d/model.h>
32#include <g3d/read.h>
33#include <g3d/vector.h>
34#include <g3d/matrix.h>
35
36#include "imp_leocad_library.h"
37
38static int leocad_load_lcd(G3DStream *stream, G3DModel *model,
39 LeoCadLibrary *library, G3DContext *context);
40
41EAPI
42gpointer plugin_init(G3DContext *context)
43{
44 LeoCadLibrary *library;
45 const gchar *libdir;
46
47 libdir = g_getenv("LEOCAD_LIB");
48 if(libdir == NULL)
49 libdir = "/usr/local/share/leocad";
50
51 library = leocad_library_load(libdir);
52
53 if(library == NULL)
54 {
55#if DEBUG > 1
56 g_warning("LeoCAD: failed to load library");
57#endif
58 return NULL;
59 }
60
61 return library;
62}
63
64EAPI
65void plugin_cleanup(gpointer user_data)
66{
67 LeoCadLibrary *library;
68
69#if DEBUG > 1
70 g_debug("LeoCAD: cleaning up library\n");
71#endif
72
73 library = (LeoCadLibrary *)user_data;
74
75 if(library)
76 leocad_library_free(library);
77}
78
79EAPI
80gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
81 G3DModel *model, gpointer user_data)
82{
83 LeoCadLibrary *library;
84
85 library = (LeoCadLibrary *)user_data;
86
87 if(library == NULL)
88 {
89 g_warning("LeoCAD: library not loaded");
90 return FALSE;
91 }
92
93 setlocale(LC_NUMERIC, "C");
94
95 return leocad_load_lcd(stream, model, library, context);
96}
97
98EAPI
99gchar *plugin_description(G3DContext *context)
100{
101 return g_strdup("LeoCAD models.");
102}
103
104EAPI
105gchar **plugin_extensions(G3DContext *context)
106{
107 return g_strsplit("lcd", ":", 0);
108}
109
110/*
111 * LeoCAD specific stuff
112 */
113
114static gboolean leocad_change_key(guint16 ktime, G3DFloat *param, guint8 ktype,
115 G3DFloat *matrix, G3DFloat *mloc, gboolean *valid_matrix)
116{
117 /* get first frame */
118 if(ktime == 1)
119 {
120 switch(ktype)
121 {
122 case 0x00: /* translation */
123 g3d_matrix_identity(mloc);
124 g3d_matrix_translate(param[0], param[1], param[2], mloc);
125 g3d_matrix_multiply(matrix, mloc, matrix);
126 *valid_matrix = TRUE;
127 break;
128
129 case 0x01: /* rotation */
130 g3d_matrix_rotate((G3DFloat)param[3] * G_PI / 180.0,
131 param[0], param[1], param[2], matrix);
132 g3d_matrix_multiply(mloc, matrix, matrix);
133 *valid_matrix = TRUE;
134 break;
135
136 default:
137 break;
138 }
139 }
140#if DEBUG > 0
141 g_debug("LeoCAD: key 0x%02x (%d): %+2.2f %+2.2f %+2.2f %+2.2f",
142 ktype, ktime, param[0], param[1], param[2], param[3]);
143#endif
144 return TRUE;
145}
146
147static gboolean leocad_load_lcd_piece(G3DStream *stream, G3DModel *model,
148 LeoCadLibrary *library, G3DFloat lcdversion)
149{
150 guint32 i, j, k, nkeys, nobjs;
151 guint16 ktime;
152 guint8 pver, over, ktype, color = 0, len8;
153 gchar name[9];
154 G3DFloat param[4], matrix[16], mloc[16];
155 G3DFloat offx = 0.0, offy = 0.0, offz = 0.0;
156 G3DFloat rotx = 0.0, roty = 0.0, rotz = 0.0;
157 G3DObject *object;
158 G3DMaterial *mat_change;
159 G3DFace *face;
160 GSList *fitem;
161 gboolean valid_matrix = FALSE;
162
163 g3d_matrix_identity(mloc);
164 g3d_matrix_identity(matrix);
165
166 mat_change = leocad_library_get_nth_material(library, 0x10);
167
168 if(lcdversion > 0.4)
169 {
170 pver = g3d_stream_read_int8(stream);
171
172 if(pver >= 9)
173 {
174 /* object stuff */
175 over = g3d_stream_read_int8(stream);
176 nobjs = g3d_stream_read_int32_le(stream);
177 for(i = 0; i < nobjs; i ++)
178 {
179 /* time */
180 ktime = g3d_stream_read_int16_le(stream);
181 /* param */
182 param[0] = g3d_stream_read_float_le(stream);
183 param[1] = g3d_stream_read_float_le(stream);
184 param[2] = g3d_stream_read_float_le(stream);
185 param[3] = g3d_stream_read_float_le(stream);
186 /* type */
187 ktype = g3d_stream_read_int8(stream);
188
189 leocad_change_key(ktime, param, ktype, matrix, mloc,
190 &valid_matrix);
191 }
192
193 if(over == 1)
194 {
195 nobjs = g3d_stream_read_int32_le(stream);
196 for(i = 0; i < nobjs; i ++)
197 {
198 ktime = g3d_stream_read_int16_le(stream);
199 param[0] = g3d_stream_read_float_le(stream);
200 param[1] = g3d_stream_read_float_le(stream);
201 param[2] = g3d_stream_read_float_le(stream);
202 param[3] = g3d_stream_read_float_le(stream);
203 ktype = g3d_stream_read_int8(stream);
204 }
205 }
206 }
207 else /* pver < 9 */
208 {
209 if(pver > 5)
210 {
211 nkeys = g3d_stream_read_int32_le(stream);
212 for(i = 0; i < nkeys; i ++)
213 {
214 /* param */
215 param[0] = g3d_stream_read_float_le(stream);
216 param[1] = g3d_stream_read_float_le(stream);
217 param[2] = g3d_stream_read_float_le(stream);
218 param[3] = g3d_stream_read_float_le(stream);
219
220 /* time */
221 ktime = g3d_stream_read_int16_le(stream);
222
223 /* type */
224 ktype = g3d_stream_read_int8(stream);
225
226 leocad_change_key(ktime, param, ktype, matrix, mloc,
227 &valid_matrix);
228
229 } /* keys */
230
231 nkeys = g3d_stream_read_int32_le(stream);
232 for(i = 0; i < nkeys; i ++)
233 {
234 /* param */
235 param[0] = g3d_stream_read_float_le(stream);
236 param[1] = g3d_stream_read_float_le(stream);
237 param[2] = g3d_stream_read_float_le(stream);
238 param[3] = g3d_stream_read_float_le(stream);
239
240 /* time */
241 ktime = g3d_stream_read_int16_le(stream);
242
243 /* type */
244 ktype = g3d_stream_read_int8(stream);
245 }
246 } /* pver > 5 */
247 else /* pver <= 5 */
248 {
249 if(pver > 2)
250 {
251 nkeys = g3d_stream_read_int8(stream);
252 for(i = 0; i < nkeys; i ++)
253 {
254 if(pver > 3)
255 {
256#if DEBUG > 2
257 g_debug("LeoCAD: matrix\n");
258#endif
259 /* matrix */
260 for(j = 0; j < 4; j ++)
261 for(k = 0; k < 4; k ++)
262 matrix[j * 4 + k] =
263 g3d_stream_read_float_le(stream);
264
265 valid_matrix = TRUE;
266 }
267 else
268 {
269 /* move: 3 x float */
270 offx = g3d_stream_read_float_le(stream);
271 offy = g3d_stream_read_float_le(stream);
272 offz = g3d_stream_read_float_le(stream);
273
274 /* rotate: 3 x float */
275 rotx = g3d_stream_read_float_le(stream);
276 roty = g3d_stream_read_float_le(stream);
277 rotz = g3d_stream_read_float_le(stream);
278 }
279
280 /* time */
281 ktime = g3d_stream_read_int8(stream);
282
283 /* bl? */
284 g3d_stream_read_int32_le(stream);
285 } /* .. nkeys */
286 } /* pver > 2 */
287 else /* pver <= 2 */
288 {
289 /* move: 3 x float */
290 offx = g3d_stream_read_float_le(stream);
291 offy = g3d_stream_read_float_le(stream);
292 offz = g3d_stream_read_float_le(stream);
293
294 /* rotate: 3 x float */
295 rotx = g3d_stream_read_float_le(stream);
296 roty = g3d_stream_read_float_le(stream);
297 rotz = g3d_stream_read_float_le(stream);
298 }
299 } /* pver <= 5 */
300 } /* pver < 9 */
301
302 /* common stuff */
303
304 /* name of piece */
305 g3d_stream_read(stream, name, 9);
306
307 /* color */
308 color = g3d_stream_read_int8(stream);
309
310 if(pver < 5)
311 color = leocad_library_convert_color(color);
312
313#if DEBUG > 0
314 g_debug("LeoCAD: [%d]: '%-8s', color 0x%02x", pver, name, color);
315#endif
316
317 /* step show */
318 g3d_stream_read_int8(stream);
319
320 /* step hide */
321 if(pver > 1)
322 g3d_stream_read_int8(stream);
323
324 if(pver > 5)
325 {
326 /* frame show */
327 g3d_stream_read_int16_le(stream);
328 /* frame hide */
329 g3d_stream_read_int16_le(stream);
330
331 if(pver > 7) {
332 /* state */
333 g3d_stream_read_int8(stream);
334
335 len8 = g3d_stream_read_int8(stream);
336 g3d_stream_skip(stream, len8);
337 } else { /* pver <= 7 */
338 /* hide */
339 g3d_stream_read_int32_le(stream);
340 g3d_stream_skip(stream, 81);
341 } /* pver <= 7 */
342
343 if(pver > 6) {
344 /* group pointer ?! */
345 g3d_stream_read_int32_le(stream);
346 }
347 } /* pver > 5 */
348 else /* pver <= 5 */
349 {
350 /* group pointer ?! */
351 g3d_stream_read_int8(stream);
352
353 /* hide */
354 g3d_stream_read_int8(stream);
355 }
356
357 } /* lcdversion > 0.4 */
358
359 object = leocad_library_get_piece(library, name);
360 if(object == NULL)
361 {
362 g_warning("LeoCAD: failed to load piece '%s'", name);
363 return FALSE;
364 }
365
366 /* matrix */
367 if(!valid_matrix)
368 {
369 /* translation */
370 g3d_matrix_identity(mloc);
371 g3d_matrix_translate(offx, offy, offz, mloc);
372 /* rotation */
373 rotx = (G3DFloat)(rotx * G_PI) / 180.0;
374 roty = (G3DFloat)(roty * G_PI) / 180.0;
375 rotz = (G3DFloat)(rotz * G_PI) / 180.0;
376 g3d_matrix_identity(matrix);
377 g3d_matrix_rotate_xyz(rotx, roty, rotz, matrix);
378
379 /* combine */
380 g3d_matrix_multiply(mloc, matrix, matrix);
381 }
382
383 /*g3d_matrix_dump(matrix);*/
384
385 /* transform vertices */
386 for(i = 0; i < object->vertex_count; i ++)
387 g3d_vector_transform(
388 &(object->vertex_data[i * 3 + 0]),
389 &(object->vertex_data[i * 3 + 1]),
390 &(object->vertex_data[i * 3 + 2]),
391 matrix);
392
393 /* change color */
394 fitem = object->faces;
395 while(fitem)
396 {
397 face = (G3DFace *)fitem->data;
398 if(face->material == mat_change)
399 {
400 face->material = leocad_library_get_nth_material(library, color);
401 }
402
403 if(face->material == NULL)
404 {
405 face->material = leocad_library_get_nth_material(library, 0);
406 }
407
408 fitem = fitem->next;
409 }
410
411 /* add to model object list */
412 model->objects = g_slist_append(model->objects, object);
413
414 return TRUE;
415}
416
417static gboolean leocad_load_lcd(G3DStream *stream, G3DModel *model,
418 LeoCadLibrary *library, G3DContext *context)
419{
420 gchar magic[32];
421 float version;
422 guint32 i, count;
423 G3DFloat r, g, b;
424 G3DMatrix rmatrix[16];
425
426 g3d_stream_read(stream, magic, 32);
427 if(strncmp(magic, "LeoCAD", 6) != 0) {
428 g_warning("LeoCAD: '%s' is not a valid LeoCAD project file",
429 stream->uri);
430 return FALSE;
431 }
432
433 sscanf(&magic[7], "%f", &version);
434
435 if(version > 0.4) {
436#if DEBUG > 0
437 g_debug("LeoCAD: file version %.1f, getting next float", version);
438#endif
439 version = g3d_stream_read_float_le(stream);
440 }
441
442#if DEBUG > 0
443 g_debug("LeoCAD: file version %.1f", version);
444#endif
445
446 r = g3d_stream_read_int8(stream) / 255.0;
447 g = g3d_stream_read_int8(stream) / 255.0;
448 b = g3d_stream_read_int8(stream) / 255.0;
449 /* background color */
450 g3d_context_set_bgcolor(context, r, g, b, 1.0);
451 g3d_stream_read_int8(stream);
452
453 /* view */
454 if(version < 0.6) {
455 /* eye: 3 x double */
456 g3d_stream_skip(stream, 24);
457
458 /* target: 3 x double */
459 g3d_stream_skip(stream, 24);
460 }
461
462 /* angle snap */
463 g3d_stream_read_int32_le(stream);
464 /* snap */
465 g3d_stream_read_int32_le(stream);
466 /* line width */
467 g3d_stream_read_float_le(stream);
468 /* detail */
469 g3d_stream_read_int32_le(stream);
470 /* cur group */
471 g3d_stream_read_int32_le(stream);
472 /* cur color */
473 g3d_stream_read_int32_le(stream);
474 /* action */
475 g3d_stream_read_int32_le(stream);
476 /* cur step */
477 g3d_stream_read_int32_le(stream);
478
479 if(version > 0.8) {
480 /* scene */
481 g3d_stream_read_int32_le(stream);
482 }
483
484 /* piece count */
485 count = g3d_stream_read_int32_le(stream);
486 for(i = 0; i < count; i ++) {
487 /* load piece */
488 leocad_load_lcd_piece(stream, model, library, version);
489 }
490
491 g3d_matrix_identity(rmatrix);
492 g3d_matrix_rotate_xyz(G_PI * -90.0 / 180, 0.0, 0.0, rmatrix);
493 g3d_model_transform(model, rmatrix);
494
495 return TRUE;
496}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/imp_leocad_library.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/imp_leocad_library.c
new file mode 100644
index 0000000..7336336
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/imp_leocad_library.c
@@ -0,0 +1,633 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <g3d/config.h>
24
25#include <string.h>
26
27#include <glib.h>
28
29#include <g3d/types.h>
30#include <g3d/object.h>
31#include <g3d/material.h>
32#include <g3d/stream.h>
33#include <g3d/primitive.h>
34#include <g3d/matrix.h>
35
36#include "imp_leocad_library.h"
37
38#define LEOCAD_FLAG_PIECE_COUNT 0x01
39#define LEOCAD_FLAG_PIECE_LONGDATA 0x02
40#define LEOCAD_FLAG_PIECE_CCW 0x04
41#define LEOCAD_FLAG_PIECE_SMALL 0x10
42#define LEOCAD_FLAG_PIECE_MEDIUM 0x20
43#define LEOCAD_FLAG_LONGDATA_RUNTIME 0x40
44#define LEOCAD_FLAG_PIECE_RENAMED 0x80
45
46#define LEOCAD_TYPE_MESH 0x01
47#define LEOCAD_TYPE_STUD 0x02
48#define LEOCAD_TYPE_STUD2 0x03
49#define LEOCAD_TYPE_STUD3 0x04
50#define LEOCAD_TYPE_STUD4 0x05
51
52static gboolean leocad_library_read_pieces_idx(LeoCadLibrary *library,
53 G3DStream *idx);
54static gboolean leocad_create_materials(LeoCadLibrary *library);
55
56struct LeoCadConnection {
57 guint8 type;
58 G3DFloat center[3];
59 G3DFloat normal[3];
60};
61
62LeoCadLibrary *leocad_library_load(const gchar *libdir)
63{
64 LeoCadLibrary *library;
65 gchar filename[1025];
66 G3DStream *idx, *bin;
67
68 library = g_new0(LeoCadLibrary, 1);
69
70 g_snprintf(filename, 1024, "%s/%s", libdir, "pieces.idx");
71 idx = g3d_stream_open_file(filename, "rb");
72 if(idx == NULL) {
73#if DEBUG > 0
74 g_warning("LeoCAD: failed to read '%s'", filename);
75#endif
76 g_free(library);
77 return NULL;
78 }
79
80 g_snprintf(filename, 1024, "%s/%s", libdir, "pieces.bin");
81 bin = g3d_stream_open_file(filename, "rb");
82 if(bin == NULL) {
83#if DEBUG > 0
84 g_debug("LeoCAD: failed to read '%s'", filename);
85#endif
86 g3d_stream_close(idx);
87 g_free(library);
88 return NULL;
89 }
90
91 library->pieces = g_hash_table_new(g_str_hash, g_str_equal);
92 library->pieces_bin = bin;
93
94 leocad_library_read_pieces_idx(library, idx);
95 g3d_stream_close(idx);
96
97 leocad_create_materials(library);
98
99 return library;
100}
101
102static gboolean leocad_free_piece_cb(gpointer key, gpointer value,
103 gpointer user_data)
104{
105 LeoCadPiece *piece;
106
107 piece = (LeoCadPiece *)value;
108
109#if DEBUG > 3
110 g_debug("D: freeing piece %s", piece->name);
111#endif
112
113 if(piece->name) g_free(piece->name);
114 if(piece->description) g_free(piece->description);
115 if(piece->moved_to) g_free(piece->moved_to);
116
117 if(!(piece->flags & LEOCAD_FLAG_PIECE_RENAMED))
118 if(piece->object) g3d_object_free(piece->object);
119
120 g_free(piece);
121
122 return TRUE;
123}
124
125void leocad_library_free(LeoCadLibrary *library)
126{
127 GSList *mlist;
128 G3DMaterial *material;
129
130 /* remove materials */
131 mlist = library->materials;
132 while(mlist)
133 {
134 material = (G3DMaterial *)mlist->data;
135 mlist = g_slist_remove(mlist, material);
136 g3d_material_free(material);
137 }
138
139 /* remove pieces */
140 g_hash_table_foreach_remove(library->pieces, leocad_free_piece_cb, NULL);
141 g_hash_table_destroy(library->pieces);
142
143 /* free library */
144 g_free(library);
145}
146
147static G3DFloat leocad_read_scaled16(G3DStream *stream, G3DFloat scale)
148{
149 gint16 x;
150
151 x = g3d_stream_read_int16_le(stream);
152
153 return (G3DFloat)(x / scale);
154}
155
156static gboolean leocad_create_materials(LeoCadLibrary *library)
157{
158 const guint8 colors[] = {
159 166, 25, 25, 255, /* 0 - Red */
160 255, 127, 51, 255, /* 1 - Orange */
161 25, 102, 25, 255, /* 2 - Green */
162 76, 153, 76, 255, /* 3 - Light Green */
163 0, 51, 178, 255, /* 4 - Blue */
164 51, 102, 229, 255, /* 5 - Light Blue */
165 204, 204, 0, 255, /* 6 - Yellow */
166 242, 242, 242, 255, /* 7 - White */
167 76, 76, 76, 255, /* 8 - Dark Gray */
168 25, 25, 25, 255, /* 9 - Black */
169 102, 51, 51, 255, /* 10 - Brown */
170 178, 76, 153, 255, /* 11 - Pink */
171 153, 51, 153, 255, /* 12 - Purple */
172 229, 178, 51, 255, /* 13 - Gold */
173 153, 25, 25, 153, /* 14 - Clear Red */
174 255, 153, 76, 153, /* 15 - Clear Orange */
175 25, 102, 25, 153, /* 16 - Clear Green */
176 153, 178, 76, 153, /* 17 - Clear Light Green */
177 0, 0, 127, 153, /* 18 - Clear Blue */
178 51, 102, 229, 153, /* 19 - Clear Light Blue */
179 229, 229, 0, 153, /* 20 - Clear Yellow */
180 229, 229, 229, 153, /* 21 - Clear White */
181 127, 127, 127, 255, /* 22 - Light Gray */
182 204, 204, 178, 255, /* 23 - Tan */
183 153, 102, 102, 255, /* 24 - Light Brown */
184 229, 178, 229, 255, /* 25 - Light Pink */
185 25, 178, 204, 255, /* 26 - Turquoise */
186 204, 204, 204, 255, /* 27 - Silver */
187 51, 51, 51, 255, /* 28 - Edges */
188 229, 76, 102, 255, /* 29 - Selected */
189 102, 76, 229, 255}; /* 30 - Focused */
190
191 G3DMaterial *material;
192 guint32 i;
193
194 for(i = 0; i < 31; i ++)
195 {
196 material = g3d_material_new();
197 material->r = (G3DFloat)colors[i * 4 + 0] / 255.0;
198 material->g = (G3DFloat)colors[i * 4 + 1] / 255.0;
199 material->b = (G3DFloat)colors[i * 4 + 2] / 255.0;
200 material->a = (G3DFloat)colors[i * 4 + 3] / 255.0;
201
202 library->materials = g_slist_append(library->materials, material);
203 }
204
205 return TRUE;
206}
207
208guint8 leocad_library_convert_color(guint8 n)
209{
210 static guint8 converted_colors[20] =
211 { 0,2,4,9,7,6,22,8,10,11,14,16,18,9,21,20,22,8,10,11 };
212
213 if(n >= 20)
214 return 0;
215
216 return converted_colors[n];
217}
218
219G3DMaterial *leocad_library_get_nth_material(LeoCadLibrary *library, guint8 n)
220{
221 return g_slist_nth_data(library->materials, n);
222}
223
224G3DObject *leocad_library_get_piece(LeoCadLibrary *library, const gchar *name)
225{
226 LeoCadPiece *piece;
227 G3DObject *stud;
228 G3DFace *face;
229 guint32 i, j, k, nconn, ngrp, ntex, ngrpconn, ncol, nx, color = 0;
230 guint16 grp_type;
231 G3DFloat scale = 100.0;
232 G3DFloat matrix[16];
233 G3DStream *bin;
234 struct LeoCadConnection *connections;
235
236 piece = g_hash_table_lookup(library->pieces, name);
237
238 if(piece == NULL)
239 {
240 g_warning("LeoCAD: failed to load piece '%s'", name);
241 return NULL;
242 }
243
244 bin = library->pieces_bin;
245
246 if(piece->object == NULL)
247 {
248 piece->object = g_new0(G3DObject, 1);
249 piece->object->name = g_strdup(piece->description);
250
251 g3d_stream_seek(bin, piece->offset_bin, G_SEEK_SET);
252 piece->object->vertex_count = g3d_stream_read_int32_le(bin);
253 piece->object->vertex_data = g_new0(G3DFloat,
254 piece->object->vertex_count * 3);
255
256 if(piece->flags & LEOCAD_FLAG_PIECE_SMALL)
257 scale = 10000.0;
258 else if(piece->flags & LEOCAD_FLAG_PIECE_MEDIUM)
259 scale = 1000.0;
260
261 for(i = 0; i < piece->object->vertex_count; i ++)
262 {
263 piece->object->vertex_data[i * 3 + 0] =
264 leocad_read_scaled16(bin, scale);
265 piece->object->vertex_data[i * 3 + 1] =
266 leocad_read_scaled16(bin, scale);
267 piece->object->vertex_data[i * 3 + 2] =
268 leocad_read_scaled16(bin, scale);
269 }
270#if DEBUG > 1
271 g_debug("LeoCAD: piece '%s': flags 0x%02X", name, piece->flags);
272#endif
273
274#if DEBUG > 1
275 g_debug("LeoCAD: piece '%s': %d vertices",
276 name, piece->object->vertex_count);
277#endif
278
279 /* connections */
280 nconn = g3d_stream_read_int16_le(bin);
281#if DEBUG > 1
282 g_debug("LeoCAD: piece '%s': %d connections", name, nconn);
283#endif
284 connections = g_new0(struct LeoCadConnection, nconn);
285 for(i = 0; i < nconn; i ++)
286 {
287 connections[i].type = g3d_stream_read_int8(bin);
288
289 /* center */
290 connections[i].center[0] = leocad_read_scaled16(bin, scale);
291 connections[i].center[1] = leocad_read_scaled16(bin, scale);
292 connections[i].center[2] = leocad_read_scaled16(bin, scale);
293
294 /* normal */
295 connections[i].normal[0] = g3d_stream_read_int16_le(bin) / (1 << 14);
296 connections[i].normal[1] = g3d_stream_read_int16_le(bin) / (1 << 14);
297 connections[i].normal[2] = g3d_stream_read_int16_le(bin) / (1 << 14);
298 }
299
300 /* textures */
301 ntex = g3d_stream_read_int8(bin);
302#if DEBUG > 0
303 if(ntex > 0)
304 g_debug("LeoCAD: piece '%s': %d textures", name, ntex);
305#endif
306 for(i = 0; i < ntex; i ++)
307 {
308 /* TODO: */
309 }
310
311 /* groups */
312 ngrp = g3d_stream_read_int16_le(bin);
313#if DEBUG > 1
314 g_debug("LeoCAD: piece '%s': %d groups @ 0x%08lx",
315 name, ngrp, ftell(bin));
316#endif
317 for(i = 0; i < ngrp; i ++)
318 {
319 /* group connections */
320 ngrpconn = g3d_stream_read_int8(bin);
321 for(j = 0; j < ngrpconn; j ++)
322 {
323 g3d_stream_read_int16_le(bin);
324 }
325
326#if 0
327 while(1)
328 {
329#endif
330 grp_type = g3d_stream_read_int8(bin);
331 if(grp_type == 0)
332 {
333 break;
334 }
335#if DEBUG > 1
336 g_debug("LeoCAD: piece '%s': grp %d: type 0x%02x @ 0x%08lx",
337 name, i, grp_type, ftell(bin));
338#endif
339
340 switch(grp_type)
341 {
342 case LEOCAD_TYPE_MESH:
343 ncol = g3d_stream_read_int16_le(bin);
344#if DEBUG > 1
345 g_debug("LeoCAD: piece '%s': grp %d: %d colors "
346 "(@ 0x%08lx)", name, i, ncol, ftell(bin));
347#endif
348 for(j = 0; j < ncol; j ++)
349 {
350 /* color code */
351 color = g3d_stream_read_int16_le(bin);
352#if DEBUG > 1
353 g_debug("LeoCAD: piece '%s': grp %d: color 0x%04x",
354 name, i, color);
355#endif
356 /* quads? */
357 nx = g3d_stream_read_int16_le(bin);
358 for(k = 0; k < nx / 4; k ++)
359 {
360 face = g_new0(G3DFace, 1);
361 face->material =
362 g_slist_nth_data(
363 library->materials, color);
364 face->vertex_count = 4;
365 face->vertex_indices = g_new0(guint32, 4);
366
367 face->vertex_indices[0] =
368 g3d_stream_read_int16_le(bin);
369 face->vertex_indices[1] =
370 g3d_stream_read_int16_le(bin);
371 face->vertex_indices[2] =
372 g3d_stream_read_int16_le(bin);
373 face->vertex_indices[3] =
374 g3d_stream_read_int16_le(bin);
375
376 piece->object->faces = g_slist_prepend(
377 piece->object->faces, face);
378 }
379#if DEBUG > 1
380 g_debug("LeoCAD: piece '%s': grp %d: "
381 "quads: %d bytes", name, i, nx * 2);
382#endif
383 nx = g3d_stream_read_int16_le(bin);
384 for(k = 0; k < nx / 3; k ++)
385 {
386 face = g_new0(G3DFace, 1);
387 face->material =
388 g_slist_nth_data(
389 library->materials, color);
390 face->vertex_count = 3;
391 face->vertex_indices = g_new0(guint32, 3);
392
393 face->vertex_indices[0] =
394 g3d_stream_read_int16_le(bin);
395 face->vertex_indices[1] =
396 g3d_stream_read_int16_le(bin);
397 face->vertex_indices[2] =
398 g3d_stream_read_int16_le(bin);
399
400 piece->object->faces = g_slist_prepend(
401 piece->object->faces, face);
402 }
403
404#if DEBUG > 1
405 g_debug("LeoCAD: piece '%s': grp %d: "
406 "triangles: %d bytes",
407 name, i, nx * 2);
408#endif
409 nx = g3d_stream_read_int16_le(bin);
410#if DEBUG > 1
411 g_debug("LeoCAD: piece '%s': grp %d: "
412 "skipping %d bytes @ 0x%08lx",
413 name, i, nx * 2, ftell(bin));
414#endif
415 g3d_stream_skip(bin, nx * 2);
416 }
417 break;
418
419 case LEOCAD_TYPE_STUD:
420 case LEOCAD_TYPE_STUD2:
421 case LEOCAD_TYPE_STUD3:
422 case LEOCAD_TYPE_STUD4:
423 stud = NULL;
424 color = g3d_stream_read_int8(bin);
425#if DEBUG > 0
426 g_debug("LeoCAD: piece '%s': stud 0x%02x",
427 name, grp_type);
428#endif
429 if(grp_type == LEOCAD_TYPE_STUD4)
430 stud = g3d_primitive_tube(
431 0.24, /* inner radius */
432 0.32, /* outer radius */
433 0.16, /* height */
434 16, /* sides */
435 TRUE, FALSE, /* top, bottom */
436 leocad_library_get_nth_material(
437 library, color));
438
439 g3d_matrix_identity(matrix);
440 for(j = 0; j < 12; j ++)
441#if 1
442 matrix[(j / 3) * 4 + (j % 3)] =
443 g3d_stream_read_float_le(bin);
444#else
445 matrix[j] = g3d_stream_read_float_le(bin);
446#endif
447 /* g3d_matrix_dump(matrix); */
448
449 if(stud && piece->object)
450 {
451 g3d_object_transform(stud, matrix);
452 g3d_object_merge(piece->object, stud);
453 stud = NULL;
454 }
455
456 break;
457
458 default:
459#if DEBUG > 1
460 g_debug(
461 "LeoCAD: piece '%s': unhandled group type 0x%02x "
462 "@ 0x%08lx",
463 name, grp_type, ftell(bin));
464#endif
465 break;
466 } /* grp_type */
467#if 0
468 } /* grp_type != 0 */
469#endif
470 g3d_stream_read_int8(bin);
471 } /* ngrp */
472
473 /* generate studs */
474 for(i = 0; i < nconn; i ++)
475 {
476#if DEBUG > 4
477 g_debug("LeoCAD: connection %d: type 0x%02x",
478 i, connections[i].type);
479#endif
480
481 switch(connections[i].type)
482 {
483 case 0:
484 stud = g3d_primitive_cylinder(
485 0.24, /* radius */
486 0.16, /* height */
487 16, /* sides */
488 TRUE, FALSE, /* top, bottom */
489 leocad_library_get_nth_material(library, color));
490 break;
491
492 case 2:
493 stud = g3d_primitive_tube(
494 0.24, /* inner radius */
495 0.32, /* outer radius */
496 0.16, /* height */
497 16, /* sides */
498 FALSE, TRUE, /* top, bottom */
499 leocad_library_get_nth_material(library, color));
500 break;
501
502 default:
503 stud = NULL;
504 break;
505 }
506
507 if(stud)
508 {
509#if DEBUG > 5
510 g_debug("LeoCAD: stud");
511#endif
512 /* transform stud */
513 for(j = 0; j < stud->vertex_count; j ++)
514 {
515#if 0
516 g3d_vector_transform(
517 &(stud->vertices[j * 3 + 0]),
518 &(stud->vertices[j * 3 + 1]),
519 &(stud->vertices[j * 3 + 2]),
520 matrix);
521#endif
522
523 stud->vertex_data[j * 3 + 0] += connections[i].center[0];
524 stud->vertex_data[j * 3 + 1] += connections[i].center[1];
525 stud->vertex_data[j * 3 + 2] += connections[i].center[2];
526 }
527
528 /* merge stud */
529 g3d_object_merge(piece->object, stud);
530 } /* stud */
531 } /* nconn */
532
533 if(connections)
534 g_free(connections);
535 }
536
537 return g3d_object_duplicate(piece->object);
538}
539
540static gboolean leocad_library_read_piece(LeoCadLibrary *library,
541 G3DStream *idx)
542{
543 gchar buffer[128];
544 guint32 i;
545 LeoCadPiece *piece;
546
547 piece = g_new0(LeoCadPiece, 1);
548
549 g3d_stream_read(idx, buffer, 8);
550 buffer[8] = '\0';
551 piece->name = g_strdup(buffer);
552
553 g3d_stream_read(idx, buffer, 64);
554 buffer[64] = '\0';
555 piece->description = g_strdup(buffer);
556
557 for(i = 0; i < 6; i ++)
558 piece->bounding_box[i] = g3d_stream_read_int16_le(idx);
559
560 piece->flags = g3d_stream_read_int8(idx);
561 piece->default_group = g3d_stream_read_int32_le(idx);
562 piece->offset_bin = g3d_stream_read_int32_le(idx);
563 piece->info_size = g3d_stream_read_int32_le(idx);
564
565#if DEBUG > 1
566 g_debug("LeoCAD: %-8s: @ 0x%08x, %s",
567 piece->name, piece->offset_bin, piece->description);
568#endif
569
570 g_hash_table_insert(library->pieces, piece->name, piece);
571
572 return TRUE;
573}
574
575static gboolean leocad_library_read_pieces_idx(LeoCadLibrary *library,
576 G3DStream *idx)
577{
578 gchar magic[32], nameold[9], namenew[9];
579 guint8 version, lastupdate;
580 guint32 nmoved, nbinsize, npieces, i;
581 LeoCadPiece *piece, *newpiece;
582
583 g3d_stream_read(idx, magic, 32);
584 if(strncmp(magic, "LeoCAD piece library index file", 31) != 0)
585 {
586 g_debug("LeoCAD: pieces.idx: wrong magic");
587 return FALSE;
588 }
589
590 version = g3d_stream_read_int8(idx);
591 lastupdate = g3d_stream_read_int8(idx);
592
593 g3d_stream_seek(idx, -8, G_SEEK_END);
594 nmoved = g3d_stream_read_int16_le(idx);
595 nbinsize = g3d_stream_read_int32_le(idx);
596 npieces = g3d_stream_read_int16_le(idx);
597
598 g3d_stream_seek(idx, 34, G_SEEK_SET);
599
600#if DEBUG > 0
601 g_debug("LeoCAD: pieces.idx: version %d, last update %d",
602 version, lastupdate);
603 g_debug("LeoCAD: pieces.idx: %d pieces, %d moves, pieces.bin %d bytes",
604 npieces, nmoved, nbinsize);
605#endif
606
607 for(i = 0; i < npieces; i ++)
608 leocad_library_read_piece(library, idx);
609
610 for(i = 0; i < nmoved; i ++) {
611 memset(nameold, 0, 9);
612 memset(namenew, 0, 9);
613
614 g3d_stream_read(idx, nameold, 8);
615 g3d_stream_read(idx, namenew, 8);
616
617 piece = g_hash_table_lookup(library->pieces, namenew);
618 if(piece) {
619 newpiece = g_new0(LeoCadPiece, 1);
620 memcpy(newpiece, piece, sizeof(LeoCadPiece));
621 newpiece->name = g_strdup(nameold);
622 newpiece->description = g_strdup(piece->description);
623 newpiece->moved_to = g_strdup(namenew);
624 newpiece->object = piece->object;
625 newpiece->flags |= LEOCAD_FLAG_PIECE_RENAMED;
626
627 g_hash_table_insert(library->pieces, piece->name, newpiece);
628 }
629 }
630
631 return TRUE;
632}
633
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/imp_leocad_library.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/imp_leocad_library.h
new file mode 100644
index 0000000..ac7299e
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/imp_leocad_library.h
@@ -0,0 +1,62 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef IMP_LEOCAD_LIBRARY_H
24#define IMP_LEOCAD_LIBRARY_H
25
26#include <stdio.h>
27
28#include <g3d/types.h>
29#include <g3d/stream.h>
30
31typedef struct
32{
33 gchar *name;
34 gchar *description;
35 gchar *moved_to;
36
37 guint16 bounding_box[6];
38 guint8 flags;
39 guint32 default_group;
40 guint32 offset_bin;
41 guint32 info_size;
42
43 G3DObject *object;
44}
45LeoCadPiece;
46
47typedef struct
48{
49 G3DStream *pieces_bin;
50 GHashTable *pieces;
51 GSList *materials;
52}
53LeoCadLibrary;
54
55LeoCadLibrary *leocad_library_load(const gchar *libdir);
56void leocad_library_free(LeoCadLibrary *library);
57guint8 leocad_library_convert_color(guint8 n);
58G3DObject *leocad_library_get_piece(LeoCadLibrary *library, const gchar *name);
59G3DMaterial *leocad_library_get_nth_material(LeoCadLibrary *library, guint8 n);
60
61#endif /* IMP_LEOCAD_LIBRARY_H */
62
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/Makefile
new file mode 100644
index 0000000..54c1aef
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/Makefile
@@ -0,0 +1,512 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_lwo/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_lwo
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_lwo_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_lwo_la_OBJECTS = imp_lwo.lo imp_lwo_callbacks.lo
59imp_lwo_la_OBJECTS = $(am_imp_lwo_la_OBJECTS)
60DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_lwo_la_SOURCES)
73DIST_SOURCES = $(imp_lwo_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
78AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
79AR = ar
80AS = as
81AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
82AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
83AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
84AWK = gawk
85CC = gcc
86CCDEPMODE = depmode=gcc3
87CFLAGS = -g -O2
88CPP = gcc -E
89CPPFLAGS =
90CXX = g++
91CXXCPP = g++ -E
92CXXDEPMODE = depmode=gcc3
93CXXFLAGS = -g -O2
94CYGPATH_W = echo
95DBG_CFLAGS = -O2
96DEBUG = 0
97DEFS = -DHAVE_CONFIG_H
98DEPDIR = .deps
99DLLTOOL = dlltool
100ECHO = echo
101ECHO_C =
102ECHO_N = -n
103ECHO_T =
104EGREP = /bin/grep -E
105EXEEXT =
106F77 =
107FFLAGS =
108GDKPIXBUF_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
109GDKPIXBUF_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
110GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
111GLIB_GENMARSHAL = glib-genmarshal
112GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
113GLIB_MKENUMS = glib-mkenums
114GOBJECT_QUERY = gobject-query
115GREP = /bin/grep
116GTKDOC_CHECK = /usr/bin/gtkdoc-check
117GTK_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
118GTK_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
119HTML_DIR = ${datadir}/gtk-doc/html
120INSTALL = /usr/bin/install -c
121INSTALL_DATA = ${INSTALL} -m 644
122INSTALL_PROGRAM = ${INSTALL}
123INSTALL_SCRIPT = ${INSTALL}
124INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
125LDFLAGS =
126LEX = flex
127LEXLIB = -lfl
128LEX_OUTPUT_ROOT = lex.yy
129LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
130LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
131LIBOBJS =
132LIBS = -lm
133LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
134LIBXML2_CFLAGS = -I/usr/include/libxml2
135LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
136LN_S = ln -s
137LTLIBOBJS =
138LTVERSION = 0:8:0
139MAGIC_LIBS = -lmagic
140MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
141MATH_LIBS = -lm
142MKDIR_P = /bin/mkdir -p
143OBJDUMP = objdump
144OBJEXT = o
145PACKAGE = libg3d
146PACKAGE_BUGREPORT =
147PACKAGE_NAME =
148PACKAGE_STRING =
149PACKAGE_TARNAME =
150PACKAGE_VERSION =
151PATH_SEPARATOR = :
152PKG_CONFIG = /usr/bin/pkg-config
153PLUGINS_LDFLAGS = -avoid-version -export-dynamic
154RANLIB = ranlib
155SET_MAKE =
156SHELL = /bin/bash
157STRIP = strip
158VERSION = 0.0.8
159XML2_CONFIG = /usr/bin/xml2-config
160XML_CPPFLAGS = -I/usr/include/libxml2
161XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
162Z_CFLAGS =
163Z_LIBS = -lz
164abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo
165abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo
166abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
167abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168ac_ct_CC = gcc
169ac_ct_CXX = g++
170ac_ct_F77 =
171am__include = include
172am__leading_dot = .
173am__quote =
174am__tar = ${AMTAR} chof - "$$tardir"
175am__untar = ${AMTAR} xf -
176bindir = ${exec_prefix}/bin
177build = x86_64-unknown-linux-gnu
178build_alias =
179build_cpu = x86_64
180build_os = linux-gnu
181build_vendor = unknown
182builddir = .
183datadir = ${datarootdir}
184datarootdir = ${prefix}/share
185docdir = ${datarootdir}/doc/${PACKAGE}
186dvidir = ${docdir}
187exec_prefix = ${prefix}
188host = x86_64-unknown-linux-gnu
189host_alias =
190host_cpu = x86_64
191host_os = linux-gnu
192host_vendor = unknown
193htmldir = ${docdir}
194includedir = ${prefix}/include
195infodir = ${datarootdir}/info
196install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
197libdir = ${exec_prefix}/lib
198libexecdir = ${exec_prefix}/libexec
199localedir = ${datarootdir}/locale
200localstatedir = ${prefix}/var
201mandir = ${datarootdir}/man
202mkdir_p = /bin/mkdir -p
203oldincludedir = /usr/include
204pdfdir = ${docdir}
205prefix = /usr/local
206program_transform_name = s,x,x,
207psdir = ${docdir}
208sbindir = ${exec_prefix}/sbin
209sharedstatedir = ${prefix}/com
210srcdir = .
211sysconfdir = ${prefix}/etc
212target_alias =
213top_builddir = ../../..
214top_srcdir = ../../..
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_lwo.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 -O2 -DDEBUG=0 \
221 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 -avoid-version -export-dynamic
227
228imp_lwo_la_SOURCES = imp_lwo.c imp_lwo.h imp_lwo_chunks.h \
229 imp_lwo_callbacks.c imp_lwo_callbacks.h
230
231imp_lwo_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
232all: all-am
233
234.SUFFIXES:
235.SUFFIXES: .c .lo .o .obj
236$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
237 @for dep in $?; do \
238 case '$(am__configure_deps)' in \
239 *$$dep*) \
240 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
241 && exit 0; \
242 exit 1;; \
243 esac; \
244 done; \
245 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_lwo/Makefile'; \
246 cd $(top_srcdir) && \
247 $(AUTOMAKE) --gnu plugins/import/imp_lwo/Makefile
248.PRECIOUS: Makefile
249Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
250 @case '$?' in \
251 *config.status*) \
252 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
253 *) \
254 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
255 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
256 esac;
257
258$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
259 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
260
261$(top_srcdir)/configure: $(am__configure_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263$(ACLOCAL_M4): $(am__aclocal_m4_deps)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
266 @$(NORMAL_INSTALL)
267 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
268 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
269 if test -f $$p; then \
270 f=$(am__strip_dir) \
271 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
272 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
273 else :; fi; \
274 done
275
276uninstall-pluginimpLTLIBRARIES:
277 @$(NORMAL_UNINSTALL)
278 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
279 p=$(am__strip_dir) \
280 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
281 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
282 done
283
284clean-pluginimpLTLIBRARIES:
285 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
288 test "$$dir" != "$$p" || dir=.; \
289 echo "rm -f \"$${dir}/so_locations\""; \
290 rm -f "$${dir}/so_locations"; \
291 done
292imp_lwo.la: $(imp_lwo_la_OBJECTS) $(imp_lwo_la_DEPENDENCIES)
293 $(LINK) -rpath $(pluginimpdir) $(imp_lwo_la_OBJECTS) $(imp_lwo_la_LIBADD) $(LIBS)
294
295mostlyclean-compile:
296 -rm -f *.$(OBJEXT)
297
298distclean-compile:
299 -rm -f *.tab.c
300
301include ./$(DEPDIR)/imp_lwo.Plo
302include ./$(DEPDIR)/imp_lwo_callbacks.Plo
303
304.c.o:
305 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
306 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
307# source='$<' object='$@' libtool=no \
308# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
309# $(COMPILE) -c $<
310
311.c.obj:
312 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
313 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
314# source='$<' object='$@' libtool=no \
315# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
316# $(COMPILE) -c `$(CYGPATH_W) '$<'`
317
318.c.lo:
319 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
320 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
321# source='$<' object='$@' libtool=yes \
322# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
323# $(LTCOMPILE) -c -o $@ $<
324
325mostlyclean-libtool:
326 -rm -f *.lo
327
328clean-libtool:
329 -rm -rf .libs _libs
330
331ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
332 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
333 unique=`for i in $$list; do \
334 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
335 done | \
336 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
337 END { if (nonempty) { for (i in files) print i; }; }'`; \
338 mkid -fID $$unique
339tags: TAGS
340
341TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
342 $(TAGS_FILES) $(LISP)
343 tags=; \
344 here=`pwd`; \
345 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
346 unique=`for i in $$list; do \
347 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
348 done | \
349 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
350 END { if (nonempty) { for (i in files) print i; }; }'`; \
351 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
352 test -n "$$unique" || unique=$$empty_fix; \
353 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
354 $$tags $$unique; \
355 fi
356ctags: CTAGS
357CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
358 $(TAGS_FILES) $(LISP)
359 tags=; \
360 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
361 unique=`for i in $$list; do \
362 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
363 done | \
364 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
365 END { if (nonempty) { for (i in files) print i; }; }'`; \
366 test -z "$(CTAGS_ARGS)$$tags$$unique" \
367 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
368 $$tags $$unique
369
370GTAGS:
371 here=`$(am__cd) $(top_builddir) && pwd` \
372 && cd $(top_srcdir) \
373 && gtags -i $(GTAGS_ARGS) $$here
374
375distclean-tags:
376 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
377
378distdir: $(DISTFILES)
379 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
380 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
381 list='$(DISTFILES)'; \
382 dist_files=`for file in $$list; do echo $$file; done | \
383 sed -e "s|^$$srcdirstrip/||;t" \
384 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
385 case $$dist_files in \
386 */*) $(MKDIR_P) `echo "$$dist_files" | \
387 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
388 sort -u` ;; \
389 esac; \
390 for file in $$dist_files; do \
391 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
392 if test -d $$d/$$file; then \
393 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
394 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
395 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
396 fi; \
397 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
398 else \
399 test -f $(distdir)/$$file \
400 || cp -p $$d/$$file $(distdir)/$$file \
401 || exit 1; \
402 fi; \
403 done
404check-am: all-am
405check: check-am
406all-am: Makefile $(LTLIBRARIES)
407installdirs:
408 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
409 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
410 done
411install: install-am
412install-exec: install-exec-am
413install-data: install-data-am
414uninstall: uninstall-am
415
416install-am: all-am
417 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
418
419installcheck: installcheck-am
420install-strip:
421 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
422 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
423 `test -z '$(STRIP)' || \
424 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
425mostlyclean-generic:
426
427clean-generic:
428
429distclean-generic:
430 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
431
432maintainer-clean-generic:
433 @echo "This command is intended for maintainers to use"
434 @echo "it deletes files that may require special tools to rebuild."
435clean: clean-am
436
437clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
438 mostlyclean-am
439
440distclean: distclean-am
441 -rm -rf ./$(DEPDIR)
442 -rm -f Makefile
443distclean-am: clean-am distclean-compile distclean-generic \
444 distclean-tags
445
446dvi: dvi-am
447
448dvi-am:
449
450html: html-am
451
452info: info-am
453
454info-am:
455
456install-data-am: install-pluginimpLTLIBRARIES
457
458install-dvi: install-dvi-am
459
460install-exec-am:
461
462install-html: install-html-am
463
464install-info: install-info-am
465
466install-man:
467
468install-pdf: install-pdf-am
469
470install-ps: install-ps-am
471
472installcheck-am:
473
474maintainer-clean: maintainer-clean-am
475 -rm -rf ./$(DEPDIR)
476 -rm -f Makefile
477maintainer-clean-am: distclean-am maintainer-clean-generic
478
479mostlyclean: mostlyclean-am
480
481mostlyclean-am: mostlyclean-compile mostlyclean-generic \
482 mostlyclean-libtool
483
484pdf: pdf-am
485
486pdf-am:
487
488ps: ps-am
489
490ps-am:
491
492uninstall-am: uninstall-pluginimpLTLIBRARIES
493
494.MAKE: install-am install-strip
495
496.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
497 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
498 distclean-compile distclean-generic distclean-libtool \
499 distclean-tags distdir dvi dvi-am html html-am info info-am \
500 install install-am install-data install-data-am install-dvi \
501 install-dvi-am install-exec install-exec-am install-html \
502 install-html-am install-info install-info-am install-man \
503 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
504 install-ps install-ps-am install-strip installcheck \
505 installcheck-am installdirs maintainer-clean \
506 maintainer-clean-generic mostlyclean mostlyclean-compile \
507 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
508 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
509
510# Tell versions [3.59,3.63) of GNU make to not export all variables.
511# Otherwise a system limit (for SysV at least) may be exceeded.
512.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/Makefile.am
new file mode 100644
index 0000000..8eba1a1
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/Makefile.am
@@ -0,0 +1,21 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_lwo.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_lwo_la_SOURCES = imp_lwo.c imp_lwo.h imp_lwo_chunks.h \
20 imp_lwo_callbacks.c imp_lwo_callbacks.h
21imp_lwo_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/Makefile.in
new file mode 100644
index 0000000..db7b118
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/Makefile.in
@@ -0,0 +1,512 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_lwo
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_lwo_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_lwo_la_OBJECTS = imp_lwo.lo imp_lwo_callbacks.lo
59imp_lwo_la_OBJECTS = $(am_imp_lwo_la_OBJECTS)
60DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_lwo_la_SOURCES)
73DIST_SOURCES = $(imp_lwo_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = @ACLOCAL@
78AMTAR = @AMTAR@
79AR = @AR@
80AS = @AS@
81AUTOCONF = @AUTOCONF@
82AUTOHEADER = @AUTOHEADER@
83AUTOMAKE = @AUTOMAKE@
84AWK = @AWK@
85CC = @CC@
86CCDEPMODE = @CCDEPMODE@
87CFLAGS = @CFLAGS@
88CPP = @CPP@
89CPPFLAGS = @CPPFLAGS@
90CXX = @CXX@
91CXXCPP = @CXXCPP@
92CXXDEPMODE = @CXXDEPMODE@
93CXXFLAGS = @CXXFLAGS@
94CYGPATH_W = @CYGPATH_W@
95DBG_CFLAGS = @DBG_CFLAGS@
96DEBUG = @DEBUG@
97DEFS = @DEFS@
98DEPDIR = @DEPDIR@
99DLLTOOL = @DLLTOOL@
100ECHO = @ECHO@
101ECHO_C = @ECHO_C@
102ECHO_N = @ECHO_N@
103ECHO_T = @ECHO_T@
104EGREP = @EGREP@
105EXEEXT = @EXEEXT@
106F77 = @F77@
107FFLAGS = @FFLAGS@
108GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
109GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
110GLIB_CFLAGS = @GLIB_CFLAGS@
111GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
112GLIB_LIBS = @GLIB_LIBS@
113GLIB_MKENUMS = @GLIB_MKENUMS@
114GOBJECT_QUERY = @GOBJECT_QUERY@
115GREP = @GREP@
116GTKDOC_CHECK = @GTKDOC_CHECK@
117GTK_CFLAGS = @GTK_CFLAGS@
118GTK_LIBS = @GTK_LIBS@
119HTML_DIR = @HTML_DIR@
120INSTALL = @INSTALL@
121INSTALL_DATA = @INSTALL_DATA@
122INSTALL_PROGRAM = @INSTALL_PROGRAM@
123INSTALL_SCRIPT = @INSTALL_SCRIPT@
124INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125LDFLAGS = @LDFLAGS@
126LEX = @LEX@
127LEXLIB = @LEXLIB@
128LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
129LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
130LIBGSF_LIBS = @LIBGSF_LIBS@
131LIBOBJS = @LIBOBJS@
132LIBS = @LIBS@
133LIBTOOL = @LIBTOOL@ --quiet
134LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
135LIBXML2_LIBS = @LIBXML2_LIBS@
136LN_S = @LN_S@
137LTLIBOBJS = @LTLIBOBJS@
138LTVERSION = @LTVERSION@
139MAGIC_LIBS = @MAGIC_LIBS@
140MAKEINFO = @MAKEINFO@
141MATH_LIBS = @MATH_LIBS@
142MKDIR_P = @MKDIR_P@
143OBJDUMP = @OBJDUMP@
144OBJEXT = @OBJEXT@
145PACKAGE = @PACKAGE@
146PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147PACKAGE_NAME = @PACKAGE_NAME@
148PACKAGE_STRING = @PACKAGE_STRING@
149PACKAGE_TARNAME = @PACKAGE_TARNAME@
150PACKAGE_VERSION = @PACKAGE_VERSION@
151PATH_SEPARATOR = @PATH_SEPARATOR@
152PKG_CONFIG = @PKG_CONFIG@
153PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
154RANLIB = @RANLIB@
155SET_MAKE = @SET_MAKE@
156SHELL = @SHELL@
157STRIP = @STRIP@
158VERSION = @VERSION@
159XML2_CONFIG = @XML2_CONFIG@
160XML_CPPFLAGS = @XML_CPPFLAGS@
161XML_LIBS = @XML_LIBS@
162Z_CFLAGS = @Z_CFLAGS@
163Z_LIBS = @Z_LIBS@
164abs_builddir = @abs_builddir@
165abs_srcdir = @abs_srcdir@
166abs_top_builddir = @abs_top_builddir@
167abs_top_srcdir = @abs_top_srcdir@
168ac_ct_CC = @ac_ct_CC@
169ac_ct_CXX = @ac_ct_CXX@
170ac_ct_F77 = @ac_ct_F77@
171am__include = @am__include@
172am__leading_dot = @am__leading_dot@
173am__quote = @am__quote@
174am__tar = @am__tar@
175am__untar = @am__untar@
176bindir = @bindir@
177build = @build@
178build_alias = @build_alias@
179build_cpu = @build_cpu@
180build_os = @build_os@
181build_vendor = @build_vendor@
182builddir = @builddir@
183datadir = @datadir@
184datarootdir = @datarootdir@
185docdir = @docdir@
186dvidir = @dvidir@
187exec_prefix = @exec_prefix@
188host = @host@
189host_alias = @host_alias@
190host_cpu = @host_cpu@
191host_os = @host_os@
192host_vendor = @host_vendor@
193htmldir = @htmldir@
194includedir = @includedir@
195infodir = @infodir@
196install_sh = @install_sh@
197libdir = @libdir@
198libexecdir = @libexecdir@
199localedir = @localedir@
200localstatedir = @localstatedir@
201mandir = @mandir@
202mkdir_p = @mkdir_p@
203oldincludedir = @oldincludedir@
204pdfdir = @pdfdir@
205prefix = @prefix@
206program_transform_name = @program_transform_name@
207psdir = @psdir@
208sbindir = @sbindir@
209sharedstatedir = @sharedstatedir@
210srcdir = @srcdir@
211sysconfdir = @sysconfdir@
212target_alias = @target_alias@
213top_builddir = @top_builddir@
214top_srcdir = @top_srcdir@
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_lwo.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
221 @GLIB_CFLAGS@
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 @PLUGINS_LDFLAGS@
227
228imp_lwo_la_SOURCES = imp_lwo.c imp_lwo.h imp_lwo_chunks.h \
229 imp_lwo_callbacks.c imp_lwo_callbacks.h
230
231imp_lwo_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
232all: all-am
233
234.SUFFIXES:
235.SUFFIXES: .c .lo .o .obj
236$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
237 @for dep in $?; do \
238 case '$(am__configure_deps)' in \
239 *$$dep*) \
240 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
241 && exit 0; \
242 exit 1;; \
243 esac; \
244 done; \
245 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_lwo/Makefile'; \
246 cd $(top_srcdir) && \
247 $(AUTOMAKE) --gnu plugins/import/imp_lwo/Makefile
248.PRECIOUS: Makefile
249Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
250 @case '$?' in \
251 *config.status*) \
252 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
253 *) \
254 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
255 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
256 esac;
257
258$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
259 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
260
261$(top_srcdir)/configure: $(am__configure_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263$(ACLOCAL_M4): $(am__aclocal_m4_deps)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
266 @$(NORMAL_INSTALL)
267 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
268 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
269 if test -f $$p; then \
270 f=$(am__strip_dir) \
271 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
272 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
273 else :; fi; \
274 done
275
276uninstall-pluginimpLTLIBRARIES:
277 @$(NORMAL_UNINSTALL)
278 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
279 p=$(am__strip_dir) \
280 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
281 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
282 done
283
284clean-pluginimpLTLIBRARIES:
285 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
288 test "$$dir" != "$$p" || dir=.; \
289 echo "rm -f \"$${dir}/so_locations\""; \
290 rm -f "$${dir}/so_locations"; \
291 done
292imp_lwo.la: $(imp_lwo_la_OBJECTS) $(imp_lwo_la_DEPENDENCIES)
293 $(LINK) -rpath $(pluginimpdir) $(imp_lwo_la_OBJECTS) $(imp_lwo_la_LIBADD) $(LIBS)
294
295mostlyclean-compile:
296 -rm -f *.$(OBJEXT)
297
298distclean-compile:
299 -rm -f *.tab.c
300
301@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_lwo.Plo@am__quote@
302@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_lwo_callbacks.Plo@am__quote@
303
304.c.o:
305@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
306@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
307@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
308@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
309@am__fastdepCC_FALSE@ $(COMPILE) -c $<
310
311.c.obj:
312@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
313@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
314@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
315@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
316@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
317
318.c.lo:
319@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
320@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
321@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
322@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
323@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
324
325mostlyclean-libtool:
326 -rm -f *.lo
327
328clean-libtool:
329 -rm -rf .libs _libs
330
331ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
332 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
333 unique=`for i in $$list; do \
334 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
335 done | \
336 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
337 END { if (nonempty) { for (i in files) print i; }; }'`; \
338 mkid -fID $$unique
339tags: TAGS
340
341TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
342 $(TAGS_FILES) $(LISP)
343 tags=; \
344 here=`pwd`; \
345 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
346 unique=`for i in $$list; do \
347 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
348 done | \
349 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
350 END { if (nonempty) { for (i in files) print i; }; }'`; \
351 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
352 test -n "$$unique" || unique=$$empty_fix; \
353 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
354 $$tags $$unique; \
355 fi
356ctags: CTAGS
357CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
358 $(TAGS_FILES) $(LISP)
359 tags=; \
360 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
361 unique=`for i in $$list; do \
362 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
363 done | \
364 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
365 END { if (nonempty) { for (i in files) print i; }; }'`; \
366 test -z "$(CTAGS_ARGS)$$tags$$unique" \
367 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
368 $$tags $$unique
369
370GTAGS:
371 here=`$(am__cd) $(top_builddir) && pwd` \
372 && cd $(top_srcdir) \
373 && gtags -i $(GTAGS_ARGS) $$here
374
375distclean-tags:
376 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
377
378distdir: $(DISTFILES)
379 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
380 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
381 list='$(DISTFILES)'; \
382 dist_files=`for file in $$list; do echo $$file; done | \
383 sed -e "s|^$$srcdirstrip/||;t" \
384 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
385 case $$dist_files in \
386 */*) $(MKDIR_P) `echo "$$dist_files" | \
387 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
388 sort -u` ;; \
389 esac; \
390 for file in $$dist_files; do \
391 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
392 if test -d $$d/$$file; then \
393 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
394 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
395 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
396 fi; \
397 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
398 else \
399 test -f $(distdir)/$$file \
400 || cp -p $$d/$$file $(distdir)/$$file \
401 || exit 1; \
402 fi; \
403 done
404check-am: all-am
405check: check-am
406all-am: Makefile $(LTLIBRARIES)
407installdirs:
408 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
409 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
410 done
411install: install-am
412install-exec: install-exec-am
413install-data: install-data-am
414uninstall: uninstall-am
415
416install-am: all-am
417 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
418
419installcheck: installcheck-am
420install-strip:
421 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
422 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
423 `test -z '$(STRIP)' || \
424 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
425mostlyclean-generic:
426
427clean-generic:
428
429distclean-generic:
430 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
431
432maintainer-clean-generic:
433 @echo "This command is intended for maintainers to use"
434 @echo "it deletes files that may require special tools to rebuild."
435clean: clean-am
436
437clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
438 mostlyclean-am
439
440distclean: distclean-am
441 -rm -rf ./$(DEPDIR)
442 -rm -f Makefile
443distclean-am: clean-am distclean-compile distclean-generic \
444 distclean-tags
445
446dvi: dvi-am
447
448dvi-am:
449
450html: html-am
451
452info: info-am
453
454info-am:
455
456install-data-am: install-pluginimpLTLIBRARIES
457
458install-dvi: install-dvi-am
459
460install-exec-am:
461
462install-html: install-html-am
463
464install-info: install-info-am
465
466install-man:
467
468install-pdf: install-pdf-am
469
470install-ps: install-ps-am
471
472installcheck-am:
473
474maintainer-clean: maintainer-clean-am
475 -rm -rf ./$(DEPDIR)
476 -rm -f Makefile
477maintainer-clean-am: distclean-am maintainer-clean-generic
478
479mostlyclean: mostlyclean-am
480
481mostlyclean-am: mostlyclean-compile mostlyclean-generic \
482 mostlyclean-libtool
483
484pdf: pdf-am
485
486pdf-am:
487
488ps: ps-am
489
490ps-am:
491
492uninstall-am: uninstall-pluginimpLTLIBRARIES
493
494.MAKE: install-am install-strip
495
496.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
497 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
498 distclean-compile distclean-generic distclean-libtool \
499 distclean-tags distdir dvi dvi-am html html-am info info-am \
500 install install-am install-data install-data-am install-dvi \
501 install-dvi-am install-exec install-exec-am install-html \
502 install-html-am install-info install-info-am install-man \
503 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
504 install-ps install-ps-am install-strip installcheck \
505 installcheck-am installdirs maintainer-clean \
506 maintainer-clean-generic mostlyclean mostlyclean-compile \
507 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
508 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
509
510# Tell versions [3.59,3.63) of GNU make to not export all variables.
511# Otherwise a system limit (for SysV at least) may be exceeded.
512.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo.c
new file mode 100644
index 0000000..d01b817
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo.c
@@ -0,0 +1,216 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23/*
24 * imp_lwo.c - LightWave import plugin
25 *
26 * (C) 2005,2006 Markus Dahms
27 *
28 * based on gtkglarea example viewlw:
29 * Copyright (C) 1998 Janne Löf <jlof@mail.student.oulu.fi>
30 */
31
32#include <string.h>
33
34#include <g3d/types.h>
35#include <g3d/context.h>
36#include <g3d/stream.h>
37#include <g3d/material.h>
38#include <g3d/iff.h>
39
40#define LW_MAX_POINTS 200
41#define LW_MAX_NAME_LEN 500
42#define LW_F_LWO2 1
43
44#include "imp_lwo.h"
45#include "imp_lwo_chunks.h"
46
47/*****************************************************************************/
48/* plugin interface */
49/*****************************************************************************/
50
51static void lwo_fix_texfaces(G3DModel *model);
52
53EAPI
54gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
55 G3DModel *model, gpointer user_data)
56{
57 LwoObject *obj;
58 G3DMaterial *material;
59 guint32 id;
60 gsize len;
61 G3DIffGlobal *global;
62 G3DIffLocal *local;
63
64 if(!g3d_iff_check(stream, &id, &len))
65 return FALSE;
66
67 if((id != G3D_IFF_MKID('L','W','O','B')) &&
68 (id != G3D_IFF_MKID('L','W','O','2'))) {
69 g_warning("'%s' is not a LightWave object", stream->uri);
70 return FALSE;
71 }
72
73 obj = g_new0(LwoObject, 1);
74
75 global = g_new0(G3DIffGlobal, 1);
76 global->stream = stream;
77 global->context = context;
78 global->model = model;
79 if(id == G3D_IFF_MKID('L','W','O','2'))
80 global->flags |= LWO_FLAG_LWO2;
81 global->user_data = obj;
82
83 local = g_new0(G3DIffLocal, 1);
84 local->id = id;
85 local->nb = len;
86
87 material = g3d_material_new();
88 material->name = g_strdup("fallback material");
89 model->materials = g_slist_append(model->materials, material);
90
91 g3d_iff_read_ctnr(global, local, lwo_chunks,
92 G3D_IFF_PAD2 | G3D_IFF_SUBCHUNK_LEN16);
93
94 lwo_fix_texfaces(model);
95
96 /* cleanup */
97 if(obj->ntags)
98 g_strfreev(obj->tags);
99
100 if(obj->nclips)
101 {
102 g_free(obj->clips);
103 g_strfreev(obj->clipfiles);
104 }
105
106 if(obj->tex_vertices)
107 g_free(obj->tex_vertices);
108
109 g_free(obj);
110
111 g_free(local);
112 g_free(global);
113
114 g3d_context_update_progress_bar(context, 0.0, FALSE);
115
116 return TRUE;
117}
118
119EAPI
120gchar *plugin_description(G3DContext *context)
121{
122 return g_strdup("LightWave models.\n"
123 "Author: Markus Dahms.");
124}
125
126EAPI
127gchar **plugin_extensions(G3DContext *context)
128{
129 return g_strsplit("lwo:lwb:lw", ":", 0);
130}
131
132/*****************************************************************************/
133/* private */
134/*****************************************************************************/
135
136G3DObject *lwo_create_object(G3DStream *stream, G3DModel *model, guint32 flags)
137{
138 G3DObject *object = g_new0(G3DObject, 1);
139 object->name = g_strdup_printf("LWO%c object @ 0x%08x",
140 (flags & LW_F_LWO2) ? '2' : 'B', (guint32)g3d_stream_tell(stream) - 8);
141 model->objects = g_slist_append(model->objects, object);
142
143#if 0
144 /* LWO files should have correct faces */
145 model->glflags &= ~G3D_FLAG_GL_ALLTWOSIDE;
146#endif
147
148 return object;
149}
150
151/*****************************************************************************/
152/* LWO specific */
153/*****************************************************************************/
154
155gint lwo_read_string(G3DStream *stream, char *s)
156{
157 gint c;
158 gint cnt = 0;
159 do {
160 c = g3d_stream_read_int8(stream);
161 if (cnt < LW_MAX_NAME_LEN)
162 s[cnt] = c;
163 else
164 s[LW_MAX_NAME_LEN-1] = 0;
165 cnt++;
166 } while (c != 0);
167 /* if length of string (including \0) is odd skip another byte */
168 if (cnt%2) {
169 g3d_stream_read_int8(stream);
170 cnt++;
171 }
172 return cnt;
173}
174
175guint32 lwo_read_vx(G3DStream *stream, guint *index)
176{
177 *index = g3d_stream_read_int16_be(stream);
178 if((*index & 0xFF00) == 0xFF00) {
179 *index <<= 16;
180 *index += g3d_stream_read_int16_be(stream);
181 *index &= 0x00FFFFFF;
182 return 4;
183 } else {
184 return 2;
185 }
186}
187
188static void lwo_fix_texfaces(G3DModel *model)
189{
190 GSList *olist, *flist;
191 G3DObject *object;
192 G3DFace *face;
193
194 olist = model->objects;
195 while(olist)
196 {
197 object = (G3DObject *)olist->data;
198 olist = olist->next;
199
200 flist = object->faces;
201 while(flist)
202 {
203 face = (G3DFace *)flist->data;
204 flist = flist->next;
205
206 if(face->flags & G3D_FLAG_FAC_TEXMAP)
207 {
208 face->tex_image = face->material->tex_image;
209 if(face->tex_image == NULL)
210 {
211 face->flags &= ~G3D_FLAG_FAC_TEXMAP;
212 }
213 }
214 }
215 }
216}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo.h
new file mode 100644
index 0000000..84aba2d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo.h
@@ -0,0 +1,48 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_LWO_H
23#define _IMP_LWO_H
24
25#include <stdio.h>
26#include <g3d/types.h>
27
28#define LWO_FLAG_LWO2 (1 << 0)
29
30typedef struct {
31 gint32 ntags;
32 gchar **tags;
33
34 gint32 nclips;
35 guint32 *clips;
36 gchar **clipfiles;
37
38 G3DFloat *tex_vertices;
39
40 G3DObject *object;
41} LwoObject;
42
43G3DObject *lwo_create_object(G3DStream *stream, G3DModel *model,
44 guint32 flags);
45gint lwo_read_string(G3DStream *stream, gchar *s);
46guint32 lwo_read_vx(G3DStream *stream, guint *index);
47
48#endif /* _IMP_LWO_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo_callbacks.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo_callbacks.c
new file mode 100644
index 0000000..165c3aa
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo_callbacks.c
@@ -0,0 +1,584 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24
25#include <glib.h>
26
27#include <g3d/context.h>
28#include <g3d/stream.h>
29#include <g3d/material.h>
30#include <g3d/texture.h>
31#include <g3d/iff.h>
32#include <g3d/debug.h>
33
34#include "imp_lwo.h"
35
36gboolean lwo_cb_CLIP(G3DIffGlobal *global, G3DIffLocal *local)
37{
38 LwoObject *obj;
39 guint32 index;
40
41 obj = (LwoObject *)global->user_data;
42 g_return_val_if_fail(obj != NULL, FALSE);
43
44 if(!local->finalize)
45 {
46 index = g3d_stream_read_int32_be(global->stream);
47 local->nb -= 4;
48
49 obj->nclips ++;
50 obj->clips = g_realloc(obj->clips, obj->nclips * sizeof(guint32));
51 obj->clipfiles = g_realloc(obj->clipfiles,
52 (obj->nclips + 1) * sizeof(gchar *));
53
54 obj->clips[obj->nclips - 1] = index;
55 obj->clipfiles[obj->nclips - 1] = g_strdup("undef");
56 obj->clipfiles[obj->nclips] = NULL;
57 }
58
59 return TRUE;
60}
61
62gboolean lwo_cb_COLR(G3DIffGlobal *global, G3DIffLocal *local)
63{
64 G3DMaterial *material;
65
66 material = (G3DMaterial *)local->object;
67 g_return_val_if_fail(material != NULL, FALSE);
68
69 if(global->flags & LWO_FLAG_LWO2)
70 {
71 material->r = g3d_stream_read_float_be(global->stream);
72 material->g = g3d_stream_read_float_be(global->stream);
73 material->b = g3d_stream_read_float_be(global->stream);
74 local->nb -= 12;
75 g3d_stream_read_int16_be(global->stream);
76 local->nb -= 2;
77 }
78 else
79 {
80 material->r = g3d_stream_read_int8(global->stream) / 255.0;
81 material->g = g3d_stream_read_int8(global->stream) / 255.0;
82 material->b = g3d_stream_read_int8(global->stream) / 255.0;
83 g3d_stream_read_int8(global->stream);
84 local->nb -= 4;
85 }
86
87 return TRUE;
88}
89
90/* image index */
91gboolean lwo_cb_IMAG(G3DIffGlobal *global, G3DIffLocal *local)
92{
93 LwoObject *obj;
94 G3DMaterial *material;
95 guint32 index, i;
96
97 obj = (LwoObject *)global->user_data;
98 g_return_val_if_fail(obj != NULL, FALSE);
99
100 material = (G3DMaterial *)local->object;
101 g_return_val_if_fail(material != NULL, FALSE);
102
103 local->nb -= lwo_read_vx(global->stream, &index);
104
105 for(i = 0; i < obj->nclips; i ++)
106 {
107 if(obj->clips[i] == index)
108 break;
109 }
110
111 if((i < obj->nclips) && (obj->clips[i] == index))
112 {
113 material->tex_image = g3d_texture_load_cached(
114 global->context, global->model, obj->clipfiles[i]);
115 }
116
117 return TRUE;
118}
119
120/* points */
121gboolean lwo_cb_PNTS(G3DIffGlobal *global, G3DIffLocal *local)
122{
123 LwoObject *obj;
124 G3DObject *object;
125 gint32 i, off;
126
127 obj = (LwoObject *)global->user_data;
128 g_return_val_if_fail(obj != NULL, FALSE);
129
130 if(global->flags & LWO_FLAG_LWO2) {
131 object = lwo_create_object(global->stream, global->model,
132 global->flags);
133 obj->object = object;
134
135 if(obj->tex_vertices) {
136 g_free(obj->tex_vertices);
137 obj->tex_vertices = NULL;
138 }
139 } else {
140 object = (G3DObject *)obj->object;
141 if(object == NULL) {
142 object = lwo_create_object(global->stream, global->model,
143 global->flags);
144 obj->object = object;
145 }
146 }
147 off = object->vertex_count;
148 object->vertex_count += (local->nb / 12);
149 g_return_val_if_fail(object->vertex_count >= 3, FALSE);
150
151 object->vertex_data = g_realloc(object->vertex_data,
152 sizeof(G3DFloat) * object->vertex_count * 3);
153
154 for(i = off; i < object->vertex_count; i ++) {
155 object->vertex_data[i * 3 + 0] =
156 -g3d_stream_read_float_be(global->stream);
157 object->vertex_data[i * 3 + 1] =
158 g3d_stream_read_float_be(global->stream);
159 object->vertex_data[i * 3 + 2] =
160 g3d_stream_read_float_be(global->stream);
161 local->nb -= 12;
162 }
163 return TRUE;
164}
165
166/* polygons */
167gboolean lwo_cb_POLS(G3DIffGlobal *global, G3DIffLocal *local)
168{
169 LwoObject *obj;
170 G3DObject *object;
171 G3DFace *face;
172 gboolean skip_face;
173 guint32 type;
174 gint32 n = 0, i, nmat, det_cnt, cnt;
175 gint16 index;
176 gchar *tmp;
177
178 obj = (LwoObject *)global->user_data;
179 g_return_val_if_fail(obj != NULL, FALSE);
180
181 object = (G3DObject *)obj->object;
182 g_return_val_if_fail(object != NULL, FALSE);
183
184 if(global->flags & LWO_FLAG_LWO2) {
185 type = g3d_stream_read_int32_be(global->stream);
186 local->nb -= 4;
187
188 switch(type) {
189 case G3D_IFF_MKID('F', 'A', 'C', 'E'):
190 case G3D_IFF_MKID('P', 'T', 'C', 'H'):
191 break;
192 default:
193 tmp = g3d_iff_id_to_text(type);
194 g_warning("[LWO] unhandled polygon type %s", tmp);
195 g_free(tmp);
196 return FALSE;
197 }
198 }
199
200 while(local->nb > 0) {
201 n ++;
202 skip_face = FALSE;
203 face = g_new0(G3DFace, 1);
204 face->vertex_count = g3d_stream_read_int16_be(global->stream);
205 local->nb -= 2;
206
207 if(global->flags & LWO_FLAG_LWO2)
208 face->vertex_count &= 0x03FF;
209
210 face->vertex_indices = g_new0(guint32, face->vertex_count);
211
212 if(obj->tex_vertices) {
213 face->flags |= G3D_FLAG_FAC_TEXMAP;
214 face->tex_vertex_count = face->vertex_count;
215 face->tex_vertex_data = g_new0(G3DFloat, face->tex_vertex_count * 2);
216 }
217
218 for(i = 0; i < face->vertex_count; i ++) {
219 if(global->flags & LWO_FLAG_LWO2) {
220 local->nb -= lwo_read_vx(global->stream,
221 &(face->vertex_indices[i]));
222 } else {
223 index = g3d_stream_read_int16_be(global->stream);
224 local->nb -= 2;
225 if(index < 0) {
226 skip_face = TRUE;
227 } else
228 face->vertex_indices[i] = index;
229 }
230
231 if(obj->tex_vertices) {
232 face->tex_vertex_data[i * 2 + 0] =
233 obj->tex_vertices[face->vertex_indices[i] * 2 + 0];
234 face->tex_vertex_data[i * 2 + 1] =
235 obj->tex_vertices[face->vertex_indices[i] * 2 + 1];
236 }
237 } /* i: 0..face->vertex_count */
238
239 if(!(global->flags & LWO_FLAG_LWO2)) {
240 nmat = g3d_stream_read_int16_be(global->stream);
241 local->nb -= 2;
242
243 if(nmat < 0) {
244 /* detail polygons, skipped */
245 det_cnt = g3d_stream_read_int16_be(global->stream);
246 local->nb -= 2;
247 nmat *= -1;
248 while(det_cnt-- > 0) {
249 cnt = g3d_stream_read_int16_be(global->stream);
250 local->nb -= 2;
251 g3d_stream_skip(global->stream, cnt * 2 + 2);
252 local->nb -= cnt * 2 + 2;
253 }
254 } else if(nmat == 0) {
255 nmat = 1;
256 }
257
258 face->material = g_slist_nth_data(global->model->materials, nmat);
259
260 if(face->material == NULL) {
261#if 0
262 g_warning("[LWO] face->material is NULL (#%d)\n", nmat - 1);
263#endif
264 face->material = g_slist_nth_data(global->model->materials, 0);
265 }
266 } /* !LWO2 */ else {
267 face->material = g_slist_nth_data(global->model->materials, 0);
268 } /* LWO2 */
269
270 if(skip_face || (face->vertex_count < 3)) {
271 if(face->tex_vertex_data)
272 g_free(face->tex_vertex_data);
273 g_free(face->vertex_indices);
274 g_free(face);
275 } else {
276 object->faces = g_slist_prepend(object->faces, face);
277 }
278
279 g3d_context_update_interface(global->context);
280 } /* local->nb > 0 */
281
282 return TRUE;
283}
284
285/* poly tag mapping */
286gboolean lwo_cb_PTAG(G3DIffGlobal *global, G3DIffLocal *local)
287{
288 LwoObject *obj;
289 G3DObject *object;
290 G3DMaterial *material, *tmat;
291 G3DFace *face;
292 GSList *mlist;
293 gint32 id, fmax;
294 guint32 poly, tag;
295
296 obj = (LwoObject *)global->user_data;
297 g_return_val_if_fail(obj != NULL, FALSE);
298
299 object = (G3DObject *)obj->object;
300 g_return_val_if_fail(object != NULL, FALSE);
301
302 id = g3d_stream_read_int32_be(global->stream);
303 local->nb -= 4;
304
305 if(id != G3D_IFF_MKID('S','U','R','F'))
306 return FALSE;
307
308 fmax = g_slist_length(object->faces) - 1;
309
310 while(local->nb > 0)
311 {
312 local->nb -= lwo_read_vx(global->stream, &poly);
313 tag = g3d_stream_read_int16_be(global->stream);
314 local->nb -= 2;
315
316 face = (G3DFace *)g_slist_nth_data(object->faces, fmax - poly);
317 g_return_val_if_fail(face != NULL, FALSE);
318
319 if(tag > obj->ntags)
320 {
321 g_warning("[LWO] tag %d not listed (%d tags)", tag, obj->ntags);
322 continue;
323 }
324
325 material = NULL;
326 mlist = global->model->materials;
327 while(mlist != NULL)
328 {
329 tmat = (G3DMaterial*)mlist->data;
330 if(strcmp(obj->tags[tag], tmat->name) == 0)
331 {
332 material = tmat;
333 break;
334 }
335 mlist = mlist->next;
336 }
337
338 if(material)
339 face->material = material;
340 else
341 g_warning("[LWO] unknown material tag %s", obj->tags[tag]);
342 }
343
344 return TRUE;
345}
346
347/* specularity */
348gboolean lwo_cb_SPEC(G3DIffGlobal *global, G3DIffLocal *local)
349{
350 G3DMaterial *material;
351 GLfloat tmpf;
352
353 material = (G3DMaterial *)local->object;
354 g_return_val_if_fail(material != NULL, FALSE);
355
356 if(global->flags & LWO_FLAG_LWO2)
357 {
358 tmpf = 1.0 - g3d_stream_read_float_be(global->stream);
359 local->nb -= 4;
360 }
361 else
362 {
363 tmpf = 1.0 - (GLfloat)g3d_stream_read_int16_be(global->stream) / 256.0;
364 local->nb -= 2;
365 }
366
367 material->specular[0] = material->r * tmpf;
368 material->specular[1] = material->g * tmpf;
369 material->specular[2] = material->b * tmpf;
370
371 return TRUE;
372}
373
374/* surfaces */
375gboolean lwo_cb_SRFS(G3DIffGlobal *global, G3DIffLocal *local)
376{
377 LwoObject *obj;
378 G3DMaterial *material;
379 gchar buffer[512];
380
381 obj = (LwoObject *)global->user_data;
382 g_return_val_if_fail(obj != NULL, FALSE);
383
384 while(local->nb > 0)
385 {
386 material = g3d_material_new();
387 local->nb -= lwo_read_string(global->stream, buffer);
388 material->name = g_strdup(buffer);
389 global->model->materials = g_slist_append(global->model->materials,
390 material);
391
392 }
393
394 return TRUE;
395}
396
397/* still image */
398gboolean lwo_cb_STIL(G3DIffGlobal *global, G3DIffLocal *local)
399{
400 LwoObject *obj;
401
402 gchar buffer[512];
403
404 obj = (LwoObject *)global->user_data;
405 g_return_val_if_fail(obj != NULL, FALSE);
406
407 local->nb -= lwo_read_string(global->stream, buffer);
408
409 g_free(obj->clipfiles[obj->nclips - 1]);
410 obj->clipfiles[obj->nclips - 1] = g_strdup(buffer);
411 obj->clipfiles[obj->nclips] = NULL;
412
413 return TRUE;
414}
415
416/* surface */
417gboolean lwo_cb_SURF(G3DIffGlobal *global, G3DIffLocal *local)
418{
419 LwoObject *obj;
420 G3DObject *object;
421 G3DMaterial *material = NULL, *tmat;
422 GSList *mlist;
423 gchar name[512];
424
425 obj = (LwoObject *)global->user_data;
426 g_return_val_if_fail(obj != NULL, FALSE);
427
428 object = (G3DObject *)obj->object;
429 g_return_val_if_fail(object != NULL, FALSE);
430
431 if(!local->finalize)
432 {
433 local->nb -= lwo_read_string(global->stream, name);
434
435 if(global->flags & LWO_FLAG_LWO2)
436 {
437 g3d_stream_read_int16_be(global->stream);
438 local->nb -= 2;
439 }
440
441 mlist = global->model->materials;
442 while(mlist != NULL)
443 {
444 tmat = (G3DMaterial*)mlist->data;
445 if(strcmp(name, tmat->name) == 0)
446 {
447 material = tmat;
448 break;
449 }
450 mlist = mlist->next;
451 }
452
453 if(material == NULL)
454 {
455 material = g3d_material_new();
456 material->name = g_strdup(name);
457 global->model->materials = g_slist_append(global->model->materials,
458 material);
459 }
460
461 local->object = material;
462 }
463
464 return TRUE;
465}
466
467/* tags */
468gboolean lwo_cb_TAGS(G3DIffGlobal *global, G3DIffLocal *local)
469{
470 LwoObject *obj;
471 G3DMaterial *material;
472 gchar buffer[512];
473
474 obj = (LwoObject *)global->user_data;
475 g_return_val_if_fail(obj != NULL, FALSE);
476
477 if(obj->ntags)
478 {
479 g_strfreev(obj->tags);
480 obj->ntags = 0;
481 }
482
483 /* read tags */
484 while(local->nb > 0)
485 {
486 local->nb -= lwo_read_string(global->stream, buffer);
487 obj->ntags ++;
488 obj->tags = g_realloc(obj->tags, (1 + obj->ntags) * sizeof(gchar *));
489 obj->tags[obj->ntags - 1] = g_strdup(buffer);
490 obj->tags[obj->ntags] = NULL;
491
492 material = g3d_material_new();
493 material->name = g_strdup(buffer);
494 global->model->materials = g_slist_append(global->model->materials,
495 material);
496 }
497
498 return TRUE;
499}
500
501/* transparency */
502gboolean lwo_cb_TRAN(G3DIffGlobal *global, G3DIffLocal *local)
503{
504 G3DMaterial *material;
505
506 material = (G3DMaterial *)local->object;
507 g_return_val_if_fail(material != NULL, FALSE);
508
509 if(global->flags & LWO_FLAG_LWO2) {
510 material->a = 1.0 - g3d_stream_read_float_be(global->stream);
511 local->nb -= 4;
512 } else {
513 material->a = 1.0 -
514 (G3DFloat)g3d_stream_read_int16_be(global->stream) / 256.0;
515 local->nb -= 2;
516 }
517 if(material->a < 0.1)
518 material->a = 0.1;
519
520 return TRUE;
521}
522
523/* vertex mapping */
524gboolean lwo_cb_VMAP(G3DIffGlobal *global, G3DIffLocal *local)
525{
526 LwoObject *obj;
527 guint32 index, type, dim;
528 gchar buffer[512], *tmp;
529
530 obj = (LwoObject *)global->user_data;
531 g_return_val_if_fail(obj != NULL, FALSE);
532
533 tmp = g3d_iff_id_to_text(local->parent_id);
534 g_debug("[LWO][VMAP] parent is %s", tmp);
535 g_free(tmp);
536
537 if(local->parent_id == G3D_IFF_MKID('L','W','O','2'))
538 {
539 type = g3d_stream_read_int32_be(global->stream);
540 local->nb -= 4;
541
542 dim = g3d_stream_read_int16_be(global->stream);
543 local->nb -= 2;
544
545 local->nb -= lwo_read_string(global->stream, buffer);
546
547 if(type == G3D_IFF_MKID('T','X','U','V'))
548 {
549 g_debug("[LWO][VMAP] **TXUV**");
550
551 g_return_val_if_fail(obj->tex_vertices == NULL, FALSE);
552
553 obj->tex_vertices = g_new0(G3DFloat,
554 obj->object->vertex_count * 2);
555
556 while(local->nb > 0)
557 {
558 local->nb -= lwo_read_vx(global->stream, &index);
559 g_return_val_if_fail(index < obj->object->vertex_count, FALSE);
560
561 obj->tex_vertices[index * 2 + 0] =
562 g3d_stream_read_float_be(global->stream);
563 obj->tex_vertices[index * 2 + 1] = 1.0 -
564 g3d_stream_read_float_be(global->stream);
565#if DEBUG > 0
566 if((obj->tex_vertices[index * 2 + 0] > 1.0) ||
567 (obj->tex_vertices[index * 2 + 1] > 1.0))
568 g_debug("LWO: TXUV: %.2f, %.2f",
569 obj->tex_vertices[index * 2 + 0],
570 obj->tex_vertices[index * 2 + 1]);
571#endif
572 local->nb -= 8;
573 }
574 }
575 else
576 {
577 tmp = g3d_iff_id_to_text(type);
578 g_warning("[LWO][VMAP] unhandled vertex mapping %s", tmp);
579 g_free(tmp);
580 }
581 }
582
583 return TRUE;
584}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo_callbacks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo_callbacks.h
new file mode 100644
index 0000000..5b8e2e4
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo_callbacks.h
@@ -0,0 +1,41 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_LWO_CALLBACKS_H
23#define _IMP_LWO_CALLBACKS_H
24
25#include <g3d/iff.h>
26
27gboolean lwo_cb_CLIP(G3DIffGlobal *global, G3DIffLocal *local);
28gboolean lwo_cb_COLR(G3DIffGlobal *global, G3DIffLocal *local);
29gboolean lwo_cb_IMAG(G3DIffGlobal *global, G3DIffLocal *local);
30gboolean lwo_cb_PNTS(G3DIffGlobal *global, G3DIffLocal *local);
31gboolean lwo_cb_POLS(G3DIffGlobal *global, G3DIffLocal *local);
32gboolean lwo_cb_PTAG(G3DIffGlobal *global, G3DIffLocal *local);
33gboolean lwo_cb_SPEC(G3DIffGlobal *global, G3DIffLocal *local);
34gboolean lwo_cb_SRFS(G3DIffGlobal *global, G3DIffLocal *local);
35gboolean lwo_cb_STIL(G3DIffGlobal *global, G3DIffLocal *local);
36gboolean lwo_cb_SURF(G3DIffGlobal *global, G3DIffLocal *local);
37gboolean lwo_cb_TAGS(G3DIffGlobal *global, G3DIffLocal *local);
38gboolean lwo_cb_TRAN(G3DIffGlobal *global, G3DIffLocal *local);
39gboolean lwo_cb_VMAP(G3DIffGlobal *global, G3DIffLocal *local);
40
41#endif
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo_chunks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo_chunks.h
new file mode 100644
index 0000000..ddc7832
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo_chunks.h
@@ -0,0 +1,124 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_LWO_CHUNKS_H
23#define _IMP_LWO_CHUNKS_H
24
25#include <g3d/iff.h>
26
27#include "imp_lwo_callbacks.h"
28
29static G3DIffChunkInfo lwo_chunks[] = {
30 { "AAST", "antialiasing strength", 0, NULL },
31 { "ADTR", "additive transparency", 0, NULL },
32 { "ALPH", "alpha mode", 0, NULL },
33 { "AXIS", "major axis", 0, NULL },
34 { "BBOX", "bounding box", 0, NULL },
35 { "BLOK", "block", 1, NULL },
36 { "BTEX", "unknown", 0, NULL },
37 { "BUMP", "bump intensity", 0, NULL },
38 { "CLIP", "image or image sequence", 1, lwo_cb_CLIP },
39 { "CLRF", "color filter", 0, NULL },
40 { "CLRH", "color highlights", 0, NULL },
41 { "CMNT", "unknown", 0, NULL },
42 { "COLR", "color", 0, lwo_cb_COLR },
43 { "CTEX", "unknown", 0, NULL },
44 { "DESC", "description", 0, NULL },
45 { "DIFF", "diffuse", 0, NULL },
46 { "DTEX", "unknown", 0, NULL },
47 { "FKEY", "gradient key values", 0, NULL },
48 { "FLAG", "flags", 0, NULL },
49 { "FUNC", "algorithm and parameters", 0, NULL },
50 { "GLOS", "specular glossiness", 0, NULL },
51 { "GRAD", "gradient texture (header)", 0, NULL },
52 { "GREN", "gradient end", 0, NULL },
53 { "GRPT", "gradient repeat mode", 0, NULL },
54 { "GRST", "gradient start", 0, NULL },
55 { "GVAL", "glow value", 0, NULL },
56 { "ICON", "icon", 0, NULL },
57 { "IKEY", "gradient key parameters", 0, NULL },
58 { "IMAG", "image index", 0, lwo_cb_IMAG },
59 { "IMAP", "image map (header)", 0, NULL },
60 { "INAM", "item name", 0, NULL },
61 { "LAYR", "layer", 0, NULL },
62 { "LTEX", "unknown", 0, NULL },
63 { "LUMI", "luminosity", 0, NULL },
64 { "PIXB", "pixel blending", 0, NULL },
65 { "PNAM", "parameter name", 0, NULL },
66 { "PNTS", "points", 0, lwo_cb_PNTS },
67 { "POLS", "polygons", 0, lwo_cb_POLS },
68 { "PROC", "procedural texture (header)", 0, NULL },
69 { "PROJ", "projection mode", 0, NULL },
70 { "PTAG", "polygon tag mapping", 0, lwo_cb_PTAG },
71 { "RBLR", "reflection blurring", 0, NULL },
72 { "REFL", "reflection", 0, NULL },
73 { "RFLT", "unknown", 0, NULL },
74 { "RFOP", "reflection options", 0, NULL },
75 { "RIMG", "reflection map image", 0, NULL },
76 { "RIND", "refractive index", 0, NULL },
77 { "RSAN", "reflection map seam angle", 0, NULL },
78 { "SHDR", "shader", 0, NULL },
79 { "SIDE", "polygon sidedness", 0, NULL },
80 { "SMAN", "max smooting angle", 0, NULL },
81 { "SPEC", "specular", 0, lwo_cb_SPEC },
82 { "SRFS", "surface materials", 0, lwo_cb_SRFS },
83 { "STEX", "unknown", 0, NULL },
84 { "STIL", "still image", 0, lwo_cb_STIL },
85 { "SURF", "surface material", 1, lwo_cb_SURF },
86 { "TAAS", "unknown", 0, NULL },
87 { "TAGS", "tags", 0, lwo_cb_TAGS },
88 { "TAMP", "texture amplitude", 0, NULL },
89 { "TCLR", "unknown", 0, NULL },
90 { "TCTR", "unknown", 0, NULL },
91 { "TEXT", "commentary text", 0, NULL },
92 { "TFAL", "unknown", 0, NULL },
93 { "TFLG", "unknown", 0, NULL },
94 { "TFP0", "unknown", 0, NULL },
95 { "TFP1", "unknown", 0, NULL },
96 { "TFP2", "unknown", 0, NULL },
97 { "TFP3", "unknown", 0, NULL },
98 { "TFRQ", "unknown", 0, NULL },
99 { "TIMG", "refraction map image", 0, NULL },
100 { "TIP0", "unknown", 0, NULL },
101 { "TMAP", "texture map", 0, NULL },
102 { "TRAN", "transparency", 0, lwo_cb_TRAN },
103 { "TRNL", "translucency", 0, NULL },
104 { "TROP", "transparency options", 0, NULL },
105 { "TSIZ", "unknown", 0, NULL },
106 { "TSP0", "unknown", 0, NULL },
107 { "TTEX", "unknown", 0, NULL },
108 { "TVAL", "unknown", 0, NULL },
109 { "VALU", "basic value", 0, NULL },
110 { "VDIF", "unknown", 0, NULL },
111 { "VMAD", "discontinuous vertex map", 0, NULL },
112 { "VMAP", "uv vertex map", 0, lwo_cb_VMAP },
113 { "VMPA", "vertex map parameters", 0, NULL },
114 { "VRFL", "unknown", 0, NULL },
115 { "VSPC", "unknown", 0, NULL },
116 { "VTRN", "unknown", 0, NULL },
117 { "WRAP", "image wrap options", 0, NULL },
118 { "WRPH", "wrap amount (width)", 0, NULL },
119 { "WRPW", "wrap amount (height)", 0, NULL },
120
121 { NULL, NULL, 0, NULL }
122};
123
124#endif /* _IMP_LWO_CHUNKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/Makefile
new file mode 100644
index 0000000..53add53
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/Makefile
@@ -0,0 +1,515 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_max/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_max
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_max_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_max_la_OBJECTS = imp_max.lo imp_max_callbacks.lo
59imp_max_la_OBJECTS = $(am_imp_max_la_OBJECTS)
60#am_imp_max_la_rpath = -rpath \
61# $(pluginimpdir)
62DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
63depcomp = $(SHELL) $(top_srcdir)/config/depcomp
64am__depfiles_maybe = depfiles
65COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
66 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
67LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
68 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
69 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
70CCLD = $(CC)
71LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
72 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
73 $(LDFLAGS) -o $@
74SOURCES = $(imp_max_la_SOURCES)
75DIST_SOURCES = $(imp_max_la_SOURCES)
76ETAGS = etags
77CTAGS = ctags
78DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
79ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
80AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
81AR = ar
82AS = as
83AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
84AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
85AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
86AWK = gawk
87CC = gcc
88CCDEPMODE = depmode=gcc3
89CFLAGS = -g -O2
90CPP = gcc -E
91CPPFLAGS =
92CXX = g++
93CXXCPP = g++ -E
94CXXDEPMODE = depmode=gcc3
95CXXFLAGS = -g -O2
96CYGPATH_W = echo
97DBG_CFLAGS = -O2
98DEBUG = 0
99DEFS = -DHAVE_CONFIG_H
100DEPDIR = .deps
101DLLTOOL = dlltool
102ECHO = echo
103ECHO_C =
104ECHO_N = -n
105ECHO_T =
106EGREP = /bin/grep -E
107EXEEXT =
108F77 =
109FFLAGS =
110GDKPIXBUF_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
111GDKPIXBUF_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
112GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
113GLIB_GENMARSHAL = glib-genmarshal
114GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
115GLIB_MKENUMS = glib-mkenums
116GOBJECT_QUERY = gobject-query
117GREP = /bin/grep
118GTKDOC_CHECK = /usr/bin/gtkdoc-check
119GTK_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
120GTK_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
121HTML_DIR = ${datadir}/gtk-doc/html
122INSTALL = /usr/bin/install -c
123INSTALL_DATA = ${INSTALL} -m 644
124INSTALL_PROGRAM = ${INSTALL}
125INSTALL_SCRIPT = ${INSTALL}
126INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
127LDFLAGS =
128LEX = flex
129LEXLIB = -lfl
130LEX_OUTPUT_ROOT = lex.yy
131LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
132LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
133LIBOBJS =
134LIBS = -lm
135LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
136LIBXML2_CFLAGS = -I/usr/include/libxml2
137LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
138LN_S = ln -s
139LTLIBOBJS =
140LTVERSION = 0:8:0
141MAGIC_LIBS = -lmagic
142MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
143MATH_LIBS = -lm
144MKDIR_P = /bin/mkdir -p
145OBJDUMP = objdump
146OBJEXT = o
147PACKAGE = libg3d
148PACKAGE_BUGREPORT =
149PACKAGE_NAME =
150PACKAGE_STRING =
151PACKAGE_TARNAME =
152PACKAGE_VERSION =
153PATH_SEPARATOR = :
154PKG_CONFIG = /usr/bin/pkg-config
155PLUGINS_LDFLAGS = -avoid-version -export-dynamic
156RANLIB = ranlib
157SET_MAKE =
158SHELL = /bin/bash
159STRIP = strip
160VERSION = 0.0.8
161XML2_CONFIG = /usr/bin/xml2-config
162XML_CPPFLAGS = -I/usr/include/libxml2
163XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
164Z_CFLAGS =
165Z_LIBS = -lz
166abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max
167abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max
168abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
170ac_ct_CC = gcc
171ac_ct_CXX = g++
172ac_ct_F77 =
173am__include = include
174am__leading_dot = .
175am__quote =
176am__tar = ${AMTAR} chof - "$$tardir"
177am__untar = ${AMTAR} xf -
178bindir = ${exec_prefix}/bin
179build = x86_64-unknown-linux-gnu
180build_alias =
181build_cpu = x86_64
182build_os = linux-gnu
183build_vendor = unknown
184builddir = .
185datadir = ${datarootdir}
186datarootdir = ${prefix}/share
187docdir = ${datarootdir}/doc/${PACKAGE}
188dvidir = ${docdir}
189exec_prefix = ${prefix}
190host = x86_64-unknown-linux-gnu
191host_alias =
192host_cpu = x86_64
193host_os = linux-gnu
194host_vendor = unknown
195htmldir = ${docdir}
196includedir = ${prefix}/include
197infodir = ${datarootdir}/info
198install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
199libdir = ${exec_prefix}/lib
200libexecdir = ${exec_prefix}/libexec
201localedir = ${datarootdir}/locale
202localstatedir = ${prefix}/var
203mandir = ${datarootdir}/man
204mkdir_p = /bin/mkdir -p
205oldincludedir = /usr/include
206pdfdir = ${docdir}
207prefix = /usr/local
208program_transform_name = s,x,x,
209psdir = ${docdir}
210sbindir = ${exec_prefix}/sbin
211sharedstatedir = ${prefix}/com
212srcdir = .
213sysconfdir = ${prefix}/etc
214target_alias =
215top_builddir = ../../..
216top_srcdir = ../../..
217pluginimpdir = $(pkglibdir)/plugins/import
218#pluginimp_LTLIBRARIES = imp_max.la
219AM_CFLAGS = \
220 -Wall -ansi -pedantic \
221 -DG_LOG_DOMAIN=\"LibG3D\" \
222 -O2 -DDEBUG=0 \
223 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
224
225INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include
226AM_LDFLAGS = \
227 -no-undefined -module \
228 -avoid-version -export-dynamic
229
230imp_max_la_SOURCES = imp_max.c \
231 imp_max_chunks.h imp_max_callbacks.c imp_max_callbacks.h
232
233imp_max_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
234all: all-am
235
236.SUFFIXES:
237.SUFFIXES: .c .lo .o .obj
238$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
239 @for dep in $?; do \
240 case '$(am__configure_deps)' in \
241 *$$dep*) \
242 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
243 && exit 0; \
244 exit 1;; \
245 esac; \
246 done; \
247 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_max/Makefile'; \
248 cd $(top_srcdir) && \
249 $(AUTOMAKE) --gnu plugins/import/imp_max/Makefile
250.PRECIOUS: Makefile
251Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
252 @case '$?' in \
253 *config.status*) \
254 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
255 *) \
256 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
257 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
258 esac;
259
260$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
261 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
262
263$(top_srcdir)/configure: $(am__configure_deps)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265$(ACLOCAL_M4): $(am__aclocal_m4_deps)
266 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
267install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
268 @$(NORMAL_INSTALL)
269 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
270 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
271 if test -f $$p; then \
272 f=$(am__strip_dir) \
273 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
274 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
275 else :; fi; \
276 done
277
278uninstall-pluginimpLTLIBRARIES:
279 @$(NORMAL_UNINSTALL)
280 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
281 p=$(am__strip_dir) \
282 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
283 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
284 done
285
286clean-pluginimpLTLIBRARIES:
287 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
288 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
289 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
290 test "$$dir" != "$$p" || dir=.; \
291 echo "rm -f \"$${dir}/so_locations\""; \
292 rm -f "$${dir}/so_locations"; \
293 done
294imp_max.la: $(imp_max_la_OBJECTS) $(imp_max_la_DEPENDENCIES)
295 $(LINK) $(am_imp_max_la_rpath) $(imp_max_la_OBJECTS) $(imp_max_la_LIBADD) $(LIBS)
296
297mostlyclean-compile:
298 -rm -f *.$(OBJEXT)
299
300distclean-compile:
301 -rm -f *.tab.c
302
303include ./$(DEPDIR)/imp_max.Plo
304include ./$(DEPDIR)/imp_max_callbacks.Plo
305
306.c.o:
307 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
308 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
309# source='$<' object='$@' libtool=no \
310# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
311# $(COMPILE) -c $<
312
313.c.obj:
314 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
315 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
316# source='$<' object='$@' libtool=no \
317# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
318# $(COMPILE) -c `$(CYGPATH_W) '$<'`
319
320.c.lo:
321 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
322 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
323# source='$<' object='$@' libtool=yes \
324# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
325# $(LTCOMPILE) -c -o $@ $<
326
327mostlyclean-libtool:
328 -rm -f *.lo
329
330clean-libtool:
331 -rm -rf .libs _libs
332
333ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
334 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
335 unique=`for i in $$list; do \
336 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
337 done | \
338 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
339 END { if (nonempty) { for (i in files) print i; }; }'`; \
340 mkid -fID $$unique
341tags: TAGS
342
343TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
344 $(TAGS_FILES) $(LISP)
345 tags=; \
346 here=`pwd`; \
347 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
348 unique=`for i in $$list; do \
349 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
350 done | \
351 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
352 END { if (nonempty) { for (i in files) print i; }; }'`; \
353 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
354 test -n "$$unique" || unique=$$empty_fix; \
355 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
356 $$tags $$unique; \
357 fi
358ctags: CTAGS
359CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
360 $(TAGS_FILES) $(LISP)
361 tags=; \
362 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
363 unique=`for i in $$list; do \
364 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
365 done | \
366 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
367 END { if (nonempty) { for (i in files) print i; }; }'`; \
368 test -z "$(CTAGS_ARGS)$$tags$$unique" \
369 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
370 $$tags $$unique
371
372GTAGS:
373 here=`$(am__cd) $(top_builddir) && pwd` \
374 && cd $(top_srcdir) \
375 && gtags -i $(GTAGS_ARGS) $$here
376
377distclean-tags:
378 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
379
380distdir: $(DISTFILES)
381 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
382 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
383 list='$(DISTFILES)'; \
384 dist_files=`for file in $$list; do echo $$file; done | \
385 sed -e "s|^$$srcdirstrip/||;t" \
386 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
387 case $$dist_files in \
388 */*) $(MKDIR_P) `echo "$$dist_files" | \
389 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
390 sort -u` ;; \
391 esac; \
392 for file in $$dist_files; do \
393 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
394 if test -d $$d/$$file; then \
395 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
396 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
397 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
398 fi; \
399 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
400 else \
401 test -f $(distdir)/$$file \
402 || cp -p $$d/$$file $(distdir)/$$file \
403 || exit 1; \
404 fi; \
405 done
406check-am: all-am
407check: check-am
408all-am: Makefile $(LTLIBRARIES)
409installdirs:
410 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
411 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
412 done
413install: install-am
414install-exec: install-exec-am
415install-data: install-data-am
416uninstall: uninstall-am
417
418install-am: all-am
419 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
420
421installcheck: installcheck-am
422install-strip:
423 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
424 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
425 `test -z '$(STRIP)' || \
426 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
427mostlyclean-generic:
428
429clean-generic:
430
431distclean-generic:
432 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
433
434maintainer-clean-generic:
435 @echo "This command is intended for maintainers to use"
436 @echo "it deletes files that may require special tools to rebuild."
437clean: clean-am
438
439clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
440 mostlyclean-am
441
442distclean: distclean-am
443 -rm -rf ./$(DEPDIR)
444 -rm -f Makefile
445distclean-am: clean-am distclean-compile distclean-generic \
446 distclean-tags
447
448dvi: dvi-am
449
450dvi-am:
451
452html: html-am
453
454info: info-am
455
456info-am:
457
458install-data-am: install-pluginimpLTLIBRARIES
459
460install-dvi: install-dvi-am
461
462install-exec-am:
463
464install-html: install-html-am
465
466install-info: install-info-am
467
468install-man:
469
470install-pdf: install-pdf-am
471
472install-ps: install-ps-am
473
474installcheck-am:
475
476maintainer-clean: maintainer-clean-am
477 -rm -rf ./$(DEPDIR)
478 -rm -f Makefile
479maintainer-clean-am: distclean-am maintainer-clean-generic
480
481mostlyclean: mostlyclean-am
482
483mostlyclean-am: mostlyclean-compile mostlyclean-generic \
484 mostlyclean-libtool
485
486pdf: pdf-am
487
488pdf-am:
489
490ps: ps-am
491
492ps-am:
493
494uninstall-am: uninstall-pluginimpLTLIBRARIES
495
496.MAKE: install-am install-strip
497
498.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
499 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
500 distclean-compile distclean-generic distclean-libtool \
501 distclean-tags distdir dvi dvi-am html html-am info info-am \
502 install install-am install-data install-data-am install-dvi \
503 install-dvi-am install-exec install-exec-am install-html \
504 install-html-am install-info install-info-am install-man \
505 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
506 install-ps install-ps-am install-strip installcheck \
507 installcheck-am installdirs maintainer-clean \
508 maintainer-clean-generic mostlyclean mostlyclean-compile \
509 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
510 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
511
512 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
513# Tell versions [3.59,3.63) of GNU make to not export all variables.
514# Otherwise a system limit (for SysV at least) may be exceeded.
515.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/Makefile.am
new file mode 100644
index 0000000..c1b46fb
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/Makefile.am
@@ -0,0 +1,26 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if EXPERIMENTAL
4if HAVE_LIBGSF
5pluginimp_LTLIBRARIES = imp_max.la
6endif
7endif
8
9AM_CFLAGS = \
10 -Wall -ansi -pedantic \
11 -DG_LOG_DOMAIN=\"LibG3D\" \
12 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
13 @GLIB_CFLAGS@
14 @LIBGSF_CFLAGS@
15
16INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include
17
18AM_LDFLAGS = \
19 -no-undefined -module \
20 @PLUGINS_LDFLAGS@
21
22LIBTOOL += --quiet
23
24imp_max_la_SOURCES = imp_max.c \
25 imp_max_chunks.h imp_max_callbacks.c imp_max_callbacks.h
26imp_max_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ @LIBGSF_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/Makefile.in
new file mode 100644
index 0000000..054a849
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/Makefile.in
@@ -0,0 +1,515 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_max
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_max_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_max_la_OBJECTS = imp_max.lo imp_max_callbacks.lo
59imp_max_la_OBJECTS = $(am_imp_max_la_OBJECTS)
60@EXPERIMENTAL_TRUE@@HAVE_LIBGSF_TRUE@am_imp_max_la_rpath = -rpath \
61@EXPERIMENTAL_TRUE@@HAVE_LIBGSF_TRUE@ $(pluginimpdir)
62DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
63depcomp = $(SHELL) $(top_srcdir)/config/depcomp
64am__depfiles_maybe = depfiles
65COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
66 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
67LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
68 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
69 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
70CCLD = $(CC)
71LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
72 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
73 $(LDFLAGS) -o $@
74SOURCES = $(imp_max_la_SOURCES)
75DIST_SOURCES = $(imp_max_la_SOURCES)
76ETAGS = etags
77CTAGS = ctags
78DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
79ACLOCAL = @ACLOCAL@
80AMTAR = @AMTAR@
81AR = @AR@
82AS = @AS@
83AUTOCONF = @AUTOCONF@
84AUTOHEADER = @AUTOHEADER@
85AUTOMAKE = @AUTOMAKE@
86AWK = @AWK@
87CC = @CC@
88CCDEPMODE = @CCDEPMODE@
89CFLAGS = @CFLAGS@
90CPP = @CPP@
91CPPFLAGS = @CPPFLAGS@
92CXX = @CXX@
93CXXCPP = @CXXCPP@
94CXXDEPMODE = @CXXDEPMODE@
95CXXFLAGS = @CXXFLAGS@
96CYGPATH_W = @CYGPATH_W@
97DBG_CFLAGS = @DBG_CFLAGS@
98DEBUG = @DEBUG@
99DEFS = @DEFS@
100DEPDIR = @DEPDIR@
101DLLTOOL = @DLLTOOL@
102ECHO = @ECHO@
103ECHO_C = @ECHO_C@
104ECHO_N = @ECHO_N@
105ECHO_T = @ECHO_T@
106EGREP = @EGREP@
107EXEEXT = @EXEEXT@
108F77 = @F77@
109FFLAGS = @FFLAGS@
110GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
111GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
112GLIB_CFLAGS = @GLIB_CFLAGS@
113GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
114GLIB_LIBS = @GLIB_LIBS@
115GLIB_MKENUMS = @GLIB_MKENUMS@
116GOBJECT_QUERY = @GOBJECT_QUERY@
117GREP = @GREP@
118GTKDOC_CHECK = @GTKDOC_CHECK@
119GTK_CFLAGS = @GTK_CFLAGS@
120GTK_LIBS = @GTK_LIBS@
121HTML_DIR = @HTML_DIR@
122INSTALL = @INSTALL@
123INSTALL_DATA = @INSTALL_DATA@
124INSTALL_PROGRAM = @INSTALL_PROGRAM@
125INSTALL_SCRIPT = @INSTALL_SCRIPT@
126INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
127LDFLAGS = @LDFLAGS@
128LEX = @LEX@
129LEXLIB = @LEXLIB@
130LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
131LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
132LIBGSF_LIBS = @LIBGSF_LIBS@
133LIBOBJS = @LIBOBJS@
134LIBS = @LIBS@
135LIBTOOL = @LIBTOOL@ --quiet
136LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
137LIBXML2_LIBS = @LIBXML2_LIBS@
138LN_S = @LN_S@
139LTLIBOBJS = @LTLIBOBJS@
140LTVERSION = @LTVERSION@
141MAGIC_LIBS = @MAGIC_LIBS@
142MAKEINFO = @MAKEINFO@
143MATH_LIBS = @MATH_LIBS@
144MKDIR_P = @MKDIR_P@
145OBJDUMP = @OBJDUMP@
146OBJEXT = @OBJEXT@
147PACKAGE = @PACKAGE@
148PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
149PACKAGE_NAME = @PACKAGE_NAME@
150PACKAGE_STRING = @PACKAGE_STRING@
151PACKAGE_TARNAME = @PACKAGE_TARNAME@
152PACKAGE_VERSION = @PACKAGE_VERSION@
153PATH_SEPARATOR = @PATH_SEPARATOR@
154PKG_CONFIG = @PKG_CONFIG@
155PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
156RANLIB = @RANLIB@
157SET_MAKE = @SET_MAKE@
158SHELL = @SHELL@
159STRIP = @STRIP@
160VERSION = @VERSION@
161XML2_CONFIG = @XML2_CONFIG@
162XML_CPPFLAGS = @XML_CPPFLAGS@
163XML_LIBS = @XML_LIBS@
164Z_CFLAGS = @Z_CFLAGS@
165Z_LIBS = @Z_LIBS@
166abs_builddir = @abs_builddir@
167abs_srcdir = @abs_srcdir@
168abs_top_builddir = @abs_top_builddir@
169abs_top_srcdir = @abs_top_srcdir@
170ac_ct_CC = @ac_ct_CC@
171ac_ct_CXX = @ac_ct_CXX@
172ac_ct_F77 = @ac_ct_F77@
173am__include = @am__include@
174am__leading_dot = @am__leading_dot@
175am__quote = @am__quote@
176am__tar = @am__tar@
177am__untar = @am__untar@
178bindir = @bindir@
179build = @build@
180build_alias = @build_alias@
181build_cpu = @build_cpu@
182build_os = @build_os@
183build_vendor = @build_vendor@
184builddir = @builddir@
185datadir = @datadir@
186datarootdir = @datarootdir@
187docdir = @docdir@
188dvidir = @dvidir@
189exec_prefix = @exec_prefix@
190host = @host@
191host_alias = @host_alias@
192host_cpu = @host_cpu@
193host_os = @host_os@
194host_vendor = @host_vendor@
195htmldir = @htmldir@
196includedir = @includedir@
197infodir = @infodir@
198install_sh = @install_sh@
199libdir = @libdir@
200libexecdir = @libexecdir@
201localedir = @localedir@
202localstatedir = @localstatedir@
203mandir = @mandir@
204mkdir_p = @mkdir_p@
205oldincludedir = @oldincludedir@
206pdfdir = @pdfdir@
207prefix = @prefix@
208program_transform_name = @program_transform_name@
209psdir = @psdir@
210sbindir = @sbindir@
211sharedstatedir = @sharedstatedir@
212srcdir = @srcdir@
213sysconfdir = @sysconfdir@
214target_alias = @target_alias@
215top_builddir = @top_builddir@
216top_srcdir = @top_srcdir@
217pluginimpdir = $(pkglibdir)/plugins/import
218@EXPERIMENTAL_TRUE@@HAVE_LIBGSF_TRUE@pluginimp_LTLIBRARIES = imp_max.la
219AM_CFLAGS = \
220 -Wall -ansi -pedantic \
221 -DG_LOG_DOMAIN=\"LibG3D\" \
222 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
223 @GLIB_CFLAGS@
224
225INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include
226AM_LDFLAGS = \
227 -no-undefined -module \
228 @PLUGINS_LDFLAGS@
229
230imp_max_la_SOURCES = imp_max.c \
231 imp_max_chunks.h imp_max_callbacks.c imp_max_callbacks.h
232
233imp_max_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ @LIBGSF_LIBS@
234all: all-am
235
236.SUFFIXES:
237.SUFFIXES: .c .lo .o .obj
238$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
239 @for dep in $?; do \
240 case '$(am__configure_deps)' in \
241 *$$dep*) \
242 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
243 && exit 0; \
244 exit 1;; \
245 esac; \
246 done; \
247 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_max/Makefile'; \
248 cd $(top_srcdir) && \
249 $(AUTOMAKE) --gnu plugins/import/imp_max/Makefile
250.PRECIOUS: Makefile
251Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
252 @case '$?' in \
253 *config.status*) \
254 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
255 *) \
256 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
257 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
258 esac;
259
260$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
261 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
262
263$(top_srcdir)/configure: $(am__configure_deps)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265$(ACLOCAL_M4): $(am__aclocal_m4_deps)
266 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
267install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
268 @$(NORMAL_INSTALL)
269 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
270 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
271 if test -f $$p; then \
272 f=$(am__strip_dir) \
273 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
274 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
275 else :; fi; \
276 done
277
278uninstall-pluginimpLTLIBRARIES:
279 @$(NORMAL_UNINSTALL)
280 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
281 p=$(am__strip_dir) \
282 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
283 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
284 done
285
286clean-pluginimpLTLIBRARIES:
287 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
288 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
289 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
290 test "$$dir" != "$$p" || dir=.; \
291 echo "rm -f \"$${dir}/so_locations\""; \
292 rm -f "$${dir}/so_locations"; \
293 done
294imp_max.la: $(imp_max_la_OBJECTS) $(imp_max_la_DEPENDENCIES)
295 $(LINK) $(am_imp_max_la_rpath) $(imp_max_la_OBJECTS) $(imp_max_la_LIBADD) $(LIBS)
296
297mostlyclean-compile:
298 -rm -f *.$(OBJEXT)
299
300distclean-compile:
301 -rm -f *.tab.c
302
303@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_max.Plo@am__quote@
304@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_max_callbacks.Plo@am__quote@
305
306.c.o:
307@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
308@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
309@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
310@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
311@am__fastdepCC_FALSE@ $(COMPILE) -c $<
312
313.c.obj:
314@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
315@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
316@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
317@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
318@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
319
320.c.lo:
321@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
322@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
323@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
324@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
325@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
326
327mostlyclean-libtool:
328 -rm -f *.lo
329
330clean-libtool:
331 -rm -rf .libs _libs
332
333ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
334 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
335 unique=`for i in $$list; do \
336 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
337 done | \
338 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
339 END { if (nonempty) { for (i in files) print i; }; }'`; \
340 mkid -fID $$unique
341tags: TAGS
342
343TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
344 $(TAGS_FILES) $(LISP)
345 tags=; \
346 here=`pwd`; \
347 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
348 unique=`for i in $$list; do \
349 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
350 done | \
351 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
352 END { if (nonempty) { for (i in files) print i; }; }'`; \
353 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
354 test -n "$$unique" || unique=$$empty_fix; \
355 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
356 $$tags $$unique; \
357 fi
358ctags: CTAGS
359CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
360 $(TAGS_FILES) $(LISP)
361 tags=; \
362 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
363 unique=`for i in $$list; do \
364 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
365 done | \
366 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
367 END { if (nonempty) { for (i in files) print i; }; }'`; \
368 test -z "$(CTAGS_ARGS)$$tags$$unique" \
369 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
370 $$tags $$unique
371
372GTAGS:
373 here=`$(am__cd) $(top_builddir) && pwd` \
374 && cd $(top_srcdir) \
375 && gtags -i $(GTAGS_ARGS) $$here
376
377distclean-tags:
378 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
379
380distdir: $(DISTFILES)
381 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
382 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
383 list='$(DISTFILES)'; \
384 dist_files=`for file in $$list; do echo $$file; done | \
385 sed -e "s|^$$srcdirstrip/||;t" \
386 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
387 case $$dist_files in \
388 */*) $(MKDIR_P) `echo "$$dist_files" | \
389 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
390 sort -u` ;; \
391 esac; \
392 for file in $$dist_files; do \
393 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
394 if test -d $$d/$$file; then \
395 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
396 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
397 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
398 fi; \
399 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
400 else \
401 test -f $(distdir)/$$file \
402 || cp -p $$d/$$file $(distdir)/$$file \
403 || exit 1; \
404 fi; \
405 done
406check-am: all-am
407check: check-am
408all-am: Makefile $(LTLIBRARIES)
409installdirs:
410 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
411 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
412 done
413install: install-am
414install-exec: install-exec-am
415install-data: install-data-am
416uninstall: uninstall-am
417
418install-am: all-am
419 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
420
421installcheck: installcheck-am
422install-strip:
423 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
424 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
425 `test -z '$(STRIP)' || \
426 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
427mostlyclean-generic:
428
429clean-generic:
430
431distclean-generic:
432 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
433
434maintainer-clean-generic:
435 @echo "This command is intended for maintainers to use"
436 @echo "it deletes files that may require special tools to rebuild."
437clean: clean-am
438
439clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
440 mostlyclean-am
441
442distclean: distclean-am
443 -rm -rf ./$(DEPDIR)
444 -rm -f Makefile
445distclean-am: clean-am distclean-compile distclean-generic \
446 distclean-tags
447
448dvi: dvi-am
449
450dvi-am:
451
452html: html-am
453
454info: info-am
455
456info-am:
457
458install-data-am: install-pluginimpLTLIBRARIES
459
460install-dvi: install-dvi-am
461
462install-exec-am:
463
464install-html: install-html-am
465
466install-info: install-info-am
467
468install-man:
469
470install-pdf: install-pdf-am
471
472install-ps: install-ps-am
473
474installcheck-am:
475
476maintainer-clean: maintainer-clean-am
477 -rm -rf ./$(DEPDIR)
478 -rm -f Makefile
479maintainer-clean-am: distclean-am maintainer-clean-generic
480
481mostlyclean: mostlyclean-am
482
483mostlyclean-am: mostlyclean-compile mostlyclean-generic \
484 mostlyclean-libtool
485
486pdf: pdf-am
487
488pdf-am:
489
490ps: ps-am
491
492ps-am:
493
494uninstall-am: uninstall-pluginimpLTLIBRARIES
495
496.MAKE: install-am install-strip
497
498.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
499 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
500 distclean-compile distclean-generic distclean-libtool \
501 distclean-tags distdir dvi dvi-am html html-am info info-am \
502 install install-am install-data install-data-am install-dvi \
503 install-dvi-am install-exec install-exec-am install-html \
504 install-html-am install-info install-info-am install-man \
505 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
506 install-ps install-ps-am install-strip installcheck \
507 installcheck-am installdirs maintainer-clean \
508 maintainer-clean-generic mostlyclean mostlyclean-compile \
509 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
510 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
511
512 @LIBGSF_CFLAGS@
513# Tell versions [3.59,3.63) of GNU make to not export all variables.
514# Otherwise a system limit (for SysV at least) may be exceeded.
515.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max.c
new file mode 100644
index 0000000..0dba25c
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max.c
@@ -0,0 +1,358 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <g3d/config.h>
24
25#include <string.h>
26
27#include <g3d/types.h>
28#include <g3d/context.h>
29#include <g3d/object.h>
30#include <g3d/material.h>
31#include <g3d/stream.h>
32#include <g3d/debug.h>
33
34#include "imp_max_chunks.h"
35
36
37
38static gboolean max_read_subfile(G3DContext *context, G3DModel *model,
39 G3DStream *stream, const gchar *subfile);
40static gboolean max_read_chunk(MaxGlobalData *global, gint32 *nb,
41 guint32 level, gint32 parentid, gpointer object, guint32 *l2cnt,
42 GNode *tree);
43static MaxChunk *max_get_chunk_desc(guint16 id, gint32 parentid,
44 gboolean container);
45
46static const gchar *max_subfiles[] = {
47#if 0
48 "Config",
49 "VideoPostQueue",
50 "ScriptedCustAttribDefs",
51 "DllDirectory",
52 "ClassDirectory",
53 "ClassDirectory2",
54 "ClassDirectory3",
55 "ClassData",
56#endif
57 "Scene",
58 NULL
59};
60
61typedef enum {
62 MAX_ROOT_NODE,
63 MAX_L2_NODE,
64 MAX_CNT_NODE,
65 MAX_DATA_NODE
66} MaxNodeType;
67
68typedef struct {
69 MaxNodeType type;
70 gchar *name;
71 guint32 cnt2034;
72 guint32 val2034;
73 gint32 data2034;
74 GSList *children;
75} MaxNode;
76
77typedef struct {
78 guint32 l2id;
79 guint32 id;
80 gchar *text;
81 G3DObject *object;
82} MaxTreeItem;
83
84EAPI
85gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
86 G3DModel *model)
87{
88 gboolean retval = FALSE;
89 G3DMaterial *material;
90 const gchar **subfile = max_subfiles;
91
92 /* create default material */
93 material = g3d_material_new();
94 material->name = g_strdup("default material");
95 model->materials = g_slist_append(model->materials, material);
96
97 /* debugging material */
98 material = g3d_material_new();
99 material->r = 1.0;
100 material->g = 0.2;
101 material->b = 0.1;
102 material->name = g_strdup("debugging material");
103 model->materials = g_slist_append(model->materials, material);
104
105 while(*subfile) {
106 retval = max_read_subfile(context, model, stream, *subfile);
107 subfile ++;
108 }
109
110 g3d_context_update_progress_bar(context, 0.0, FALSE);
111
112 return retval;
113}
114
115EAPI
116gchar *plugin_description(void)
117{
118 return g_strdup("3D Studio MAX models (EXPERIMENTAL).");
119}
120
121EAPI
122gchar **plugin_extensions(void)
123{
124 return g_strsplit("max:gmax", ":", 0);
125}
126
127/*****************************************************************************
128 * max specific
129 *****************************************************************************/
130
131static void max_walk_tree(GNode *tree, guint32 level)
132{
133 GNode *node;
134 MaxTreeItem *mtitem;
135
136 mtitem = (MaxTreeItem *)tree->data;
137
138#if DEBUG > 0
139 g_debug("\\%s(%u)[0x%04X][0x%04X] %s", debug_pad(level), level,
140 mtitem->l2id, mtitem->id, mtitem->text);
141#endif
142
143 for(node = tree->children; node != NULL; node = node->next) {
144 max_walk_tree(node, level + 1);
145 }
146}
147
148static gboolean max_read_subfile(G3DContext *context, G3DModel *model,
149 G3DStream *stream, const gchar *subfile)
150{
151 G3DStream *ssf;
152 MaxGlobalData *global;
153 gint32 fsize;
154 guint32 l2cnt = 0;
155 MaxTreeItem *rootitem;
156 GNode *tree;
157
158 rootitem = g_new0(MaxTreeItem, 1);
159 rootitem->text = g_strdup("ROOT");
160 tree = g_node_new(rootitem);
161
162 ssf = g3d_stream_open_structured_file_from_stream(stream, subfile);
163 if(ssf == NULL) {
164 g_warning("MAX: failed to open '%s' in structured file '%s'",
165 subfile, stream->uri);
166 return FALSE;
167 }
168
169 fsize = g3d_stream_size(ssf);
170
171 g_debug("\\%s (%d bytes)", subfile, fsize);
172
173 global = g_new0(MaxGlobalData, 1);
174 global->context = context;
175 global->model = model;
176 global->stream = ssf;
177 global->subfile = subfile;
178
179 while(max_read_chunk(global, &fsize, 1 /* level */, IDNONE, NULL, &l2cnt,
180 tree));
181
182 g_debug("MAX tree:");
183 max_walk_tree(tree, 0);
184
185 g_free(global);
186 g3d_stream_close(ssf);
187
188 return TRUE;
189}
190
191static GNode *max_find_node(GNode *tree, guint32 id)
192{
193 GNode *node, *found;
194 MaxTreeItem *mtitem;
195
196 mtitem = (MaxTreeItem *)tree->data;
197 if(mtitem->l2id == id)
198 return tree;
199
200 for(node = tree->children; node != NULL; node = node->next) {
201 found = max_find_node(node, id);
202 if(found != NULL)
203 return found;
204 }
205
206 return NULL;
207}
208
209static gboolean max_create_l2_tree_object(MaxGlobalData *global,
210 MaxLocalData *local, G3DObject *parent)
211{
212 G3DObject *object;
213
214 object = g_new0(G3DObject, 1);
215 object->name = g_strdup_printf("0x%04X object @ 0x%08x",
216 local->id, (guint32)g3d_stream_tell(global->stream));
217 local->object = object;
218 if(parent)
219 parent->objects = g_slist_append(parent->objects, object);
220 else
221 global->model->objects = g_slist_append(global->model->objects,
222 object);
223
224 global->object = object;
225 global->vertex_offset = 0;
226
227 return TRUE;
228}
229
230static gboolean max_read_chunk(MaxGlobalData *global, gint32 *nb,
231 guint32 level, gint32 parentid, gpointer object, guint32 *l2cnt,
232 GNode *tree)
233{
234 guint16 id;
235 guint32 length;
236 gboolean container;
237 MaxChunk *chunk;
238 MaxLocalData *local;
239 MaxTreeItem *mtitem;
240 GNode *pnode = NULL, *node;
241
242 if(nb && (*nb < 6))
243 return FALSE;
244
245 id = g3d_stream_read_int16_le(global->stream);
246 length = g3d_stream_read_int32_le(global->stream);
247 container = (length & 0x80000000);
248 length &= 0x7FFFFFFF;
249
250 if(nb && (length > *nb))
251 return FALSE;
252 if(nb)
253 *nb -= length;
254
255 if((level == 2) && l2cnt)
256 (*l2cnt) ++;
257
258 chunk = max_get_chunk_desc(id, parentid, container);
259
260#if DEBUG > 0
261 g_debug("\\%s(%d)[0x%04X][%c%c] %s -- %d (%d) bytes @ 0x%08x",
262 debug_pad(level), level,
263 id, (container ? 'c' : ' '),
264 (chunk && chunk->callback) ? 'f' : ' ',
265 chunk ? chunk->desc : (level == 2) ? "level 2 container" : "unknown",
266 length - 6, length,
267 (guint32)g3d_stream_tell(global->stream) - 6);
268#endif
269
270 node = tree;
271 if(level == 2) {
272 pnode = max_find_node(tree, id);
273 if(pnode != NULL) {
274 mtitem = g_new0(MaxTreeItem, 1);
275 mtitem->l2id = *l2cnt;
276 mtitem->id = id;
277 mtitem->text = g_strdup("L2ITEM");
278 node = g_node_append_data(pnode, mtitem);
279 } else {
280 mtitem = g_new0(MaxTreeItem, 1);
281 mtitem->l2id = 0xFFFF;
282 mtitem->id = id;
283 mtitem->text = g_strdup_printf("OUTOFTREE: 0x%04X", id);
284 node = g_node_append_data(tree, mtitem);
285 }
286 } else if(level > 2) {
287 mtitem = g_new0(MaxTreeItem, 1);
288 mtitem->l2id = 0xFFFF;
289 mtitem->id = id;
290 mtitem->text = g_strdup_printf("REGITEM: 0x%04X: %s",
291 id, chunk ? chunk->desc : "unknown");
292 node = g_node_append_data(tree, mtitem);
293 }
294
295 local = g_new0(MaxLocalData, 1);
296 local->id = (level > 2) ? id : 0x0000;
297 local->parentid = parentid;
298 local->nb = length - 6;
299 local->level = level + 1;
300 local->object = object;
301
302 if((level > 2) && chunk && chunk->callback)
303 chunk->callback(global, local);
304 if(level == 2) {
305 mtitem = pnode ? pnode->data : NULL;
306 max_create_l2_tree_object(global, local,
307 mtitem ? mtitem->object : NULL);
308 mtitem = node->data;
309 mtitem->object = local->object;
310 }
311
312 if(container)
313 while(local->nb > 0)
314 if(!max_read_chunk(global, &(local->nb), level + 1, id,
315 local->object, l2cnt, node))
316 return FALSE;
317
318 if(local->nb > 0)
319 g3d_stream_skip(global->stream, local->nb);
320
321 g_free(local);
322
323 g3d_context_update_interface(global->context);
324
325 if(level < 3)
326 g3d_context_update_progress_bar(global->context,
327 (G3DFloat)g3d_stream_tell(global->stream) /
328 (G3DFloat)g3d_stream_size(global->stream),
329 TRUE);
330
331 return TRUE;
332}
333
334static MaxChunk *max_get_chunk_desc(guint16 id, gint32 parentid,
335 gboolean container)
336{
337 MaxChunk *chunk, *chunks;
338 gint32 i;
339
340 if(container)
341 chunks = max_cnt_chunks;
342 else
343 chunks = max_chunks;
344
345 for(i = 0, chunk = &(chunks[i]); chunk->id != IDNONE;
346 i ++, chunk = &(chunks[i])) {
347 if((chunk->parentid == IDSOME) || (parentid == chunk->parentid) ||
348 (parentid == IDSOME) ||
349 ((chunk->parentid == IDROOT) && ID_IS_ROOT(parentid)) ||
350 ((chunk->parentid == IDGEOM) && ID_IS_GEOM(parentid)) ||
351 ((chunk->parentid == IDMATG) && ID_IS_MATG(parentid)) ||
352 ((chunk->parentid == IDFILE) && ID_IS_FILE(parentid))) {
353 if(chunk->id == id)
354 return chunk;
355 } /* parentid */
356 }
357 return NULL;
358}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max_callbacks.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max_callbacks.c
new file mode 100644
index 0000000..219ad4f
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max_callbacks.c
@@ -0,0 +1,696 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24#include <g3d/material.h>
25#include <g3d/stream.h>
26#include <g3d/debug.h>
27
28#include "imp_max_callbacks.h"
29
30static gchar *max_read_wchar(G3DStream *stream, guint32 n)
31{
32 gint32 i;
33 gunichar2 *u16text;
34 gchar *text;
35 GError *error = NULL;
36
37 u16text = g_new0(gunichar2, n + 1);
38 for(i = 0; i < n; i ++) {
39 u16text[i] = g3d_stream_read_int16_le(stream);
40 }
41
42 text = g_utf16_to_utf8(u16text, n, NULL, NULL, &error);
43 if(error != NULL) {
44 g_warning("UTF-16 to UTF-8 conversion failed: %s",
45 error->message);
46 g_error_free(error);
47 }
48 g_free(u16text);
49
50 return text;
51}
52
53gboolean max_cb_debug_int32(MaxGlobalData *global, MaxLocalData *local)
54{
55 union {
56 gint32 i;
57 G3DFloat f;
58 } u;
59
60 while(local->nb >= 4) {
61 u.i = g3d_stream_read_int32_le(global->stream);
62 local->nb -= 4;
63#if DEBUG > 0
64 g_debug("|%s[D32] 0x%08x, %d, %.2f", debug_pad(local->level),
65 u.i, u.i, u.f);
66#endif
67 }
68 return TRUE;
69}
70
71gboolean max_cb_debug_wchars(MaxGlobalData *global, MaxLocalData *local)
72{
73 gchar *str;
74 guint32 len;
75
76 len = local->nb / 2;
77 str = max_read_wchar(global->stream, len);
78 local->nb -= len * 2;
79#if DEBUG > 0
80 g_debug("|%s[TEXT] %s (%d)", debug_pad(local->level),
81 str, len);
82#endif
83 g_free(str);
84
85 return TRUE;
86}
87
88gboolean max_cb_debug_string(MaxGlobalData *global, MaxLocalData *local)
89{
90 gchar *str;
91 guint32 len;
92
93 g_return_val_if_fail(local->nb >= 4, FALSE);
94 len = g3d_stream_read_int32_le(global->stream);
95 local->nb -= 4;
96 if(len > local->nb)
97 len = local->nb;
98
99 str = g_new0(gchar, len + 1);
100 g3d_stream_read(global->stream, str, len);
101 local->nb -= len;
102#if DEBUG > 0
103 g_debug("|%s[TEXT] %s (%d)", debug_pad(local->level),
104 str, len);
105#endif
106 g_free(str);
107
108 return TRUE;
109}
110
111gboolean max_cb_0x0001_0x0005(MaxGlobalData *global, MaxLocalData *local)
112{
113 gchar *str;
114 gint32 len, i, w3[3], cnt = 0;
115
116 if(local->nb < 4)
117 return FALSE;
118
119 /* flags? */
120 i = g3d_stream_read_int32_le(global->stream);
121 local->nb -= 4;
122
123#if DEBUG > 0
124 g_debug("|%s[PROP] 0x%08x", debug_pad(local->level), i);
125#endif
126
127 while(local->nb > 0) {
128 len = g3d_stream_read_int32_le(global->stream);
129 local->nb -= 4;
130 str = g_malloc0(len + 1);
131 g3d_stream_read(global->stream, str, len);
132 local->nb -= len;
133 for(i = 0; i < 3; i ++)
134 w3[i] = g3d_stream_read_int16_le(global->stream);
135 local->nb -= 6;
136 cnt ++;
137#if DEBUG > 0
138 g_debug("|%s[PROP] %04d: '%s' (%d bytes) [%d, %d, %d]",
139 debug_pad(local->level),
140 cnt, str, len,
141 w3[0], w3[1], w3[2]);
142#endif
143 g_free(str);
144 }
145 return TRUE;
146}
147
148gboolean max_cb_IDFILE_0x1201(MaxGlobalData *global, MaxLocalData *local)
149{
150 guint16 width, height;
151
152 width = g3d_stream_read_int16_le(global->stream);
153 height = g3d_stream_read_int16_le(global->stream);
154 local->nb -= 4;
155#if DEBUG > 0
156 g_debug("|%s[IMG] %u x %u", debug_pad(local->level), width, height);
157#endif
158 return TRUE;
159}
160
161/* vertex data */
162gboolean max_cb_0x08FE_0x0100(MaxGlobalData *global, MaxLocalData *local)
163{
164 guint32 num;
165 gint i, j;
166 G3DObject *object;
167
168 if(local->nb < 4)
169 return FALSE;
170
171 /* vertices */
172 num = g3d_stream_read_int32_le(global->stream);
173 local->nb -= 4;
174 object = (G3DObject *)local->object;
175 if(object == NULL) {
176 g_warning("MAX: 0x08FE::0x0100: no object");
177 return FALSE;
178 }
179
180#if DEBUG > 0
181 g_debug("|%s[VERT] %d vertices", debug_pad(local->level), num);
182#endif
183 global->vertex_offset = object->vertex_count;
184 object->vertex_count += num;
185 object->vertex_data = g_realloc(object->vertex_data,
186 object->vertex_count * 3 * sizeof(G3DFloat));
187
188 for(i = 0; i < num; i ++) {
189 if(local->nb < 16)
190 return FALSE;
191 g3d_stream_read_int32_le(global->stream); /* always 0 */
192 for(j = 0; j < 3; j ++)
193 object->vertex_data[(global->vertex_offset + i) * 3 + j] =
194 g3d_stream_read_float_le(global->stream);
195 local->nb -= 16;
196 }
197 return TRUE;
198}
199
200/* lines (vertex indices) */
201gboolean max_cb_0x08FE_0x010A(MaxGlobalData *global, MaxLocalData *local)
202{
203 guint32 num;
204 gint i, j;
205 guint32 v[3];
206
207 if(local->nb < 4)
208 return FALSE;
209
210 num = g3d_stream_read_int32_le(global->stream);
211 local->nb -= 4;
212
213#if DEBUG > 0
214 g_debug("|%s[LINE] %d lines", debug_pad(local->level), num);
215#endif
216 for(i = 0; i < num; i ++) {
217 if(local->nb < 12)
218 return FALSE;
219 for(j = 0; j < 3; j ++) {
220 v[j] = g3d_stream_read_int32_le(global->stream);
221 }
222 local->nb -= 12;
223
224#if DEBUG > 1
225 g_debug("|%s[LINE] 0x%08x: (%d => %d)", debug_pad(local->level),
226 v[0], v[1], v[2]);
227#endif
228 }
229 return TRUE;
230}
231
232/* polygon data */
233gboolean max_cb_0x08FE_0x011A(MaxGlobalData *global, MaxLocalData *local)
234{
235 gint32 i;
236 guint32 numpoly, type, numvert, cntpoly = 0;
237 G3DObject *object = (G3DObject *)local->object;
238 G3DFace *face;
239 G3DMaterial *material;
240
241 g_return_val_if_fail(local->nb >= 4, FALSE);
242 g_return_val_if_fail(object != NULL, FALSE);
243
244 material = (G3DMaterial *)g_slist_nth_data(global->model->materials,
245 (global->vertex_offset ? 1 : 0));
246 g_return_val_if_fail(material != NULL, FALSE);
247
248 numpoly = g3d_stream_read_int32_le(global->stream);
249 local->nb -= 4;
250#if DEBUG > 0
251 g_debug("|%s[POLY] %d polygons to read", debug_pad(local->level),
252 numpoly);
253#endif
254 while(local->nb >= 4) {
255 numvert = g3d_stream_read_int32_le(global->stream);
256 local->nb -= 4;
257#if DEBUG > 0
258 g_debug("|%s[POLY] %04d: %d vertices", debug_pad(local->level),
259 cntpoly, numvert);
260#endif
261 g_return_val_if_fail(numvert >= 3, FALSE);
262
263 face = g_new0(G3DFace, 1);
264 face->material = material;
265 face->vertex_count = numvert;
266 face->vertex_indices = g_new0(guint32, numvert);
267 object->faces = g_slist_append(object->faces, face);
268 for(i = 0; i < numvert; i ++) {
269 face->vertex_indices[i] =
270 global->vertex_offset +
271 g3d_stream_read_int32_le(global->stream);
272 local->nb -= 4;
273 g_return_val_if_fail(
274 face->vertex_indices[i] < object->vertex_count, FALSE);
275 }
276 type = g3d_stream_read_int16_le(global->stream);
277 local->nb -= 2;
278
279 if(type & 0xFFC6) {
280 g_warning("MAX: 0x011A: unhandled 0x%08x", type);
281#if DEBUG > 0
282 numvert = MIN(local->nb / 2, 20);
283 for(i = 0; i < numvert; i ++) {
284 g_debug("|%s[POLY] 0x%04x", debug_pad(local->level),
285 g3d_stream_read_int16_le(global->stream));
286 local->nb -= 2;
287 }
288#endif
289 return FALSE;
290 }
291
292 /* FIXME: order of additional data most likely wrong */
293 for(i = 3; i < numvert; i ++) {
294 g3d_stream_read_int32_le(global->stream);
295 g3d_stream_read_int32_le(global->stream);
296 local->nb -= 8;
297 }
298 if(type & 0x0001) {
299 g3d_stream_read_int32_le(global->stream);
300 local->nb -= 4;
301 }
302 if(type & 0x0008) {
303 g3d_stream_read_int16_le(global->stream);
304 local->nb -= 2;
305 }
306 if(type & 0x0010) {
307 g3d_stream_read_int32_le(global->stream);
308 local->nb -= 4;
309 }
310 cntpoly ++;
311 }
312#if DEBUG > 0
313 g_debug("|%s[POLY] %d faces added to object", debug_pad(local->level),
314 cntpoly);
315#endif
316 return TRUE;
317}
318
319/* texture vertices */
320gboolean max_cb_0x08FE_0x0128(MaxGlobalData *global, MaxLocalData *local)
321{
322 guint32 num;
323 G3DObject *object = (G3DObject *)local->object;
324
325 g_return_val_if_fail(local->nb >= 4, FALSE);
326 g_return_val_if_fail(object != NULL, FALSE);
327
328 num = g3d_stream_read_int32_le(global->stream);
329 local->nb -= 4;
330
331#if DEBUG > 0
332 g_debug("|%s[TEXV] %d texture vertices", debug_pad(local->level), num);
333#endif
334 return TRUE;
335}
336
337/* texture indices */
338gboolean max_cb_0x08FE_0x012B(MaxGlobalData *global, MaxLocalData *local)
339{
340 gint i;
341 guint32 *vdata, vcnt, maxidx = 0, numpoly = 0, maxvcnt = 0;
342#if 0
343 G3DObject *object = (G3DObject *)local->object;
344 G3DFace *face;
345
346 g_return_val_if_fail(object != NULL, FALSE);
347#endif
348
349 while(local->nb >= 4) {
350 vcnt = g3d_stream_read_int32_le(global->stream);
351 local->nb -= 4;
352 if(vcnt > maxvcnt)
353 maxvcnt = vcnt;
354#if 0
355 face = g_new0(G3DFace, 1);
356 face->vertex_count = vcnt;
357#endif
358 if(local->nb < (vcnt * 4)) {
359#if DEBUG > 0
360 g_debug("|%s[TIDX] %d polygons, max index: %d, max vcnt: %d "
361 "(nb=%d, vcnt=%d)", debug_pad(local->level),
362 numpoly, maxidx, maxvcnt, local->nb, vcnt);
363#endif
364
365 return FALSE;
366 }
367 vdata = g_new0(guint32, vcnt);
368 numpoly ++;
369 for(i = 0; i < vcnt; i ++) {
370 vdata[i] = g3d_stream_read_int32_le(global->stream);
371 local->nb -= 4;
372 if(vdata[i] > maxidx)
373 maxidx = vdata[i];
374 }
375#if 1
376 g_free(vdata);
377#endif
378 }
379#if DEBUG > 0
380 g_debug("|%s[TIDX] %d polygons, max index: %d, max vcnt: %d",
381 debug_pad(local->level), numpoly, maxidx, maxvcnt);
382#endif
383 return TRUE;
384}
385
386/* geometric object */
387gboolean max_cb_IDROOT_IDGEOM(MaxGlobalData *global, MaxLocalData *local)
388{
389 G3DObject *object;
390
391 object = g_new0(G3DObject, 1);
392 object->name = g_strdup_printf("0x%04X object @ 0x%08x",
393 local->id, (guint32)g3d_stream_tell(global->stream));
394 local->object = object;
395 global->model->objects = g_slist_append(global->model->objects, object);
396
397 global->object = object;
398 global->vertex_offset = 0;
399
400 return TRUE;
401}
402
403/* mesh */
404gboolean max_cb_IDGEOM_0x08FE(MaxGlobalData *global, MaxLocalData *local)
405{
406 g_return_val_if_fail(global->object != NULL, FALSE);
407 return TRUE;
408}
409
410/* object name */
411gboolean max_cb_IDGEOM_0x0962(MaxGlobalData *global, MaxLocalData *local)
412{
413 G3DObject *object = (G3DObject *)local->object;
414 gchar *name;
415 gint32 len;
416
417 g_return_val_if_fail(object != NULL, FALSE);
418
419 g_free(object->name);
420 len = local->nb / 2;
421 name = max_read_wchar(global->stream, len);
422 object->name = g_strdup_printf("%s (0x%08x)",
423 name, (guint32)g3d_stream_tell(global->stream) - len - 6);
424 g_free(name);
425#if DEBUG > 0
426 g_debug("|%s[NAME] %s", debug_pad(local->level), object->name);
427#endif
428 local->nb -= len * 2;
429
430 return TRUE;
431}
432
433/* single face */
434gboolean max_cb_0x0118_0x0110(MaxGlobalData *global, MaxLocalData *local)
435{
436 guint32 num;
437 gint i;
438 G3DObject *object = (G3DObject *)local->object;
439 G3DMaterial *mat;
440 G3DFace *face;
441
442 g_return_val_if_fail(local->nb >= 4, FALSE);
443 g_return_val_if_fail(object != NULL, FALSE);
444
445 mat = (G3DMaterial *)g_slist_nth_data(global->model->materials,
446 (global->vertex_offset ? 1 : 0));
447
448 num = g3d_stream_read_int32_le(global->stream);
449 local->nb -= 4;
450
451 face = g_new0(G3DFace, 1);
452 face->vertex_count = num;
453 face->vertex_indices = g_new0(guint32, num);
454 face->material = mat;
455 object->faces = g_slist_append(object->faces, face);
456
457 g_return_val_if_fail(local->nb >= (num * 4), FALSE);
458 for(i = 0; i < num; i ++) {
459 face->vertex_indices[i] =
460 global->vertex_offset +
461 g3d_stream_read_int32_le(global->stream);
462 local->nb -= 4;
463 if(face->vertex_indices[i] >= object->vertex_count) {
464 g_warning("MAX: 0x0118::0x0110: vertex index (%d) >= "
465 "vertex count (%d)",
466 face->vertex_indices[i],
467 object->vertex_count);
468 face->vertex_indices[i] = 0;
469 }
470 }
471 return TRUE;
472}
473
474/* triangles */
475gboolean max_cb_0x08FE_0x0912(MaxGlobalData *global, MaxLocalData *local)
476{
477 guint32 num;
478 gint i, j;
479 G3DObject *object;
480 G3DFace *face;
481 G3DMaterial *mat;
482
483 mat = (G3DMaterial *)g_slist_nth_data(global->model->materials,
484 (global->vertex_offset ? 1 : 0));
485
486 if(local->nb < 4)
487 return FALSE;
488
489 /* faces */
490 num = g3d_stream_read_int32_le(global->stream);
491 local->nb -= 4;
492 object = (G3DObject *)local->object;
493 if(object == NULL) {
494 g_warning("MAX: 0x08FE::0x0912: no object");
495 return FALSE;
496 }
497#if DEBUG > 0
498 g_debug("|%s[TRIS] %d triangles", debug_pad(local->level), num);
499#endif
500 for(i = 0; i < num; i ++) {
501 face = g_new0(G3DFace, 1);
502 face->vertex_count = 3;
503 face->vertex_indices = g_new0(guint32, 3);
504 face->material = mat;
505 object->faces = g_slist_append(object->faces, face);
506
507 if(local->nb < 20)
508 return FALSE;
509 for(j = 0; j < 3; j ++) {
510 face->vertex_indices[j] =
511 global->vertex_offset +
512 g3d_stream_read_int32_le(global->stream);
513 if(face->vertex_indices[j] >= object->vertex_count) {
514 g_warning("MAX: 0x08FE::0x0912: vertex index too high"
515 " (%d (0x%08x) >= %d)",
516 face->vertex_indices[j], face->vertex_indices[j],
517 object->vertex_count);
518 face->vertex_indices[j] = 0;
519 }
520 }
521 /* unknown for now */
522 g3d_stream_read_int32_le(global->stream);
523 g3d_stream_read_int32_le(global->stream);
524 local->nb -= 20;
525 }
526 return TRUE;
527}
528
529/* vertices */
530gboolean max_cb_0x08FE_0x0914(MaxGlobalData *global, MaxLocalData *local)
531{
532 guint32 num;
533 gint i, j;
534 G3DObject *object = (G3DObject *)local->object;
535
536 g_return_val_if_fail(local->nb >= 4, FALSE);
537 g_return_val_if_fail(object != NULL, FALSE);
538
539 /* vertices */
540 num = g3d_stream_read_int32_le(global->stream);
541 local->nb -= 4;
542#if DEBUG > 0
543 g_debug("|%s[VERT] %d vertices", debug_pad(local->level), num);
544#endif
545 global->vertex_offset = object->vertex_count;
546 object->vertex_count += num;
547 object->vertex_data = g_realloc(object->vertex_data,
548 object->vertex_count * 3 * sizeof(G3DFloat));
549
550 for(i = 0; i < num; i ++) {
551 if(local->nb < 12)
552 return FALSE;
553 for(j = 0; j < 3; j ++)
554 object->vertex_data[(global->vertex_offset + i) * 3 + j] =
555 g3d_stream_read_float_le(global->stream);
556 local->nb -= 12;
557 }
558 return TRUE;
559}
560
561/* texture vertices */
562gboolean max_cb_0x08FE_0x0916(MaxGlobalData *global, MaxLocalData *local)
563{
564 return max_cb_0x08FE_0x0128(global, local);
565}
566
567/* texture triangles */
568gboolean max_cb_0x08FE_0x0918(MaxGlobalData *global, MaxLocalData *local)
569{
570 guint32 cnttris = 0;
571
572 while(local->nb >= 12) {
573 cnttris ++;
574
575 g3d_stream_read_int32_le(global->stream);
576 g3d_stream_read_int32_le(global->stream);
577 g3d_stream_read_int32_le(global->stream);
578 local->nb -= 12;
579 }
580
581#if DEBUG > 0
582 g_debug("|%s[TEXI] %d textured triangles (%d bytes left)",
583 debug_pad(local->level), cnttris, local->nb);
584#endif
585 return 0;
586}
587
588/* vertices */
589gboolean max_cb_0x08FE_0x2394(MaxGlobalData *global, MaxLocalData *local)
590{
591 return max_cb_0x08FE_0x0914(global, local);
592}
593
594/* triangles */
595gboolean max_cb_0x08FE_0x2396(MaxGlobalData *global, MaxLocalData *local)
596{
597 guint32 num;
598 gint32 i, j;
599 G3DObject *object = (G3DObject *)local->object;
600 G3DFace *face;
601 G3DMaterial *mat;
602
603 mat = (G3DMaterial *)g_slist_nth_data(global->model->materials,
604 (global->vertex_offset ? 1 : 0));
605
606 g_return_val_if_fail(local->nb >= 4, FALSE);
607 g_return_val_if_fail(object != NULL, FALSE);
608
609 /* faces */
610 num = g3d_stream_read_int32_le(global->stream);
611 local->nb -= 4;
612#if DEBUG > 0
613 g_debug("|%s[TRIS] %d triangles", debug_pad(local->level), num);
614#endif
615 for(i = 0; i < num; i ++) {
616 g_return_val_if_fail(local->nb >= 12, FALSE);
617
618 face = g_new0(G3DFace, 1);
619 face->vertex_count = 3;
620 face->vertex_indices = g_new0(guint32, 3);
621 face->material = mat;
622 object->faces = g_slist_append(object->faces, face);
623
624 g_return_val_if_fail(local->nb >= 12, FALSE);
625 for(j = 0; j < 3; j ++) {
626 face->vertex_indices[j] =
627 global->vertex_offset +
628 g3d_stream_read_int32_le(global->stream);
629 local->nb -= 4;
630 if(face->vertex_indices[j] >= object->vertex_count) {
631 g_warning("MAX: 0x08FE::0x2396: vertex index too high"
632 " (%d (0x%08x) >= %d)",
633 face->vertex_indices[j], face->vertex_indices[j],
634 object->vertex_count);
635 face->vertex_indices[j] = 0;
636 }
637 }
638 }
639 return TRUE;
640}
641
642/* material */
643gboolean max_cb_IDMATG_0x4000(MaxGlobalData *global, MaxLocalData *local)
644{
645 G3DMaterial *material;
646
647 if(strcmp(global->subfile, "Scene") != 0)
648 return FALSE;
649
650 material = g3d_material_new();
651 material->name = g_strdup_printf("0x4000 material @ 0x%08x",
652 (guint32)g3d_stream_tell(global->stream));
653 local->object = material;
654 global->model->materials = g_slist_append(global->model->materials,
655 material);
656 return TRUE;
657}
658
659/* material name */
660gboolean max_cb_0x4000_0x4001(MaxGlobalData *global, MaxLocalData *local)
661{
662 guint32 len;
663 G3DMaterial *material = (G3DMaterial *)local->object;
664
665 g_return_val_if_fail(material != NULL, FALSE);
666 if(material->name)
667 g_free(material->name);
668 len = local->nb / 2;
669 material->name = max_read_wchar(global->stream, len);
670 local->nb -= len * 2;
671#if DEBUG > 0
672 g_debug("|%s[MATN] %s", debug_pad(local->level), material->name);
673#endif
674 return TRUE;
675}
676
677/* material color */
678gboolean max_cb_0x4000_0x4030(MaxGlobalData *global, MaxLocalData *local)
679{
680 G3DMaterial *material = (G3DMaterial *)local->object;
681
682 g_return_val_if_fail(material != NULL, FALSE);
683 g_return_val_if_fail(local->nb >= 16, FALSE);
684
685 material->r = g3d_stream_read_float_le(global->stream);
686 material->g = g3d_stream_read_float_le(global->stream);
687 material->b = g3d_stream_read_float_le(global->stream);
688 material->a = g3d_stream_read_float_le(global->stream);
689 local->nb -= 16;
690#if DEBUG > 0
691 g_debug("|%s[MATC] %.2f, %.2f, %.2f, %.2f", debug_pad(local->level),
692 material->r, material->g, material->b, material->a);
693#endif
694 return TRUE;
695}
696
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max_callbacks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max_callbacks.h
new file mode 100644
index 0000000..244020e
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max_callbacks.h
@@ -0,0 +1,82 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_MAX_CALLBACKS_H
23#define _IMP_MAX_CALLBACKS_H
24
25#include <stdio.h>
26#include <glib.h>
27#include <g3d/types.h>
28
29typedef struct {
30 G3DContext *context;
31 G3DModel *model;
32 G3DStream *stream;
33 const gchar *subfile;
34
35 G3DObject *object;
36 guint32 vertex_offset;
37} MaxGlobalData;
38
39typedef struct {
40 guint16 id;
41 gint32 parentid;
42 guint16 level;
43 gint32 nb;
44 gpointer object;
45} MaxLocalData;
46
47typedef gboolean (* MaxCallback)(MaxGlobalData *global, MaxLocalData *local);
48
49/* callbacks */
50
51gboolean max_cb_debug_int32(MaxGlobalData *global, MaxLocalData *local);
52gboolean max_cb_debug_string(MaxGlobalData *global, MaxLocalData *local);
53gboolean max_cb_debug_wchars(MaxGlobalData *global, MaxLocalData *local);
54
55gboolean max_cb_IDROOT_IDGEOM(MaxGlobalData *global, MaxLocalData *local);
56gboolean max_cb_IDMATG_0x4000(MaxGlobalData *global, MaxLocalData *local);
57
58gboolean max_cb_IDGEOM_0x08FE(MaxGlobalData *global, MaxLocalData *local);
59gboolean max_cb_IDGEOM_0x0962(MaxGlobalData *global, MaxLocalData *local);
60
61gboolean max_cb_IDFILE_0x1201(MaxGlobalData *global, MaxLocalData *local);
62
63gboolean max_cb_0x0001_0x0005(MaxGlobalData *global, MaxLocalData *local);
64
65gboolean max_cb_0x0118_0x0110(MaxGlobalData *global, MaxLocalData *local);
66
67gboolean max_cb_0x08FE_0x0100(MaxGlobalData *global, MaxLocalData *local);
68gboolean max_cb_0x08FE_0x010A(MaxGlobalData *global, MaxLocalData *local);
69gboolean max_cb_0x08FE_0x011A(MaxGlobalData *global, MaxLocalData *local);
70gboolean max_cb_0x08FE_0x0128(MaxGlobalData *global, MaxLocalData *local);
71gboolean max_cb_0x08FE_0x012B(MaxGlobalData *global, MaxLocalData *local);
72gboolean max_cb_0x08FE_0x0912(MaxGlobalData *global, MaxLocalData *local);
73gboolean max_cb_0x08FE_0x0914(MaxGlobalData *global, MaxLocalData *local);
74gboolean max_cb_0x08FE_0x0916(MaxGlobalData *global, MaxLocalData *local);
75gboolean max_cb_0x08FE_0x0918(MaxGlobalData *global, MaxLocalData *local);
76gboolean max_cb_0x08FE_0x2394(MaxGlobalData *global, MaxLocalData *local);
77gboolean max_cb_0x08FE_0x2396(MaxGlobalData *global, MaxLocalData *local);
78
79gboolean max_cb_0x4000_0x4001(MaxGlobalData *global, MaxLocalData *local);
80gboolean max_cb_0x4000_0x4030(MaxGlobalData *global, MaxLocalData *local);
81
82#endif /* _IMP_MAX_CALLBACKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max_chunks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max_chunks.h
new file mode 100644
index 0000000..96691bc
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max_chunks.h
@@ -0,0 +1,289 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_MAX_CHUNKS_H
23#define _IMP_MAX_CHUNKS_H
24
25#include <glib.h>
26
27#include "imp_max_callbacks.h"
28
29#define IDNONE -1
30#define IDSOME -2
31#define IDROOT -3
32#define IDGEOM -4
33#define IDMATG -5
34#define IDFILE -6
35
36#define ID_IS_ROOT(pid) \
37 (((pid) == 0x2001) || ((pid) == 0x2003) || ((pid) == 0x2004) || \
38 ((pid) == 0x2006) || ((pid) == 0x2008) || ((pid) == 0x2009) || \
39 ((pid) == 0x200A) || ((pid) == 0x200B))
40#define ID_IS_GEOM(pid) \
41 ((((pid) >= 0x0010) && ((pid) <= 0x0011)) || \
42 (((pid) >= 0x0013) && ((pid) <= 0x0014)) || \
43 (((pid) >= 0x0016) && ((pid) <= 0x001C)) || \
44 ((pid) == 0x0023) || ((pid) == 0x0026))
45#define ID_IS_MATG(pid) \
46 (((pid) == 0x0002) || \
47 (((pid) >= 0x0004) && ((pid) <= 0x000F)))
48#define ID_IS_FILE(pid) \
49 (((pid) == 0x0003) || ((pid) == 0x0400))
50
51typedef struct {
52 gint32 id;
53 gint32 parentid;
54 char *desc;
55 MaxCallback callback;
56} MaxChunk;
57
58/* container chunks */
59static MaxChunk max_cnt_chunks[] = {
60 { 0x0118, 0x08FE, "face", NULL },
61
62 { 0x08FE, IDGEOM, "mesh", max_cb_IDGEOM_0x08FE },
63 { 0x0901, IDGEOM, "matrix or not", NULL },
64 { 0x0906, IDGEOM, "matrix or not", NULL },
65
66 { 0x092C, 0x08FE, "mesh bit map group", NULL },
67 { 0x092D, 0x08FE, "mesh bit map group", NULL },
68 { 0x092E, 0x08FE, "mesh bit map group", NULL },
69
70 { 0x2001, IDNONE, "3ds MAX x.x root node", NULL },
71 { 0x2003, IDNONE, "3ds MAX x.x root node", NULL },
72 { 0x2004, IDNONE, "3ds MAX 3.x root node", NULL },
73 { 0x2006, IDNONE, "3ds MAX 4.x root node", NULL },
74 { 0x2008, IDNONE, "3ds MAX 5.x root node", NULL },
75 { 0x2009, IDNONE, "3ds MAX 6.x root node", NULL },
76 { 0x200A, IDNONE, "3ds MAX 7.x root node", NULL },
77 { 0x200B, IDNONE, "3ds MAX 8.x root node", NULL },
78 { 0x2038, IDNONE, "DLL directory entry", NULL },
79 { 0x2040, IDNONE, "class directory entry", NULL },
80 { 0x2100, IDNONE, "class data entry", NULL },
81
82 { 0x4000, IDMATG, "material group", max_cb_IDMATG_0x4000 },
83
84 { IDNONE, IDSOME, NULL, NULL }
85};
86
87/* data chunks */
88static MaxChunk max_chunks[] = {
89 /* IDGEOM */
90 { 0x08FF, IDGEOM, "mesh something", max_cb_debug_int32 },
91 { 0x0900, IDGEOM, "object something", max_cb_debug_int32 },
92 { 0x0902, IDGEOM, "object something", max_cb_debug_int32 },
93 { 0x0903, IDGEOM, "object something", max_cb_debug_int32 },
94 { 0x0904, IDGEOM, "object something", max_cb_debug_int32 },
95 { 0x0960, IDGEOM, "object something", max_cb_debug_int32 },
96 { 0x0962, IDGEOM, "object name", max_cb_IDGEOM_0x0962 },
97 { 0x0963, IDGEOM, "object something", max_cb_debug_int32 },
98 { 0x096A, IDGEOM, "object something", max_cb_debug_int32 },
99 { 0x096B, IDGEOM, "object something", max_cb_debug_int32 },
100 { 0x096C, IDGEOM, "object something", max_cb_debug_int32 },
101 { 0x0974, IDGEOM, "object something", max_cb_debug_int32 },
102 { 0x0975, IDGEOM, "object flag", NULL },
103 { 0x0978, IDGEOM, "object flag", NULL },
104 { 0x099C, IDGEOM, "object something", max_cb_debug_int32 },
105 { 0x09BA, IDGEOM, "object flag", NULL },
106 { 0x09CE, IDGEOM, "object something", max_cb_debug_int32 },
107 { 0x0A28, IDGEOM, "object something", max_cb_debug_int32 },
108 { 0x0A32, IDGEOM, "object something", max_cb_debug_int32 },
109 { 0x0ABE, IDGEOM, "object something", max_cb_debug_int32 },
110 { 0x2500, IDGEOM, "object something", max_cb_debug_int32 },
111 { 0x2501, IDGEOM, "object something", max_cb_debug_int32 },
112 { 0x2505, IDGEOM, "object something", max_cb_debug_int32 },
113 { 0x2532, IDGEOM, "object something", max_cb_debug_int32 },
114 { 0x3002, IDGEOM, "object something", max_cb_debug_int32 },
115 { 0x3003, IDGEOM, "object something", max_cb_debug_int32 },
116 { 0x3005, IDGEOM, "object something", max_cb_debug_int32 },
117 { 0x4020, IDGEOM, "object something", max_cb_debug_int32 },
118 { 0x4024, IDGEOM, "object something", max_cb_debug_int32 },
119 { 0x4025, IDGEOM, "object something", max_cb_debug_int32 },
120 { 0x4026, IDGEOM, "object something", max_cb_debug_int32 },
121 { 0x402C, IDGEOM, "object something", max_cb_debug_int32 },
122 { 0x402D, IDGEOM, "object something", max_cb_debug_int32 },
123 { 0x4030, IDGEOM, "object something", max_cb_debug_int32 },
124 { 0x4034, IDGEOM, "object something", max_cb_debug_int32 },
125 { 0x4038, IDGEOM, "object something", max_cb_debug_int32 },
126 { 0x403B, IDGEOM, "object something", max_cb_debug_int32 },
127 { 0x7230, IDGEOM, "object something", max_cb_debug_int32 },
128 { 0x7231, IDGEOM, "object something", max_cb_debug_int32 },
129 /* IDMATG */
130 { 0x5300, IDMATG, "material something", max_cb_debug_int32 },
131 /* IDFILE */
132 { 0x1201, IDFILE, "file dimensions + unknown", max_cb_IDFILE_0x1201 },
133 { 0x1230, IDFILE, "file name", max_cb_debug_wchars },
134 { 0x1240, IDFILE, "file type", max_cb_debug_wchars },
135 /* 0x0000 */
136 { 0x0005, 0x0000, "[DEBUG] big chunk", NULL },
137 { 0x0009, 0x0000, "[DEBUG] 16", max_cb_debug_int32 },
138 { 0x000A, 0x0000, "[DEBUG] 3n, 11", NULL },
139 { 0x000B, 0x0000, "[DEBUG] 24", max_cb_debug_int32 },
140 { 0x000C, 0x0000, "[DEBUG] 10", NULL },
141 { 0x2035, 0x0000, "[DEBUG] n * 4", max_cb_debug_int32 },
142 /* 0x0001 */
143 { 0x0005, 0x0001, "properties", max_cb_0x0001_0x0005 },
144 { 0x1000, 0x0003, "[DEBUG] 4", max_cb_debug_int32 },
145 { 0x2045, 0x0001, "[DEBUG] 4", max_cb_debug_int32 },
146 /* 0x0002 */
147 { 0x2045, 0x0002, "[DEBUG] 4", max_cb_debug_int32 },
148 /* 0x0003 */
149 { 0x2045, 0x0003, "[DEBUG] 4", max_cb_debug_int32 },
150 { 0x1030, 0x0003, "[DEBUG] 4", max_cb_debug_int32 },
151 { 0x1040, 0x0003, "[DEBUG] 4", max_cb_debug_int32 },
152 /* 0x0004 */
153 { 0x2035, 0x0004, "[DEBUG] n * 4", max_cb_debug_int32 },
154 { 0x2500, 0x0004, "[DEBUG] 8", max_cb_debug_int32 },
155 { 0x2501, 0x0004, "[DEBUG] 4", max_cb_debug_int32 },
156 { 0x2532, 0x0004, "[DEBUG] flag", NULL },
157 { 0x2533, 0x0004, "[DEBUG] flag", NULL },
158 { 0x2534, 0x0004, "[DEBUG] flag", NULL },
159 { 0x3002, 0x0004, "[DEBUG] 4", max_cb_debug_int32 },
160 { 0x3003, 0x0004, "[DEBUG] 8", max_cb_debug_int32 },
161 { 0x3005, 0x0004, "[DEBUG] 4", max_cb_debug_int32 },
162 /* 0x0010 */
163 { 0x0962, 0x0010, "name", max_cb_debug_wchars },
164 /* 0x0013 */
165 { 0x1000, 0x0013, "text", max_cb_debug_string },
166 /* 0x0019 */
167 { 0x0110, 0x0019, "name", max_cb_debug_wchars },
168 { 0x0120, 0x0019, "name", max_cb_debug_wchars },
169 /* 0x0022 */
170 { 0x0110, 0x0022, "text", max_cb_debug_wchars },
171 { 0x0120, 0x0022, "type data", max_cb_debug_int32 },
172 { 0x0130, 0x0022, "type data", max_cb_debug_int32 },
173 /* 0x0027 */
174 { 0x0110, 0x0027, "text", max_cb_debug_wchars },
175 /* 0x002C */
176 { 0x0110, 0x002C, "text", max_cb_debug_wchars },
177 /* 0x002E */
178 { 0x0110, 0x002E, "text", max_cb_debug_wchars },
179 { 0x0120, 0x002E, "type data", max_cb_debug_int32 },
180 { 0x0130, 0x002E, "type data", max_cb_debug_int32 },
181 { 0x0140, 0x002E, "type data", max_cb_debug_int32 },
182 /* 0x0110 */
183 { 0x0120, 0x0110, "something", max_cb_debug_int32 },
184 { 0x0130, 0x0110, "something", max_cb_debug_int32 },
185 /* 0x0118 */
186 { 0x0100, 0x0118, "face data", max_cb_debug_int32 },
187 { 0x0110, 0x0118, "face indices", max_cb_0x0118_0x0110 },
188
189 /* 0x08FE */
190 { 0x0100, 0x08FE, "vertices", max_cb_0x08FE_0x0100 },
191 { 0x0108, 0x08FE, "mesh data", max_cb_debug_int32 },
192 { 0x010A, 0x08FE, "lines", max_cb_0x08FE_0x010A },
193 { 0x0110, 0x08FE, "[DEBUG] 4", max_cb_debug_int32 },
194 { 0x0114, 0x08FE, "[DEBUG] 4", max_cb_debug_int32 },
195 { 0x011A, 0x08FE, "polygons", max_cb_0x08FE_0x011A },
196 { 0x0120, 0x08FE, "[DEBUG] 4", max_cb_debug_int32 },
197 { 0x0124, 0x08FE, "[DEBUG] 4", max_cb_debug_int32 },
198 { 0x0128, 0x08FE, "texture vertices", max_cb_0x08FE_0x0128 },
199 { 0x012B, 0x08FE, "texture indices", max_cb_0x08FE_0x012B },
200 { 0x0130, 0x08FE, "[DEBUG] 4", max_cb_debug_int32 },
201 { 0x0140, 0x08FE, "[DEBUG] 4", max_cb_debug_int32 },
202 { 0x0150, 0x08FE, "[DEBUG] 4", max_cb_debug_int32 },
203 { 0x0906, 0x08FE, "mesh something", max_cb_debug_int32 },
204 { 0x0908, 0x08FE, "mesh something", max_cb_debug_int32 },
205 { 0x0912, 0x08FE, "triangles", max_cb_0x08FE_0x0912 },
206 { 0x0914, 0x08FE, "vertices", max_cb_0x08FE_0x0914 },
207 { 0x0916, 0x08FE, "texture vertices", max_cb_0x08FE_0x0916 },
208 { 0x0918, 0x08FE, "texture indices (tris)", max_cb_0x08FE_0x0918 },
209 { 0x0924, 0x08FE, "mesh something", max_cb_debug_int32 },
210 { 0x0928, 0x08FE, "mesh something", max_cb_debug_int32 },
211 { 0x092A, 0x08FE, "mesh something", max_cb_debug_int32 },
212 { 0x0959, 0x08FE, "mesh something", max_cb_debug_int32 },
213 { 0x2394, 0x08FE, "vertices", max_cb_0x08FE_0x2394 },
214 { 0x2396, 0x08FE, "triangles", max_cb_0x08FE_0x2396 },
215 { 0x2398, 0x08FE, "mesh something", max_cb_debug_int32 },
216 /* 0x0901 */
217 { 0x300D, 0x0901, "x32", max_cb_debug_int32 },
218 { 0x300E, 0x0901, "x32", max_cb_debug_int32 },
219 { 0x300F, 0x0901, "x32", max_cb_debug_int32 },
220 { 0x3010, 0x0901, "x32", max_cb_debug_int32 },
221 { 0x3012, 0x0901, "x32", max_cb_debug_int32 },
222 { 0x3013, 0x0901, "x32", max_cb_debug_int32 },
223 { 0x3014, 0x0901, "x32", max_cb_debug_int32 },
224 { 0x3015, 0x0901, "x32", max_cb_debug_int32 },
225 { 0x3016, 0x0901, "x32", max_cb_debug_int32 },
226 { 0x3017, 0x0901, "x32", max_cb_debug_int32 },
227 { 0x3019, 0x0901, "x32", max_cb_debug_int32 },
228 { 0x301A, 0x0901, "x32", max_cb_debug_int32 },
229 { 0x301B, 0x0901, "x32", max_cb_debug_int32 },
230 { 0x301C, 0x0901, "x32", max_cb_debug_int32 },
231 { 0x301D, 0x0901, "x32", max_cb_debug_int32 },
232 { 0x301E, 0x0901, "x32", max_cb_debug_int32 },
233 /* 0x0906 */
234 { 0x300D, 0x0906, "x32", max_cb_debug_int32 },
235 { 0x300E, 0x0906, "x32", max_cb_debug_int32 },
236 { 0x300F, 0x0906, "x32", max_cb_debug_int32 },
237 { 0x3010, 0x0906, "x32", max_cb_debug_int32 },
238 { 0x3012, 0x0906, "x32", max_cb_debug_int32 },
239 { 0x3013, 0x0906, "x32", max_cb_debug_int32 },
240 { 0x3014, 0x0906, "x32", max_cb_debug_int32 },
241 { 0x3015, 0x0906, "x32", max_cb_debug_int32 },
242 { 0x3016, 0x0906, "x32", max_cb_debug_int32 },
243 { 0x3017, 0x0906, "x32", max_cb_debug_int32 },
244 { 0x3019, 0x0906, "x32", max_cb_debug_int32 },
245 { 0x301A, 0x0906, "x32", max_cb_debug_int32 },
246 { 0x301B, 0x0906, "x32", max_cb_debug_int32 },
247 { 0x301C, 0x0906, "x32", max_cb_debug_int32 },
248 { 0x301D, 0x0906, "x32", max_cb_debug_int32 },
249 { 0x301E, 0x0906, "x32", max_cb_debug_int32 },
250 /* 0x092C */
251 { 0x2700, 0x092C, "bit map", NULL },
252 /* 0x092D */
253 { 0x2700, 0x092D, "bit map", NULL },
254 /* 0x092E */
255 { 0x2700, 0x092E, "bit map", NULL },
256 /* 0x0AF0 */
257 { 0x0001, 0x0AF0, "something", max_cb_debug_int32 },
258 { 0x0002, 0x0AF0, "something", max_cb_debug_int32 },
259 { 0x0003, 0x0AF0, "something", max_cb_debug_int32 },
260 { 0x0004, 0x0AF0, "something", max_cb_debug_int32 },
261 { 0x0005, 0x0AF0, "something", max_cb_debug_int32 },
262 { 0x0006, 0x0AF0, "something", max_cb_debug_int32 },
263 { 0x0007, 0x0AF0, "something", max_cb_debug_int32 },
264 { 0x0008, 0x0AF0, "something", max_cb_debug_int32 },
265 /* 2500 */
266 { 0x2510, 0x2500, "something", max_cb_debug_int32 },
267 { 0x2511, 0x2500, "something", max_cb_debug_int32 },
268 { 0x2513, 0x2500, "something", max_cb_debug_int32 },
269 /* 2512 */
270 { 0x0530, 0x2512, "something", max_cb_debug_int32 },
271 { 0x0540, 0x2512, "something", max_cb_debug_int32 },
272 { 0x0550, 0x2512, "something", max_cb_debug_int32 },
273 { 0x0560, 0x2512, "something", max_cb_debug_int32 },
274 /* 0x39BF */
275 { 0x0100, 0x39BF, "text", max_cb_debug_wchars },
276 /* 0x4000 */
277 { 0x4001, 0x4000, "material name", max_cb_0x4000_0x4001 },
278 { 0x4003, 0x4000, "material something (4)", max_cb_debug_int32 },
279 { 0x4020, 0x4000, "material something (4)", max_cb_debug_int32 },
280 { 0x4030, 0x4000, "material color", max_cb_0x4000_0x4030 },
281
282 /* IDSOME */
283 { 0x2034, IDSOME, "init something", max_cb_debug_int32 },
284 { 0x2035, IDSOME, "init something", max_cb_debug_int32 },
285
286 { IDNONE, IDSOME, NULL, NULL }
287};
288
289#endif /* _IMP_MAX_CHUNKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/Makefile
new file mode 100644
index 0000000..ac3c0b3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/Makefile
@@ -0,0 +1,518 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_maya/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_maya
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_maya_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_maya_la_OBJECTS = imp_maya.lo imp_maya_callbacks.lo \
59 imp_maya_obj.lo imp_maya_var.lo
60imp_maya_la_OBJECTS = $(am_imp_maya_la_OBJECTS)
61#am_imp_maya_la_rpath = -rpath $(pluginimpdir)
62DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
63depcomp = $(SHELL) $(top_srcdir)/config/depcomp
64am__depfiles_maybe = depfiles
65COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
66 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
67LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
68 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
69 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
70CCLD = $(CC)
71LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
72 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
73 $(LDFLAGS) -o $@
74SOURCES = $(imp_maya_la_SOURCES)
75DIST_SOURCES = $(imp_maya_la_SOURCES)
76ETAGS = etags
77CTAGS = ctags
78DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
79ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
80AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
81AR = ar
82AS = as
83AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
84AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
85AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
86AWK = gawk
87CC = gcc
88CCDEPMODE = depmode=gcc3
89CFLAGS = -g -O2
90CPP = gcc -E
91CPPFLAGS =
92CXX = g++
93CXXCPP = g++ -E
94CXXDEPMODE = depmode=gcc3
95CXXFLAGS = -g -O2
96CYGPATH_W = echo
97DBG_CFLAGS = -O2
98DEBUG = 0
99DEFS = -DHAVE_CONFIG_H
100DEPDIR = .deps
101DLLTOOL = dlltool
102ECHO = echo
103ECHO_C =
104ECHO_N = -n
105ECHO_T =
106EGREP = /bin/grep -E
107EXEEXT =
108F77 =
109FFLAGS =
110GDKPIXBUF_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
111GDKPIXBUF_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
112GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
113GLIB_GENMARSHAL = glib-genmarshal
114GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
115GLIB_MKENUMS = glib-mkenums
116GOBJECT_QUERY = gobject-query
117GREP = /bin/grep
118GTKDOC_CHECK = /usr/bin/gtkdoc-check
119GTK_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
120GTK_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
121HTML_DIR = ${datadir}/gtk-doc/html
122INSTALL = /usr/bin/install -c
123INSTALL_DATA = ${INSTALL} -m 644
124INSTALL_PROGRAM = ${INSTALL}
125INSTALL_SCRIPT = ${INSTALL}
126INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
127LDFLAGS =
128LEX = flex
129LEXLIB = -lfl
130LEX_OUTPUT_ROOT = lex.yy
131LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
132LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
133LIBOBJS =
134LIBS = -lm
135LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
136LIBXML2_CFLAGS = -I/usr/include/libxml2
137LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
138LN_S = ln -s
139LTLIBOBJS =
140LTVERSION = 0:8:0
141MAGIC_LIBS = -lmagic
142MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
143MATH_LIBS = -lm
144MKDIR_P = /bin/mkdir -p
145OBJDUMP = objdump
146OBJEXT = o
147PACKAGE = libg3d
148PACKAGE_BUGREPORT =
149PACKAGE_NAME =
150PACKAGE_STRING =
151PACKAGE_TARNAME =
152PACKAGE_VERSION =
153PATH_SEPARATOR = :
154PKG_CONFIG = /usr/bin/pkg-config
155PLUGINS_LDFLAGS = -avoid-version -export-dynamic
156RANLIB = ranlib
157SET_MAKE =
158SHELL = /bin/bash
159STRIP = strip
160VERSION = 0.0.8
161XML2_CONFIG = /usr/bin/xml2-config
162XML_CPPFLAGS = -I/usr/include/libxml2
163XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
164Z_CFLAGS =
165Z_LIBS = -lz
166abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya
167abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya
168abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
170ac_ct_CC = gcc
171ac_ct_CXX = g++
172ac_ct_F77 =
173am__include = include
174am__leading_dot = .
175am__quote =
176am__tar = ${AMTAR} chof - "$$tardir"
177am__untar = ${AMTAR} xf -
178bindir = ${exec_prefix}/bin
179build = x86_64-unknown-linux-gnu
180build_alias =
181build_cpu = x86_64
182build_os = linux-gnu
183build_vendor = unknown
184builddir = .
185datadir = ${datarootdir}
186datarootdir = ${prefix}/share
187docdir = ${datarootdir}/doc/${PACKAGE}
188dvidir = ${docdir}
189exec_prefix = ${prefix}
190host = x86_64-unknown-linux-gnu
191host_alias =
192host_cpu = x86_64
193host_os = linux-gnu
194host_vendor = unknown
195htmldir = ${docdir}
196includedir = ${prefix}/include
197infodir = ${datarootdir}/info
198install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
199libdir = ${exec_prefix}/lib
200libexecdir = ${exec_prefix}/libexec
201localedir = ${datarootdir}/locale
202localstatedir = ${prefix}/var
203mandir = ${datarootdir}/man
204mkdir_p = /bin/mkdir -p
205oldincludedir = /usr/include
206pdfdir = ${docdir}
207prefix = /usr/local
208program_transform_name = s,x,x,
209psdir = ${docdir}
210sbindir = ${exec_prefix}/sbin
211sharedstatedir = ${prefix}/com
212srcdir = .
213sysconfdir = ${prefix}/etc
214target_alias =
215top_builddir = ../../..
216top_srcdir = ../../..
217pluginimpdir = $(pkglibdir)/plugins/import
218#pluginimp_LTLIBRARIES = imp_maya.la
219AM_CFLAGS = \
220 -Wall -ansi -pedantic \
221 -DG_LOG_DOMAIN=\"LibG3D\" \
222 -O2 -DDEBUG=0 \
223 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
224
225INCLUDES = -I$(top_srcdir)/include
226AM_LDFLAGS = \
227 -no-undefined -module \
228 -avoid-version -export-dynamic
229
230imp_maya_la_SOURCES = imp_maya.c imp_maya_chunks.h \
231 imp_maya_callbacks.c imp_maya_callbacks.h \
232 imp_maya_obj.c imp_maya_obj.h \
233 imp_maya_var.c imp_maya_var.h
234
235imp_maya_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
236all: all-am
237
238.SUFFIXES:
239.SUFFIXES: .c .lo .o .obj
240$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
241 @for dep in $?; do \
242 case '$(am__configure_deps)' in \
243 *$$dep*) \
244 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
245 && exit 0; \
246 exit 1;; \
247 esac; \
248 done; \
249 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_maya/Makefile'; \
250 cd $(top_srcdir) && \
251 $(AUTOMAKE) --gnu plugins/import/imp_maya/Makefile
252.PRECIOUS: Makefile
253Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
254 @case '$?' in \
255 *config.status*) \
256 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
257 *) \
258 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
259 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
260 esac;
261
262$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264
265$(top_srcdir)/configure: $(am__configure_deps)
266 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
267$(ACLOCAL_M4): $(am__aclocal_m4_deps)
268 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
269install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
270 @$(NORMAL_INSTALL)
271 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
272 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
273 if test -f $$p; then \
274 f=$(am__strip_dir) \
275 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
276 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
277 else :; fi; \
278 done
279
280uninstall-pluginimpLTLIBRARIES:
281 @$(NORMAL_UNINSTALL)
282 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
283 p=$(am__strip_dir) \
284 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
285 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
286 done
287
288clean-pluginimpLTLIBRARIES:
289 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
290 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
291 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
292 test "$$dir" != "$$p" || dir=.; \
293 echo "rm -f \"$${dir}/so_locations\""; \
294 rm -f "$${dir}/so_locations"; \
295 done
296imp_maya.la: $(imp_maya_la_OBJECTS) $(imp_maya_la_DEPENDENCIES)
297 $(LINK) $(am_imp_maya_la_rpath) $(imp_maya_la_OBJECTS) $(imp_maya_la_LIBADD) $(LIBS)
298
299mostlyclean-compile:
300 -rm -f *.$(OBJEXT)
301
302distclean-compile:
303 -rm -f *.tab.c
304
305include ./$(DEPDIR)/imp_maya.Plo
306include ./$(DEPDIR)/imp_maya_callbacks.Plo
307include ./$(DEPDIR)/imp_maya_obj.Plo
308include ./$(DEPDIR)/imp_maya_var.Plo
309
310.c.o:
311 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
312 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
313# source='$<' object='$@' libtool=no \
314# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
315# $(COMPILE) -c $<
316
317.c.obj:
318 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
319 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
320# source='$<' object='$@' libtool=no \
321# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
322# $(COMPILE) -c `$(CYGPATH_W) '$<'`
323
324.c.lo:
325 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
326 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
327# source='$<' object='$@' libtool=yes \
328# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
329# $(LTCOMPILE) -c -o $@ $<
330
331mostlyclean-libtool:
332 -rm -f *.lo
333
334clean-libtool:
335 -rm -rf .libs _libs
336
337ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
338 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
339 unique=`for i in $$list; do \
340 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
341 done | \
342 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
343 END { if (nonempty) { for (i in files) print i; }; }'`; \
344 mkid -fID $$unique
345tags: TAGS
346
347TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
348 $(TAGS_FILES) $(LISP)
349 tags=; \
350 here=`pwd`; \
351 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
352 unique=`for i in $$list; do \
353 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
354 done | \
355 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
356 END { if (nonempty) { for (i in files) print i; }; }'`; \
357 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
358 test -n "$$unique" || unique=$$empty_fix; \
359 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
360 $$tags $$unique; \
361 fi
362ctags: CTAGS
363CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
364 $(TAGS_FILES) $(LISP)
365 tags=; \
366 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
367 unique=`for i in $$list; do \
368 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
369 done | \
370 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
371 END { if (nonempty) { for (i in files) print i; }; }'`; \
372 test -z "$(CTAGS_ARGS)$$tags$$unique" \
373 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
374 $$tags $$unique
375
376GTAGS:
377 here=`$(am__cd) $(top_builddir) && pwd` \
378 && cd $(top_srcdir) \
379 && gtags -i $(GTAGS_ARGS) $$here
380
381distclean-tags:
382 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
383
384distdir: $(DISTFILES)
385 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
386 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
387 list='$(DISTFILES)'; \
388 dist_files=`for file in $$list; do echo $$file; done | \
389 sed -e "s|^$$srcdirstrip/||;t" \
390 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
391 case $$dist_files in \
392 */*) $(MKDIR_P) `echo "$$dist_files" | \
393 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
394 sort -u` ;; \
395 esac; \
396 for file in $$dist_files; do \
397 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
398 if test -d $$d/$$file; then \
399 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
400 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
401 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
402 fi; \
403 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
404 else \
405 test -f $(distdir)/$$file \
406 || cp -p $$d/$$file $(distdir)/$$file \
407 || exit 1; \
408 fi; \
409 done
410check-am: all-am
411check: check-am
412all-am: Makefile $(LTLIBRARIES)
413installdirs:
414 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
415 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
416 done
417install: install-am
418install-exec: install-exec-am
419install-data: install-data-am
420uninstall: uninstall-am
421
422install-am: all-am
423 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
424
425installcheck: installcheck-am
426install-strip:
427 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
428 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
429 `test -z '$(STRIP)' || \
430 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
431mostlyclean-generic:
432
433clean-generic:
434
435distclean-generic:
436 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
437
438maintainer-clean-generic:
439 @echo "This command is intended for maintainers to use"
440 @echo "it deletes files that may require special tools to rebuild."
441clean: clean-am
442
443clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
444 mostlyclean-am
445
446distclean: distclean-am
447 -rm -rf ./$(DEPDIR)
448 -rm -f Makefile
449distclean-am: clean-am distclean-compile distclean-generic \
450 distclean-tags
451
452dvi: dvi-am
453
454dvi-am:
455
456html: html-am
457
458info: info-am
459
460info-am:
461
462install-data-am: install-pluginimpLTLIBRARIES
463
464install-dvi: install-dvi-am
465
466install-exec-am:
467
468install-html: install-html-am
469
470install-info: install-info-am
471
472install-man:
473
474install-pdf: install-pdf-am
475
476install-ps: install-ps-am
477
478installcheck-am:
479
480maintainer-clean: maintainer-clean-am
481 -rm -rf ./$(DEPDIR)
482 -rm -f Makefile
483maintainer-clean-am: distclean-am maintainer-clean-generic
484
485mostlyclean: mostlyclean-am
486
487mostlyclean-am: mostlyclean-compile mostlyclean-generic \
488 mostlyclean-libtool
489
490pdf: pdf-am
491
492pdf-am:
493
494ps: ps-am
495
496ps-am:
497
498uninstall-am: uninstall-pluginimpLTLIBRARIES
499
500.MAKE: install-am install-strip
501
502.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
503 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
504 distclean-compile distclean-generic distclean-libtool \
505 distclean-tags distdir dvi dvi-am html html-am info info-am \
506 install install-am install-data install-data-am install-dvi \
507 install-dvi-am install-exec install-exec-am install-html \
508 install-html-am install-info install-info-am install-man \
509 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
510 install-ps install-ps-am install-strip installcheck \
511 installcheck-am installdirs maintainer-clean \
512 maintainer-clean-generic mostlyclean mostlyclean-compile \
513 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
514 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
515
516# Tell versions [3.59,3.63) of GNU make to not export all variables.
517# Otherwise a system limit (for SysV at least) may be exceeded.
518.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/Makefile.am
new file mode 100644
index 0000000..5ca42bd
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/Makefile.am
@@ -0,0 +1,25 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if EXPERIMENTAL
4pluginimp_LTLIBRARIES = imp_maya.la
5endif
6
7AM_CFLAGS = \
8 -Wall -ansi -pedantic \
9 -DG_LOG_DOMAIN=\"LibG3D\" \
10 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
11 @GLIB_CFLAGS@
12
13INCLUDES = -I$(top_srcdir)/include
14
15AM_LDFLAGS = \
16 -no-undefined -module \
17 @PLUGINS_LDFLAGS@
18
19LIBTOOL += --quiet
20
21imp_maya_la_SOURCES = imp_maya.c imp_maya_chunks.h \
22 imp_maya_callbacks.c imp_maya_callbacks.h \
23 imp_maya_obj.c imp_maya_obj.h \
24 imp_maya_var.c imp_maya_var.h
25imp_maya_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/Makefile.in
new file mode 100644
index 0000000..306a6c9
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/Makefile.in
@@ -0,0 +1,518 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_maya
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_maya_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_maya_la_OBJECTS = imp_maya.lo imp_maya_callbacks.lo \
59 imp_maya_obj.lo imp_maya_var.lo
60imp_maya_la_OBJECTS = $(am_imp_maya_la_OBJECTS)
61@EXPERIMENTAL_TRUE@am_imp_maya_la_rpath = -rpath $(pluginimpdir)
62DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
63depcomp = $(SHELL) $(top_srcdir)/config/depcomp
64am__depfiles_maybe = depfiles
65COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
66 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
67LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
68 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
69 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
70CCLD = $(CC)
71LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
72 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
73 $(LDFLAGS) -o $@
74SOURCES = $(imp_maya_la_SOURCES)
75DIST_SOURCES = $(imp_maya_la_SOURCES)
76ETAGS = etags
77CTAGS = ctags
78DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
79ACLOCAL = @ACLOCAL@
80AMTAR = @AMTAR@
81AR = @AR@
82AS = @AS@
83AUTOCONF = @AUTOCONF@
84AUTOHEADER = @AUTOHEADER@
85AUTOMAKE = @AUTOMAKE@
86AWK = @AWK@
87CC = @CC@
88CCDEPMODE = @CCDEPMODE@
89CFLAGS = @CFLAGS@
90CPP = @CPP@
91CPPFLAGS = @CPPFLAGS@
92CXX = @CXX@
93CXXCPP = @CXXCPP@
94CXXDEPMODE = @CXXDEPMODE@
95CXXFLAGS = @CXXFLAGS@
96CYGPATH_W = @CYGPATH_W@
97DBG_CFLAGS = @DBG_CFLAGS@
98DEBUG = @DEBUG@
99DEFS = @DEFS@
100DEPDIR = @DEPDIR@
101DLLTOOL = @DLLTOOL@
102ECHO = @ECHO@
103ECHO_C = @ECHO_C@
104ECHO_N = @ECHO_N@
105ECHO_T = @ECHO_T@
106EGREP = @EGREP@
107EXEEXT = @EXEEXT@
108F77 = @F77@
109FFLAGS = @FFLAGS@
110GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
111GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
112GLIB_CFLAGS = @GLIB_CFLAGS@
113GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
114GLIB_LIBS = @GLIB_LIBS@
115GLIB_MKENUMS = @GLIB_MKENUMS@
116GOBJECT_QUERY = @GOBJECT_QUERY@
117GREP = @GREP@
118GTKDOC_CHECK = @GTKDOC_CHECK@
119GTK_CFLAGS = @GTK_CFLAGS@
120GTK_LIBS = @GTK_LIBS@
121HTML_DIR = @HTML_DIR@
122INSTALL = @INSTALL@
123INSTALL_DATA = @INSTALL_DATA@
124INSTALL_PROGRAM = @INSTALL_PROGRAM@
125INSTALL_SCRIPT = @INSTALL_SCRIPT@
126INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
127LDFLAGS = @LDFLAGS@
128LEX = @LEX@
129LEXLIB = @LEXLIB@
130LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
131LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
132LIBGSF_LIBS = @LIBGSF_LIBS@
133LIBOBJS = @LIBOBJS@
134LIBS = @LIBS@
135LIBTOOL = @LIBTOOL@ --quiet
136LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
137LIBXML2_LIBS = @LIBXML2_LIBS@
138LN_S = @LN_S@
139LTLIBOBJS = @LTLIBOBJS@
140LTVERSION = @LTVERSION@
141MAGIC_LIBS = @MAGIC_LIBS@
142MAKEINFO = @MAKEINFO@
143MATH_LIBS = @MATH_LIBS@
144MKDIR_P = @MKDIR_P@
145OBJDUMP = @OBJDUMP@
146OBJEXT = @OBJEXT@
147PACKAGE = @PACKAGE@
148PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
149PACKAGE_NAME = @PACKAGE_NAME@
150PACKAGE_STRING = @PACKAGE_STRING@
151PACKAGE_TARNAME = @PACKAGE_TARNAME@
152PACKAGE_VERSION = @PACKAGE_VERSION@
153PATH_SEPARATOR = @PATH_SEPARATOR@
154PKG_CONFIG = @PKG_CONFIG@
155PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
156RANLIB = @RANLIB@
157SET_MAKE = @SET_MAKE@
158SHELL = @SHELL@
159STRIP = @STRIP@
160VERSION = @VERSION@
161XML2_CONFIG = @XML2_CONFIG@
162XML_CPPFLAGS = @XML_CPPFLAGS@
163XML_LIBS = @XML_LIBS@
164Z_CFLAGS = @Z_CFLAGS@
165Z_LIBS = @Z_LIBS@
166abs_builddir = @abs_builddir@
167abs_srcdir = @abs_srcdir@
168abs_top_builddir = @abs_top_builddir@
169abs_top_srcdir = @abs_top_srcdir@
170ac_ct_CC = @ac_ct_CC@
171ac_ct_CXX = @ac_ct_CXX@
172ac_ct_F77 = @ac_ct_F77@
173am__include = @am__include@
174am__leading_dot = @am__leading_dot@
175am__quote = @am__quote@
176am__tar = @am__tar@
177am__untar = @am__untar@
178bindir = @bindir@
179build = @build@
180build_alias = @build_alias@
181build_cpu = @build_cpu@
182build_os = @build_os@
183build_vendor = @build_vendor@
184builddir = @builddir@
185datadir = @datadir@
186datarootdir = @datarootdir@
187docdir = @docdir@
188dvidir = @dvidir@
189exec_prefix = @exec_prefix@
190host = @host@
191host_alias = @host_alias@
192host_cpu = @host_cpu@
193host_os = @host_os@
194host_vendor = @host_vendor@
195htmldir = @htmldir@
196includedir = @includedir@
197infodir = @infodir@
198install_sh = @install_sh@
199libdir = @libdir@
200libexecdir = @libexecdir@
201localedir = @localedir@
202localstatedir = @localstatedir@
203mandir = @mandir@
204mkdir_p = @mkdir_p@
205oldincludedir = @oldincludedir@
206pdfdir = @pdfdir@
207prefix = @prefix@
208program_transform_name = @program_transform_name@
209psdir = @psdir@
210sbindir = @sbindir@
211sharedstatedir = @sharedstatedir@
212srcdir = @srcdir@
213sysconfdir = @sysconfdir@
214target_alias = @target_alias@
215top_builddir = @top_builddir@
216top_srcdir = @top_srcdir@
217pluginimpdir = $(pkglibdir)/plugins/import
218@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_maya.la
219AM_CFLAGS = \
220 -Wall -ansi -pedantic \
221 -DG_LOG_DOMAIN=\"LibG3D\" \
222 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
223 @GLIB_CFLAGS@
224
225INCLUDES = -I$(top_srcdir)/include
226AM_LDFLAGS = \
227 -no-undefined -module \
228 @PLUGINS_LDFLAGS@
229
230imp_maya_la_SOURCES = imp_maya.c imp_maya_chunks.h \
231 imp_maya_callbacks.c imp_maya_callbacks.h \
232 imp_maya_obj.c imp_maya_obj.h \
233 imp_maya_var.c imp_maya_var.h
234
235imp_maya_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
236all: all-am
237
238.SUFFIXES:
239.SUFFIXES: .c .lo .o .obj
240$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
241 @for dep in $?; do \
242 case '$(am__configure_deps)' in \
243 *$$dep*) \
244 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
245 && exit 0; \
246 exit 1;; \
247 esac; \
248 done; \
249 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_maya/Makefile'; \
250 cd $(top_srcdir) && \
251 $(AUTOMAKE) --gnu plugins/import/imp_maya/Makefile
252.PRECIOUS: Makefile
253Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
254 @case '$?' in \
255 *config.status*) \
256 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
257 *) \
258 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
259 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
260 esac;
261
262$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264
265$(top_srcdir)/configure: $(am__configure_deps)
266 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
267$(ACLOCAL_M4): $(am__aclocal_m4_deps)
268 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
269install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
270 @$(NORMAL_INSTALL)
271 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
272 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
273 if test -f $$p; then \
274 f=$(am__strip_dir) \
275 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
276 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
277 else :; fi; \
278 done
279
280uninstall-pluginimpLTLIBRARIES:
281 @$(NORMAL_UNINSTALL)
282 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
283 p=$(am__strip_dir) \
284 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
285 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
286 done
287
288clean-pluginimpLTLIBRARIES:
289 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
290 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
291 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
292 test "$$dir" != "$$p" || dir=.; \
293 echo "rm -f \"$${dir}/so_locations\""; \
294 rm -f "$${dir}/so_locations"; \
295 done
296imp_maya.la: $(imp_maya_la_OBJECTS) $(imp_maya_la_DEPENDENCIES)
297 $(LINK) $(am_imp_maya_la_rpath) $(imp_maya_la_OBJECTS) $(imp_maya_la_LIBADD) $(LIBS)
298
299mostlyclean-compile:
300 -rm -f *.$(OBJEXT)
301
302distclean-compile:
303 -rm -f *.tab.c
304
305@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_maya.Plo@am__quote@
306@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_maya_callbacks.Plo@am__quote@
307@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_maya_obj.Plo@am__quote@
308@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_maya_var.Plo@am__quote@
309
310.c.o:
311@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
312@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
313@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
314@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
315@am__fastdepCC_FALSE@ $(COMPILE) -c $<
316
317.c.obj:
318@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
319@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
320@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
321@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
322@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
323
324.c.lo:
325@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
326@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
327@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
328@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
329@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
330
331mostlyclean-libtool:
332 -rm -f *.lo
333
334clean-libtool:
335 -rm -rf .libs _libs
336
337ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
338 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
339 unique=`for i in $$list; do \
340 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
341 done | \
342 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
343 END { if (nonempty) { for (i in files) print i; }; }'`; \
344 mkid -fID $$unique
345tags: TAGS
346
347TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
348 $(TAGS_FILES) $(LISP)
349 tags=; \
350 here=`pwd`; \
351 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
352 unique=`for i in $$list; do \
353 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
354 done | \
355 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
356 END { if (nonempty) { for (i in files) print i; }; }'`; \
357 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
358 test -n "$$unique" || unique=$$empty_fix; \
359 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
360 $$tags $$unique; \
361 fi
362ctags: CTAGS
363CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
364 $(TAGS_FILES) $(LISP)
365 tags=; \
366 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
367 unique=`for i in $$list; do \
368 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
369 done | \
370 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
371 END { if (nonempty) { for (i in files) print i; }; }'`; \
372 test -z "$(CTAGS_ARGS)$$tags$$unique" \
373 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
374 $$tags $$unique
375
376GTAGS:
377 here=`$(am__cd) $(top_builddir) && pwd` \
378 && cd $(top_srcdir) \
379 && gtags -i $(GTAGS_ARGS) $$here
380
381distclean-tags:
382 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
383
384distdir: $(DISTFILES)
385 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
386 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
387 list='$(DISTFILES)'; \
388 dist_files=`for file in $$list; do echo $$file; done | \
389 sed -e "s|^$$srcdirstrip/||;t" \
390 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
391 case $$dist_files in \
392 */*) $(MKDIR_P) `echo "$$dist_files" | \
393 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
394 sort -u` ;; \
395 esac; \
396 for file in $$dist_files; do \
397 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
398 if test -d $$d/$$file; then \
399 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
400 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
401 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
402 fi; \
403 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
404 else \
405 test -f $(distdir)/$$file \
406 || cp -p $$d/$$file $(distdir)/$$file \
407 || exit 1; \
408 fi; \
409 done
410check-am: all-am
411check: check-am
412all-am: Makefile $(LTLIBRARIES)
413installdirs:
414 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
415 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
416 done
417install: install-am
418install-exec: install-exec-am
419install-data: install-data-am
420uninstall: uninstall-am
421
422install-am: all-am
423 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
424
425installcheck: installcheck-am
426install-strip:
427 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
428 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
429 `test -z '$(STRIP)' || \
430 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
431mostlyclean-generic:
432
433clean-generic:
434
435distclean-generic:
436 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
437
438maintainer-clean-generic:
439 @echo "This command is intended for maintainers to use"
440 @echo "it deletes files that may require special tools to rebuild."
441clean: clean-am
442
443clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
444 mostlyclean-am
445
446distclean: distclean-am
447 -rm -rf ./$(DEPDIR)
448 -rm -f Makefile
449distclean-am: clean-am distclean-compile distclean-generic \
450 distclean-tags
451
452dvi: dvi-am
453
454dvi-am:
455
456html: html-am
457
458info: info-am
459
460info-am:
461
462install-data-am: install-pluginimpLTLIBRARIES
463
464install-dvi: install-dvi-am
465
466install-exec-am:
467
468install-html: install-html-am
469
470install-info: install-info-am
471
472install-man:
473
474install-pdf: install-pdf-am
475
476install-ps: install-ps-am
477
478installcheck-am:
479
480maintainer-clean: maintainer-clean-am
481 -rm -rf ./$(DEPDIR)
482 -rm -f Makefile
483maintainer-clean-am: distclean-am maintainer-clean-generic
484
485mostlyclean: mostlyclean-am
486
487mostlyclean-am: mostlyclean-compile mostlyclean-generic \
488 mostlyclean-libtool
489
490pdf: pdf-am
491
492pdf-am:
493
494ps: ps-am
495
496ps-am:
497
498uninstall-am: uninstall-pluginimpLTLIBRARIES
499
500.MAKE: install-am install-strip
501
502.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
503 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
504 distclean-compile distclean-generic distclean-libtool \
505 distclean-tags distdir dvi dvi-am html html-am info info-am \
506 install install-am install-data install-data-am install-dvi \
507 install-dvi-am install-exec install-exec-am install-html \
508 install-html-am install-info install-info-am install-man \
509 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
510 install-ps install-ps-am install-strip installcheck \
511 installcheck-am installdirs maintainer-clean \
512 maintainer-clean-generic mostlyclean mostlyclean-compile \
513 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
514 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
515
516# Tell versions [3.59,3.63) of GNU make to not export all variables.
517# Otherwise a system limit (for SysV at least) may be exceeded.
518.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya.c
new file mode 100644
index 0000000..d07bfb2
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya.c
@@ -0,0 +1,77 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <string.h>
25
26#include <glib.h>
27
28#include <g3d/iff.h>
29#include <g3d/stream.h>
30
31#include "imp_maya_chunks.h"
32
33EAPI
34gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
35 G3DModel *model, gpointer user_data)
36{
37 G3DIffGlobal *global;
38 G3DIffLocal *local;
39 guint32 id;
40 gsize len;
41
42 if(!g3d_iff_check(stream, &id, &len) ||
43 (id != G3D_IFF_MKID('M','a','y','a'))) {
44 g_warning("file is not an Maya file %s", stream->uri);
45 return FALSE;
46 }
47
48 local = g_new0(G3DIffLocal, 1);
49 global = g_new0(G3DIffGlobal, 1);
50
51 global->context = context;
52 global->model = model;
53 global->stream = stream;
54
55 local->parent_id = id;
56 local->nb = len;
57
58 g3d_iff_read_ctnr(global, local, maya_chunks, G3D_IFF_PAD4);
59
60 g_free(local);
61 g_free(global);
62
63 return TRUE;
64}
65
66EAPI
67gchar *plugin_description(void)
68{
69 return g_strdup("Maya models.");
70}
71
72EAPI
73gchar **plugin_extensions(void)
74{
75 return g_strsplit("mb", ":", 0);
76}
77
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_callbacks.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_callbacks.c
new file mode 100644
index 0000000..f2b4907
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_callbacks.c
@@ -0,0 +1,645 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <string.h>
23
24#include <g3d/iff.h>
25#include <g3d/model.h>
26#include <g3d/material.h>
27#include <g3d/primitive.h>
28#include <g3d/stream.h>
29#include <g3d/matrix.h>
30#include <g3d/debug.h>
31
32#include "imp_maya_obj.h"
33#include "imp_maya_var.h"
34
35/* compound? */
36gboolean maya_cb_CMPD(G3DIffGlobal *global, G3DIffLocal *local)
37{
38 gint32 flags, i;
39 gdouble *val;
40 gchar *var;
41 gchar *padding = " ";
42
43 if(local->nb < 26)
44 {
45 g_warning("[Maya][CMPD] size: %d", local->nb);
46 return FALSE;
47 }
48
49 /* var */
50 var = g_new0(gchar, local->nb - 25);
51 g3d_stream_read(global->stream, var, local->nb - 25);
52 local->nb -= (local->nb - 25);
53
54 /* flags ? */
55 flags = g3d_stream_read_int8(global->stream);
56 local->nb -= 1;
57
58 val = g_new0(gdouble, 3);
59
60 for(i = 0; i < 3; i ++)
61 {
62 val[i] = g3d_stream_read_double_be(global->stream);
63 local->nb -= 8;
64 }
65
66 g_debug("\\%s[Maya][CMPD] %s = [%g %g %g]",
67 padding + (strlen(padding) - local->level),
68 var,
69 val[0], val[1], val[2]);
70
71 if(local->object)
72 maya_var_set((MayaObject *)local->object, var, val);
73 else
74 g_free(val);
75
76 g_free(var);
77
78 return TRUE;
79}
80
81/* creator */
82gboolean maya_cb_CREA(G3DIffGlobal *global, G3DIffLocal *local)
83{
84 MayaObject *obj;
85 gint32 max_len, flags;
86 gchar *buffer, *name;
87 gchar *padding = " ";
88
89 /* flags ? */
90 flags = g3d_stream_read_int8(global->stream);
91 local->nb -= 1;
92
93 max_len = local->nb;
94 buffer = g_malloc(max_len + 1);
95
96 /* object name */
97 local->nb -= g3d_stream_read_cstr(global->stream, buffer, max_len);
98 name = g_strdup(buffer);
99
100 obj = (MayaObject *)local->object;
101 if(obj)
102 obj->name = g_strdup(buffer);
103
104 /* parent name */
105 if(local->nb > 0)
106 local->nb -= g3d_stream_read_cstr(global->stream, buffer, max_len);
107 else
108 *buffer = '\0';
109
110 if(obj && *buffer)
111 obj->parent = g_strdup(buffer);
112
113 g_debug("\\%s[Maya][CREA] %s (%s)",
114 padding + (strlen(padding) - local->level),
115 name, *buffer ? buffer : "none");
116
117 g_free(buffer);
118 g_free(name);
119
120 return TRUE;
121}
122
123gboolean maya_cb_CWFL(G3DIffGlobal *global, G3DIffLocal *local)
124{
125 gchar *buffer, *name;
126 gchar *padding = " ";
127 guint32 flags, max_len;
128
129 /* flags ? */
130 flags = g3d_stream_read_int8(global->stream);
131 local->nb -= 1;
132
133 max_len = local->nb;
134 buffer = g_malloc(max_len + 1);
135
136 local->nb -= g3d_stream_read_cstr(global->stream, buffer, max_len);
137 name = g_strdup(buffer);
138
139 local->nb -= g3d_stream_read_cstr(global->stream, buffer, max_len);
140
141 g_debug("\\%s[Maya][CWFL] %s; %s (flags: %u, %d bytes left)",
142 padding + (strlen(padding) - local->level),
143 name, buffer, flags, local->nb);
144
145 g_free(name);
146 g_free(buffer);
147
148 return TRUE;
149}
150
151/* double # */
152gboolean maya_cb_DBLn(G3DIffGlobal *global, G3DIffLocal *local)
153{
154 gint32 len, flags, ndbl, i;
155 gdouble *val;
156 gchar *var;
157 gchar *padding = " ";
158
159 len = local->nb - 9;
160 var = g_malloc(len);
161 g3d_stream_read(global->stream, var, len);
162 local->nb -= len;
163
164 flags = g3d_stream_read_int8(global->stream);
165 local->nb -= 1;
166
167 ndbl = local->nb / 8;
168 val = g_new0(gdouble, ndbl);
169 for(i = 0; i < ndbl; i ++)
170 {
171 val[i] = g3d_stream_read_double_be(global->stream);
172 local->nb -= 8;
173 }
174
175 g_debug("\\%s[Maya][DBL#] %s (%d doubles) (0x%02X)",
176 padding + (strlen(padding) - local->level),
177 var, ndbl, flags);
178
179 if(local->object)
180 maya_var_set((MayaObject *)local->object, var, val);
181 else
182 g_free(val);
183
184 g_free(var);
185
186 return TRUE;
187}
188
189/* double 2 */
190gboolean maya_cb_DBL2(G3DIffGlobal *global, G3DIffLocal *local)
191{
192 gint32 len, flags;
193 gdouble *val;
194 gchar *var;
195 gchar *padding = " ";
196
197 len = local->nb - 17;
198 var = g_malloc(len);
199 g3d_stream_read(global->stream, var, len);
200 local->nb -= len;
201
202 flags = g3d_stream_read_int8(global->stream);
203 local->nb -= 1;
204
205 val = g_new0(gdouble, 2);
206 val[0] = g3d_stream_read_double_be(global->stream);
207 val[1] = g3d_stream_read_double_be(global->stream);
208 local->nb -= 16;
209
210 g_debug("\\%s[Maya][DBL2] %s = (%g,%g) (0x%02X)",
211 padding + (strlen(padding) - local->level),
212 var, val[0], val[1], flags);
213
214 if(local->object)
215 maya_var_set((MayaObject *)local->object, var, val);
216 else
217 g_free(val);
218
219 g_free(var);
220
221 return TRUE;
222}
223
224/* double 3 */
225gboolean maya_cb_DBL3(G3DIffGlobal *global, G3DIffLocal *local)
226{
227 gint32 len, flags;
228 gdouble *val;
229 gchar *var;
230 gchar *padding = " ";
231
232 len = local->nb - 25;
233 var = g_malloc(len);
234 g3d_stream_read(global->stream, var, len);
235 local->nb -= len;
236
237 flags = g3d_stream_read_int8(global->stream);
238 local->nb -= 1;
239
240 val = g_new0(gdouble, 3);
241 val[0] = g3d_stream_read_double_be(global->stream);
242 val[1] = g3d_stream_read_double_be(global->stream);
243 val[2] = g3d_stream_read_double_be(global->stream);
244 local->nb -= 24;
245
246 g_debug("\\%s[Maya][DBL3] %s = (%g,%g,%g) (0x%02X)",
247 padding + (strlen(padding) - local->level),
248 var, val[0], val[1], val[2], flags);
249
250 if(local->object)
251 maya_var_set((MayaObject *)local->object, var, val);
252 else
253 g_free(val);
254
255 g_free(var);
256
257 return TRUE;
258}
259
260/* double */
261gboolean maya_cb_DBLE(G3DIffGlobal *global, G3DIffLocal *local)
262{
263 gint32 len, flags;
264 gdouble val;
265 gchar *var;
266 gchar *padding = " ";
267
268 len = local->nb - 9;
269 if(len <= 0)
270 {
271 g_warning("[Maya][DBLE] length of chunk: %d", local->nb);
272 return FALSE;
273 }
274
275 var = g_malloc(len);
276 g3d_stream_read(global->stream, var, len);
277 local->nb -= len;
278
279 flags = g3d_stream_read_int8(global->stream);
280 local->nb -= 1;
281
282 val = g3d_stream_read_double_be(global->stream);
283 local->nb -= 8;
284
285 g_debug("\\%s[Maya][DBLE] %s = %g (0x%02X)",
286 padding + (strlen(padding) - local->level),
287 var, val, flags);
288
289 if(local->object)
290 maya_var_set_double((MayaObject *)local->object, var, val);
291
292 g_free(var);
293
294 return TRUE;
295}
296
297/* mesh object */
298gboolean maya_cb_DMSH(G3DIffGlobal *global, G3DIffLocal *local)
299{
300 MayaObject *obj;
301 G3DObject *object, *parent;
302 G3DMaterial *material;
303
304 if(local->finalize)
305 {
306 obj = (MayaObject *)local->object;
307
308 object = (G3DObject *)obj->user_data;
309 object->name = obj->name ? g_strdup(obj->name) : "(unnamed mesh)";
310
311 if(obj->parent)
312 {
313 parent = g3d_model_get_object_by_name(global->model, obj->parent);
314 if(parent)
315 object->transformation = parent->transformation;
316 }
317
318 maya_obj_add_to_tree(obj, global->model, object);
319 maya_obj_free(obj);
320 }
321 else
322 {
323 obj = maya_obj_new();
324 local->object = obj;
325
326 material = g3d_material_new();
327 material->name = g_strdup("(default material)");
328
329 object = g_new0(G3DObject, 1);
330 object->materials = g_slist_append(object->materials, material);
331
332 obj->user_data = object;
333 }
334
335 return TRUE;
336}
337
338/* float 3 */
339gboolean maya_cb_FLT3(G3DIffGlobal *global, G3DIffLocal *local)
340{
341 gint32 len, flags;
342 G3DFloat *val;
343 gchar *var;
344 gchar *padding = " ";
345
346 len = local->nb - 13;
347 var = g_malloc(len);
348 g3d_stream_read(global->stream, var, len);
349 local->nb -= len;
350
351 flags = g3d_stream_read_int8(global->stream);
352 local->nb -= 1;
353
354 val = g_new0(G3DFloat, 3);
355 val[0] = g3d_stream_read_float_be(global->stream);
356 val[1] = g3d_stream_read_float_be(global->stream);
357 val[2] = g3d_stream_read_float_be(global->stream);
358 local->nb -= 12;
359
360 g_debug("\\%s[Maya][DBL3] %s = (%g; %g; %g) (0x%02X)",
361 padding + (strlen(padding) - local->level),
362 var, val[0], val[1], val[2], flags);
363
364 if(local->object)
365 maya_var_set((MayaObject *)local->object, var, val);
366 else
367 g_free(val);
368
369 g_free(var);
370
371 return TRUE;
372}
373
374/* matrix */
375gboolean maya_cb_MATR(G3DIffGlobal *global, G3DIffLocal *local)
376{
377 gint32 flags, i;
378 G3DFloat *val;
379 gchar *var;
380 gchar *padding = " ";
381
382 if(local->nb <= 129)
383 {
384 g_warning("[Maya][MATR] matrix size: %d", local->nb);
385 return FALSE;
386 }
387
388 /* var */
389 var = g_new0(gchar, local->nb - 129);
390 g3d_stream_read(global->stream, var, local->nb - 129);
391 local->nb -= (local->nb - 129);
392
393 /* flags ? */
394 flags = g3d_stream_read_int8(global->stream);
395 local->nb -= 1;
396
397 val = g_new0(G3DFloat, 16);
398
399 for(i = 0; i < 16; i ++)
400 {
401 val[i] = (G3DFloat)g3d_stream_read_double_be(global->stream);
402 local->nb -= 8;
403 }
404
405 g_debug("\\%s[Maya][MATR] %s = \n"
406 "%f %f %f %f\n"
407 "%f %f %f %f\n"
408 "%f %f %f %f\n"
409 "%f %f %f %f",
410 padding + (strlen(padding) - local->level),
411 var,
412 val[0 * 4 + 0], val[1 * 4 + 0], val[2 * 4 + 0], val[3 * 4 + 0],
413 val[0 * 4 + 1], val[1 * 4 + 1], val[2 * 4 + 1], val[3 * 4 + 1],
414 val[0 * 4 + 2], val[1 * 4 + 2], val[2 * 4 + 2], val[3 * 4 + 2],
415 val[0 * 4 + 3], val[1 * 4 + 3], val[2 * 4 + 3], val[3 * 4 + 3]);
416
417 if(local->object)
418 maya_var_set((MayaObject *)local->object, var, val);
419 else
420 g_free(val);
421
422 g_free(var);
423
424 return TRUE;
425}
426
427/* mesh */
428gboolean maya_cb_MESH(G3DIffGlobal *global, G3DIffLocal *local)
429{
430 G3DObject *object;
431 G3DMaterial *material;
432 G3DFace *face;
433 gint32 x1, x2, x3, x4, i, i1, i2;
434
435 x1 = g3d_stream_read_int16_be(global->stream);
436 x2 = g3d_stream_read_int16_be(global->stream);
437 x3 = g3d_stream_read_int16_be(global->stream);
438 x4 = g3d_stream_read_int16_be(global->stream);
439 local->nb -= 8;
440
441 object = (G3DObject *)((MayaObject *)local->object)->user_data;
442 material = (G3DMaterial *)g_slist_nth_data(object->materials, 0);
443
444 if(x1 == 0x6369)
445 {
446 object->vertex_count = x4 / 3;
447 object->vertex_data = g_new0(G3DFloat, object->vertex_count * 3);
448
449 for(i = 0; i < object->vertex_count; i ++)
450 {
451 object->vertex_data[i * 3 + 0] = g3d_stream_read_float_be(global->stream);
452 object->vertex_data[i * 3 + 1] = g3d_stream_read_float_be(global->stream);
453 object->vertex_data[i * 3 + 2] = g3d_stream_read_float_be(global->stream);
454 local->nb -= 12;
455 }
456
457 x3 = g3d_stream_read_int16_be(global->stream);
458 x4 = g3d_stream_read_int16_be(global->stream);
459 local->nb -= 4;
460#if 0
461 g_debug("[Maya][MESH] %d %d", x3, x4);
462#endif
463 i1 = -1;
464 i2 = -1;
465 for(i = 0; i < x4 / 2; i ++)
466 {
467 if(i1 == -1)
468 {
469 i1 = g3d_stream_read_int32_be(global->stream) & 0xFFFFFF;
470 i2 = g3d_stream_read_int32_be(global->stream) & 0xFFFFFF;
471 local->nb -= 8;
472 }
473 else
474 {
475 face = g_new0(G3DFace, 1);
476 face->vertex_count = 4;
477 face->vertex_indices = g_new0(guint32, 4);
478 face->vertex_indices[0] = i1;
479 face->vertex_indices[1] = i2;
480 face->vertex_indices[2] =
481 g3d_stream_read_int32_be(global->stream) & 0xFFFFFF;
482 face->vertex_indices[3] =
483 g3d_stream_read_int32_be(global->stream) & 0xFFFFFF;
484 face->material = material;
485 local->nb -= 8;
486 i1 = face->vertex_indices[3];
487 i2 = face->vertex_indices[2];
488
489 object->faces = g_slist_append(object->faces, face);
490 }
491 }
492
493 x3 = g3d_stream_read_int16_be(global->stream);
494 x4 = g3d_stream_read_int16_be(global->stream);
495 local->nb -= 4;
496 }
497 return TRUE;
498}
499
500/* poly cube */
501gboolean maya_cb_PCUB(G3DIffGlobal *global, G3DIffLocal *local)
502{
503 MayaObject *obj;
504 G3DObject *object;
505 G3DMaterial *material;
506 gdouble w, h, d;
507
508 if(local->finalize)
509 {
510 obj = (MayaObject *)local->object;
511 g_return_val_if_fail(obj != NULL, FALSE);
512
513 w = maya_var_get_double(obj, "w", 1.0);
514 h = maya_var_get_double(obj, "h", 1.0);
515 d = maya_var_get_double(obj, "d", 1.0);
516
517 material = g3d_material_new();
518 object = g3d_primitive_box(w, h, d, material);
519 object->name = obj->name ? g_strdup(obj->name) :
520 g_strdup("(unnamed cube)");
521
522 object->materials = g_slist_append(object->materials, material);
523 maya_obj_add_to_tree(obj, global->model, object);
524
525 /* destroy object */
526 maya_obj_free(obj);
527 }
528 else
529 {
530 /* create object */
531 obj = maya_obj_new();
532 local->object = obj;
533 }
534
535 return TRUE;
536}
537
538/* cylinder */
539gboolean maya_cb_PCYL(G3DIffGlobal *global, G3DIffLocal *local)
540{
541 MayaObject *obj;
542 G3DObject *object;
543 G3DMaterial *material;
544 gdouble h, r;
545 guint32 s;
546
547 if(local->finalize) {
548 obj = (MayaObject *)local->object;
549 g_return_val_if_fail(obj != NULL, FALSE);
550
551 h = maya_var_get_double(obj, "h", 1.0);
552 r = maya_var_get_double(obj, "r", 0.5);
553 s = MAX(3, (guint32)maya_var_get_double(obj, "sx", 20));
554
555 material = g3d_material_new();
556 object = g3d_primitive_cylinder(r, h, s, TRUE, TRUE, material);
557 if(object) {
558 object->name = obj->name ? g_strdup(obj->name) :
559 g_strdup("(unnamed cylinder)");
560
561 object->materials = g_slist_append(object->materials, material);
562 maya_obj_add_to_tree(obj, global->model, object);
563 }
564 /* destroy object */
565 maya_obj_free(obj);
566 } else {
567 /* create object */
568 obj = maya_obj_new();
569 local->object = obj;
570 }
571 return TRUE;
572}
573
574/* string */
575gboolean maya_cb_STR_(G3DIffGlobal *global, G3DIffLocal *local)
576{
577 gchar *buffer, *var;
578 gchar *padding = " ";
579
580 /* variable */
581 buffer = g_malloc(local->nb);
582 local->nb -= g3d_stream_read_cstr(global->stream, buffer, local->nb);
583 var = g_strdup(buffer);
584
585 /* value */
586 local->nb -= g3d_stream_read_cstr(global->stream, buffer, local->nb);
587
588 g_debug("\\%s[Maya][STR ] %s = '%.*s' (%d characters)",
589 padding + (strlen(padding) - local->level),
590 var, 40, buffer, (int) strlen(buffer));
591
592 if(local->object)
593 maya_var_set((MayaObject *)local->object, var, g_strdup(buffer));
594
595 g_free(buffer);
596 g_free(var);
597
598 return TRUE;
599}
600
601/* transformation */
602gboolean maya_cb_XFRM(G3DIffGlobal *global, G3DIffLocal *local)
603{
604 MayaObject *obj;
605 G3DObject *object;
606 G3DTransformation *tf;
607 gdouble *val;
608
609 if(local->finalize)
610 {
611 obj = (MayaObject *)local->object;
612
613 object = maya_obj_to_g3d(obj);
614
615 tf = g_new0(G3DTransformation, 1);
616 g3d_matrix_identity(tf->matrix);
617
618 val = maya_var_get(obj, "t");
619 if(val)
620 g3d_matrix_translate(val[0], val[1], val[2], tf->matrix);
621
622 val = maya_var_get(obj, "r");
623 if(val)
624 g3d_matrix_rotate_xyz(val[0], val[1], val[2], tf->matrix);
625
626 val = maya_var_get(obj, "s");
627 if(val)
628 g3d_matrix_scale(val[0], val[1], val[2], tf->matrix);
629
630 /* g3d_matrix_dump(tf->matrix); */
631
632 object->transformation = tf;
633
634 maya_obj_add_to_tree(obj, global->model, object);
635
636 maya_obj_free(obj);
637 }
638 else
639 {
640 obj = maya_obj_new();
641 local->object = obj;
642 }
643
644 return TRUE;
645}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_callbacks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_callbacks.h
new file mode 100644
index 0000000..aaa0718
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_callbacks.h
@@ -0,0 +1,43 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_MAYA_CALLBACKS_H
23#define _IMP_MAYA_CALLBACKS_H
24
25#include <g3d/iff.h>
26
27gboolean maya_cb_CMPD(G3DIffGlobal *global, G3DIffLocal *local);
28gboolean maya_cb_CREA(G3DIffGlobal *global, G3DIffLocal *local);
29gboolean maya_cb_CWFL(G3DIffGlobal *global, G3DIffLocal *local);
30gboolean maya_cb_DBLn(G3DIffGlobal *global, G3DIffLocal *local);
31gboolean maya_cb_DBL2(G3DIffGlobal *global, G3DIffLocal *local);
32gboolean maya_cb_DBL3(G3DIffGlobal *global, G3DIffLocal *local);
33gboolean maya_cb_DBLE(G3DIffGlobal *global, G3DIffLocal *local);
34gboolean maya_cb_DMSH(G3DIffGlobal *global, G3DIffLocal *local);
35gboolean maya_cb_FLT3(G3DIffGlobal *global, G3DIffLocal *local);
36gboolean maya_cb_MATR(G3DIffGlobal *global, G3DIffLocal *local);
37gboolean maya_cb_MESH(G3DIffGlobal *global, G3DIffLocal *local);
38gboolean maya_cb_PCUB(G3DIffGlobal *global, G3DIffLocal *local);
39gboolean maya_cb_PCYL(G3DIffGlobal *global, G3DIffLocal *local);
40gboolean maya_cb_STR_(G3DIffGlobal *global, G3DIffLocal *local);
41gboolean maya_cb_XFRM(G3DIffGlobal *global, G3DIffLocal *local);
42
43#endif /* _IMP_MAYA_CALLBACKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_chunks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_chunks.h
new file mode 100644
index 0000000..84997a9
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_chunks.h
@@ -0,0 +1,130 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_MAYA_CHUNKS_H
23#define _IMP_MAYA_CHUNKS_H
24
25#include <g3d/iff.h>
26
27#include "imp_maya_callbacks.h"
28
29static G3DIffChunkInfo maya_chunks[] = {
30 { "ATTR", "unknown", 0, NULL },
31 { "AUDI", "audio", 1, NULL }, /* FOR4 */
32 { "AUNI", "angle unit", 0, NULL },
33 { "BRSH", "brush", 1, NULL }, /* FOR4 */
34 { "CHNG", "changes", 0, NULL },
35 { "CMP#", "unknown", 0, NULL },
36 { "CMPD", "compound", 0, maya_cb_CMPD },
37 { "CONN", "connection list", 1, NULL }, /* FOR4 */
38 { "CONS", "construction", 1, NULL }, /* LIS4 */
39 { "CWFL", "connect attr", 0, maya_cb_CWFL },
40 { "CREA", "create node", 0, maya_cb_CREA },
41 { "DBL#", "double #", 0, maya_cb_DBLn },
42 { "DBL2", "double 2", 0, maya_cb_DBL2 },
43 { "DBL3", "double 3", 0, maya_cb_DBL3 },
44 { "DBLE", "double", 0, maya_cb_DBLE },
45 { "DCAM", "camera", 1, NULL }, /* FOR4 */
46 { "DECT", "delete component", 1, NULL }, /* FOR4 */
47 { "DELA", "delete attribute", 1, NULL }, /* FOR4 */
48 { "DELL", "delete list", 1, NULL }, /* LIS4 */
49 { "DISC", "unknown", 0, NULL },
50 { "DISL", "unknown", 1, NULL }, /* LIS4 */
51 { "DMSH", "mesh", 1, maya_cb_DMSH },
52 { "DMTI", "material info", 1, NULL }, /* FOR4 */
53 { "DPLM", "layer manager", 1, NULL }, /* FOR4 */
54 { "DSPL", "layer ?", 1, NULL }, /* FOR4 */
55 { "FINF", "file information", 0, maya_cb_STR_ },
56 { "FDFL", "flare ?", 1, NULL }, /* FOR4 */
57 { "FLGS", "flags", 0, NULL },
58 { "FLT2", "float 2", 0, NULL },
59 { "FLT3", "float 3", 0, maya_cb_FLT3 },
60 { "FMPT", "unknown", 1, NULL }, /* FOR4 */
61 { "FNLD", "unknown", 1, NULL }, /* FOR4 */
62 { "GPID", "group id", 1, NULL }, /* FOR4 */
63 { "GRPP", "group parts", 1, NULL }, /* FOR4 */
64 { "HEAD", "header", 1, NULL }, /* FOR4 */
65 { "ICON", "icon", 0, NULL },
66 { "INCL", "includes", 0, NULL },
67 { "INFO", "information", 0, NULL },
68 { "LUNI", "length unit", 0, NULL },
69 { "MADE", "creation date", 0, NULL },
70 { "MATR", "matrix", 0, maya_cb_MATR },
71 { "MESH", "mesh", 0, maya_cb_MESH },
72 { "NPLN", "unknown", 0, NULL },
73 { "NRBS", "NURBS ?", 0, NULL },
74 { "NSRF", "surface", 1, NULL }, /* FOR4 */
75 { "OBJN", "unknown", 0, NULL },
76 { "OBST", "unknown", 1, NULL }, /* FOR4 */
77 { "PAUP", "poly auto proj", 1, NULL }, /* FOR4 */
78 { "PBOP", "poly boolean operation", 1, NULL }, /* FOR4 */
79 { "PBVL", "poly bevel", 1, NULL }, /* FOR4 */
80 { "PCRE", "poly create face", 1, NULL }, /* FOR4 */
81 { "PCTA", "poly rotate ?", 1, NULL }, /* FOR4 */
82 { "PCTL", "poly translate ?", 1, NULL }, /* FOR4 */
83 { "PCTU", "poly scale ?", 1, NULL }, /* FOR4 */
84 { "PCUB", "poly cube", 1, maya_cb_PCUB },
85 { "PCYL", "poly cylinder", 1, maya_cb_PCYL },
86 { "PEXE", "poly extrude", 1, NULL }, /* FOR4 */
87 { "PEXF", "poly extrude face", 1, NULL }, /* FOR4 */
88 { "PFUV", "poly flip UV", 1, NULL }, /* FOR4 */
89 { "PING", "unknown", 1, NULL }, /* FOR4 */
90 { "PLUG", "plugin ?", 0, NULL },
91 { "PMIR", "poly mirror", 1, NULL }, /* FOR4 */
92 { "PMVE", "poly merge vertices", 1, NULL }, /* FOR4 */
93 { "PPCT", "poly cut", 1, NULL }, /* FOR4 */
94 { "PPIP", "poly pipe", 1, NULL }, /* FOR4 */
95 { "PRNS", "unknown", 0, NULL },
96 { "PRNT", "unknown", 0, NULL },
97 { "PSEP", "poly separate", 1, NULL }, /* FOR4 */
98 { "PSMF", "poly smooth face", 1, NULL }, /* FOR4 */
99 { "PSOE", "poly soft edge", 1, NULL }, /* FOR4 */
100 { "PSPH", "poly sphere", 1, NULL }, /* FOR4 */
101 { "PSPL", "poly split", 1, NULL }, /* FOR4 */
102 { "PTRI", "poly triangulate", 1, NULL }, /* FOR4 */
103 { "PTUV", "poly tweak UV", 1, NULL }, /* FOR4 */
104 { "PTWK", "poly tweak", 1, NULL }, /* FOR4 */
105 { "PUNI", "poly unite", 1, NULL }, /* FOR4 */
106 { "RANI", "anisotropic", 1, NULL }, /* FOR4 */
107 { "RBLN", "unknown", 1, NULL }, /* FOR4 */
108 { "RLAM", "lambert", 1, NULL }, /* FOR4 */
109 { "RLLK", "light linker", 1, NULL }, /* FOR4 */
110 { "RNDL", "render layer", 1, NULL }, /* FOR4 */
111 { "RNLM", "render layer manager", 1, NULL }, /* FOR4 */
112 { "RPHO", "phong ?", 1, NULL }, /* FOR4 */
113 { "RPL2", "place texture", 1, NULL }, /* FOR4 */
114 { "RPLD", "place texture", 1, NULL }, /* FOR4 */
115 { "RPRJ", "projection", 1, NULL }, /* FOR4 */
116 { "RTFT", "texture file", 1, NULL }, /* FOR4 */
117 { "SCRP", "script", 1, NULL }, /* FOR4 */
118 { "SHAD", "shadow", 1, NULL }, /* FOR4 */
119 { "SLCT", "select", 0, NULL }, /* evil ;) */
120 { "STR ", "string", 0, maya_cb_STR_ },
121 { "TGEO", "transform geometry", 1, NULL }, /* FOR4 */
122 { "TUNI", "time unit", 0, NULL },
123 { "UVER", "minor version?", 0, NULL },
124 { "VERS", "version", 0, NULL },
125 { "XFRM", "transformation", 1, maya_cb_XFRM },
126
127 { NULL, NULL, 0, NULL }
128};
129
130#endif /* _IMP_MAYA_CHUNKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_obj.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_obj.c
new file mode 100644
index 0000000..d55bc71
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_obj.c
@@ -0,0 +1,110 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <string.h>
23
24#include <g3d/model.h>
25
26#include "imp_maya_obj.h"
27
28MayaObject *maya_obj_new(void)
29{
30 MayaObject *obj;
31
32 obj = g_new0(MayaObject, 1);
33 obj->vars = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free);
34
35 return obj;
36}
37
38void maya_obj_free(MayaObject *obj)
39{
40 g_hash_table_destroy(obj->vars);
41 if(obj->name) g_free(obj->name);
42 g_free(obj);
43}
44
45G3DObject *maya_obj_to_g3d(MayaObject *obj)
46{
47 G3DObject *object;
48
49 object = g_new0(G3DObject, 1);
50 object->name = obj->name ? g_strdup(obj->name) : "(unnamed)";
51
52 return object;
53}
54
55static G3DObject *get_by_path(G3DModel *model, gchar *path)
56{
57 gchar **parts, **partp;
58 G3DObject *object = NULL;
59 GSList *olist;
60
61 partp = parts = g_strsplit(path, "|", 0);
62 olist = model->objects;
63 while(*partp)
64 {
65 while(olist)
66 {
67 object = (G3DObject *)olist->data;
68
69 if(strcmp(object->name, *partp) == 0) break;
70
71 olist = olist->next;
72 object = NULL;
73 }
74
75 if(object == NULL) return NULL;
76
77 partp ++;
78 olist = object->objects;
79 }
80
81 g_strfreev(parts);
82
83 return object;
84}
85
86gboolean maya_obj_add_to_tree(MayaObject *obj, G3DModel *model,
87 G3DObject *object)
88{
89 G3DObject *parent = NULL;
90
91 if(obj->parent)
92 {
93 if(*(obj->parent) == '|')
94 parent = get_by_path(model, obj->parent + 1);
95 else
96 parent = g3d_model_get_object_by_name(model, obj->parent);
97
98 if(parent == NULL)
99 g_warning(
100 "[Maya] maya_obj_add_to_tree: parent object '%s' not found",
101 obj->parent);
102 }
103
104 if(parent != NULL)
105 parent->objects = g_slist_append(parent->objects, object);
106 else
107 model->objects = g_slist_append(model->objects, object);
108
109 return TRUE;
110}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_obj.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_obj.h
new file mode 100644
index 0000000..6feb52e
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_obj.h
@@ -0,0 +1,41 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_MAYA_OBJ_H
23#define _IMP_MAYA_OBJ_H
24
25#include <glib.h>
26#include <g3d/types.h>
27
28typedef struct {
29 gchar *name;
30 gchar *parent;
31 GHashTable *vars;
32 gpointer user_data;
33} MayaObject;
34
35MayaObject *maya_obj_new(void);
36void maya_obj_free(MayaObject *obj);
37G3DObject *maya_obj_to_g3d(MayaObject *obj);
38gboolean maya_obj_add_to_tree(MayaObject *obj, G3DModel *model,
39 G3DObject *object);
40
41#endif /* _IMP_MAYA_OBJ_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_var.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_var.c
new file mode 100644
index 0000000..03bb8bf
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_var.c
@@ -0,0 +1,60 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <glib.h>
23
24#include "imp_maya_obj.h"
25
26gboolean maya_var_set(MayaObject *obj, const gchar *var, gpointer value)
27{
28 g_hash_table_replace(obj->vars, g_strdup(var), value);
29
30 return TRUE;
31}
32
33gpointer maya_var_get(MayaObject *obj, const gchar *var)
34{
35 gpointer val;
36
37 val = g_hash_table_lookup(obj->vars, var);
38 return val;
39}
40
41gboolean maya_var_set_double(MayaObject *obj, const gchar *var, gdouble value)
42{
43 gdouble *pval;
44
45 pval = g_new0(gdouble, 1);
46 *pval = value;
47
48 return maya_var_set(obj, var, pval);
49}
50
51gdouble maya_var_get_double(MayaObject *obj, const gchar *var, gdouble defval)
52{
53 gdouble *pval;
54
55 pval = maya_var_get(obj, var);
56 if(pval == NULL)
57 return defval;
58
59 return *pval;
60}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_var.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_var.h
new file mode 100644
index 0000000..f0aa66c
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_var.h
@@ -0,0 +1,33 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_MAYA_VAR_H
23#define _IMP_MAYA_VAR_H
24
25#include "imp_maya_obj.h"
26
27gboolean maya_var_set(MayaObject *obj, const gchar *var, gpointer value);
28gpointer maya_var_get(MayaObject *obj, const gchar *var);
29
30gboolean maya_var_set_double(MayaObject *obj, const gchar *var, gdouble value);
31gdouble maya_var_get_double(MayaObject *obj, const gchar *var, gdouble defval);
32
33#endif /* _IMP_MAYA_VAR_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/Makefile
new file mode 100644
index 0000000..989303f
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/Makefile
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_md2/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_md2
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_md2_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_md2_la_OBJECTS = imp_md2.lo
59imp_md2_la_OBJECTS = $(am_imp_md2_la_OBJECTS)
60DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_md2_la_SOURCES)
73DIST_SOURCES = $(imp_md2_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
78AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
79AR = ar
80AS = as
81AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
82AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
83AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
84AWK = gawk
85CC = gcc
86CCDEPMODE = depmode=gcc3
87CFLAGS = -g -O2
88CPP = gcc -E
89CPPFLAGS =
90CXX = g++
91CXXCPP = g++ -E
92CXXDEPMODE = depmode=gcc3
93CXXFLAGS = -g -O2
94CYGPATH_W = echo
95DBG_CFLAGS = -O2
96DEBUG = 0
97DEFS = -DHAVE_CONFIG_H
98DEPDIR = .deps
99DLLTOOL = dlltool
100ECHO = echo
101ECHO_C =
102ECHO_N = -n
103ECHO_T =
104EGREP = /bin/grep -E
105EXEEXT =
106F77 =
107FFLAGS =
108GDKPIXBUF_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
109GDKPIXBUF_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
110GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
111GLIB_GENMARSHAL = glib-genmarshal
112GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
113GLIB_MKENUMS = glib-mkenums
114GOBJECT_QUERY = gobject-query
115GREP = /bin/grep
116GTKDOC_CHECK = /usr/bin/gtkdoc-check
117GTK_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
118GTK_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
119HTML_DIR = ${datadir}/gtk-doc/html
120INSTALL = /usr/bin/install -c
121INSTALL_DATA = ${INSTALL} -m 644
122INSTALL_PROGRAM = ${INSTALL}
123INSTALL_SCRIPT = ${INSTALL}
124INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
125LDFLAGS =
126LEX = flex
127LEXLIB = -lfl
128LEX_OUTPUT_ROOT = lex.yy
129LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
130LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
131LIBOBJS =
132LIBS = -lm
133LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
134LIBXML2_CFLAGS = -I/usr/include/libxml2
135LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
136LN_S = ln -s
137LTLIBOBJS =
138LTVERSION = 0:8:0
139MAGIC_LIBS = -lmagic
140MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
141MATH_LIBS = -lm
142MKDIR_P = /bin/mkdir -p
143OBJDUMP = objdump
144OBJEXT = o
145PACKAGE = libg3d
146PACKAGE_BUGREPORT =
147PACKAGE_NAME =
148PACKAGE_STRING =
149PACKAGE_TARNAME =
150PACKAGE_VERSION =
151PATH_SEPARATOR = :
152PKG_CONFIG = /usr/bin/pkg-config
153PLUGINS_LDFLAGS = -avoid-version -export-dynamic
154RANLIB = ranlib
155SET_MAKE =
156SHELL = /bin/bash
157STRIP = strip
158VERSION = 0.0.8
159XML2_CONFIG = /usr/bin/xml2-config
160XML_CPPFLAGS = -I/usr/include/libxml2
161XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
162Z_CFLAGS =
163Z_LIBS = -lz
164abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2
165abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2
166abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
167abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168ac_ct_CC = gcc
169ac_ct_CXX = g++
170ac_ct_F77 =
171am__include = include
172am__leading_dot = .
173am__quote =
174am__tar = ${AMTAR} chof - "$$tardir"
175am__untar = ${AMTAR} xf -
176bindir = ${exec_prefix}/bin
177build = x86_64-unknown-linux-gnu
178build_alias =
179build_cpu = x86_64
180build_os = linux-gnu
181build_vendor = unknown
182builddir = .
183datadir = ${datarootdir}
184datarootdir = ${prefix}/share
185docdir = ${datarootdir}/doc/${PACKAGE}
186dvidir = ${docdir}
187exec_prefix = ${prefix}
188host = x86_64-unknown-linux-gnu
189host_alias =
190host_cpu = x86_64
191host_os = linux-gnu
192host_vendor = unknown
193htmldir = ${docdir}
194includedir = ${prefix}/include
195infodir = ${datarootdir}/info
196install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
197libdir = ${exec_prefix}/lib
198libexecdir = ${exec_prefix}/libexec
199localedir = ${datarootdir}/locale
200localstatedir = ${prefix}/var
201mandir = ${datarootdir}/man
202mkdir_p = /bin/mkdir -p
203oldincludedir = /usr/include
204pdfdir = ${docdir}
205prefix = /usr/local
206program_transform_name = s,x,x,
207psdir = ${docdir}
208sbindir = ${exec_prefix}/sbin
209sharedstatedir = ${prefix}/com
210srcdir = .
211sysconfdir = ${prefix}/etc
212target_alias =
213top_builddir = ../../..
214top_srcdir = ../../..
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_md2.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 -O2 -DDEBUG=0 \
221 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 -avoid-version -export-dynamic
227
228imp_md2_la_SOURCES = imp_md2.c imp_md2_normals.h
229imp_md2_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_md2/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_md2/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_md2.la: $(imp_md2_la_OBJECTS) $(imp_md2_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_md2_la_OBJECTS) $(imp_md2_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299include ./$(DEPDIR)/imp_md2.Plo
300
301.c.o:
302 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304# source='$<' object='$@' libtool=no \
305# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
306# $(COMPILE) -c $<
307
308.c.obj:
309 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311# source='$<' object='$@' libtool=no \
312# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
313# $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318# source='$<' object='$@' libtool=yes \
319# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
320# $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/Makefile.am
new file mode 100644
index 0000000..935ec9d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/Makefile.am
@@ -0,0 +1,20 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_md2.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_md2_la_SOURCES = imp_md2.c imp_md2_normals.h
20imp_md2_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/Makefile.in
new file mode 100644
index 0000000..fabe6b9
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/Makefile.in
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_md2
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_md2_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_md2_la_OBJECTS = imp_md2.lo
59imp_md2_la_OBJECTS = $(am_imp_md2_la_OBJECTS)
60DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_md2_la_SOURCES)
73DIST_SOURCES = $(imp_md2_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = @ACLOCAL@
78AMTAR = @AMTAR@
79AR = @AR@
80AS = @AS@
81AUTOCONF = @AUTOCONF@
82AUTOHEADER = @AUTOHEADER@
83AUTOMAKE = @AUTOMAKE@
84AWK = @AWK@
85CC = @CC@
86CCDEPMODE = @CCDEPMODE@
87CFLAGS = @CFLAGS@
88CPP = @CPP@
89CPPFLAGS = @CPPFLAGS@
90CXX = @CXX@
91CXXCPP = @CXXCPP@
92CXXDEPMODE = @CXXDEPMODE@
93CXXFLAGS = @CXXFLAGS@
94CYGPATH_W = @CYGPATH_W@
95DBG_CFLAGS = @DBG_CFLAGS@
96DEBUG = @DEBUG@
97DEFS = @DEFS@
98DEPDIR = @DEPDIR@
99DLLTOOL = @DLLTOOL@
100ECHO = @ECHO@
101ECHO_C = @ECHO_C@
102ECHO_N = @ECHO_N@
103ECHO_T = @ECHO_T@
104EGREP = @EGREP@
105EXEEXT = @EXEEXT@
106F77 = @F77@
107FFLAGS = @FFLAGS@
108GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
109GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
110GLIB_CFLAGS = @GLIB_CFLAGS@
111GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
112GLIB_LIBS = @GLIB_LIBS@
113GLIB_MKENUMS = @GLIB_MKENUMS@
114GOBJECT_QUERY = @GOBJECT_QUERY@
115GREP = @GREP@
116GTKDOC_CHECK = @GTKDOC_CHECK@
117GTK_CFLAGS = @GTK_CFLAGS@
118GTK_LIBS = @GTK_LIBS@
119HTML_DIR = @HTML_DIR@
120INSTALL = @INSTALL@
121INSTALL_DATA = @INSTALL_DATA@
122INSTALL_PROGRAM = @INSTALL_PROGRAM@
123INSTALL_SCRIPT = @INSTALL_SCRIPT@
124INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125LDFLAGS = @LDFLAGS@
126LEX = @LEX@
127LEXLIB = @LEXLIB@
128LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
129LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
130LIBGSF_LIBS = @LIBGSF_LIBS@
131LIBOBJS = @LIBOBJS@
132LIBS = @LIBS@
133LIBTOOL = @LIBTOOL@ --quiet
134LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
135LIBXML2_LIBS = @LIBXML2_LIBS@
136LN_S = @LN_S@
137LTLIBOBJS = @LTLIBOBJS@
138LTVERSION = @LTVERSION@
139MAGIC_LIBS = @MAGIC_LIBS@
140MAKEINFO = @MAKEINFO@
141MATH_LIBS = @MATH_LIBS@
142MKDIR_P = @MKDIR_P@
143OBJDUMP = @OBJDUMP@
144OBJEXT = @OBJEXT@
145PACKAGE = @PACKAGE@
146PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147PACKAGE_NAME = @PACKAGE_NAME@
148PACKAGE_STRING = @PACKAGE_STRING@
149PACKAGE_TARNAME = @PACKAGE_TARNAME@
150PACKAGE_VERSION = @PACKAGE_VERSION@
151PATH_SEPARATOR = @PATH_SEPARATOR@
152PKG_CONFIG = @PKG_CONFIG@
153PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
154RANLIB = @RANLIB@
155SET_MAKE = @SET_MAKE@
156SHELL = @SHELL@
157STRIP = @STRIP@
158VERSION = @VERSION@
159XML2_CONFIG = @XML2_CONFIG@
160XML_CPPFLAGS = @XML_CPPFLAGS@
161XML_LIBS = @XML_LIBS@
162Z_CFLAGS = @Z_CFLAGS@
163Z_LIBS = @Z_LIBS@
164abs_builddir = @abs_builddir@
165abs_srcdir = @abs_srcdir@
166abs_top_builddir = @abs_top_builddir@
167abs_top_srcdir = @abs_top_srcdir@
168ac_ct_CC = @ac_ct_CC@
169ac_ct_CXX = @ac_ct_CXX@
170ac_ct_F77 = @ac_ct_F77@
171am__include = @am__include@
172am__leading_dot = @am__leading_dot@
173am__quote = @am__quote@
174am__tar = @am__tar@
175am__untar = @am__untar@
176bindir = @bindir@
177build = @build@
178build_alias = @build_alias@
179build_cpu = @build_cpu@
180build_os = @build_os@
181build_vendor = @build_vendor@
182builddir = @builddir@
183datadir = @datadir@
184datarootdir = @datarootdir@
185docdir = @docdir@
186dvidir = @dvidir@
187exec_prefix = @exec_prefix@
188host = @host@
189host_alias = @host_alias@
190host_cpu = @host_cpu@
191host_os = @host_os@
192host_vendor = @host_vendor@
193htmldir = @htmldir@
194includedir = @includedir@
195infodir = @infodir@
196install_sh = @install_sh@
197libdir = @libdir@
198libexecdir = @libexecdir@
199localedir = @localedir@
200localstatedir = @localstatedir@
201mandir = @mandir@
202mkdir_p = @mkdir_p@
203oldincludedir = @oldincludedir@
204pdfdir = @pdfdir@
205prefix = @prefix@
206program_transform_name = @program_transform_name@
207psdir = @psdir@
208sbindir = @sbindir@
209sharedstatedir = @sharedstatedir@
210srcdir = @srcdir@
211sysconfdir = @sysconfdir@
212target_alias = @target_alias@
213top_builddir = @top_builddir@
214top_srcdir = @top_srcdir@
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_md2.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
221 @GLIB_CFLAGS@
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 @PLUGINS_LDFLAGS@
227
228imp_md2_la_SOURCES = imp_md2.c imp_md2_normals.h
229imp_md2_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_md2/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_md2/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_md2.la: $(imp_md2_la_OBJECTS) $(imp_md2_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_md2_la_OBJECTS) $(imp_md2_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_md2.Plo@am__quote@
300
301.c.o:
302@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
305@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
306@am__fastdepCC_FALSE@ $(COMPILE) -c $<
307
308.c.obj:
309@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
313@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
320@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/imp_md2.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/imp_md2.c
new file mode 100644
index 0000000..4c9d4c6
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/imp_md2.c
@@ -0,0 +1,292 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <string.h>
25
26#include <g3d/types.h>
27#include <g3d/material.h>
28#include <g3d/texture.h>
29#include <g3d/stream.h>
30#include <g3d/iff.h>
31
32#include "imp_md2_normals.h"
33
34#define MD2_SKINNAMELEN 64
35
36static const char *textureExtensions[] = {
37 ".pcx", ".bmp", ".jpg", ".tga", ".png", NULL };
38
39EAPI
40gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
41 G3DModel *model, gpointer user_data)
42{
43 guint32 idid, idver, skinwidth, skinheight, framesize;
44 guint32 numskins, numverts, numtexs, numfaces, numglcmds, numframes;
45 guint32 offskins, offtexs, offfaces, offframes, offglcmds, offend;
46 G3DFloat *texco = NULL, *normals;
47 gchar **skinnames = NULL;
48 gint i, j;
49 G3DObject *object;
50 G3DMaterial *material;
51 G3DImage *image = NULL;
52
53 idid = g3d_stream_read_int32_be(stream);
54 if(idid != G3D_IFF_MKID('I','D','P','2')) {
55 g_critical("file '%s' is not a .md2 file", stream->uri);
56 return FALSE;
57 }
58
59 idver = g3d_stream_read_int32_le(stream);
60 if(idver != 8) {
61 g_warning("file '%s' has wrong version (%d)", stream->uri, idver);
62#define CLOSE_ON_WRONG_VERSION
63#ifdef CLOSE_ON_WRONG_VERSION
64 return FALSE;
65#endif
66 }
67
68 object = g_new0(G3DObject, 1);
69 object->name = g_strdup("Q2Object");
70 material = g3d_material_new();
71 object->materials = g_slist_append(object->materials, material);
72 model->objects = g_slist_append(model->objects, object);
73
74 skinwidth = g3d_stream_read_int32_le(stream);
75 skinheight = g3d_stream_read_int32_le(stream);
76 framesize = g3d_stream_read_int32_le(stream);
77 numskins = g3d_stream_read_int32_le(stream);
78 numverts = g3d_stream_read_int32_le(stream);
79 numtexs = g3d_stream_read_int32_le(stream);
80 numfaces = g3d_stream_read_int32_le(stream);
81 numglcmds = g3d_stream_read_int32_le(stream);
82 numframes = g3d_stream_read_int32_le(stream);
83
84 object->vertex_count = numverts;
85 object->vertex_data = g_new0(G3DFloat, numverts * 3);
86 normals = g_new0(G3DFloat, numverts * 3);
87
88 offskins = g3d_stream_read_int32_le(stream);
89 offtexs = g3d_stream_read_int32_le(stream);
90 offfaces = g3d_stream_read_int32_le(stream);
91 offframes = g3d_stream_read_int32_le(stream);
92 offglcmds = g3d_stream_read_int32_le(stream);
93 offend = g3d_stream_read_int32_le(stream);
94
95 if(numskins > 0) {
96 skinnames = g_new0(gchar *, numskins);
97 for(i = 0; i < numskins; i ++) {
98 skinnames[i] = g_new0(gchar, MD2_SKINNAMELEN);
99 g3d_stream_read(stream, skinnames[i], MD2_SKINNAMELEN);
100
101 /* some md2 models have a dot as first character to tell the engine
102 * load the texture from the dir where the model is located */
103 if(skinnames[i][0] == '.')
104 memmove(skinnames[i], skinnames[i] + 1, MD2_SKINNAMELEN - 1);
105#if DEBUG > 0
106 g_debug("skin #%d: %s", i + 1, skinnames[i]);
107#endif
108 }
109
110 /* not every skin has a texture assigned, the engines will search
111 * a list of supported images to get the texture */
112 for(j = 0; j < numskins; j++) {
113 gchar skinname[MD2_SKINNAMELEN];
114 gchar *basename;
115
116 /* real filename */
117 if(g_file_test(skinnames[j], G_FILE_TEST_EXISTS))
118 image = g3d_texture_load_cached(context, model, skinnames[j]);
119 if(image)
120 break;
121 basename = g_path_get_basename(skinnames[j]);
122 if(g_file_test(basename, G_FILE_TEST_EXISTS))
123 image = g3d_texture_load_cached(context, model, skinnames[j]);
124 g_free(basename);
125 if(image)
126 break;
127
128 /* without extension */
129 for(i = 0; textureExtensions[i] != NULL; i ++) {
130 g_snprintf(skinname, sizeof(skinname), "%s%s", skinnames[j],
131 textureExtensions[i]);
132 if(g_file_test(skinname, G_FILE_TEST_EXISTS))
133 image = g3d_texture_load_cached(context, model, skinname);
134 if(image)
135 break;
136 basename = g_path_get_basename(skinname);
137 if(g_file_test(basename, G_FILE_TEST_EXISTS))
138 image = g3d_texture_load_cached(context, model, skinname);
139 g_free(basename);
140 if(image)
141 break;
142 }
143
144 /* replace extension */
145 for(i = 0; textureExtensions[i] != NULL; i ++) {
146 g_snprintf(skinname, sizeof(skinname), "%.*s%s",
147 ((int) strlen(skinnames[j])) - 4, skinnames[j],
148 textureExtensions[i]);
149 if(g_file_test(skinname, G_FILE_TEST_EXISTS))
150 image = g3d_texture_load_cached(context, model, skinname);
151 if(image)
152 break;
153 basename = g_path_get_basename(skinname);
154 if(g_file_test(basename, G_FILE_TEST_EXISTS))
155 image = g3d_texture_load_cached(context, model, skinname);
156 g_free(basename);
157 if(image)
158 break;
159 }
160 if(image)
161 break;
162 }
163
164 /* fallback skin name */
165 if(image == NULL)
166 image = g3d_texture_load_cached(context, model, "tris0.bmp");
167 if(image)
168 image->tex_env = G3D_TEXENV_REPLACE;
169 }
170
171 g3d_stream_seek(stream, offframes, G_SEEK_SET);
172 /* vertices per frame */
173#if DEBUG > 0
174 g_debug("numframes: %d", numframes);
175#endif
176 for(i = 0; i < numframes; i ++) {
177 G3DFloat s0,s1,s2, t0,t1,t2;
178 gchar fname[16];
179 guint32 j;
180
181 s0 = g3d_stream_read_float_le(stream); /* scale */
182 s1 = g3d_stream_read_float_le(stream);
183 s2 = g3d_stream_read_float_le(stream);
184 t0 = g3d_stream_read_float_le(stream); /* translate */
185 t1 = g3d_stream_read_float_le(stream);
186 t2 = g3d_stream_read_float_le(stream);
187 g3d_stream_read(stream, fname, 16); /* frame name*/
188
189 for(j = 0; j < numverts; j ++) {
190 G3DFloat x,y,z;
191 guint32 v,n;
192
193 v = g3d_stream_read_int8(stream);
194 x = (G3DFloat)v * s0 + t0;
195 v = g3d_stream_read_int8(stream);
196 y = (G3DFloat)v * s1 + t1;
197 v = g3d_stream_read_int8(stream);
198 z = (G3DFloat)v * s2 + t2;
199 n = g3d_stream_read_int8(stream);
200 if(i == 0) {
201 object->vertex_data[j * 3 + 0] = x;
202 object->vertex_data[j * 3 + 1] = y;
203 object->vertex_data[j * 3 + 2] = z;
204
205 normals[j * 3 + 0] = md2_normals[n * 3 + 0];
206 normals[j * 3 + 1] = md2_normals[n * 3 + 1];
207 normals[j * 3 + 2] = md2_normals[n * 3 + 2];
208 }
209 }
210 }
211
212 g3d_stream_seek(stream, offtexs, G_SEEK_SET);
213 /* texture coordinates */
214 if(numtexs > 0) {
215 texco = g_new0(G3DFloat, numtexs * 2);
216 for(i = 0; i < numtexs; i ++) {
217 texco[i * 2 + 0] = g3d_stream_read_int16_le(stream) /
218 (G3DFloat)skinwidth;
219 texco[i * 2 + 1] = g3d_stream_read_int16_le(stream) /
220 (G3DFloat)skinheight;
221 }
222 }
223
224 /* faces */
225 for(i = 0; i < numfaces; i ++) {
226 G3DFace *face;
227 guint32 i;
228 guint16 index;
229
230 face = g_new0(G3DFace, 1);
231 object->faces = g_slist_append(object->faces, face);
232 face->material = material;
233 face->vertex_count = 3;
234 face->vertex_indices = g_new0(guint32, 3);
235 face->tex_vertex_data = g_new0(G3DFloat, 3 * 2);
236 face->normals = g_new0(G3DFloat, 3 * 3);
237 face->flags |= G3D_FLAG_FAC_NORMALS;
238
239 if(image)
240 {
241 face->flags |= G3D_FLAG_FAC_TEXMAP;
242 face->tex_image = image;
243 }
244
245 for(i = 0; i < 3; i ++)
246 {
247 face->vertex_indices[i] = g3d_stream_read_int16_le(stream);
248 face->normals[i * 3 + 0] =
249 - normals[face->vertex_indices[i] * 3 + 0];
250 face->normals[i * 3 + 1] =
251 - normals[face->vertex_indices[i] * 3 + 1];
252 face->normals[i * 3 + 2] =
253 - normals[face->vertex_indices[i] * 3 + 2];
254 }
255
256 for(i = 0; i < 3; i ++)
257 {
258 index = g3d_stream_read_int16_le(stream);
259 face->tex_vertex_data[i * 2 + 0] = texco[index * 2 + 0];
260 face->tex_vertex_data[i * 2 + 1] = texco[index * 2 + 1];
261 }
262 }
263
264
265 /* free skin names */
266 if(skinnames)
267 {
268 for(i = 0; i < numskins; i ++)
269 g_free(skinnames[i]);
270 g_free(skinnames);
271 }
272
273 if(texco)
274 g_free(texco);
275 if(normals)
276 g_free(normals);
277
278 return TRUE;
279}
280
281EAPI
282gchar *plugin_description(G3DContext *context)
283{
284 return g_strdup("ID Software's Quake II models.");
285}
286
287EAPI
288gchar **plugin_extensions(G3DContext *context)
289{
290 return g_strsplit("md2", ":", 0);
291}
292
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/imp_md2_normals.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/imp_md2_normals.h
new file mode 100644
index 0000000..e815d2f
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/imp_md2_normals.h
@@ -0,0 +1,192 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef __G3D_IMP_MD2_NORMALS_H__
24#define __G3D_IMP_MD2_NORMALS_H__
25
26#include <glib.h>
27
28static G3DFloat md2_normals[] = {
29 -0.525731f, 0.000000f, 0.850651f,
30 -0.442863f, 0.238856f, 0.864188f,
31 -0.295242f, 0.000000f, 0.955423f,
32 -0.309017f, 0.500000f, 0.809017f,
33 -0.162460f, 0.262866f, 0.951056f,
34 0.000000f, 0.000000f, 1.000000f,
35 0.000000f, 0.850651f, 0.525731f,
36 -0.147621f, 0.716567f, 0.681718f,
37 0.147621f, 0.716567f, 0.681718f,
38 0.000000f, 0.525731f, 0.850651f,
39 0.309017f, 0.500000f, 0.809017f,
40 0.525731f, 0.000000f, 0.850651f,
41 0.295242f, 0.000000f, 0.955423f,
42 0.442863f, 0.238856f, 0.864188f,
43 0.162460f, 0.262866f, 0.951056f,
44 -0.681718f, 0.147621f, 0.716567f,
45 -0.809017f, 0.309017f, 0.500000f,
46 -0.587785f, 0.425325f, 0.688191f,
47 -0.850651f, 0.525731f, 0.000000f,
48 -0.864188f, 0.442863f, 0.238856f,
49 -0.716567f, 0.681718f, 0.147621f,
50 -0.688191f, 0.587785f, 0.425325f,
51 -0.500000f, 0.809017f, 0.309017f,
52 -0.238856f, 0.864188f, 0.442863f,
53 -0.425325f, 0.688191f, 0.587785f,
54 -0.716567f, 0.681718f, -0.147621f,
55 -0.500000f, 0.809017f, -0.309017f,
56 -0.525731f, 0.850651f, 0.000000f,
57 0.000000f, 0.850651f, -0.525731f,
58 -0.238856f, 0.864188f, -0.442863f,
59 0.000000f, 0.955423f, -0.295242f,
60 -0.262866f, 0.951056f, -0.162460f,
61 0.000000f, 1.000000f, 0.000000f,
62 0.000000f, 0.955423f, 0.295242f,
63 -0.262866f, 0.951056f, 0.162460f,
64 0.238856f, 0.864188f, 0.442863f,
65 0.262866f, 0.951056f, 0.162460f,
66 0.500000f, 0.809017f, 0.309017f,
67 0.238856f, 0.864188f, -0.442863f,
68 0.262866f, 0.951056f, -0.162460f,
69 0.500000f, 0.809017f, -0.309017f,
70 0.850651f, 0.525731f, 0.000000f,
71 0.716567f, 0.681718f, 0.147621f,
72 0.716567f, 0.681718f, -0.147621f,
73 0.525731f, 0.850651f, 0.000000f,
74 0.425325f, 0.688191f, 0.587785f,
75 0.864188f, 0.442863f, 0.238856f,
76 0.688191f, 0.587785f, 0.425325f,
77 0.809017f, 0.309017f, 0.500000f,
78 0.681718f, 0.147621f, 0.716567f,
79 0.587785f, 0.425325f, 0.688191f,
80 0.955423f, 0.295242f, 0.000000f,
81 1.000000f, 0.000000f, 0.000000f,
82 0.951056f, 0.162460f, 0.262866f,
83 0.850651f, -0.525731f, 0.000000f,
84 0.955423f, -0.295242f, 0.000000f,
85 0.864188f, -0.442863f, 0.238856f,
86 0.951056f, -0.162460f, 0.262866f,
87 0.809017f, -0.309017f, 0.500000f,
88 0.681718f, -0.147621f, 0.716567f,
89 0.850651f, 0.000000f, 0.525731f,
90 0.864188f, 0.442863f, -0.238856f,
91 0.809017f, 0.309017f, -0.500000f,
92 0.951056f, 0.162460f, -0.262866f,
93 0.525731f, 0.000000f, -0.850651f,
94 0.681718f, 0.147621f, -0.716567f,
95 0.681718f, -0.147621f, -0.716567f,
96 0.850651f, 0.000000f, -0.525731f,
97 0.809017f, -0.309017f, -0.500000f,
98 0.864188f, -0.442863f, -0.238856f,
99 0.951056f, -0.162460f, -0.262866f,
100 0.147621f, 0.716567f, -0.681718f,
101 0.309017f, 0.500000f, -0.809017f,
102 0.425325f, 0.688191f, -0.587785f,
103 0.442863f, 0.238856f, -0.864188f,
104 0.587785f, 0.425325f, -0.688191f,
105 0.688191f, 0.587785f, -0.425325f,
106 -0.147621f, 0.716567f, -0.681718f,
107 -0.309017f, 0.500000f, -0.809017f,
108 0.000000f, 0.525731f, -0.850651f,
109 -0.525731f, 0.000000f, -0.850651f,
110 -0.442863f, 0.238856f, -0.864188f,
111 -0.295242f, 0.000000f, -0.955423f,
112 -0.162460f, 0.262866f, -0.951056f,
113 0.000000f, 0.000000f, -1.000000f,
114 0.295242f, 0.000000f, -0.955423f,
115 0.162460f, 0.262866f, -0.951056f,
116 -0.442863f, -0.238856f, -0.864188f,
117 -0.309017f, -0.500000f, -0.809017f,
118 -0.162460f, -0.262866f, -0.951056f,
119 0.000000f, -0.850651f, -0.525731f,
120 -0.147621f, -0.716567f, -0.681718f,
121 0.147621f, -0.716567f, -0.681718f,
122 0.000000f, -0.525731f, -0.850651f,
123 0.309017f, -0.500000f, -0.809017f,
124 0.442863f, -0.238856f, -0.864188f,
125 0.162460f, -0.262866f, -0.951056f,
126 0.238856f, -0.864188f, -0.442863f,
127 0.500000f, -0.809017f, -0.309017f,
128 0.425325f, -0.688191f, -0.587785f,
129 0.716567f, -0.681718f, -0.147621f,
130 0.688191f, -0.587785f, -0.425325f,
131 0.587785f, -0.425325f, -0.688191f,
132 0.000000f, -0.955423f, -0.295242f,
133 0.000000f, -1.000000f, 0.000000f,
134 0.262866f, -0.951056f, -0.162460f,
135 0.000000f, -0.850651f, 0.525731f,
136 0.000000f, -0.955423f, 0.295242f,
137 0.238856f, -0.864188f, 0.442863f,
138 0.262866f, -0.951056f, 0.162460f,
139 0.500000f, -0.809017f, 0.309017f,
140 0.716567f, -0.681718f, 0.147621f,
141 0.525731f, -0.850651f, 0.000000f,
142 -0.238856f, -0.864188f, -0.442863f,
143 -0.500000f, -0.809017f, -0.309017f,
144 -0.262866f, -0.951056f, -0.162460f,
145 -0.850651f, -0.525731f, 0.000000f,
146 -0.716567f, -0.681718f, -0.147621f,
147 -0.716567f, -0.681718f, 0.147621f,
148 -0.525731f, -0.850651f, 0.000000f,
149 -0.500000f, -0.809017f, 0.309017f,
150 -0.238856f, -0.864188f, 0.442863f,
151 -0.262866f, -0.951056f, 0.162460f,
152 -0.864188f, -0.442863f, 0.238856f,
153 -0.809017f, -0.309017f, 0.500000f,
154 -0.688191f, -0.587785f, 0.425325f,
155 -0.681718f, -0.147621f, 0.716567f,
156 -0.442863f, -0.238856f, 0.864188f,
157 -0.587785f, -0.425325f, 0.688191f,
158 -0.309017f, -0.500000f, 0.809017f,
159 -0.147621f, -0.716567f, 0.681718f,
160 -0.425325f, -0.688191f, 0.587785f,
161 -0.162460f, -0.262866f, 0.951056f,
162 0.442863f, -0.238856f, 0.864188f,
163 0.162460f, -0.262866f, 0.951056f,
164 0.309017f, -0.500000f, 0.809017f,
165 0.147621f, -0.716567f, 0.681718f,
166 0.000000f, -0.525731f, 0.850651f,
167 0.425325f, -0.688191f, 0.587785f,
168 0.587785f, -0.425325f, 0.688191f,
169 0.688191f, -0.587785f, 0.425325f,
170 -0.955423f, 0.295242f, 0.000000f,
171 -0.951056f, 0.162460f, 0.262866f,
172 -1.000000f, 0.000000f, 0.000000f,
173 -0.850651f, 0.000000f, 0.525731f,
174 -0.955423f, -0.295242f, 0.000000f,
175 -0.951056f, -0.162460f, 0.262866f,
176 -0.864188f, 0.442863f, -0.238856f,
177 -0.951056f, 0.162460f, -0.262866f,
178 -0.809017f, 0.309017f, -0.500000f,
179 -0.864188f, -0.442863f, -0.238856f,
180 -0.951056f, -0.162460f, -0.262866f,
181 -0.809017f, -0.309017f, -0.500000f,
182 -0.681718f, 0.147621f, -0.716567f,
183 -0.681718f, -0.147621f, -0.716567f,
184 -0.850651f, 0.000000f, -0.525731f,
185 -0.688191f, 0.587785f, -0.425325f,
186 -0.587785f, 0.425325f, -0.688191f,
187 -0.425325f, 0.688191f, -0.587785f,
188 -0.425325f, -0.688191f, -0.587785f,
189 -0.587785f, -0.425325f, -0.688191f,
190 -0.688191f, -0.587785f, -0.425325f };
191
192#endif /* __G3D_IMP_MD2_NORMALS_H__ */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/Makefile
new file mode 100644
index 0000000..83c9432
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/Makefile
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_md3/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_md3
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_md3_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_md3_la_OBJECTS = imp_md3.lo
59imp_md3_la_OBJECTS = $(am_imp_md3_la_OBJECTS)
60DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_md3_la_SOURCES)
73DIST_SOURCES = $(imp_md3_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
78AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
79AR = ar
80AS = as
81AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
82AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
83AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
84AWK = gawk
85CC = gcc
86CCDEPMODE = depmode=gcc3
87CFLAGS = -g -O2
88CPP = gcc -E
89CPPFLAGS =
90CXX = g++
91CXXCPP = g++ -E
92CXXDEPMODE = depmode=gcc3
93CXXFLAGS = -g -O2
94CYGPATH_W = echo
95DBG_CFLAGS = -O2
96DEBUG = 0
97DEFS = -DHAVE_CONFIG_H
98DEPDIR = .deps
99DLLTOOL = dlltool
100ECHO = echo
101ECHO_C =
102ECHO_N = -n
103ECHO_T =
104EGREP = /bin/grep -E
105EXEEXT =
106F77 =
107FFLAGS =
108GDKPIXBUF_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
109GDKPIXBUF_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
110GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
111GLIB_GENMARSHAL = glib-genmarshal
112GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
113GLIB_MKENUMS = glib-mkenums
114GOBJECT_QUERY = gobject-query
115GREP = /bin/grep
116GTKDOC_CHECK = /usr/bin/gtkdoc-check
117GTK_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
118GTK_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
119HTML_DIR = ${datadir}/gtk-doc/html
120INSTALL = /usr/bin/install -c
121INSTALL_DATA = ${INSTALL} -m 644
122INSTALL_PROGRAM = ${INSTALL}
123INSTALL_SCRIPT = ${INSTALL}
124INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
125LDFLAGS =
126LEX = flex
127LEXLIB = -lfl
128LEX_OUTPUT_ROOT = lex.yy
129LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
130LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
131LIBOBJS =
132LIBS = -lm
133LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
134LIBXML2_CFLAGS = -I/usr/include/libxml2
135LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
136LN_S = ln -s
137LTLIBOBJS =
138LTVERSION = 0:8:0
139MAGIC_LIBS = -lmagic
140MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
141MATH_LIBS = -lm
142MKDIR_P = /bin/mkdir -p
143OBJDUMP = objdump
144OBJEXT = o
145PACKAGE = libg3d
146PACKAGE_BUGREPORT =
147PACKAGE_NAME =
148PACKAGE_STRING =
149PACKAGE_TARNAME =
150PACKAGE_VERSION =
151PATH_SEPARATOR = :
152PKG_CONFIG = /usr/bin/pkg-config
153PLUGINS_LDFLAGS = -avoid-version -export-dynamic
154RANLIB = ranlib
155SET_MAKE =
156SHELL = /bin/bash
157STRIP = strip
158VERSION = 0.0.8
159XML2_CONFIG = /usr/bin/xml2-config
160XML_CPPFLAGS = -I/usr/include/libxml2
161XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
162Z_CFLAGS =
163Z_LIBS = -lz
164abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3
165abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3
166abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
167abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168ac_ct_CC = gcc
169ac_ct_CXX = g++
170ac_ct_F77 =
171am__include = include
172am__leading_dot = .
173am__quote =
174am__tar = ${AMTAR} chof - "$$tardir"
175am__untar = ${AMTAR} xf -
176bindir = ${exec_prefix}/bin
177build = x86_64-unknown-linux-gnu
178build_alias =
179build_cpu = x86_64
180build_os = linux-gnu
181build_vendor = unknown
182builddir = .
183datadir = ${datarootdir}
184datarootdir = ${prefix}/share
185docdir = ${datarootdir}/doc/${PACKAGE}
186dvidir = ${docdir}
187exec_prefix = ${prefix}
188host = x86_64-unknown-linux-gnu
189host_alias =
190host_cpu = x86_64
191host_os = linux-gnu
192host_vendor = unknown
193htmldir = ${docdir}
194includedir = ${prefix}/include
195infodir = ${datarootdir}/info
196install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
197libdir = ${exec_prefix}/lib
198libexecdir = ${exec_prefix}/libexec
199localedir = ${datarootdir}/locale
200localstatedir = ${prefix}/var
201mandir = ${datarootdir}/man
202mkdir_p = /bin/mkdir -p
203oldincludedir = /usr/include
204pdfdir = ${docdir}
205prefix = /usr/local
206program_transform_name = s,x,x,
207psdir = ${docdir}
208sbindir = ${exec_prefix}/sbin
209sharedstatedir = ${prefix}/com
210srcdir = .
211sysconfdir = ${prefix}/etc
212target_alias =
213top_builddir = ../../..
214top_srcdir = ../../..
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_md3.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 -O2 -DDEBUG=0 \
221 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 -avoid-version -export-dynamic
227
228imp_md3_la_SOURCES = imp_md3.c
229imp_md3_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_md3/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_md3/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_md3.la: $(imp_md3_la_OBJECTS) $(imp_md3_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_md3_la_OBJECTS) $(imp_md3_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299include ./$(DEPDIR)/imp_md3.Plo
300
301.c.o:
302 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304# source='$<' object='$@' libtool=no \
305# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
306# $(COMPILE) -c $<
307
308.c.obj:
309 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311# source='$<' object='$@' libtool=no \
312# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
313# $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318# source='$<' object='$@' libtool=yes \
319# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
320# $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/Makefile.am
new file mode 100644
index 0000000..395fb51
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/Makefile.am
@@ -0,0 +1,20 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_md3.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_md3_la_SOURCES = imp_md3.c
20imp_md3_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/Makefile.in
new file mode 100644
index 0000000..69c676c
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/Makefile.in
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_md3
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_md3_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_md3_la_OBJECTS = imp_md3.lo
59imp_md3_la_OBJECTS = $(am_imp_md3_la_OBJECTS)
60DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_md3_la_SOURCES)
73DIST_SOURCES = $(imp_md3_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = @ACLOCAL@
78AMTAR = @AMTAR@
79AR = @AR@
80AS = @AS@
81AUTOCONF = @AUTOCONF@
82AUTOHEADER = @AUTOHEADER@
83AUTOMAKE = @AUTOMAKE@
84AWK = @AWK@
85CC = @CC@
86CCDEPMODE = @CCDEPMODE@
87CFLAGS = @CFLAGS@
88CPP = @CPP@
89CPPFLAGS = @CPPFLAGS@
90CXX = @CXX@
91CXXCPP = @CXXCPP@
92CXXDEPMODE = @CXXDEPMODE@
93CXXFLAGS = @CXXFLAGS@
94CYGPATH_W = @CYGPATH_W@
95DBG_CFLAGS = @DBG_CFLAGS@
96DEBUG = @DEBUG@
97DEFS = @DEFS@
98DEPDIR = @DEPDIR@
99DLLTOOL = @DLLTOOL@
100ECHO = @ECHO@
101ECHO_C = @ECHO_C@
102ECHO_N = @ECHO_N@
103ECHO_T = @ECHO_T@
104EGREP = @EGREP@
105EXEEXT = @EXEEXT@
106F77 = @F77@
107FFLAGS = @FFLAGS@
108GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
109GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
110GLIB_CFLAGS = @GLIB_CFLAGS@
111GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
112GLIB_LIBS = @GLIB_LIBS@
113GLIB_MKENUMS = @GLIB_MKENUMS@
114GOBJECT_QUERY = @GOBJECT_QUERY@
115GREP = @GREP@
116GTKDOC_CHECK = @GTKDOC_CHECK@
117GTK_CFLAGS = @GTK_CFLAGS@
118GTK_LIBS = @GTK_LIBS@
119HTML_DIR = @HTML_DIR@
120INSTALL = @INSTALL@
121INSTALL_DATA = @INSTALL_DATA@
122INSTALL_PROGRAM = @INSTALL_PROGRAM@
123INSTALL_SCRIPT = @INSTALL_SCRIPT@
124INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125LDFLAGS = @LDFLAGS@
126LEX = @LEX@
127LEXLIB = @LEXLIB@
128LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
129LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
130LIBGSF_LIBS = @LIBGSF_LIBS@
131LIBOBJS = @LIBOBJS@
132LIBS = @LIBS@
133LIBTOOL = @LIBTOOL@ --quiet
134LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
135LIBXML2_LIBS = @LIBXML2_LIBS@
136LN_S = @LN_S@
137LTLIBOBJS = @LTLIBOBJS@
138LTVERSION = @LTVERSION@
139MAGIC_LIBS = @MAGIC_LIBS@
140MAKEINFO = @MAKEINFO@
141MATH_LIBS = @MATH_LIBS@
142MKDIR_P = @MKDIR_P@
143OBJDUMP = @OBJDUMP@
144OBJEXT = @OBJEXT@
145PACKAGE = @PACKAGE@
146PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147PACKAGE_NAME = @PACKAGE_NAME@
148PACKAGE_STRING = @PACKAGE_STRING@
149PACKAGE_TARNAME = @PACKAGE_TARNAME@
150PACKAGE_VERSION = @PACKAGE_VERSION@
151PATH_SEPARATOR = @PATH_SEPARATOR@
152PKG_CONFIG = @PKG_CONFIG@
153PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
154RANLIB = @RANLIB@
155SET_MAKE = @SET_MAKE@
156SHELL = @SHELL@
157STRIP = @STRIP@
158VERSION = @VERSION@
159XML2_CONFIG = @XML2_CONFIG@
160XML_CPPFLAGS = @XML_CPPFLAGS@
161XML_LIBS = @XML_LIBS@
162Z_CFLAGS = @Z_CFLAGS@
163Z_LIBS = @Z_LIBS@
164abs_builddir = @abs_builddir@
165abs_srcdir = @abs_srcdir@
166abs_top_builddir = @abs_top_builddir@
167abs_top_srcdir = @abs_top_srcdir@
168ac_ct_CC = @ac_ct_CC@
169ac_ct_CXX = @ac_ct_CXX@
170ac_ct_F77 = @ac_ct_F77@
171am__include = @am__include@
172am__leading_dot = @am__leading_dot@
173am__quote = @am__quote@
174am__tar = @am__tar@
175am__untar = @am__untar@
176bindir = @bindir@
177build = @build@
178build_alias = @build_alias@
179build_cpu = @build_cpu@
180build_os = @build_os@
181build_vendor = @build_vendor@
182builddir = @builddir@
183datadir = @datadir@
184datarootdir = @datarootdir@
185docdir = @docdir@
186dvidir = @dvidir@
187exec_prefix = @exec_prefix@
188host = @host@
189host_alias = @host_alias@
190host_cpu = @host_cpu@
191host_os = @host_os@
192host_vendor = @host_vendor@
193htmldir = @htmldir@
194includedir = @includedir@
195infodir = @infodir@
196install_sh = @install_sh@
197libdir = @libdir@
198libexecdir = @libexecdir@
199localedir = @localedir@
200localstatedir = @localstatedir@
201mandir = @mandir@
202mkdir_p = @mkdir_p@
203oldincludedir = @oldincludedir@
204pdfdir = @pdfdir@
205prefix = @prefix@
206program_transform_name = @program_transform_name@
207psdir = @psdir@
208sbindir = @sbindir@
209sharedstatedir = @sharedstatedir@
210srcdir = @srcdir@
211sysconfdir = @sysconfdir@
212target_alias = @target_alias@
213top_builddir = @top_builddir@
214top_srcdir = @top_srcdir@
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_md3.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
221 @GLIB_CFLAGS@
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 @PLUGINS_LDFLAGS@
227
228imp_md3_la_SOURCES = imp_md3.c
229imp_md3_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_md3/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_md3/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_md3.la: $(imp_md3_la_OBJECTS) $(imp_md3_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_md3_la_OBJECTS) $(imp_md3_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_md3.Plo@am__quote@
300
301.c.o:
302@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
305@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
306@am__fastdepCC_FALSE@ $(COMPILE) -c $<
307
308.c.obj:
309@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
313@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
320@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/imp_md3.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/imp_md3.c
new file mode 100644
index 0000000..360a568
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/imp_md3.c
@@ -0,0 +1,396 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24#include <math.h>
25
26#ifndef M_PI
27# define M_PI 3.14159265358979323846
28#endif
29
30#include <g3d/types.h>
31#include <g3d/object.h>
32#include <g3d/stream.h>
33#include <g3d/iff.h>
34#include <g3d/material.h>
35#include <g3d/texture.h>
36#include <g3d/vector.h>
37
38#define MD3_TYPE_MD3 0x01
39#define MD3_TYPE_MDC 0x02
40
41gboolean md3_load_skin(G3DContext *context, G3DModel *model,
42 const gchar *filename);
43gboolean md3_read_tag(G3DStream *stream, G3DContext *context, G3DModel *model);
44gboolean md3_read_mesh(G3DStream *stream, G3DContext *context, G3DModel *model);
45
46
47EAPI
48gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
49 G3DModel *model, gpointer user_data)
50{
51 guint32 magic, version, nboneframes, ntags, nmeshes, nskins;
52 guint32 off_bfs, off_tags, off_meshes, filesize, i, flags;
53
54 magic = g3d_stream_read_int32_be(stream);
55 if((magic != G3D_IFF_MKID('I', 'D', 'P', '3')) &&
56 (magic != G3D_IFF_MKID('I', 'D', 'P', 'C'))) {
57 g_warning("MD3: %s is not a valid md3 file", stream->uri);
58 return FALSE;
59 }
60
61 version = g3d_stream_read_int32_le(stream);
62 g3d_stream_skip(stream, 64);
63
64 flags = g3d_stream_read_int32_le(stream);
65 nboneframes = g3d_stream_read_int32_le(stream);
66 ntags = g3d_stream_read_int32_le(stream);
67 nmeshes = g3d_stream_read_int32_le(stream);
68 nskins = g3d_stream_read_int32_le(stream);
69 off_bfs = g3d_stream_read_int32_le(stream);
70 off_tags = g3d_stream_read_int32_le(stream);
71 off_meshes = g3d_stream_read_int32_le(stream);
72 filesize = g3d_stream_read_int32_le(stream);
73
74 /* try to load skin */
75 md3_load_skin(context, model, stream->uri);
76
77 g_debug("MD3: version: %u, file size: %u bytes", version, filesize);
78 g_debug("MD3: tags @ 0x%08x, meshes @ 0x%08x", off_tags, off_meshes);
79
80 g3d_stream_seek(stream, off_tags, G_SEEK_SET);
81 if(magic == G3D_IFF_MKID('I', 'D', 'P', '3'))
82 for(i = 0; i < nboneframes * ntags; i ++)
83 md3_read_tag(stream, context, model);
84
85 /* read meshes */
86 g3d_stream_seek(stream, off_meshes, G_SEEK_SET);
87 for(i = 0; i < nmeshes; i ++)
88 md3_read_mesh(stream, context, model);
89
90 return TRUE;
91}
92
93EAPI
94gchar *plugin_description(G3DContext *context)
95{
96 return g_strdup("Quake 3 models.");
97}
98
99EAPI
100gchar **plugin_extensions(G3DContext *context)
101{
102 return g_strsplit("md3:mdc", ":", 0);
103}
104
105/*
106 * MD3 specific
107 */
108
109gboolean md3_load_skin(G3DContext *context, G3DModel *model,
110 const gchar *filename)
111{
112 gchar *basename, *skinname, **parts;
113 gchar line[256];
114 G3DStream *stream;
115 G3DMaterial *material;
116
117 basename = g_path_get_basename(filename);
118 skinname = g_strdup_printf("%.*s_default.skin",
119 ((int) strlen(basename)) - 4, basename);
120
121 g_debug("MD3: trying to open skin file %s", skinname);
122
123 stream = g3d_stream_open_file(skinname, "r");
124
125 g_free(basename);
126 g_free(skinname);
127
128 /* no skin */
129 if(stream == NULL)
130 return FALSE;
131
132 while(g3d_stream_read_line(stream, line, 255) != NULL) {
133 parts = g_strsplit(line, ",", 2);
134 if(parts[0] && parts[1]) {
135 g_strchomp(parts[1]);
136 if(strlen(parts[1]) > 0)
137 {
138 g_debug("MD3: skin texture for %s: %s",
139 parts[0], parts[1]);
140
141 material = g3d_material_new();
142 material->name = g_strdup(parts[0]);
143 material->tex_image = g3d_texture_load_cached(context, model,
144 parts[1]);
145
146 model->materials = g_slist_append(model->materials,
147 material);
148 }
149 }
150 g_strfreev(parts);
151 }
152
153 g3d_stream_close(stream);
154
155 return TRUE;
156}
157
158gboolean md3_read_tag(G3DStream *stream, G3DContext *context, G3DModel *model)
159{
160 gchar name[65];
161
162 g3d_stream_read(stream, name, 64);
163 name[64] = '\0';
164
165 g_debug("MD3: tag: %s", name);
166
167 /* position */
168 g3d_stream_read_float_le(stream);
169 g3d_stream_read_float_le(stream);
170 g3d_stream_read_float_le(stream);
171
172 /* rotation */
173 g3d_stream_read_float_le(stream);
174 g3d_stream_read_float_le(stream);
175 g3d_stream_read_float_le(stream);
176
177 g3d_stream_read_float_le(stream);
178 g3d_stream_read_float_le(stream);
179 g3d_stream_read_float_le(stream);
180
181 g3d_stream_read_float_le(stream);
182 g3d_stream_read_float_le(stream);
183 g3d_stream_read_float_le(stream);
184
185 return TRUE;
186}
187
188gboolean md3_read_mesh(G3DStream *stream, G3DContext *context, G3DModel *model)
189{
190 G3DObject *object;
191 G3DImage *image = NULL;
192 G3DMaterial *material, *mat;
193 G3DFace *face;
194 GSList *mitem;
195 guint32 magic, i, j;
196 guint8 type = 0, r, s;
197 G3DFloat rho, sigma, *normals;
198 gchar name[64], *strp;
199 guint32 nmeshframe, nskin, nvertex, ntris, mlength, flags;
200 goffset off_tris, off_texvec, off_vertex, off_start, off_skins;
201
202 off_start = g3d_stream_tell(stream);
203
204 magic = g3d_stream_read_int32_be(stream);
205
206 if(magic == G3D_IFF_MKID('I', 'D', 'P', '3'))
207 type = MD3_TYPE_MD3;
208 else /* if(magic == 0x07000000)*/
209 type = MD3_TYPE_MDC;
210#if 0
211 else
212 {
213 g_warning("MD3: mesh magic unknown (%02x%02x%02x%02x)\n",
214 (magic >> 24) & 0xFF,
215 (magic >> 16) & 0xFF,
216 (magic >> 8) & 0xFF,
217 magic & 0xFF);
218 return FALSE;
219 }
220#endif
221
222 object = g_new0(G3DObject, 1);
223
224 /* read name */
225 g3d_stream_read(stream, name, 64);
226 object->name = g_strndup(name, 64);
227
228 flags = g3d_stream_read_int32_le(stream);
229
230 if(type == MD3_TYPE_MD3) {
231 nmeshframe = g3d_stream_read_int32_le(stream);
232 nskin = g3d_stream_read_int32_le(stream);
233 } else if(type == MD3_TYPE_MDC) {
234 g3d_stream_read_int32_le(stream); /* ncompframes */
235 g3d_stream_read_int32_le(stream); /* nbaseframes */
236 g3d_stream_read_int32_le(stream); /* nshaders */
237 }
238
239 nvertex = g3d_stream_read_int32_le(stream);
240 ntris = g3d_stream_read_int32_le(stream);
241
242 off_tris = g3d_stream_read_int32_le(stream);
243 off_skins = g3d_stream_read_int32_le(stream);
244
245 off_texvec = g3d_stream_read_int32_le(stream);
246 off_vertex = g3d_stream_read_int32_le(stream);
247
248 if(type == MD3_TYPE_MDC) {
249 g3d_stream_read_int32_le(stream); /* off_compvert */
250 g3d_stream_read_int32_le(stream); /* off_fbasef */
251 g3d_stream_read_int32_le(stream); /* off_fcompf */
252 }
253
254 mlength = g3d_stream_read_int32_le(stream);
255
256 if((nvertex == 0) || (ntris == 0)) {
257 g_warning("MD3: %u vertices, %u triangles", nvertex, ntris);
258 g3d_stream_seek(stream, off_start + mlength, G_SEEK_SET);
259 return FALSE;
260 }
261
262 /* default material */
263 material = g3d_material_new();
264 material->name = g_strdup("default material");
265 object->materials = g_slist_append(object->materials, material);
266
267 /* skins */
268 g3d_stream_seek(stream, off_start + off_skins, G_SEEK_SET);
269 g3d_stream_read(stream, name, 64);
270 g_debug("MD3: skin name: %s", name);
271
272 /* read texture image */
273 if(strlen(name) > 0) {
274 image = g3d_texture_load_cached(context, model, name);
275 if(image == NULL) {
276 /* try jpeg */
277 strp = strrchr(name, '.');
278 if(strp) {
279 strcpy(strp, ".jpg");
280 image = g3d_texture_load_cached(context, model, name);
281 }
282 }
283 }
284
285 if(image == NULL) {
286 mitem = model->materials;
287 while(mitem) {
288 mat = (G3DMaterial *)mitem->data;
289 if(strcmp(mat->name, object->name) == 0) {
290 image = mat->tex_image;
291 break;
292 }
293 mitem = mitem->next;
294 }
295 }
296
297 /* read vertex data */
298 g3d_stream_seek(stream, off_start + off_vertex, G_SEEK_SET);
299 object->vertex_count = nvertex;
300 object->vertex_data = g_new0(G3DFloat, nvertex * 3);
301 normals = g_new0(G3DFloat, nvertex * 3);
302 for(i = 0; i < nvertex; i ++) {
303 gint16 d;
304
305 d = g3d_stream_read_int16_le(stream);
306 object->vertex_data[i * 3 + 0] = d;
307 d = g3d_stream_read_int16_le(stream);
308 object->vertex_data[i * 3 + 1] = d;
309 d = g3d_stream_read_int16_le(stream);
310 object->vertex_data[i * 3 + 2] = d;
311
312 /* compressed normal */
313 /* FIXME: the normals don't look right... */
314 r = g3d_stream_read_int8(stream); /* rho */
315 s = g3d_stream_read_int8(stream); /* sigma */
316 rho = r * 2 * M_PI / 256.0;
317 sigma = s * 2 * M_PI / 256.0;
318
319 normals[i * 3 + 0] = - cos(sigma) * sin(rho);
320 normals[i * 3 + 1] = - cos(sigma) * sin(rho);
321 normals[i * 3 + 2] = - cos(rho);
322
323 g3d_vector_unify(
324 &(normals[i * 3 + 0]),
325 &(normals[i * 3 + 1]),
326 &(normals[i * 3 + 2]));
327 }
328
329 /* read texture vertex data */
330 g3d_stream_seek(stream, off_start + off_texvec, G_SEEK_SET);
331 object->tex_vertex_data = g_new0(G3DFloat, nvertex * 2);
332 for(i = 0; i < nvertex; i ++) {
333 object->tex_vertex_data[i * 2 + 0] = g3d_stream_read_float_le(stream);
334 object->tex_vertex_data[i * 2 + 1] = g3d_stream_read_float_le(stream);
335 }
336
337 /* read triangles */
338 g3d_stream_seek(stream, off_start + off_tris, G_SEEK_SET);
339 for(i = 0; i < ntris; i ++)
340 {
341 face = g_new0(G3DFace, 1);
342 face->vertex_count = 3;
343 face->vertex_indices = g_new0(guint32, 3);
344 face->material = material;
345
346 face->flags |= G3D_FLAG_FAC_NORMALS;
347 face->normals = g_new0(G3DFloat, 3 * 3);
348
349 face->tex_image = image;
350 if(face->tex_image)
351 {
352 face->tex_vertex_data = g_new0(G3DFloat, 3 * 2);
353 face->flags |= G3D_FLAG_FAC_TEXMAP;
354 }
355
356 for(j = 0; j < 3; j ++)
357 {
358 face->vertex_indices[j] = g3d_stream_read_int32_le(stream);
359
360 /* copy normals */
361 face->normals[j * 3 + 0] =
362 normals[face->vertex_indices[j] * 3 + 0];
363 face->normals[j * 3 + 1] =
364 normals[face->vertex_indices[j] * 3 + 1];
365 face->normals[j * 3 + 2] =
366 normals[face->vertex_indices[j] * 3 + 2];
367
368 /* texture stuff */
369 if(face->tex_image)
370 {
371 face->tex_vertex_data[j * 2 + 0] =
372 object->tex_vertex_data[face->vertex_indices[j] * 2 + 0];
373 face->tex_vertex_data[j * 2 + 1] =
374 object->tex_vertex_data[face->vertex_indices[j] * 2 + 1];
375 }
376 }
377
378 object->faces = g_slist_append(object->faces, face);
379 }
380
381 /* free unused data */
382 if(object->tex_vertex_data)
383 {
384 g_free(object->tex_vertex_data);
385 object->tex_vertex_data = NULL;
386 }
387 if(normals)
388 g_free(normals);
389
390 model->objects = g_slist_append(model->objects, object);
391
392 g3d_stream_seek(stream, off_start + mlength, G_SEEK_SET);
393
394 return TRUE;
395}
396
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/Makefile
new file mode 100644
index 0000000..736615a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/Makefile
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_nff/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_nff
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_nff_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_nff_la_OBJECTS = imp_nff.lo
59imp_nff_la_OBJECTS = $(am_imp_nff_la_OBJECTS)
60DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_nff_la_SOURCES)
73DIST_SOURCES = $(imp_nff_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
78AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
79AR = ar
80AS = as
81AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
82AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
83AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
84AWK = gawk
85CC = gcc
86CCDEPMODE = depmode=gcc3
87CFLAGS = -g -O2
88CPP = gcc -E
89CPPFLAGS =
90CXX = g++
91CXXCPP = g++ -E
92CXXDEPMODE = depmode=gcc3
93CXXFLAGS = -g -O2
94CYGPATH_W = echo
95DBG_CFLAGS = -O2
96DEBUG = 0
97DEFS = -DHAVE_CONFIG_H
98DEPDIR = .deps
99DLLTOOL = dlltool
100ECHO = echo
101ECHO_C =
102ECHO_N = -n
103ECHO_T =
104EGREP = /bin/grep -E
105EXEEXT =
106F77 =
107FFLAGS =
108GDKPIXBUF_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
109GDKPIXBUF_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
110GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
111GLIB_GENMARSHAL = glib-genmarshal
112GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
113GLIB_MKENUMS = glib-mkenums
114GOBJECT_QUERY = gobject-query
115GREP = /bin/grep
116GTKDOC_CHECK = /usr/bin/gtkdoc-check
117GTK_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
118GTK_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
119HTML_DIR = ${datadir}/gtk-doc/html
120INSTALL = /usr/bin/install -c
121INSTALL_DATA = ${INSTALL} -m 644
122INSTALL_PROGRAM = ${INSTALL}
123INSTALL_SCRIPT = ${INSTALL}
124INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
125LDFLAGS =
126LEX = flex
127LEXLIB = -lfl
128LEX_OUTPUT_ROOT = lex.yy
129LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
130LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
131LIBOBJS =
132LIBS = -lm
133LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
134LIBXML2_CFLAGS = -I/usr/include/libxml2
135LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
136LN_S = ln -s
137LTLIBOBJS =
138LTVERSION = 0:8:0
139MAGIC_LIBS = -lmagic
140MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
141MATH_LIBS = -lm
142MKDIR_P = /bin/mkdir -p
143OBJDUMP = objdump
144OBJEXT = o
145PACKAGE = libg3d
146PACKAGE_BUGREPORT =
147PACKAGE_NAME =
148PACKAGE_STRING =
149PACKAGE_TARNAME =
150PACKAGE_VERSION =
151PATH_SEPARATOR = :
152PKG_CONFIG = /usr/bin/pkg-config
153PLUGINS_LDFLAGS = -avoid-version -export-dynamic
154RANLIB = ranlib
155SET_MAKE =
156SHELL = /bin/bash
157STRIP = strip
158VERSION = 0.0.8
159XML2_CONFIG = /usr/bin/xml2-config
160XML_CPPFLAGS = -I/usr/include/libxml2
161XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
162Z_CFLAGS =
163Z_LIBS = -lz
164abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff
165abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff
166abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
167abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168ac_ct_CC = gcc
169ac_ct_CXX = g++
170ac_ct_F77 =
171am__include = include
172am__leading_dot = .
173am__quote =
174am__tar = ${AMTAR} chof - "$$tardir"
175am__untar = ${AMTAR} xf -
176bindir = ${exec_prefix}/bin
177build = x86_64-unknown-linux-gnu
178build_alias =
179build_cpu = x86_64
180build_os = linux-gnu
181build_vendor = unknown
182builddir = .
183datadir = ${datarootdir}
184datarootdir = ${prefix}/share
185docdir = ${datarootdir}/doc/${PACKAGE}
186dvidir = ${docdir}
187exec_prefix = ${prefix}
188host = x86_64-unknown-linux-gnu
189host_alias =
190host_cpu = x86_64
191host_os = linux-gnu
192host_vendor = unknown
193htmldir = ${docdir}
194includedir = ${prefix}/include
195infodir = ${datarootdir}/info
196install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
197libdir = ${exec_prefix}/lib
198libexecdir = ${exec_prefix}/libexec
199localedir = ${datarootdir}/locale
200localstatedir = ${prefix}/var
201mandir = ${datarootdir}/man
202mkdir_p = /bin/mkdir -p
203oldincludedir = /usr/include
204pdfdir = ${docdir}
205prefix = /usr/local
206program_transform_name = s,x,x,
207psdir = ${docdir}
208sbindir = ${exec_prefix}/sbin
209sharedstatedir = ${prefix}/com
210srcdir = .
211sysconfdir = ${prefix}/etc
212target_alias =
213top_builddir = ../../..
214top_srcdir = ../../..
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_nff.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 -O2 -DDEBUG=0 \
221 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 -avoid-version -export-dynamic
227
228imp_nff_la_SOURCES = imp_nff.c
229imp_nff_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_nff/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_nff/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_nff.la: $(imp_nff_la_OBJECTS) $(imp_nff_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_nff_la_OBJECTS) $(imp_nff_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299include ./$(DEPDIR)/imp_nff.Plo
300
301.c.o:
302 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304# source='$<' object='$@' libtool=no \
305# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
306# $(COMPILE) -c $<
307
308.c.obj:
309 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311# source='$<' object='$@' libtool=no \
312# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
313# $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318# source='$<' object='$@' libtool=yes \
319# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
320# $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/Makefile.am
new file mode 100644
index 0000000..828eed3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/Makefile.am
@@ -0,0 +1,20 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_nff.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_nff_la_SOURCES = imp_nff.c
20imp_nff_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/Makefile.in
new file mode 100644
index 0000000..a428579
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/Makefile.in
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_nff
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_nff_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_nff_la_OBJECTS = imp_nff.lo
59imp_nff_la_OBJECTS = $(am_imp_nff_la_OBJECTS)
60DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_nff_la_SOURCES)
73DIST_SOURCES = $(imp_nff_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = @ACLOCAL@
78AMTAR = @AMTAR@
79AR = @AR@
80AS = @AS@
81AUTOCONF = @AUTOCONF@
82AUTOHEADER = @AUTOHEADER@
83AUTOMAKE = @AUTOMAKE@
84AWK = @AWK@
85CC = @CC@
86CCDEPMODE = @CCDEPMODE@
87CFLAGS = @CFLAGS@
88CPP = @CPP@
89CPPFLAGS = @CPPFLAGS@
90CXX = @CXX@
91CXXCPP = @CXXCPP@
92CXXDEPMODE = @CXXDEPMODE@
93CXXFLAGS = @CXXFLAGS@
94CYGPATH_W = @CYGPATH_W@
95DBG_CFLAGS = @DBG_CFLAGS@
96DEBUG = @DEBUG@
97DEFS = @DEFS@
98DEPDIR = @DEPDIR@
99DLLTOOL = @DLLTOOL@
100ECHO = @ECHO@
101ECHO_C = @ECHO_C@
102ECHO_N = @ECHO_N@
103ECHO_T = @ECHO_T@
104EGREP = @EGREP@
105EXEEXT = @EXEEXT@
106F77 = @F77@
107FFLAGS = @FFLAGS@
108GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
109GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
110GLIB_CFLAGS = @GLIB_CFLAGS@
111GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
112GLIB_LIBS = @GLIB_LIBS@
113GLIB_MKENUMS = @GLIB_MKENUMS@
114GOBJECT_QUERY = @GOBJECT_QUERY@
115GREP = @GREP@
116GTKDOC_CHECK = @GTKDOC_CHECK@
117GTK_CFLAGS = @GTK_CFLAGS@
118GTK_LIBS = @GTK_LIBS@
119HTML_DIR = @HTML_DIR@
120INSTALL = @INSTALL@
121INSTALL_DATA = @INSTALL_DATA@
122INSTALL_PROGRAM = @INSTALL_PROGRAM@
123INSTALL_SCRIPT = @INSTALL_SCRIPT@
124INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125LDFLAGS = @LDFLAGS@
126LEX = @LEX@
127LEXLIB = @LEXLIB@
128LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
129LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
130LIBGSF_LIBS = @LIBGSF_LIBS@
131LIBOBJS = @LIBOBJS@
132LIBS = @LIBS@
133LIBTOOL = @LIBTOOL@ --quiet
134LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
135LIBXML2_LIBS = @LIBXML2_LIBS@
136LN_S = @LN_S@
137LTLIBOBJS = @LTLIBOBJS@
138LTVERSION = @LTVERSION@
139MAGIC_LIBS = @MAGIC_LIBS@
140MAKEINFO = @MAKEINFO@
141MATH_LIBS = @MATH_LIBS@
142MKDIR_P = @MKDIR_P@
143OBJDUMP = @OBJDUMP@
144OBJEXT = @OBJEXT@
145PACKAGE = @PACKAGE@
146PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147PACKAGE_NAME = @PACKAGE_NAME@
148PACKAGE_STRING = @PACKAGE_STRING@
149PACKAGE_TARNAME = @PACKAGE_TARNAME@
150PACKAGE_VERSION = @PACKAGE_VERSION@
151PATH_SEPARATOR = @PATH_SEPARATOR@
152PKG_CONFIG = @PKG_CONFIG@
153PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
154RANLIB = @RANLIB@
155SET_MAKE = @SET_MAKE@
156SHELL = @SHELL@
157STRIP = @STRIP@
158VERSION = @VERSION@
159XML2_CONFIG = @XML2_CONFIG@
160XML_CPPFLAGS = @XML_CPPFLAGS@
161XML_LIBS = @XML_LIBS@
162Z_CFLAGS = @Z_CFLAGS@
163Z_LIBS = @Z_LIBS@
164abs_builddir = @abs_builddir@
165abs_srcdir = @abs_srcdir@
166abs_top_builddir = @abs_top_builddir@
167abs_top_srcdir = @abs_top_srcdir@
168ac_ct_CC = @ac_ct_CC@
169ac_ct_CXX = @ac_ct_CXX@
170ac_ct_F77 = @ac_ct_F77@
171am__include = @am__include@
172am__leading_dot = @am__leading_dot@
173am__quote = @am__quote@
174am__tar = @am__tar@
175am__untar = @am__untar@
176bindir = @bindir@
177build = @build@
178build_alias = @build_alias@
179build_cpu = @build_cpu@
180build_os = @build_os@
181build_vendor = @build_vendor@
182builddir = @builddir@
183datadir = @datadir@
184datarootdir = @datarootdir@
185docdir = @docdir@
186dvidir = @dvidir@
187exec_prefix = @exec_prefix@
188host = @host@
189host_alias = @host_alias@
190host_cpu = @host_cpu@
191host_os = @host_os@
192host_vendor = @host_vendor@
193htmldir = @htmldir@
194includedir = @includedir@
195infodir = @infodir@
196install_sh = @install_sh@
197libdir = @libdir@
198libexecdir = @libexecdir@
199localedir = @localedir@
200localstatedir = @localstatedir@
201mandir = @mandir@
202mkdir_p = @mkdir_p@
203oldincludedir = @oldincludedir@
204pdfdir = @pdfdir@
205prefix = @prefix@
206program_transform_name = @program_transform_name@
207psdir = @psdir@
208sbindir = @sbindir@
209sharedstatedir = @sharedstatedir@
210srcdir = @srcdir@
211sysconfdir = @sysconfdir@
212target_alias = @target_alias@
213top_builddir = @top_builddir@
214top_srcdir = @top_srcdir@
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_nff.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
221 @GLIB_CFLAGS@
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 @PLUGINS_LDFLAGS@
227
228imp_nff_la_SOURCES = imp_nff.c
229imp_nff_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_nff/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_nff/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_nff.la: $(imp_nff_la_OBJECTS) $(imp_nff_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_nff_la_OBJECTS) $(imp_nff_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_nff.Plo@am__quote@
300
301.c.o:
302@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
305@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
306@am__fastdepCC_FALSE@ $(COMPILE) -c $<
307
308.c.obj:
309@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
313@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
320@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/imp_nff.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/imp_nff.c
new file mode 100644
index 0000000..bb9009b
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/imp_nff.c
@@ -0,0 +1,169 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <string.h>
25#include <math.h>
26#include <locale.h>
27
28#include <g3d/g3d.h>
29#include <g3d/stream.h>
30
31/*****************************************************************************/
32/* plugin interface */
33/*****************************************************************************/
34
35#define NFF_SEC_NOSECTION 0
36#define NFF_SEC_VIEWPOINT 1
37#define NFF_SEC_BGCOLOR 2
38#define NFF_SEC_POSLIGHT 3
39#define NFF_SEC_MATERIAL 4
40#define NFF_SEC_CONECYL 5
41#define NFF_SEC_SPHERE 6
42#define NFF_SEC_POLYGON 7
43#define NFF_SEC_POLPATCH 8
44
45static gboolean nff_readline(G3DStream *stream, gchar *line, guint32 maxlen);
46
47EAPI
48gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
49 G3DModel *model, gpointer plugin_data)
50{
51 gchar line[1024];
52 G3DObject *object;
53 G3DMaterial *material = NULL;
54 G3DFace *face;
55 guint32 section = NFF_SEC_NOSECTION;
56 G3DFloat r,g,b, Kd, Ks, Sh, T, refr;
57 G3DFloat v1,v2,v3, n1,n2,n3;
58 gint32 i, num, index;
59 gchar name[128];
60
61 setlocale(LC_NUMERIC, "C");
62
63 g_return_val_if_fail(model != NULL, FALSE);
64
65 object = g_new0(G3DObject, 1);
66 object->name = g_strdup("NFF Object");
67 model->objects = g_slist_append(model->objects, object);
68
69 while(nff_readline(stream, line, 1024)) {
70 if(strcmp(line, "v") == 0) {
71 section = NFF_SEC_VIEWPOINT;
72 } else if(sscanf(line, "b " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &r, &g, &b) == 3) {
73 g3d_context_set_bgcolor(context, r, g, b, 1.0);
74 } else if(sscanf(line, "f " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT,
75 &r, &g, &b, &Kd, &Ks, &Sh, &T, &refr) == 8) {
76 material = g3d_material_new();
77 material->r = r;
78 material->g = g;
79 material->b = b;
80 material->a = 1.0 - T;
81 material->shininess = Sh;
82 material->specular[0] = r * Ks;
83 material->specular[1] = g * Ks;
84 material->specular[2] = b * Ks;
85 if(T > 0) material->flags |= G3D_FLAG_MAT_TWOSIDE;
86 object->materials = g_slist_append(object->materials, material);
87 g_snprintf(name, 128, "material #%d",
88 g_slist_length(object->materials));
89 material->name = g_strdup(name);
90 } else if((sscanf(line, "pp %d", &num) == 1) ||
91 (sscanf(line, "p %d", &num) == 1)) {
92 face = g_new0(G3DFace, 1);
93
94 if(strncmp(line, "pp", 2) == 0) section = NFF_SEC_POLPATCH;
95 else section = NFF_SEC_POLYGON;
96
97 object->vertex_count += num;
98 object->vertex_data = g_realloc(object->vertex_data,
99 object->vertex_count * 3 * sizeof(G3DFloat));
100
101 face->material = material;
102 face->vertex_count = num;
103 face->vertex_indices = g_malloc0(num * sizeof(guint32));
104 object->faces = g_slist_prepend(object->faces, face);
105 if(section == NFF_SEC_POLPATCH) {
106 face->flags |= G3D_FLAG_FAC_NORMALS;
107 face->normals = g_malloc0(num * 3 * sizeof(G3DFloat));
108 }
109 /* most faces are in this direction, but there are wrong models */
110 for(i = num - 1; i >= 0; i --) {
111 if(!nff_readline(stream, line, 1024)) {
112 g_warning("reading vertices failed");
113 return FALSE;
114 }
115 if((section == NFF_SEC_POLPATCH) &&
116 (sscanf(line, G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT,
117 &v1,&v2,&v3,
118 &n1,&n2,&n3) == 6)) {
119 index = object->vertex_count - num + i;
120 object->vertex_data[index*3+0] = v1;
121 object->vertex_data[index*3+1] = v2;
122 object->vertex_data[index*3+2] = v3;
123 face->vertex_indices[i] = index;
124 face->normals[i*3+0] = -n1;
125 face->normals[i*3+1] = -n2;
126 face->normals[i*3+2] = -n3;
127 } else if(sscanf(line, G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &v1,&v2,&v3) == 3) {
128 index = object->vertex_count - num + i;
129 object->vertex_data[index*3+0] = v1;
130 object->vertex_data[index*3+1] = v2;
131 object->vertex_data[index*3+2] = v3;
132 face->vertex_indices[i] = index;
133 } else
134 g_warning("error in line '%s'", line);
135 }
136 }
137 }
138 return TRUE;
139}
140
141EAPI
142gchar *plugin_description(G3DContext *context)
143{
144 return g_strdup("Neutral File Format models.");
145}
146
147EAPI
148gchar **plugin_extensions(G3DContext *context)
149{
150 return g_strsplit("nff", ":", 0);
151}
152
153/*****************************************************************************/
154/* private functions */
155/*****************************************************************************/
156
157static gboolean nff_readline(G3DStream *stream, gchar *line, guint32 maxlen)
158{
159 if(g3d_stream_read_line(stream, line, maxlen) == NULL)
160 return FALSE;
161 g_strstrip(line);
162
163 if((strlen(line) == 0) || (line[0] == '#')) {
164 /* get next line if empty or comment */
165 return nff_readline(stream, line, maxlen);
166 }
167 return TRUE;
168}
169
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/Makefile
new file mode 100644
index 0000000..80f516c
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/Makefile
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_obj/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_obj
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_obj_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_obj_la_OBJECTS = imp_obj.lo
59imp_obj_la_OBJECTS = $(am_imp_obj_la_OBJECTS)
60DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_obj_la_SOURCES)
73DIST_SOURCES = $(imp_obj_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
78AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
79AR = ar
80AS = as
81AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
82AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
83AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
84AWK = gawk
85CC = gcc
86CCDEPMODE = depmode=gcc3
87CFLAGS = -g -O2
88CPP = gcc -E
89CPPFLAGS =
90CXX = g++
91CXXCPP = g++ -E
92CXXDEPMODE = depmode=gcc3
93CXXFLAGS = -g -O2
94CYGPATH_W = echo
95DBG_CFLAGS = -O2
96DEBUG = 0
97DEFS = -DHAVE_CONFIG_H
98DEPDIR = .deps
99DLLTOOL = dlltool
100ECHO = echo
101ECHO_C =
102ECHO_N = -n
103ECHO_T =
104EGREP = /bin/grep -E
105EXEEXT =
106F77 =
107FFLAGS =
108GDKPIXBUF_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
109GDKPIXBUF_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
110GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
111GLIB_GENMARSHAL = glib-genmarshal
112GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
113GLIB_MKENUMS = glib-mkenums
114GOBJECT_QUERY = gobject-query
115GREP = /bin/grep
116GTKDOC_CHECK = /usr/bin/gtkdoc-check
117GTK_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
118GTK_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
119HTML_DIR = ${datadir}/gtk-doc/html
120INSTALL = /usr/bin/install -c
121INSTALL_DATA = ${INSTALL} -m 644
122INSTALL_PROGRAM = ${INSTALL}
123INSTALL_SCRIPT = ${INSTALL}
124INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
125LDFLAGS =
126LEX = flex
127LEXLIB = -lfl
128LEX_OUTPUT_ROOT = lex.yy
129LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
130LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
131LIBOBJS =
132LIBS = -lm
133LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
134LIBXML2_CFLAGS = -I/usr/include/libxml2
135LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
136LN_S = ln -s
137LTLIBOBJS =
138LTVERSION = 0:8:0
139MAGIC_LIBS = -lmagic
140MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
141MATH_LIBS = -lm
142MKDIR_P = /bin/mkdir -p
143OBJDUMP = objdump
144OBJEXT = o
145PACKAGE = libg3d
146PACKAGE_BUGREPORT =
147PACKAGE_NAME =
148PACKAGE_STRING =
149PACKAGE_TARNAME =
150PACKAGE_VERSION =
151PATH_SEPARATOR = :
152PKG_CONFIG = /usr/bin/pkg-config
153PLUGINS_LDFLAGS = -avoid-version -export-dynamic
154RANLIB = ranlib
155SET_MAKE =
156SHELL = /bin/bash
157STRIP = strip
158VERSION = 0.0.8
159XML2_CONFIG = /usr/bin/xml2-config
160XML_CPPFLAGS = -I/usr/include/libxml2
161XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
162Z_CFLAGS =
163Z_LIBS = -lz
164abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj
165abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj
166abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
167abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168ac_ct_CC = gcc
169ac_ct_CXX = g++
170ac_ct_F77 =
171am__include = include
172am__leading_dot = .
173am__quote =
174am__tar = ${AMTAR} chof - "$$tardir"
175am__untar = ${AMTAR} xf -
176bindir = ${exec_prefix}/bin
177build = x86_64-unknown-linux-gnu
178build_alias =
179build_cpu = x86_64
180build_os = linux-gnu
181build_vendor = unknown
182builddir = .
183datadir = ${datarootdir}
184datarootdir = ${prefix}/share
185docdir = ${datarootdir}/doc/${PACKAGE}
186dvidir = ${docdir}
187exec_prefix = ${prefix}
188host = x86_64-unknown-linux-gnu
189host_alias =
190host_cpu = x86_64
191host_os = linux-gnu
192host_vendor = unknown
193htmldir = ${docdir}
194includedir = ${prefix}/include
195infodir = ${datarootdir}/info
196install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
197libdir = ${exec_prefix}/lib
198libexecdir = ${exec_prefix}/libexec
199localedir = ${datarootdir}/locale
200localstatedir = ${prefix}/var
201mandir = ${datarootdir}/man
202mkdir_p = /bin/mkdir -p
203oldincludedir = /usr/include
204pdfdir = ${docdir}
205prefix = /usr/local
206program_transform_name = s,x,x,
207psdir = ${docdir}
208sbindir = ${exec_prefix}/sbin
209sharedstatedir = ${prefix}/com
210srcdir = .
211sysconfdir = ${prefix}/etc
212target_alias =
213top_builddir = ../../..
214top_srcdir = ../../..
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_obj.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 -O2 -DDEBUG=0 \
221 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 -avoid-version -export-dynamic
227
228imp_obj_la_SOURCES = imp_obj.c
229imp_obj_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_obj/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_obj/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_obj.la: $(imp_obj_la_OBJECTS) $(imp_obj_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_obj_la_OBJECTS) $(imp_obj_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299include ./$(DEPDIR)/imp_obj.Plo
300
301.c.o:
302 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304# source='$<' object='$@' libtool=no \
305# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
306# $(COMPILE) -c $<
307
308.c.obj:
309 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311# source='$<' object='$@' libtool=no \
312# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
313# $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318# source='$<' object='$@' libtool=yes \
319# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
320# $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/Makefile.am
new file mode 100644
index 0000000..1145ba4
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/Makefile.am
@@ -0,0 +1,20 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_obj.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_obj_la_SOURCES = imp_obj.c
20imp_obj_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/Makefile.in
new file mode 100644
index 0000000..be48ab4
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/Makefile.in
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_obj
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_obj_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_obj_la_OBJECTS = imp_obj.lo
59imp_obj_la_OBJECTS = $(am_imp_obj_la_OBJECTS)
60DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_obj_la_SOURCES)
73DIST_SOURCES = $(imp_obj_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = @ACLOCAL@
78AMTAR = @AMTAR@
79AR = @AR@
80AS = @AS@
81AUTOCONF = @AUTOCONF@
82AUTOHEADER = @AUTOHEADER@
83AUTOMAKE = @AUTOMAKE@
84AWK = @AWK@
85CC = @CC@
86CCDEPMODE = @CCDEPMODE@
87CFLAGS = @CFLAGS@
88CPP = @CPP@
89CPPFLAGS = @CPPFLAGS@
90CXX = @CXX@
91CXXCPP = @CXXCPP@
92CXXDEPMODE = @CXXDEPMODE@
93CXXFLAGS = @CXXFLAGS@
94CYGPATH_W = @CYGPATH_W@
95DBG_CFLAGS = @DBG_CFLAGS@
96DEBUG = @DEBUG@
97DEFS = @DEFS@
98DEPDIR = @DEPDIR@
99DLLTOOL = @DLLTOOL@
100ECHO = @ECHO@
101ECHO_C = @ECHO_C@
102ECHO_N = @ECHO_N@
103ECHO_T = @ECHO_T@
104EGREP = @EGREP@
105EXEEXT = @EXEEXT@
106F77 = @F77@
107FFLAGS = @FFLAGS@
108GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
109GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
110GLIB_CFLAGS = @GLIB_CFLAGS@
111GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
112GLIB_LIBS = @GLIB_LIBS@
113GLIB_MKENUMS = @GLIB_MKENUMS@
114GOBJECT_QUERY = @GOBJECT_QUERY@
115GREP = @GREP@
116GTKDOC_CHECK = @GTKDOC_CHECK@
117GTK_CFLAGS = @GTK_CFLAGS@
118GTK_LIBS = @GTK_LIBS@
119HTML_DIR = @HTML_DIR@
120INSTALL = @INSTALL@
121INSTALL_DATA = @INSTALL_DATA@
122INSTALL_PROGRAM = @INSTALL_PROGRAM@
123INSTALL_SCRIPT = @INSTALL_SCRIPT@
124INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125LDFLAGS = @LDFLAGS@
126LEX = @LEX@
127LEXLIB = @LEXLIB@
128LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
129LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
130LIBGSF_LIBS = @LIBGSF_LIBS@
131LIBOBJS = @LIBOBJS@
132LIBS = @LIBS@
133LIBTOOL = @LIBTOOL@ --quiet
134LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
135LIBXML2_LIBS = @LIBXML2_LIBS@
136LN_S = @LN_S@
137LTLIBOBJS = @LTLIBOBJS@
138LTVERSION = @LTVERSION@
139MAGIC_LIBS = @MAGIC_LIBS@
140MAKEINFO = @MAKEINFO@
141MATH_LIBS = @MATH_LIBS@
142MKDIR_P = @MKDIR_P@
143OBJDUMP = @OBJDUMP@
144OBJEXT = @OBJEXT@
145PACKAGE = @PACKAGE@
146PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147PACKAGE_NAME = @PACKAGE_NAME@
148PACKAGE_STRING = @PACKAGE_STRING@
149PACKAGE_TARNAME = @PACKAGE_TARNAME@
150PACKAGE_VERSION = @PACKAGE_VERSION@
151PATH_SEPARATOR = @PATH_SEPARATOR@
152PKG_CONFIG = @PKG_CONFIG@
153PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
154RANLIB = @RANLIB@
155SET_MAKE = @SET_MAKE@
156SHELL = @SHELL@
157STRIP = @STRIP@
158VERSION = @VERSION@
159XML2_CONFIG = @XML2_CONFIG@
160XML_CPPFLAGS = @XML_CPPFLAGS@
161XML_LIBS = @XML_LIBS@
162Z_CFLAGS = @Z_CFLAGS@
163Z_LIBS = @Z_LIBS@
164abs_builddir = @abs_builddir@
165abs_srcdir = @abs_srcdir@
166abs_top_builddir = @abs_top_builddir@
167abs_top_srcdir = @abs_top_srcdir@
168ac_ct_CC = @ac_ct_CC@
169ac_ct_CXX = @ac_ct_CXX@
170ac_ct_F77 = @ac_ct_F77@
171am__include = @am__include@
172am__leading_dot = @am__leading_dot@
173am__quote = @am__quote@
174am__tar = @am__tar@
175am__untar = @am__untar@
176bindir = @bindir@
177build = @build@
178build_alias = @build_alias@
179build_cpu = @build_cpu@
180build_os = @build_os@
181build_vendor = @build_vendor@
182builddir = @builddir@
183datadir = @datadir@
184datarootdir = @datarootdir@
185docdir = @docdir@
186dvidir = @dvidir@
187exec_prefix = @exec_prefix@
188host = @host@
189host_alias = @host_alias@
190host_cpu = @host_cpu@
191host_os = @host_os@
192host_vendor = @host_vendor@
193htmldir = @htmldir@
194includedir = @includedir@
195infodir = @infodir@
196install_sh = @install_sh@
197libdir = @libdir@
198libexecdir = @libexecdir@
199localedir = @localedir@
200localstatedir = @localstatedir@
201mandir = @mandir@
202mkdir_p = @mkdir_p@
203oldincludedir = @oldincludedir@
204pdfdir = @pdfdir@
205prefix = @prefix@
206program_transform_name = @program_transform_name@
207psdir = @psdir@
208sbindir = @sbindir@
209sharedstatedir = @sharedstatedir@
210srcdir = @srcdir@
211sysconfdir = @sysconfdir@
212target_alias = @target_alias@
213top_builddir = @top_builddir@
214top_srcdir = @top_srcdir@
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_obj.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
221 @GLIB_CFLAGS@
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 @PLUGINS_LDFLAGS@
227
228imp_obj_la_SOURCES = imp_obj.c
229imp_obj_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_obj/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_obj/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_obj.la: $(imp_obj_la_OBJECTS) $(imp_obj_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_obj_la_OBJECTS) $(imp_obj_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_obj.Plo@am__quote@
300
301.c.o:
302@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
305@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
306@am__fastdepCC_FALSE@ $(COMPILE) -c $<
307
308.c.obj:
309@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
313@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
320@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/imp_obj.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/imp_obj.c
new file mode 100644
index 0000000..7c2ce37
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/imp_obj.c
@@ -0,0 +1,403 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <stdlib.h>
25#include <string.h>
26#include <errno.h>
27#include <locale.h>
28
29#include <g3d/context.h>
30#include <g3d/types.h>
31#include <g3d/material.h>
32#include <g3d/stream.h>
33
34#define OBJ_USE_GROUPING 0
35
36typedef struct {
37 goffset goff;
38 goffset ooff;
39 G3DObject *object;
40} ObjGroupOffset;
41
42static gboolean obj_tryloadmat(G3DModel *model, const gchar *filename);
43static G3DMaterial *obj_usemat(G3DModel *model, const gchar *matname);
44
45static G3DObject *obj_object_by_name(G3DModel *model, const gchar *name);
46#if OBJ_USE_GROUPING
47static G3DObject *obj_get_offset(GSList *group_list, guint32 *voffp,
48 guint32 index, G3DObject *defobj);
49#endif
50
51EAPI
52gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
53 G3DModel *model, gpointer user_data)
54{
55 gchar line[2048], matname[128], matfile[1024];
56 gchar *filename;
57 G3DObject *object = NULL;
58 G3DMaterial *material = NULL;
59 G3DFloat pcnt, prev_pcnt = 0.0;
60 gdouble x,y,z;
61 guint32 num_v, v_off = 1, v_cnt = 0;
62#if OBJ_USE_GROUPING
63 gchar oname[128];
64 ObjGroupOffset *grpoff;
65 GSList *group_list = NULL;
66#endif
67 goffset global_vertex_count = 0;
68
69 setlocale(LC_NUMERIC, "C");
70 filename = g3d_stream_get_uri(stream);
71
72 strncpy(matfile, filename, strlen(filename) - 3);
73 matfile[strlen(filename)-3] = '\0';
74 strcat(matfile, "mtl");
75 obj_tryloadmat(model, matfile);
76
77 object = obj_object_by_name(model, "(default)");
78
79 while(!g3d_stream_eof(stream))
80 {
81 memset(line, 0, 2048);
82 g3d_stream_read_line(stream, line, 2048);
83 /* remove leading and trailing whitespace characters */
84 g_strstrip(line);
85 if(strlen(line) > 0) {
86 switch(line[0]) {
87 case '#':
88 continue;
89 break;
90
91 case 'g': /* group */
92#if OBJ_USE_GROUPING
93 if(strlen(line) == 1)
94 strcpy(oname, "(default)");
95 else
96 sscanf(line, "g %s", oname);
97
98 material = obj_usemat(model, oname);
99
100 grpoff = g_new0(ObjGroupOffset, 1);
101 grpoff->object = obj_object_by_name(model, oname);
102 grpoff->goff = global_vertex_count;
103 grpoff->ooff = grpoff->object->vertex_count;
104 group_list = g_slist_append(group_list, grpoff);
105#if DEBUG > 0
106 g_debug("[g] 0x%08x / 0x%08x: \"%s\"",
107 (guint32)grpoff->goff,
108 (guint32)grpoff->ooff, grpoff->object->name);
109#endif
110 object = grpoff->object;
111 v_cnt = grpoff->ooff;
112#endif
113 break;
114
115 case 'l': /* line */
116 break;
117
118 case 'o': /* object */
119 break;
120
121 case 'v': /* vertex */
122 if(strncmp(line, "vn ", 3) == 0)
123 {
124 /* normal ? */
125 }
126 else if(strncmp(line, "vt ", 3) == 0)
127 {
128 /* ?? */
129 }
130 else if(sscanf(line, "v %lf %lf %lf", &x, &y, &z) == 3)
131 {
132 object->vertex_count ++;
133 object->vertex_data = g_realloc(object->vertex_data,
134 object->vertex_count * 3 * sizeof(G3DFloat));
135 object->vertex_data[v_cnt * 3 + 0] = x;
136 object->vertex_data[v_cnt * 3 + 1] = y;
137 object->vertex_data[v_cnt * 3 + 2] = z;
138
139 v_cnt ++;
140 global_vertex_count ++;
141 }
142 else g_warning("parse error in line: %s", line);
143 break;
144
145 case 'f': /* face */
146 if(strncmp("f ", line, 2) == 0)
147 {
148 G3DFace *face;
149 gchar **vertex, **vstrs = g_strsplit(line, " ", 0);
150 int i;
151
152 num_v = 0;
153 face = g_new0(G3DFace, 1);
154 if(material != NULL)
155 face->material = material;
156 else face->material =
157 g_slist_nth_data(object->materials, 0);
158
159 /* find number of vertices in line */
160 vertex = vstrs;
161 while(*vertex != NULL) { num_v++; vertex++; }
162 face->vertex_count = num_v - 1;
163
164 /* next one if # of vertices < 3 */
165 if(face->vertex_count < 3)
166 continue;
167
168 /* calculate object-local vertex offset, indices
169 * in .obj files are absolute */
170 i = strtol(vstrs[1], NULL, 10);
171#if OBJ_USE_GROUPING
172 object = obj_get_offset(group_list, &v_off,
173 (i < 0) ? global_vertex_count - i - 1 : i,
174 object);
175#else
176 v_off = 0;
177#endif
178 if(object == NULL) {
179 g_warning("error: face before object");
180 return FALSE;
181 }
182
183 /* read vertices */
184 face->vertex_indices = g_new0(guint32, num_v - 1);
185 for(i = 1; i < num_v; i ++) {
186 gint32 index = strtol(vstrs[i], NULL, 10);
187
188 if(index < 0)
189 face->vertex_indices[i - 1] =
190 global_vertex_count + index + v_off - 1;
191 else
192 face->vertex_indices[i - 1] = MIN(
193 (index - 1) + v_off,
194 object->vertex_count - 1);
195 }
196 g_strfreev(vstrs);
197 object->faces = g_slist_prepend(object->faces, face);
198 }
199 else
200 g_warning("parse error in line: %s", line);
201 break;
202
203 case 'u': /* usemat? */
204 case 'm':
205 case 's':
206 if(sscanf(line, "usemtl %s", matname) == 1) {
207 material = obj_usemat(model, matname);
208 } else if(sscanf(line, "mtllib %s", matfile) == 1) {
209 /* loads external material library */
210 if(obj_tryloadmat(model, matfile) != TRUE)
211 g_warning("error loading material library '%s'",
212 matfile);
213 }
214 break;
215 default:
216#if DEBUG > 0
217 g_debug("unknown type of line: %s", line);
218#endif
219 break;
220 }
221 }
222
223#if 1
224 pcnt = (G3DFloat)g3d_stream_tell(stream) /
225 (G3DFloat)g3d_stream_size(stream);
226 if((pcnt - prev_pcnt) > 0.01) {
227 prev_pcnt = pcnt;
228 g3d_context_update_progress_bar(context, pcnt, TRUE);
229 }
230#endif
231 g3d_context_update_interface(context);
232 } /* !eof(stream) */
233 return TRUE;
234}
235
236EAPI
237gchar *plugin_description(void)
238{
239 return g_strdup("Maya .obj models.");
240}
241
242EAPI
243gchar **plugin_extensions(void)
244{
245 return g_strsplit("obj", ":", 0);
246}
247
248/*****************************************************************************/
249
250/*****************************************************************************/
251/* material file ops */
252/*****************************************************************************/
253
254int obj_tryloadmat(G3DModel *model, const char *filename)
255{
256 FILE *f;
257 G3DMaterial *material = NULL;
258
259 f = fopen(filename, "r");
260 if(f == NULL) {
261#if DEBUG > 1
262 g_warning("obj_tryloadmat: loading '%s' failed: %s", filename,
263 strerror(errno));
264#endif
265 return FALSE;
266 }
267#if DEBUG > 0
268 g_debug("loading material library %s", filename);
269#endif
270 while(!feof(f)) {
271 char line[2048];
272 float r,g,b, t1,t2, ni;
273 int tf, ns, il;
274
275 fgets(line, 2048, f);
276 g_strstrip(line);
277 if(strlen(line))
278 {
279 char mname[128];
280
281 if(line[0] == '#') continue; /* comments */
282 if(line[0] == '\n') continue; /* empty lines */
283
284 if(sscanf(line, "newmtl %s", mname) == 1)
285 {
286 /* new material */
287 material = g3d_material_new();
288 material->name = g_strdup(mname);
289 model->materials = g_slist_append(model->materials, material);
290 }
291 else if(sscanf(line, " Kd %f %f %f", &r, &g, &b) == 3)
292 {
293 /* material color? */
294 if(material != NULL)
295 {
296 material->r = r;
297 material->g = g;
298 material->b = b;
299 }
300 }
301 else if(sscanf(line, " Ks %f %f %f", &r, &g, &b) == 3)
302 {
303 /* ?? */
304 }
305 else if(sscanf(line, " Tf %f %f %d", &t1, &t2, &tf) == 3)
306 {
307 /* transparency ?? */
308 if(material != NULL)
309 {
310 if(tf == 1) material->a = 1.0 - t1;
311 }
312 }
313 else if(sscanf(line, " Ns %d Ni %f", &ns, &ni) == 2)
314 {
315 /* ?? */
316 }
317 else if(sscanf(line, " illum %d", &il) == 1)
318 {
319 /* ?? */
320 }
321 else {
322#if DEBUG > 0
323 g_warning("unknown type of line: %s", line);
324#endif
325 }
326 }
327 } /* !feof */
328 return TRUE;
329}
330
331G3DMaterial *obj_usemat(G3DModel *model, const gchar *matname)
332{
333 /* sets new active material from named list */
334 GSList *mlist = model->materials;
335 while(mlist != NULL)
336 {
337 G3DMaterial *mat = (G3DMaterial*)mlist->data;
338 if(strcmp(matname, mat->name) == 0)
339 {
340 return mat;
341 }
342 mlist = mlist->next;
343 }
344
345 return NULL;
346}
347
348static G3DObject *obj_object_by_name(G3DModel *model, const gchar *name)
349{
350 G3DObject *object;
351 G3DMaterial *material;
352 GSList *oitem;
353
354#if DEBUG > 4
355 g_debug("looking for object '%s'", name);
356#endif
357
358 for(oitem = model->objects; oitem != NULL; oitem = oitem->next) {
359 object = oitem->data;
360 if(strcmp(object->name, name) == 0)
361 return object;
362 }
363
364 material = g3d_material_new();
365 material->name = g_strdup("(default material)");
366
367 object = g_new0(G3DObject, 1);
368 object->name = g_strdup(name);
369 object->materials = g_slist_append(object->materials, material);
370 model->objects = g_slist_append(model->objects, object);
371
372 return object;
373}
374
375#if OBJ_USE_GROUPING
376static G3DObject *obj_get_offset(GSList *group_list, guint32 *voffp,
377 guint32 index, G3DObject *defobj)
378{
379 GSList *leitem, *gitem;
380 ObjGroupOffset *grpoff;
381
382 for(leitem = gitem = group_list; gitem != NULL; gitem = gitem->next) {
383 grpoff = gitem->data;
384
385 /* this one is too big */
386 if(grpoff->goff > index) {
387 grpoff = leitem->data;
388 *voffp = grpoff->ooff - grpoff->goff;
389#if DEBUG > 0
390 g_debug("[o]: i=%-6d, go=%-6d, oo=%-6d, vo=%-6d (%s, %d vtxs)",
391 index, (guint32)grpoff->goff, (guint32)grpoff->ooff, *voffp,
392 grpoff->object->name, grpoff->object->vertex_count);
393#endif
394 return grpoff->object;
395 }
396 leitem = gitem;
397 }
398
399 *voffp = 0;
400 return defobj;
401}
402#endif
403
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile
new file mode 100644
index 0000000..fd1df87
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile
@@ -0,0 +1,511 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_osm/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_osm
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_osm_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_osm_la_OBJECTS = imp_osm.lo
59imp_osm_la_OBJECTS = $(am_imp_osm_la_OBJECTS)
60#am_imp_osm_la_rpath = -rpath \
61# $(pluginimpdir)
62DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
63depcomp = $(SHELL) $(top_srcdir)/config/depcomp
64am__depfiles_maybe = depfiles
65COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
66 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
67LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
68 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
69 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
70CCLD = $(CC)
71LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
72 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
73 $(LDFLAGS) -o $@
74SOURCES = $(imp_osm_la_SOURCES)
75DIST_SOURCES = $(imp_osm_la_SOURCES)
76ETAGS = etags
77CTAGS = ctags
78DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
79ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
80AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
81AR = ar
82AS = as
83AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
84AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
85AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
86AWK = gawk
87CC = gcc
88CCDEPMODE = depmode=gcc3
89CFLAGS = -g -O2
90CPP = gcc -E
91CPPFLAGS =
92CXX = g++
93CXXCPP = g++ -E
94CXXDEPMODE = depmode=gcc3
95CXXFLAGS = -g -O2
96CYGPATH_W = echo
97DBG_CFLAGS = -O2
98DEBUG = 0
99DEFS = -DHAVE_CONFIG_H
100DEPDIR = .deps
101DLLTOOL = dlltool
102ECHO = echo
103ECHO_C =
104ECHO_N = -n
105ECHO_T =
106EGREP = /bin/grep -E
107EXEEXT =
108F77 =
109FFLAGS =
110GDKPIXBUF_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
111GDKPIXBUF_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
112GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
113GLIB_GENMARSHAL = glib-genmarshal
114GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
115GLIB_MKENUMS = glib-mkenums
116GOBJECT_QUERY = gobject-query
117GREP = /bin/grep
118GTKDOC_CHECK = /usr/bin/gtkdoc-check
119GTK_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
120GTK_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
121HTML_DIR = ${datadir}/gtk-doc/html
122INSTALL = /usr/bin/install -c
123INSTALL_DATA = ${INSTALL} -m 644
124INSTALL_PROGRAM = ${INSTALL}
125INSTALL_SCRIPT = ${INSTALL}
126INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
127LDFLAGS =
128LEX = flex
129LEXLIB = -lfl
130LEX_OUTPUT_ROOT = lex.yy
131LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
132LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
133LIBOBJS =
134LIBS = -lm
135LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
136LIBXML2_CFLAGS = -I/usr/include/libxml2
137LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
138LN_S = ln -s
139LTLIBOBJS =
140LTVERSION = 0:8:0
141MAGIC_LIBS = -lmagic
142MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
143MATH_LIBS = -lm
144MKDIR_P = /bin/mkdir -p
145OBJDUMP = objdump
146OBJEXT = o
147PACKAGE = libg3d
148PACKAGE_BUGREPORT =
149PACKAGE_NAME =
150PACKAGE_STRING =
151PACKAGE_TARNAME =
152PACKAGE_VERSION =
153PATH_SEPARATOR = :
154PKG_CONFIG = /usr/bin/pkg-config
155PLUGINS_LDFLAGS = -avoid-version -export-dynamic
156RANLIB = ranlib
157SET_MAKE =
158SHELL = /bin/bash
159STRIP = strip
160VERSION = 0.0.8
161XML2_CONFIG = /usr/bin/xml2-config
162XML_CPPFLAGS = -I/usr/include/libxml2
163XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
164Z_CFLAGS =
165Z_LIBS = -lz
166abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm
167abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm
168abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
170ac_ct_CC = gcc
171ac_ct_CXX = g++
172ac_ct_F77 =
173am__include = include
174am__leading_dot = .
175am__quote =
176am__tar = ${AMTAR} chof - "$$tardir"
177am__untar = ${AMTAR} xf -
178bindir = ${exec_prefix}/bin
179build = x86_64-unknown-linux-gnu
180build_alias =
181build_cpu = x86_64
182build_os = linux-gnu
183build_vendor = unknown
184builddir = .
185datadir = ${datarootdir}
186datarootdir = ${prefix}/share
187docdir = ${datarootdir}/doc/${PACKAGE}
188dvidir = ${docdir}
189exec_prefix = ${prefix}
190host = x86_64-unknown-linux-gnu
191host_alias =
192host_cpu = x86_64
193host_os = linux-gnu
194host_vendor = unknown
195htmldir = ${docdir}
196includedir = ${prefix}/include
197infodir = ${datarootdir}/info
198install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
199libdir = ${exec_prefix}/lib
200libexecdir = ${exec_prefix}/libexec
201localedir = ${datarootdir}/locale
202localstatedir = ${prefix}/var
203mandir = ${datarootdir}/man
204mkdir_p = /bin/mkdir -p
205oldincludedir = /usr/include
206pdfdir = ${docdir}
207prefix = /usr/local
208program_transform_name = s,x,x,
209psdir = ${docdir}
210sbindir = ${exec_prefix}/sbin
211sharedstatedir = ${prefix}/com
212srcdir = .
213sysconfdir = ${prefix}/etc
214target_alias =
215top_builddir = ../../..
216top_srcdir = ../../..
217pluginimpdir = $(pkglibdir)/plugins/import
218#pluginimp_LTLIBRARIES = imp_osm.la
219AM_CFLAGS = \
220 -Wall -ansi -pedantic \
221 -DG_LOG_DOMAIN=\"LibG3D\" \
222 -O2 -DDEBUG=0 \
223 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2
224
225INCLUDES = -I$(top_srcdir)/include
226AM_LDFLAGS = \
227 -no-undefined -module \
228 -avoid-version -export-dynamic
229
230imp_osm_la_SOURCES = imp_osm.c
231imp_osm_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 -L/usr/lib/x86_64-linux-gnu -lxml2
232all: all-am
233
234.SUFFIXES:
235.SUFFIXES: .c .lo .o .obj
236$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
237 @for dep in $?; do \
238 case '$(am__configure_deps)' in \
239 *$$dep*) \
240 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
241 && exit 0; \
242 exit 1;; \
243 esac; \
244 done; \
245 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_osm/Makefile'; \
246 cd $(top_srcdir) && \
247 $(AUTOMAKE) --gnu plugins/import/imp_osm/Makefile
248.PRECIOUS: Makefile
249Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
250 @case '$?' in \
251 *config.status*) \
252 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
253 *) \
254 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
255 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
256 esac;
257
258$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
259 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
260
261$(top_srcdir)/configure: $(am__configure_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263$(ACLOCAL_M4): $(am__aclocal_m4_deps)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
266 @$(NORMAL_INSTALL)
267 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
268 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
269 if test -f $$p; then \
270 f=$(am__strip_dir) \
271 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
272 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
273 else :; fi; \
274 done
275
276uninstall-pluginimpLTLIBRARIES:
277 @$(NORMAL_UNINSTALL)
278 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
279 p=$(am__strip_dir) \
280 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
281 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
282 done
283
284clean-pluginimpLTLIBRARIES:
285 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
288 test "$$dir" != "$$p" || dir=.; \
289 echo "rm -f \"$${dir}/so_locations\""; \
290 rm -f "$${dir}/so_locations"; \
291 done
292imp_osm.la: $(imp_osm_la_OBJECTS) $(imp_osm_la_DEPENDENCIES)
293 $(LINK) $(am_imp_osm_la_rpath) $(imp_osm_la_OBJECTS) $(imp_osm_la_LIBADD) $(LIBS)
294
295mostlyclean-compile:
296 -rm -f *.$(OBJEXT)
297
298distclean-compile:
299 -rm -f *.tab.c
300
301include ./$(DEPDIR)/imp_osm.Plo
302
303.c.o:
304 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
305 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
306# source='$<' object='$@' libtool=no \
307# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
308# $(COMPILE) -c $<
309
310.c.obj:
311 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
312 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
313# source='$<' object='$@' libtool=no \
314# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
315# $(COMPILE) -c `$(CYGPATH_W) '$<'`
316
317.c.lo:
318 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
319 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
320# source='$<' object='$@' libtool=yes \
321# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
322# $(LTCOMPILE) -c -o $@ $<
323
324mostlyclean-libtool:
325 -rm -f *.lo
326
327clean-libtool:
328 -rm -rf .libs _libs
329
330ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
331 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
332 unique=`for i in $$list; do \
333 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
334 done | \
335 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
336 END { if (nonempty) { for (i in files) print i; }; }'`; \
337 mkid -fID $$unique
338tags: TAGS
339
340TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
341 $(TAGS_FILES) $(LISP)
342 tags=; \
343 here=`pwd`; \
344 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
345 unique=`for i in $$list; do \
346 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
347 done | \
348 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
349 END { if (nonempty) { for (i in files) print i; }; }'`; \
350 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
351 test -n "$$unique" || unique=$$empty_fix; \
352 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
353 $$tags $$unique; \
354 fi
355ctags: CTAGS
356CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
357 $(TAGS_FILES) $(LISP)
358 tags=; \
359 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
360 unique=`for i in $$list; do \
361 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
362 done | \
363 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
364 END { if (nonempty) { for (i in files) print i; }; }'`; \
365 test -z "$(CTAGS_ARGS)$$tags$$unique" \
366 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
367 $$tags $$unique
368
369GTAGS:
370 here=`$(am__cd) $(top_builddir) && pwd` \
371 && cd $(top_srcdir) \
372 && gtags -i $(GTAGS_ARGS) $$here
373
374distclean-tags:
375 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
376
377distdir: $(DISTFILES)
378 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
379 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
380 list='$(DISTFILES)'; \
381 dist_files=`for file in $$list; do echo $$file; done | \
382 sed -e "s|^$$srcdirstrip/||;t" \
383 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
384 case $$dist_files in \
385 */*) $(MKDIR_P) `echo "$$dist_files" | \
386 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
387 sort -u` ;; \
388 esac; \
389 for file in $$dist_files; do \
390 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
391 if test -d $$d/$$file; then \
392 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
393 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
394 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
395 fi; \
396 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
397 else \
398 test -f $(distdir)/$$file \
399 || cp -p $$d/$$file $(distdir)/$$file \
400 || exit 1; \
401 fi; \
402 done
403check-am: all-am
404check: check-am
405all-am: Makefile $(LTLIBRARIES)
406installdirs:
407 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
408 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
409 done
410install: install-am
411install-exec: install-exec-am
412install-data: install-data-am
413uninstall: uninstall-am
414
415install-am: all-am
416 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
417
418installcheck: installcheck-am
419install-strip:
420 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
421 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
422 `test -z '$(STRIP)' || \
423 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
424mostlyclean-generic:
425
426clean-generic:
427
428distclean-generic:
429 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
430
431maintainer-clean-generic:
432 @echo "This command is intended for maintainers to use"
433 @echo "it deletes files that may require special tools to rebuild."
434clean: clean-am
435
436clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
437 mostlyclean-am
438
439distclean: distclean-am
440 -rm -rf ./$(DEPDIR)
441 -rm -f Makefile
442distclean-am: clean-am distclean-compile distclean-generic \
443 distclean-tags
444
445dvi: dvi-am
446
447dvi-am:
448
449html: html-am
450
451info: info-am
452
453info-am:
454
455install-data-am: install-pluginimpLTLIBRARIES
456
457install-dvi: install-dvi-am
458
459install-exec-am:
460
461install-html: install-html-am
462
463install-info: install-info-am
464
465install-man:
466
467install-pdf: install-pdf-am
468
469install-ps: install-ps-am
470
471installcheck-am:
472
473maintainer-clean: maintainer-clean-am
474 -rm -rf ./$(DEPDIR)
475 -rm -f Makefile
476maintainer-clean-am: distclean-am maintainer-clean-generic
477
478mostlyclean: mostlyclean-am
479
480mostlyclean-am: mostlyclean-compile mostlyclean-generic \
481 mostlyclean-libtool
482
483pdf: pdf-am
484
485pdf-am:
486
487ps: ps-am
488
489ps-am:
490
491uninstall-am: uninstall-pluginimpLTLIBRARIES
492
493.MAKE: install-am install-strip
494
495.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
496 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
497 distclean-compile distclean-generic distclean-libtool \
498 distclean-tags distdir dvi dvi-am html html-am info info-am \
499 install install-am install-data install-data-am install-dvi \
500 install-dvi-am install-exec install-exec-am install-html \
501 install-html-am install-info install-info-am install-man \
502 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
503 install-ps install-ps-am install-strip installcheck \
504 installcheck-am installdirs maintainer-clean \
505 maintainer-clean-generic mostlyclean mostlyclean-compile \
506 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
507 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
508
509# Tell versions [3.59,3.63) of GNU make to not export all variables.
510# Otherwise a system limit (for SysV at least) may be exceeded.
511.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile.am
new file mode 100644
index 0000000..1e6b4ae
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile.am
@@ -0,0 +1,24 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if EXPERIMENTAL
4if HAVE_LIBXML2
5pluginimp_LTLIBRARIES = imp_osm.la
6endif
7endif
8
9AM_CFLAGS = \
10 -Wall -ansi -pedantic \
11 -DG_LOG_DOMAIN=\"LibG3D\" \
12 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
13 @GLIB_CFLAGS@ @LIBXML2_CFLAGS@
14
15INCLUDES = -I$(top_srcdir)/include
16
17AM_LDFLAGS = \
18 -no-undefined -module \
19 @PLUGINS_LDFLAGS@
20
21LIBTOOL += --quiet
22
23imp_osm_la_SOURCES = imp_osm.c
24imp_osm_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ @LIBXML2_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile.in
new file mode 100644
index 0000000..a875726
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile.in
@@ -0,0 +1,511 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_osm
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_osm_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_osm_la_OBJECTS = imp_osm.lo
59imp_osm_la_OBJECTS = $(am_imp_osm_la_OBJECTS)
60@EXPERIMENTAL_TRUE@@HAVE_LIBXML2_TRUE@am_imp_osm_la_rpath = -rpath \
61@EXPERIMENTAL_TRUE@@HAVE_LIBXML2_TRUE@ $(pluginimpdir)
62DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
63depcomp = $(SHELL) $(top_srcdir)/config/depcomp
64am__depfiles_maybe = depfiles
65COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
66 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
67LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
68 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
69 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
70CCLD = $(CC)
71LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
72 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
73 $(LDFLAGS) -o $@
74SOURCES = $(imp_osm_la_SOURCES)
75DIST_SOURCES = $(imp_osm_la_SOURCES)
76ETAGS = etags
77CTAGS = ctags
78DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
79ACLOCAL = @ACLOCAL@
80AMTAR = @AMTAR@
81AR = @AR@
82AS = @AS@
83AUTOCONF = @AUTOCONF@
84AUTOHEADER = @AUTOHEADER@
85AUTOMAKE = @AUTOMAKE@
86AWK = @AWK@
87CC = @CC@
88CCDEPMODE = @CCDEPMODE@
89CFLAGS = @CFLAGS@
90CPP = @CPP@
91CPPFLAGS = @CPPFLAGS@
92CXX = @CXX@
93CXXCPP = @CXXCPP@
94CXXDEPMODE = @CXXDEPMODE@
95CXXFLAGS = @CXXFLAGS@
96CYGPATH_W = @CYGPATH_W@
97DBG_CFLAGS = @DBG_CFLAGS@
98DEBUG = @DEBUG@
99DEFS = @DEFS@
100DEPDIR = @DEPDIR@
101DLLTOOL = @DLLTOOL@
102ECHO = @ECHO@
103ECHO_C = @ECHO_C@
104ECHO_N = @ECHO_N@
105ECHO_T = @ECHO_T@
106EGREP = @EGREP@
107EXEEXT = @EXEEXT@
108F77 = @F77@
109FFLAGS = @FFLAGS@
110GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
111GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
112GLIB_CFLAGS = @GLIB_CFLAGS@
113GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
114GLIB_LIBS = @GLIB_LIBS@
115GLIB_MKENUMS = @GLIB_MKENUMS@
116GOBJECT_QUERY = @GOBJECT_QUERY@
117GREP = @GREP@
118GTKDOC_CHECK = @GTKDOC_CHECK@
119GTK_CFLAGS = @GTK_CFLAGS@
120GTK_LIBS = @GTK_LIBS@
121HTML_DIR = @HTML_DIR@
122INSTALL = @INSTALL@
123INSTALL_DATA = @INSTALL_DATA@
124INSTALL_PROGRAM = @INSTALL_PROGRAM@
125INSTALL_SCRIPT = @INSTALL_SCRIPT@
126INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
127LDFLAGS = @LDFLAGS@
128LEX = @LEX@
129LEXLIB = @LEXLIB@
130LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
131LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
132LIBGSF_LIBS = @LIBGSF_LIBS@
133LIBOBJS = @LIBOBJS@
134LIBS = @LIBS@
135LIBTOOL = @LIBTOOL@ --quiet
136LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
137LIBXML2_LIBS = @LIBXML2_LIBS@
138LN_S = @LN_S@
139LTLIBOBJS = @LTLIBOBJS@
140LTVERSION = @LTVERSION@
141MAGIC_LIBS = @MAGIC_LIBS@
142MAKEINFO = @MAKEINFO@
143MATH_LIBS = @MATH_LIBS@
144MKDIR_P = @MKDIR_P@
145OBJDUMP = @OBJDUMP@
146OBJEXT = @OBJEXT@
147PACKAGE = @PACKAGE@
148PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
149PACKAGE_NAME = @PACKAGE_NAME@
150PACKAGE_STRING = @PACKAGE_STRING@
151PACKAGE_TARNAME = @PACKAGE_TARNAME@
152PACKAGE_VERSION = @PACKAGE_VERSION@
153PATH_SEPARATOR = @PATH_SEPARATOR@
154PKG_CONFIG = @PKG_CONFIG@
155PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
156RANLIB = @RANLIB@
157SET_MAKE = @SET_MAKE@
158SHELL = @SHELL@
159STRIP = @STRIP@
160VERSION = @VERSION@
161XML2_CONFIG = @XML2_CONFIG@
162XML_CPPFLAGS = @XML_CPPFLAGS@
163XML_LIBS = @XML_LIBS@
164Z_CFLAGS = @Z_CFLAGS@
165Z_LIBS = @Z_LIBS@
166abs_builddir = @abs_builddir@
167abs_srcdir = @abs_srcdir@
168abs_top_builddir = @abs_top_builddir@
169abs_top_srcdir = @abs_top_srcdir@
170ac_ct_CC = @ac_ct_CC@
171ac_ct_CXX = @ac_ct_CXX@
172ac_ct_F77 = @ac_ct_F77@
173am__include = @am__include@
174am__leading_dot = @am__leading_dot@
175am__quote = @am__quote@
176am__tar = @am__tar@
177am__untar = @am__untar@
178bindir = @bindir@
179build = @build@
180build_alias = @build_alias@
181build_cpu = @build_cpu@
182build_os = @build_os@
183build_vendor = @build_vendor@
184builddir = @builddir@
185datadir = @datadir@
186datarootdir = @datarootdir@
187docdir = @docdir@
188dvidir = @dvidir@
189exec_prefix = @exec_prefix@
190host = @host@
191host_alias = @host_alias@
192host_cpu = @host_cpu@
193host_os = @host_os@
194host_vendor = @host_vendor@
195htmldir = @htmldir@
196includedir = @includedir@
197infodir = @infodir@
198install_sh = @install_sh@
199libdir = @libdir@
200libexecdir = @libexecdir@
201localedir = @localedir@
202localstatedir = @localstatedir@
203mandir = @mandir@
204mkdir_p = @mkdir_p@
205oldincludedir = @oldincludedir@
206pdfdir = @pdfdir@
207prefix = @prefix@
208program_transform_name = @program_transform_name@
209psdir = @psdir@
210sbindir = @sbindir@
211sharedstatedir = @sharedstatedir@
212srcdir = @srcdir@
213sysconfdir = @sysconfdir@
214target_alias = @target_alias@
215top_builddir = @top_builddir@
216top_srcdir = @top_srcdir@
217pluginimpdir = $(pkglibdir)/plugins/import
218@EXPERIMENTAL_TRUE@@HAVE_LIBXML2_TRUE@pluginimp_LTLIBRARIES = imp_osm.la
219AM_CFLAGS = \
220 -Wall -ansi -pedantic \
221 -DG_LOG_DOMAIN=\"LibG3D\" \
222 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
223 @GLIB_CFLAGS@ @LIBXML2_CFLAGS@
224
225INCLUDES = -I$(top_srcdir)/include
226AM_LDFLAGS = \
227 -no-undefined -module \
228 @PLUGINS_LDFLAGS@
229
230imp_osm_la_SOURCES = imp_osm.c
231imp_osm_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ @LIBXML2_LIBS@
232all: all-am
233
234.SUFFIXES:
235.SUFFIXES: .c .lo .o .obj
236$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
237 @for dep in $?; do \
238 case '$(am__configure_deps)' in \
239 *$$dep*) \
240 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
241 && exit 0; \
242 exit 1;; \
243 esac; \
244 done; \
245 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_osm/Makefile'; \
246 cd $(top_srcdir) && \
247 $(AUTOMAKE) --gnu plugins/import/imp_osm/Makefile
248.PRECIOUS: Makefile
249Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
250 @case '$?' in \
251 *config.status*) \
252 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
253 *) \
254 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
255 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
256 esac;
257
258$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
259 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
260
261$(top_srcdir)/configure: $(am__configure_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263$(ACLOCAL_M4): $(am__aclocal_m4_deps)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
266 @$(NORMAL_INSTALL)
267 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
268 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
269 if test -f $$p; then \
270 f=$(am__strip_dir) \
271 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
272 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
273 else :; fi; \
274 done
275
276uninstall-pluginimpLTLIBRARIES:
277 @$(NORMAL_UNINSTALL)
278 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
279 p=$(am__strip_dir) \
280 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
281 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
282 done
283
284clean-pluginimpLTLIBRARIES:
285 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
288 test "$$dir" != "$$p" || dir=.; \
289 echo "rm -f \"$${dir}/so_locations\""; \
290 rm -f "$${dir}/so_locations"; \
291 done
292imp_osm.la: $(imp_osm_la_OBJECTS) $(imp_osm_la_DEPENDENCIES)
293 $(LINK) $(am_imp_osm_la_rpath) $(imp_osm_la_OBJECTS) $(imp_osm_la_LIBADD) $(LIBS)
294
295mostlyclean-compile:
296 -rm -f *.$(OBJEXT)
297
298distclean-compile:
299 -rm -f *.tab.c
300
301@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_osm.Plo@am__quote@
302
303.c.o:
304@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
305@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
306@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
307@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
308@am__fastdepCC_FALSE@ $(COMPILE) -c $<
309
310.c.obj:
311@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
312@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
313@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
314@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
315@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
316
317.c.lo:
318@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
319@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
320@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
321@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
322@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
323
324mostlyclean-libtool:
325 -rm -f *.lo
326
327clean-libtool:
328 -rm -rf .libs _libs
329
330ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
331 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
332 unique=`for i in $$list; do \
333 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
334 done | \
335 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
336 END { if (nonempty) { for (i in files) print i; }; }'`; \
337 mkid -fID $$unique
338tags: TAGS
339
340TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
341 $(TAGS_FILES) $(LISP)
342 tags=; \
343 here=`pwd`; \
344 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
345 unique=`for i in $$list; do \
346 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
347 done | \
348 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
349 END { if (nonempty) { for (i in files) print i; }; }'`; \
350 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
351 test -n "$$unique" || unique=$$empty_fix; \
352 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
353 $$tags $$unique; \
354 fi
355ctags: CTAGS
356CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
357 $(TAGS_FILES) $(LISP)
358 tags=; \
359 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
360 unique=`for i in $$list; do \
361 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
362 done | \
363 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
364 END { if (nonempty) { for (i in files) print i; }; }'`; \
365 test -z "$(CTAGS_ARGS)$$tags$$unique" \
366 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
367 $$tags $$unique
368
369GTAGS:
370 here=`$(am__cd) $(top_builddir) && pwd` \
371 && cd $(top_srcdir) \
372 && gtags -i $(GTAGS_ARGS) $$here
373
374distclean-tags:
375 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
376
377distdir: $(DISTFILES)
378 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
379 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
380 list='$(DISTFILES)'; \
381 dist_files=`for file in $$list; do echo $$file; done | \
382 sed -e "s|^$$srcdirstrip/||;t" \
383 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
384 case $$dist_files in \
385 */*) $(MKDIR_P) `echo "$$dist_files" | \
386 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
387 sort -u` ;; \
388 esac; \
389 for file in $$dist_files; do \
390 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
391 if test -d $$d/$$file; then \
392 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
393 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
394 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
395 fi; \
396 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
397 else \
398 test -f $(distdir)/$$file \
399 || cp -p $$d/$$file $(distdir)/$$file \
400 || exit 1; \
401 fi; \
402 done
403check-am: all-am
404check: check-am
405all-am: Makefile $(LTLIBRARIES)
406installdirs:
407 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
408 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
409 done
410install: install-am
411install-exec: install-exec-am
412install-data: install-data-am
413uninstall: uninstall-am
414
415install-am: all-am
416 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
417
418installcheck: installcheck-am
419install-strip:
420 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
421 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
422 `test -z '$(STRIP)' || \
423 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
424mostlyclean-generic:
425
426clean-generic:
427
428distclean-generic:
429 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
430
431maintainer-clean-generic:
432 @echo "This command is intended for maintainers to use"
433 @echo "it deletes files that may require special tools to rebuild."
434clean: clean-am
435
436clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
437 mostlyclean-am
438
439distclean: distclean-am
440 -rm -rf ./$(DEPDIR)
441 -rm -f Makefile
442distclean-am: clean-am distclean-compile distclean-generic \
443 distclean-tags
444
445dvi: dvi-am
446
447dvi-am:
448
449html: html-am
450
451info: info-am
452
453info-am:
454
455install-data-am: install-pluginimpLTLIBRARIES
456
457install-dvi: install-dvi-am
458
459install-exec-am:
460
461install-html: install-html-am
462
463install-info: install-info-am
464
465install-man:
466
467install-pdf: install-pdf-am
468
469install-ps: install-ps-am
470
471installcheck-am:
472
473maintainer-clean: maintainer-clean-am
474 -rm -rf ./$(DEPDIR)
475 -rm -f Makefile
476maintainer-clean-am: distclean-am maintainer-clean-generic
477
478mostlyclean: mostlyclean-am
479
480mostlyclean-am: mostlyclean-compile mostlyclean-generic \
481 mostlyclean-libtool
482
483pdf: pdf-am
484
485pdf-am:
486
487ps: ps-am
488
489ps-am:
490
491uninstall-am: uninstall-pluginimpLTLIBRARIES
492
493.MAKE: install-am install-strip
494
495.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
496 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
497 distclean-compile distclean-generic distclean-libtool \
498 distclean-tags distdir dvi dvi-am html html-am info info-am \
499 install install-am install-data install-data-am install-dvi \
500 install-dvi-am install-exec install-exec-am install-html \
501 install-html-am install-info install-info-am install-man \
502 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
503 install-ps install-ps-am install-strip installcheck \
504 installcheck-am installdirs maintainer-clean \
505 maintainer-clean-generic mostlyclean mostlyclean-compile \
506 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
507 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
508
509# Tell versions [3.59,3.63) of GNU make to not export all variables.
510# Otherwise a system limit (for SysV at least) may be exceeded.
511.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/imp_osm.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/imp_osm.c
new file mode 100644
index 0000000..f541925
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/imp_osm.c
@@ -0,0 +1,334 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24#include <locale.h>
25#include <math.h>
26
27#include <libxml/parser.h>
28#include <libxml/tree.h>
29
30#include <g3d/types.h>
31#include <g3d/stream.h>
32#include <g3d/material.h>
33#include <g3d/object.h>
34#include <g3d/vector.h>
35#include <g3d/matrix.h>
36#include <g3d/primitive.h>
37
38typedef struct {
39 guint32 length;
40 guint32 *ids;
41} OSMNodeTransList;
42
43typedef struct {
44 const gchar *name;
45 gdouble r, g, b, a;
46} OSMMaterial;
47
48static OSMMaterial osm_materials[] = {
49 { "default", 0.7, 0.7, 0.7, 0.7 },
50 { "highway:primary", 1.0, 0.8, 0.1, 1.0 },
51 { "highway:secondary", 1.0, 0.2, 0.2, 1.0 },
52 { "highway:footway", 0.2, 1.0, 0.2, 1.0 },
53 { "waterway:canal", 0.0, 0.1, 1.0, 0.7 },
54 { "waterway:river", 0.0, 0.4, 1.0, 0.7 },
55 { "waterway:riverbank", 0.0, 0.4, 1.0, 0.7 },
56 { NULL, 0.0, 0.0, 0.0, 0.0 }
57};
58
59static int osm_input_read_cb(gpointer ctx, gchar *buffer, gint len);
60static void osm_add_node(G3DObject *object, OSMNodeTransList *translist,
61 xmlNodePtr node);
62static void osm_add_way(G3DObject *object, OSMNodeTransList *translist,
63 xmlNodePtr node, GHashTable *materials);
64
65EAPI
66gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
67 G3DModel *model)
68{
69 xmlDocPtr xmldoc;
70 xmlNodePtr rootnode, node;
71 OSMNodeTransList *translist;
72 G3DObject *object;
73 GHashTable *materials;
74 G3DMaterial *material;
75 OSMMaterial *mentry;
76
77 setlocale(LC_NUMERIC, "C");
78
79 xmlInitParser();
80
81 xmldoc = xmlReadIO(osm_input_read_cb, NULL, stream, stream->uri, NULL, 0);
82 if(xmldoc == NULL) {
83 g_warning("OSM: failed to parse XML file '%s'", stream->uri);
84 xmlCleanupParser();
85 return FALSE;
86 }
87
88 /* create material table */
89 materials = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL);
90 for(mentry = osm_materials; mentry->name != NULL; mentry ++) {
91 material = g3d_material_new();
92 material->name = g_strdup(mentry->name);
93 material->r = mentry->r;
94 material->g = mentry->g;
95 material->b = mentry->b;
96 material->a = mentry->a;
97 model->materials = g_slist_append(model->materials, material);
98 g_hash_table_insert(materials, g_strdup(material->name), material);
99 }
100
101 translist = g_new0(OSMNodeTransList, 1);
102 object = g_new0(G3DObject, 1);
103 object->name = g_strdup("OpenStreetMap object");
104 model->objects = g_slist_append(model->objects, object);
105
106 rootnode = xmlDocGetRootElement(xmldoc);
107 for(node = rootnode->children; node != NULL; node = node->next) {
108 /* skip non-element nodes */
109 if(node->type != XML_ELEMENT_NODE)
110 continue;
111
112 if(xmlStrcmp((xmlChar *)"node", node->name) == 0) {
113 /* "node" nodes */
114 osm_add_node(object, translist, node);
115 } else if(xmlStrcmp((xmlChar *)"way", node->name) == 0) {
116 /* "way" nodes */
117 osm_add_way(object, translist, node, materials);
118 } else if(xmlStrcmp((xmlChar *)"relation", node->name) == 0) {
119 /* "relation" nodes */
120 }
121 }
122
123 /* clean up */
124 if(object->vertex_data) {
125 /* reference points not needed anymore */
126 g_free(object->vertex_data);
127 object->vertex_data = NULL;
128 object->vertex_count = 0;
129 }
130 g_hash_table_destroy(materials);
131 if(translist->ids)
132 g_free(translist->ids);
133 g_free(translist);
134 xmlFreeDoc(xmldoc);
135 xmlCleanupParser();
136
137 return TRUE;
138}
139
140EAPI
141char *plugin_description(void)
142{
143 return g_strdup("OpenStreetMap maps.");
144}
145
146EAPI
147char **plugin_extensions(void)
148{
149 return g_strsplit("osm", ":", 0);
150}
151
152/*****************************************************************************/
153/* helper functions
154 *****************************************************************************/
155
156static int osm_input_read_cb(gpointer ctx, gchar *buffer, gint len)
157{
158 return g3d_stream_read((G3DStream *)ctx, buffer, len);
159}
160
161#if 0
162#define G(i) (gdouble)(i)
163
164static gdouble misc_angle(gdouble x1, gdouble y1, gdouble x2, gdouble y2)
165{
166 gdouble at;
167
168 if(x1 == x2) {
169 if(y1 > y2)
170 return G_PI * 1.5;
171 else
172 return G_PI / 2.0;
173 }
174 at = atan((G(y2) - G(y1)) / (G(x2) - G(x1)));
175 if(x2 < x1)
176 return G_PI + at;
177 else
178 return at;
179}
180
181static gdouble misc_delta(gdouble x1, gdouble y1, gdouble x2, gdouble y2)
182{
183 gdouble a, b;
184
185 a = ABS(G(x2) - G(x1));
186 b = ABS(G(y2) - G(y1));
187 return sqrt(a * a + b * b);
188}
189#endif
190
191/*****************************************************************************/
192/* OSM specific functions
193 *****************************************************************************/
194
195static gint32 osm_translist_lookup(OSMNodeTransList *translist, guint32 id)
196{
197 gint32 i;
198
199 for(i = 0; i < translist->length; i ++)
200 if(translist->ids[i] == id)
201 return i;
202 return -1;
203}
204
205static void osm_add_node(G3DObject *object, OSMNodeTransList *translist,
206 xmlNodePtr node)
207{
208 gdouble lat, lon;
209
210 lat = strtod((char *)xmlGetProp(node, (xmlChar *)"lat"), NULL);
211 lon = strtod((char *)xmlGetProp(node, (xmlChar *)"lon"), NULL);
212
213 translist->length ++;
214 translist->ids = g_realloc(translist->ids,
215 translist->length * sizeof(guint32));
216 translist->ids[translist->length - 1] = strtoul(
217 (char *)xmlGetProp(node, (xmlChar *)"id"), NULL, 10);
218
219 object->vertex_count ++;
220 object->vertex_data = g_realloc(object->vertex_data,
221 object->vertex_count * sizeof(gdouble) * 3);
222 object->vertex_data[(object->vertex_count - 1) * 3 + 0] =
223 (lat * G_PI / 180) * cos(lon * G_PI / 180) * 180 / G_PI;
224 object->vertex_data[(object->vertex_count - 1) * 3 + 1] = 0.0;
225 object->vertex_data[(object->vertex_count - 1) * 3 + 2] =
226 (lat * G_PI / 180) * sin(lon * G_PI / 180) * 180 / G_PI;
227}
228
229static void osm_add_street(G3DObject *object, OSMNodeTransList *translist,
230 guint32 refcount, guint32 *refdata,
231 GHashTable *tags, GHashTable *materials)
232{
233 gint32 i, n;
234 gdouble *vdata;
235 G3DFloat matrix[16];
236 G3DObject *ostreet = NULL;
237 gchar *name, *mname;
238 G3DMaterial *material = NULL;
239
240 /* lookup material */
241 name = g_hash_table_lookup(tags, "highway");
242 if(name != NULL) {
243 mname = g_strdup_printf("highway:%s", name);
244 material = g_hash_table_lookup(materials, mname);
245 g_free(mname);
246 } else {
247 name = g_hash_table_lookup(tags, "waterway");
248 if(name != NULL) {
249 mname = g_strdup_printf("waterway:%s", name);
250 material = g_hash_table_lookup(materials, mname);
251 g_free(mname);
252 }
253 }
254 if(material == NULL) {
255 material = g_hash_table_lookup(materials, "default");
256 g_return_if_fail(material != NULL);
257 }
258
259 /* create strip */
260 vdata = g_new0(gdouble, refcount * 2);
261 for(i = 0; i < refcount; i ++) {
262 n = osm_translist_lookup(translist, refdata[i]);
263 if(n == -1) {
264 g_warning("OSM: looking up reference %d failed", refdata[i]);
265 continue;
266 }
267 vdata[i * 2 + 0] = object->vertex_data[n * 3 + 0];
268 vdata[i * 2 + 1] = object->vertex_data[n * 3 + 2];
269 }
270 ostreet = g3d_primitive_box_strip_2d(refcount, vdata, 0.00003, 0.0003,
271 material);
272 g_free(vdata);
273
274 if(ostreet == NULL)
275 return;
276
277 /* bridge? */
278 name = g_hash_table_lookup(tags, "bridge");
279 if(name && (strcmp(name, "true") == 0)) {
280 g3d_matrix_identity(matrix);
281 g3d_matrix_translate(0.0, 0.00005, 0.0, matrix);
282 g3d_object_transform(ostreet, matrix);
283 }
284
285 /* name? */
286 name = g_hash_table_lookup(tags, "name");
287 if(name == NULL)
288 ostreet->name = g_strdup("unnamed street");
289 else
290 ostreet->name = g_strdup(name);
291 object->objects = g_slist_append(object->objects, ostreet);
292}
293
294static void osm_add_way(G3DObject *object, OSMNodeTransList *translist,
295 xmlNodePtr node, GHashTable *materials)
296{
297 guint32 refcount = 0;
298 guint32 *refdata = NULL;
299 GHashTable *tags;
300 xmlNodePtr subnode;
301
302 tags = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free);
303
304 /* parse subnodes */
305 for(subnode = node->children; subnode != NULL; subnode = subnode->next) {
306 if(subnode->type != XML_ELEMENT_NODE)
307 continue;
308
309 if(xmlStrcmp((xmlChar *)"nd", subnode->name) == 0) {
310 refcount ++;
311 refdata = g_realloc(refdata, refcount * sizeof(guint32));
312 refdata[refcount - 1] = strtoul(
313 (char *)xmlGetProp(subnode, (xmlChar *)"ref"), NULL, 10);
314 } else if(xmlStrcmp((xmlChar *)"tag", subnode->name) == 0) {
315 g_hash_table_insert(tags,
316 g_strdup((char *)xmlGetProp(subnode, (xmlChar *)"k")),
317 g_strdup((char *)xmlGetProp(subnode, (xmlChar *)"v")));
318 } else {
319 /* unknown "way" subnode */
320 g_debug("OSM: 'way': unknown subnode '%s'",
321 (gchar *)subnode->name);
322 }
323 }
324
325 /* do something with the collected data */
326 if((g_hash_table_lookup(tags, "highway") != NULL) ||
327 (g_hash_table_lookup(tags, "waterway") != NULL))
328 osm_add_street(object, translist, refcount, refdata, tags, materials);
329
330 /* clean up */
331 g_hash_table_destroy(tags);
332 if(refdata)
333 g_free(refdata);
334}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/Makefile
new file mode 100644
index 0000000..8d8d55e
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/Makefile
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_q3o/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_q3o
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_q3o_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_q3o_la_OBJECTS = imp_q3o.lo
59imp_q3o_la_OBJECTS = $(am_imp_q3o_la_OBJECTS)
60DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_q3o_la_SOURCES)
73DIST_SOURCES = $(imp_q3o_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
78AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
79AR = ar
80AS = as
81AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
82AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
83AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
84AWK = gawk
85CC = gcc
86CCDEPMODE = depmode=gcc3
87CFLAGS = -g -O2
88CPP = gcc -E
89CPPFLAGS =
90CXX = g++
91CXXCPP = g++ -E
92CXXDEPMODE = depmode=gcc3
93CXXFLAGS = -g -O2
94CYGPATH_W = echo
95DBG_CFLAGS = -O2
96DEBUG = 0
97DEFS = -DHAVE_CONFIG_H
98DEPDIR = .deps
99DLLTOOL = dlltool
100ECHO = echo
101ECHO_C =
102ECHO_N = -n
103ECHO_T =
104EGREP = /bin/grep -E
105EXEEXT =
106F77 =
107FFLAGS =
108GDKPIXBUF_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
109GDKPIXBUF_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
110GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
111GLIB_GENMARSHAL = glib-genmarshal
112GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
113GLIB_MKENUMS = glib-mkenums
114GOBJECT_QUERY = gobject-query
115GREP = /bin/grep
116GTKDOC_CHECK = /usr/bin/gtkdoc-check
117GTK_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
118GTK_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
119HTML_DIR = ${datadir}/gtk-doc/html
120INSTALL = /usr/bin/install -c
121INSTALL_DATA = ${INSTALL} -m 644
122INSTALL_PROGRAM = ${INSTALL}
123INSTALL_SCRIPT = ${INSTALL}
124INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
125LDFLAGS =
126LEX = flex
127LEXLIB = -lfl
128LEX_OUTPUT_ROOT = lex.yy
129LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
130LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
131LIBOBJS =
132LIBS = -lm
133LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
134LIBXML2_CFLAGS = -I/usr/include/libxml2
135LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
136LN_S = ln -s
137LTLIBOBJS =
138LTVERSION = 0:8:0
139MAGIC_LIBS = -lmagic
140MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
141MATH_LIBS = -lm
142MKDIR_P = /bin/mkdir -p
143OBJDUMP = objdump
144OBJEXT = o
145PACKAGE = libg3d
146PACKAGE_BUGREPORT =
147PACKAGE_NAME =
148PACKAGE_STRING =
149PACKAGE_TARNAME =
150PACKAGE_VERSION =
151PATH_SEPARATOR = :
152PKG_CONFIG = /usr/bin/pkg-config
153PLUGINS_LDFLAGS = -avoid-version -export-dynamic
154RANLIB = ranlib
155SET_MAKE =
156SHELL = /bin/bash
157STRIP = strip
158VERSION = 0.0.8
159XML2_CONFIG = /usr/bin/xml2-config
160XML_CPPFLAGS = -I/usr/include/libxml2
161XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
162Z_CFLAGS =
163Z_LIBS = -lz
164abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o
165abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o
166abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
167abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168ac_ct_CC = gcc
169ac_ct_CXX = g++
170ac_ct_F77 =
171am__include = include
172am__leading_dot = .
173am__quote =
174am__tar = ${AMTAR} chof - "$$tardir"
175am__untar = ${AMTAR} xf -
176bindir = ${exec_prefix}/bin
177build = x86_64-unknown-linux-gnu
178build_alias =
179build_cpu = x86_64
180build_os = linux-gnu
181build_vendor = unknown
182builddir = .
183datadir = ${datarootdir}
184datarootdir = ${prefix}/share
185docdir = ${datarootdir}/doc/${PACKAGE}
186dvidir = ${docdir}
187exec_prefix = ${prefix}
188host = x86_64-unknown-linux-gnu
189host_alias =
190host_cpu = x86_64
191host_os = linux-gnu
192host_vendor = unknown
193htmldir = ${docdir}
194includedir = ${prefix}/include
195infodir = ${datarootdir}/info
196install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
197libdir = ${exec_prefix}/lib
198libexecdir = ${exec_prefix}/libexec
199localedir = ${datarootdir}/locale
200localstatedir = ${prefix}/var
201mandir = ${datarootdir}/man
202mkdir_p = /bin/mkdir -p
203oldincludedir = /usr/include
204pdfdir = ${docdir}
205prefix = /usr/local
206program_transform_name = s,x,x,
207psdir = ${docdir}
208sbindir = ${exec_prefix}/sbin
209sharedstatedir = ${prefix}/com
210srcdir = .
211sysconfdir = ${prefix}/etc
212target_alias =
213top_builddir = ../../..
214top_srcdir = ../../..
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_q3o.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 -O2 -DDEBUG=0 \
221 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 -avoid-version -export-dynamic
227
228imp_q3o_la_SOURCES = imp_q3o.c
229imp_q3o_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_q3o/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_q3o/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_q3o.la: $(imp_q3o_la_OBJECTS) $(imp_q3o_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_q3o_la_OBJECTS) $(imp_q3o_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299include ./$(DEPDIR)/imp_q3o.Plo
300
301.c.o:
302 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304# source='$<' object='$@' libtool=no \
305# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
306# $(COMPILE) -c $<
307
308.c.obj:
309 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311# source='$<' object='$@' libtool=no \
312# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
313# $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318# source='$<' object='$@' libtool=yes \
319# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
320# $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/Makefile.am
new file mode 100644
index 0000000..a4c53cb
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/Makefile.am
@@ -0,0 +1,20 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_q3o.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_q3o_la_SOURCES = imp_q3o.c
20imp_q3o_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/Makefile.in
new file mode 100644
index 0000000..0091221
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/Makefile.in
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_q3o
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_q3o_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_q3o_la_OBJECTS = imp_q3o.lo
59imp_q3o_la_OBJECTS = $(am_imp_q3o_la_OBJECTS)
60DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_q3o_la_SOURCES)
73DIST_SOURCES = $(imp_q3o_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = @ACLOCAL@
78AMTAR = @AMTAR@
79AR = @AR@
80AS = @AS@
81AUTOCONF = @AUTOCONF@
82AUTOHEADER = @AUTOHEADER@
83AUTOMAKE = @AUTOMAKE@
84AWK = @AWK@
85CC = @CC@
86CCDEPMODE = @CCDEPMODE@
87CFLAGS = @CFLAGS@
88CPP = @CPP@
89CPPFLAGS = @CPPFLAGS@
90CXX = @CXX@
91CXXCPP = @CXXCPP@
92CXXDEPMODE = @CXXDEPMODE@
93CXXFLAGS = @CXXFLAGS@
94CYGPATH_W = @CYGPATH_W@
95DBG_CFLAGS = @DBG_CFLAGS@
96DEBUG = @DEBUG@
97DEFS = @DEFS@
98DEPDIR = @DEPDIR@
99DLLTOOL = @DLLTOOL@
100ECHO = @ECHO@
101ECHO_C = @ECHO_C@
102ECHO_N = @ECHO_N@
103ECHO_T = @ECHO_T@
104EGREP = @EGREP@
105EXEEXT = @EXEEXT@
106F77 = @F77@
107FFLAGS = @FFLAGS@
108GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
109GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
110GLIB_CFLAGS = @GLIB_CFLAGS@
111GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
112GLIB_LIBS = @GLIB_LIBS@
113GLIB_MKENUMS = @GLIB_MKENUMS@
114GOBJECT_QUERY = @GOBJECT_QUERY@
115GREP = @GREP@
116GTKDOC_CHECK = @GTKDOC_CHECK@
117GTK_CFLAGS = @GTK_CFLAGS@
118GTK_LIBS = @GTK_LIBS@
119HTML_DIR = @HTML_DIR@
120INSTALL = @INSTALL@
121INSTALL_DATA = @INSTALL_DATA@
122INSTALL_PROGRAM = @INSTALL_PROGRAM@
123INSTALL_SCRIPT = @INSTALL_SCRIPT@
124INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125LDFLAGS = @LDFLAGS@
126LEX = @LEX@
127LEXLIB = @LEXLIB@
128LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
129LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
130LIBGSF_LIBS = @LIBGSF_LIBS@
131LIBOBJS = @LIBOBJS@
132LIBS = @LIBS@
133LIBTOOL = @LIBTOOL@ --quiet
134LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
135LIBXML2_LIBS = @LIBXML2_LIBS@
136LN_S = @LN_S@
137LTLIBOBJS = @LTLIBOBJS@
138LTVERSION = @LTVERSION@
139MAGIC_LIBS = @MAGIC_LIBS@
140MAKEINFO = @MAKEINFO@
141MATH_LIBS = @MATH_LIBS@
142MKDIR_P = @MKDIR_P@
143OBJDUMP = @OBJDUMP@
144OBJEXT = @OBJEXT@
145PACKAGE = @PACKAGE@
146PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147PACKAGE_NAME = @PACKAGE_NAME@
148PACKAGE_STRING = @PACKAGE_STRING@
149PACKAGE_TARNAME = @PACKAGE_TARNAME@
150PACKAGE_VERSION = @PACKAGE_VERSION@
151PATH_SEPARATOR = @PATH_SEPARATOR@
152PKG_CONFIG = @PKG_CONFIG@
153PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
154RANLIB = @RANLIB@
155SET_MAKE = @SET_MAKE@
156SHELL = @SHELL@
157STRIP = @STRIP@
158VERSION = @VERSION@
159XML2_CONFIG = @XML2_CONFIG@
160XML_CPPFLAGS = @XML_CPPFLAGS@
161XML_LIBS = @XML_LIBS@
162Z_CFLAGS = @Z_CFLAGS@
163Z_LIBS = @Z_LIBS@
164abs_builddir = @abs_builddir@
165abs_srcdir = @abs_srcdir@
166abs_top_builddir = @abs_top_builddir@
167abs_top_srcdir = @abs_top_srcdir@
168ac_ct_CC = @ac_ct_CC@
169ac_ct_CXX = @ac_ct_CXX@
170ac_ct_F77 = @ac_ct_F77@
171am__include = @am__include@
172am__leading_dot = @am__leading_dot@
173am__quote = @am__quote@
174am__tar = @am__tar@
175am__untar = @am__untar@
176bindir = @bindir@
177build = @build@
178build_alias = @build_alias@
179build_cpu = @build_cpu@
180build_os = @build_os@
181build_vendor = @build_vendor@
182builddir = @builddir@
183datadir = @datadir@
184datarootdir = @datarootdir@
185docdir = @docdir@
186dvidir = @dvidir@
187exec_prefix = @exec_prefix@
188host = @host@
189host_alias = @host_alias@
190host_cpu = @host_cpu@
191host_os = @host_os@
192host_vendor = @host_vendor@
193htmldir = @htmldir@
194includedir = @includedir@
195infodir = @infodir@
196install_sh = @install_sh@
197libdir = @libdir@
198libexecdir = @libexecdir@
199localedir = @localedir@
200localstatedir = @localstatedir@
201mandir = @mandir@
202mkdir_p = @mkdir_p@
203oldincludedir = @oldincludedir@
204pdfdir = @pdfdir@
205prefix = @prefix@
206program_transform_name = @program_transform_name@
207psdir = @psdir@
208sbindir = @sbindir@
209sharedstatedir = @sharedstatedir@
210srcdir = @srcdir@
211sysconfdir = @sysconfdir@
212target_alias = @target_alias@
213top_builddir = @top_builddir@
214top_srcdir = @top_srcdir@
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_q3o.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
221 @GLIB_CFLAGS@
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 @PLUGINS_LDFLAGS@
227
228imp_q3o_la_SOURCES = imp_q3o.c
229imp_q3o_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_q3o/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_q3o/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_q3o.la: $(imp_q3o_la_OBJECTS) $(imp_q3o_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_q3o_la_OBJECTS) $(imp_q3o_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_q3o.Plo@am__quote@
300
301.c.o:
302@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
305@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
306@am__fastdepCC_FALSE@ $(COMPILE) -c $<
307
308.c.obj:
309@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
313@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
320@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/imp_q3o.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/imp_q3o.c
new file mode 100644
index 0000000..b8d83a4
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/imp_q3o.c
@@ -0,0 +1,586 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <string.h>
25
26#include <g3d/types.h>
27#include <g3d/context.h>
28#include <g3d/material.h>
29#include <g3d/stream.h>
30
31/*
32 * format description:
33 * http://www.quick3d.com/guide/guidec.html
34 */
35
36static void q3o_update_face_textures(G3DModel *model, G3DContext *context);
37static gboolean q3o_read_mesh(G3DStream *stream, G3DModel *model,
38 guint32 n_textures, G3DContext *context);
39static gboolean q3o_read_material(G3DStream *stream, G3DModel *model,
40 guint32 index, guint32 n_textures);
41static gboolean q3o_read_texture(G3DStream *stream, G3DModel *model,
42 guint32 *idx);
43static gboolean q3o_read_scene(G3DStream *stream, G3DContext *context);
44static gboolean q3o_read_eof(G3DStream *stream);
45
46EAPI
47gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
48 G3DModel *model, gpointer user_data)
49{
50 gchar signature[8], ver_min, ver_maj, id;
51 guint32 nmeshes, nmats, ntexs, i, tex_index = 0;
52
53 g3d_stream_read(stream, signature, 8);
54 if(strncmp(signature, "quick3Ds", 8) && strncmp(signature, "quick3Do", 8))
55 {
56 g_warning("file '%s' is not a Quick3D file", stream->uri);
57 return FALSE;
58 }
59
60 ver_maj = g3d_stream_read_int8(stream);
61 ver_min = g3d_stream_read_int8(stream);
62#if DEBUG > 0
63 g_debug("Q3O: version %c.%c", ver_maj, ver_min);
64#endif
65
66 nmeshes = g3d_stream_read_int32_le(stream);
67 nmats = g3d_stream_read_int32_le(stream);
68 ntexs = g3d_stream_read_int32_le(stream);
69#if DEBUG > 0
70 g_debug("Q3O: %d meshes, %d materials, %d textures",
71 nmeshes, nmats, ntexs);
72#endif
73
74 /* generate (emtpy) materials */
75 for(i = 0; i < nmats; i ++) {
76 G3DMaterial *material = g3d_material_new();
77 model->materials = g_slist_append(model->materials, material);
78 }
79
80 while((id = g3d_stream_read_int8(stream)) != 0) {
81#if DEBUG > 0
82 g_debug("Q3O: chunk type 0x%02x @ 0x%08x", id,
83 (guint32)g3d_stream_tell(stream) - 1);
84#endif
85 switch(id) {
86 case 'm': /* mesh */
87 for(i = 0; i < nmeshes; i ++)
88 q3o_read_mesh(stream, model, ntexs, context);
89 break;
90
91 case 'c': /* material */
92 for(i = 0; i < nmats; i ++)
93 q3o_read_material(stream, model, i, ntexs);
94 break;
95
96 case 't': /* texture */
97 for(i = 0; i < ntexs; i ++)
98 q3o_read_texture(stream, model, &tex_index);
99 break;
100
101 case 's': /* scene */
102 q3o_read_scene(stream, context);
103 break;
104
105 case 'q': /* EOF signature? */
106 q3o_read_eof(stream);
107 break;
108
109 default:
110 g_warning("Q3O: unknown chunk type 0x%02x\n", id);
111 return TRUE;
112 break;
113 }
114 }
115
116 /* update texture images */
117 q3o_update_face_textures(model, context);
118
119 return TRUE;
120}
121
122EAPI
123gchar *plugin_description(void)
124{
125 return g_strdup("Quick3D models.");
126}
127
128EAPI
129gchar **plugin_extensions(void)
130{
131 return g_strsplit("q3o:q3s", ":", 0);
132}
133
134/*
135 * Q3O specific stuff
136 */
137
138static void q3o_update_face_textures(G3DModel *model, G3DContext *context)
139{
140 GSList *oitem, *fitem;
141 G3DObject *object;
142 G3DFace *face;
143
144 oitem = model->objects;
145 while(oitem)
146 {
147 object = (G3DObject *)oitem->data;
148 fitem = object->faces;
149 while(fitem)
150 {
151 face = (G3DFace *)fitem->data;
152 face->tex_image = face->material->tex_image;
153 if(face->tex_image && face->tex_image->width)
154 face->flags |= G3D_FLAG_FAC_TEXMAP;
155 else
156 {
157 face->tex_vertex_count = 0;
158 if(face->tex_vertex_data)
159 g_free(face->tex_vertex_data);
160 }
161 fitem = fitem->next;
162 }
163
164 g3d_context_update_interface(context);
165 oitem = oitem->next;
166 }
167}
168
169static G3DImage *q3o_get_texture_nth(G3DModel *model, guint32 n)
170{
171 gchar number[32];
172 G3DImage *image;
173
174 if(model->tex_images == NULL)
175 model->tex_images = g_hash_table_new(g_str_hash, g_str_equal);
176
177#if DEBUG > 5
178 g_debug("Q3O: texture #%d wanted", n);
179#endif
180
181 sprintf(number, "%d", n);
182 image = g_hash_table_lookup(model->tex_images, number);
183 if(image) {
184#if DEBUG > 5
185 g_debug("Q3O: texture #%d from hash table", n);
186#endif
187 return image;
188 }
189
190#if DEBUG > 5
191 g_debug("Q3O: texture #%d created", n);
192#endif
193
194 image = g_new0(G3DImage, 1);
195 image->tex_scale_u = 1.0;
196 image->tex_scale_v = 1.0;
197 image->name = g_strdup_printf("would be %d", n + 1);
198
199 g_hash_table_insert(model->tex_images, g_strdup(number), image);
200
201 return image;
202}
203
204static gboolean q3o_read_mesh(G3DStream *stream, G3DModel *model,
205 guint32 n_textures, G3DContext *context)
206{
207 guint32 i, j, nfaces, mat, nnormals, ntexco, index, nfaceverts = 0;
208 guint16 *faceshapes;
209 G3DFloat *normals;
210 GSList *fitem;
211 G3DObject *object;
212 G3DFace *face;
213 G3DMaterial *material;
214
215 object = g_new0(G3DObject, 1);
216 object->name = g_strdup("Q3O mesh");
217 model->objects = g_slist_append(model->objects, object);
218
219 material = g3d_material_new();
220 material->name = g_strdup("fallback material");
221 object->materials = g_slist_append(object->materials, material);
222
223 /* vertices */
224 object->vertex_count = g3d_stream_read_int32_le(stream);
225#if DEBUG > 3
226 g_debug("Q3O: number of vertices: %d", object->vertex_count);
227#endif
228 object->vertex_data = g_new0(G3DFloat,object->vertex_count * 3);
229 for(i = 0; i < object->vertex_count; i ++)
230 {
231 object->vertex_data[i*3+0] = g3d_stream_read_float_le(stream);
232 object->vertex_data[i*3+1] = g3d_stream_read_float_le(stream);
233 object->vertex_data[i*3+2] = g3d_stream_read_float_le(stream);
234
235 g3d_context_update_interface(context);
236 }
237
238 /* faces */
239 nfaces = g3d_stream_read_int32_le(stream);
240#if DEBUG > 3
241 g_debug("Q3O: number of faces: %d", nfaces);
242#endif
243 faceshapes = g_new0(guint16, nfaces);
244 for(i = 0; i < nfaces; i ++)
245 {
246 faceshapes[i] = g3d_stream_read_int16_le(stream);
247 nfaceverts += faceshapes[i];
248
249 g3d_context_update_interface(context);
250 }
251
252 for(i = 0; i < nfaces; i ++)
253 {
254 face = g_new0(G3DFace, 1);
255 face->vertex_count = faceshapes[i];
256 face->vertex_indices = g_new0(guint32, face->vertex_count);
257 for(j = 0; j < face->vertex_count; j ++)
258 {
259 face->vertex_indices[j] = g3d_stream_read_int32_le(stream);
260 if(face->vertex_indices[j] >= object->vertex_count)
261 {
262 g_warning("Q3O: vertex_indices >= vertex_count");
263 }
264
265 g3d_context_update_interface(context);
266 }
267 /* fallback material */
268 face->material = (G3DMaterial *)g_slist_nth_data(object->materials, 0);
269 g_assert(face->material);
270
271 object->faces = g_slist_append(object->faces, face);
272
273 g3d_context_update_interface(context);
274 }
275
276 /* material indices */
277 fitem = object->faces;
278 for(i = 0; i < nfaces; i ++)
279 {
280 face = (G3DFace *)fitem->data;
281 g_assert(face != NULL);
282 mat = g3d_stream_read_int32_le(stream);
283 face->material = (G3DMaterial*)g_slist_nth_data(model->materials, mat);
284 if(face->material == NULL)
285 {
286 if(mat != -1) g_warning("Q3O: material is NULL (index %d)", mat);
287 face->material = g_slist_nth_data(object->materials, 0);
288 }
289
290 g3d_context_update_interface(context);
291 fitem = fitem->next;
292 }
293
294 /* normals */
295 nnormals = g3d_stream_read_int32_le(stream);
296 normals = g_new0(G3DFloat, nnormals * 3);
297#if DEBUG > 3
298 g_debug("Q3O: number of normals: %d", nnormals);
299#endif
300 for(i = 0; i < nnormals; i ++) {
301 normals[i * 3 + 0] = g3d_stream_read_float_le(stream);
302 normals[i * 3 + 1] = g3d_stream_read_float_le(stream);
303 normals[i * 3 + 2] = g3d_stream_read_float_le(stream);
304
305 g3d_context_update_interface(context);
306 }
307
308 /* update faces */
309 if(object->vertex_count == nnormals) {
310 fitem = object->faces;
311 for(i = 0; i < nfaces; i ++) {
312 face = (G3DFace *)fitem->data;
313 face->normals = g_new0(G3DFloat, faceshapes[i] * 3);
314 face->flags |= G3D_FLAG_FAC_NORMALS;
315 for(j = 0; j < faceshapes[i]; j ++)
316 {
317 face->normals[j * 3 + 0] =
318 normals[face->vertex_indices[j] * 3 + 0];
319 face->normals[j * 3 + 1] =
320 normals[face->vertex_indices[j] * 3 + 1];
321 face->normals[j * 3 + 2] =
322 normals[face->vertex_indices[j] * 3 + 2];
323 }
324
325 g3d_context_update_interface(context);
326 fitem = fitem->next;
327 }
328
329 }
330
331 /* texture stuff */
332 ntexco = g3d_stream_read_int32_le(stream);
333#if DEBUG > 3
334 g_debug("Q3O: number of texture coordinates: %d", ntexco);
335#endif
336 if(n_textures > 0)
337 {
338 object->tex_vertex_count = ntexco;
339 object->tex_vertex_data = g_new0(G3DFloat, 2 * ntexco);
340
341 for(i = 0; i < ntexco; i ++)
342 {
343 object->tex_vertex_data[i * 2 + 0] = g3d_stream_read_float_le(stream);
344 object->tex_vertex_data[i * 2 + 1] = g3d_stream_read_float_le(stream);
345 }
346
347 fitem = object->faces;
348 for(i = 0; i < nfaces; i ++)
349 {
350 face = (G3DFace *)fitem->data;
351 face->tex_vertex_count = faceshapes[i];
352 face->tex_vertex_data = g_new0(G3DFloat, faceshapes[i] * 2);
353 for(j = 0; j < faceshapes[i]; j ++)
354 {
355 index = g3d_stream_read_int32_le(stream);
356 face->tex_vertex_data[j * 2 + 0] =
357 object->tex_vertex_data[face->vertex_indices[j] * 2 + 0];
358 face->tex_vertex_data[j * 2 + 1] =
359 object->tex_vertex_data[face->vertex_indices[j] * 2 + 1];
360 }
361
362 g3d_context_update_interface(context);
363 fitem = fitem->next;
364 }
365 }
366
367 /* centerOfMass */
368 g3d_stream_read_float_le(stream);
369 g3d_stream_read_float_le(stream);
370 g3d_stream_read_float_le(stream);
371
372 /* boundingBox */
373 g3d_stream_read_float_le(stream);
374 g3d_stream_read_float_le(stream);
375 g3d_stream_read_float_le(stream);
376
377 g3d_stream_read_float_le(stream);
378 g3d_stream_read_float_le(stream);
379 g3d_stream_read_float_le(stream);
380
381 /* clean up */
382 g_free(faceshapes);
383 if(object->tex_vertex_data)
384 {
385 /* should be in faces */
386 g_free(object->tex_vertex_data);
387 object->tex_vertex_data = NULL;
388 }
389 if(normals)
390 g_free(normals);
391
392 g3d_context_update_interface(context);
393
394 return TRUE;
395}
396
397static gboolean q3o_read_material(G3DStream *stream, G3DModel *model,
398 guint32 index, guint32 n_textures)
399{
400 gchar buffer[2048], *bufp;
401 G3DMaterial *material;
402 gint32 num;
403
404 material = g_slist_nth_data(model->materials, index);
405 memset(buffer, 0, 2048);
406 bufp = buffer;
407 while((*bufp = g3d_stream_read_int8(stream)) != '\0') bufp ++;
408 material->name = g_strdup(buffer);
409#if DEBUG > 0
410 g_debug("Q3O: material name: '%s'", buffer);
411#endif
412
413 /* ambientColor */
414 material->r = g3d_stream_read_float_le(stream);
415 material->g = g3d_stream_read_float_le(stream);
416 material->b = g3d_stream_read_float_le(stream);
417
418 /* diffuseColor */
419 material->r = g3d_stream_read_float_le(stream);
420 material->g = g3d_stream_read_float_le(stream);
421 material->b = g3d_stream_read_float_le(stream);
422
423 /* specularColor */
424 material->specular[0] = g3d_stream_read_float_le(stream);
425 material->specular[1] = g3d_stream_read_float_le(stream);
426 material->specular[2] = g3d_stream_read_float_le(stream);
427
428 /* transparency */
429 material->a = g3d_stream_read_float_le(stream);
430 if(material->a == 0.0) material->a = 1.0;
431 if(material->a < 0.1) material->a = 0.1;
432
433 /* texture */
434 num = g3d_stream_read_int32_le(stream);
435#if DEBUG > 4
436 g_debug("Q3O: material unknown uint32: %d", num);
437#endif
438 if((num != -1) && (num < n_textures))
439 material->tex_image = q3o_get_texture_nth(model, num);
440
441 return TRUE;
442}
443
444static gboolean q3o_read_texture(G3DStream *stream, G3DModel *model,
445 guint32 *idx)
446{
447 G3DImage *image;
448 gchar buffer[2048], *bufp;
449#if DEBUG > 2
450 gchar *ppmname;
451#endif
452 guint32 width, height, y, x;
453
454 memset(buffer, 0, 2048);
455 bufp = buffer;
456 while((*bufp = g3d_stream_read_int8(stream)) != '\0')
457 bufp ++;
458
459 width = g3d_stream_read_int32_le(stream);
460 height = g3d_stream_read_int32_le(stream);
461#if DEBUG > 0
462 g_debug("Q3O: texture #%d '%s': %dx%d", *idx, buffer, width, height);
463#endif
464
465 image = q3o_get_texture_nth(model, *idx);
466 (*idx) ++;
467
468 image->name = g_strdup(buffer);
469 image->width = width;
470 image->height = height;
471 image->depth = 32;
472 image->pixeldata = g_new0(guint8, width * height * 4);
473 image->tex_id = *idx;
474
475 for(y = 0; y < height; y ++)
476 for(x = 0; x < width; x ++) {
477 image->pixeldata[(y * width + x) * 4 + 0] =
478 g3d_stream_read_int8(stream);
479 image->pixeldata[(y * width + x) * 4 + 1] =
480 g3d_stream_read_int8(stream);
481 image->pixeldata[(y * width + x) * 4 + 2] =
482 g3d_stream_read_int8(stream);
483 image->pixeldata[(y * width + x) * 4 + 3] = 0xFF;
484 }
485
486#if DEBUG > 2
487 ppmname = g_strdup_printf("/tmp/%s.ppm", image->name);
488 g3d_image_dump_ppm(image, ppmname);
489 g_free(ppmname);
490#endif
491 return TRUE;
492}
493
494static gboolean q3o_read_scene(G3DStream *stream, G3DContext *context)
495{
496 gchar buffer[2048], *bufp;
497 guint32 bgw, bgh;
498 /* position: 3 x float */
499
500 g3d_stream_skip(stream, 12);
501
502 /* transformation: matrix */
503 g3d_stream_skip(stream, 64);
504
505 /* axis: 3 x float */
506 g3d_stream_skip(stream, 12);
507
508 /* angle: float */
509 g3d_stream_skip(stream, 4);
510
511 /* eyePosition: 3 x float */
512 g3d_stream_skip(stream, 12);
513
514 /* eyeRotation: 3 x float */
515 g3d_stream_skip(stream, 12);
516
517 /* foregroundColor: color */
518 g3d_stream_skip(stream, 12);
519
520 /* backgroundColor: color */
521 g3d_context_set_bgcolor(context,
522 g3d_stream_read_float_le(stream),
523 g3d_stream_read_float_le(stream),
524 g3d_stream_read_float_le(stream),
525 1.0);
526
527 /* usingEyeFilter: bool */
528 g3d_stream_read_int8(stream);
529
530 /* eyeFilterColor: color */
531 g3d_stream_skip(stream, 12);
532
533 /* eyeFilterAmount: float */
534 g3d_stream_read_float_le(stream);
535
536 /* lightColor: color */
537 g3d_stream_skip(stream, 12);
538
539 /* backgroundImageWidth: int */
540 bgw = g3d_stream_read_int32_le(stream);
541
542 /* backgroundImageHeight: int */
543 bgh = g3d_stream_read_int32_le(stream);
544
545 if(bgw * bgh) {
546
547 /* backgroundFilename */
548 memset(buffer, 0, 2048);
549 bufp = buffer;
550 while((*bufp = g3d_stream_read_int8(stream)) != '\0')
551 bufp ++;
552
553#if DEBUG > 0
554 g_debug("Q3O: scene: background image '%s' (%dx%d)",
555 buffer, bgw, bgh);
556#endif
557
558 /* backgroundImage: pixel[] */
559 g3d_stream_skip(stream, bgw * bgh * 3);
560 }
561
562 /* depthCuing: float */
563 g3d_stream_read_float_le(stream);
564
565 /* depthCueColor: color */
566 g3d_stream_skip(stream, 12);
567
568 /* gamma: float */
569 g3d_stream_read_float_le(stream);
570
571 return FALSE;
572}
573
574static gboolean q3o_read_eof(G3DStream *stream)
575{
576 gchar buffer[7];
577
578 if(g3d_stream_read(stream, buffer, 7) == 7) {
579 if(strncmp(buffer, "uick3Ds", 7) == 0) return TRUE;
580 g_warning("Q3O: did not get expected EOF marker");
581 } else {
582 g_warning("Q3O: premature end of file\n");
583 }
584 return FALSE;
585}
586
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/Makefile
new file mode 100644
index 0000000..338fcd4
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/Makefile
@@ -0,0 +1,513 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_r4/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_r4
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_r4_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_r4_la_OBJECTS = imp_r4.lo imp_r4_callbacks.lo
59imp_r4_la_OBJECTS = $(am_imp_r4_la_OBJECTS)
60#am_imp_r4_la_rpath = -rpath $(pluginimpdir)
61DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_r4_la_SOURCES)
74DIST_SOURCES = $(imp_r4_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
79AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
80AR = ar
81AS = as
82AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
83AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
84AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
85AWK = gawk
86CC = gcc
87CCDEPMODE = depmode=gcc3
88CFLAGS = -g -O2
89CPP = gcc -E
90CPPFLAGS =
91CXX = g++
92CXXCPP = g++ -E
93CXXDEPMODE = depmode=gcc3
94CXXFLAGS = -g -O2
95CYGPATH_W = echo
96DBG_CFLAGS = -O2
97DEBUG = 0
98DEFS = -DHAVE_CONFIG_H
99DEPDIR = .deps
100DLLTOOL = dlltool
101ECHO = echo
102ECHO_C =
103ECHO_N = -n
104ECHO_T =
105EGREP = /bin/grep -E
106EXEEXT =
107F77 =
108FFLAGS =
109GDKPIXBUF_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
110GDKPIXBUF_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
111GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
112GLIB_GENMARSHAL = glib-genmarshal
113GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
114GLIB_MKENUMS = glib-mkenums
115GOBJECT_QUERY = gobject-query
116GREP = /bin/grep
117GTKDOC_CHECK = /usr/bin/gtkdoc-check
118GTK_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
119GTK_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
120HTML_DIR = ${datadir}/gtk-doc/html
121INSTALL = /usr/bin/install -c
122INSTALL_DATA = ${INSTALL} -m 644
123INSTALL_PROGRAM = ${INSTALL}
124INSTALL_SCRIPT = ${INSTALL}
125INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
126LDFLAGS =
127LEX = flex
128LEXLIB = -lfl
129LEX_OUTPUT_ROOT = lex.yy
130LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
131LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
132LIBOBJS =
133LIBS = -lm
134LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
135LIBXML2_CFLAGS = -I/usr/include/libxml2
136LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
137LN_S = ln -s
138LTLIBOBJS =
139LTVERSION = 0:8:0
140MAGIC_LIBS = -lmagic
141MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
142MATH_LIBS = -lm
143MKDIR_P = /bin/mkdir -p
144OBJDUMP = objdump
145OBJEXT = o
146PACKAGE = libg3d
147PACKAGE_BUGREPORT =
148PACKAGE_NAME =
149PACKAGE_STRING =
150PACKAGE_TARNAME =
151PACKAGE_VERSION =
152PATH_SEPARATOR = :
153PKG_CONFIG = /usr/bin/pkg-config
154PLUGINS_LDFLAGS = -avoid-version -export-dynamic
155RANLIB = ranlib
156SET_MAKE =
157SHELL = /bin/bash
158STRIP = strip
159VERSION = 0.0.8
160XML2_CONFIG = /usr/bin/xml2-config
161XML_CPPFLAGS = -I/usr/include/libxml2
162XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
163Z_CFLAGS =
164Z_LIBS = -lz
165abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4
166abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4
167abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169ac_ct_CC = gcc
170ac_ct_CXX = g++
171ac_ct_F77 =
172am__include = include
173am__leading_dot = .
174am__quote =
175am__tar = ${AMTAR} chof - "$$tardir"
176am__untar = ${AMTAR} xf -
177bindir = ${exec_prefix}/bin
178build = x86_64-unknown-linux-gnu
179build_alias =
180build_cpu = x86_64
181build_os = linux-gnu
182build_vendor = unknown
183builddir = .
184datadir = ${datarootdir}
185datarootdir = ${prefix}/share
186docdir = ${datarootdir}/doc/${PACKAGE}
187dvidir = ${docdir}
188exec_prefix = ${prefix}
189host = x86_64-unknown-linux-gnu
190host_alias =
191host_cpu = x86_64
192host_os = linux-gnu
193host_vendor = unknown
194htmldir = ${docdir}
195includedir = ${prefix}/include
196infodir = ${datarootdir}/info
197install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
198libdir = ${exec_prefix}/lib
199libexecdir = ${exec_prefix}/libexec
200localedir = ${datarootdir}/locale
201localstatedir = ${prefix}/var
202mandir = ${datarootdir}/man
203mkdir_p = /bin/mkdir -p
204oldincludedir = /usr/include
205pdfdir = ${docdir}
206prefix = /usr/local
207program_transform_name = s,x,x,
208psdir = ${docdir}
209sbindir = ${exec_prefix}/sbin
210sharedstatedir = ${prefix}/com
211srcdir = .
212sysconfdir = ${prefix}/etc
213target_alias =
214top_builddir = ../../..
215top_srcdir = ../../..
216pluginimpdir = $(pkglibdir)/plugins/import
217#pluginimp_LTLIBRARIES = imp_r4.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 -O2 -DDEBUG=0 \
222 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 -avoid-version -export-dynamic
228
229imp_r4_la_SOURCES = imp_r4.c imp_r4_chunks.h \
230 imp_r4_callbacks.c imp_r4_callbacks.h
231
232imp_r4_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
233all: all-am
234
235.SUFFIXES:
236.SUFFIXES: .c .lo .o .obj
237$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
238 @for dep in $?; do \
239 case '$(am__configure_deps)' in \
240 *$$dep*) \
241 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
242 && exit 0; \
243 exit 1;; \
244 esac; \
245 done; \
246 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_r4/Makefile'; \
247 cd $(top_srcdir) && \
248 $(AUTOMAKE) --gnu plugins/import/imp_r4/Makefile
249.PRECIOUS: Makefile
250Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
251 @case '$?' in \
252 *config.status*) \
253 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
254 *) \
255 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
256 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
257 esac;
258
259$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261
262$(top_srcdir)/configure: $(am__configure_deps)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264$(ACLOCAL_M4): $(am__aclocal_m4_deps)
265 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
266install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
267 @$(NORMAL_INSTALL)
268 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
269 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
270 if test -f $$p; then \
271 f=$(am__strip_dir) \
272 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
273 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
274 else :; fi; \
275 done
276
277uninstall-pluginimpLTLIBRARIES:
278 @$(NORMAL_UNINSTALL)
279 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
280 p=$(am__strip_dir) \
281 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
282 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
283 done
284
285clean-pluginimpLTLIBRARIES:
286 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
287 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
288 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
289 test "$$dir" != "$$p" || dir=.; \
290 echo "rm -f \"$${dir}/so_locations\""; \
291 rm -f "$${dir}/so_locations"; \
292 done
293imp_r4.la: $(imp_r4_la_OBJECTS) $(imp_r4_la_DEPENDENCIES)
294 $(LINK) $(am_imp_r4_la_rpath) $(imp_r4_la_OBJECTS) $(imp_r4_la_LIBADD) $(LIBS)
295
296mostlyclean-compile:
297 -rm -f *.$(OBJEXT)
298
299distclean-compile:
300 -rm -f *.tab.c
301
302include ./$(DEPDIR)/imp_r4.Plo
303include ./$(DEPDIR)/imp_r4_callbacks.Plo
304
305.c.o:
306 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
307 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
308# source='$<' object='$@' libtool=no \
309# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
310# $(COMPILE) -c $<
311
312.c.obj:
313 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
314 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
315# source='$<' object='$@' libtool=no \
316# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
317# $(COMPILE) -c `$(CYGPATH_W) '$<'`
318
319.c.lo:
320 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
321 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
322# source='$<' object='$@' libtool=yes \
323# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
324# $(LTCOMPILE) -c -o $@ $<
325
326mostlyclean-libtool:
327 -rm -f *.lo
328
329clean-libtool:
330 -rm -rf .libs _libs
331
332ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
333 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
334 unique=`for i in $$list; do \
335 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
336 done | \
337 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
338 END { if (nonempty) { for (i in files) print i; }; }'`; \
339 mkid -fID $$unique
340tags: TAGS
341
342TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
343 $(TAGS_FILES) $(LISP)
344 tags=; \
345 here=`pwd`; \
346 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
347 unique=`for i in $$list; do \
348 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
349 done | \
350 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
351 END { if (nonempty) { for (i in files) print i; }; }'`; \
352 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
353 test -n "$$unique" || unique=$$empty_fix; \
354 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
355 $$tags $$unique; \
356 fi
357ctags: CTAGS
358CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
359 $(TAGS_FILES) $(LISP)
360 tags=; \
361 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
362 unique=`for i in $$list; do \
363 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
364 done | \
365 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
366 END { if (nonempty) { for (i in files) print i; }; }'`; \
367 test -z "$(CTAGS_ARGS)$$tags$$unique" \
368 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
369 $$tags $$unique
370
371GTAGS:
372 here=`$(am__cd) $(top_builddir) && pwd` \
373 && cd $(top_srcdir) \
374 && gtags -i $(GTAGS_ARGS) $$here
375
376distclean-tags:
377 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
378
379distdir: $(DISTFILES)
380 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
381 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
382 list='$(DISTFILES)'; \
383 dist_files=`for file in $$list; do echo $$file; done | \
384 sed -e "s|^$$srcdirstrip/||;t" \
385 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
386 case $$dist_files in \
387 */*) $(MKDIR_P) `echo "$$dist_files" | \
388 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
389 sort -u` ;; \
390 esac; \
391 for file in $$dist_files; do \
392 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
393 if test -d $$d/$$file; then \
394 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
395 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
396 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
397 fi; \
398 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
399 else \
400 test -f $(distdir)/$$file \
401 || cp -p $$d/$$file $(distdir)/$$file \
402 || exit 1; \
403 fi; \
404 done
405check-am: all-am
406check: check-am
407all-am: Makefile $(LTLIBRARIES)
408installdirs:
409 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
410 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
411 done
412install: install-am
413install-exec: install-exec-am
414install-data: install-data-am
415uninstall: uninstall-am
416
417install-am: all-am
418 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
419
420installcheck: installcheck-am
421install-strip:
422 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
423 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
424 `test -z '$(STRIP)' || \
425 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
426mostlyclean-generic:
427
428clean-generic:
429
430distclean-generic:
431 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
432
433maintainer-clean-generic:
434 @echo "This command is intended for maintainers to use"
435 @echo "it deletes files that may require special tools to rebuild."
436clean: clean-am
437
438clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
439 mostlyclean-am
440
441distclean: distclean-am
442 -rm -rf ./$(DEPDIR)
443 -rm -f Makefile
444distclean-am: clean-am distclean-compile distclean-generic \
445 distclean-tags
446
447dvi: dvi-am
448
449dvi-am:
450
451html: html-am
452
453info: info-am
454
455info-am:
456
457install-data-am: install-pluginimpLTLIBRARIES
458
459install-dvi: install-dvi-am
460
461install-exec-am:
462
463install-html: install-html-am
464
465install-info: install-info-am
466
467install-man:
468
469install-pdf: install-pdf-am
470
471install-ps: install-ps-am
472
473installcheck-am:
474
475maintainer-clean: maintainer-clean-am
476 -rm -rf ./$(DEPDIR)
477 -rm -f Makefile
478maintainer-clean-am: distclean-am maintainer-clean-generic
479
480mostlyclean: mostlyclean-am
481
482mostlyclean-am: mostlyclean-compile mostlyclean-generic \
483 mostlyclean-libtool
484
485pdf: pdf-am
486
487pdf-am:
488
489ps: ps-am
490
491ps-am:
492
493uninstall-am: uninstall-pluginimpLTLIBRARIES
494
495.MAKE: install-am install-strip
496
497.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
498 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
499 distclean-compile distclean-generic distclean-libtool \
500 distclean-tags distdir dvi dvi-am html html-am info info-am \
501 install install-am install-data install-data-am install-dvi \
502 install-dvi-am install-exec install-exec-am install-html \
503 install-html-am install-info install-info-am install-man \
504 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
505 install-ps install-ps-am install-strip installcheck \
506 installcheck-am installdirs maintainer-clean \
507 maintainer-clean-generic mostlyclean mostlyclean-compile \
508 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
509 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
510
511# Tell versions [3.59,3.63) of GNU make to not export all variables.
512# Otherwise a system limit (for SysV at least) may be exceeded.
513.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/Makefile.am
new file mode 100644
index 0000000..cdbfd40
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/Makefile.am
@@ -0,0 +1,23 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if EXPERIMENTAL
4pluginimp_LTLIBRARIES = imp_r4.la
5endif
6
7AM_CFLAGS = \
8 -Wall -ansi -pedantic \
9 -DG_LOG_DOMAIN=\"LibG3D\" \
10 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
11 @GLIB_CFLAGS@
12
13INCLUDES = -I$(top_srcdir)/include
14
15AM_LDFLAGS = \
16 -no-undefined -module \
17 @PLUGINS_LDFLAGS@
18
19LIBTOOL += --quiet
20
21imp_r4_la_SOURCES = imp_r4.c imp_r4_chunks.h \
22 imp_r4_callbacks.c imp_r4_callbacks.h
23imp_r4_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/Makefile.in
new file mode 100644
index 0000000..1770521
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/Makefile.in
@@ -0,0 +1,513 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_r4
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_r4_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_r4_la_OBJECTS = imp_r4.lo imp_r4_callbacks.lo
59imp_r4_la_OBJECTS = $(am_imp_r4_la_OBJECTS)
60@EXPERIMENTAL_TRUE@am_imp_r4_la_rpath = -rpath $(pluginimpdir)
61DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_r4_la_SOURCES)
74DIST_SOURCES = $(imp_r4_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = @ACLOCAL@
79AMTAR = @AMTAR@
80AR = @AR@
81AS = @AS@
82AUTOCONF = @AUTOCONF@
83AUTOHEADER = @AUTOHEADER@
84AUTOMAKE = @AUTOMAKE@
85AWK = @AWK@
86CC = @CC@
87CCDEPMODE = @CCDEPMODE@
88CFLAGS = @CFLAGS@
89CPP = @CPP@
90CPPFLAGS = @CPPFLAGS@
91CXX = @CXX@
92CXXCPP = @CXXCPP@
93CXXDEPMODE = @CXXDEPMODE@
94CXXFLAGS = @CXXFLAGS@
95CYGPATH_W = @CYGPATH_W@
96DBG_CFLAGS = @DBG_CFLAGS@
97DEBUG = @DEBUG@
98DEFS = @DEFS@
99DEPDIR = @DEPDIR@
100DLLTOOL = @DLLTOOL@
101ECHO = @ECHO@
102ECHO_C = @ECHO_C@
103ECHO_N = @ECHO_N@
104ECHO_T = @ECHO_T@
105EGREP = @EGREP@
106EXEEXT = @EXEEXT@
107F77 = @F77@
108FFLAGS = @FFLAGS@
109GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
110GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
111GLIB_CFLAGS = @GLIB_CFLAGS@
112GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
113GLIB_LIBS = @GLIB_LIBS@
114GLIB_MKENUMS = @GLIB_MKENUMS@
115GOBJECT_QUERY = @GOBJECT_QUERY@
116GREP = @GREP@
117GTKDOC_CHECK = @GTKDOC_CHECK@
118GTK_CFLAGS = @GTK_CFLAGS@
119GTK_LIBS = @GTK_LIBS@
120HTML_DIR = @HTML_DIR@
121INSTALL = @INSTALL@
122INSTALL_DATA = @INSTALL_DATA@
123INSTALL_PROGRAM = @INSTALL_PROGRAM@
124INSTALL_SCRIPT = @INSTALL_SCRIPT@
125INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
126LDFLAGS = @LDFLAGS@
127LEX = @LEX@
128LEXLIB = @LEXLIB@
129LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
130LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
131LIBGSF_LIBS = @LIBGSF_LIBS@
132LIBOBJS = @LIBOBJS@
133LIBS = @LIBS@
134LIBTOOL = @LIBTOOL@ --quiet
135LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
136LIBXML2_LIBS = @LIBXML2_LIBS@
137LN_S = @LN_S@
138LTLIBOBJS = @LTLIBOBJS@
139LTVERSION = @LTVERSION@
140MAGIC_LIBS = @MAGIC_LIBS@
141MAKEINFO = @MAKEINFO@
142MATH_LIBS = @MATH_LIBS@
143MKDIR_P = @MKDIR_P@
144OBJDUMP = @OBJDUMP@
145OBJEXT = @OBJEXT@
146PACKAGE = @PACKAGE@
147PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
148PACKAGE_NAME = @PACKAGE_NAME@
149PACKAGE_STRING = @PACKAGE_STRING@
150PACKAGE_TARNAME = @PACKAGE_TARNAME@
151PACKAGE_VERSION = @PACKAGE_VERSION@
152PATH_SEPARATOR = @PATH_SEPARATOR@
153PKG_CONFIG = @PKG_CONFIG@
154PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
155RANLIB = @RANLIB@
156SET_MAKE = @SET_MAKE@
157SHELL = @SHELL@
158STRIP = @STRIP@
159VERSION = @VERSION@
160XML2_CONFIG = @XML2_CONFIG@
161XML_CPPFLAGS = @XML_CPPFLAGS@
162XML_LIBS = @XML_LIBS@
163Z_CFLAGS = @Z_CFLAGS@
164Z_LIBS = @Z_LIBS@
165abs_builddir = @abs_builddir@
166abs_srcdir = @abs_srcdir@
167abs_top_builddir = @abs_top_builddir@
168abs_top_srcdir = @abs_top_srcdir@
169ac_ct_CC = @ac_ct_CC@
170ac_ct_CXX = @ac_ct_CXX@
171ac_ct_F77 = @ac_ct_F77@
172am__include = @am__include@
173am__leading_dot = @am__leading_dot@
174am__quote = @am__quote@
175am__tar = @am__tar@
176am__untar = @am__untar@
177bindir = @bindir@
178build = @build@
179build_alias = @build_alias@
180build_cpu = @build_cpu@
181build_os = @build_os@
182build_vendor = @build_vendor@
183builddir = @builddir@
184datadir = @datadir@
185datarootdir = @datarootdir@
186docdir = @docdir@
187dvidir = @dvidir@
188exec_prefix = @exec_prefix@
189host = @host@
190host_alias = @host_alias@
191host_cpu = @host_cpu@
192host_os = @host_os@
193host_vendor = @host_vendor@
194htmldir = @htmldir@
195includedir = @includedir@
196infodir = @infodir@
197install_sh = @install_sh@
198libdir = @libdir@
199libexecdir = @libexecdir@
200localedir = @localedir@
201localstatedir = @localstatedir@
202mandir = @mandir@
203mkdir_p = @mkdir_p@
204oldincludedir = @oldincludedir@
205pdfdir = @pdfdir@
206prefix = @prefix@
207program_transform_name = @program_transform_name@
208psdir = @psdir@
209sbindir = @sbindir@
210sharedstatedir = @sharedstatedir@
211srcdir = @srcdir@
212sysconfdir = @sysconfdir@
213target_alias = @target_alias@
214top_builddir = @top_builddir@
215top_srcdir = @top_srcdir@
216pluginimpdir = $(pkglibdir)/plugins/import
217@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_r4.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
222 @GLIB_CFLAGS@
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 @PLUGINS_LDFLAGS@
228
229imp_r4_la_SOURCES = imp_r4.c imp_r4_chunks.h \
230 imp_r4_callbacks.c imp_r4_callbacks.h
231
232imp_r4_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
233all: all-am
234
235.SUFFIXES:
236.SUFFIXES: .c .lo .o .obj
237$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
238 @for dep in $?; do \
239 case '$(am__configure_deps)' in \
240 *$$dep*) \
241 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
242 && exit 0; \
243 exit 1;; \
244 esac; \
245 done; \
246 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_r4/Makefile'; \
247 cd $(top_srcdir) && \
248 $(AUTOMAKE) --gnu plugins/import/imp_r4/Makefile
249.PRECIOUS: Makefile
250Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
251 @case '$?' in \
252 *config.status*) \
253 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
254 *) \
255 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
256 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
257 esac;
258
259$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261
262$(top_srcdir)/configure: $(am__configure_deps)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264$(ACLOCAL_M4): $(am__aclocal_m4_deps)
265 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
266install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
267 @$(NORMAL_INSTALL)
268 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
269 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
270 if test -f $$p; then \
271 f=$(am__strip_dir) \
272 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
273 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
274 else :; fi; \
275 done
276
277uninstall-pluginimpLTLIBRARIES:
278 @$(NORMAL_UNINSTALL)
279 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
280 p=$(am__strip_dir) \
281 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
282 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
283 done
284
285clean-pluginimpLTLIBRARIES:
286 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
287 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
288 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
289 test "$$dir" != "$$p" || dir=.; \
290 echo "rm -f \"$${dir}/so_locations\""; \
291 rm -f "$${dir}/so_locations"; \
292 done
293imp_r4.la: $(imp_r4_la_OBJECTS) $(imp_r4_la_DEPENDENCIES)
294 $(LINK) $(am_imp_r4_la_rpath) $(imp_r4_la_OBJECTS) $(imp_r4_la_LIBADD) $(LIBS)
295
296mostlyclean-compile:
297 -rm -f *.$(OBJEXT)
298
299distclean-compile:
300 -rm -f *.tab.c
301
302@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_r4.Plo@am__quote@
303@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_r4_callbacks.Plo@am__quote@
304
305.c.o:
306@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
307@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
308@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
309@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
310@am__fastdepCC_FALSE@ $(COMPILE) -c $<
311
312.c.obj:
313@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
314@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
315@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
316@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
317@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
318
319.c.lo:
320@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
321@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
322@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
323@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
324@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
325
326mostlyclean-libtool:
327 -rm -f *.lo
328
329clean-libtool:
330 -rm -rf .libs _libs
331
332ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
333 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
334 unique=`for i in $$list; do \
335 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
336 done | \
337 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
338 END { if (nonempty) { for (i in files) print i; }; }'`; \
339 mkid -fID $$unique
340tags: TAGS
341
342TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
343 $(TAGS_FILES) $(LISP)
344 tags=; \
345 here=`pwd`; \
346 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
347 unique=`for i in $$list; do \
348 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
349 done | \
350 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
351 END { if (nonempty) { for (i in files) print i; }; }'`; \
352 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
353 test -n "$$unique" || unique=$$empty_fix; \
354 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
355 $$tags $$unique; \
356 fi
357ctags: CTAGS
358CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
359 $(TAGS_FILES) $(LISP)
360 tags=; \
361 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
362 unique=`for i in $$list; do \
363 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
364 done | \
365 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
366 END { if (nonempty) { for (i in files) print i; }; }'`; \
367 test -z "$(CTAGS_ARGS)$$tags$$unique" \
368 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
369 $$tags $$unique
370
371GTAGS:
372 here=`$(am__cd) $(top_builddir) && pwd` \
373 && cd $(top_srcdir) \
374 && gtags -i $(GTAGS_ARGS) $$here
375
376distclean-tags:
377 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
378
379distdir: $(DISTFILES)
380 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
381 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
382 list='$(DISTFILES)'; \
383 dist_files=`for file in $$list; do echo $$file; done | \
384 sed -e "s|^$$srcdirstrip/||;t" \
385 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
386 case $$dist_files in \
387 */*) $(MKDIR_P) `echo "$$dist_files" | \
388 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
389 sort -u` ;; \
390 esac; \
391 for file in $$dist_files; do \
392 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
393 if test -d $$d/$$file; then \
394 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
395 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
396 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
397 fi; \
398 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
399 else \
400 test -f $(distdir)/$$file \
401 || cp -p $$d/$$file $(distdir)/$$file \
402 || exit 1; \
403 fi; \
404 done
405check-am: all-am
406check: check-am
407all-am: Makefile $(LTLIBRARIES)
408installdirs:
409 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
410 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
411 done
412install: install-am
413install-exec: install-exec-am
414install-data: install-data-am
415uninstall: uninstall-am
416
417install-am: all-am
418 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
419
420installcheck: installcheck-am
421install-strip:
422 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
423 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
424 `test -z '$(STRIP)' || \
425 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
426mostlyclean-generic:
427
428clean-generic:
429
430distclean-generic:
431 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
432
433maintainer-clean-generic:
434 @echo "This command is intended for maintainers to use"
435 @echo "it deletes files that may require special tools to rebuild."
436clean: clean-am
437
438clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
439 mostlyclean-am
440
441distclean: distclean-am
442 -rm -rf ./$(DEPDIR)
443 -rm -f Makefile
444distclean-am: clean-am distclean-compile distclean-generic \
445 distclean-tags
446
447dvi: dvi-am
448
449dvi-am:
450
451html: html-am
452
453info: info-am
454
455info-am:
456
457install-data-am: install-pluginimpLTLIBRARIES
458
459install-dvi: install-dvi-am
460
461install-exec-am:
462
463install-html: install-html-am
464
465install-info: install-info-am
466
467install-man:
468
469install-pdf: install-pdf-am
470
471install-ps: install-ps-am
472
473installcheck-am:
474
475maintainer-clean: maintainer-clean-am
476 -rm -rf ./$(DEPDIR)
477 -rm -f Makefile
478maintainer-clean-am: distclean-am maintainer-clean-generic
479
480mostlyclean: mostlyclean-am
481
482mostlyclean-am: mostlyclean-compile mostlyclean-generic \
483 mostlyclean-libtool
484
485pdf: pdf-am
486
487pdf-am:
488
489ps: ps-am
490
491ps-am:
492
493uninstall-am: uninstall-pluginimpLTLIBRARIES
494
495.MAKE: install-am install-strip
496
497.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
498 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
499 distclean-compile distclean-generic distclean-libtool \
500 distclean-tags distdir dvi dvi-am html html-am info info-am \
501 install install-am install-data install-data-am install-dvi \
502 install-dvi-am install-exec install-exec-am install-html \
503 install-html-am install-info install-info-am install-man \
504 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
505 install-ps install-ps-am install-strip installcheck \
506 installcheck-am installdirs maintainer-clean \
507 maintainer-clean-generic mostlyclean mostlyclean-compile \
508 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
509 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
510
511# Tell versions [3.59,3.63) of GNU make to not export all variables.
512# Otherwise a system limit (for SysV at least) may be exceeded.
513.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4.c
new file mode 100644
index 0000000..8367461
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4.c
@@ -0,0 +1,79 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <string.h>
25
26#include <glib.h>
27
28#include <g3d/stream.h>
29#include <g3d/iff.h>
30
31#include "imp_r4_chunks.h"
32
33EAPI
34gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
35 G3DModel *model, gpointer user_data)
36{
37 G3DIffGlobal *global;
38 G3DIffLocal *local;
39 guint32 id;
40 gsize len;
41
42 if(!g3d_iff_check(stream, &id, &len) ||
43 id != G3D_IFF_MKID('R','E','F','L')) {
44 g_warning("file is not an .r4 (REFL) file %s", stream->uri);
45 return FALSE;
46 }
47
48 local = g_new0(G3DIffLocal, 1);
49 global = g_new0(G3DIffGlobal, 1);
50
51 global->context = context;
52 global->model = model;
53 global->stream = stream;
54
55 local->parent_id = id;
56 local->nb = len;
57
58 g3d_iff_read_ctnr(global, local, r4_chunks, G3D_IFF_PAD1);
59
60 g_free(local);
61 g_free(global);
62
63 return TRUE;
64}
65
66EAPI
67gchar *plugin_description(void)
68{
69 return g_strdup(
70 "Reflections R4 models.");
71}
72
73EAPI
74gchar **plugin_extensions(void)
75{
76 return g_strsplit("r4:r3:mon", ":", 0);
77}
78
79
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4_callbacks.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4_callbacks.c
new file mode 100644
index 0000000..01505b4
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4_callbacks.c
@@ -0,0 +1,418 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <g3d/iff.h>
23#include <g3d/stream.h>
24#include <g3d/material.h>
25#include <g3d/matrix.h>
26#include <g3d/vector.h>
27
28#include "imp_r4_chunks.h"
29
30#if DEBUG > 0
31static void hexdump(G3DStream *stream, guint32 len, gchar *prefix)
32{
33 guint32 i;
34 guint8 byte;
35
36 for(i = 0; i < len; i ++)
37 {
38 byte = g3d_stream_read_int8(stream);
39 if(((i % 16) == 0) && (i != 0))
40 g_print("\n");
41 if(((i % 16) == 0) && (i != (len - 1)))
42 g_print("%s: %06x: ", (prefix ? prefix : ""), i);
43 g_print("%02x", byte);
44 if((i % 4) == 3)
45 g_print(" ");
46 }
47 g_print("\n");
48}
49#endif
50
51static void dump_remaining(G3DIffGlobal *global, G3DIffLocal *local)
52{
53#if DEBUG > 0
54 gchar *id, *prefix;
55
56 id = g3d_iff_id_to_text(local->id);
57 prefix = g_strdup_printf("R4: %s", id);
58
59 if(local->nb > 0)
60 {
61 printf("R4: %s: %d bytes remaining @ 0x%08x\n", id, local->nb,
62 (guint32)g3d_stream_tell(global->stream));
63 hexdump(global->stream, local->nb, prefix);
64 local->nb = 0;
65 }
66
67 g_free(prefix);
68 g_free(id);
69#endif
70}
71
72#if DEBUG > 0
73static void flagstat_register(guint8 flags, guint32 *flagstats)
74{
75 guint32 i;
76
77 for(i = 0; i < 8; i ++)
78 if(flags & (1 << i))
79 flagstats[i] ++;
80}
81#endif
82
83static gchar *r4_read_string(G3DStream *stream, guint32 *r)
84{
85 gint32 len;
86 gchar *str;
87
88 len = g3d_stream_read_int16_be(stream);
89 str = g_malloc0(len + 1);
90 g3d_stream_read(stream, str, len);
91
92 if(r)
93 *r = len + 2;
94 return str;
95}
96
97/* triangles */
98gboolean r4_cb_DRE2(G3DIffGlobal *global, G3DIffLocal *local)
99{
100 G3DObject *object;
101 G3DFace *face;
102 guint32 ntris, r;
103 gint32 i, n_str;
104 guint8 u, max_u = 0;
105 gchar *name;
106#if DEBUG > 0
107 guint32 flagstats[8];
108#endif
109
110 object = g_new0(G3DObject, 1);
111 object->name = g_strdup("(default)");
112 global->model->objects = g_slist_append(global->model->objects, object);
113 local->object = object;
114
115 /* RGE1 */
116 g3d_iff_handle_chunk(global, local, r4_chunks, G3D_IFF_PAD1);
117
118#if DEBUG > 2
119 printf("R4: DRE2 offset after RGE1 chunk: 0x%08x\n",
120 (guint32)g3d_stream_tell(global->stream));
121#endif
122
123 /* read triangles */
124 ntris = g3d_stream_read_int32_be(global->stream);
125#if DEBUG > 0
126 printf("R4: DRE2: %d triangles\n", ntris);
127#endif
128 local->nb -= 4;
129 for(i = 0; i < ntris; i ++)
130 {
131 face = g_new0(G3DFace, 1);
132 face->material = g_slist_nth_data(global->model->materials, 0);
133 face->vertex_count = 3;
134 face->vertex_indices = g_new0(guint32, 3);
135 face->vertex_indices[0] = g3d_stream_read_int32_be(global->stream);
136 face->vertex_indices[1] = g3d_stream_read_int32_be(global->stream);
137 face->vertex_indices[2] = g3d_stream_read_int32_be(global->stream);
138 local->nb -= 12;
139 object->faces = g_slist_append(object->faces, face);
140 }
141
142#if DEBUG > 0
143 /* flags/index of material? */
144 for(i = 0; i < 8; i ++)
145 flagstats[i] = 0;
146#endif
147
148 for(i = 0; i < ntris; i ++)
149 {
150 u = g3d_stream_read_int8(global->stream);
151 local->nb --;
152 if(u > max_u)
153 max_u = u;
154#if DEBUG > 0
155 flagstat_register(u, flagstats);
156#endif
157 }
158
159#if DEBUG > 0
160 for(i = 0; i < 8; i ++)
161 printf("R4: DRE2: flag 2^%d: %u\n", i, flagstats[i]);
162#endif
163
164#if DEBUG > 0
165 printf("R4: DRE2: max. flag: %d\n", max_u);
166#endif
167
168#if 1
169 /* some strings */
170 n_str = g3d_stream_read_int32_be(global->stream);
171 /* may be 0xFFFFFFFF = -1 */
172 local->nb -= 4;
173 g_debug("R4: DRE2: %d string(s) @ 0x%08x:", n_str,
174 (guint32)g3d_stream_tell(global->stream));
175 for(i = 0; i < MIN(n_str, 1); i ++) {
176 name = r4_read_string(global->stream, &r);
177 local->nb -= r;
178#if DEBUG > 0
179 g_debug("R4: DRE2: '%s' (%d)", name, r - 2);
180#endif
181 g_free(name);
182 }
183#endif
184
185 dump_remaining(global, local);
186
187 /* remove transformation if set */
188 if(object->transformation)
189 {
190 g_free(object->transformation);
191 object->transformation = NULL;
192 }
193
194 return TRUE;
195}
196
197/* material: GMAT, GMA0 */
198gboolean r4_cb_GMAx(G3DIffGlobal *global, G3DIffLocal *local)
199{
200 G3DMaterial *material;
201 gpointer object;
202
203 /* ROBJ */
204 object = g3d_iff_handle_chunk(global, local, r4_chunks, G3D_IFF_PAD1);
205
206 if(object)
207 {
208 material = g3d_material_new();
209 material->name = g_convert((gchar *)object, -1,
210 "UTF-8", "ISO-8859-1",
211 NULL, NULL, NULL);
212 g_free(object);
213
214 if(local->object)
215 ((G3DObject *)local->object)->materials = g_slist_append(
216 ((G3DObject *)local->object)->materials, material);
217 else
218 global->model->materials = g_slist_append(global->model->materials,
219 material);
220
221 if(local->id == G3D_IFF_MKID('G','M','A','T'))
222 {
223 material->r = g3d_stream_read_float_be(global->stream);
224 material->g = g3d_stream_read_float_be(global->stream);
225 material->b = g3d_stream_read_float_be(global->stream);
226 local->nb -= 12;
227 }
228 }
229
230 dump_remaining(global, local);
231
232 return TRUE;
233}
234
235/* coordinate system */
236gboolean r4_cb_KSYS(G3DIffGlobal *global, G3DIffLocal *local)
237{
238 G3DFloat x, y, z, f;
239 G3DObject *object;
240 G3DTransformation *transform;
241 gint32 i, j;
242
243 x = g3d_stream_read_float_be(global->stream);
244 y = g3d_stream_read_float_be(global->stream);
245 z = g3d_stream_read_float_be(global->stream);
246 local->nb -= 12;
247
248#if DEBUG > 2
249 printf("R4: KSYS: %f, %f, %f\n", x, y, z);
250#endif
251
252 object = (G3DObject *)local->object;
253 if(object)
254 {
255 transform = g_new0(G3DTransformation, 1);
256 g3d_matrix_identity(transform->matrix);
257 g3d_matrix_translate(x, y, z, transform->matrix);
258
259 object->transformation = transform;
260
261 /* matrix parts */
262 for(j = 0; j < 3; j ++)
263 for(i = 0; i < 3; i ++)
264 transform->matrix[j * 4 + i] = g3d_stream_read_float_be(global->stream);
265 local->nb -= 36;
266
267 /* scale part */
268 f = g3d_stream_read_float_be(global->stream);
269 local->nb -= 4;
270 g3d_matrix_scale(f, f, f, transform->matrix);
271 }
272
273 return TRUE;
274}
275
276/* sphere */
277gboolean r4_cb_KUG1(G3DIffGlobal *global, G3DIffLocal *local)
278{
279 /* RGE1 */
280 g3d_iff_handle_chunk(global, local, r4_chunks, G3D_IFF_PAD1);
281
282 dump_remaining(global, local);
283
284 return TRUE;
285}
286
287/* light */
288gboolean r4_cb_LGH3(G3DIffGlobal *global, G3DIffLocal *local)
289{
290 /* RGE1 */
291 g3d_iff_handle_chunk(global, local, r4_chunks, G3D_IFF_PAD1);
292
293 return TRUE;
294}
295
296/* points */
297gboolean r4_cb_PKTM(G3DIffGlobal *global, G3DIffLocal *local)
298{
299 gint32 i, j;
300 G3DObject *object;
301
302 object = (G3DObject *)local->object;
303 if(object)
304 {
305 object->vertex_count = g3d_stream_read_int32_be(global->stream);
306 local->nb -= 4;
307 object->vertex_data = g_new0(G3DFloat, object->vertex_count * 3);
308 for(i = 0; i < object->vertex_count; i ++) {
309 for(j = 0; j < 3; j ++)
310 object->vertex_data[i * 3 + j] =
311 g3d_stream_read_float_be(global->stream);
312 local->nb -= 12;
313
314 /* transform vertices */
315 if(object->transformation) {
316 g3d_vector_transform(
317 object->vertex_data + i * 3 + 0,
318 object->vertex_data + i * 3 + 1,
319 object->vertex_data + i * 3 + 2,
320 object->transformation->matrix);
321 }
322 }
323 }
324
325 return TRUE;
326}
327
328/* geometry or something */
329gboolean r4_cb_RGE1(G3DIffGlobal *global, G3DIffLocal *local)
330{
331 gchar *name;
332
333 /* ROBJ */
334 name =
335 (gchar *)g3d_iff_handle_chunk(global, local, r4_chunks, G3D_IFF_PAD1);
336
337 if(name && local->object) {
338 g_free(((G3DObject *)local->object)->name);
339 ((G3DObject *)local->object)->name = g_convert(name, -1,
340 "UTF-8", "ISO-8859-1", NULL, NULL, NULL);
341 }
342
343 /* KSYS */
344 g3d_iff_handle_chunk(global, local, r4_chunks, G3D_IFF_PAD1);
345
346 /* PKTM */
347 g3d_iff_handle_chunk(global, local, r4_chunks, G3D_IFF_PAD1);
348
349 /* skip remaining bytes */
350 if(local->nb) {
351 g3d_stream_skip(global->stream, local->nb);
352 local->nb = 0;
353 }
354
355 dump_remaining(global, local);
356
357 return TRUE;
358}
359
360/* camera related: RKA2, RKA3 */
361gboolean r4_cb_RKAx(G3DIffGlobal *global, G3DIffLocal *local)
362{
363 /* handle RGE1 chunk */
364 g3d_iff_handle_chunk(global, local, r4_chunks, G3D_IFF_PAD1);
365
366 /* more stuff... */
367 /* TODO: */
368
369 return TRUE;
370}
371
372/* object name */
373gboolean r4_cb_ROBJ(G3DIffGlobal *global, G3DIffLocal *local)
374{
375 guint32 len;
376
377 local->level_object = r4_read_string(global->stream, &len);
378 local->nb -= (len + 2);
379
380#if DEBUG > 2
381 g_debug("[R4] ROBJ: %s", (gchar *)local->level_object);
382#endif
383
384 return TRUE;
385}
386
387/* surface: SURF, SUR1 */
388gboolean r4_cb_SURx(G3DIffGlobal *global, G3DIffLocal *local)
389{
390 /* GMAT or GMA1 */
391 g3d_iff_handle_chunk(global, local, r4_chunks, G3D_IFF_PAD1);
392
393 dump_remaining(global, local);
394
395 return TRUE;
396}
397
398/* texture material */
399gboolean r4_cb_TXM1(G3DIffGlobal *global, G3DIffLocal *local)
400{
401 /* SURF */
402 g3d_iff_handle_chunk(global, local, r4_chunks, G3D_IFF_PAD1);
403
404 dump_remaining(global, local);
405
406 return TRUE;
407}
408
409/* texture object? */
410gboolean r4_cb_TXO1(G3DIffGlobal *global, G3DIffLocal *local)
411{
412 /* RGE1 */
413 g3d_iff_handle_chunk(global, local, r4_chunks, G3D_IFF_PAD1);
414
415 dump_remaining(global, local);
416
417 return TRUE;
418}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4_callbacks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4_callbacks.h
new file mode 100644
index 0000000..8ee67b4
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4_callbacks.h
@@ -0,0 +1,40 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _G3D_R4_CALLBACKS_H
23#define _G3D_R4_CALLBACKS_H
24
25#include <g3d/iff.h>
26
27gboolean r4_cb_DRE2(G3DIffGlobal *global, G3DIffLocal *local);
28gboolean r4_cb_GMAx(G3DIffGlobal *global, G3DIffLocal *local);
29gboolean r4_cb_KSYS(G3DIffGlobal *global, G3DIffLocal *local);
30gboolean r4_cb_KUG1(G3DIffGlobal *global, G3DIffLocal *local);
31gboolean r4_cb_LGH3(G3DIffGlobal *global, G3DIffLocal *local);
32gboolean r4_cb_PKTM(G3DIffGlobal *global, G3DIffLocal *local);
33gboolean r4_cb_RGE1(G3DIffGlobal *global, G3DIffLocal *local);
34gboolean r4_cb_RKAx(G3DIffGlobal *global, G3DIffLocal *local);
35gboolean r4_cb_ROBJ(G3DIffGlobal *global, G3DIffLocal *local);
36gboolean r4_cb_SURx(G3DIffGlobal *global, G3DIffLocal *local);
37gboolean r4_cb_TXM1(G3DIffGlobal *global, G3DIffLocal *local);
38gboolean r4_cb_TXO1(G3DIffGlobal *global, G3DIffLocal *local);
39
40#endif /* _G3D_R4_CALLBACKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4_chunks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4_chunks.h
new file mode 100644
index 0000000..3b36851
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4_chunks.h
@@ -0,0 +1,62 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_R4_CHUNKS_H
23#define _IMP_R4_CHUNKS_H
24
25#include <g3d/iff.h>
26
27#include "imp_r4_callbacks.h"
28
29static G3DIffChunkInfo r4_chunks[] = {
30 { "AFX1", "unknown", 0, NULL }, /* mon */
31 { "DRE2", "triangles", 0, r4_cb_DRE2 },
32 { "DSP2", "unknown", 0, NULL }, /* R4.3 */
33 { "GLOW", "unknown", 0, NULL }, /* R4.3 */
34 { "GMA1", "material", 0, r4_cb_GMAx },
35 { "GMAT", "material", 0, r4_cb_GMAx },
36 { "INFO", "information", 0, NULL },
37 { "KSYS", "coordinate system", 0, r4_cb_KSYS },
38 { "KUG1", "sphere", 0, r4_cb_KUG1 },
39 { "LGH3", "light", 0, r4_cb_LGH3 },
40 { "MTEX", "unknown", 0, NULL }, /* mon */
41 { "NEB1", "fog?", 0, NULL }, /* mon */
42 { "NEBL", "fog?", 0, NULL },
43 { "PKL1", "unknown", 0, NULL }, /* R4.3 */
44 { "PKTM", "points", 0, r4_cb_PKTM },
45 { "POLY", "polygons", 0, NULL }, /* mon */
46 { "RGE1", "geometry", 0, r4_cb_RGE1 },
47 { "RKA2", "camera", 0, r4_cb_RKAx },
48 { "RKA3", "camera", 0, r4_cb_RKAx },
49 { "ROBJ", "object name", 0, r4_cb_ROBJ },
50 { "RSPG", "unknown", 0, NULL }, /* R4.3 */
51 { "SEQ1", "sequence", 0, NULL },
52 { "SEQ2", "sequence", 0, NULL },
53 { "SKE2", "unknown", 0, NULL }, /* R4.3 */
54 { "SUR1", "surface", 0, r4_cb_SURx },
55 { "SURF", "surface", 0, r4_cb_SURx },
56 { "TXM1", "unknown", 0, r4_cb_TXM1 },
57 { "TXO1", "unknown", 0, r4_cb_TXO1 },
58
59 { NULL, NULL, 0, NULL }
60};
61
62#endif /* _IMP_R4_CHUNKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/Makefile
new file mode 100644
index 0000000..5438e31
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/Makefile
@@ -0,0 +1,513 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_rbh/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_rbh
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_rbh_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_rbh_la_OBJECTS = imp_rbh.lo imp_rbh_callbacks.lo
59imp_rbh_la_OBJECTS = $(am_imp_rbh_la_OBJECTS)
60#am_imp_rbh_la_rpath = -rpath $(pluginimpdir)
61DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_rbh_la_SOURCES)
74DIST_SOURCES = $(imp_rbh_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
79AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
80AR = ar
81AS = as
82AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
83AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
84AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
85AWK = gawk
86CC = gcc
87CCDEPMODE = depmode=gcc3
88CFLAGS = -g -O2
89CPP = gcc -E
90CPPFLAGS =
91CXX = g++
92CXXCPP = g++ -E
93CXXDEPMODE = depmode=gcc3
94CXXFLAGS = -g -O2
95CYGPATH_W = echo
96DBG_CFLAGS = -O2
97DEBUG = 0
98DEFS = -DHAVE_CONFIG_H
99DEPDIR = .deps
100DLLTOOL = dlltool
101ECHO = echo
102ECHO_C =
103ECHO_N = -n
104ECHO_T =
105EGREP = /bin/grep -E
106EXEEXT =
107F77 =
108FFLAGS =
109GDKPIXBUF_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
110GDKPIXBUF_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
111GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
112GLIB_GENMARSHAL = glib-genmarshal
113GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
114GLIB_MKENUMS = glib-mkenums
115GOBJECT_QUERY = gobject-query
116GREP = /bin/grep
117GTKDOC_CHECK = /usr/bin/gtkdoc-check
118GTK_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
119GTK_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
120HTML_DIR = ${datadir}/gtk-doc/html
121INSTALL = /usr/bin/install -c
122INSTALL_DATA = ${INSTALL} -m 644
123INSTALL_PROGRAM = ${INSTALL}
124INSTALL_SCRIPT = ${INSTALL}
125INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
126LDFLAGS =
127LEX = flex
128LEXLIB = -lfl
129LEX_OUTPUT_ROOT = lex.yy
130LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
131LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
132LIBOBJS =
133LIBS = -lm
134LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
135LIBXML2_CFLAGS = -I/usr/include/libxml2
136LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
137LN_S = ln -s
138LTLIBOBJS =
139LTVERSION = 0:8:0
140MAGIC_LIBS = -lmagic
141MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
142MATH_LIBS = -lm
143MKDIR_P = /bin/mkdir -p
144OBJDUMP = objdump
145OBJEXT = o
146PACKAGE = libg3d
147PACKAGE_BUGREPORT =
148PACKAGE_NAME =
149PACKAGE_STRING =
150PACKAGE_TARNAME =
151PACKAGE_VERSION =
152PATH_SEPARATOR = :
153PKG_CONFIG = /usr/bin/pkg-config
154PLUGINS_LDFLAGS = -avoid-version -export-dynamic
155RANLIB = ranlib
156SET_MAKE =
157SHELL = /bin/bash
158STRIP = strip
159VERSION = 0.0.8
160XML2_CONFIG = /usr/bin/xml2-config
161XML_CPPFLAGS = -I/usr/include/libxml2
162XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
163Z_CFLAGS =
164Z_LIBS = -lz
165abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh
166abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh
167abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169ac_ct_CC = gcc
170ac_ct_CXX = g++
171ac_ct_F77 =
172am__include = include
173am__leading_dot = .
174am__quote =
175am__tar = ${AMTAR} chof - "$$tardir"
176am__untar = ${AMTAR} xf -
177bindir = ${exec_prefix}/bin
178build = x86_64-unknown-linux-gnu
179build_alias =
180build_cpu = x86_64
181build_os = linux-gnu
182build_vendor = unknown
183builddir = .
184datadir = ${datarootdir}
185datarootdir = ${prefix}/share
186docdir = ${datarootdir}/doc/${PACKAGE}
187dvidir = ${docdir}
188exec_prefix = ${prefix}
189host = x86_64-unknown-linux-gnu
190host_alias =
191host_cpu = x86_64
192host_os = linux-gnu
193host_vendor = unknown
194htmldir = ${docdir}
195includedir = ${prefix}/include
196infodir = ${datarootdir}/info
197install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
198libdir = ${exec_prefix}/lib
199libexecdir = ${exec_prefix}/libexec
200localedir = ${datarootdir}/locale
201localstatedir = ${prefix}/var
202mandir = ${datarootdir}/man
203mkdir_p = /bin/mkdir -p
204oldincludedir = /usr/include
205pdfdir = ${docdir}
206prefix = /usr/local
207program_transform_name = s,x,x,
208psdir = ${docdir}
209sbindir = ${exec_prefix}/sbin
210sharedstatedir = ${prefix}/com
211srcdir = .
212sysconfdir = ${prefix}/etc
213target_alias =
214top_builddir = ../../..
215top_srcdir = ../../..
216pluginimpdir = $(pkglibdir)/plugins/import
217#pluginimp_LTLIBRARIES = imp_rbh.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 -O2 -DDEBUG=0 \
222 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 -avoid-version -export-dynamic
228
229imp_rbh_la_SOURCES = imp_rbh.c imp_rbh_chunks.h \
230 imp_rbh_callbacks.c imp_rbh_callbacks.h
231
232imp_rbh_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
233all: all-am
234
235.SUFFIXES:
236.SUFFIXES: .c .lo .o .obj
237$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
238 @for dep in $?; do \
239 case '$(am__configure_deps)' in \
240 *$$dep*) \
241 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
242 && exit 0; \
243 exit 1;; \
244 esac; \
245 done; \
246 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_rbh/Makefile'; \
247 cd $(top_srcdir) && \
248 $(AUTOMAKE) --gnu plugins/import/imp_rbh/Makefile
249.PRECIOUS: Makefile
250Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
251 @case '$?' in \
252 *config.status*) \
253 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
254 *) \
255 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
256 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
257 esac;
258
259$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261
262$(top_srcdir)/configure: $(am__configure_deps)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264$(ACLOCAL_M4): $(am__aclocal_m4_deps)
265 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
266install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
267 @$(NORMAL_INSTALL)
268 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
269 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
270 if test -f $$p; then \
271 f=$(am__strip_dir) \
272 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
273 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
274 else :; fi; \
275 done
276
277uninstall-pluginimpLTLIBRARIES:
278 @$(NORMAL_UNINSTALL)
279 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
280 p=$(am__strip_dir) \
281 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
282 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
283 done
284
285clean-pluginimpLTLIBRARIES:
286 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
287 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
288 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
289 test "$$dir" != "$$p" || dir=.; \
290 echo "rm -f \"$${dir}/so_locations\""; \
291 rm -f "$${dir}/so_locations"; \
292 done
293imp_rbh.la: $(imp_rbh_la_OBJECTS) $(imp_rbh_la_DEPENDENCIES)
294 $(LINK) $(am_imp_rbh_la_rpath) $(imp_rbh_la_OBJECTS) $(imp_rbh_la_LIBADD) $(LIBS)
295
296mostlyclean-compile:
297 -rm -f *.$(OBJEXT)
298
299distclean-compile:
300 -rm -f *.tab.c
301
302include ./$(DEPDIR)/imp_rbh.Plo
303include ./$(DEPDIR)/imp_rbh_callbacks.Plo
304
305.c.o:
306 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
307 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
308# source='$<' object='$@' libtool=no \
309# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
310# $(COMPILE) -c $<
311
312.c.obj:
313 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
314 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
315# source='$<' object='$@' libtool=no \
316# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
317# $(COMPILE) -c `$(CYGPATH_W) '$<'`
318
319.c.lo:
320 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
321 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
322# source='$<' object='$@' libtool=yes \
323# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
324# $(LTCOMPILE) -c -o $@ $<
325
326mostlyclean-libtool:
327 -rm -f *.lo
328
329clean-libtool:
330 -rm -rf .libs _libs
331
332ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
333 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
334 unique=`for i in $$list; do \
335 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
336 done | \
337 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
338 END { if (nonempty) { for (i in files) print i; }; }'`; \
339 mkid -fID $$unique
340tags: TAGS
341
342TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
343 $(TAGS_FILES) $(LISP)
344 tags=; \
345 here=`pwd`; \
346 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
347 unique=`for i in $$list; do \
348 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
349 done | \
350 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
351 END { if (nonempty) { for (i in files) print i; }; }'`; \
352 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
353 test -n "$$unique" || unique=$$empty_fix; \
354 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
355 $$tags $$unique; \
356 fi
357ctags: CTAGS
358CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
359 $(TAGS_FILES) $(LISP)
360 tags=; \
361 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
362 unique=`for i in $$list; do \
363 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
364 done | \
365 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
366 END { if (nonempty) { for (i in files) print i; }; }'`; \
367 test -z "$(CTAGS_ARGS)$$tags$$unique" \
368 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
369 $$tags $$unique
370
371GTAGS:
372 here=`$(am__cd) $(top_builddir) && pwd` \
373 && cd $(top_srcdir) \
374 && gtags -i $(GTAGS_ARGS) $$here
375
376distclean-tags:
377 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
378
379distdir: $(DISTFILES)
380 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
381 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
382 list='$(DISTFILES)'; \
383 dist_files=`for file in $$list; do echo $$file; done | \
384 sed -e "s|^$$srcdirstrip/||;t" \
385 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
386 case $$dist_files in \
387 */*) $(MKDIR_P) `echo "$$dist_files" | \
388 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
389 sort -u` ;; \
390 esac; \
391 for file in $$dist_files; do \
392 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
393 if test -d $$d/$$file; then \
394 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
395 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
396 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
397 fi; \
398 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
399 else \
400 test -f $(distdir)/$$file \
401 || cp -p $$d/$$file $(distdir)/$$file \
402 || exit 1; \
403 fi; \
404 done
405check-am: all-am
406check: check-am
407all-am: Makefile $(LTLIBRARIES)
408installdirs:
409 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
410 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
411 done
412install: install-am
413install-exec: install-exec-am
414install-data: install-data-am
415uninstall: uninstall-am
416
417install-am: all-am
418 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
419
420installcheck: installcheck-am
421install-strip:
422 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
423 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
424 `test -z '$(STRIP)' || \
425 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
426mostlyclean-generic:
427
428clean-generic:
429
430distclean-generic:
431 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
432
433maintainer-clean-generic:
434 @echo "This command is intended for maintainers to use"
435 @echo "it deletes files that may require special tools to rebuild."
436clean: clean-am
437
438clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
439 mostlyclean-am
440
441distclean: distclean-am
442 -rm -rf ./$(DEPDIR)
443 -rm -f Makefile
444distclean-am: clean-am distclean-compile distclean-generic \
445 distclean-tags
446
447dvi: dvi-am
448
449dvi-am:
450
451html: html-am
452
453info: info-am
454
455info-am:
456
457install-data-am: install-pluginimpLTLIBRARIES
458
459install-dvi: install-dvi-am
460
461install-exec-am:
462
463install-html: install-html-am
464
465install-info: install-info-am
466
467install-man:
468
469install-pdf: install-pdf-am
470
471install-ps: install-ps-am
472
473installcheck-am:
474
475maintainer-clean: maintainer-clean-am
476 -rm -rf ./$(DEPDIR)
477 -rm -f Makefile
478maintainer-clean-am: distclean-am maintainer-clean-generic
479
480mostlyclean: mostlyclean-am
481
482mostlyclean-am: mostlyclean-compile mostlyclean-generic \
483 mostlyclean-libtool
484
485pdf: pdf-am
486
487pdf-am:
488
489ps: ps-am
490
491ps-am:
492
493uninstall-am: uninstall-pluginimpLTLIBRARIES
494
495.MAKE: install-am install-strip
496
497.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
498 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
499 distclean-compile distclean-generic distclean-libtool \
500 distclean-tags distdir dvi dvi-am html html-am info info-am \
501 install install-am install-data install-data-am install-dvi \
502 install-dvi-am install-exec install-exec-am install-html \
503 install-html-am install-info install-info-am install-man \
504 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
505 install-ps install-ps-am install-strip installcheck \
506 installcheck-am installdirs maintainer-clean \
507 maintainer-clean-generic mostlyclean mostlyclean-compile \
508 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
509 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
510
511# Tell versions [3.59,3.63) of GNU make to not export all variables.
512# Otherwise a system limit (for SysV at least) may be exceeded.
513.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/Makefile.am
new file mode 100644
index 0000000..3a8a5da
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/Makefile.am
@@ -0,0 +1,23 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if EXPERIMENTAL
4pluginimp_LTLIBRARIES = imp_rbh.la
5endif
6
7AM_CFLAGS = \
8 -Wall -ansi -pedantic \
9 -DG_LOG_DOMAIN=\"LibG3D\" \
10 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
11 @GLIB_CFLAGS@
12
13INCLUDES = -I$(top_srcdir)/include
14
15AM_LDFLAGS = \
16 -no-undefined -module \
17 @PLUGINS_LDFLAGS@
18
19LIBTOOL += --quiet
20
21imp_rbh_la_SOURCES = imp_rbh.c imp_rbh_chunks.h \
22 imp_rbh_callbacks.c imp_rbh_callbacks.h
23imp_rbh_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/Makefile.in
new file mode 100644
index 0000000..0220749
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/Makefile.in
@@ -0,0 +1,513 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_rbh
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_rbh_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_rbh_la_OBJECTS = imp_rbh.lo imp_rbh_callbacks.lo
59imp_rbh_la_OBJECTS = $(am_imp_rbh_la_OBJECTS)
60@EXPERIMENTAL_TRUE@am_imp_rbh_la_rpath = -rpath $(pluginimpdir)
61DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_rbh_la_SOURCES)
74DIST_SOURCES = $(imp_rbh_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = @ACLOCAL@
79AMTAR = @AMTAR@
80AR = @AR@
81AS = @AS@
82AUTOCONF = @AUTOCONF@
83AUTOHEADER = @AUTOHEADER@
84AUTOMAKE = @AUTOMAKE@
85AWK = @AWK@
86CC = @CC@
87CCDEPMODE = @CCDEPMODE@
88CFLAGS = @CFLAGS@
89CPP = @CPP@
90CPPFLAGS = @CPPFLAGS@
91CXX = @CXX@
92CXXCPP = @CXXCPP@
93CXXDEPMODE = @CXXDEPMODE@
94CXXFLAGS = @CXXFLAGS@
95CYGPATH_W = @CYGPATH_W@
96DBG_CFLAGS = @DBG_CFLAGS@
97DEBUG = @DEBUG@
98DEFS = @DEFS@
99DEPDIR = @DEPDIR@
100DLLTOOL = @DLLTOOL@
101ECHO = @ECHO@
102ECHO_C = @ECHO_C@
103ECHO_N = @ECHO_N@
104ECHO_T = @ECHO_T@
105EGREP = @EGREP@
106EXEEXT = @EXEEXT@
107F77 = @F77@
108FFLAGS = @FFLAGS@
109GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
110GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
111GLIB_CFLAGS = @GLIB_CFLAGS@
112GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
113GLIB_LIBS = @GLIB_LIBS@
114GLIB_MKENUMS = @GLIB_MKENUMS@
115GOBJECT_QUERY = @GOBJECT_QUERY@
116GREP = @GREP@
117GTKDOC_CHECK = @GTKDOC_CHECK@
118GTK_CFLAGS = @GTK_CFLAGS@
119GTK_LIBS = @GTK_LIBS@
120HTML_DIR = @HTML_DIR@
121INSTALL = @INSTALL@
122INSTALL_DATA = @INSTALL_DATA@
123INSTALL_PROGRAM = @INSTALL_PROGRAM@
124INSTALL_SCRIPT = @INSTALL_SCRIPT@
125INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
126LDFLAGS = @LDFLAGS@
127LEX = @LEX@
128LEXLIB = @LEXLIB@
129LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
130LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
131LIBGSF_LIBS = @LIBGSF_LIBS@
132LIBOBJS = @LIBOBJS@
133LIBS = @LIBS@
134LIBTOOL = @LIBTOOL@ --quiet
135LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
136LIBXML2_LIBS = @LIBXML2_LIBS@
137LN_S = @LN_S@
138LTLIBOBJS = @LTLIBOBJS@
139LTVERSION = @LTVERSION@
140MAGIC_LIBS = @MAGIC_LIBS@
141MAKEINFO = @MAKEINFO@
142MATH_LIBS = @MATH_LIBS@
143MKDIR_P = @MKDIR_P@
144OBJDUMP = @OBJDUMP@
145OBJEXT = @OBJEXT@
146PACKAGE = @PACKAGE@
147PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
148PACKAGE_NAME = @PACKAGE_NAME@
149PACKAGE_STRING = @PACKAGE_STRING@
150PACKAGE_TARNAME = @PACKAGE_TARNAME@
151PACKAGE_VERSION = @PACKAGE_VERSION@
152PATH_SEPARATOR = @PATH_SEPARATOR@
153PKG_CONFIG = @PKG_CONFIG@
154PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
155RANLIB = @RANLIB@
156SET_MAKE = @SET_MAKE@
157SHELL = @SHELL@
158STRIP = @STRIP@
159VERSION = @VERSION@
160XML2_CONFIG = @XML2_CONFIG@
161XML_CPPFLAGS = @XML_CPPFLAGS@
162XML_LIBS = @XML_LIBS@
163Z_CFLAGS = @Z_CFLAGS@
164Z_LIBS = @Z_LIBS@
165abs_builddir = @abs_builddir@
166abs_srcdir = @abs_srcdir@
167abs_top_builddir = @abs_top_builddir@
168abs_top_srcdir = @abs_top_srcdir@
169ac_ct_CC = @ac_ct_CC@
170ac_ct_CXX = @ac_ct_CXX@
171ac_ct_F77 = @ac_ct_F77@
172am__include = @am__include@
173am__leading_dot = @am__leading_dot@
174am__quote = @am__quote@
175am__tar = @am__tar@
176am__untar = @am__untar@
177bindir = @bindir@
178build = @build@
179build_alias = @build_alias@
180build_cpu = @build_cpu@
181build_os = @build_os@
182build_vendor = @build_vendor@
183builddir = @builddir@
184datadir = @datadir@
185datarootdir = @datarootdir@
186docdir = @docdir@
187dvidir = @dvidir@
188exec_prefix = @exec_prefix@
189host = @host@
190host_alias = @host_alias@
191host_cpu = @host_cpu@
192host_os = @host_os@
193host_vendor = @host_vendor@
194htmldir = @htmldir@
195includedir = @includedir@
196infodir = @infodir@
197install_sh = @install_sh@
198libdir = @libdir@
199libexecdir = @libexecdir@
200localedir = @localedir@
201localstatedir = @localstatedir@
202mandir = @mandir@
203mkdir_p = @mkdir_p@
204oldincludedir = @oldincludedir@
205pdfdir = @pdfdir@
206prefix = @prefix@
207program_transform_name = @program_transform_name@
208psdir = @psdir@
209sbindir = @sbindir@
210sharedstatedir = @sharedstatedir@
211srcdir = @srcdir@
212sysconfdir = @sysconfdir@
213target_alias = @target_alias@
214top_builddir = @top_builddir@
215top_srcdir = @top_srcdir@
216pluginimpdir = $(pkglibdir)/plugins/import
217@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_rbh.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
222 @GLIB_CFLAGS@
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 @PLUGINS_LDFLAGS@
228
229imp_rbh_la_SOURCES = imp_rbh.c imp_rbh_chunks.h \
230 imp_rbh_callbacks.c imp_rbh_callbacks.h
231
232imp_rbh_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
233all: all-am
234
235.SUFFIXES:
236.SUFFIXES: .c .lo .o .obj
237$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
238 @for dep in $?; do \
239 case '$(am__configure_deps)' in \
240 *$$dep*) \
241 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
242 && exit 0; \
243 exit 1;; \
244 esac; \
245 done; \
246 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_rbh/Makefile'; \
247 cd $(top_srcdir) && \
248 $(AUTOMAKE) --gnu plugins/import/imp_rbh/Makefile
249.PRECIOUS: Makefile
250Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
251 @case '$?' in \
252 *config.status*) \
253 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
254 *) \
255 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
256 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
257 esac;
258
259$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261
262$(top_srcdir)/configure: $(am__configure_deps)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264$(ACLOCAL_M4): $(am__aclocal_m4_deps)
265 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
266install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
267 @$(NORMAL_INSTALL)
268 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
269 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
270 if test -f $$p; then \
271 f=$(am__strip_dir) \
272 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
273 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
274 else :; fi; \
275 done
276
277uninstall-pluginimpLTLIBRARIES:
278 @$(NORMAL_UNINSTALL)
279 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
280 p=$(am__strip_dir) \
281 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
282 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
283 done
284
285clean-pluginimpLTLIBRARIES:
286 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
287 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
288 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
289 test "$$dir" != "$$p" || dir=.; \
290 echo "rm -f \"$${dir}/so_locations\""; \
291 rm -f "$${dir}/so_locations"; \
292 done
293imp_rbh.la: $(imp_rbh_la_OBJECTS) $(imp_rbh_la_DEPENDENCIES)
294 $(LINK) $(am_imp_rbh_la_rpath) $(imp_rbh_la_OBJECTS) $(imp_rbh_la_LIBADD) $(LIBS)
295
296mostlyclean-compile:
297 -rm -f *.$(OBJEXT)
298
299distclean-compile:
300 -rm -f *.tab.c
301
302@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_rbh.Plo@am__quote@
303@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_rbh_callbacks.Plo@am__quote@
304
305.c.o:
306@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
307@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
308@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
309@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
310@am__fastdepCC_FALSE@ $(COMPILE) -c $<
311
312.c.obj:
313@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
314@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
315@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
316@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
317@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
318
319.c.lo:
320@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
321@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
322@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
323@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
324@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
325
326mostlyclean-libtool:
327 -rm -f *.lo
328
329clean-libtool:
330 -rm -rf .libs _libs
331
332ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
333 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
334 unique=`for i in $$list; do \
335 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
336 done | \
337 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
338 END { if (nonempty) { for (i in files) print i; }; }'`; \
339 mkid -fID $$unique
340tags: TAGS
341
342TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
343 $(TAGS_FILES) $(LISP)
344 tags=; \
345 here=`pwd`; \
346 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
347 unique=`for i in $$list; do \
348 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
349 done | \
350 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
351 END { if (nonempty) { for (i in files) print i; }; }'`; \
352 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
353 test -n "$$unique" || unique=$$empty_fix; \
354 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
355 $$tags $$unique; \
356 fi
357ctags: CTAGS
358CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
359 $(TAGS_FILES) $(LISP)
360 tags=; \
361 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
362 unique=`for i in $$list; do \
363 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
364 done | \
365 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
366 END { if (nonempty) { for (i in files) print i; }; }'`; \
367 test -z "$(CTAGS_ARGS)$$tags$$unique" \
368 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
369 $$tags $$unique
370
371GTAGS:
372 here=`$(am__cd) $(top_builddir) && pwd` \
373 && cd $(top_srcdir) \
374 && gtags -i $(GTAGS_ARGS) $$here
375
376distclean-tags:
377 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
378
379distdir: $(DISTFILES)
380 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
381 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
382 list='$(DISTFILES)'; \
383 dist_files=`for file in $$list; do echo $$file; done | \
384 sed -e "s|^$$srcdirstrip/||;t" \
385 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
386 case $$dist_files in \
387 */*) $(MKDIR_P) `echo "$$dist_files" | \
388 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
389 sort -u` ;; \
390 esac; \
391 for file in $$dist_files; do \
392 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
393 if test -d $$d/$$file; then \
394 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
395 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
396 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
397 fi; \
398 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
399 else \
400 test -f $(distdir)/$$file \
401 || cp -p $$d/$$file $(distdir)/$$file \
402 || exit 1; \
403 fi; \
404 done
405check-am: all-am
406check: check-am
407all-am: Makefile $(LTLIBRARIES)
408installdirs:
409 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
410 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
411 done
412install: install-am
413install-exec: install-exec-am
414install-data: install-data-am
415uninstall: uninstall-am
416
417install-am: all-am
418 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
419
420installcheck: installcheck-am
421install-strip:
422 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
423 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
424 `test -z '$(STRIP)' || \
425 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
426mostlyclean-generic:
427
428clean-generic:
429
430distclean-generic:
431 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
432
433maintainer-clean-generic:
434 @echo "This command is intended for maintainers to use"
435 @echo "it deletes files that may require special tools to rebuild."
436clean: clean-am
437
438clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
439 mostlyclean-am
440
441distclean: distclean-am
442 -rm -rf ./$(DEPDIR)
443 -rm -f Makefile
444distclean-am: clean-am distclean-compile distclean-generic \
445 distclean-tags
446
447dvi: dvi-am
448
449dvi-am:
450
451html: html-am
452
453info: info-am
454
455info-am:
456
457install-data-am: install-pluginimpLTLIBRARIES
458
459install-dvi: install-dvi-am
460
461install-exec-am:
462
463install-html: install-html-am
464
465install-info: install-info-am
466
467install-man:
468
469install-pdf: install-pdf-am
470
471install-ps: install-ps-am
472
473installcheck-am:
474
475maintainer-clean: maintainer-clean-am
476 -rm -rf ./$(DEPDIR)
477 -rm -f Makefile
478maintainer-clean-am: distclean-am maintainer-clean-generic
479
480mostlyclean: mostlyclean-am
481
482mostlyclean-am: mostlyclean-compile mostlyclean-generic \
483 mostlyclean-libtool
484
485pdf: pdf-am
486
487pdf-am:
488
489ps: ps-am
490
491ps-am:
492
493uninstall-am: uninstall-pluginimpLTLIBRARIES
494
495.MAKE: install-am install-strip
496
497.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
498 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
499 distclean-compile distclean-generic distclean-libtool \
500 distclean-tags distdir dvi dvi-am html html-am info info-am \
501 install install-am install-data install-data-am install-dvi \
502 install-dvi-am install-exec install-exec-am install-html \
503 install-html-am install-info install-info-am install-man \
504 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
505 install-ps install-ps-am install-strip installcheck \
506 installcheck-am installdirs maintainer-clean \
507 maintainer-clean-generic mostlyclean mostlyclean-compile \
508 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
509 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
510
511# Tell versions [3.59,3.63) of GNU make to not export all variables.
512# Otherwise a system limit (for SysV at least) may be exceeded.
513.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh.c
new file mode 100644
index 0000000..c763dab
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh.c
@@ -0,0 +1,88 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <string.h>
25
26#include <glib.h>
27
28#include <g3d/iff.h>
29#include <g3d/stream.h>
30
31#include "imp_rbh_chunks.h"
32
33EAPI
34gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
35 G3DModel *model, gpointer user_data)
36{
37 G3DIffGlobal *global;
38 G3DIffLocal *local;
39 guint32 id, len;
40
41 id = g3d_stream_read_int32_be(stream);
42 len = g3d_stream_read_int32_le(stream);
43
44 if(id != G3D_IFF_MKID('P', 'I', 'F', 'F'))
45 {
46 g_warning("%s is not a PIFF file", stream->uri);
47 return FALSE;
48 }
49
50 id = g3d_stream_read_int32_be(stream);
51 len -= 4;
52 if(id != G3D_IFF_MKID('R', 'B', 'H', 'F'))
53 {
54 g_warning("%s is not a RBHF file", stream->uri);
55 return FALSE;
56 }
57
58 local = g_new0(G3DIffLocal, 1);
59 global = g_new0(G3DIffGlobal, 1);
60
61 global->context = context;
62 global->model = model;
63 global->stream = stream;
64
65 local->parent_id = id;
66 local->nb = len;
67
68 g3d_iff_read_ctnr(global, local, rbh_chunks, G3D_IFF_LE | G3D_IFF_PAD2);
69
70 g_free(local);
71 g_free(global);
72
73 return TRUE;
74
75}
76
77EAPI
78gchar *plugin_description(void)
79{
80 return g_strdup("Discworld Noir models.");
81}
82
83EAPI
84gchar **plugin_extensions(void)
85{
86 return g_strsplit("rbh", ":", 0);
87}
88
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh_callbacks.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh_callbacks.c
new file mode 100644
index 0000000..04dca62
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh_callbacks.c
@@ -0,0 +1,116 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <string.h>
23
24#include <g3d/iff.h>
25#include <g3d/stream.h>
26#include <g3d/material.h>
27#include <g3d/debug.h>
28
29static gchar *padding = " ";
30
31/* header */
32gboolean rbh_cb_RBHH(G3DIffGlobal *global, G3DIffLocal *local)
33{
34 guint32 x0, x1, x2;
35 guint32 i, num;
36
37 num = local->nb / 12;
38 for(i = 0; i < num; i ++)
39 {
40 x0 = g3d_stream_read_int32_le(global->stream);
41 x1 = g3d_stream_read_int32_le(global->stream);
42 x2 = g3d_stream_read_int32_le(global->stream);
43 local->nb -= 12;
44
45 g_debug("\\%s[RBH][RBHH] %d: 0x%08x 0x%08x 0x%08x",
46 padding + (strlen(padding) - local->level),
47 i + 1, x0, x1, x2);
48 }
49
50 return TRUE;
51}
52
53/* body */
54gboolean rbh_cb_BODY(G3DIffGlobal *global, G3DIffLocal *local)
55{
56 guint32 nverts, nfaces;
57 guint32 maxx = 0, x;
58 G3DObject *object;
59 G3DMaterial *material;
60
61 if(local->nb < 4) return TRUE; /* zero size BODY tags? */
62
63
64 nverts = g3d_stream_read_int16_le(global->stream);
65
66 nfaces = g3d_stream_read_int16_le(global->stream);
67 local->nb -= 4;
68
69 g_debug(
70 "\\%s[RBH][BODY] %d verts, %d faces, %d bytes remaining (%d x 4 + %d)",
71 padding + (strlen(padding) - local->level),
72 nverts, nfaces, local->nb,
73 local->nb / 4, local->nb % 4);
74
75 if(nverts == 0) return TRUE; /* skip for now */
76
77 object = g_new0(G3DObject, 1);
78 object->name = g_strdup("BODY");
79
80 material = g3d_material_new();
81 object->materials = g_slist_append(object->materials, material);
82
83 global->model->objects = g_slist_append(global->model->objects, object);
84
85 while(local->nb >= 4)
86 {
87 x = g3d_stream_read_int32_le(global->stream);
88 if(x > maxx) maxx = x;
89 local->nb -= 4;
90 }
91
92 g_debug("\\%s[RBH][BODY] max. value: %d",
93 padding + (strlen(padding) - local->level),
94 maxx);
95
96 return TRUE;
97}
98
99/* ?? */
100gboolean rbh_cb_RELC(G3DIffGlobal *global, G3DIffLocal *local)
101{
102 guint32 maxx = 0, x;
103
104 while(local->nb >= 4)
105 {
106 x = g3d_stream_read_int32_le(global->stream);
107 if(x > maxx) maxx = x;
108 local->nb -= 4;
109 }
110
111 g_debug("\\%s[RBH][RELC] max. value: %d",
112 padding + (strlen(padding) - local->level),
113 maxx);
114
115 return TRUE;
116}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh_callbacks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh_callbacks.h
new file mode 100644
index 0000000..d6b8d1d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh_callbacks.h
@@ -0,0 +1,32 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef _IMP_RBH_CALLBACKS_H
24#define _IMP_RBH_CALLBACKS_H
25
26#include <g3d/iff.h>
27
28gboolean rbh_cb_RBHH(G3DIffGlobal *global, G3DIffLocal *local);
29gboolean rbh_cb_BODY(G3DIffGlobal *global, G3DIffLocal *local);
30gboolean rbh_cb_RELC(G3DIffGlobal *global, G3DIffLocal *local);
31
32#endif /* _IMP_RBH_CALLBACKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh_chunks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh_chunks.h
new file mode 100644
index 0000000..da8be20
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh_chunks.h
@@ -0,0 +1,38 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef _IMP_RBH_CHUNKS_H
24#define _IMP_RBH_CHUNKS_H
25
26#include <g3d/iff.h>
27
28#include "imp_rbh_callbacks.h"
29
30static G3DIffChunkInfo rbh_chunks[] = {
31 { "RBHH", "RBH header", 0, rbh_cb_RBHH },
32 { "BODY", "body", 0, rbh_cb_BODY },
33 { "RELC", "unknown", 0, rbh_cb_RELC },
34
35 { NULL, NULL, 0, NULL }
36};
37
38#endif /* _IMP_RBH_CHUNKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/Makefile
new file mode 100644
index 0000000..0a8e16c
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/Makefile
@@ -0,0 +1,516 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_skp/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_skp
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_skp_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_skp_la_OBJECTS = imp_skp.lo imp_skp_callbacks.lo \
59 imp_skp_read.lo
60imp_skp_la_OBJECTS = $(am_imp_skp_la_OBJECTS)
61#am_imp_skp_la_rpath = -rpath $(pluginimpdir)
62DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
63depcomp = $(SHELL) $(top_srcdir)/config/depcomp
64am__depfiles_maybe = depfiles
65COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
66 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
67LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
68 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
69 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
70CCLD = $(CC)
71LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
72 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
73 $(LDFLAGS) -o $@
74SOURCES = $(imp_skp_la_SOURCES)
75DIST_SOURCES = $(imp_skp_la_SOURCES)
76ETAGS = etags
77CTAGS = ctags
78DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
79ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
80AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
81AR = ar
82AS = as
83AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
84AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
85AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
86AWK = gawk
87CC = gcc
88CCDEPMODE = depmode=gcc3
89CFLAGS = -g -O2
90CPP = gcc -E
91CPPFLAGS =
92CXX = g++
93CXXCPP = g++ -E
94CXXDEPMODE = depmode=gcc3
95CXXFLAGS = -g -O2
96CYGPATH_W = echo
97DBG_CFLAGS = -O2
98DEBUG = 0
99DEFS = -DHAVE_CONFIG_H
100DEPDIR = .deps
101DLLTOOL = dlltool
102ECHO = echo
103ECHO_C =
104ECHO_N = -n
105ECHO_T =
106EGREP = /bin/grep -E
107EXEEXT =
108F77 =
109FFLAGS =
110GDKPIXBUF_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
111GDKPIXBUF_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
112GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
113GLIB_GENMARSHAL = glib-genmarshal
114GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
115GLIB_MKENUMS = glib-mkenums
116GOBJECT_QUERY = gobject-query
117GREP = /bin/grep
118GTKDOC_CHECK = /usr/bin/gtkdoc-check
119GTK_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
120GTK_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
121HTML_DIR = ${datadir}/gtk-doc/html
122INSTALL = /usr/bin/install -c
123INSTALL_DATA = ${INSTALL} -m 644
124INSTALL_PROGRAM = ${INSTALL}
125INSTALL_SCRIPT = ${INSTALL}
126INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
127LDFLAGS =
128LEX = flex
129LEXLIB = -lfl
130LEX_OUTPUT_ROOT = lex.yy
131LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
132LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
133LIBOBJS =
134LIBS = -lm
135LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
136LIBXML2_CFLAGS = -I/usr/include/libxml2
137LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
138LN_S = ln -s
139LTLIBOBJS =
140LTVERSION = 0:8:0
141MAGIC_LIBS = -lmagic
142MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
143MATH_LIBS = -lm
144MKDIR_P = /bin/mkdir -p
145OBJDUMP = objdump
146OBJEXT = o
147PACKAGE = libg3d
148PACKAGE_BUGREPORT =
149PACKAGE_NAME =
150PACKAGE_STRING =
151PACKAGE_TARNAME =
152PACKAGE_VERSION =
153PATH_SEPARATOR = :
154PKG_CONFIG = /usr/bin/pkg-config
155PLUGINS_LDFLAGS = -avoid-version -export-dynamic
156RANLIB = ranlib
157SET_MAKE =
158SHELL = /bin/bash
159STRIP = strip
160VERSION = 0.0.8
161XML2_CONFIG = /usr/bin/xml2-config
162XML_CPPFLAGS = -I/usr/include/libxml2
163XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
164Z_CFLAGS =
165Z_LIBS = -lz
166abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp
167abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp
168abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
170ac_ct_CC = gcc
171ac_ct_CXX = g++
172ac_ct_F77 =
173am__include = include
174am__leading_dot = .
175am__quote =
176am__tar = ${AMTAR} chof - "$$tardir"
177am__untar = ${AMTAR} xf -
178bindir = ${exec_prefix}/bin
179build = x86_64-unknown-linux-gnu
180build_alias =
181build_cpu = x86_64
182build_os = linux-gnu
183build_vendor = unknown
184builddir = .
185datadir = ${datarootdir}
186datarootdir = ${prefix}/share
187docdir = ${datarootdir}/doc/${PACKAGE}
188dvidir = ${docdir}
189exec_prefix = ${prefix}
190host = x86_64-unknown-linux-gnu
191host_alias =
192host_cpu = x86_64
193host_os = linux-gnu
194host_vendor = unknown
195htmldir = ${docdir}
196includedir = ${prefix}/include
197infodir = ${datarootdir}/info
198install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
199libdir = ${exec_prefix}/lib
200libexecdir = ${exec_prefix}/libexec
201localedir = ${datarootdir}/locale
202localstatedir = ${prefix}/var
203mandir = ${datarootdir}/man
204mkdir_p = /bin/mkdir -p
205oldincludedir = /usr/include
206pdfdir = ${docdir}
207prefix = /usr/local
208program_transform_name = s,x,x,
209psdir = ${docdir}
210sbindir = ${exec_prefix}/sbin
211sharedstatedir = ${prefix}/com
212srcdir = .
213sysconfdir = ${prefix}/etc
214target_alias =
215top_builddir = ../../..
216top_srcdir = ../../..
217pluginimpdir = $(pkglibdir)/plugins/import
218#pluginimp_LTLIBRARIES = imp_skp.la
219AM_CFLAGS = \
220 -Wall -ansi -pedantic \
221 -DG_LOG_DOMAIN=\"LibG3D\" \
222 -O2 -DDEBUG=0 \
223 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
224
225INCLUDES = -I$(top_srcdir)/include
226AM_LDFLAGS = \
227 -no-undefined -module \
228 -avoid-version -export-dynamic
229
230imp_skp_la_SOURCES = imp_skp.c imp_skp.h imp_skp_types.h \
231 imp_skp_chunks.h imp_skp_callbacks.h imp_skp_callbacks.c \
232 imp_skp_read.c imp_skp_read.h
233
234imp_skp_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
235all: all-am
236
237.SUFFIXES:
238.SUFFIXES: .c .lo .o .obj
239$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
240 @for dep in $?; do \
241 case '$(am__configure_deps)' in \
242 *$$dep*) \
243 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
244 && exit 0; \
245 exit 1;; \
246 esac; \
247 done; \
248 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_skp/Makefile'; \
249 cd $(top_srcdir) && \
250 $(AUTOMAKE) --gnu plugins/import/imp_skp/Makefile
251.PRECIOUS: Makefile
252Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
253 @case '$?' in \
254 *config.status*) \
255 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
256 *) \
257 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
258 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
259 esac;
260
261$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263
264$(top_srcdir)/configure: $(am__configure_deps)
265 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
266$(ACLOCAL_M4): $(am__aclocal_m4_deps)
267 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
268install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
269 @$(NORMAL_INSTALL)
270 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
271 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
272 if test -f $$p; then \
273 f=$(am__strip_dir) \
274 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
275 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
276 else :; fi; \
277 done
278
279uninstall-pluginimpLTLIBRARIES:
280 @$(NORMAL_UNINSTALL)
281 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
282 p=$(am__strip_dir) \
283 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
284 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
285 done
286
287clean-pluginimpLTLIBRARIES:
288 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
289 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
290 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
291 test "$$dir" != "$$p" || dir=.; \
292 echo "rm -f \"$${dir}/so_locations\""; \
293 rm -f "$${dir}/so_locations"; \
294 done
295imp_skp.la: $(imp_skp_la_OBJECTS) $(imp_skp_la_DEPENDENCIES)
296 $(LINK) $(am_imp_skp_la_rpath) $(imp_skp_la_OBJECTS) $(imp_skp_la_LIBADD) $(LIBS)
297
298mostlyclean-compile:
299 -rm -f *.$(OBJEXT)
300
301distclean-compile:
302 -rm -f *.tab.c
303
304include ./$(DEPDIR)/imp_skp.Plo
305include ./$(DEPDIR)/imp_skp_callbacks.Plo
306include ./$(DEPDIR)/imp_skp_read.Plo
307
308.c.o:
309 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
310 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311# source='$<' object='$@' libtool=no \
312# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
313# $(COMPILE) -c $<
314
315.c.obj:
316 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
317 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
318# source='$<' object='$@' libtool=no \
319# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
320# $(COMPILE) -c `$(CYGPATH_W) '$<'`
321
322.c.lo:
323 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
324 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
325# source='$<' object='$@' libtool=yes \
326# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
327# $(LTCOMPILE) -c -o $@ $<
328
329mostlyclean-libtool:
330 -rm -f *.lo
331
332clean-libtool:
333 -rm -rf .libs _libs
334
335ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
336 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
337 unique=`for i in $$list; do \
338 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
339 done | \
340 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
341 END { if (nonempty) { for (i in files) print i; }; }'`; \
342 mkid -fID $$unique
343tags: TAGS
344
345TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
346 $(TAGS_FILES) $(LISP)
347 tags=; \
348 here=`pwd`; \
349 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
350 unique=`for i in $$list; do \
351 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
352 done | \
353 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
354 END { if (nonempty) { for (i in files) print i; }; }'`; \
355 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
356 test -n "$$unique" || unique=$$empty_fix; \
357 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
358 $$tags $$unique; \
359 fi
360ctags: CTAGS
361CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
362 $(TAGS_FILES) $(LISP)
363 tags=; \
364 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
365 unique=`for i in $$list; do \
366 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
367 done | \
368 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
369 END { if (nonempty) { for (i in files) print i; }; }'`; \
370 test -z "$(CTAGS_ARGS)$$tags$$unique" \
371 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
372 $$tags $$unique
373
374GTAGS:
375 here=`$(am__cd) $(top_builddir) && pwd` \
376 && cd $(top_srcdir) \
377 && gtags -i $(GTAGS_ARGS) $$here
378
379distclean-tags:
380 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
381
382distdir: $(DISTFILES)
383 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
384 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
385 list='$(DISTFILES)'; \
386 dist_files=`for file in $$list; do echo $$file; done | \
387 sed -e "s|^$$srcdirstrip/||;t" \
388 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
389 case $$dist_files in \
390 */*) $(MKDIR_P) `echo "$$dist_files" | \
391 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
392 sort -u` ;; \
393 esac; \
394 for file in $$dist_files; do \
395 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
396 if test -d $$d/$$file; then \
397 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
398 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
399 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
400 fi; \
401 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
402 else \
403 test -f $(distdir)/$$file \
404 || cp -p $$d/$$file $(distdir)/$$file \
405 || exit 1; \
406 fi; \
407 done
408check-am: all-am
409check: check-am
410all-am: Makefile $(LTLIBRARIES)
411installdirs:
412 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
413 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
414 done
415install: install-am
416install-exec: install-exec-am
417install-data: install-data-am
418uninstall: uninstall-am
419
420install-am: all-am
421 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
422
423installcheck: installcheck-am
424install-strip:
425 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
426 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
427 `test -z '$(STRIP)' || \
428 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
429mostlyclean-generic:
430
431clean-generic:
432
433distclean-generic:
434 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
435
436maintainer-clean-generic:
437 @echo "This command is intended for maintainers to use"
438 @echo "it deletes files that may require special tools to rebuild."
439clean: clean-am
440
441clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
442 mostlyclean-am
443
444distclean: distclean-am
445 -rm -rf ./$(DEPDIR)
446 -rm -f Makefile
447distclean-am: clean-am distclean-compile distclean-generic \
448 distclean-tags
449
450dvi: dvi-am
451
452dvi-am:
453
454html: html-am
455
456info: info-am
457
458info-am:
459
460install-data-am: install-pluginimpLTLIBRARIES
461
462install-dvi: install-dvi-am
463
464install-exec-am:
465
466install-html: install-html-am
467
468install-info: install-info-am
469
470install-man:
471
472install-pdf: install-pdf-am
473
474install-ps: install-ps-am
475
476installcheck-am:
477
478maintainer-clean: maintainer-clean-am
479 -rm -rf ./$(DEPDIR)
480 -rm -f Makefile
481maintainer-clean-am: distclean-am maintainer-clean-generic
482
483mostlyclean: mostlyclean-am
484
485mostlyclean-am: mostlyclean-compile mostlyclean-generic \
486 mostlyclean-libtool
487
488pdf: pdf-am
489
490pdf-am:
491
492ps: ps-am
493
494ps-am:
495
496uninstall-am: uninstall-pluginimpLTLIBRARIES
497
498.MAKE: install-am install-strip
499
500.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
501 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
502 distclean-compile distclean-generic distclean-libtool \
503 distclean-tags distdir dvi dvi-am html html-am info info-am \
504 install install-am install-data install-data-am install-dvi \
505 install-dvi-am install-exec install-exec-am install-html \
506 install-html-am install-info install-info-am install-man \
507 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
508 install-ps install-ps-am install-strip installcheck \
509 installcheck-am installdirs maintainer-clean \
510 maintainer-clean-generic mostlyclean mostlyclean-compile \
511 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
512 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
513
514# Tell versions [3.59,3.63) of GNU make to not export all variables.
515# Otherwise a system limit (for SysV at least) may be exceeded.
516.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/Makefile.am
new file mode 100644
index 0000000..5aa678f
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/Makefile.am
@@ -0,0 +1,24 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if EXPERIMENTAL
4pluginimp_LTLIBRARIES = imp_skp.la
5endif
6
7AM_CFLAGS = \
8 -Wall -ansi -pedantic \
9 -DG_LOG_DOMAIN=\"LibG3D\" \
10 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
11 @GLIB_CFLAGS@
12
13INCLUDES = -I$(top_srcdir)/include
14
15AM_LDFLAGS = \
16 -no-undefined -module \
17 @PLUGINS_LDFLAGS@
18
19LIBTOOL += --quiet
20
21imp_skp_la_SOURCES = imp_skp.c imp_skp.h imp_skp_types.h \
22 imp_skp_chunks.h imp_skp_callbacks.h imp_skp_callbacks.c \
23 imp_skp_read.c imp_skp_read.h
24imp_skp_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/Makefile.in
new file mode 100644
index 0000000..ace9150
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/Makefile.in
@@ -0,0 +1,516 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_skp
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_skp_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_skp_la_OBJECTS = imp_skp.lo imp_skp_callbacks.lo \
59 imp_skp_read.lo
60imp_skp_la_OBJECTS = $(am_imp_skp_la_OBJECTS)
61@EXPERIMENTAL_TRUE@am_imp_skp_la_rpath = -rpath $(pluginimpdir)
62DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
63depcomp = $(SHELL) $(top_srcdir)/config/depcomp
64am__depfiles_maybe = depfiles
65COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
66 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
67LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
68 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
69 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
70CCLD = $(CC)
71LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
72 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
73 $(LDFLAGS) -o $@
74SOURCES = $(imp_skp_la_SOURCES)
75DIST_SOURCES = $(imp_skp_la_SOURCES)
76ETAGS = etags
77CTAGS = ctags
78DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
79ACLOCAL = @ACLOCAL@
80AMTAR = @AMTAR@
81AR = @AR@
82AS = @AS@
83AUTOCONF = @AUTOCONF@
84AUTOHEADER = @AUTOHEADER@
85AUTOMAKE = @AUTOMAKE@
86AWK = @AWK@
87CC = @CC@
88CCDEPMODE = @CCDEPMODE@
89CFLAGS = @CFLAGS@
90CPP = @CPP@
91CPPFLAGS = @CPPFLAGS@
92CXX = @CXX@
93CXXCPP = @CXXCPP@
94CXXDEPMODE = @CXXDEPMODE@
95CXXFLAGS = @CXXFLAGS@
96CYGPATH_W = @CYGPATH_W@
97DBG_CFLAGS = @DBG_CFLAGS@
98DEBUG = @DEBUG@
99DEFS = @DEFS@
100DEPDIR = @DEPDIR@
101DLLTOOL = @DLLTOOL@
102ECHO = @ECHO@
103ECHO_C = @ECHO_C@
104ECHO_N = @ECHO_N@
105ECHO_T = @ECHO_T@
106EGREP = @EGREP@
107EXEEXT = @EXEEXT@
108F77 = @F77@
109FFLAGS = @FFLAGS@
110GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
111GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
112GLIB_CFLAGS = @GLIB_CFLAGS@
113GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
114GLIB_LIBS = @GLIB_LIBS@
115GLIB_MKENUMS = @GLIB_MKENUMS@
116GOBJECT_QUERY = @GOBJECT_QUERY@
117GREP = @GREP@
118GTKDOC_CHECK = @GTKDOC_CHECK@
119GTK_CFLAGS = @GTK_CFLAGS@
120GTK_LIBS = @GTK_LIBS@
121HTML_DIR = @HTML_DIR@
122INSTALL = @INSTALL@
123INSTALL_DATA = @INSTALL_DATA@
124INSTALL_PROGRAM = @INSTALL_PROGRAM@
125INSTALL_SCRIPT = @INSTALL_SCRIPT@
126INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
127LDFLAGS = @LDFLAGS@
128LEX = @LEX@
129LEXLIB = @LEXLIB@
130LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
131LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
132LIBGSF_LIBS = @LIBGSF_LIBS@
133LIBOBJS = @LIBOBJS@
134LIBS = @LIBS@
135LIBTOOL = @LIBTOOL@ --quiet
136LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
137LIBXML2_LIBS = @LIBXML2_LIBS@
138LN_S = @LN_S@
139LTLIBOBJS = @LTLIBOBJS@
140LTVERSION = @LTVERSION@
141MAGIC_LIBS = @MAGIC_LIBS@
142MAKEINFO = @MAKEINFO@
143MATH_LIBS = @MATH_LIBS@
144MKDIR_P = @MKDIR_P@
145OBJDUMP = @OBJDUMP@
146OBJEXT = @OBJEXT@
147PACKAGE = @PACKAGE@
148PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
149PACKAGE_NAME = @PACKAGE_NAME@
150PACKAGE_STRING = @PACKAGE_STRING@
151PACKAGE_TARNAME = @PACKAGE_TARNAME@
152PACKAGE_VERSION = @PACKAGE_VERSION@
153PATH_SEPARATOR = @PATH_SEPARATOR@
154PKG_CONFIG = @PKG_CONFIG@
155PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
156RANLIB = @RANLIB@
157SET_MAKE = @SET_MAKE@
158SHELL = @SHELL@
159STRIP = @STRIP@
160VERSION = @VERSION@
161XML2_CONFIG = @XML2_CONFIG@
162XML_CPPFLAGS = @XML_CPPFLAGS@
163XML_LIBS = @XML_LIBS@
164Z_CFLAGS = @Z_CFLAGS@
165Z_LIBS = @Z_LIBS@
166abs_builddir = @abs_builddir@
167abs_srcdir = @abs_srcdir@
168abs_top_builddir = @abs_top_builddir@
169abs_top_srcdir = @abs_top_srcdir@
170ac_ct_CC = @ac_ct_CC@
171ac_ct_CXX = @ac_ct_CXX@
172ac_ct_F77 = @ac_ct_F77@
173am__include = @am__include@
174am__leading_dot = @am__leading_dot@
175am__quote = @am__quote@
176am__tar = @am__tar@
177am__untar = @am__untar@
178bindir = @bindir@
179build = @build@
180build_alias = @build_alias@
181build_cpu = @build_cpu@
182build_os = @build_os@
183build_vendor = @build_vendor@
184builddir = @builddir@
185datadir = @datadir@
186datarootdir = @datarootdir@
187docdir = @docdir@
188dvidir = @dvidir@
189exec_prefix = @exec_prefix@
190host = @host@
191host_alias = @host_alias@
192host_cpu = @host_cpu@
193host_os = @host_os@
194host_vendor = @host_vendor@
195htmldir = @htmldir@
196includedir = @includedir@
197infodir = @infodir@
198install_sh = @install_sh@
199libdir = @libdir@
200libexecdir = @libexecdir@
201localedir = @localedir@
202localstatedir = @localstatedir@
203mandir = @mandir@
204mkdir_p = @mkdir_p@
205oldincludedir = @oldincludedir@
206pdfdir = @pdfdir@
207prefix = @prefix@
208program_transform_name = @program_transform_name@
209psdir = @psdir@
210sbindir = @sbindir@
211sharedstatedir = @sharedstatedir@
212srcdir = @srcdir@
213sysconfdir = @sysconfdir@
214target_alias = @target_alias@
215top_builddir = @top_builddir@
216top_srcdir = @top_srcdir@
217pluginimpdir = $(pkglibdir)/plugins/import
218@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_skp.la
219AM_CFLAGS = \
220 -Wall -ansi -pedantic \
221 -DG_LOG_DOMAIN=\"LibG3D\" \
222 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
223 @GLIB_CFLAGS@
224
225INCLUDES = -I$(top_srcdir)/include
226AM_LDFLAGS = \
227 -no-undefined -module \
228 @PLUGINS_LDFLAGS@
229
230imp_skp_la_SOURCES = imp_skp.c imp_skp.h imp_skp_types.h \
231 imp_skp_chunks.h imp_skp_callbacks.h imp_skp_callbacks.c \
232 imp_skp_read.c imp_skp_read.h
233
234imp_skp_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
235all: all-am
236
237.SUFFIXES:
238.SUFFIXES: .c .lo .o .obj
239$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
240 @for dep in $?; do \
241 case '$(am__configure_deps)' in \
242 *$$dep*) \
243 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
244 && exit 0; \
245 exit 1;; \
246 esac; \
247 done; \
248 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_skp/Makefile'; \
249 cd $(top_srcdir) && \
250 $(AUTOMAKE) --gnu plugins/import/imp_skp/Makefile
251.PRECIOUS: Makefile
252Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
253 @case '$?' in \
254 *config.status*) \
255 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
256 *) \
257 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
258 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
259 esac;
260
261$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263
264$(top_srcdir)/configure: $(am__configure_deps)
265 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
266$(ACLOCAL_M4): $(am__aclocal_m4_deps)
267 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
268install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
269 @$(NORMAL_INSTALL)
270 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
271 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
272 if test -f $$p; then \
273 f=$(am__strip_dir) \
274 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
275 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
276 else :; fi; \
277 done
278
279uninstall-pluginimpLTLIBRARIES:
280 @$(NORMAL_UNINSTALL)
281 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
282 p=$(am__strip_dir) \
283 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
284 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
285 done
286
287clean-pluginimpLTLIBRARIES:
288 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
289 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
290 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
291 test "$$dir" != "$$p" || dir=.; \
292 echo "rm -f \"$${dir}/so_locations\""; \
293 rm -f "$${dir}/so_locations"; \
294 done
295imp_skp.la: $(imp_skp_la_OBJECTS) $(imp_skp_la_DEPENDENCIES)
296 $(LINK) $(am_imp_skp_la_rpath) $(imp_skp_la_OBJECTS) $(imp_skp_la_LIBADD) $(LIBS)
297
298mostlyclean-compile:
299 -rm -f *.$(OBJEXT)
300
301distclean-compile:
302 -rm -f *.tab.c
303
304@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_skp.Plo@am__quote@
305@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_skp_callbacks.Plo@am__quote@
306@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_skp_read.Plo@am__quote@
307
308.c.o:
309@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
310@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
313@am__fastdepCC_FALSE@ $(COMPILE) -c $<
314
315.c.obj:
316@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
317@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
318@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
320@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
321
322.c.lo:
323@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
324@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
325@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
326@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
327@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
328
329mostlyclean-libtool:
330 -rm -f *.lo
331
332clean-libtool:
333 -rm -rf .libs _libs
334
335ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
336 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
337 unique=`for i in $$list; do \
338 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
339 done | \
340 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
341 END { if (nonempty) { for (i in files) print i; }; }'`; \
342 mkid -fID $$unique
343tags: TAGS
344
345TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
346 $(TAGS_FILES) $(LISP)
347 tags=; \
348 here=`pwd`; \
349 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
350 unique=`for i in $$list; do \
351 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
352 done | \
353 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
354 END { if (nonempty) { for (i in files) print i; }; }'`; \
355 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
356 test -n "$$unique" || unique=$$empty_fix; \
357 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
358 $$tags $$unique; \
359 fi
360ctags: CTAGS
361CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
362 $(TAGS_FILES) $(LISP)
363 tags=; \
364 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
365 unique=`for i in $$list; do \
366 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
367 done | \
368 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
369 END { if (nonempty) { for (i in files) print i; }; }'`; \
370 test -z "$(CTAGS_ARGS)$$tags$$unique" \
371 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
372 $$tags $$unique
373
374GTAGS:
375 here=`$(am__cd) $(top_builddir) && pwd` \
376 && cd $(top_srcdir) \
377 && gtags -i $(GTAGS_ARGS) $$here
378
379distclean-tags:
380 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
381
382distdir: $(DISTFILES)
383 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
384 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
385 list='$(DISTFILES)'; \
386 dist_files=`for file in $$list; do echo $$file; done | \
387 sed -e "s|^$$srcdirstrip/||;t" \
388 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
389 case $$dist_files in \
390 */*) $(MKDIR_P) `echo "$$dist_files" | \
391 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
392 sort -u` ;; \
393 esac; \
394 for file in $$dist_files; do \
395 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
396 if test -d $$d/$$file; then \
397 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
398 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
399 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
400 fi; \
401 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
402 else \
403 test -f $(distdir)/$$file \
404 || cp -p $$d/$$file $(distdir)/$$file \
405 || exit 1; \
406 fi; \
407 done
408check-am: all-am
409check: check-am
410all-am: Makefile $(LTLIBRARIES)
411installdirs:
412 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
413 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
414 done
415install: install-am
416install-exec: install-exec-am
417install-data: install-data-am
418uninstall: uninstall-am
419
420install-am: all-am
421 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
422
423installcheck: installcheck-am
424install-strip:
425 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
426 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
427 `test -z '$(STRIP)' || \
428 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
429mostlyclean-generic:
430
431clean-generic:
432
433distclean-generic:
434 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
435
436maintainer-clean-generic:
437 @echo "This command is intended for maintainers to use"
438 @echo "it deletes files that may require special tools to rebuild."
439clean: clean-am
440
441clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
442 mostlyclean-am
443
444distclean: distclean-am
445 -rm -rf ./$(DEPDIR)
446 -rm -f Makefile
447distclean-am: clean-am distclean-compile distclean-generic \
448 distclean-tags
449
450dvi: dvi-am
451
452dvi-am:
453
454html: html-am
455
456info: info-am
457
458info-am:
459
460install-data-am: install-pluginimpLTLIBRARIES
461
462install-dvi: install-dvi-am
463
464install-exec-am:
465
466install-html: install-html-am
467
468install-info: install-info-am
469
470install-man:
471
472install-pdf: install-pdf-am
473
474install-ps: install-ps-am
475
476installcheck-am:
477
478maintainer-clean: maintainer-clean-am
479 -rm -rf ./$(DEPDIR)
480 -rm -f Makefile
481maintainer-clean-am: distclean-am maintainer-clean-generic
482
483mostlyclean: mostlyclean-am
484
485mostlyclean-am: mostlyclean-compile mostlyclean-generic \
486 mostlyclean-libtool
487
488pdf: pdf-am
489
490pdf-am:
491
492ps: ps-am
493
494ps-am:
495
496uninstall-am: uninstall-pluginimpLTLIBRARIES
497
498.MAKE: install-am install-strip
499
500.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
501 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
502 distclean-compile distclean-generic distclean-libtool \
503 distclean-tags distdir dvi dvi-am html html-am info info-am \
504 install install-am install-data install-data-am install-dvi \
505 install-dvi-am install-exec install-exec-am install-html \
506 install-html-am install-info install-info-am install-man \
507 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
508 install-ps install-ps-am install-strip installcheck \
509 installcheck-am installdirs maintainer-clean \
510 maintainer-clean-generic mostlyclean mostlyclean-compile \
511 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
512 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
513
514# Tell versions [3.59,3.63) of GNU make to not export all variables.
515# Otherwise a system limit (for SysV at least) may be exceeded.
516.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp.c
new file mode 100644
index 0000000..64b74c8
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp.c
@@ -0,0 +1,218 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24
25#include <g3d/types.h>
26#include <g3d/context.h>
27#include <g3d/read.h>
28#include <g3d/stream.h>
29
30#include "imp_skp.h"
31#include "imp_skp_read.h"
32#include "imp_skp_chunks.h"
33
34static gboolean skp_parse_version_map(G3DStream *stream, guint32 *max_nlen,
35 guint32 *max_version);
36static gchar *skp_find_section(G3DStream *stream, guint32 max_nlen,
37 guint32 max_version, guint32 *version);
38static SkpChunkDesc *skp_get_chunk_desc(gchar *cname);
39
40EAPI
41gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
42 G3DModel *model, gpointer user_data)
43{
44 gchar *smagic, *sversion, *stmp, *ssection;
45 guint32 max_nlen = 0, max_version = 0, version = 0;
46 SkpChunkDesc *desc;
47 SkpGlobalData *global;
48 SkpLocalData *local;
49
50 smagic = skp_read_wchar(stream);
51 if(smagic == NULL) {
52 g_warning("not a valid .skp file: '%s'", stream->uri);
53 return FALSE;
54 }
55 sversion = skp_read_wchar(stream);
56 if(sversion == NULL) {
57 g_warning("failed to read version from '%s'", stream->uri);
58 g_free(smagic);
59 return FALSE;
60 }
61
62 g_debug("SKP: magic: '%s', version: '%s'", smagic, sversion);
63 g_free(smagic);
64 g_free(sversion);
65
66 g3d_stream_seek(stream, 16, G_SEEK_CUR);
67 stmp = skp_read_wchar(stream);
68 if(stmp != NULL)
69 g_free(stmp);
70 g3d_stream_read_int32_le(stream);
71
72 ssection = skp_read_char(stream);
73 if(ssection) {
74 if(strcmp(ssection, "CVersionMap") == 0)
75 g_debug("\\CVersionMap");
76 skp_parse_version_map(stream, &max_nlen, &max_version);
77 g_free(ssection);
78 }
79
80 global = g_new0(SkpGlobalData, 1);
81 global->context = context;
82 global->model = model;
83 global->stream = stream;
84
85 ssection = skp_find_section(stream, max_nlen, max_version, &version);
86 while(ssection != NULL) {
87 desc = skp_get_chunk_desc(ssection);
88 if(desc == NULL) {
89 g_warning("SKP: unknown chunk type '%s'", ssection);
90 } else {
91 if((version > desc->max_ver) || (version < desc->min_ver)) {
92 g_warning("SKP: %s: unhandled version %u (%u - %u)",
93 ssection, version, desc->min_ver, desc->max_ver);
94 } else {
95 if(desc->callback) {
96 local = g_new0(SkpLocalData, 1);
97 local->id = desc->id;
98 local->version = version;
99
100 desc->callback(global, local);
101
102 g_free(local);
103 }
104 } /* version check */
105 } /* has desc */
106
107 ssection = skp_find_section(stream, max_nlen, max_version, &version);
108 } /* sections */
109
110 /* clean up */
111 g_free(global);
112
113 return TRUE;
114}
115
116EAPI
117gchar *plugin_description(void)
118{
119 return g_strdup("SketchUp models.");
120}
121
122EAPI
123gchar **plugin_extensions(void)
124{
125 return g_strsplit("skp", ":", 0);
126}
127
128
129/*****************************************************************************/
130
131static gboolean skp_parse_version_map(G3DStream *stream, guint32 *max_nlen,
132 guint32 *max_version)
133{
134 gchar *part;
135 guint32 version;
136
137 while(TRUE) {
138 part = skp_read_wchar(stream);
139 if(part == NULL)
140 return FALSE;
141 version = g3d_stream_read_int32_le(stream);
142#if DEBUG > 1
143 g_debug("\t%-30s %u", part, version);
144#endif
145 if(strcmp(part, "End-Of-Version-Map") == 0) {
146 g_free(part);
147 return TRUE;
148 }
149
150 if(version > *max_version)
151 *max_version = version;
152 if(strlen(part) > *max_nlen)
153 *max_nlen = strlen(part);
154
155 g_free(part);
156 }
157 return FALSE;
158}
159
160static gchar *skp_find_section(G3DStream *stream, guint32 max_nlen,
161 guint32 max_version, guint32 *version)
162{
163 goffset offset;
164 guint32 ver, nlen;
165 guint16 w1;
166 gchar *name;
167
168 while(!g3d_stream_eof(stream) && (g3d_stream_read_int8(stream) != 0xFF));
169
170 if(g3d_stream_eof(stream))
171 return NULL;
172
173 offset = g3d_stream_tell(stream);
174 if(g3d_stream_read_int8(stream) != 0xFF) {
175 g3d_stream_seek(stream, offset, G_SEEK_SET);
176 return skp_find_section(stream, max_nlen, max_version, version);
177 }
178
179 ver = g3d_stream_read_int16_le(stream);
180 if(ver > max_version) {
181 g3d_stream_seek(stream, offset, G_SEEK_SET);
182 return skp_find_section(stream, max_nlen, max_version, version);
183 }
184
185 nlen = g3d_stream_read_int16_le(stream);
186 if(nlen > max_nlen) {
187 g3d_stream_seek(stream, offset, G_SEEK_SET);
188 return skp_find_section(stream, max_nlen, max_version, version);
189 }
190
191 name = g_new0(gchar, nlen + 1);
192 g3d_stream_read(stream, name, nlen);
193 if(name[0] != 'C') {
194 g_free(name);
195 g3d_stream_seek(stream, offset, G_SEEK_SET);
196 return skp_find_section(stream, max_nlen, max_version, version);
197 }
198 *version = ver;
199
200 w1 = g3d_stream_read_int16_le(stream);
201 g3d_stream_seek(stream, -2, G_SEEK_CUR);
202
203 g_debug("\\%-30s v%-2u @ 0x%08x (0x%04x)", name, ver,
204 (guint32)g3d_stream_tell(stream), w1);
205
206 return name;
207}
208
209static SkpChunkDesc *skp_get_chunk_desc(gchar *cname)
210{
211 guint32 i;
212
213 for(i = 0; skp_chunks[i].id != NULL; i ++) {
214 if(strcmp(cname, skp_chunks[i].id) == 0)
215 return &(skp_chunks[i]);
216 }
217 return NULL;
218}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp.h
new file mode 100644
index 0000000..037b50b
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp.h
@@ -0,0 +1,25 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_SKB_H
23#define _IMP_SKB_H
24
25#endif /* _IMP_SKB_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_callbacks.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_callbacks.c
new file mode 100644
index 0000000..938a93c
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_callbacks.c
@@ -0,0 +1,614 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <g3d/types.h>
23#include <g3d/material.h>
24
25#include "imp_skp.h"
26#include "imp_skp_callbacks.h"
27#include "imp_skp_read.h"
28#include "imp_skp_types.h"
29
30gboolean skp_cb_arc_curve(SkpGlobalData *global, SkpLocalData *local)
31{
32 guint16 w1;
33
34 w1 = g3d_stream_read_int16_le(global->stream);
35 g_return_val_if_fail(w1 == 0x0000, FALSE);
36
37 return TRUE;
38}
39
40/*****************************************************************************/
41
42gboolean skp_cb_attribute_container(SkpGlobalData *global, SkpLocalData *local)
43{
44 guint16 w1;
45
46 w1 = g3d_stream_read_int16_le(global->stream);
47 g_return_val_if_fail(w1 == 0x0000, FALSE);
48
49 return TRUE;
50}
51
52/*****************************************************************************/
53
54gboolean skp_cb_attribute_named(SkpGlobalData *global, SkpLocalData *local)
55{
56 guint32 x1;
57 guint16 w1, w2, w3;
58 guint8 u1, u2;
59 gdouble d1;
60 gchar *name, *val, *tmp;
61
62 w1 = g3d_stream_read_int16_le(global->stream);
63 w2 = g3d_stream_read_int16_le(global->stream);
64 w3 = g3d_stream_read_int16_le(global->stream);
65
66 name = skp_read_wchar(global->stream);
67 while(name != NULL) {
68 tmp = skp_read_wchar(global->stream);
69 if(tmp != NULL) {
70 /* got a section */
71#if DEBUG > 1
72 g_debug("\t%s", name);
73#endif
74 g_free(name);
75 name = tmp;
76 continue;
77 }
78 u1 = g3d_stream_read_int8(global->stream);
79 switch(u1) {
80 case 0x00: /* end of CAttributeNamed */
81 g_free(name);
82 return TRUE;
83 break;
84 case 0x04: /* 32-bit */
85 x1 = g3d_stream_read_int32_le(global->stream);
86#if DEBUG > 1
87 g_debug("\t\t%-20s: 0x%08x", name, x1);
88#endif
89 break;
90 case 0x06: /* double */
91 d1 = g3d_stream_read_double_le(global->stream);
92#if DEBUG > 1
93 g_debug("\t\t%-20s: %.4f", name, d1);
94#endif
95 break;
96 case 0x07: /* boolean */
97 u2 = g3d_stream_read_int8(global->stream);
98#if DEBUG > 1
99 g_debug("\t\t%-20s: %s", name, (u2 ? "true" : "false"));
100#endif
101 break;
102 case 0x09: /* end of section? */
103 g3d_stream_seek(global->stream, 7, G_SEEK_CUR);
104#if DEBUG > 1
105 g_debug("\t\t%-20s: EOS", name);
106#endif
107 break;
108 case 0x0A: /* string */
109 val = skp_read_wchar(global->stream);
110 g_return_val_if_fail(val != NULL, FALSE);
111#if DEBUG > 1
112 g_debug("\t\t%-20s: %s", name, val);
113#endif
114 g_free(val);
115 break;
116 default:
117 g_warning(
118 "SKP: CAttributeNamed: unknown attribute type: 0x%02X",
119 u1);
120 return FALSE;
121 break;
122 }
123
124 g_free(name);
125 name = skp_read_wchar(global->stream);
126 }
127 return TRUE;
128}
129
130/*****************************************************************************/
131
132gboolean skp_cb_component_definition(SkpGlobalData *global,
133 SkpLocalData *local)
134{
135 SkpComponent *comp;
136 guint32 x1, w1;
137 gchar *s;
138 gdouble d1, d2;
139
140 w1 = g3d_stream_read_int16_le(global->stream);
141 g_return_val_if_fail(w1 == 0x0000, FALSE);
142
143 skp_read_10b(global->stream);
144 skp_read_10b(global->stream);
145
146 x1 = g3d_stream_read_int32_le(global->stream);
147 g_debug("CComponentDefinition: %d", x1);
148
149 w1 = g3d_stream_read_int16_le(global->stream);
150 if(!(w1 & 0x8000)) {
151 g_warning("CComponentDefinition: layerid=0x%04x", w1);
152 return FALSE;
153 }
154 w1 &= 0x7FFF;
155 g3d_stream_read_int16_le(global->stream); /* 0000 */
156
157 s = skp_read_wchar(global->stream);
158 if(s == NULL) {
159 g_warning("CComponentDefinition: s[0] == NULL");
160 return FALSE;
161 }
162 g3d_stream_seek(global->stream, 3, G_SEEK_CUR);
163 s = skp_read_wchar(global->stream);
164 if(s == NULL) {
165 g_warning("CComponentDefinition: s[1] == NULL");
166 return FALSE;
167 }
168 g3d_stream_seek(global->stream, 6, G_SEEK_CUR);
169 s = skp_read_wchar(global->stream);
170 if(s == NULL) {
171 g_warning("CComponentDefinition: s[2] == NULL");
172 return FALSE;
173 }
174
175 d1 = g3d_stream_read_double_le(global->stream);
176 d2 = g3d_stream_read_double_le(global->stream);
177 g_debug("CComponentDefinition: d1=%.2f, d2=%.2f", d1, d2);
178
179 g3d_stream_seek(global->stream, 5, G_SEEK_CUR);
180
181 comp = g_new0(SkpComponent, 1);
182 comp->layerid = w1;
183
184 comp->id0 = g3d_stream_read_int16_le(global->stream);
185 g3d_stream_read_int32_le(global->stream);
186 g3d_stream_read_int8(global->stream);
187 comp->id1 = g3d_stream_read_int16_le(global->stream);
188
189 g_debug("Component: 0x%02x, 0x%02x (0x%02x)",
190 comp->id0, comp->id1, comp->layerid);
191
192 global->components = g_slist_append(global->components, comp);
193
194 return TRUE;
195}
196
197/*****************************************************************************/
198
199static gboolean skp_read_5b(G3DStream *stream)
200{
201 guint32 w1, w2, u1;
202
203 w1 = g3d_stream_read_int16_le(stream);
204 u1 = g3d_stream_read_int8(stream);
205 w2 = g3d_stream_read_int16_le(stream);
206 g_debug("\tread 5b: %04x %02x %04x", w1, u1, w2);
207 return TRUE;
208}
209
210gboolean skp_cb_edge_use(SkpGlobalData *global, SkpLocalData *local)
211{
212 guint16 w1, w2;
213 guint32 x1;
214 gdouble d1, d2, d3, d4;
215 gboolean handled;
216 GSList *item;
217 SkpComponent *comp;
218
219 w1 = g3d_stream_read_int16_le(global->stream);
220 g_return_val_if_fail(w1 == 0x0000, FALSE);
221
222 skp_read_5b(global->stream);
223
224 do {
225 w1 = g3d_stream_read_int16_le(global->stream);
226 handled = FALSE;
227
228 g_debug("opcode: 0x%04x", w1);
229 if(w1 == 0xFFFF) {
230 g3d_stream_seek(global->stream, -2, G_SEEK_CUR);
231 return TRUE;
232 }
233 if(w1 & 0x8000) {
234 g3d_stream_read_int16_le(global->stream);
235 w1 &= 0x7FFF;
236 }
237 if(w1 == 0x0000) {
238 handled = TRUE;
239 }
240
241 for(item = global->components;
242 (handled == FALSE) && (item != NULL);
243 item = item->next) {
244
245 comp = item->data;
246
247 switch(w1 - comp->id0) {
248 case 1:
249 skp_read_10b(global->stream);
250 w2 = g3d_stream_read_int16_le(global->stream);
251 handled = TRUE;
252 g_debug("\tw2=0x%04x", w2);
253 break;
254 case 3:
255 skp_read_dbl3(global->stream, &d1, &d2, &d3);
256 g_debug("\tvertex: %.4f, %.4f, %.4f", d1, d2, d3);
257 handled = TRUE;
258 break;
259 case 4:
260 case 5:
261 case 7:
262 g_debug("\tempty");
263 handled = TRUE;
264 break;
265 default:
266 break;
267 }
268 if(handled)
269 break;
270 switch(w1 - comp->id1) {
271 case 0:
272 skp_read_10b(global->stream);
273 d1 = g3d_stream_read_double_le(global->stream);
274 d2 = g3d_stream_read_double_le(global->stream);
275 d3 = g3d_stream_read_double_le(global->stream);
276 d4 = g3d_stream_read_double_le(global->stream);
277 x1 = g3d_stream_read_int32_le(global->stream);
278 g_debug("\tid1+4: dbl4: %.2f, %.2f, %.2f, %.2f (%i)",
279 d1, d2, d3, d4, x1);
280 handled = TRUE;
281 break;
282 case 2:
283 w2 = g3d_stream_read_int16_le(global->stream);
284 g_debug("\ti16: 0x%04x", w2);
285 handled = TRUE;
286 break;
287 case 4:
288 skp_read_5b(global->stream);
289 handled = TRUE;
290 break;
291 case 5:
292 case 9:
293 case 17:
294 case 19:
295 g_debug("\tempty");
296 handled = TRUE;
297 break;
298 default:
299 break;
300 }
301 } /* loop through known layers */
302
303 if(handled == FALSE) {
304 g_debug("vertex: unknown opcode %#04x (layer0: 0x%04x, 0x%04x)",
305 w1,
306 global->components ?
307 ((SkpComponent *)(global->components->data))->id0 : -1,
308 global->components ?
309 ((SkpComponent *)(global->components->data))->id1 : -1);
310 }
311 } while(TRUE);
312
313 return FALSE;
314
315}
316
317/*****************************************************************************/
318
319gboolean skp_cb_face_texture_coords(SkpGlobalData *global, SkpLocalData *local)
320{
321#if DEBUG > 1
322 gint32 i;
323 guint16 w1;
324 G3DFloat f1, f2, f3, f4;
325
326 w1 = g3d_stream_read_int16_le(global->stream);
327 g_return_val_if_fail(w1 == 0x0000, FALSE);
328
329 for(i = 0; i < 24; i ++) {
330 f1 = g3d_stream_read_float_le(global->stream);
331 f2 = g3d_stream_read_float_le(global->stream);
332 f3 = g3d_stream_read_float_le(global->stream);
333 f4 = g3d_stream_read_float_le(global->stream);
334 g_debug("\tf: %.4f, %.4f, %.4f, %.4f", f1, f2, f3, f4);
335 }
336#endif
337 return TRUE;
338}
339
340/*****************************************************************************/
341
342gboolean skp_cb_layer(SkpGlobalData *global, SkpLocalData *local)
343{
344 guint32 x1;
345 guint16 w1;
346 guint8 u1, u2, u3;
347 gchar *s1, *s2;
348
349 do {
350 w1 = g3d_stream_read_int16_le(global->stream);
351 g_return_val_if_fail(w1 == 0x0000, FALSE);
352
353 s1 = skp_read_wchar(global->stream);
354 u1 = g3d_stream_read_int8(global->stream);
355 u2 = g3d_stream_read_int8(global->stream);
356 u3 = g3d_stream_read_int8(global->stream);
357
358 g_debug("\\ %s (0x%02X, 0x%02X, 0x%02X)", s1, u1, u2, u3);
359
360 s2 = skp_read_wchar(global->stream);
361 u1 = g3d_stream_read_int8(global->stream);
362 u2 = g3d_stream_read_int8(global->stream);
363 g_return_val_if_fail(u2 == 0x01, FALSE);
364
365 /* layer color? */
366 x1 = g3d_stream_read_int32_le(global->stream);
367 g_debug("\\ %s (0x%02X, 0x%02X, 0x%08x)", s2, u1, u2, x1);
368
369 x1 = g3d_stream_read_int32_le(global->stream);
370 if(x1 == 0x00fffeff)
371 g3d_stream_seek(global->stream, 21, G_SEEK_CUR);
372 else if(x1 == 0xfffffeff)
373 g3d_stream_seek(global->stream, 20, G_SEEK_CUR);
374 else {
375 g_warning("CLayer: unexpected value 0x%08x @ 0x%08x", x1,
376 (guint32)g3d_stream_tell(global->stream) - 4);
377 return FALSE;
378 }
379 w1 = g3d_stream_read_int16_le(global->stream);
380 global->layers = g_slist_append(global->layers,
381 GINT_TO_POINTER(w1 & 0x7FFF));
382 g_debug("CLayer ID: 0x%2x", w1 & 0x7FFF);
383
384 if(s1)
385 g_free(s1);
386 if(s2)
387 g_free(s2);
388
389 } while(w1 & 0x8000);
390
391 x1 = g3d_stream_read_int32_le(global->stream);
392 g_debug("CLayer: last 0x%08x", x1);
393
394 return TRUE;
395}
396
397/*****************************************************************************/
398
399gboolean skp_cb_material(SkpGlobalData *global, SkpLocalData *local)
400{
401 gchar *name, *tmp;
402 guint8 u1, u2, u3;
403 guint32 x1, type, size;
404 G3DFloat r, g, b, a;
405 G3DMaterial *material;
406
407 g3d_stream_read_int16_le(global->stream);
408
409 name = skp_read_wchar(global->stream);
410 while(name) {
411 tmp = NULL;
412 size = 0;
413
414 material = g3d_material_new();
415 material->name = g_strdup(name);
416 global->model->materials = g_slist_append(global->model->materials,
417 material);
418
419 type = g3d_stream_read_int16_le(global->stream);
420 switch(type) {
421 case 0x0000: /* simple color */
422 r = g3d_stream_read_int8(global->stream);
423 g = g3d_stream_read_int8(global->stream);
424 b = g3d_stream_read_int8(global->stream);
425 a = g3d_stream_read_int8(global->stream);
426
427 material->r = r / 255.0;
428 material->g = g / 255.0;
429 material->b = b / 255.0;
430 material->a = a / 255.0;
431#if DEBUG > 1
432 g_debug(
433 "\tmaterial: %-30s 0x%04x, "
434 "color (%.1f, %.1f, %.1f)",
435 name, type, material->r, material->g, material->b);
436#endif
437 break;
438
439 case 0x0001: /* texture */
440 u1 = g3d_stream_read_int8(global->stream);
441 u2 = g3d_stream_read_int8(global->stream);
442 u3 = g3d_stream_read_int8(global->stream);
443 if(u3 == 0x80) {
444 /* number of textures? */
445 x1 = g3d_stream_read_int32_le(global->stream);
446 if(x1 > 0) {
447 size = g3d_stream_read_int32_le(global->stream);
448 g3d_stream_seek(global->stream, size, G_SEEK_CUR);
449 }
450 } else {
451 x1 = 0x0004;
452 }
453 switch(x1) {
454 case 0x0000:
455 g3d_stream_seek(global->stream, 12, G_SEEK_CUR);
456 break;
457 case 0x0001:
458 g3d_stream_seek(global->stream, 20, G_SEEK_CUR);
459 break;
460 case 0x0002:
461 g3d_stream_seek(global->stream, 16, G_SEEK_CUR);
462 break;
463 case 0x0004:
464 g3d_stream_seek(global->stream, 16, G_SEEK_CUR);
465 break;
466 default:
467 g3d_stream_seek(global->stream, 16, G_SEEK_CUR);
468 g_debug("SKP: mat0001: x1=%x: "
469 "%02X%02X %02X%02X %02X%02X %02X%02X", x1,
470 g3d_stream_read_int8(global->stream),
471 g3d_stream_read_int8(global->stream),
472 g3d_stream_read_int8(global->stream),
473 g3d_stream_read_int8(global->stream),
474 g3d_stream_read_int8(global->stream),
475 g3d_stream_read_int8(global->stream),
476 g3d_stream_read_int8(global->stream),
477 g3d_stream_read_int8(global->stream));
478 break;
479 }
480 tmp = skp_read_wchar(global->stream);
481 g3d_stream_seek(global->stream, 8, G_SEEK_CUR);
482#if DEBUG > 1
483 g_debug(
484 "\tmaterial: %-30s 0x%04x, %02X, %02X, %02X, 0x%08x\n"
485 "\t\ttexture (%d bytes, 0x%08x):\n\t\t%s",
486 name, type, u1, u2, u3, x1, size,
487 (guint32)g3d_stream_tell(global->stream), tmp);
488#endif
489
490 break;
491
492 case 0x0101: /* texture */
493 /* number of textures? */
494 x1 = g3d_stream_read_int32_le(global->stream);
495 size = g3d_stream_read_int32_le(global->stream);
496 g3d_stream_seek(global->stream, size, G_SEEK_CUR);
497 g3d_stream_seek(global->stream, 16, G_SEEK_CUR);
498 tmp = skp_read_wchar(global->stream);
499 g3d_stream_seek(global->stream, 8, G_SEEK_CUR);
500#if DEBUG > 1
501 g_debug(
502 "\tmaterial: %-30s 0x%04x, 0x%08x\n"
503 "\t\ttexture (%i bytes):\n\t\t%s",
504 name, type, x1, size, tmp);
505#endif
506 break;
507
508 default:
509 g_debug("SKP: material: unknown type 0x%04X @ 0x%08x",
510 type, (guint32)g3d_stream_tell(global->stream));
511 return FALSE;
512 }
513
514 x1 = g3d_stream_read_int32_be(global->stream);
515 switch(x1 & 0x00FFL) {
516 case 0x00:
517 g3d_stream_seek(global->stream, 21, G_SEEK_CUR);
518 break;
519 case 0xFF:
520 g3d_stream_seek(global->stream, 22, G_SEEK_CUR);
521 break;
522 default:
523 g_debug("x1: 0x%08x", x1);
524 break;
525 }
526
527 /* clean up */
528 if(tmp)
529 g_free(tmp);
530 g_free(name);
531
532 /* next one */
533 name = skp_read_wchar(global->stream);
534 }
535 return TRUE;
536}
537
538/*****************************************************************************/
539
540gboolean skp_cb_vertex(SkpGlobalData *global, SkpLocalData *local)
541{
542 guint16 w1;
543 gdouble d1, d2, d3;
544 gboolean handled;
545 GSList *item;
546 SkpComponent *comp;
547
548 return FALSE;
549
550 w1 = g3d_stream_read_int16_le(global->stream);
551 g_return_val_if_fail(w1 == 0x0000, FALSE);
552
553 skp_read_dbl3(global->stream, &d1, &d2, &d3);
554 g_debug("\tvertex: %.4f, %.4f, %.4f", d1, d2, d3);
555
556 do {
557 w1 = g3d_stream_read_int16_le(global->stream);
558 handled = FALSE;
559
560 g_debug("opcode: 0x%04x", w1);
561 if(w1 == 0xFFFF) {
562 g3d_stream_seek(global->stream, -2, G_SEEK_CUR);
563 return TRUE;
564 }
565 if(w1 & 0x8000) {
566 g3d_stream_read_int16_le(global->stream);
567 w1 &= 0x7FFF;
568 }
569 if(w1 == 0x0000) {
570 handled = TRUE;
571 }
572
573 for(item = global->components;
574 (handled == FALSE) && (item != NULL);
575 item = item->next) {
576
577 comp = item->data;
578
579 switch(w1 - comp->id0) {
580 case 1:
581 skp_read_10b(global->stream);
582 handled = TRUE;
583 break;
584 case 3:
585 skp_read_dbl3(global->stream, &d1, &d2, &d3);
586 g_debug("\tvertex: %.4f, %.4f, %.4f", d1, d2, d3);
587 handled = TRUE;
588 break;
589 case 4:
590 case 5:
591 case 7:
592 case 9:
593 case 11:
594 case 13:
595 g_debug("\tempty");
596 handled = TRUE;
597 break;
598 default:
599 break;
600 }
601 } /* loop through known layers */
602
603 if(handled == FALSE) {
604 g_debug("vertex: unknown opcode %#04x (layer0: 0x%04x, 0x%04x)",
605 w1,
606 global->components ?
607 ((SkpComponent *)(global->components->data))->id0 : -1,
608 global->components ?
609 ((SkpComponent *)(global->components->data))->id1 : -1);
610 }
611 } while(TRUE);
612
613 return FALSE;
614}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_callbacks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_callbacks.h
new file mode 100644
index 0000000..92af752
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_callbacks.h
@@ -0,0 +1,59 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef _IMP_SKP_CALLBACKS_H
24#define _IMP_SKP_CALLBACKS_H
25
26#include <g3d/types.h>
27
28typedef struct {
29 G3DContext *context;
30 G3DModel *model;
31 G3DStream *stream;
32 GSList *layers;
33 GSList *components;
34} SkpGlobalData;
35
36typedef struct {
37 gchar *id;
38 guint32 version;
39 gpointer object;
40} SkpLocalData;
41
42typedef gboolean (* SkpCallback)(SkpGlobalData *global, SkpLocalData *local);
43
44/* callbacks */
45
46gboolean skp_cb_arc_curve(SkpGlobalData *global, SkpLocalData *local);
47gboolean skp_cb_attribute_container(SkpGlobalData *global,
48 SkpLocalData *local);
49gboolean skp_cb_attribute_named(SkpGlobalData *global, SkpLocalData *local);
50gboolean skp_cb_component_definition(SkpGlobalData *global,
51 SkpLocalData *local);
52gboolean skp_cb_edge_use(SkpGlobalData *global, SkpLocalData *local);
53gboolean skp_cb_face_texture_coords(SkpGlobalData *global,
54 SkpLocalData *local);
55gboolean skp_cb_layer(SkpGlobalData *global, SkpLocalData *local);
56gboolean skp_cb_material(SkpGlobalData *global, SkpLocalData *local);
57gboolean skp_cb_vertex(SkpGlobalData *global, SkpLocalData *local);
58
59#endif /* _IMP_SKP_CALLBACKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_chunks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_chunks.h
new file mode 100644
index 0000000..bbee439
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_chunks.h
@@ -0,0 +1,62 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef _IMP_SKP_CHUNKS_H
24#define _IMP_SKP_CHUNKS_H
25
26#include "imp_skp_callbacks.h"
27
28typedef struct {
29 gchar *id;
30 guint32 min_ver;
31 guint32 max_ver;
32 SkpCallback callback;
33} SkpChunkDesc;
34
35static SkpChunkDesc skp_chunks[] = {
36 { "CArcCurve", 1, 1, skp_cb_arc_curve },
37 { "CAttributeContainer", 0, 0, skp_cb_attribute_container },
38 { "CAttributeNamed", 0, 0, skp_cb_attribute_named },
39 { "CCamera", 4, 5, NULL },
40 { "CComponentDefinition", 10, 10, skp_cb_component_definition },
41 { "CComponentInstance", 4, 4, NULL },
42 { "CCurve", 4, 4, NULL },
43 { "CDib", 2, 3, NULL },
44 { "CEdge", 2, 2, NULL },
45 { "CEdgeUse", 1, 1, skp_cb_edge_use },
46 { "CFace", 3, 3, NULL },
47 { "CFaceTextureCoords", 4, 4, skp_cb_face_texture_coords },
48 { "CGroup", 1, 1, NULL },
49 { "CLayer", 2, 2, skp_cb_layer },
50 { "CLoop", 1, 1, NULL },
51 { "CMaterial", 12, 12, skp_cb_material },
52 { "CRelationship", 0, 0, NULL },
53 { "CSkFont", 0, 1, NULL },
54 { "CSkpStyle", 1, 1, NULL },
55 { "CThumbnail", 1, 1, NULL },
56 { "CVertex", 0, 0, skp_cb_vertex },
57 { "CViewPage", 9, 11, NULL },
58
59 { NULL, 0, 0, NULL }
60};
61
62#endif /* _IMP_SKP_CHUNKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_read.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_read.c
new file mode 100644
index 0000000..7f95477
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_read.c
@@ -0,0 +1,114 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include "imp_skp.h"
23#include "imp_skp_read.h"
24
25guint32 skp_read_xint16(G3DStream *stream)
26{
27 guint32 val;
28
29 val = g3d_stream_read_int16_le(stream);
30 if(val & 0x8000L) {
31 val &= 0x7FFF;
32 val |= (g3d_stream_read_int16_le(stream) << 16);
33 }
34 return val;
35}
36
37gchar *skp_read_char(G3DStream *stream)
38{
39 guint32 magic, n;
40 gchar *text;
41
42 magic = g3d_stream_read_int32_be(stream);
43 if(magic != 0xffff0000) {
44 g_warning("SKP: wrong text magic: 0x%08x", magic);
45 return NULL;
46 }
47 n = g3d_stream_read_int16_le(stream);
48
49 text = g_new0(gchar, n + 1);
50 g3d_stream_read(stream, text, n);
51
52 return text;
53}
54
55gchar *skp_read_wchar(G3DStream *stream)
56{
57 gint32 i;
58 guint32 magic, n;
59 gunichar2 *u16text;
60 gchar *text;
61 GError *error = NULL;
62
63 magic = g3d_stream_read_int32_be(stream);
64 if((magic & 0xFFFFFF00) != 0xfffeff00) {
65#if DEBUG > 1
66 g_debug("SKP: wrong UTF-16 magic: 0x%08x", magic);
67#endif
68 g3d_stream_seek(stream, -4, G_SEEK_CUR);
69 return NULL;
70 }
71 n = magic & 0x000000FF;
72
73 u16text = g_new0(gunichar2, n + 1);
74 for(i = 0; i < n; i ++) {
75 u16text[i] = g3d_stream_read_int16_le(stream);
76 }
77
78 text = g_utf16_to_utf8(u16text, n, NULL, NULL, &error);
79 if(error != NULL) {
80 g_warning("UTF-16 to UTF-8 conversion failed: %s",
81 error->message);
82 g_error_free(error);
83 }
84 g_free(u16text);
85
86 return text;
87}
88
89gboolean skp_read_dbl3(G3DStream *stream,
90 gdouble *d1, gdouble *d2, gdouble *d3)
91{
92 *d1 = g3d_stream_read_double_le(stream);
93 *d2 = g3d_stream_read_double_le(stream);
94 *d3 = g3d_stream_read_double_le(stream);
95 return TRUE;
96}
97
98gboolean skp_read_10b(G3DStream *stream)
99{
100 guint32 x1, x2;
101 guint8 u1, u2;
102
103 x1 = g3d_stream_read_int32_be(stream);
104 u1 = g3d_stream_read_int8(stream);
105
106 if(((x1 & 0x00FFFFFF) != 0x0001) || (u1 != 0x01)) {
107 g_warning("skp_read_10b: %#08x, %#02x", x1, u1);
108 }
109 u2 = g3d_stream_read_int8(stream);
110 x2 = g3d_stream_read_int32_le(stream);
111 g_debug("\tread 10b: %08x %02x %02x %08x", x1, u1, u2, x2);
112 return TRUE;
113}
114
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_read.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_read.h
new file mode 100644
index 0000000..fc1dc4d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_read.h
@@ -0,0 +1,35 @@
1#ifndef _IMP_SKP_READ_H
2/* $Id:$ */
3
4/*
5 libg3d - 3D object loading library
6
7 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
8
9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Lesser General Public
11 License as published by the Free Software Foundation; either
12 version 2.1 of the License, or (at your option) any later version.
13
14 This library 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 GNU
17 Lesser General Public License for more details.
18
19 You should have received a copy of the GNU Lesser General Public
20 License along with this library; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22*/
23#define _IMP_SKP_READ_H
24
25#include <g3d/stream.h>
26
27guint32 skp_read_xint16(G3DStream *stream);
28gchar *skp_read_char(G3DStream *stream);
29gchar *skp_read_wchar(G3DStream *stream);
30
31gboolean skp_read_dbl3(G3DStream *stream,
32 gdouble *d1, gdouble *d2, gdouble *d3);
33gboolean skp_read_10b(G3DStream *stream);
34
35#endif /* _IMP_SKP_READ_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_types.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_types.h
new file mode 100644
index 0000000..a2a95c7
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_types.h
@@ -0,0 +1,33 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_SKP_TYPES_H
23#define _IMP_SKP_TYPES_H
24
25#include <glib.h>
26
27typedef struct {
28 guint32 id0;
29 guint32 id1;
30 guint32 layerid;
31} SkpComponent;
32
33#endif /* _IMP_SKP_TYPES_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile
new file mode 100644
index 0000000..bc7cf94
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile
@@ -0,0 +1,510 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_stl/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_stl
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_stl_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_stl_la_OBJECTS = imp_stl.lo
59imp_stl_la_OBJECTS = $(am_imp_stl_la_OBJECTS)
60#am_imp_stl_la_rpath = -rpath $(pluginimpdir)
61DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_stl_la_SOURCES)
74DIST_SOURCES = $(imp_stl_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
79AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
80AR = ar
81AS = as
82AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
83AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
84AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
85AWK = gawk
86CC = gcc
87CCDEPMODE = depmode=gcc3
88CFLAGS = -g -O2
89CPP = gcc -E
90CPPFLAGS =
91CXX = g++
92CXXCPP = g++ -E
93CXXDEPMODE = depmode=gcc3
94CXXFLAGS = -g -O2
95CYGPATH_W = echo
96DBG_CFLAGS = -O2
97DEBUG = 0
98DEFS = -DHAVE_CONFIG_H
99DEPDIR = .deps
100DLLTOOL = dlltool
101ECHO = echo
102ECHO_C =
103ECHO_N = -n
104ECHO_T =
105EGREP = /bin/grep -E
106EXEEXT =
107F77 =
108FFLAGS =
109GDKPIXBUF_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
110GDKPIXBUF_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
111GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
112GLIB_GENMARSHAL = glib-genmarshal
113GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
114GLIB_MKENUMS = glib-mkenums
115GOBJECT_QUERY = gobject-query
116GREP = /bin/grep
117GTKDOC_CHECK = /usr/bin/gtkdoc-check
118GTK_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
119GTK_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
120HTML_DIR = ${datadir}/gtk-doc/html
121INSTALL = /usr/bin/install -c
122INSTALL_DATA = ${INSTALL} -m 644
123INSTALL_PROGRAM = ${INSTALL}
124INSTALL_SCRIPT = ${INSTALL}
125INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
126LDFLAGS =
127LEX = flex
128LEXLIB = -lfl
129LEX_OUTPUT_ROOT = lex.yy
130LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
131LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
132LIBOBJS =
133LIBS = -lm
134LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
135LIBXML2_CFLAGS = -I/usr/include/libxml2
136LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
137LN_S = ln -s
138LTLIBOBJS =
139LTVERSION = 0:8:0
140MAGIC_LIBS = -lmagic
141MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
142MATH_LIBS = -lm
143MKDIR_P = /bin/mkdir -p
144OBJDUMP = objdump
145OBJEXT = o
146PACKAGE = libg3d
147PACKAGE_BUGREPORT =
148PACKAGE_NAME =
149PACKAGE_STRING =
150PACKAGE_TARNAME =
151PACKAGE_VERSION =
152PATH_SEPARATOR = :
153PKG_CONFIG = /usr/bin/pkg-config
154PLUGINS_LDFLAGS = -avoid-version -export-dynamic
155RANLIB = ranlib
156SET_MAKE =
157SHELL = /bin/bash
158STRIP = strip
159VERSION = 0.0.8
160XML2_CONFIG = /usr/bin/xml2-config
161XML_CPPFLAGS = -I/usr/include/libxml2
162XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
163Z_CFLAGS =
164Z_LIBS = -lz
165abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl
166abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl
167abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169ac_ct_CC = gcc
170ac_ct_CXX = g++
171ac_ct_F77 =
172am__include = include
173am__leading_dot = .
174am__quote =
175am__tar = ${AMTAR} chof - "$$tardir"
176am__untar = ${AMTAR} xf -
177bindir = ${exec_prefix}/bin
178build = x86_64-unknown-linux-gnu
179build_alias =
180build_cpu = x86_64
181build_os = linux-gnu
182build_vendor = unknown
183builddir = .
184datadir = ${datarootdir}
185datarootdir = ${prefix}/share
186docdir = ${datarootdir}/doc/${PACKAGE}
187dvidir = ${docdir}
188exec_prefix = ${prefix}
189host = x86_64-unknown-linux-gnu
190host_alias =
191host_cpu = x86_64
192host_os = linux-gnu
193host_vendor = unknown
194htmldir = ${docdir}
195includedir = ${prefix}/include
196infodir = ${datarootdir}/info
197install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
198libdir = ${exec_prefix}/lib
199libexecdir = ${exec_prefix}/libexec
200localedir = ${datarootdir}/locale
201localstatedir = ${prefix}/var
202mandir = ${datarootdir}/man
203mkdir_p = /bin/mkdir -p
204oldincludedir = /usr/include
205pdfdir = ${docdir}
206prefix = /usr/local
207program_transform_name = s,x,x,
208psdir = ${docdir}
209sbindir = ${exec_prefix}/sbin
210sharedstatedir = ${prefix}/com
211srcdir = .
212sysconfdir = ${prefix}/etc
213target_alias =
214top_builddir = ../../..
215top_srcdir = ../../..
216pluginimpdir = $(pkglibdir)/plugins/import
217#pluginimp_LTLIBRARIES = imp_stl.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 -O2 -DDEBUG=0 \
222 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 -avoid-version -export-dynamic
228
229imp_stl_la_SOURCES = imp_stl.c
230imp_stl_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
231all: all-am
232
233.SUFFIXES:
234.SUFFIXES: .c .lo .o .obj
235$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
236 @for dep in $?; do \
237 case '$(am__configure_deps)' in \
238 *$$dep*) \
239 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
240 && exit 0; \
241 exit 1;; \
242 esac; \
243 done; \
244 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_stl/Makefile'; \
245 cd $(top_srcdir) && \
246 $(AUTOMAKE) --gnu plugins/import/imp_stl/Makefile
247.PRECIOUS: Makefile
248Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
249 @case '$?' in \
250 *config.status*) \
251 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
252 *) \
253 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
254 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
255 esac;
256
257$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
258 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
259
260$(top_srcdir)/configure: $(am__configure_deps)
261 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
262$(ACLOCAL_M4): $(am__aclocal_m4_deps)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
265 @$(NORMAL_INSTALL)
266 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
267 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
268 if test -f $$p; then \
269 f=$(am__strip_dir) \
270 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
271 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
272 else :; fi; \
273 done
274
275uninstall-pluginimpLTLIBRARIES:
276 @$(NORMAL_UNINSTALL)
277 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
278 p=$(am__strip_dir) \
279 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
280 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
281 done
282
283clean-pluginimpLTLIBRARIES:
284 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
285 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
286 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
287 test "$$dir" != "$$p" || dir=.; \
288 echo "rm -f \"$${dir}/so_locations\""; \
289 rm -f "$${dir}/so_locations"; \
290 done
291imp_stl.la: $(imp_stl_la_OBJECTS) $(imp_stl_la_DEPENDENCIES)
292 $(LINK) $(am_imp_stl_la_rpath) $(imp_stl_la_OBJECTS) $(imp_stl_la_LIBADD) $(LIBS)
293
294mostlyclean-compile:
295 -rm -f *.$(OBJEXT)
296
297distclean-compile:
298 -rm -f *.tab.c
299
300include ./$(DEPDIR)/imp_stl.Plo
301
302.c.o:
303 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
304 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
305# source='$<' object='$@' libtool=no \
306# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
307# $(COMPILE) -c $<
308
309.c.obj:
310 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
311 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
312# source='$<' object='$@' libtool=no \
313# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
314# $(COMPILE) -c `$(CYGPATH_W) '$<'`
315
316.c.lo:
317 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
318 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
319# source='$<' object='$@' libtool=yes \
320# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
321# $(LTCOMPILE) -c -o $@ $<
322
323mostlyclean-libtool:
324 -rm -f *.lo
325
326clean-libtool:
327 -rm -rf .libs _libs
328
329ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
330 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
331 unique=`for i in $$list; do \
332 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
333 done | \
334 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
335 END { if (nonempty) { for (i in files) print i; }; }'`; \
336 mkid -fID $$unique
337tags: TAGS
338
339TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
340 $(TAGS_FILES) $(LISP)
341 tags=; \
342 here=`pwd`; \
343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
344 unique=`for i in $$list; do \
345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
346 done | \
347 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
349 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
350 test -n "$$unique" || unique=$$empty_fix; \
351 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
352 $$tags $$unique; \
353 fi
354ctags: CTAGS
355CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
356 $(TAGS_FILES) $(LISP)
357 tags=; \
358 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
359 unique=`for i in $$list; do \
360 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
361 done | \
362 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
363 END { if (nonempty) { for (i in files) print i; }; }'`; \
364 test -z "$(CTAGS_ARGS)$$tags$$unique" \
365 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
366 $$tags $$unique
367
368GTAGS:
369 here=`$(am__cd) $(top_builddir) && pwd` \
370 && cd $(top_srcdir) \
371 && gtags -i $(GTAGS_ARGS) $$here
372
373distclean-tags:
374 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
375
376distdir: $(DISTFILES)
377 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
379 list='$(DISTFILES)'; \
380 dist_files=`for file in $$list; do echo $$file; done | \
381 sed -e "s|^$$srcdirstrip/||;t" \
382 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
383 case $$dist_files in \
384 */*) $(MKDIR_P) `echo "$$dist_files" | \
385 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
386 sort -u` ;; \
387 esac; \
388 for file in $$dist_files; do \
389 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
390 if test -d $$d/$$file; then \
391 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
392 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
393 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
394 fi; \
395 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
396 else \
397 test -f $(distdir)/$$file \
398 || cp -p $$d/$$file $(distdir)/$$file \
399 || exit 1; \
400 fi; \
401 done
402check-am: all-am
403check: check-am
404all-am: Makefile $(LTLIBRARIES)
405installdirs:
406 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
407 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
408 done
409install: install-am
410install-exec: install-exec-am
411install-data: install-data-am
412uninstall: uninstall-am
413
414install-am: all-am
415 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
416
417installcheck: installcheck-am
418install-strip:
419 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
420 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
421 `test -z '$(STRIP)' || \
422 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
423mostlyclean-generic:
424
425clean-generic:
426
427distclean-generic:
428 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
429
430maintainer-clean-generic:
431 @echo "This command is intended for maintainers to use"
432 @echo "it deletes files that may require special tools to rebuild."
433clean: clean-am
434
435clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
436 mostlyclean-am
437
438distclean: distclean-am
439 -rm -rf ./$(DEPDIR)
440 -rm -f Makefile
441distclean-am: clean-am distclean-compile distclean-generic \
442 distclean-tags
443
444dvi: dvi-am
445
446dvi-am:
447
448html: html-am
449
450info: info-am
451
452info-am:
453
454install-data-am: install-pluginimpLTLIBRARIES
455
456install-dvi: install-dvi-am
457
458install-exec-am:
459
460install-html: install-html-am
461
462install-info: install-info-am
463
464install-man:
465
466install-pdf: install-pdf-am
467
468install-ps: install-ps-am
469
470installcheck-am:
471
472maintainer-clean: maintainer-clean-am
473 -rm -rf ./$(DEPDIR)
474 -rm -f Makefile
475maintainer-clean-am: distclean-am maintainer-clean-generic
476
477mostlyclean: mostlyclean-am
478
479mostlyclean-am: mostlyclean-compile mostlyclean-generic \
480 mostlyclean-libtool
481
482pdf: pdf-am
483
484pdf-am:
485
486ps: ps-am
487
488ps-am:
489
490uninstall-am: uninstall-pluginimpLTLIBRARIES
491
492.MAKE: install-am install-strip
493
494.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
495 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
496 distclean-compile distclean-generic distclean-libtool \
497 distclean-tags distdir dvi dvi-am html html-am info info-am \
498 install install-am install-data install-data-am install-dvi \
499 install-dvi-am install-exec install-exec-am install-html \
500 install-html-am install-info install-info-am install-man \
501 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
502 install-ps install-ps-am install-strip installcheck \
503 installcheck-am installdirs maintainer-clean \
504 maintainer-clean-generic mostlyclean mostlyclean-compile \
505 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
506 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
507
508# Tell versions [3.59,3.63) of GNU make to not export all variables.
509# Otherwise a system limit (for SysV at least) may be exceeded.
510.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile.am
new file mode 100644
index 0000000..3171c69
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile.am
@@ -0,0 +1,22 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if EXPERIMENTAL
4pluginimp_LTLIBRARIES = imp_stl.la
5endif
6
7AM_CFLAGS = \
8 -Wall -ansi -pedantic \
9 -DG_LOG_DOMAIN=\"LibG3D\" \
10 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
11 @GLIB_CFLAGS@
12
13INCLUDES = -I$(top_srcdir)/include
14
15AM_LDFLAGS = \
16 -no-undefined -module \
17 @PLUGINS_LDFLAGS@
18
19LIBTOOL += --quiet
20
21imp_stl_la_SOURCES = imp_stl.c
22imp_stl_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile.in
new file mode 100644
index 0000000..8f437e5
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile.in
@@ -0,0 +1,510 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_stl
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_stl_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_stl_la_OBJECTS = imp_stl.lo
59imp_stl_la_OBJECTS = $(am_imp_stl_la_OBJECTS)
60@EXPERIMENTAL_TRUE@am_imp_stl_la_rpath = -rpath $(pluginimpdir)
61DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_stl_la_SOURCES)
74DIST_SOURCES = $(imp_stl_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = @ACLOCAL@
79AMTAR = @AMTAR@
80AR = @AR@
81AS = @AS@
82AUTOCONF = @AUTOCONF@
83AUTOHEADER = @AUTOHEADER@
84AUTOMAKE = @AUTOMAKE@
85AWK = @AWK@
86CC = @CC@
87CCDEPMODE = @CCDEPMODE@
88CFLAGS = @CFLAGS@
89CPP = @CPP@
90CPPFLAGS = @CPPFLAGS@
91CXX = @CXX@
92CXXCPP = @CXXCPP@
93CXXDEPMODE = @CXXDEPMODE@
94CXXFLAGS = @CXXFLAGS@
95CYGPATH_W = @CYGPATH_W@
96DBG_CFLAGS = @DBG_CFLAGS@
97DEBUG = @DEBUG@
98DEFS = @DEFS@
99DEPDIR = @DEPDIR@
100DLLTOOL = @DLLTOOL@
101ECHO = @ECHO@
102ECHO_C = @ECHO_C@
103ECHO_N = @ECHO_N@
104ECHO_T = @ECHO_T@
105EGREP = @EGREP@
106EXEEXT = @EXEEXT@
107F77 = @F77@
108FFLAGS = @FFLAGS@
109GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
110GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
111GLIB_CFLAGS = @GLIB_CFLAGS@
112GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
113GLIB_LIBS = @GLIB_LIBS@
114GLIB_MKENUMS = @GLIB_MKENUMS@
115GOBJECT_QUERY = @GOBJECT_QUERY@
116GREP = @GREP@
117GTKDOC_CHECK = @GTKDOC_CHECK@
118GTK_CFLAGS = @GTK_CFLAGS@
119GTK_LIBS = @GTK_LIBS@
120HTML_DIR = @HTML_DIR@
121INSTALL = @INSTALL@
122INSTALL_DATA = @INSTALL_DATA@
123INSTALL_PROGRAM = @INSTALL_PROGRAM@
124INSTALL_SCRIPT = @INSTALL_SCRIPT@
125INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
126LDFLAGS = @LDFLAGS@
127LEX = @LEX@
128LEXLIB = @LEXLIB@
129LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
130LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
131LIBGSF_LIBS = @LIBGSF_LIBS@
132LIBOBJS = @LIBOBJS@
133LIBS = @LIBS@
134LIBTOOL = @LIBTOOL@ --quiet
135LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
136LIBXML2_LIBS = @LIBXML2_LIBS@
137LN_S = @LN_S@
138LTLIBOBJS = @LTLIBOBJS@
139LTVERSION = @LTVERSION@
140MAGIC_LIBS = @MAGIC_LIBS@
141MAKEINFO = @MAKEINFO@
142MATH_LIBS = @MATH_LIBS@
143MKDIR_P = @MKDIR_P@
144OBJDUMP = @OBJDUMP@
145OBJEXT = @OBJEXT@
146PACKAGE = @PACKAGE@
147PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
148PACKAGE_NAME = @PACKAGE_NAME@
149PACKAGE_STRING = @PACKAGE_STRING@
150PACKAGE_TARNAME = @PACKAGE_TARNAME@
151PACKAGE_VERSION = @PACKAGE_VERSION@
152PATH_SEPARATOR = @PATH_SEPARATOR@
153PKG_CONFIG = @PKG_CONFIG@
154PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
155RANLIB = @RANLIB@
156SET_MAKE = @SET_MAKE@
157SHELL = @SHELL@
158STRIP = @STRIP@
159VERSION = @VERSION@
160XML2_CONFIG = @XML2_CONFIG@
161XML_CPPFLAGS = @XML_CPPFLAGS@
162XML_LIBS = @XML_LIBS@
163Z_CFLAGS = @Z_CFLAGS@
164Z_LIBS = @Z_LIBS@
165abs_builddir = @abs_builddir@
166abs_srcdir = @abs_srcdir@
167abs_top_builddir = @abs_top_builddir@
168abs_top_srcdir = @abs_top_srcdir@
169ac_ct_CC = @ac_ct_CC@
170ac_ct_CXX = @ac_ct_CXX@
171ac_ct_F77 = @ac_ct_F77@
172am__include = @am__include@
173am__leading_dot = @am__leading_dot@
174am__quote = @am__quote@
175am__tar = @am__tar@
176am__untar = @am__untar@
177bindir = @bindir@
178build = @build@
179build_alias = @build_alias@
180build_cpu = @build_cpu@
181build_os = @build_os@
182build_vendor = @build_vendor@
183builddir = @builddir@
184datadir = @datadir@
185datarootdir = @datarootdir@
186docdir = @docdir@
187dvidir = @dvidir@
188exec_prefix = @exec_prefix@
189host = @host@
190host_alias = @host_alias@
191host_cpu = @host_cpu@
192host_os = @host_os@
193host_vendor = @host_vendor@
194htmldir = @htmldir@
195includedir = @includedir@
196infodir = @infodir@
197install_sh = @install_sh@
198libdir = @libdir@
199libexecdir = @libexecdir@
200localedir = @localedir@
201localstatedir = @localstatedir@
202mandir = @mandir@
203mkdir_p = @mkdir_p@
204oldincludedir = @oldincludedir@
205pdfdir = @pdfdir@
206prefix = @prefix@
207program_transform_name = @program_transform_name@
208psdir = @psdir@
209sbindir = @sbindir@
210sharedstatedir = @sharedstatedir@
211srcdir = @srcdir@
212sysconfdir = @sysconfdir@
213target_alias = @target_alias@
214top_builddir = @top_builddir@
215top_srcdir = @top_srcdir@
216pluginimpdir = $(pkglibdir)/plugins/import
217@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_stl.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
222 @GLIB_CFLAGS@
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 @PLUGINS_LDFLAGS@
228
229imp_stl_la_SOURCES = imp_stl.c
230imp_stl_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
231all: all-am
232
233.SUFFIXES:
234.SUFFIXES: .c .lo .o .obj
235$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
236 @for dep in $?; do \
237 case '$(am__configure_deps)' in \
238 *$$dep*) \
239 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
240 && exit 0; \
241 exit 1;; \
242 esac; \
243 done; \
244 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_stl/Makefile'; \
245 cd $(top_srcdir) && \
246 $(AUTOMAKE) --gnu plugins/import/imp_stl/Makefile
247.PRECIOUS: Makefile
248Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
249 @case '$?' in \
250 *config.status*) \
251 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
252 *) \
253 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
254 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
255 esac;
256
257$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
258 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
259
260$(top_srcdir)/configure: $(am__configure_deps)
261 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
262$(ACLOCAL_M4): $(am__aclocal_m4_deps)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
265 @$(NORMAL_INSTALL)
266 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
267 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
268 if test -f $$p; then \
269 f=$(am__strip_dir) \
270 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
271 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
272 else :; fi; \
273 done
274
275uninstall-pluginimpLTLIBRARIES:
276 @$(NORMAL_UNINSTALL)
277 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
278 p=$(am__strip_dir) \
279 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
280 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
281 done
282
283clean-pluginimpLTLIBRARIES:
284 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
285 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
286 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
287 test "$$dir" != "$$p" || dir=.; \
288 echo "rm -f \"$${dir}/so_locations\""; \
289 rm -f "$${dir}/so_locations"; \
290 done
291imp_stl.la: $(imp_stl_la_OBJECTS) $(imp_stl_la_DEPENDENCIES)
292 $(LINK) $(am_imp_stl_la_rpath) $(imp_stl_la_OBJECTS) $(imp_stl_la_LIBADD) $(LIBS)
293
294mostlyclean-compile:
295 -rm -f *.$(OBJEXT)
296
297distclean-compile:
298 -rm -f *.tab.c
299
300@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_stl.Plo@am__quote@
301
302.c.o:
303@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
304@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
305@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
306@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
307@am__fastdepCC_FALSE@ $(COMPILE) -c $<
308
309.c.obj:
310@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
311@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
313@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
314@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
315
316.c.lo:
317@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
318@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
320@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
321@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
322
323mostlyclean-libtool:
324 -rm -f *.lo
325
326clean-libtool:
327 -rm -rf .libs _libs
328
329ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
330 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
331 unique=`for i in $$list; do \
332 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
333 done | \
334 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
335 END { if (nonempty) { for (i in files) print i; }; }'`; \
336 mkid -fID $$unique
337tags: TAGS
338
339TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
340 $(TAGS_FILES) $(LISP)
341 tags=; \
342 here=`pwd`; \
343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
344 unique=`for i in $$list; do \
345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
346 done | \
347 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
349 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
350 test -n "$$unique" || unique=$$empty_fix; \
351 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
352 $$tags $$unique; \
353 fi
354ctags: CTAGS
355CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
356 $(TAGS_FILES) $(LISP)
357 tags=; \
358 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
359 unique=`for i in $$list; do \
360 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
361 done | \
362 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
363 END { if (nonempty) { for (i in files) print i; }; }'`; \
364 test -z "$(CTAGS_ARGS)$$tags$$unique" \
365 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
366 $$tags $$unique
367
368GTAGS:
369 here=`$(am__cd) $(top_builddir) && pwd` \
370 && cd $(top_srcdir) \
371 && gtags -i $(GTAGS_ARGS) $$here
372
373distclean-tags:
374 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
375
376distdir: $(DISTFILES)
377 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
379 list='$(DISTFILES)'; \
380 dist_files=`for file in $$list; do echo $$file; done | \
381 sed -e "s|^$$srcdirstrip/||;t" \
382 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
383 case $$dist_files in \
384 */*) $(MKDIR_P) `echo "$$dist_files" | \
385 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
386 sort -u` ;; \
387 esac; \
388 for file in $$dist_files; do \
389 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
390 if test -d $$d/$$file; then \
391 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
392 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
393 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
394 fi; \
395 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
396 else \
397 test -f $(distdir)/$$file \
398 || cp -p $$d/$$file $(distdir)/$$file \
399 || exit 1; \
400 fi; \
401 done
402check-am: all-am
403check: check-am
404all-am: Makefile $(LTLIBRARIES)
405installdirs:
406 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
407 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
408 done
409install: install-am
410install-exec: install-exec-am
411install-data: install-data-am
412uninstall: uninstall-am
413
414install-am: all-am
415 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
416
417installcheck: installcheck-am
418install-strip:
419 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
420 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
421 `test -z '$(STRIP)' || \
422 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
423mostlyclean-generic:
424
425clean-generic:
426
427distclean-generic:
428 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
429
430maintainer-clean-generic:
431 @echo "This command is intended for maintainers to use"
432 @echo "it deletes files that may require special tools to rebuild."
433clean: clean-am
434
435clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
436 mostlyclean-am
437
438distclean: distclean-am
439 -rm -rf ./$(DEPDIR)
440 -rm -f Makefile
441distclean-am: clean-am distclean-compile distclean-generic \
442 distclean-tags
443
444dvi: dvi-am
445
446dvi-am:
447
448html: html-am
449
450info: info-am
451
452info-am:
453
454install-data-am: install-pluginimpLTLIBRARIES
455
456install-dvi: install-dvi-am
457
458install-exec-am:
459
460install-html: install-html-am
461
462install-info: install-info-am
463
464install-man:
465
466install-pdf: install-pdf-am
467
468install-ps: install-ps-am
469
470installcheck-am:
471
472maintainer-clean: maintainer-clean-am
473 -rm -rf ./$(DEPDIR)
474 -rm -f Makefile
475maintainer-clean-am: distclean-am maintainer-clean-generic
476
477mostlyclean: mostlyclean-am
478
479mostlyclean-am: mostlyclean-compile mostlyclean-generic \
480 mostlyclean-libtool
481
482pdf: pdf-am
483
484pdf-am:
485
486ps: ps-am
487
488ps-am:
489
490uninstall-am: uninstall-pluginimpLTLIBRARIES
491
492.MAKE: install-am install-strip
493
494.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
495 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
496 distclean-compile distclean-generic distclean-libtool \
497 distclean-tags distdir dvi dvi-am html html-am info info-am \
498 install install-am install-data install-data-am install-dvi \
499 install-dvi-am install-exec install-exec-am install-html \
500 install-html-am install-info install-info-am install-man \
501 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
502 install-ps install-ps-am install-strip installcheck \
503 installcheck-am installdirs maintainer-clean \
504 maintainer-clean-generic mostlyclean mostlyclean-compile \
505 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
506 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
507
508# Tell versions [3.59,3.63) of GNU make to not export all variables.
509# Otherwise a system limit (for SysV at least) may be exceeded.
510.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/imp_stl.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/imp_stl.c
new file mode 100644
index 0000000..04a0f4a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/imp_stl.c
@@ -0,0 +1,200 @@
1/*
2 libg3d - 3D object loading library
3
4 Copyright (C) 2006 Oliver Dippel <o.dippel@gmx.de>
5 2008 Markus Dahms <mad@automagically.de>
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or (at your option) any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20*/
21
22#include <stdio.h>
23#include <stdlib.h>
24#include <string.h>
25#include <locale.h>
26
27#include <g3d/types.h>
28#include <g3d/stream.h>
29#include <g3d/material.h>
30
31/*
32 Infos for the STL(A)-Format:
33 http://www.csit.fsu.edu/~burkardt/data/stla/stla.html
34 Infos for the STL(B)-Format:
35 http://www.csit.fsu.edu/~burkardt/data/stlb/stlb.html
36*/
37
38#define STL_ASCII 0
39#define STL_BINARY 1
40
41static gboolean stl_load_binary(G3DContext *context, G3DModel *model,
42 G3DStream *stream);
43static gboolean stl_load_text(G3DContext *context, G3DModel *model,
44 G3DStream *stream);
45
46EAPI
47gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
48 G3DModel *model, gpointer user_data)
49{
50 gchar line[1024];
51 guint32 type;
52
53 /* Check Filetype (ASCII or BINARY) */
54 type = STL_BINARY;
55 while(!g3d_stream_eof(stream)) {
56 if(!g3d_stream_read_line(stream, line, 1023))
57 break;
58 if(strstr(line, "solid")) {
59 setlocale(LC_NUMERIC, "C");
60 type = STL_ASCII;
61 break;
62 }
63 }
64 /* rewind */
65 g3d_stream_seek(stream, 0, G_SEEK_SET);
66
67 if (type == STL_BINARY)
68 return stl_load_binary(context, model, stream);
69 else
70 return stl_load_text(context, model, stream);
71}
72
73EAPI
74gchar *plugin_description(G3DContext *context)
75{
76 return g_strdup("STLA and STLB stereolithography models.\n"
77 "Author: Oliver Dippel");
78}
79
80EAPI
81gchar **plugin_extensions(G3DContext *context)
82{
83 return g_strsplit("stl:stla:stlb", ":", 0);
84}
85
86/*****************************************************************************/
87
88static gboolean stl_load_binary(G3DContext *context, G3DModel *model,
89 G3DStream *stream)
90{
91 G3DObject *object;
92 G3DMaterial *material;
93 G3DFace *face;
94 gchar name[81];
95 guint32 num_faces, index = 0;
96 gint32 n, i, j;
97
98#if DEBUG > 0
99 g_debug("STL: format is BINARY");
100#endif
101
102 g3d_stream_read(stream, name, 80);
103 name[80] = 0;
104 num_faces = g3d_stream_read_int32_le(stream);
105
106 object = g_new0(G3DObject, 1);
107 object->name = g_strdup("STL-Model");
108 model->objects = g_slist_append(model->objects, object);
109
110 material = g3d_material_new();
111 material->name = g_strdup("default material");
112 object->materials = g_slist_append(object->materials, material);
113
114 object->vertex_count = num_faces * 3;
115#if DEBUG > 2
116 g_debug("STL: BINARY: vertex_count: %i", object->vertex_count);
117#endif
118 object->vertex_data = g_new0(G3DFloat, object->vertex_count * 3);
119 for(n = 0; n < num_faces; n ++) {
120 face = g_new0(G3DFace, 1);
121 face->material = material;
122 face->vertex_count = 3;
123 face->vertex_indices = g_new0(guint32, face->vertex_count);
124 face->vertex_indices[0] = index + 0;
125 face->vertex_indices[1] = index + 1;
126 face->vertex_indices[2] = index + 2;
127 object->faces = g_slist_prepend(object->faces, face);
128 /* normal */
129 for(j = 0; j < 3; j ++)
130 g3d_stream_read_float_le(stream);
131 /* triangle */
132 for(i = 0; i < 3; i ++) {
133 for(j = 0; j < 3; j ++)
134 object->vertex_data[index * 3 + j] =
135 g3d_stream_read_float_le(stream);
136 index ++;
137 }
138 /* 2 Byte Dummy read */
139 g3d_stream_read_int16_le(stream);
140 }
141 return TRUE;
142}
143
144static gboolean stl_load_text(G3DContext *context, G3DModel *model,
145 G3DStream *stream)
146{
147 G3DObject *object;
148 G3DMaterial *material;
149 G3DFace *face;
150 gchar line[1024];
151 guint32 index = 0;
152 G3DFloat x, y, z;
153
154#if DEBUG > 0
155 g_debug("STL: format is ASCII");
156#endif
157
158 object = g_new0(G3DObject, 1);
159 object->name = g_strdup("STL-Model");
160 model->objects = g_slist_append(model->objects, object);
161 material = g3d_material_new();
162 material->name = g_strdup("default material");
163 object->materials = g_slist_append(object->materials, material);
164 object->vertex_count = 0;
165 while(!g3d_stream_eof(stream)) {
166 line[0] = 0;
167 if(!g3d_stream_read_line(stream, line, 1023))
168 break;
169 g_strstrip(line);
170 if(strncmp(line, "solid", 5) == 0) {
171 g_free(object->name);
172 object->name = g_strdup(line + 6);
173 } else if(strncmp(line, "vertex", 6) == 0) {
174 object->vertex_count ++;
175 object->vertex_data = g_realloc(object->vertex_data,
176 object->vertex_count * 3 * sizeof(G3DFloat));
177 if(sscanf(line + 7, G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &x, &y, &z) == 3) {
178 object->vertex_data[(object->vertex_count - 1) * 3 + 0] = x;
179 object->vertex_data[(object->vertex_count - 1) * 3 + 1] = y;
180 object->vertex_data[(object->vertex_count - 1) * 3 + 2] = z;
181 } else {
182#if DEBUG > 0
183 g_debug("imp_stl: parse error in vertex line: %s", line);
184#endif
185 }
186 } else if(strncmp(line, "facet", 5) == 0) {
187 face = g_new0(G3DFace, 1);
188 face->material = material;
189 face->vertex_count = 3;
190 face->vertex_indices = g_new0(guint32, face->vertex_count);
191 face->vertex_indices[0] = index + 0;
192 face->vertex_indices[1] = index + 1;
193 face->vertex_indices[2] = index + 2;
194 object->faces = g_slist_prepend(object->faces, face);
195 index += 3;
196 }
197 }
198 return TRUE;
199}
200
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/Makefile
new file mode 100644
index 0000000..b633909
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/Makefile
@@ -0,0 +1,513 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_ta/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_ta
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_ta_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_ta_la_OBJECTS = imp_ta.lo imp_ta_3do.lo
59imp_ta_la_OBJECTS = $(am_imp_ta_la_OBJECTS)
60#am_imp_ta_la_rpath = -rpath $(pluginimpdir)
61DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_ta_la_SOURCES)
74DIST_SOURCES = $(imp_ta_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
79AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
80AR = ar
81AS = as
82AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
83AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
84AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
85AWK = gawk
86CC = gcc
87CCDEPMODE = depmode=gcc3
88CFLAGS = -g -O2
89CPP = gcc -E
90CPPFLAGS =
91CXX = g++
92CXXCPP = g++ -E
93CXXDEPMODE = depmode=gcc3
94CXXFLAGS = -g -O2
95CYGPATH_W = echo
96DBG_CFLAGS = -O2
97DEBUG = 0
98DEFS = -DHAVE_CONFIG_H
99DEPDIR = .deps
100DLLTOOL = dlltool
101ECHO = echo
102ECHO_C =
103ECHO_N = -n
104ECHO_T =
105EGREP = /bin/grep -E
106EXEEXT =
107F77 =
108FFLAGS =
109GDKPIXBUF_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
110GDKPIXBUF_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
111GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
112GLIB_GENMARSHAL = glib-genmarshal
113GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
114GLIB_MKENUMS = glib-mkenums
115GOBJECT_QUERY = gobject-query
116GREP = /bin/grep
117GTKDOC_CHECK = /usr/bin/gtkdoc-check
118GTK_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
119GTK_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
120HTML_DIR = ${datadir}/gtk-doc/html
121INSTALL = /usr/bin/install -c
122INSTALL_DATA = ${INSTALL} -m 644
123INSTALL_PROGRAM = ${INSTALL}
124INSTALL_SCRIPT = ${INSTALL}
125INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
126LDFLAGS =
127LEX = flex
128LEXLIB = -lfl
129LEX_OUTPUT_ROOT = lex.yy
130LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
131LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
132LIBOBJS =
133LIBS = -lm
134LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
135LIBXML2_CFLAGS = -I/usr/include/libxml2
136LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
137LN_S = ln -s
138LTLIBOBJS =
139LTVERSION = 0:8:0
140MAGIC_LIBS = -lmagic
141MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
142MATH_LIBS = -lm
143MKDIR_P = /bin/mkdir -p
144OBJDUMP = objdump
145OBJEXT = o
146PACKAGE = libg3d
147PACKAGE_BUGREPORT =
148PACKAGE_NAME =
149PACKAGE_STRING =
150PACKAGE_TARNAME =
151PACKAGE_VERSION =
152PATH_SEPARATOR = :
153PKG_CONFIG = /usr/bin/pkg-config
154PLUGINS_LDFLAGS = -avoid-version -export-dynamic
155RANLIB = ranlib
156SET_MAKE =
157SHELL = /bin/bash
158STRIP = strip
159VERSION = 0.0.8
160XML2_CONFIG = /usr/bin/xml2-config
161XML_CPPFLAGS = -I/usr/include/libxml2
162XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
163Z_CFLAGS =
164Z_LIBS = -lz
165abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta
166abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta
167abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169ac_ct_CC = gcc
170ac_ct_CXX = g++
171ac_ct_F77 =
172am__include = include
173am__leading_dot = .
174am__quote =
175am__tar = ${AMTAR} chof - "$$tardir"
176am__untar = ${AMTAR} xf -
177bindir = ${exec_prefix}/bin
178build = x86_64-unknown-linux-gnu
179build_alias =
180build_cpu = x86_64
181build_os = linux-gnu
182build_vendor = unknown
183builddir = .
184datadir = ${datarootdir}
185datarootdir = ${prefix}/share
186docdir = ${datarootdir}/doc/${PACKAGE}
187dvidir = ${docdir}
188exec_prefix = ${prefix}
189host = x86_64-unknown-linux-gnu
190host_alias =
191host_cpu = x86_64
192host_os = linux-gnu
193host_vendor = unknown
194htmldir = ${docdir}
195includedir = ${prefix}/include
196infodir = ${datarootdir}/info
197install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
198libdir = ${exec_prefix}/lib
199libexecdir = ${exec_prefix}/libexec
200localedir = ${datarootdir}/locale
201localstatedir = ${prefix}/var
202mandir = ${datarootdir}/man
203mkdir_p = /bin/mkdir -p
204oldincludedir = /usr/include
205pdfdir = ${docdir}
206prefix = /usr/local
207program_transform_name = s,x,x,
208psdir = ${docdir}
209sbindir = ${exec_prefix}/sbin
210sharedstatedir = ${prefix}/com
211srcdir = .
212sysconfdir = ${prefix}/etc
213target_alias =
214top_builddir = ../../..
215top_srcdir = ../../..
216pluginimpdir = $(pkglibdir)/plugins/import
217#pluginimp_LTLIBRARIES = imp_ta.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 -O2 -DDEBUG=0 \
222 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 -avoid-version -export-dynamic
228
229imp_ta_la_SOURCES = imp_ta.c imp_ta_3do_palette.h \
230 imp_ta_3do.c imp_ta_3do.h
231
232imp_ta_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
233all: all-am
234
235.SUFFIXES:
236.SUFFIXES: .c .lo .o .obj
237$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
238 @for dep in $?; do \
239 case '$(am__configure_deps)' in \
240 *$$dep*) \
241 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
242 && exit 0; \
243 exit 1;; \
244 esac; \
245 done; \
246 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_ta/Makefile'; \
247 cd $(top_srcdir) && \
248 $(AUTOMAKE) --gnu plugins/import/imp_ta/Makefile
249.PRECIOUS: Makefile
250Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
251 @case '$?' in \
252 *config.status*) \
253 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
254 *) \
255 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
256 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
257 esac;
258
259$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261
262$(top_srcdir)/configure: $(am__configure_deps)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264$(ACLOCAL_M4): $(am__aclocal_m4_deps)
265 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
266install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
267 @$(NORMAL_INSTALL)
268 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
269 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
270 if test -f $$p; then \
271 f=$(am__strip_dir) \
272 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
273 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
274 else :; fi; \
275 done
276
277uninstall-pluginimpLTLIBRARIES:
278 @$(NORMAL_UNINSTALL)
279 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
280 p=$(am__strip_dir) \
281 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
282 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
283 done
284
285clean-pluginimpLTLIBRARIES:
286 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
287 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
288 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
289 test "$$dir" != "$$p" || dir=.; \
290 echo "rm -f \"$${dir}/so_locations\""; \
291 rm -f "$${dir}/so_locations"; \
292 done
293imp_ta.la: $(imp_ta_la_OBJECTS) $(imp_ta_la_DEPENDENCIES)
294 $(LINK) $(am_imp_ta_la_rpath) $(imp_ta_la_OBJECTS) $(imp_ta_la_LIBADD) $(LIBS)
295
296mostlyclean-compile:
297 -rm -f *.$(OBJEXT)
298
299distclean-compile:
300 -rm -f *.tab.c
301
302include ./$(DEPDIR)/imp_ta.Plo
303include ./$(DEPDIR)/imp_ta_3do.Plo
304
305.c.o:
306 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
307 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
308# source='$<' object='$@' libtool=no \
309# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
310# $(COMPILE) -c $<
311
312.c.obj:
313 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
314 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
315# source='$<' object='$@' libtool=no \
316# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
317# $(COMPILE) -c `$(CYGPATH_W) '$<'`
318
319.c.lo:
320 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
321 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
322# source='$<' object='$@' libtool=yes \
323# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
324# $(LTCOMPILE) -c -o $@ $<
325
326mostlyclean-libtool:
327 -rm -f *.lo
328
329clean-libtool:
330 -rm -rf .libs _libs
331
332ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
333 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
334 unique=`for i in $$list; do \
335 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
336 done | \
337 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
338 END { if (nonempty) { for (i in files) print i; }; }'`; \
339 mkid -fID $$unique
340tags: TAGS
341
342TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
343 $(TAGS_FILES) $(LISP)
344 tags=; \
345 here=`pwd`; \
346 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
347 unique=`for i in $$list; do \
348 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
349 done | \
350 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
351 END { if (nonempty) { for (i in files) print i; }; }'`; \
352 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
353 test -n "$$unique" || unique=$$empty_fix; \
354 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
355 $$tags $$unique; \
356 fi
357ctags: CTAGS
358CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
359 $(TAGS_FILES) $(LISP)
360 tags=; \
361 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
362 unique=`for i in $$list; do \
363 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
364 done | \
365 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
366 END { if (nonempty) { for (i in files) print i; }; }'`; \
367 test -z "$(CTAGS_ARGS)$$tags$$unique" \
368 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
369 $$tags $$unique
370
371GTAGS:
372 here=`$(am__cd) $(top_builddir) && pwd` \
373 && cd $(top_srcdir) \
374 && gtags -i $(GTAGS_ARGS) $$here
375
376distclean-tags:
377 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
378
379distdir: $(DISTFILES)
380 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
381 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
382 list='$(DISTFILES)'; \
383 dist_files=`for file in $$list; do echo $$file; done | \
384 sed -e "s|^$$srcdirstrip/||;t" \
385 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
386 case $$dist_files in \
387 */*) $(MKDIR_P) `echo "$$dist_files" | \
388 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
389 sort -u` ;; \
390 esac; \
391 for file in $$dist_files; do \
392 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
393 if test -d $$d/$$file; then \
394 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
395 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
396 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
397 fi; \
398 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
399 else \
400 test -f $(distdir)/$$file \
401 || cp -p $$d/$$file $(distdir)/$$file \
402 || exit 1; \
403 fi; \
404 done
405check-am: all-am
406check: check-am
407all-am: Makefile $(LTLIBRARIES)
408installdirs:
409 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
410 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
411 done
412install: install-am
413install-exec: install-exec-am
414install-data: install-data-am
415uninstall: uninstall-am
416
417install-am: all-am
418 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
419
420installcheck: installcheck-am
421install-strip:
422 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
423 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
424 `test -z '$(STRIP)' || \
425 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
426mostlyclean-generic:
427
428clean-generic:
429
430distclean-generic:
431 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
432
433maintainer-clean-generic:
434 @echo "This command is intended for maintainers to use"
435 @echo "it deletes files that may require special tools to rebuild."
436clean: clean-am
437
438clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
439 mostlyclean-am
440
441distclean: distclean-am
442 -rm -rf ./$(DEPDIR)
443 -rm -f Makefile
444distclean-am: clean-am distclean-compile distclean-generic \
445 distclean-tags
446
447dvi: dvi-am
448
449dvi-am:
450
451html: html-am
452
453info: info-am
454
455info-am:
456
457install-data-am: install-pluginimpLTLIBRARIES
458
459install-dvi: install-dvi-am
460
461install-exec-am:
462
463install-html: install-html-am
464
465install-info: install-info-am
466
467install-man:
468
469install-pdf: install-pdf-am
470
471install-ps: install-ps-am
472
473installcheck-am:
474
475maintainer-clean: maintainer-clean-am
476 -rm -rf ./$(DEPDIR)
477 -rm -f Makefile
478maintainer-clean-am: distclean-am maintainer-clean-generic
479
480mostlyclean: mostlyclean-am
481
482mostlyclean-am: mostlyclean-compile mostlyclean-generic \
483 mostlyclean-libtool
484
485pdf: pdf-am
486
487pdf-am:
488
489ps: ps-am
490
491ps-am:
492
493uninstall-am: uninstall-pluginimpLTLIBRARIES
494
495.MAKE: install-am install-strip
496
497.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
498 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
499 distclean-compile distclean-generic distclean-libtool \
500 distclean-tags distdir dvi dvi-am html html-am info info-am \
501 install install-am install-data install-data-am install-dvi \
502 install-dvi-am install-exec install-exec-am install-html \
503 install-html-am install-info install-info-am install-man \
504 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
505 install-ps install-ps-am install-strip installcheck \
506 installcheck-am installdirs maintainer-clean \
507 maintainer-clean-generic mostlyclean mostlyclean-compile \
508 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
509 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
510
511# Tell versions [3.59,3.63) of GNU make to not export all variables.
512# Otherwise a system limit (for SysV at least) may be exceeded.
513.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/Makefile.am
new file mode 100644
index 0000000..4d5ad2f
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/Makefile.am
@@ -0,0 +1,23 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if EXPERIMENTAL
4pluginimp_LTLIBRARIES = imp_ta.la
5endif
6
7AM_CFLAGS = \
8 -Wall -ansi -pedantic \
9 -DG_LOG_DOMAIN=\"LibG3D\" \
10 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
11 @GLIB_CFLAGS@
12
13INCLUDES = -I$(top_srcdir)/include
14
15AM_LDFLAGS = \
16 -no-undefined -module \
17 @PLUGINS_LDFLAGS@
18
19LIBTOOL += --quiet
20
21imp_ta_la_SOURCES = imp_ta.c imp_ta_3do_palette.h \
22 imp_ta_3do.c imp_ta_3do.h
23imp_ta_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/Makefile.in
new file mode 100644
index 0000000..cc697db
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/Makefile.in
@@ -0,0 +1,513 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_ta
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_ta_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_ta_la_OBJECTS = imp_ta.lo imp_ta_3do.lo
59imp_ta_la_OBJECTS = $(am_imp_ta_la_OBJECTS)
60@EXPERIMENTAL_TRUE@am_imp_ta_la_rpath = -rpath $(pluginimpdir)
61DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_ta_la_SOURCES)
74DIST_SOURCES = $(imp_ta_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = @ACLOCAL@
79AMTAR = @AMTAR@
80AR = @AR@
81AS = @AS@
82AUTOCONF = @AUTOCONF@
83AUTOHEADER = @AUTOHEADER@
84AUTOMAKE = @AUTOMAKE@
85AWK = @AWK@
86CC = @CC@
87CCDEPMODE = @CCDEPMODE@
88CFLAGS = @CFLAGS@
89CPP = @CPP@
90CPPFLAGS = @CPPFLAGS@
91CXX = @CXX@
92CXXCPP = @CXXCPP@
93CXXDEPMODE = @CXXDEPMODE@
94CXXFLAGS = @CXXFLAGS@
95CYGPATH_W = @CYGPATH_W@
96DBG_CFLAGS = @DBG_CFLAGS@
97DEBUG = @DEBUG@
98DEFS = @DEFS@
99DEPDIR = @DEPDIR@
100DLLTOOL = @DLLTOOL@
101ECHO = @ECHO@
102ECHO_C = @ECHO_C@
103ECHO_N = @ECHO_N@
104ECHO_T = @ECHO_T@
105EGREP = @EGREP@
106EXEEXT = @EXEEXT@
107F77 = @F77@
108FFLAGS = @FFLAGS@
109GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
110GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
111GLIB_CFLAGS = @GLIB_CFLAGS@
112GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
113GLIB_LIBS = @GLIB_LIBS@
114GLIB_MKENUMS = @GLIB_MKENUMS@
115GOBJECT_QUERY = @GOBJECT_QUERY@
116GREP = @GREP@
117GTKDOC_CHECK = @GTKDOC_CHECK@
118GTK_CFLAGS = @GTK_CFLAGS@
119GTK_LIBS = @GTK_LIBS@
120HTML_DIR = @HTML_DIR@
121INSTALL = @INSTALL@
122INSTALL_DATA = @INSTALL_DATA@
123INSTALL_PROGRAM = @INSTALL_PROGRAM@
124INSTALL_SCRIPT = @INSTALL_SCRIPT@
125INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
126LDFLAGS = @LDFLAGS@
127LEX = @LEX@
128LEXLIB = @LEXLIB@
129LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
130LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
131LIBGSF_LIBS = @LIBGSF_LIBS@
132LIBOBJS = @LIBOBJS@
133LIBS = @LIBS@
134LIBTOOL = @LIBTOOL@ --quiet
135LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
136LIBXML2_LIBS = @LIBXML2_LIBS@
137LN_S = @LN_S@
138LTLIBOBJS = @LTLIBOBJS@
139LTVERSION = @LTVERSION@
140MAGIC_LIBS = @MAGIC_LIBS@
141MAKEINFO = @MAKEINFO@
142MATH_LIBS = @MATH_LIBS@
143MKDIR_P = @MKDIR_P@
144OBJDUMP = @OBJDUMP@
145OBJEXT = @OBJEXT@
146PACKAGE = @PACKAGE@
147PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
148PACKAGE_NAME = @PACKAGE_NAME@
149PACKAGE_STRING = @PACKAGE_STRING@
150PACKAGE_TARNAME = @PACKAGE_TARNAME@
151PACKAGE_VERSION = @PACKAGE_VERSION@
152PATH_SEPARATOR = @PATH_SEPARATOR@
153PKG_CONFIG = @PKG_CONFIG@
154PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
155RANLIB = @RANLIB@
156SET_MAKE = @SET_MAKE@
157SHELL = @SHELL@
158STRIP = @STRIP@
159VERSION = @VERSION@
160XML2_CONFIG = @XML2_CONFIG@
161XML_CPPFLAGS = @XML_CPPFLAGS@
162XML_LIBS = @XML_LIBS@
163Z_CFLAGS = @Z_CFLAGS@
164Z_LIBS = @Z_LIBS@
165abs_builddir = @abs_builddir@
166abs_srcdir = @abs_srcdir@
167abs_top_builddir = @abs_top_builddir@
168abs_top_srcdir = @abs_top_srcdir@
169ac_ct_CC = @ac_ct_CC@
170ac_ct_CXX = @ac_ct_CXX@
171ac_ct_F77 = @ac_ct_F77@
172am__include = @am__include@
173am__leading_dot = @am__leading_dot@
174am__quote = @am__quote@
175am__tar = @am__tar@
176am__untar = @am__untar@
177bindir = @bindir@
178build = @build@
179build_alias = @build_alias@
180build_cpu = @build_cpu@
181build_os = @build_os@
182build_vendor = @build_vendor@
183builddir = @builddir@
184datadir = @datadir@
185datarootdir = @datarootdir@
186docdir = @docdir@
187dvidir = @dvidir@
188exec_prefix = @exec_prefix@
189host = @host@
190host_alias = @host_alias@
191host_cpu = @host_cpu@
192host_os = @host_os@
193host_vendor = @host_vendor@
194htmldir = @htmldir@
195includedir = @includedir@
196infodir = @infodir@
197install_sh = @install_sh@
198libdir = @libdir@
199libexecdir = @libexecdir@
200localedir = @localedir@
201localstatedir = @localstatedir@
202mandir = @mandir@
203mkdir_p = @mkdir_p@
204oldincludedir = @oldincludedir@
205pdfdir = @pdfdir@
206prefix = @prefix@
207program_transform_name = @program_transform_name@
208psdir = @psdir@
209sbindir = @sbindir@
210sharedstatedir = @sharedstatedir@
211srcdir = @srcdir@
212sysconfdir = @sysconfdir@
213target_alias = @target_alias@
214top_builddir = @top_builddir@
215top_srcdir = @top_srcdir@
216pluginimpdir = $(pkglibdir)/plugins/import
217@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_ta.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
222 @GLIB_CFLAGS@
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 @PLUGINS_LDFLAGS@
228
229imp_ta_la_SOURCES = imp_ta.c imp_ta_3do_palette.h \
230 imp_ta_3do.c imp_ta_3do.h
231
232imp_ta_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
233all: all-am
234
235.SUFFIXES:
236.SUFFIXES: .c .lo .o .obj
237$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
238 @for dep in $?; do \
239 case '$(am__configure_deps)' in \
240 *$$dep*) \
241 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
242 && exit 0; \
243 exit 1;; \
244 esac; \
245 done; \
246 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_ta/Makefile'; \
247 cd $(top_srcdir) && \
248 $(AUTOMAKE) --gnu plugins/import/imp_ta/Makefile
249.PRECIOUS: Makefile
250Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
251 @case '$?' in \
252 *config.status*) \
253 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
254 *) \
255 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
256 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
257 esac;
258
259$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261
262$(top_srcdir)/configure: $(am__configure_deps)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264$(ACLOCAL_M4): $(am__aclocal_m4_deps)
265 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
266install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
267 @$(NORMAL_INSTALL)
268 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
269 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
270 if test -f $$p; then \
271 f=$(am__strip_dir) \
272 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
273 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
274 else :; fi; \
275 done
276
277uninstall-pluginimpLTLIBRARIES:
278 @$(NORMAL_UNINSTALL)
279 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
280 p=$(am__strip_dir) \
281 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
282 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
283 done
284
285clean-pluginimpLTLIBRARIES:
286 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
287 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
288 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
289 test "$$dir" != "$$p" || dir=.; \
290 echo "rm -f \"$${dir}/so_locations\""; \
291 rm -f "$${dir}/so_locations"; \
292 done
293imp_ta.la: $(imp_ta_la_OBJECTS) $(imp_ta_la_DEPENDENCIES)
294 $(LINK) $(am_imp_ta_la_rpath) $(imp_ta_la_OBJECTS) $(imp_ta_la_LIBADD) $(LIBS)
295
296mostlyclean-compile:
297 -rm -f *.$(OBJEXT)
298
299distclean-compile:
300 -rm -f *.tab.c
301
302@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ta.Plo@am__quote@
303@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ta_3do.Plo@am__quote@
304
305.c.o:
306@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
307@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
308@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
309@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
310@am__fastdepCC_FALSE@ $(COMPILE) -c $<
311
312.c.obj:
313@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
314@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
315@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
316@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
317@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
318
319.c.lo:
320@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
321@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
322@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
323@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
324@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
325
326mostlyclean-libtool:
327 -rm -f *.lo
328
329clean-libtool:
330 -rm -rf .libs _libs
331
332ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
333 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
334 unique=`for i in $$list; do \
335 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
336 done | \
337 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
338 END { if (nonempty) { for (i in files) print i; }; }'`; \
339 mkid -fID $$unique
340tags: TAGS
341
342TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
343 $(TAGS_FILES) $(LISP)
344 tags=; \
345 here=`pwd`; \
346 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
347 unique=`for i in $$list; do \
348 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
349 done | \
350 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
351 END { if (nonempty) { for (i in files) print i; }; }'`; \
352 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
353 test -n "$$unique" || unique=$$empty_fix; \
354 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
355 $$tags $$unique; \
356 fi
357ctags: CTAGS
358CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
359 $(TAGS_FILES) $(LISP)
360 tags=; \
361 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
362 unique=`for i in $$list; do \
363 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
364 done | \
365 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
366 END { if (nonempty) { for (i in files) print i; }; }'`; \
367 test -z "$(CTAGS_ARGS)$$tags$$unique" \
368 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
369 $$tags $$unique
370
371GTAGS:
372 here=`$(am__cd) $(top_builddir) && pwd` \
373 && cd $(top_srcdir) \
374 && gtags -i $(GTAGS_ARGS) $$here
375
376distclean-tags:
377 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
378
379distdir: $(DISTFILES)
380 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
381 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
382 list='$(DISTFILES)'; \
383 dist_files=`for file in $$list; do echo $$file; done | \
384 sed -e "s|^$$srcdirstrip/||;t" \
385 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
386 case $$dist_files in \
387 */*) $(MKDIR_P) `echo "$$dist_files" | \
388 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
389 sort -u` ;; \
390 esac; \
391 for file in $$dist_files; do \
392 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
393 if test -d $$d/$$file; then \
394 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
395 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
396 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
397 fi; \
398 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
399 else \
400 test -f $(distdir)/$$file \
401 || cp -p $$d/$$file $(distdir)/$$file \
402 || exit 1; \
403 fi; \
404 done
405check-am: all-am
406check: check-am
407all-am: Makefile $(LTLIBRARIES)
408installdirs:
409 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
410 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
411 done
412install: install-am
413install-exec: install-exec-am
414install-data: install-data-am
415uninstall: uninstall-am
416
417install-am: all-am
418 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
419
420installcheck: installcheck-am
421install-strip:
422 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
423 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
424 `test -z '$(STRIP)' || \
425 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
426mostlyclean-generic:
427
428clean-generic:
429
430distclean-generic:
431 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
432
433maintainer-clean-generic:
434 @echo "This command is intended for maintainers to use"
435 @echo "it deletes files that may require special tools to rebuild."
436clean: clean-am
437
438clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
439 mostlyclean-am
440
441distclean: distclean-am
442 -rm -rf ./$(DEPDIR)
443 -rm -f Makefile
444distclean-am: clean-am distclean-compile distclean-generic \
445 distclean-tags
446
447dvi: dvi-am
448
449dvi-am:
450
451html: html-am
452
453info: info-am
454
455info-am:
456
457install-data-am: install-pluginimpLTLIBRARIES
458
459install-dvi: install-dvi-am
460
461install-exec-am:
462
463install-html: install-html-am
464
465install-info: install-info-am
466
467install-man:
468
469install-pdf: install-pdf-am
470
471install-ps: install-ps-am
472
473installcheck-am:
474
475maintainer-clean: maintainer-clean-am
476 -rm -rf ./$(DEPDIR)
477 -rm -f Makefile
478maintainer-clean-am: distclean-am maintainer-clean-generic
479
480mostlyclean: mostlyclean-am
481
482mostlyclean-am: mostlyclean-compile mostlyclean-generic \
483 mostlyclean-libtool
484
485pdf: pdf-am
486
487pdf-am:
488
489ps: ps-am
490
491ps-am:
492
493uninstall-am: uninstall-pluginimpLTLIBRARIES
494
495.MAKE: install-am install-strip
496
497.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
498 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
499 distclean-compile distclean-generic distclean-libtool \
500 distclean-tags distdir dvi dvi-am html html-am info info-am \
501 install install-am install-data install-data-am install-dvi \
502 install-dvi-am install-exec install-exec-am install-html \
503 install-html-am install-info install-info-am install-man \
504 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
505 install-ps install-ps-am install-strip installcheck \
506 installcheck-am installdirs maintainer-clean \
507 maintainer-clean-generic mostlyclean mostlyclean-compile \
508 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
509 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
510
511# Tell versions [3.59,3.63) of GNU make to not export all variables.
512# Otherwise a system limit (for SysV at least) may be exceeded.
513.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta.c
new file mode 100644
index 0000000..c472be1
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta.c
@@ -0,0 +1,77 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <glib.h>
24#include <g3d/types.h>
25
26#include "imp_ta_3do.h"
27#include "imp_ta_3do_palette.h"
28
29EAPI
30gpointer plugin_init(G3DContext *context)
31{
32 G3DMaterial *materials;
33 guint32 i;
34
35#if DEBUG > 0
36 g_debug("TA: initializing 3DO palette");
37#endif
38
39 materials = g_new0(G3DMaterial, 256);
40 for(i = 0; i < 256; i ++)
41 {
42 materials[i].r = ((G3DFloat)ta_3do_palette[i * 3 + 0]) / 255.0;
43 materials[i].g = ((G3DFloat)ta_3do_palette[i * 3 + 1]) / 255.0;
44 materials[i].b = ((G3DFloat)ta_3do_palette[i * 3 + 2]) / 255.0;
45 materials[i].a = 1.0;
46 }
47
48 return materials;
49}
50
51EAPI
52void plugin_cleanup(gpointer user_data)
53{
54 /* (G3DMaterials *) */
55 g_free(user_data);
56}
57
58EAPI
59gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
60 G3DModel *model, gpointer user_data)
61{
62 return ta_3do_load_object(context, stream, model,
63 (G3DMaterial *)user_data);
64}
65
66EAPI
67gchar *plugin_description(void)
68{
69 return g_strdup("Total Annihilation unit models.");
70}
71
72EAPI
73gchar **plugin_extensions(void)
74{
75 return g_strsplit("3do", ":", 0);
76}
77
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta_3do.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta_3do.c
new file mode 100644
index 0000000..5c0de7b
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta_3do.c
@@ -0,0 +1,183 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24
25#include <g3d/types.h>
26#include <g3d/stream.h>
27#include <g3d/matrix.h>
28
29gboolean ta_3do_read_children(G3DContext *context, G3DStream *stream,
30 GSList **list, G3DMaterial *materials);
31
32gboolean ta_3do_load_object(G3DContext *context, G3DStream *stream,
33 G3DModel *model, G3DMaterial *materials)
34{
35 return ta_3do_read_children(context, stream, &(model->objects), materials);
36}
37
38gboolean ta_3do_read_children(G3DContext *context, G3DStream *stream,
39 GSList **list, G3DMaterial *materials)
40{
41 G3DObject *object;
42 G3DFace *face;
43 goffset off_save, off_sav2, off_sibl, off_chld, off_vert, off_prim, off_i;
44 guint32 num_prims, colidx;
45 gchar buffer[1025];
46 gint32 i, j, x, y, z;
47
48 while(!g3d_stream_eof(stream)) {
49 /* signature */
50 if(g3d_stream_read_int32_le(stream) != 1)
51 return FALSE;
52
53 object = g_new0(G3DObject, 1);
54 *list = g_slist_append(*list, object);
55
56 /* number of vertices */
57 object->vertex_count = g3d_stream_read_int32_le(stream);
58 object->vertex_data = g_new0(G3DFloat, 3 * object->vertex_count);
59
60 /* number of primitives */
61 num_prims = g3d_stream_read_int32_le(stream);
62
63 /* offset of selection primitive */
64 g3d_stream_read_int32_le(stream);
65
66 /* translation from parent */
67 x = g3d_stream_read_int32_le(stream);
68 y = g3d_stream_read_int32_le(stream);
69 z = g3d_stream_read_int32_le(stream);
70 object->transformation = g_new0(G3DTransformation, 1);
71 g3d_matrix_identity(object->transformation->matrix);
72 g3d_matrix_translate(x, y, z, object->transformation->matrix);
73
74 /* offset of object name */
75 off_save = g3d_stream_tell(stream) + 4;
76 g3d_stream_seek(stream, g3d_stream_read_int32_le(stream), G_SEEK_SET);
77 g3d_stream_read_cstr(stream, buffer, 1024);
78 buffer[1024] = '\0';
79 object->name = g_strdup(buffer);
80 g3d_stream_seek(stream, off_save, G_SEEK_SET);
81#if DEBUG > 1
82 g_debug("TA: object '%s'", object->name);
83#endif
84
85 /* always 0 */
86 g3d_stream_read_int32_le(stream);
87
88 /* offset of vertex array */
89 off_vert = g3d_stream_read_int32_le(stream);
90 off_save = g3d_stream_tell(stream);
91 g3d_stream_seek(stream, off_vert, G_SEEK_SET);
92 for(i = 0; i < object->vertex_count; i ++)
93 {
94 object->vertex_data[i * 3 + 0] = g3d_stream_read_int32_le(stream);
95 object->vertex_data[i * 3 + 1] = g3d_stream_read_int32_le(stream);
96 object->vertex_data[i * 3 + 2] = g3d_stream_read_int32_le(stream);
97 }
98 g3d_stream_seek(stream, off_save, G_SEEK_SET);
99
100 /* offset of primitive array */
101 off_prim = g3d_stream_read_int32_le(stream);
102 off_save = g3d_stream_tell(stream);
103 g3d_stream_seek(stream, off_prim, G_SEEK_SET);
104 for(i = 0; i < num_prims; i ++)
105 {
106 face = g_new0(G3DFace, 1);
107
108 /* color index */
109 colidx = g3d_stream_read_int32_le(stream);
110#if DEBUG > 2
111 g_debug("TA: color index: %d", colidx);
112#endif
113 if(colidx > 255)
114 {
115 g_warning("TA: color index > 255 (%d)\n", colidx);
116 g_free(face);
117 g3d_stream_skip(stream, 28);
118 continue;
119 }
120 face->material = &(materials[colidx]);
121
122 /* number of vertices */
123 face->vertex_count = g3d_stream_read_int32_le(stream);
124 if(face->vertex_count < 3)
125 {
126 /* skip this primitive */
127 g_free(face);
128 g3d_stream_skip(stream, 24);
129 continue;
130 }
131 face->vertex_indices = g_new0(guint32, face->vertex_count);
132
133 /* always 0 */
134 g3d_stream_read_int32_le(stream);
135
136 /* offset of vertex index array */
137 off_i = g3d_stream_read_int32_le(stream);
138 off_sav2 = g3d_stream_tell(stream);
139#if DEBUG > 2
140 g_debug("TA: vertex index offset: 0x%08x", off_i);
141#endif
142 g3d_stream_seek(stream, off_i, G_SEEK_SET);
143 for(j = 0; j < face->vertex_count; j ++)
144 face->vertex_indices[j] = g3d_stream_read_int16_le(stream);
145 g3d_stream_seek(stream, off_sav2, G_SEEK_SET);
146
147 /* offset of texture name */
148 g3d_stream_read_int32_le(stream);
149
150 /* unknown */
151 g3d_stream_skip(stream, 12);
152
153 object->faces = g_slist_prepend(object->faces, face);
154 }
155 g3d_stream_seek(stream, off_save, G_SEEK_SET);
156
157 /* offset of sibling object */
158 off_sibl = g3d_stream_read_int32_le(stream);
159
160 /* offset of child object */
161 off_chld = g3d_stream_read_int32_le(stream);
162
163#if DEBUG > 3
164 g_debug("TA: child @ 0x%08x, sibling @ 0x%08x", off_chld, off_sibl);
165#endif
166
167 if(off_chld != 0)
168 {
169 off_save = g3d_stream_tell(stream);
170 g3d_stream_seek(stream, off_chld, G_SEEK_SET);
171 ta_3do_read_children(context, stream, &(object->objects),
172 materials);
173 g3d_stream_seek(stream, off_save, G_SEEK_SET);
174 }
175
176 if(off_sibl == 0)
177 return TRUE;
178
179 g3d_stream_seek(stream, off_sibl, G_SEEK_SET);
180 }
181
182 return FALSE;
183}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta_3do.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta_3do.h
new file mode 100644
index 0000000..c243c1c
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta_3do.h
@@ -0,0 +1,31 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef _IMP_TA_3DO_H
24#define _IMP_TA_3DO_H
25
26#include <g3d/types.h>
27
28gboolean ta_3do_load_object(G3DContext *context, G3DStream *stream,
29 G3DModel *model, G3DMaterial *materials);
30
31#endif /* _IMP_TA_3DO_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta_3do_palette.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta_3do_palette.h
new file mode 100644
index 0000000..65a3f3f
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta_3do_palette.h
@@ -0,0 +1,286 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef _IMP_TA_3DO_PALETTE_H
24#define _IMP_TA_3DO_PALETTE_H
25
26#include <glib.h>
27
28static guint8 ta_3do_palette[768] = {
29 0x00, 0x00, 0x00,
30 0x80, 0x00, 0x00,
31 0x00, 0x80, 0x00,
32 0x80, 0x80, 0x00,
33 0x00, 0x00, 0x80,
34 0x80, 0x00, 0x80,
35 0x00, 0x80, 0x80,
36 0x80, 0x80, 0x80,
37 0xC0, 0xDC, 0xC0,
38 0x54, 0x54, 0xFC,
39 0x00, 0x00, 0x00,
40 0x00, 0x00, 0x00,
41 0x00, 0x00, 0x00,
42 0x00, 0x00, 0x00,
43 0x00, 0x00, 0x00,
44 0x00, 0x00, 0x00,
45 0xFF, 0xEB, 0xF3,
46 0xEB, 0xC7, 0xD3,
47 0xD7, 0xA3, 0xB3,
48 0xC3, 0x87, 0x97,
49 0xAF, 0x6F, 0x7F,
50 0x9B, 0x5B, 0x63,
51 0x8B, 0x47, 0x4F,
52 0x7B, 0x3B, 0x47,
53 0x6F, 0x33, 0x3B,
54 0x63, 0x2B, 0x33,
55 0x57, 0x23, 0x2B,
56 0x4B, 0x1B, 0x27,
57 0x3B, 0x17, 0x1F,
58 0x2F, 0x0F, 0x17,
59 0x23, 0x0B, 0x0F,
60 0x17, 0x07, 0x0B,
61 0x73, 0xFF, 0xDF,
62 0x57, 0xE7, 0xBF,
63 0x43, 0xCF, 0x9F,
64 0x2F, 0xB7, 0x83,
65 0x1F, 0x9F, 0x67,
66 0x13, 0x8B, 0x4F,
67 0x0F, 0x77, 0x3F,
68 0x0B, 0x6B, 0x37,
69 0x07, 0x5F, 0x2F,
70 0x07, 0x53, 0x2B,
71 0x00, 0x47, 0x27,
72 0x00, 0x3F, 0x23,
73 0x00, 0x33, 0x1B,
74 0x00, 0x27, 0x17,
75 0x00, 0x1B, 0x0F,
76 0x00, 0x13, 0x0B,
77 0xE3, 0xEF, 0xFF,
78 0xC7, 0xDF, 0xE7,
79 0xAF, 0xCF, 0xCB,
80 0x93, 0xB7, 0xA7,
81 0x7F, 0x9F, 0x83,
82 0x6B, 0x87, 0x67,
83 0x5F, 0x6F, 0x53,
84 0x5F, 0x63, 0x47,
85 0x5B, 0x57, 0x3B,
86 0x53, 0x43, 0x33,
87 0x47, 0x3B, 0x2B,
88 0x3B, 0x33, 0x23,
89 0x2F, 0x2B, 0x1B,
90 0x23, 0x1F, 0x13,
91 0x17, 0x13, 0x0F,
92 0x0B, 0x0B, 0x07,
93 0xFB, 0xFB, 0xD7,
94 0xDF, 0xDF, 0xB7,
95 0xC3, 0xC3, 0x9B,
96 0xAB, 0xAB, 0x83,
97 0x93, 0x93, 0x6F,
98 0x77, 0x77, 0x57,
99 0x63, 0x63, 0x43,
100 0x53, 0x53, 0x33,
101 0x43, 0x43, 0x23,
102 0x33, 0x33, 0x17,
103 0x23, 0x23, 0x0F,
104 0x1B, 0x1B, 0x07,
105 0x17, 0x17, 0x07,
106 0x13, 0x13, 0x00,
107 0x0F, 0x0F, 0x00,
108 0x0B, 0x0B, 0x00,
109 0xFB, 0xFB, 0xFB,
110 0xEB, 0xEB, 0xEB,
111 0xDB, 0xDB, 0xDB,
112 0xCB, 0xCB, 0xCB,
113 0xBB, 0xBB, 0xBB,
114 0xAB, 0xAB, 0xAB,
115 0x9B, 0x9B, 0x9B,
116 0x8B, 0x8B, 0x8B,
117 0x7B, 0x7B, 0x7B,
118 0x6B, 0x6B, 0x6B,
119 0x5B, 0x5B, 0x5B,
120 0x4B, 0x4B, 0x4B,
121 0x3B, 0x3B, 0x3B,
122 0x2B, 0x2B, 0x2B,
123 0x1F, 0x1F, 0x1F,
124 0x0F, 0x0F, 0x0F,
125 0xEB, 0xF3, 0xFF,
126 0xCB, 0xE3, 0xFF,
127 0xAF, 0xCF, 0xFF,
128 0x97, 0xB3, 0xFF,
129 0x7B, 0x97, 0xFF,
130 0x67, 0x7F, 0xFF,
131 0x53, 0x6B, 0xEF,
132 0x3F, 0x5B, 0xE3,
133 0x33, 0x4B, 0xD7,
134 0x23, 0x3B, 0xCB,
135 0x17, 0x2F, 0xAF,
136 0x0F, 0x27, 0x97,
137 0x07, 0x1F, 0x7B,
138 0x07, 0x17, 0x63,
139 0x00, 0x0F, 0x47,
140 0x00, 0x0B, 0x2F,
141 0xE3, 0xF7, 0xFF,
142 0xBF, 0xDB, 0xE7,
143 0x9F, 0xBF, 0xCF,
144 0x83, 0xA7, 0xB7,
145 0x6B, 0x8F, 0xA3,
146 0x53, 0x77, 0x8B,
147 0x3F, 0x5F, 0x73,
148 0x2F, 0x4B, 0x5F,
149 0x27, 0x3F, 0x57,
150 0x23, 0x37, 0x4F,
151 0x1F, 0x2F, 0x47,
152 0x1B, 0x27, 0x3F,
153 0x17, 0x1F, 0x37,
154 0x13, 0x1B, 0x2F,
155 0x0F, 0x13, 0x27,
156 0x0B, 0x0F, 0x1F,
157 0xD7, 0xEF, 0xFF,
158 0xBB, 0xE3, 0xEF,
159 0x9B, 0xCB, 0xDF,
160 0x83, 0xB7, 0xCF,
161 0x6B, 0xA3, 0xC3,
162 0x53, 0x8F, 0xB3,
163 0x3F, 0x7B, 0xA3,
164 0x2F, 0x6B, 0x97,
165 0x23, 0x5B, 0x87,
166 0x1B, 0x4B, 0x77,
167 0x13, 0x3F, 0x67,
168 0x0B, 0x33, 0x57,
169 0x07, 0x27, 0x47,
170 0x00, 0x1B, 0x37,
171 0x00, 0x13, 0x27,
172 0x00, 0x0B, 0x1B,
173 0xFF, 0xE7, 0xFF,
174 0xE7, 0xC7, 0xEB,
175 0xD3, 0xAB, 0xD7,
176 0xBB, 0x93, 0xC3,
177 0xA7, 0x7B, 0xB3,
178 0x8F, 0x63, 0x9F,
179 0x77, 0x4B, 0x8F,
180 0x63, 0x3B, 0x7F,
181 0x4F, 0x2B, 0x6F,
182 0x43, 0x1F, 0x63,
183 0x37, 0x17, 0x57,
184 0x2B, 0x0F, 0x47,
185 0x1F, 0x07, 0x3B,
186 0x13, 0x00, 0x2B,
187 0x0B, 0x00, 0x1F,
188 0x07, 0x00, 0x13,
189 0xD7, 0xFF, 0xA7,
190 0xAB, 0xE7, 0x7F,
191 0x83, 0xD3, 0x5B,
192 0x67, 0xBF, 0x3F,
193 0x4B, 0xAB, 0x2B,
194 0x43, 0x97, 0x2B,
195 0x37, 0x87, 0x27,
196 0x2F, 0x77, 0x1B,
197 0x2B, 0x67, 0x13,
198 0x23, 0x5B, 0x0F,
199 0x1F, 0x4F, 0x0B,
200 0x1B, 0x43, 0x07,
201 0x17, 0x33, 0x00,
202 0x0F, 0x27, 0x00,
203 0x0B, 0x1B, 0x00,
204 0x07, 0x0F, 0x00,
205 0xFF, 0xE3, 0x9F,
206 0xE3, 0xC7, 0x73,
207 0xCB, 0xAF, 0x53,
208 0xB3, 0x97, 0x3F,
209 0x9B, 0x83, 0x2F,
210 0x83, 0x6F, 0x23,
211 0x6B, 0x5B, 0x17,
212 0x53, 0x47, 0x0F,
213 0x4B, 0x3B, 0x0B,
214 0x43, 0x33, 0x07,
215 0x3B, 0x2B, 0x07,
216 0x37, 0x23, 0x00,
217 0x2F, 0x1B, 0x00,
218 0x27, 0x13, 0x00,
219 0x1F, 0x0F, 0x00,
220 0x1B, 0x0B, 0x00,
221 0xFF, 0xFF, 0xA3,
222 0xFB, 0xF3, 0x83,
223 0xF7, 0xE3, 0x67,
224 0xF3, 0xD3, 0x4F,
225 0xEF, 0xBB, 0x33,
226 0xEF, 0xA7, 0x1B,
227 0xEB, 0x8F, 0x13,
228 0xE7, 0x7B, 0x0F,
229 0xDF, 0x4F, 0x07,
230 0xD7, 0x23, 0x00,
231 0xBF, 0x1F, 0x00,
232 0xA7, 0x1B, 0x00,
233 0x93, 0x17, 0x00,
234 0x7B, 0x13, 0x00,
235 0x63, 0x13, 0x00,
236 0x4F, 0x0F, 0x00,
237 0xFF, 0xFF, 0x00,
238 0xFF, 0xBF, 0x00,
239 0xFF, 0x83, 0x00,
240 0xFF, 0x47, 0x00,
241 0xD3, 0x2B, 0x00,
242 0xAB, 0x17, 0x00,
243 0x7F, 0x07, 0x00,
244 0x57, 0x00, 0x00,
245 0xDF, 0xCB, 0xFF,
246 0xBB, 0x9F, 0xDF,
247 0x9B, 0x77, 0xBF,
248 0x7F, 0x57, 0x9F,
249 0x67, 0x3B, 0x7F,
250 0x4B, 0x23, 0x5F,
251 0x33, 0x13, 0x3F,
252 0x1B, 0x07, 0x1F,
253 0xD3, 0xDB, 0xFF,
254 0x87, 0x9F, 0xF7,
255 0x43, 0x6F, 0xEF,
256 0x17, 0x47, 0xE7,
257 0x0B, 0x2B, 0xBB,
258 0x07, 0x17, 0x8F,
259 0x00, 0x07, 0x63,
260 0x00, 0x00, 0x37,
261 0x7B, 0xFF, 0x77,
262 0x53, 0xDF, 0x4F,
263 0x33, 0xBF, 0x2B,
264 0x1B, 0x9F, 0x13,
265 0x1B, 0x7F, 0x0B,
266 0x17, 0x5F, 0x07,
267 0x13, 0x3F, 0x00,
268 0x0B, 0x1F, 0x00,
269 0x00, 0x00, 0x00,
270 0x00, 0x00, 0x00,
271 0x00, 0x00, 0x00,
272 0x00, 0x00, 0x00,
273 0x00, 0x00, 0x00,
274 0x00, 0x00, 0x00,
275 0xFF, 0xFB, 0xF0,
276 0xA0, 0xA0, 0xA4,
277 0x80, 0x80, 0x80,
278 0xFF, 0x00, 0x00,
279 0x00, 0xFF, 0x00,
280 0xFF, 0xFF, 0x00,
281 0x00, 0x00, 0xFF,
282 0xFF, 0x00, 0xFF,
283 0x00, 0xFF, 0xFF,
284 0xFF, 0xFF, 0xFF};
285
286#endif /* _IMP_TA_3DO_PALETTE_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile
new file mode 100644
index 0000000..0b88eab
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile
@@ -0,0 +1,510 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_test/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_test
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_test_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_test_la_OBJECTS = imp_test.lo
59imp_test_la_OBJECTS = $(am_imp_test_la_OBJECTS)
60#am_imp_test_la_rpath = -rpath $(pluginimpdir)
61DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_test_la_SOURCES)
74DIST_SOURCES = $(imp_test_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
79AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
80AR = ar
81AS = as
82AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
83AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
84AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
85AWK = gawk
86CC = gcc
87CCDEPMODE = depmode=gcc3
88CFLAGS = -g -O2
89CPP = gcc -E
90CPPFLAGS =
91CXX = g++
92CXXCPP = g++ -E
93CXXDEPMODE = depmode=gcc3
94CXXFLAGS = -g -O2
95CYGPATH_W = echo
96DBG_CFLAGS = -O2
97DEBUG = 0
98DEFS = -DHAVE_CONFIG_H
99DEPDIR = .deps
100DLLTOOL = dlltool
101ECHO = echo
102ECHO_C =
103ECHO_N = -n
104ECHO_T =
105EGREP = /bin/grep -E
106EXEEXT =
107F77 =
108FFLAGS =
109GDKPIXBUF_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
110GDKPIXBUF_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
111GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
112GLIB_GENMARSHAL = glib-genmarshal
113GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
114GLIB_MKENUMS = glib-mkenums
115GOBJECT_QUERY = gobject-query
116GREP = /bin/grep
117GTKDOC_CHECK = /usr/bin/gtkdoc-check
118GTK_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
119GTK_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
120HTML_DIR = ${datadir}/gtk-doc/html
121INSTALL = /usr/bin/install -c
122INSTALL_DATA = ${INSTALL} -m 644
123INSTALL_PROGRAM = ${INSTALL}
124INSTALL_SCRIPT = ${INSTALL}
125INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
126LDFLAGS =
127LEX = flex
128LEXLIB = -lfl
129LEX_OUTPUT_ROOT = lex.yy
130LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
131LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
132LIBOBJS =
133LIBS = -lm
134LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
135LIBXML2_CFLAGS = -I/usr/include/libxml2
136LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
137LN_S = ln -s
138LTLIBOBJS =
139LTVERSION = 0:8:0
140MAGIC_LIBS = -lmagic
141MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
142MATH_LIBS = -lm
143MKDIR_P = /bin/mkdir -p
144OBJDUMP = objdump
145OBJEXT = o
146PACKAGE = libg3d
147PACKAGE_BUGREPORT =
148PACKAGE_NAME =
149PACKAGE_STRING =
150PACKAGE_TARNAME =
151PACKAGE_VERSION =
152PATH_SEPARATOR = :
153PKG_CONFIG = /usr/bin/pkg-config
154PLUGINS_LDFLAGS = -avoid-version -export-dynamic
155RANLIB = ranlib
156SET_MAKE =
157SHELL = /bin/bash
158STRIP = strip
159VERSION = 0.0.8
160XML2_CONFIG = /usr/bin/xml2-config
161XML_CPPFLAGS = -I/usr/include/libxml2
162XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
163Z_CFLAGS =
164Z_LIBS = -lz
165abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test
166abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test
167abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169ac_ct_CC = gcc
170ac_ct_CXX = g++
171ac_ct_F77 =
172am__include = include
173am__leading_dot = .
174am__quote =
175am__tar = ${AMTAR} chof - "$$tardir"
176am__untar = ${AMTAR} xf -
177bindir = ${exec_prefix}/bin
178build = x86_64-unknown-linux-gnu
179build_alias =
180build_cpu = x86_64
181build_os = linux-gnu
182build_vendor = unknown
183builddir = .
184datadir = ${datarootdir}
185datarootdir = ${prefix}/share
186docdir = ${datarootdir}/doc/${PACKAGE}
187dvidir = ${docdir}
188exec_prefix = ${prefix}
189host = x86_64-unknown-linux-gnu
190host_alias =
191host_cpu = x86_64
192host_os = linux-gnu
193host_vendor = unknown
194htmldir = ${docdir}
195includedir = ${prefix}/include
196infodir = ${datarootdir}/info
197install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
198libdir = ${exec_prefix}/lib
199libexecdir = ${exec_prefix}/libexec
200localedir = ${datarootdir}/locale
201localstatedir = ${prefix}/var
202mandir = ${datarootdir}/man
203mkdir_p = /bin/mkdir -p
204oldincludedir = /usr/include
205pdfdir = ${docdir}
206prefix = /usr/local
207program_transform_name = s,x,x,
208psdir = ${docdir}
209sbindir = ${exec_prefix}/sbin
210sharedstatedir = ${prefix}/com
211srcdir = .
212sysconfdir = ${prefix}/etc
213target_alias =
214top_builddir = ../../..
215top_srcdir = ../../..
216pluginimpdir = $(pkglibdir)/plugins/import
217#pluginimp_LTLIBRARIES = imp_test.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 -O2 -DDEBUG=0 \
222 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 -avoid-version -export-dynamic
228
229imp_test_la_SOURCES = imp_test.c
230imp_test_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
231all: all-am
232
233.SUFFIXES:
234.SUFFIXES: .c .lo .o .obj
235$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
236 @for dep in $?; do \
237 case '$(am__configure_deps)' in \
238 *$$dep*) \
239 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
240 && exit 0; \
241 exit 1;; \
242 esac; \
243 done; \
244 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_test/Makefile'; \
245 cd $(top_srcdir) && \
246 $(AUTOMAKE) --gnu plugins/import/imp_test/Makefile
247.PRECIOUS: Makefile
248Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
249 @case '$?' in \
250 *config.status*) \
251 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
252 *) \
253 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
254 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
255 esac;
256
257$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
258 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
259
260$(top_srcdir)/configure: $(am__configure_deps)
261 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
262$(ACLOCAL_M4): $(am__aclocal_m4_deps)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
265 @$(NORMAL_INSTALL)
266 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
267 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
268 if test -f $$p; then \
269 f=$(am__strip_dir) \
270 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
271 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
272 else :; fi; \
273 done
274
275uninstall-pluginimpLTLIBRARIES:
276 @$(NORMAL_UNINSTALL)
277 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
278 p=$(am__strip_dir) \
279 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
280 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
281 done
282
283clean-pluginimpLTLIBRARIES:
284 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
285 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
286 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
287 test "$$dir" != "$$p" || dir=.; \
288 echo "rm -f \"$${dir}/so_locations\""; \
289 rm -f "$${dir}/so_locations"; \
290 done
291imp_test.la: $(imp_test_la_OBJECTS) $(imp_test_la_DEPENDENCIES)
292 $(LINK) $(am_imp_test_la_rpath) $(imp_test_la_OBJECTS) $(imp_test_la_LIBADD) $(LIBS)
293
294mostlyclean-compile:
295 -rm -f *.$(OBJEXT)
296
297distclean-compile:
298 -rm -f *.tab.c
299
300include ./$(DEPDIR)/imp_test.Plo
301
302.c.o:
303 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
304 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
305# source='$<' object='$@' libtool=no \
306# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
307# $(COMPILE) -c $<
308
309.c.obj:
310 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
311 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
312# source='$<' object='$@' libtool=no \
313# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
314# $(COMPILE) -c `$(CYGPATH_W) '$<'`
315
316.c.lo:
317 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
318 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
319# source='$<' object='$@' libtool=yes \
320# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
321# $(LTCOMPILE) -c -o $@ $<
322
323mostlyclean-libtool:
324 -rm -f *.lo
325
326clean-libtool:
327 -rm -rf .libs _libs
328
329ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
330 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
331 unique=`for i in $$list; do \
332 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
333 done | \
334 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
335 END { if (nonempty) { for (i in files) print i; }; }'`; \
336 mkid -fID $$unique
337tags: TAGS
338
339TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
340 $(TAGS_FILES) $(LISP)
341 tags=; \
342 here=`pwd`; \
343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
344 unique=`for i in $$list; do \
345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
346 done | \
347 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
349 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
350 test -n "$$unique" || unique=$$empty_fix; \
351 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
352 $$tags $$unique; \
353 fi
354ctags: CTAGS
355CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
356 $(TAGS_FILES) $(LISP)
357 tags=; \
358 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
359 unique=`for i in $$list; do \
360 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
361 done | \
362 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
363 END { if (nonempty) { for (i in files) print i; }; }'`; \
364 test -z "$(CTAGS_ARGS)$$tags$$unique" \
365 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
366 $$tags $$unique
367
368GTAGS:
369 here=`$(am__cd) $(top_builddir) && pwd` \
370 && cd $(top_srcdir) \
371 && gtags -i $(GTAGS_ARGS) $$here
372
373distclean-tags:
374 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
375
376distdir: $(DISTFILES)
377 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
379 list='$(DISTFILES)'; \
380 dist_files=`for file in $$list; do echo $$file; done | \
381 sed -e "s|^$$srcdirstrip/||;t" \
382 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
383 case $$dist_files in \
384 */*) $(MKDIR_P) `echo "$$dist_files" | \
385 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
386 sort -u` ;; \
387 esac; \
388 for file in $$dist_files; do \
389 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
390 if test -d $$d/$$file; then \
391 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
392 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
393 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
394 fi; \
395 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
396 else \
397 test -f $(distdir)/$$file \
398 || cp -p $$d/$$file $(distdir)/$$file \
399 || exit 1; \
400 fi; \
401 done
402check-am: all-am
403check: check-am
404all-am: Makefile $(LTLIBRARIES)
405installdirs:
406 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
407 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
408 done
409install: install-am
410install-exec: install-exec-am
411install-data: install-data-am
412uninstall: uninstall-am
413
414install-am: all-am
415 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
416
417installcheck: installcheck-am
418install-strip:
419 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
420 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
421 `test -z '$(STRIP)' || \
422 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
423mostlyclean-generic:
424
425clean-generic:
426
427distclean-generic:
428 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
429
430maintainer-clean-generic:
431 @echo "This command is intended for maintainers to use"
432 @echo "it deletes files that may require special tools to rebuild."
433clean: clean-am
434
435clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
436 mostlyclean-am
437
438distclean: distclean-am
439 -rm -rf ./$(DEPDIR)
440 -rm -f Makefile
441distclean-am: clean-am distclean-compile distclean-generic \
442 distclean-tags
443
444dvi: dvi-am
445
446dvi-am:
447
448html: html-am
449
450info: info-am
451
452info-am:
453
454install-data-am: install-pluginimpLTLIBRARIES
455
456install-dvi: install-dvi-am
457
458install-exec-am:
459
460install-html: install-html-am
461
462install-info: install-info-am
463
464install-man:
465
466install-pdf: install-pdf-am
467
468install-ps: install-ps-am
469
470installcheck-am:
471
472maintainer-clean: maintainer-clean-am
473 -rm -rf ./$(DEPDIR)
474 -rm -f Makefile
475maintainer-clean-am: distclean-am maintainer-clean-generic
476
477mostlyclean: mostlyclean-am
478
479mostlyclean-am: mostlyclean-compile mostlyclean-generic \
480 mostlyclean-libtool
481
482pdf: pdf-am
483
484pdf-am:
485
486ps: ps-am
487
488ps-am:
489
490uninstall-am: uninstall-pluginimpLTLIBRARIES
491
492.MAKE: install-am install-strip
493
494.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
495 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
496 distclean-compile distclean-generic distclean-libtool \
497 distclean-tags distdir dvi dvi-am html html-am info info-am \
498 install install-am install-data install-data-am install-dvi \
499 install-dvi-am install-exec install-exec-am install-html \
500 install-html-am install-info install-info-am install-man \
501 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
502 install-ps install-ps-am install-strip installcheck \
503 installcheck-am installdirs maintainer-clean \
504 maintainer-clean-generic mostlyclean mostlyclean-compile \
505 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
506 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
507
508# Tell versions [3.59,3.63) of GNU make to not export all variables.
509# Otherwise a system limit (for SysV at least) may be exceeded.
510.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile.am
new file mode 100644
index 0000000..cbe6ea8
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile.am
@@ -0,0 +1,22 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if EXPERIMENTAL
4pluginimp_LTLIBRARIES = imp_test.la
5endif
6
7AM_CFLAGS = \
8 -Wall -ansi -pedantic \
9 -DG_LOG_DOMAIN=\"LibG3D\" \
10 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
11 @GLIB_CFLAGS@
12
13INCLUDES = -I$(top_srcdir)/include
14
15AM_LDFLAGS = \
16 -no-undefined -module \
17 @PLUGINS_LDFLAGS@
18
19LIBTOOL += --quiet
20
21imp_test_la_SOURCES = imp_test.c
22imp_test_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile.in
new file mode 100644
index 0000000..aee0e06
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile.in
@@ -0,0 +1,510 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_test
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_test_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_test_la_OBJECTS = imp_test.lo
59imp_test_la_OBJECTS = $(am_imp_test_la_OBJECTS)
60@EXPERIMENTAL_TRUE@am_imp_test_la_rpath = -rpath $(pluginimpdir)
61DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_test_la_SOURCES)
74DIST_SOURCES = $(imp_test_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = @ACLOCAL@
79AMTAR = @AMTAR@
80AR = @AR@
81AS = @AS@
82AUTOCONF = @AUTOCONF@
83AUTOHEADER = @AUTOHEADER@
84AUTOMAKE = @AUTOMAKE@
85AWK = @AWK@
86CC = @CC@
87CCDEPMODE = @CCDEPMODE@
88CFLAGS = @CFLAGS@
89CPP = @CPP@
90CPPFLAGS = @CPPFLAGS@
91CXX = @CXX@
92CXXCPP = @CXXCPP@
93CXXDEPMODE = @CXXDEPMODE@
94CXXFLAGS = @CXXFLAGS@
95CYGPATH_W = @CYGPATH_W@
96DBG_CFLAGS = @DBG_CFLAGS@
97DEBUG = @DEBUG@
98DEFS = @DEFS@
99DEPDIR = @DEPDIR@
100DLLTOOL = @DLLTOOL@
101ECHO = @ECHO@
102ECHO_C = @ECHO_C@
103ECHO_N = @ECHO_N@
104ECHO_T = @ECHO_T@
105EGREP = @EGREP@
106EXEEXT = @EXEEXT@
107F77 = @F77@
108FFLAGS = @FFLAGS@
109GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
110GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
111GLIB_CFLAGS = @GLIB_CFLAGS@
112GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
113GLIB_LIBS = @GLIB_LIBS@
114GLIB_MKENUMS = @GLIB_MKENUMS@
115GOBJECT_QUERY = @GOBJECT_QUERY@
116GREP = @GREP@
117GTKDOC_CHECK = @GTKDOC_CHECK@
118GTK_CFLAGS = @GTK_CFLAGS@
119GTK_LIBS = @GTK_LIBS@
120HTML_DIR = @HTML_DIR@
121INSTALL = @INSTALL@
122INSTALL_DATA = @INSTALL_DATA@
123INSTALL_PROGRAM = @INSTALL_PROGRAM@
124INSTALL_SCRIPT = @INSTALL_SCRIPT@
125INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
126LDFLAGS = @LDFLAGS@
127LEX = @LEX@
128LEXLIB = @LEXLIB@
129LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
130LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
131LIBGSF_LIBS = @LIBGSF_LIBS@
132LIBOBJS = @LIBOBJS@
133LIBS = @LIBS@
134LIBTOOL = @LIBTOOL@ --quiet
135LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
136LIBXML2_LIBS = @LIBXML2_LIBS@
137LN_S = @LN_S@
138LTLIBOBJS = @LTLIBOBJS@
139LTVERSION = @LTVERSION@
140MAGIC_LIBS = @MAGIC_LIBS@
141MAKEINFO = @MAKEINFO@
142MATH_LIBS = @MATH_LIBS@
143MKDIR_P = @MKDIR_P@
144OBJDUMP = @OBJDUMP@
145OBJEXT = @OBJEXT@
146PACKAGE = @PACKAGE@
147PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
148PACKAGE_NAME = @PACKAGE_NAME@
149PACKAGE_STRING = @PACKAGE_STRING@
150PACKAGE_TARNAME = @PACKAGE_TARNAME@
151PACKAGE_VERSION = @PACKAGE_VERSION@
152PATH_SEPARATOR = @PATH_SEPARATOR@
153PKG_CONFIG = @PKG_CONFIG@
154PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
155RANLIB = @RANLIB@
156SET_MAKE = @SET_MAKE@
157SHELL = @SHELL@
158STRIP = @STRIP@
159VERSION = @VERSION@
160XML2_CONFIG = @XML2_CONFIG@
161XML_CPPFLAGS = @XML_CPPFLAGS@
162XML_LIBS = @XML_LIBS@
163Z_CFLAGS = @Z_CFLAGS@
164Z_LIBS = @Z_LIBS@
165abs_builddir = @abs_builddir@
166abs_srcdir = @abs_srcdir@
167abs_top_builddir = @abs_top_builddir@
168abs_top_srcdir = @abs_top_srcdir@
169ac_ct_CC = @ac_ct_CC@
170ac_ct_CXX = @ac_ct_CXX@
171ac_ct_F77 = @ac_ct_F77@
172am__include = @am__include@
173am__leading_dot = @am__leading_dot@
174am__quote = @am__quote@
175am__tar = @am__tar@
176am__untar = @am__untar@
177bindir = @bindir@
178build = @build@
179build_alias = @build_alias@
180build_cpu = @build_cpu@
181build_os = @build_os@
182build_vendor = @build_vendor@
183builddir = @builddir@
184datadir = @datadir@
185datarootdir = @datarootdir@
186docdir = @docdir@
187dvidir = @dvidir@
188exec_prefix = @exec_prefix@
189host = @host@
190host_alias = @host_alias@
191host_cpu = @host_cpu@
192host_os = @host_os@
193host_vendor = @host_vendor@
194htmldir = @htmldir@
195includedir = @includedir@
196infodir = @infodir@
197install_sh = @install_sh@
198libdir = @libdir@
199libexecdir = @libexecdir@
200localedir = @localedir@
201localstatedir = @localstatedir@
202mandir = @mandir@
203mkdir_p = @mkdir_p@
204oldincludedir = @oldincludedir@
205pdfdir = @pdfdir@
206prefix = @prefix@
207program_transform_name = @program_transform_name@
208psdir = @psdir@
209sbindir = @sbindir@
210sharedstatedir = @sharedstatedir@
211srcdir = @srcdir@
212sysconfdir = @sysconfdir@
213target_alias = @target_alias@
214top_builddir = @top_builddir@
215top_srcdir = @top_srcdir@
216pluginimpdir = $(pkglibdir)/plugins/import
217@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_test.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
222 @GLIB_CFLAGS@
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 @PLUGINS_LDFLAGS@
228
229imp_test_la_SOURCES = imp_test.c
230imp_test_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
231all: all-am
232
233.SUFFIXES:
234.SUFFIXES: .c .lo .o .obj
235$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
236 @for dep in $?; do \
237 case '$(am__configure_deps)' in \
238 *$$dep*) \
239 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
240 && exit 0; \
241 exit 1;; \
242 esac; \
243 done; \
244 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_test/Makefile'; \
245 cd $(top_srcdir) && \
246 $(AUTOMAKE) --gnu plugins/import/imp_test/Makefile
247.PRECIOUS: Makefile
248Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
249 @case '$?' in \
250 *config.status*) \
251 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
252 *) \
253 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
254 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
255 esac;
256
257$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
258 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
259
260$(top_srcdir)/configure: $(am__configure_deps)
261 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
262$(ACLOCAL_M4): $(am__aclocal_m4_deps)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
265 @$(NORMAL_INSTALL)
266 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
267 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
268 if test -f $$p; then \
269 f=$(am__strip_dir) \
270 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
271 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
272 else :; fi; \
273 done
274
275uninstall-pluginimpLTLIBRARIES:
276 @$(NORMAL_UNINSTALL)
277 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
278 p=$(am__strip_dir) \
279 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
280 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
281 done
282
283clean-pluginimpLTLIBRARIES:
284 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
285 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
286 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
287 test "$$dir" != "$$p" || dir=.; \
288 echo "rm -f \"$${dir}/so_locations\""; \
289 rm -f "$${dir}/so_locations"; \
290 done
291imp_test.la: $(imp_test_la_OBJECTS) $(imp_test_la_DEPENDENCIES)
292 $(LINK) $(am_imp_test_la_rpath) $(imp_test_la_OBJECTS) $(imp_test_la_LIBADD) $(LIBS)
293
294mostlyclean-compile:
295 -rm -f *.$(OBJEXT)
296
297distclean-compile:
298 -rm -f *.tab.c
299
300@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_test.Plo@am__quote@
301
302.c.o:
303@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
304@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
305@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
306@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
307@am__fastdepCC_FALSE@ $(COMPILE) -c $<
308
309.c.obj:
310@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
311@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
313@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
314@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
315
316.c.lo:
317@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
318@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
320@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
321@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
322
323mostlyclean-libtool:
324 -rm -f *.lo
325
326clean-libtool:
327 -rm -rf .libs _libs
328
329ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
330 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
331 unique=`for i in $$list; do \
332 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
333 done | \
334 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
335 END { if (nonempty) { for (i in files) print i; }; }'`; \
336 mkid -fID $$unique
337tags: TAGS
338
339TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
340 $(TAGS_FILES) $(LISP)
341 tags=; \
342 here=`pwd`; \
343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
344 unique=`for i in $$list; do \
345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
346 done | \
347 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
349 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
350 test -n "$$unique" || unique=$$empty_fix; \
351 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
352 $$tags $$unique; \
353 fi
354ctags: CTAGS
355CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
356 $(TAGS_FILES) $(LISP)
357 tags=; \
358 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
359 unique=`for i in $$list; do \
360 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
361 done | \
362 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
363 END { if (nonempty) { for (i in files) print i; }; }'`; \
364 test -z "$(CTAGS_ARGS)$$tags$$unique" \
365 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
366 $$tags $$unique
367
368GTAGS:
369 here=`$(am__cd) $(top_builddir) && pwd` \
370 && cd $(top_srcdir) \
371 && gtags -i $(GTAGS_ARGS) $$here
372
373distclean-tags:
374 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
375
376distdir: $(DISTFILES)
377 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
379 list='$(DISTFILES)'; \
380 dist_files=`for file in $$list; do echo $$file; done | \
381 sed -e "s|^$$srcdirstrip/||;t" \
382 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
383 case $$dist_files in \
384 */*) $(MKDIR_P) `echo "$$dist_files" | \
385 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
386 sort -u` ;; \
387 esac; \
388 for file in $$dist_files; do \
389 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
390 if test -d $$d/$$file; then \
391 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
392 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
393 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
394 fi; \
395 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
396 else \
397 test -f $(distdir)/$$file \
398 || cp -p $$d/$$file $(distdir)/$$file \
399 || exit 1; \
400 fi; \
401 done
402check-am: all-am
403check: check-am
404all-am: Makefile $(LTLIBRARIES)
405installdirs:
406 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
407 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
408 done
409install: install-am
410install-exec: install-exec-am
411install-data: install-data-am
412uninstall: uninstall-am
413
414install-am: all-am
415 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
416
417installcheck: installcheck-am
418install-strip:
419 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
420 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
421 `test -z '$(STRIP)' || \
422 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
423mostlyclean-generic:
424
425clean-generic:
426
427distclean-generic:
428 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
429
430maintainer-clean-generic:
431 @echo "This command is intended for maintainers to use"
432 @echo "it deletes files that may require special tools to rebuild."
433clean: clean-am
434
435clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
436 mostlyclean-am
437
438distclean: distclean-am
439 -rm -rf ./$(DEPDIR)
440 -rm -f Makefile
441distclean-am: clean-am distclean-compile distclean-generic \
442 distclean-tags
443
444dvi: dvi-am
445
446dvi-am:
447
448html: html-am
449
450info: info-am
451
452info-am:
453
454install-data-am: install-pluginimpLTLIBRARIES
455
456install-dvi: install-dvi-am
457
458install-exec-am:
459
460install-html: install-html-am
461
462install-info: install-info-am
463
464install-man:
465
466install-pdf: install-pdf-am
467
468install-ps: install-ps-am
469
470installcheck-am:
471
472maintainer-clean: maintainer-clean-am
473 -rm -rf ./$(DEPDIR)
474 -rm -f Makefile
475maintainer-clean-am: distclean-am maintainer-clean-generic
476
477mostlyclean: mostlyclean-am
478
479mostlyclean-am: mostlyclean-compile mostlyclean-generic \
480 mostlyclean-libtool
481
482pdf: pdf-am
483
484pdf-am:
485
486ps: ps-am
487
488ps-am:
489
490uninstall-am: uninstall-pluginimpLTLIBRARIES
491
492.MAKE: install-am install-strip
493
494.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
495 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
496 distclean-compile distclean-generic distclean-libtool \
497 distclean-tags distdir dvi dvi-am html html-am info info-am \
498 install install-am install-data install-data-am install-dvi \
499 install-dvi-am install-exec install-exec-am install-html \
500 install-html-am install-info install-info-am install-man \
501 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
502 install-ps install-ps-am install-strip installcheck \
503 installcheck-am installdirs maintainer-clean \
504 maintainer-clean-generic mostlyclean mostlyclean-compile \
505 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
506 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
507
508# Tell versions [3.59,3.63) of GNU make to not export all variables.
509# Otherwise a system limit (for SysV at least) may be exceeded.
510.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/imp_test.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/imp_test.c
new file mode 100644
index 0000000..0b4e062
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/imp_test.c
@@ -0,0 +1,164 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <g3d/types.h>
24#include <g3d/context.h>
25#include <g3d/material.h>
26#include <g3d/matrix.h>
27#include <g3d/primitive.h>
28#include <g3d/object.h>
29#include <g3d/texture.h>
30
31static gboolean test_primitive_transfrom(G3DModel *model);
32static gboolean test_texture_uv(G3DContext *context, G3DModel *model);
33
34/*****************************************************************************/
35/* plugin interface */
36/*****************************************************************************/
37
38
39EAPI
40gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
41 G3DModel *model, gpointer user_data)
42{
43 guint32 test = 1;
44
45 switch(test) {
46 case 0:
47 return test_primitive_transfrom(model);
48 break;
49 case 1:
50 return test_texture_uv(context, model);
51 break;
52 default:
53 break;
54 }
55 return FALSE;
56}
57
58EAPI
59gchar *plugin_description(G3DContext *context)
60{
61 return g_strdup("Test plugin.");
62}
63
64EAPI
65gchar **plugin_extensions(G3DContext *context)
66{
67 return g_strsplit("test", ":", 0);
68}
69
70/****************************************************************************/
71
72static gboolean test_primitive_transfrom(G3DModel *model)
73{
74 G3DObject *sphere, *cntr;
75 G3DMaterial *material;
76 G3DTransformation *tf;
77 G3DFloat matrix[16];
78 /* gint32 i, j; */
79
80 cntr = g_new0(G3DObject, 1);
81 cntr->name = g_strdup("container");
82
83 tf = g_new0(G3DTransformation, 1);
84 g3d_matrix_identity(tf->matrix);
85 g3d_matrix_scale(1.0, 1.0, 2.0, tf->matrix);
86 cntr->transformation = tf;
87 model->objects = g_slist_append(model->objects, cntr);
88
89 material = g3d_material_new();
90 model->materials = g_slist_append(model->materials, material);
91
92 /* 1 */
93 sphere = g3d_primitive_sphere(1.0, 36, 36, material);
94 cntr->objects = g_slist_append(cntr->objects, sphere);
95
96 /* 2 */
97 sphere = g3d_primitive_sphere(1.0, 6, 6, material);
98 cntr->objects = g_slist_append(cntr->objects, sphere);
99
100 tf = g_new0(G3DTransformation, 1);
101 g3d_matrix_identity(tf->matrix);
102 g3d_matrix_translate(2.5, 1.0, 1.0, tf->matrix);
103 sphere->transformation = tf;
104
105 /* 3 */
106 sphere = g3d_primitive_sphere(1.0, 12, 12, material);
107 cntr->objects = g_slist_append(cntr->objects, sphere);
108
109 g3d_matrix_identity(matrix);
110 g3d_matrix_translate(5, 2.0, 2.0, matrix);
111 g3d_matrix_scale(2.0, 2.0, 1.0, matrix);
112 g3d_object_transform(sphere, matrix);
113
114 return TRUE;
115}
116
117static gboolean test_texture_uv(G3DContext *context, G3DModel *model)
118{
119 G3DObject *box;
120 G3DMaterial *material;
121 G3DFace *face;
122 GSList *item;
123
124 material = g3d_material_new();
125 material->r = 1.0;
126 material->g = 0.8;
127 material->b = 0.2;
128 material->a = 0.9;
129 material->name = g_strdup("default texture");
130 material->tex_image = g3d_texture_load_cached(context, model,
131 "test-texture.png");
132
133 box = g3d_primitive_box(1.0, 1.0, 1.0, material);
134 box->name = g_strdup("test box");
135
136 if(material->tex_image != NULL) {
137 material->tex_image->tex_env = G3D_TEXENV_REPLACE;
138
139 for(item = box->faces; item != NULL; item = item->next) {
140 face = (G3DFace *)item->data;
141 face->tex_image = material->tex_image;
142 face->flags |= G3D_FLAG_FAC_TEXMAP;
143
144#define MIN_U 0.0
145#define MAX_U 1.0
146#define MIN_V -0.5
147#define MAX_V 1.5
148
149 face->tex_vertex_data[0 * 2 + 0] = MIN_U;
150 face->tex_vertex_data[0 * 2 + 1] = MIN_V;
151 face->tex_vertex_data[1 * 2 + 0] = MIN_U;
152 face->tex_vertex_data[1 * 2 + 1] = MAX_V;
153 face->tex_vertex_data[2 * 2 + 0] = MAX_U;
154 face->tex_vertex_data[2 * 2 + 1] = MAX_V;
155 face->tex_vertex_data[3 * 2 + 0] = MAX_U;
156 face->tex_vertex_data[3 * 2 + 1] = MIN_V;
157 }
158 }
159
160 model->objects = g_slist_append(model->objects, box);
161 model->materials = g_slist_append(model->materials, material);
162
163 return TRUE;
164}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/Makefile
new file mode 100644
index 0000000..b9a3491
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/Makefile
@@ -0,0 +1,524 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_vrml/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_vrml
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
37 imp_vrml_v1.c
38ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
39am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
40 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
41 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
42 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
43 $(top_srcdir)/configure.in
44am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
45 $(ACLOCAL_M4)
46mkinstalldirs = $(install_sh) -d
47CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
48CONFIG_CLEAN_FILES =
49am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
50am__vpath_adj = case $$p in \
51 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
52 *) f=$$p;; \
53 esac;
54am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
55am__installdirs = "$(DESTDIR)$(pluginimpdir)"
56pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
57LTLIBRARIES = $(pluginimp_LTLIBRARIES)
58am__DEPENDENCIES_1 =
59imp_vrml_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la \
60 $(am__DEPENDENCIES_1)
61am_imp_vrml_la_OBJECTS = imp_vrml_v1.lo imp_vrml.lo
62imp_vrml_la_OBJECTS = $(am_imp_vrml_la_OBJECTS)
63am_imp_vrml_la_rpath = -rpath $(pluginimpdir)
64DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
65depcomp = $(SHELL) $(top_srcdir)/config/depcomp
66am__depfiles_maybe = depfiles
67COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
68 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
71 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
72CCLD = $(CC)
73LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
74 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
75 $(LDFLAGS) -o $@
76LEXCOMPILE = $(LEX) $(LFLAGS) $(AM_LFLAGS)
77LTLEXCOMPILE = $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
78 --mode=compile $(LEX) $(LFLAGS) $(AM_LFLAGS)
79YLWRAP = $(top_srcdir)/config/ylwrap
80SOURCES = $(imp_vrml_la_SOURCES)
81DIST_SOURCES = $(imp_vrml_la_SOURCES)
82ETAGS = etags
83CTAGS = ctags
84DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
85ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
86AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
87AR = ar
88AS = as
89AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
90AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
91AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
92AWK = gawk
93CC = gcc
94CCDEPMODE = depmode=gcc3
95CFLAGS = -g -O2
96CPP = gcc -E
97CPPFLAGS =
98CXX = g++
99CXXCPP = g++ -E
100CXXDEPMODE = depmode=gcc3
101CXXFLAGS = -g -O2
102CYGPATH_W = echo
103DBG_CFLAGS = -O2
104DEBUG = 0
105DEFS = -DHAVE_CONFIG_H
106DEPDIR = .deps
107DLLTOOL = dlltool
108ECHO = echo
109ECHO_C =
110ECHO_N = -n
111ECHO_T =
112EGREP = /bin/grep -E
113EXEEXT =
114F77 =
115FFLAGS =
116GDKPIXBUF_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
117GDKPIXBUF_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
118GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
119GLIB_GENMARSHAL = glib-genmarshal
120GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
121GLIB_MKENUMS = glib-mkenums
122GOBJECT_QUERY = gobject-query
123GREP = /bin/grep
124GTKDOC_CHECK = /usr/bin/gtkdoc-check
125GTK_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
126GTK_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
127HTML_DIR = ${datadir}/gtk-doc/html
128INSTALL = /usr/bin/install -c
129INSTALL_DATA = ${INSTALL} -m 644
130INSTALL_PROGRAM = ${INSTALL}
131INSTALL_SCRIPT = ${INSTALL}
132INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
133LDFLAGS =
134LEX = flex
135LEXLIB = -lfl
136LEX_OUTPUT_ROOT = lex.yy
137LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
138LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
139LIBOBJS =
140LIBS = -lm
141LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
142LIBXML2_CFLAGS = -I/usr/include/libxml2
143LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
144LN_S = ln -s
145LTLIBOBJS =
146LTVERSION = 0:8:0
147MAGIC_LIBS = -lmagic
148MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
149MATH_LIBS = -lm
150MKDIR_P = /bin/mkdir -p
151OBJDUMP = objdump
152OBJEXT = o
153PACKAGE = libg3d
154PACKAGE_BUGREPORT =
155PACKAGE_NAME =
156PACKAGE_STRING =
157PACKAGE_TARNAME =
158PACKAGE_VERSION =
159PATH_SEPARATOR = :
160PKG_CONFIG = /usr/bin/pkg-config
161PLUGINS_LDFLAGS = -avoid-version -export-dynamic
162RANLIB = ranlib
163SET_MAKE =
164SHELL = /bin/bash
165STRIP = strip
166VERSION = 0.0.8
167XML2_CONFIG = /usr/bin/xml2-config
168XML_CPPFLAGS = -I/usr/include/libxml2
169XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
170Z_CFLAGS =
171Z_LIBS = -lz
172abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml
173abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml
174abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
175abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
176ac_ct_CC = gcc
177ac_ct_CXX = g++
178ac_ct_F77 =
179am__include = include
180am__leading_dot = .
181am__quote =
182am__tar = ${AMTAR} chof - "$$tardir"
183am__untar = ${AMTAR} xf -
184bindir = ${exec_prefix}/bin
185build = x86_64-unknown-linux-gnu
186build_alias =
187build_cpu = x86_64
188build_os = linux-gnu
189build_vendor = unknown
190builddir = .
191datadir = ${datarootdir}
192datarootdir = ${prefix}/share
193docdir = ${datarootdir}/doc/${PACKAGE}
194dvidir = ${docdir}
195exec_prefix = ${prefix}
196host = x86_64-unknown-linux-gnu
197host_alias =
198host_cpu = x86_64
199host_os = linux-gnu
200host_vendor = unknown
201htmldir = ${docdir}
202includedir = ${prefix}/include
203infodir = ${datarootdir}/info
204install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
205libdir = ${exec_prefix}/lib
206libexecdir = ${exec_prefix}/libexec
207localedir = ${datarootdir}/locale
208localstatedir = ${prefix}/var
209mandir = ${datarootdir}/man
210mkdir_p = /bin/mkdir -p
211oldincludedir = /usr/include
212pdfdir = ${docdir}
213prefix = /usr/local
214program_transform_name = s,x,x,
215psdir = ${docdir}
216sbindir = ${exec_prefix}/sbin
217sharedstatedir = ${prefix}/com
218srcdir = .
219sysconfdir = ${prefix}/etc
220target_alias =
221top_builddir = ../../..
222top_srcdir = ../../..
223pluginimpdir = $(pkglibdir)/plugins/import
224pluginimp_LTLIBRARIES = imp_vrml.la
225AM_CFLAGS = \
226 -Wall -ansi -pedantic \
227 -DG_LOG_DOMAIN=\"LibG3D\" \
228 -O2 -DDEBUG=0 \
229 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
230
231INCLUDES = -I$(top_srcdir)/include
232AM_LDFLAGS = \
233 -no-undefined -module \
234 -avoid-version -export-dynamic
235
236AM_LFLAGS = -o${LEX_OUTPUT_ROOT}.c --header-file=${LEX_OUTPUT_ROOT}.h -R
237imp_vrml_la_SOURCES = imp_vrml_v1.l imp_vrml_v1.h imp_vrml.c
238imp_vrml_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 ${LEXLIB}
239EXTRA_DIST = imp_vrml_v1.c imp_vrml_v1.h
240all: all-am
241
242.SUFFIXES:
243.SUFFIXES: .c .l .lo .o .obj
244$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
245 @for dep in $?; do \
246 case '$(am__configure_deps)' in \
247 *$$dep*) \
248 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
249 && exit 0; \
250 exit 1;; \
251 esac; \
252 done; \
253 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_vrml/Makefile'; \
254 cd $(top_srcdir) && \
255 $(AUTOMAKE) --gnu plugins/import/imp_vrml/Makefile
256.PRECIOUS: Makefile
257Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
258 @case '$?' in \
259 *config.status*) \
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
261 *) \
262 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
263 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
264 esac;
265
266$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
267 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
268
269$(top_srcdir)/configure: $(am__configure_deps)
270 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
271$(ACLOCAL_M4): $(am__aclocal_m4_deps)
272 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
273install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
274 @$(NORMAL_INSTALL)
275 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 if test -f $$p; then \
278 f=$(am__strip_dir) \
279 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
280 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
281 else :; fi; \
282 done
283
284uninstall-pluginimpLTLIBRARIES:
285 @$(NORMAL_UNINSTALL)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 p=$(am__strip_dir) \
288 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
289 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
290 done
291
292clean-pluginimpLTLIBRARIES:
293 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
294 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
295 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
296 test "$$dir" != "$$p" || dir=.; \
297 echo "rm -f \"$${dir}/so_locations\""; \
298 rm -f "$${dir}/so_locations"; \
299 done
300imp_vrml.la: $(imp_vrml_la_OBJECTS) $(imp_vrml_la_DEPENDENCIES)
301 $(LINK) $(am_imp_vrml_la_rpath) $(imp_vrml_la_OBJECTS) $(imp_vrml_la_LIBADD) $(LIBS)
302
303mostlyclean-compile:
304 -rm -f *.$(OBJEXT)
305
306distclean-compile:
307 -rm -f *.tab.c
308
309include ./$(DEPDIR)/imp_vrml.Plo
310include ./$(DEPDIR)/imp_vrml_v1.Plo
311
312.c.o:
313 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
314 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
315# source='$<' object='$@' libtool=no \
316# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
317# $(COMPILE) -c $<
318
319.c.obj:
320 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
321 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
322# source='$<' object='$@' libtool=no \
323# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
324# $(COMPILE) -c `$(CYGPATH_W) '$<'`
325
326.c.lo:
327 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
328 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
329# source='$<' object='$@' libtool=yes \
330# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
331# $(LTCOMPILE) -c -o $@ $<
332
333.l.c:
334 $(am__skiplex) $(SHELL) $(YLWRAP) $< $(LEX_OUTPUT_ROOT).c $@ -- $(LEXCOMPILE)
335
336mostlyclean-libtool:
337 -rm -f *.lo
338
339clean-libtool:
340 -rm -rf .libs _libs
341
342ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
344 unique=`for i in $$list; do \
345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
346 done | \
347 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
349 mkid -fID $$unique
350tags: TAGS
351
352TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
353 $(TAGS_FILES) $(LISP)
354 tags=; \
355 here=`pwd`; \
356 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
357 unique=`for i in $$list; do \
358 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
359 done | \
360 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
361 END { if (nonempty) { for (i in files) print i; }; }'`; \
362 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
363 test -n "$$unique" || unique=$$empty_fix; \
364 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
365 $$tags $$unique; \
366 fi
367ctags: CTAGS
368CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
369 $(TAGS_FILES) $(LISP)
370 tags=; \
371 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
372 unique=`for i in $$list; do \
373 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
374 done | \
375 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
376 END { if (nonempty) { for (i in files) print i; }; }'`; \
377 test -z "$(CTAGS_ARGS)$$tags$$unique" \
378 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
379 $$tags $$unique
380
381GTAGS:
382 here=`$(am__cd) $(top_builddir) && pwd` \
383 && cd $(top_srcdir) \
384 && gtags -i $(GTAGS_ARGS) $$here
385
386distclean-tags:
387 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
388
389distdir: $(DISTFILES)
390 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
391 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
392 list='$(DISTFILES)'; \
393 dist_files=`for file in $$list; do echo $$file; done | \
394 sed -e "s|^$$srcdirstrip/||;t" \
395 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
396 case $$dist_files in \
397 */*) $(MKDIR_P) `echo "$$dist_files" | \
398 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
399 sort -u` ;; \
400 esac; \
401 for file in $$dist_files; do \
402 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
403 if test -d $$d/$$file; then \
404 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
405 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
406 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
407 fi; \
408 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
409 else \
410 test -f $(distdir)/$$file \
411 || cp -p $$d/$$file $(distdir)/$$file \
412 || exit 1; \
413 fi; \
414 done
415check-am: all-am
416check: check-am
417all-am: Makefile $(LTLIBRARIES)
418installdirs:
419 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
420 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
421 done
422install: install-am
423install-exec: install-exec-am
424install-data: install-data-am
425uninstall: uninstall-am
426
427install-am: all-am
428 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
429
430installcheck: installcheck-am
431install-strip:
432 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
433 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
434 `test -z '$(STRIP)' || \
435 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
436mostlyclean-generic:
437
438clean-generic:
439
440distclean-generic:
441 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
442
443maintainer-clean-generic:
444 @echo "This command is intended for maintainers to use"
445 @echo "it deletes files that may require special tools to rebuild."
446 -rm -f imp_vrml_v1.c
447clean: clean-am
448
449clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
450 mostlyclean-am
451
452distclean: distclean-am
453 -rm -rf ./$(DEPDIR)
454 -rm -f Makefile
455distclean-am: clean-am distclean-compile distclean-generic \
456 distclean-tags
457
458dvi: dvi-am
459
460dvi-am:
461
462html: html-am
463
464info: info-am
465
466info-am:
467
468install-data-am: install-pluginimpLTLIBRARIES
469
470install-dvi: install-dvi-am
471
472install-exec-am:
473
474install-html: install-html-am
475
476install-info: install-info-am
477
478install-man:
479
480install-pdf: install-pdf-am
481
482install-ps: install-ps-am
483
484installcheck-am:
485
486maintainer-clean: maintainer-clean-am
487 -rm -rf ./$(DEPDIR)
488 -rm -f Makefile
489maintainer-clean-am: distclean-am maintainer-clean-generic
490
491mostlyclean: mostlyclean-am
492
493mostlyclean-am: mostlyclean-compile mostlyclean-generic \
494 mostlyclean-libtool
495
496pdf: pdf-am
497
498pdf-am:
499
500ps: ps-am
501
502ps-am:
503
504uninstall-am: uninstall-pluginimpLTLIBRARIES
505
506.MAKE: install-am install-strip
507
508.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
509 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
510 distclean-compile distclean-generic distclean-libtool \
511 distclean-tags distdir dvi dvi-am html html-am info info-am \
512 install install-am install-data install-data-am install-dvi \
513 install-dvi-am install-exec install-exec-am install-html \
514 install-html-am install-info install-info-am install-man \
515 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
516 install-ps install-ps-am install-strip installcheck \
517 installcheck-am installdirs maintainer-clean \
518 maintainer-clean-generic mostlyclean mostlyclean-compile \
519 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
520 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
521
522# Tell versions [3.59,3.63) of GNU make to not export all variables.
523# Otherwise a system limit (for SysV at least) may be exceeded.
524.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/Makefile.am
new file mode 100644
index 0000000..656f588
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/Makefile.am
@@ -0,0 +1,26 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if OS_WIN32
4else
5pluginimp_LTLIBRARIES = imp_vrml.la
6endif
7
8AM_CFLAGS = \
9 -Wall -ansi -pedantic \
10 -DG_LOG_DOMAIN=\"LibG3D\" \
11 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
12 @GLIB_CFLAGS@
13
14INCLUDES = -I$(top_srcdir)/include
15
16AM_LDFLAGS = \
17 -no-undefined -module \
18 @PLUGINS_LDFLAGS@
19
20AM_LFLAGS = -o${LEX_OUTPUT_ROOT}.c --header-file=${LEX_OUTPUT_ROOT}.h -R
21LIBTOOL += --quiet
22
23imp_vrml_la_SOURCES = imp_vrml_v1.l imp_vrml_v1.h imp_vrml.c
24imp_vrml_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ ${LEXLIB}
25
26EXTRA_DIST = imp_vrml_v1.c imp_vrml_v1.h
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/Makefile.in
new file mode 100644
index 0000000..2efd826
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/Makefile.in
@@ -0,0 +1,524 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_vrml
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
37 imp_vrml_v1.c
38ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
39am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
40 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
41 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
42 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
43 $(top_srcdir)/configure.in
44am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
45 $(ACLOCAL_M4)
46mkinstalldirs = $(install_sh) -d
47CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
48CONFIG_CLEAN_FILES =
49am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
50am__vpath_adj = case $$p in \
51 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
52 *) f=$$p;; \
53 esac;
54am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
55am__installdirs = "$(DESTDIR)$(pluginimpdir)"
56pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
57LTLIBRARIES = $(pluginimp_LTLIBRARIES)
58am__DEPENDENCIES_1 =
59imp_vrml_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la \
60 $(am__DEPENDENCIES_1)
61am_imp_vrml_la_OBJECTS = imp_vrml_v1.lo imp_vrml.lo
62imp_vrml_la_OBJECTS = $(am_imp_vrml_la_OBJECTS)
63@OS_WIN32_FALSE@am_imp_vrml_la_rpath = -rpath $(pluginimpdir)
64DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
65depcomp = $(SHELL) $(top_srcdir)/config/depcomp
66am__depfiles_maybe = depfiles
67COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
68 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
71 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
72CCLD = $(CC)
73LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
74 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
75 $(LDFLAGS) -o $@
76LEXCOMPILE = $(LEX) $(LFLAGS) $(AM_LFLAGS)
77LTLEXCOMPILE = $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
78 --mode=compile $(LEX) $(LFLAGS) $(AM_LFLAGS)
79YLWRAP = $(top_srcdir)/config/ylwrap
80SOURCES = $(imp_vrml_la_SOURCES)
81DIST_SOURCES = $(imp_vrml_la_SOURCES)
82ETAGS = etags
83CTAGS = ctags
84DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
85ACLOCAL = @ACLOCAL@
86AMTAR = @AMTAR@
87AR = @AR@
88AS = @AS@
89AUTOCONF = @AUTOCONF@
90AUTOHEADER = @AUTOHEADER@
91AUTOMAKE = @AUTOMAKE@
92AWK = @AWK@
93CC = @CC@
94CCDEPMODE = @CCDEPMODE@
95CFLAGS = @CFLAGS@
96CPP = @CPP@
97CPPFLAGS = @CPPFLAGS@
98CXX = @CXX@
99CXXCPP = @CXXCPP@
100CXXDEPMODE = @CXXDEPMODE@
101CXXFLAGS = @CXXFLAGS@
102CYGPATH_W = @CYGPATH_W@
103DBG_CFLAGS = @DBG_CFLAGS@
104DEBUG = @DEBUG@
105DEFS = @DEFS@
106DEPDIR = @DEPDIR@
107DLLTOOL = @DLLTOOL@
108ECHO = @ECHO@
109ECHO_C = @ECHO_C@
110ECHO_N = @ECHO_N@
111ECHO_T = @ECHO_T@
112EGREP = @EGREP@
113EXEEXT = @EXEEXT@
114F77 = @F77@
115FFLAGS = @FFLAGS@
116GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
117GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
118GLIB_CFLAGS = @GLIB_CFLAGS@
119GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
120GLIB_LIBS = @GLIB_LIBS@
121GLIB_MKENUMS = @GLIB_MKENUMS@
122GOBJECT_QUERY = @GOBJECT_QUERY@
123GREP = @GREP@
124GTKDOC_CHECK = @GTKDOC_CHECK@
125GTK_CFLAGS = @GTK_CFLAGS@
126GTK_LIBS = @GTK_LIBS@
127HTML_DIR = @HTML_DIR@
128INSTALL = @INSTALL@
129INSTALL_DATA = @INSTALL_DATA@
130INSTALL_PROGRAM = @INSTALL_PROGRAM@
131INSTALL_SCRIPT = @INSTALL_SCRIPT@
132INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
133LDFLAGS = @LDFLAGS@
134LEX = @LEX@
135LEXLIB = @LEXLIB@
136LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
137LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
138LIBGSF_LIBS = @LIBGSF_LIBS@
139LIBOBJS = @LIBOBJS@
140LIBS = @LIBS@
141LIBTOOL = @LIBTOOL@ --quiet
142LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
143LIBXML2_LIBS = @LIBXML2_LIBS@
144LN_S = @LN_S@
145LTLIBOBJS = @LTLIBOBJS@
146LTVERSION = @LTVERSION@
147MAGIC_LIBS = @MAGIC_LIBS@
148MAKEINFO = @MAKEINFO@
149MATH_LIBS = @MATH_LIBS@
150MKDIR_P = @MKDIR_P@
151OBJDUMP = @OBJDUMP@
152OBJEXT = @OBJEXT@
153PACKAGE = @PACKAGE@
154PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
155PACKAGE_NAME = @PACKAGE_NAME@
156PACKAGE_STRING = @PACKAGE_STRING@
157PACKAGE_TARNAME = @PACKAGE_TARNAME@
158PACKAGE_VERSION = @PACKAGE_VERSION@
159PATH_SEPARATOR = @PATH_SEPARATOR@
160PKG_CONFIG = @PKG_CONFIG@
161PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
162RANLIB = @RANLIB@
163SET_MAKE = @SET_MAKE@
164SHELL = @SHELL@
165STRIP = @STRIP@
166VERSION = @VERSION@
167XML2_CONFIG = @XML2_CONFIG@
168XML_CPPFLAGS = @XML_CPPFLAGS@
169XML_LIBS = @XML_LIBS@
170Z_CFLAGS = @Z_CFLAGS@
171Z_LIBS = @Z_LIBS@
172abs_builddir = @abs_builddir@
173abs_srcdir = @abs_srcdir@
174abs_top_builddir = @abs_top_builddir@
175abs_top_srcdir = @abs_top_srcdir@
176ac_ct_CC = @ac_ct_CC@
177ac_ct_CXX = @ac_ct_CXX@
178ac_ct_F77 = @ac_ct_F77@
179am__include = @am__include@
180am__leading_dot = @am__leading_dot@
181am__quote = @am__quote@
182am__tar = @am__tar@
183am__untar = @am__untar@
184bindir = @bindir@
185build = @build@
186build_alias = @build_alias@
187build_cpu = @build_cpu@
188build_os = @build_os@
189build_vendor = @build_vendor@
190builddir = @builddir@
191datadir = @datadir@
192datarootdir = @datarootdir@
193docdir = @docdir@
194dvidir = @dvidir@
195exec_prefix = @exec_prefix@
196host = @host@
197host_alias = @host_alias@
198host_cpu = @host_cpu@
199host_os = @host_os@
200host_vendor = @host_vendor@
201htmldir = @htmldir@
202includedir = @includedir@
203infodir = @infodir@
204install_sh = @install_sh@
205libdir = @libdir@
206libexecdir = @libexecdir@
207localedir = @localedir@
208localstatedir = @localstatedir@
209mandir = @mandir@
210mkdir_p = @mkdir_p@
211oldincludedir = @oldincludedir@
212pdfdir = @pdfdir@
213prefix = @prefix@
214program_transform_name = @program_transform_name@
215psdir = @psdir@
216sbindir = @sbindir@
217sharedstatedir = @sharedstatedir@
218srcdir = @srcdir@
219sysconfdir = @sysconfdir@
220target_alias = @target_alias@
221top_builddir = @top_builddir@
222top_srcdir = @top_srcdir@
223pluginimpdir = $(pkglibdir)/plugins/import
224@OS_WIN32_FALSE@pluginimp_LTLIBRARIES = imp_vrml.la
225AM_CFLAGS = \
226 -Wall -ansi -pedantic \
227 -DG_LOG_DOMAIN=\"LibG3D\" \
228 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
229 @GLIB_CFLAGS@
230
231INCLUDES = -I$(top_srcdir)/include
232AM_LDFLAGS = \
233 -no-undefined -module \
234 @PLUGINS_LDFLAGS@
235
236AM_LFLAGS = -o${LEX_OUTPUT_ROOT}.c --header-file=${LEX_OUTPUT_ROOT}.h -R
237imp_vrml_la_SOURCES = imp_vrml_v1.l imp_vrml_v1.h imp_vrml.c
238imp_vrml_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ ${LEXLIB}
239EXTRA_DIST = imp_vrml_v1.c imp_vrml_v1.h
240all: all-am
241
242.SUFFIXES:
243.SUFFIXES: .c .l .lo .o .obj
244$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
245 @for dep in $?; do \
246 case '$(am__configure_deps)' in \
247 *$$dep*) \
248 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
249 && exit 0; \
250 exit 1;; \
251 esac; \
252 done; \
253 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_vrml/Makefile'; \
254 cd $(top_srcdir) && \
255 $(AUTOMAKE) --gnu plugins/import/imp_vrml/Makefile
256.PRECIOUS: Makefile
257Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
258 @case '$?' in \
259 *config.status*) \
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
261 *) \
262 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
263 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
264 esac;
265
266$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
267 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
268
269$(top_srcdir)/configure: $(am__configure_deps)
270 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
271$(ACLOCAL_M4): $(am__aclocal_m4_deps)
272 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
273install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
274 @$(NORMAL_INSTALL)
275 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 if test -f $$p; then \
278 f=$(am__strip_dir) \
279 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
280 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
281 else :; fi; \
282 done
283
284uninstall-pluginimpLTLIBRARIES:
285 @$(NORMAL_UNINSTALL)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 p=$(am__strip_dir) \
288 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
289 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
290 done
291
292clean-pluginimpLTLIBRARIES:
293 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
294 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
295 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
296 test "$$dir" != "$$p" || dir=.; \
297 echo "rm -f \"$${dir}/so_locations\""; \
298 rm -f "$${dir}/so_locations"; \
299 done
300imp_vrml.la: $(imp_vrml_la_OBJECTS) $(imp_vrml_la_DEPENDENCIES)
301 $(LINK) $(am_imp_vrml_la_rpath) $(imp_vrml_la_OBJECTS) $(imp_vrml_la_LIBADD) $(LIBS)
302
303mostlyclean-compile:
304 -rm -f *.$(OBJEXT)
305
306distclean-compile:
307 -rm -f *.tab.c
308
309@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_vrml.Plo@am__quote@
310@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_vrml_v1.Plo@am__quote@
311
312.c.o:
313@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
314@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
315@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
316@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
317@am__fastdepCC_FALSE@ $(COMPILE) -c $<
318
319.c.obj:
320@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
321@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
322@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
323@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
324@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
325
326.c.lo:
327@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
328@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
329@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
330@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
331@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
332
333.l.c:
334 $(am__skiplex) $(SHELL) $(YLWRAP) $< $(LEX_OUTPUT_ROOT).c $@ -- $(LEXCOMPILE)
335
336mostlyclean-libtool:
337 -rm -f *.lo
338
339clean-libtool:
340 -rm -rf .libs _libs
341
342ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
344 unique=`for i in $$list; do \
345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
346 done | \
347 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
349 mkid -fID $$unique
350tags: TAGS
351
352TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
353 $(TAGS_FILES) $(LISP)
354 tags=; \
355 here=`pwd`; \
356 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
357 unique=`for i in $$list; do \
358 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
359 done | \
360 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
361 END { if (nonempty) { for (i in files) print i; }; }'`; \
362 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
363 test -n "$$unique" || unique=$$empty_fix; \
364 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
365 $$tags $$unique; \
366 fi
367ctags: CTAGS
368CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
369 $(TAGS_FILES) $(LISP)
370 tags=; \
371 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
372 unique=`for i in $$list; do \
373 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
374 done | \
375 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
376 END { if (nonempty) { for (i in files) print i; }; }'`; \
377 test -z "$(CTAGS_ARGS)$$tags$$unique" \
378 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
379 $$tags $$unique
380
381GTAGS:
382 here=`$(am__cd) $(top_builddir) && pwd` \
383 && cd $(top_srcdir) \
384 && gtags -i $(GTAGS_ARGS) $$here
385
386distclean-tags:
387 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
388
389distdir: $(DISTFILES)
390 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
391 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
392 list='$(DISTFILES)'; \
393 dist_files=`for file in $$list; do echo $$file; done | \
394 sed -e "s|^$$srcdirstrip/||;t" \
395 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
396 case $$dist_files in \
397 */*) $(MKDIR_P) `echo "$$dist_files" | \
398 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
399 sort -u` ;; \
400 esac; \
401 for file in $$dist_files; do \
402 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
403 if test -d $$d/$$file; then \
404 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
405 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
406 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
407 fi; \
408 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
409 else \
410 test -f $(distdir)/$$file \
411 || cp -p $$d/$$file $(distdir)/$$file \
412 || exit 1; \
413 fi; \
414 done
415check-am: all-am
416check: check-am
417all-am: Makefile $(LTLIBRARIES)
418installdirs:
419 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
420 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
421 done
422install: install-am
423install-exec: install-exec-am
424install-data: install-data-am
425uninstall: uninstall-am
426
427install-am: all-am
428 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
429
430installcheck: installcheck-am
431install-strip:
432 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
433 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
434 `test -z '$(STRIP)' || \
435 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
436mostlyclean-generic:
437
438clean-generic:
439
440distclean-generic:
441 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
442
443maintainer-clean-generic:
444 @echo "This command is intended for maintainers to use"
445 @echo "it deletes files that may require special tools to rebuild."
446 -rm -f imp_vrml_v1.c
447clean: clean-am
448
449clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
450 mostlyclean-am
451
452distclean: distclean-am
453 -rm -rf ./$(DEPDIR)
454 -rm -f Makefile
455distclean-am: clean-am distclean-compile distclean-generic \
456 distclean-tags
457
458dvi: dvi-am
459
460dvi-am:
461
462html: html-am
463
464info: info-am
465
466info-am:
467
468install-data-am: install-pluginimpLTLIBRARIES
469
470install-dvi: install-dvi-am
471
472install-exec-am:
473
474install-html: install-html-am
475
476install-info: install-info-am
477
478install-man:
479
480install-pdf: install-pdf-am
481
482install-ps: install-ps-am
483
484installcheck-am:
485
486maintainer-clean: maintainer-clean-am
487 -rm -rf ./$(DEPDIR)
488 -rm -f Makefile
489maintainer-clean-am: distclean-am maintainer-clean-generic
490
491mostlyclean: mostlyclean-am
492
493mostlyclean-am: mostlyclean-compile mostlyclean-generic \
494 mostlyclean-libtool
495
496pdf: pdf-am
497
498pdf-am:
499
500ps: ps-am
501
502ps-am:
503
504uninstall-am: uninstall-pluginimpLTLIBRARIES
505
506.MAKE: install-am install-strip
507
508.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
509 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
510 distclean-compile distclean-generic distclean-libtool \
511 distclean-tags distdir dvi dvi-am html html-am info info-am \
512 install install-am install-data install-data-am install-dvi \
513 install-dvi-am install-exec install-exec-am install-html \
514 install-html-am install-info install-info-am install-man \
515 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
516 install-ps install-ps-am install-strip installcheck \
517 installcheck-am installdirs maintainer-clean \
518 maintainer-clean-generic mostlyclean mostlyclean-compile \
519 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
520 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
521
522# Tell versions [3.59,3.63) of GNU make to not export all variables.
523# Otherwise a system limit (for SysV at least) may be exceeded.
524.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/imp_vrml.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/imp_vrml.c
new file mode 100644
index 0000000..15069d3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/imp_vrml.c
@@ -0,0 +1,122 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <string.h>
25#include <locale.h>
26
27#include <glib.h>
28
29#include <g3d/types.h>
30#include <g3d/stream.h>
31#include <g3d/material.h>
32
33#include "imp_vrml_v1.h"
34
35#define VRML_FT_VRML 0x01
36#define VRML_FT_INVENTOR 0x02
37
38#define MAX_LINE_SIZE 2048
39
40EAPI
41gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
42 G3DModel *model, gpointer user_data)
43{
44 yyscan_t scanner;
45 YY_BUFFER_STATE bufstate;
46 G3DMaterial *material;
47 gchar line[MAX_LINE_SIZE + 1], *buffer, *bufp;
48 guint32 ver_maj, ver_min, filetype, buflen;
49
50 memset(line, 0, MAX_LINE_SIZE);
51 g3d_stream_read_line(stream, line, MAX_LINE_SIZE);
52 if(strncmp(line, "#VRML", 5) == 0)
53 filetype = VRML_FT_VRML;
54 else if(strncmp(line, "#Inventor", 9) == 0)
55 filetype = VRML_FT_INVENTOR;
56 else {
57 g_warning("file '%s' is not a VRML file", stream->uri);
58 return FALSE;
59 }
60
61 /* FIXME: more than one space between VRML and Vx.x? */
62 ver_maj = line[7] - '0';
63 ver_min = line[9] - '0';
64
65#if DEBUG > 0
66 g_debug("VRML: version %d.%d", ver_maj, ver_min);
67#endif
68
69 setlocale(LC_NUMERIC, "C");
70
71 if((filetype == VRML_FT_INVENTOR) || (ver_maj == 1)) {
72 /* Inventor / VRML 1.x */
73 /* read complete file to buffer */
74 buflen = g3d_stream_size(stream) + 1;
75 buffer = g_new0(gchar, buflen);
76 bufp = buffer;
77 memset(buffer, 0, buflen);
78 memset(line, 0, MAX_LINE_SIZE);
79 while(!g3d_stream_eof(stream) &&
80 g3d_stream_read_line(stream, line, MAX_LINE_SIZE)) {
81 memcpy(bufp, line, strlen(line));
82 bufp += strlen(line);
83 }
84 material = g3d_material_new();
85 material->name = g_strdup("fallback material");
86 model->materials = g_slist_append(model->materials, material);
87
88 vrml_v1_yylex_init(&scanner);
89 vrml_v1_yyset_extra(model, scanner);
90 bufstate = vrml_v1_yy_scan_string(buffer, scanner);
91 if(bufstate) {
92 vrml_v1_yylex(scanner);
93 vrml_v1_yy_delete_buffer(bufstate, scanner);
94 }
95 vrml_v1_yylex_destroy(scanner);
96 g_free(buffer);
97 } else if(ver_maj == 2) {
98 g_warning("VRML 2 is not yet supported");
99 return FALSE;
100 } else {
101 g_warning("unknown VRML version %d.%d", ver_maj, ver_min);
102 return FALSE;
103 }
104
105 return TRUE;
106}
107
108EAPI
109gchar *plugin_description(void)
110{
111 return g_strdup("VRML 1.x & SGI inventor models.");
112}
113
114EAPI
115gchar **plugin_extensions(void)
116{
117 return g_strsplit("vrml:iv", ":", 0);
118}
119
120/* FIXME */
121extern int yywrap(yyscan_t yyscanner);
122int vrml_v1_yywrap(yyscan_t yyscanner) { return yywrap(yyscanner); }
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/imp_vrml_v1.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/imp_vrml_v1.c
new file mode 100644
index 0000000..38e0497
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/imp_vrml_v1.c
@@ -0,0 +1,2788 @@
1#line 2 "imp_vrml_v1.c"
2
3#line 4 "imp_vrml_v1.c"
4
5#define YY_INT_ALIGNED short int
6
7/* A lexical scanner generated by flex */
8
9#define FLEX_SCANNER
10#define YY_FLEX_MAJOR_VERSION 2
11#define YY_FLEX_MINOR_VERSION 5
12#define YY_FLEX_SUBMINOR_VERSION 35
13#if YY_FLEX_SUBMINOR_VERSION > 0
14#define FLEX_BETA
15#endif
16
17/* First, we deal with platform-specific or compiler-specific issues. */
18
19/* begin standard C headers. */
20#include <stdio.h>
21#include <string.h>
22#include <errno.h>
23#include <stdlib.h>
24
25/* end standard C headers. */
26
27/* flex integer type definitions */
28
29#ifndef FLEXINT_H
30#define FLEXINT_H
31
32/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
33
34#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
35
36/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
37 * if you want the limit (max/min) macros for int types.
38 */
39#ifndef __STDC_LIMIT_MACROS
40#define __STDC_LIMIT_MACROS 1
41#endif
42
43#include <inttypes.h>
44typedef int8_t flex_int8_t;
45typedef uint8_t flex_uint8_t;
46typedef int16_t flex_int16_t;
47typedef uint16_t flex_uint16_t;
48typedef int32_t flex_int32_t;
49typedef uint32_t flex_uint32_t;
50#else
51typedef signed char flex_int8_t;
52typedef short int flex_int16_t;
53typedef int flex_int32_t;
54typedef unsigned char flex_uint8_t;
55typedef unsigned short int flex_uint16_t;
56typedef unsigned int flex_uint32_t;
57
58/* Limits of integral types. */
59#ifndef INT8_MIN
60#define INT8_MIN (-128)
61#endif
62#ifndef INT16_MIN
63#define INT16_MIN (-32767-1)
64#endif
65#ifndef INT32_MIN
66#define INT32_MIN (-2147483647-1)
67#endif
68#ifndef INT8_MAX
69#define INT8_MAX (127)
70#endif
71#ifndef INT16_MAX
72#define INT16_MAX (32767)
73#endif
74#ifndef INT32_MAX
75#define INT32_MAX (2147483647)
76#endif
77#ifndef UINT8_MAX
78#define UINT8_MAX (255U)
79#endif
80#ifndef UINT16_MAX
81#define UINT16_MAX (65535U)
82#endif
83#ifndef UINT32_MAX
84#define UINT32_MAX (4294967295U)
85#endif
86
87#endif /* ! C99 */
88
89#endif /* ! FLEXINT_H */
90
91#ifdef __cplusplus
92
93/* The "const" storage-class-modifier is valid. */
94#define YY_USE_CONST
95
96#else /* ! __cplusplus */
97
98/* C99 requires __STDC__ to be defined as 1. */
99#if defined (__STDC__)
100
101#define YY_USE_CONST
102
103#endif /* defined (__STDC__) */
104#endif /* ! __cplusplus */
105
106#ifdef YY_USE_CONST
107#define yyconst const
108#else
109#define yyconst
110#endif
111
112/* Returned upon end-of-file. */
113#define YY_NULL 0
114
115/* Promotes a possibly negative, possibly signed char to an unsigned
116 * integer for use as an array index. If the signed char is negative,
117 * we want to instead treat it as an 8-bit unsigned char, hence the
118 * double cast.
119 */
120#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
121
122/* An opaque pointer. */
123#ifndef YY_TYPEDEF_YY_SCANNER_T
124#define YY_TYPEDEF_YY_SCANNER_T
125typedef void* yyscan_t;
126#endif
127
128/* For convenience, these vars (plus the bison vars far below)
129 are macros in the reentrant scanner. */
130#define yyin yyg->yyin_r
131#define yyout yyg->yyout_r
132#define yyextra yyg->yyextra_r
133#define yyleng yyg->yyleng_r
134#define yytext yyg->yytext_r
135#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
136#define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
137#define yy_flex_debug yyg->yy_flex_debug_r
138
139/* Enter a start condition. This macro really ought to take a parameter,
140 * but we do it the disgusting crufty way forced on us by the ()-less
141 * definition of BEGIN.
142 */
143#define BEGIN yyg->yy_start = 1 + 2 *
144
145/* Translate the current start state into a value that can be later handed
146 * to BEGIN to return to the state. The YYSTATE alias is for lex
147 * compatibility.
148 */
149#define YY_START ((yyg->yy_start - 1) / 2)
150#define YYSTATE YY_START
151
152/* Action number for EOF rule of a given start state. */
153#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
154
155/* Special action meaning "start processing a new file". */
156#define YY_NEW_FILE vrml_v1_yyrestart(yyin ,yyscanner )
157
158#define YY_END_OF_BUFFER_CHAR 0
159
160/* Size of default input buffer. */
161#ifndef YY_BUF_SIZE
162#define YY_BUF_SIZE 16384
163#endif
164
165/* The state buf must be large enough to hold one state per character in the main buffer.
166 */
167#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
168
169#ifndef YY_TYPEDEF_YY_BUFFER_STATE
170#define YY_TYPEDEF_YY_BUFFER_STATE
171typedef struct yy_buffer_state *YY_BUFFER_STATE;
172#endif
173
174#define EOB_ACT_CONTINUE_SCAN 0
175#define EOB_ACT_END_OF_FILE 1
176#define EOB_ACT_LAST_MATCH 2
177
178 #define YY_LESS_LINENO(n)
179
180/* Return all but the first "n" matched characters back to the input stream. */
181#define yyless(n) \
182 do \
183 { \
184 /* Undo effects of setting up yytext. */ \
185 int yyless_macro_arg = (n); \
186 YY_LESS_LINENO(yyless_macro_arg);\
187 *yy_cp = yyg->yy_hold_char; \
188 YY_RESTORE_YY_MORE_OFFSET \
189 yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
190 YY_DO_BEFORE_ACTION; /* set up yytext again */ \
191 } \
192 while ( 0 )
193
194#define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner )
195
196#ifndef YY_TYPEDEF_YY_SIZE_T
197#define YY_TYPEDEF_YY_SIZE_T
198typedef size_t yy_size_t;
199#endif
200
201#ifndef YY_STRUCT_YY_BUFFER_STATE
202#define YY_STRUCT_YY_BUFFER_STATE
203struct yy_buffer_state
204 {
205 FILE *yy_input_file;
206
207 char *yy_ch_buf; /* input buffer */
208 char *yy_buf_pos; /* current position in input buffer */
209
210 /* Size of input buffer in bytes, not including room for EOB
211 * characters.
212 */
213 yy_size_t yy_buf_size;
214
215 /* Number of characters read into yy_ch_buf, not including EOB
216 * characters.
217 */
218 int yy_n_chars;
219
220 /* Whether we "own" the buffer - i.e., we know we created it,
221 * and can realloc() it to grow it, and should free() it to
222 * delete it.
223 */
224 int yy_is_our_buffer;
225
226 /* Whether this is an "interactive" input source; if so, and
227 * if we're using stdio for input, then we want to use getc()
228 * instead of fread(), to make sure we stop fetching input after
229 * each newline.
230 */
231 int yy_is_interactive;
232
233 /* Whether we're considered to be at the beginning of a line.
234 * If so, '^' rules will be active on the next match, otherwise
235 * not.
236 */
237 int yy_at_bol;
238
239 int yy_bs_lineno; /**< The line count. */
240 int yy_bs_column; /**< The column count. */
241
242 /* Whether to try to fill the input buffer when we reach the
243 * end of it.
244 */
245 int yy_fill_buffer;
246
247 int yy_buffer_status;
248
249#define YY_BUFFER_NEW 0
250#define YY_BUFFER_NORMAL 1
251 /* When an EOF's been seen but there's still some text to process
252 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
253 * shouldn't try reading from the input source any more. We might
254 * still have a bunch of tokens to match, though, because of
255 * possible backing-up.
256 *
257 * When we actually see the EOF, we change the status to "new"
258 * (via vrml_v1_yyrestart()), so that the user can continue scanning by
259 * just pointing yyin at a new input file.
260 */
261#define YY_BUFFER_EOF_PENDING 2
262
263 };
264#endif /* !YY_STRUCT_YY_BUFFER_STATE */
265
266/* We provide macros for accessing buffer states in case in the
267 * future we want to put the buffer states in a more general
268 * "scanner state".
269 *
270 * Returns the top of the stack, or NULL.
271 */
272#define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \
273 ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
274 : NULL)
275
276/* Same as previous macro, but useful when we know that the buffer stack is not
277 * NULL or when we need an lvalue. For internal use only.
278 */
279#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
280
281void vrml_v1_yyrestart (FILE *input_file ,yyscan_t yyscanner );
282void vrml_v1_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
283YY_BUFFER_STATE vrml_v1_yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner );
284void vrml_v1_yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
285void vrml_v1_yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
286void vrml_v1_yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
287void vrml_v1_yypop_buffer_state (yyscan_t yyscanner );
288
289static void vrml_v1_yyensure_buffer_stack (yyscan_t yyscanner );
290static void vrml_v1_yy_load_buffer_state (yyscan_t yyscanner );
291static void vrml_v1_yy_init_buffer (YY_BUFFER_STATE b,FILE *file ,yyscan_t yyscanner );
292
293#define YY_FLUSH_BUFFER vrml_v1_yy_flush_buffer(YY_CURRENT_BUFFER ,yyscanner)
294
295YY_BUFFER_STATE vrml_v1_yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
296YY_BUFFER_STATE vrml_v1_yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
297YY_BUFFER_STATE vrml_v1_yy_scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner );
298
299void *vrml_v1_yyalloc (yy_size_t ,yyscan_t yyscanner );
300void *vrml_v1_yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
301void vrml_v1_yyfree (void * ,yyscan_t yyscanner );
302
303#define yy_new_buffer vrml_v1_yy_create_buffer
304
305#define yy_set_interactive(is_interactive) \
306 { \
307 if ( ! YY_CURRENT_BUFFER ){ \
308 vrml_v1_yyensure_buffer_stack (yyscanner); \
309 YY_CURRENT_BUFFER_LVALUE = \
310 vrml_v1_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
311 } \
312 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
313 }
314
315#define yy_set_bol(at_bol) \
316 { \
317 if ( ! YY_CURRENT_BUFFER ){\
318 vrml_v1_yyensure_buffer_stack (yyscanner); \
319 YY_CURRENT_BUFFER_LVALUE = \
320 vrml_v1_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
321 } \
322 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
323 }
324
325#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
326
327/* Begin user sect3 */
328
329typedef unsigned char YY_CHAR;
330
331typedef int yy_state_type;
332
333#define yytext_ptr yytext_r
334
335static yy_state_type yy_get_previous_state (yyscan_t yyscanner );
336static yy_state_type yy_try_NUL_trans (yy_state_type current_state ,yyscan_t yyscanner);
337static int yy_get_next_buffer (yyscan_t yyscanner );
338static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner );
339
340/* Done after the current pattern has been matched and before the
341 * corresponding action - sets up yytext.
342 */
343#define YY_DO_BEFORE_ACTION \
344 yyg->yytext_ptr = yy_bp; \
345 yyleng = (size_t) (yy_cp - yy_bp); \
346 yyg->yy_hold_char = *yy_cp; \
347 *yy_cp = '\0'; \
348 yyg->yy_c_buf_p = yy_cp;
349
350#define YY_NUM_RULES 32
351#define YY_END_OF_BUFFER 33
352/* This struct is not used in this scanner,
353 but its presence is necessary. */
354struct yy_trans_info
355 {
356 flex_int32_t yy_verify;
357 flex_int32_t yy_nxt;
358 };
359static yyconst flex_int16_t yy_acclist[299] =
360 { 0,
361 33, 30, 32, 31, 32, 30, 32, 15, 30, 32,
362 30, 32,16411, 30, 32,16411, 30, 32,16411, 30,
363 32,16411, 30, 32,16411, 30, 32,16411, 26, 30,
364 32, 30, 32, 30, 32, 30, 32, 30, 32, 30,
365 32, 30, 32, 30, 32, 30, 32, 28, 30, 32,
366 29, 30, 32, 1, 30, 32, 30, 32, 4, 30,
367 32, 5, 31, 32, 4, 30, 32, 4, 15, 30,
368 32, 4, 30, 32,16411, 4, 30, 32,16411, 4,
369 30, 32,16411, 4, 30, 32,16411, 4, 30, 32,
370 16411, 4, 30, 32,16411, 4, 30, 32,16411, 4,
371
372 26, 30, 32, 4, 30, 32, 4, 30, 32, 4,
373 30, 32, 4, 30, 32, 4, 30, 32, 4, 30,
374 32, 4, 30, 32, 4, 30, 32, 4, 28, 30,
375 32, 4, 29, 30, 32, 6, 30, 32, 7, 31,
376 32, 6, 30, 32, 6, 15, 30, 32, 6, 30,
377 32,16411, 6, 30, 32,16411, 6, 30, 32,16411,
378 6, 30, 32,16411, 6, 30, 32,16411, 6, 30,
379 32,16411, 6, 26, 30, 32, 6, 30, 32, 6,
380 30, 32, 6, 30, 32, 6, 30, 32, 6, 30,
381 32, 6, 30, 32, 6, 30, 32, 6, 30, 32,
382
383 6, 28, 30, 32, 6, 29, 30, 32, 15, 15,
384 15, 14, 15,16411, 8219,16411,16411,16411,16411,16411,
385 1, 3, 3,16411,16411,16411,16411,16411,16411,16411,
386 16411,16411,16411,16411,16411,16411,16411,16411,16411,16411,
387 16411,16411, 9, 8219,16411,16411,16411,16411, 25, 22,
388 16411, 9,16411,16411,16411,16411, 2,16411,16411,16411,
389 16411,16411,16411,16411, 10, 8219,16411,16411,16411,16411,
390 16411, 8, 8219, 20,16411,16411,16411, 23, 12, 8219,
391 16411,16411,16411,16411, 16, 17, 21,16411,16411, 19,
392 24, 18, 13, 8219,16411, 11, 8219, 11
393
394 } ;
395
396static yyconst flex_int16_t yy_accept[276] =
397 { 0,
398 1, 1, 1, 1, 1, 1, 1, 2, 4, 6,
399 8, 11, 14, 17, 20, 23, 26, 29, 32, 34,
400 36, 38, 40, 42, 44, 46, 48, 51, 54, 57,
401 59, 62, 65, 68, 72, 76, 80, 84, 88, 92,
402 96, 100, 104, 107, 110, 113, 116, 119, 122, 125,
403 128, 132, 136, 139, 142, 145, 149, 153, 157, 161,
404 165, 169, 173, 177, 180, 183, 186, 189, 192, 195,
405 198, 201, 205, 209, 210, 211, 212, 213, 214, 214,
406 214, 215, 216, 217, 218, 219, 220, 221, 221, 221,
407 221, 221, 221, 221, 221, 221, 221, 221, 222, 222,
408
409 223, 225, 226, 227, 228, 229, 230, 230, 230, 230,
410 230, 230, 230, 230, 230, 230, 230, 231, 232, 233,
411 234, 235, 236, 236, 236, 236, 236, 236, 236, 236,
412 236, 236, 236, 236, 237, 238, 239, 240, 241, 242,
413 242, 242, 242, 242, 242, 242, 242, 242, 242, 242,
414 242, 243, 243, 243, 245, 246, 247, 248, 249, 249,
415 249, 249, 249, 249, 250, 250, 251, 251, 251, 251,
416 251, 252, 253, 254, 255, 256, 257, 257, 257, 257,
417 257, 257, 257, 257, 257, 258, 259, 260, 261, 262,
418 263, 263, 263, 263, 263, 263, 263, 263, 263, 264,
419
420 265, 265, 267, 268, 269, 269, 269, 269, 269, 269,
421 269, 269, 269, 270, 271, 272, 272, 274, 274, 274,
422 274, 274, 274, 274, 275, 275, 275, 276, 277, 278,
423 278, 278, 279, 279, 279, 279, 279, 279, 279, 281,
424 282, 283, 283, 283, 283, 283, 283, 283, 284, 285,
425 285, 286, 286, 287, 287, 287, 287, 287, 288, 289,
426 290, 290, 291, 291, 292, 292, 293, 293, 295, 296,
427 296, 296, 298, 299, 299
428 } ;
429
430static yyconst flex_int32_t yy_ec[256] =
431 { 0,
432 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
433 2, 2, 2, 1, 1, 1, 1, 1, 1, 1,
434 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
435 1, 4, 1, 1, 5, 1, 1, 1, 1, 1,
436 1, 1, 1, 6, 7, 8, 1, 9, 9, 9,
437 10, 9, 9, 9, 9, 9, 9, 1, 1, 1,
438 1, 1, 1, 1, 11, 11, 12, 11, 11, 13,
439 14, 11, 15, 11, 11, 16, 17, 11, 11, 11,
440 11, 18, 19, 20, 11, 21, 11, 11, 11, 11,
441 22, 1, 23, 1, 1, 1, 24, 25, 26, 27,
442
443 28, 29, 30, 31, 32, 30, 30, 33, 34, 35,
444 36, 37, 30, 38, 39, 40, 41, 42, 30, 43,
445 44, 30, 45, 1, 46, 1, 1, 1, 1, 1,
446 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
447 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
448 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
449 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
450 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
451 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
452 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
453
454 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
455 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
456 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
457 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
458 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
459 1, 1, 1, 1, 1
460 } ;
461
462static yyconst flex_int32_t yy_meta[47] =
463 { 0,
464 1, 2, 2, 3, 1, 4, 5, 5, 3, 3,
465 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
466 6, 1, 4, 6, 6, 6, 6, 7, 6, 6,
467 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
468 6, 6, 6, 6, 6, 1
469 } ;
470
471static yyconst flex_int16_t yy_base[278] =
472 { 0,
473 0, 42, 81, 0, 127, 0, 619, 620, 620, 39,
474 172, 173, 179, 181, 182, 180, 183, 620, 584, 581,
475 584, 581, 590, 577, 19, 574, 620, 620, 590, 183,
476 620, 620, 42, 0, 185, 187, 193, 194, 188, 206,
477 197, 620, 576, 573, 576, 573, 582, 569, 22, 566,
478 620, 620, 620, 620, 45, 0, 190, 204, 198, 209,
479 192, 217, 620, 569, 566, 569, 566, 575, 562, 26,
480 559, 620, 620, 0, 0, 51, 620, 0, 52, 205,
481 237, 620, 242, 243, 244, 251, 248, 571, 559, 565,
482 561, 552, 559, 558, 561, 564, 568, 620, 251, 56,
483
484 249, 257, 256, 264, 270, 259, 549, 538, 546, 533,
485 34, 536, 534, 542, 531, 548, 272, 266, 262, 268,
486 280, 276, 536, 536, 521, 522, 522, 527, 518, 525,
487 515, 516, 538, 296, 316, 282, 312, 319, 318, 518,
488 537, 512, 518, 517, 505, 327, 512, 513, 508, 540,
489 320, 330, 333, 620, 339, 322, 334, 336, 503, 507,
490 512, 497, 513, 620, 348, 620, 508, 510, 509, 492,
491 335, 620, 343, 341, 344, 349, 500, 482, 495, 476,
492 470, 462, 459, 437, 620, 356, 367, 354, 368, 364,
493 436, 439, 428, 435, 422, 390, 269, 249, 365, 369,
494
495 373, 620, 386, 379, 242, 230, 236, 231, 230, 401,
496 228, 168, 396, 383, 393, 394, 620, 163, 413, 157,
497 157, 53, 423, 620, 46, 52, 403, 415, 404, 39,
498 440, 620, 38, 38, 45, 35, 26, 416, 620, 418,
499 432, 448, 451, 31, 25, 29, 454, 426, 436, 476,
500 620, 480, 620, 483, 486, 489, 492, 620, 455, 465,
501 513, 620, 516, 620, 519, 620, 461, 620, 522, 525,
502 528, 620, 620, 620, 571, 577, 580
503 } ;
504
505static yyconst flex_int16_t yy_def[278] =
506 { 0,
507 274, 1, 274, 3, 274, 5, 274, 274, 274, 274,
508 274, 275, 275, 275, 275, 275, 275, 274, 274, 274,
509 274, 274, 274, 274, 274, 274, 274, 274, 274, 274,
510 274, 274, 274, 11, 275, 275, 275, 275, 275, 275,
511 275, 274, 274, 274, 274, 274, 274, 274, 274, 274,
512 274, 274, 274, 274, 274, 11, 275, 275, 275, 275,
513 275, 275, 274, 274, 274, 274, 274, 274, 274, 274,
514 274, 274, 274, 11, 276, 11, 274, 11, 277, 274,
515 275, 274, 275, 275, 275, 275, 275, 274, 274, 274,
516 274, 274, 274, 274, 274, 274, 274, 274, 274, 274,
517
518 275, 275, 275, 275, 275, 275, 274, 274, 274, 274,
519 274, 274, 274, 274, 274, 274, 275, 275, 275, 275,
520 275, 275, 274, 274, 274, 274, 274, 274, 274, 274,
521 274, 274, 274, 275, 275, 275, 275, 275, 275, 274,
522 274, 274, 274, 274, 274, 274, 274, 274, 274, 274,
523 275, 274, 274, 274, 275, 275, 275, 275, 274, 274,
524 274, 274, 274, 274, 274, 274, 274, 274, 274, 274,
525 275, 274, 275, 275, 275, 275, 274, 274, 274, 274,
526 274, 274, 274, 274, 274, 275, 275, 275, 275, 275,
527 274, 274, 274, 274, 274, 274, 274, 274, 275, 275,
528
529 274, 274, 275, 275, 274, 274, 274, 274, 274, 274,
530 274, 274, 275, 275, 275, 274, 274, 274, 274, 274,
531 274, 274, 274, 274, 274, 274, 275, 275, 275, 274,
532 274, 274, 274, 274, 274, 274, 274, 274, 274, 275,
533 275, 274, 274, 274, 274, 274, 274, 275, 275, 274,
534 274, 274, 274, 274, 274, 274, 274, 274, 275, 275,
535 274, 274, 274, 274, 274, 274, 274, 274, 275, 274,
536 274, 274, 274, 0, 274, 274, 274
537 } ;
538
539static yyconst flex_int16_t yy_nxt[667] =
540 { 0,
541 8, 8, 9, 8, 8, 8, 10, 8, 11, 11,
542 12, 13, 12, 14, 15, 12, 16, 12, 17, 12,
543 12, 8, 18, 19, 8, 20, 21, 22, 8, 8,
544 8, 8, 8, 23, 8, 8, 24, 8, 25, 26,
545 8, 8, 8, 8, 27, 28, 29, 74, 74, 94,
546 74, 74, 94, 74, 74, 95, 94, 77, 95, 76,
547 76, 127, 95, 100, 100, 100, 256, 255, 254, 247,
548 246, 128, 245, 244, 77, 243, 242, 237, 236, 235,
549 30, 31, 31, 32, 31, 31, 31, 33, 31, 34,
550 34, 35, 36, 35, 37, 38, 35, 39, 35, 40,
551
552 35, 41, 31, 42, 43, 31, 44, 45, 46, 31,
553 31, 31, 31, 31, 47, 31, 31, 48, 31, 49,
554 50, 31, 31, 31, 31, 51, 52, 53, 53, 54,
555 53, 53, 53, 55, 53, 56, 56, 57, 58, 57,
556 59, 60, 57, 61, 57, 62, 57, 57, 53, 63,
557 64, 53, 65, 66, 67, 53, 53, 53, 53, 53,
558 68, 53, 53, 69, 53, 70, 71, 53, 53, 53,
559 53, 72, 73, 75, 75, 76, 80, 77, 76, 76,
560 78, 78, 80, 80, 80, 80, 80, 98, 80, 234,
561 80, 80, 233, 80, 77, 80, 80, 80, 230, 79,
562
563 80, 80, 226, 86, 100, 101, 101, 80, 80, 80,
564 87, 86, 80, 94, 83, 86, 85, 82, 84, 95,
565 80, 99, 83, 82, 82, 82, 82, 82, 85, 82,
566 84, 82, 82, 87, 82, 84, 82, 82, 82, 83,
567 80, 82, 82, 85, 87, 80, 80, 80, 82, 82,
568 82, 80, 80, 82, 80, 98, 100, 101, 101, 80,
569 80, 82, 80, 225, 222, 80, 221, 80, 220, 80,
570 104, 80, 219, 80, 218, 80, 212, 102, 103, 80,
571 211, 82, 122, 80, 106, 80, 82, 82, 82, 99,
572 105, 119, 82, 82, 117, 82, 118, 120, 134, 80,
573
574 82, 82, 135, 82, 136, 137, 82, 121, 82, 155,
575 82, 138, 82, 139, 82, 80, 82, 152, 152, 153,
576 82, 80, 80, 80, 82, 80, 82, 151, 165, 165,
577 165, 152, 152, 152, 152, 152, 153, 80, 80, 80,
578 82, 158, 80, 156, 80, 174, 80, 80, 166, 165,
579 165, 165, 80, 175, 171, 187, 82, 201, 186, 80,
580 154, 157, 82, 82, 82, 173, 82, 80, 80, 166,
581 80, 80, 80, 188, 172, 176, 201, 154, 82, 82,
582 82, 189, 216, 82, 190, 82, 80, 82, 82, 80,
583 200, 203, 213, 82, 214, 199, 80, 216, 202, 80,
584
585 82, 204, 223, 223, 223, 227, 238, 80, 82, 82,
586 228, 82, 82, 82, 231, 231, 231, 202, 80, 238,
587 215, 80, 224, 217, 223, 223, 223, 82, 210, 80,
588 82, 229, 241, 240, 232, 80, 209, 82, 217, 80,
589 82, 231, 231, 231, 224, 248, 208, 239, 82, 250,
590 250, 250, 252, 252, 252, 257, 257, 257, 267, 82,
591 239, 232, 82, 207, 267, 259, 206, 249, 80, 251,
592 82, 205, 253, 260, 198, 258, 82, 250, 250, 250,
593 82, 252, 252, 252, 261, 261, 261, 263, 263, 263,
594 265, 265, 265, 257, 257, 257, 197, 251, 269, 268,
595
596 196, 253, 195, 194, 262, 268, 193, 264, 192, 82,
597 266, 191, 185, 258, 261, 261, 261, 263, 263, 263,
598 265, 265, 265, 270, 270, 271, 270, 270, 270, 270,
599 270, 271, 184, 183, 262, 182, 181, 264, 180, 179,
600 266, 178, 177, 170, 169, 168, 167, 164, 163, 162,
601 161, 160, 159, 150, 149, 148, 147, 146, 145, 144,
602 143, 142, 141, 140, 133, 132, 272, 131, 130, 273,
603 129, 126, 272, 81, 125, 124, 81, 81, 75, 75,
604 123, 75, 79, 79, 79, 116, 79, 115, 114, 113,
605 112, 111, 110, 109, 108, 107, 96, 93, 92, 91,
606
607 90, 89, 88, 96, 93, 92, 91, 90, 89, 88,
608 97, 96, 93, 92, 91, 90, 89, 88, 274, 7,
609 274, 274, 274, 274, 274, 274, 274, 274, 274, 274,
610 274, 274, 274, 274, 274, 274, 274, 274, 274, 274,
611 274, 274, 274, 274, 274, 274, 274, 274, 274, 274,
612 274, 274, 274, 274, 274, 274, 274, 274, 274, 274,
613 274, 274, 274, 274, 274, 274
614 } ;
615
616static yyconst flex_int16_t yy_chk[667] =
617 { 0,
618 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
619 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
620 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
621 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
622 1, 1, 1, 1, 1, 1, 2, 10, 10, 25,
623 33, 33, 49, 55, 55, 25, 70, 79, 49, 76,
624 76, 111, 70, 100, 100, 100, 246, 245, 244, 237,
625 236, 111, 235, 234, 79, 233, 230, 226, 225, 222,
626 2, 3, 3, 3, 3, 3, 3, 3, 3, 3,
627 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
628
629 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
630 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
631 3, 3, 3, 3, 3, 3, 3, 5, 5, 5,
632 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
633 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
634 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
635 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
636 5, 5, 5, 11, 11, 11, 12, 11, 11, 11,
637 11, 11, 13, 16, 14, 15, 17, 30, 35, 221,
638 36, 39, 220, 57, 11, 61, 37, 38, 218, 11,
639
640 41, 59, 212, 16, 41, 41, 41, 58, 80, 40,
641 17, 39, 60, 30, 13, 61, 15, 12, 14, 30,
642 62, 30, 36, 13, 16, 14, 15, 17, 38, 35,
643 37, 36, 39, 40, 57, 59, 61, 37, 38, 58,
644 81, 41, 59, 60, 62, 83, 84, 85, 58, 80,
645 40, 87, 101, 60, 86, 99, 101, 101, 101, 103,
646 102, 62, 106, 211, 209, 119, 208, 104, 207, 118,
647 85, 120, 206, 105, 205, 117, 198, 83, 84, 122,
648 197, 81, 106, 121, 87, 136, 83, 84, 85, 99,
649 86, 104, 87, 101, 102, 86, 103, 105, 117, 134,
650
651 103, 102, 118, 106, 119, 120, 119, 105, 104, 136,
652 118, 121, 120, 122, 105, 137, 117, 135, 135, 135,
653 122, 139, 138, 151, 121, 156, 136, 134, 146, 146,
654 146, 152, 152, 152, 153, 153, 153, 157, 171, 158,
655 134, 139, 155, 137, 174, 156, 173, 175, 146, 165,
656 165, 165, 176, 157, 151, 173, 137, 188, 171, 186,
657 135, 138, 139, 138, 151, 155, 156, 190, 199, 165,
658 187, 189, 200, 174, 152, 158, 201, 153, 157, 171,
659 158, 175, 204, 155, 176, 174, 214, 173, 175, 203,
660 187, 189, 199, 176, 200, 186, 215, 216, 188, 213,
661
662 186, 190, 210, 210, 210, 213, 227, 229, 190, 199,
663 214, 187, 189, 200, 219, 219, 219, 201, 228, 238,
664 203, 240, 210, 204, 223, 223, 223, 214, 196, 248,
665 203, 215, 229, 228, 219, 241, 195, 215, 216, 249,
666 213, 231, 231, 231, 223, 240, 194, 227, 229, 242,
667 242, 242, 243, 243, 243, 247, 247, 247, 259, 228,
668 238, 231, 240, 193, 267, 248, 192, 241, 260, 242,
669 248, 191, 243, 249, 184, 247, 241, 250, 250, 250,
670 249, 252, 252, 252, 254, 254, 254, 255, 255, 255,
671 256, 256, 256, 257, 257, 257, 183, 250, 260, 259,
672
673 182, 252, 181, 180, 254, 267, 179, 255, 178, 260,
674 256, 177, 170, 257, 261, 261, 261, 263, 263, 263,
675 265, 265, 265, 269, 269, 269, 270, 270, 270, 271,
676 271, 271, 169, 168, 261, 167, 163, 263, 162, 161,
677 265, 160, 159, 150, 149, 148, 147, 145, 144, 143,
678 142, 141, 140, 133, 132, 131, 130, 129, 128, 127,
679 126, 125, 124, 123, 116, 115, 269, 114, 113, 270,
680 112, 110, 271, 275, 109, 108, 275, 275, 276, 276,
681 107, 276, 277, 277, 277, 97, 277, 96, 95, 94,
682 93, 92, 91, 90, 89, 88, 71, 69, 68, 67,
683
684 66, 65, 64, 50, 48, 47, 46, 45, 44, 43,
685 29, 26, 24, 23, 22, 21, 20, 19, 7, 274,
686 274, 274, 274, 274, 274, 274, 274, 274, 274, 274,
687 274, 274, 274, 274, 274, 274, 274, 274, 274, 274,
688 274, 274, 274, 274, 274, 274, 274, 274, 274, 274,
689 274, 274, 274, 274, 274, 274, 274, 274, 274, 274,
690 274, 274, 274, 274, 274, 274
691 } ;
692
693#define YY_TRAILING_MASK 0x2000
694#define YY_TRAILING_HEAD_MASK 0x4000
695#define REJECT \
696{ \
697*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */ \
698yy_cp = yyg->yy_full_match; /* restore poss. backed-over text */ \
699yyg->yy_lp = yyg->yy_full_lp; /* restore orig. accepting pos. */ \
700yyg->yy_state_ptr = yyg->yy_full_state; /* restore orig. state */ \
701yy_current_state = *yyg->yy_state_ptr; /* restore curr. state */ \
702++yyg->yy_lp; \
703goto find_rule; \
704}
705
706#define yymore() yymore_used_but_not_detected
707#define YY_MORE_ADJ 0
708#define YY_RESTORE_YY_MORE_OFFSET
709#line 1 "imp_vrml_v1.l"
710/* $Id$ */
711/*
712 libg3d - 3D object loading library
713
714 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
715
716 This library is free software; you can redistribute it and/or
717 modify it under the terms of the GNU Lesser General Public
718 License as published by the Free Software Foundation; either
719 version 2.1 of the License, or (at your option) any later version.
720
721 This library is distributed in the hope that it will be useful,
722 but WITHOUT ANY WARRANTY; without even the implied warranty of
723 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
724 Lesser General Public License for more details.
725
726 You should have received a copy of the GNU Lesser General Public
727 License along with this library; if not, write to the Free Software
728 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
729*/
730
731
732/* $Id$ */
733/*
734libg3d - 3D object loading library
735Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
736This library is free software; you can redistribute it and/or
737modify it under the terms of the GNU Lesser General Public
738License as published by the Free Software Foundation; either
739version 2.1 of the License, or (at your option) any later version.
740This library is distributed in the hope that it will be useful,
741but WITHOUT ANY WARRANTY; without even the implied warranty of
742MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
743Lesser General Public License for more details.
744You should have received a copy of the GNU Lesser General Public
745License along with this library; if not, write to the Free Software
746Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
747*/
748#define __USE_POSIX 1
749#define _XOPEN_SOURCE 500
750#define _POSIX_C_SOURCE 200112L
751#include <stdio.h>
752#include <string.h>
753#include <locale.h>
754#include <g3d/types.h>
755#include <g3d/material.h>
756#include <g3d/vector.h>
757#if DEBUG > 0
758# define vrml_dump_hier(level, section) g_debug("\\%.*s[%s]", \
759level, " ", section)
760#else
761# define vrml_dump_hier(level, section) /* */
762#endif
763#define VRML_OTYPE_MAT 0x0100
764#define VRML_OTYPE_MAT_AMBIENTCOLOR 0x0101
765#define VRML_OTYPE_MAT_DIFFUSECOLOR 0x0102
766#define VRML_OTYPE_MAT_SPECULARCOLOR 0x0103
767#define VRML_OTYPE_MAT_EMISSIVECOLOR 0x0104
768#define VRML_OTYPE_MAT_SHININESS 0x0105
769#define VRML_OTYPE_MAT_TRANSPARENCY 0x0106
770#define VRML_OTYPE_COORD3 0x0200
771#define VRML_OTYPE_COORD3_POINT 0x0201
772#define VRML_OTYPE_IDXFACESET 0x0300
773#define VRML_OTYPE_IDXFACESET_COORDIDX 0x0301
774#define VRML_OTYPE_IDXFACESET_MATIDX 0x0302
775#define VRML_OTYPE_MTRANS 0x0400
776#define VRML_OTYPE_MTRANS_MATRIX 0x0401
777#line 778 "imp_vrml_v1.c"
778
779#define INITIAL 0
780#define VRMLHEADER 1
781#define COMMENT 2
782
783#ifndef YY_NO_UNISTD_H
784/* Special case for "unistd.h", since it is non-ANSI. We include it way
785 * down here because we want the user's section 1 to have been scanned first.
786 * The user has a chance to override it with an option.
787 */
788#include <unistd.h>
789#endif
790
791#ifndef YY_EXTRA_TYPE
792#define YY_EXTRA_TYPE void *
793#endif
794
795/* Holds the entire state of the reentrant scanner. */
796struct yyguts_t
797 {
798
799 /* User-defined. Not touched by flex. */
800 YY_EXTRA_TYPE yyextra_r;
801
802 /* The rest are the same as the globals declared in the non-reentrant scanner. */
803 FILE *yyin_r, *yyout_r;
804 size_t yy_buffer_stack_top; /**< index of top of stack. */
805 size_t yy_buffer_stack_max; /**< capacity of stack. */
806 YY_BUFFER_STATE * yy_buffer_stack; /**< Stack as an array. */
807 char yy_hold_char;
808 int yy_n_chars;
809 int yyleng_r;
810 char *yy_c_buf_p;
811 int yy_init;
812 int yy_start;
813 int yy_did_buffer_switch_on_eof;
814 int yy_start_stack_ptr;
815 int yy_start_stack_depth;
816 int *yy_start_stack;
817 yy_state_type yy_last_accepting_state;
818 char* yy_last_accepting_cpos;
819
820 int yylineno_r;
821 int yy_flex_debug_r;
822
823 yy_state_type *yy_state_buf;
824 yy_state_type *yy_state_ptr;
825 char *yy_full_match;
826 int yy_lp;
827
828 /* These are only needed for trailing context rules,
829 * but there's no conditional variable for that yet. */
830 int yy_looking_for_trail_begin;
831 int yy_full_lp;
832 int *yy_full_state;
833
834 char *yytext_r;
835 int yy_more_flag;
836 int yy_more_len;
837
838 }; /* end struct yyguts_t */
839
840static int yy_init_globals (yyscan_t yyscanner );
841
842int vrml_v1_yylex_init (yyscan_t* scanner);
843
844int vrml_v1_yylex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner);
845
846/* Accessor methods to globals.
847 These are made visible to non-reentrant scanners for convenience. */
848
849int vrml_v1_yylex_destroy (yyscan_t yyscanner );
850
851int vrml_v1_yyget_debug (yyscan_t yyscanner );
852
853void vrml_v1_yyset_debug (int debug_flag ,yyscan_t yyscanner );
854
855YY_EXTRA_TYPE vrml_v1_yyget_extra (yyscan_t yyscanner );
856
857void vrml_v1_yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
858
859FILE *vrml_v1_yyget_in (yyscan_t yyscanner );
860
861void vrml_v1_yyset_in (FILE * in_str ,yyscan_t yyscanner );
862
863FILE *vrml_v1_yyget_out (yyscan_t yyscanner );
864
865void vrml_v1_yyset_out (FILE * out_str ,yyscan_t yyscanner );
866
867int vrml_v1_yyget_leng (yyscan_t yyscanner );
868
869char *vrml_v1_yyget_text (yyscan_t yyscanner );
870
871int vrml_v1_yyget_lineno (yyscan_t yyscanner );
872
873void vrml_v1_yyset_lineno (int line_number ,yyscan_t yyscanner );
874
875/* Macros after this point can all be overridden by user definitions in
876 * section 1.
877 */
878
879#ifndef YY_SKIP_YYWRAP
880#ifdef __cplusplus
881extern "C" int vrml_v1_yywrap (yyscan_t yyscanner );
882#else
883extern int vrml_v1_yywrap (yyscan_t yyscanner );
884#endif
885#endif
886
887 static void yyunput (int c,char *buf_ptr ,yyscan_t yyscanner);
888
889#ifndef yytext_ptr
890static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
891#endif
892
893#ifdef YY_NEED_STRLEN
894static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
895#endif
896
897#ifndef YY_NO_INPUT
898
899#ifdef __cplusplus
900static int yyinput (yyscan_t yyscanner );
901#else
902static int input (yyscan_t yyscanner );
903#endif
904
905#endif
906
907/* Amount of stuff to slurp up with each read. */
908#ifndef YY_READ_BUF_SIZE
909#define YY_READ_BUF_SIZE 8192
910#endif
911
912/* Copy whatever the last rule matched to the standard output. */
913#ifndef ECHO
914/* This used to be an fputs(), but since the string might contain NUL's,
915 * we now use fwrite().
916 */
917#define ECHO fwrite( yytext, yyleng, 1, yyout )
918#endif
919
920/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
921 * is returned in "result".
922 */
923#ifndef YY_INPUT
924#define YY_INPUT(buf,result,max_size) \
925 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
926 { \
927 int c = '*'; \
928 size_t n; \
929 for ( n = 0; n < max_size && \
930 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
931 buf[n] = (char) c; \
932 if ( c == '\n' ) \
933 buf[n++] = (char) c; \
934 if ( c == EOF && ferror( yyin ) ) \
935 YY_FATAL_ERROR( "input in flex scanner failed" ); \
936 result = n; \
937 } \
938 else \
939 { \
940 errno=0; \
941 while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
942 { \
943 if( errno != EINTR) \
944 { \
945 YY_FATAL_ERROR( "input in flex scanner failed" ); \
946 break; \
947 } \
948 errno=0; \
949 clearerr(yyin); \
950 } \
951 }\
952\
953
954#endif
955
956/* No semi-colon after return; correct usage is to write "yyterminate();" -
957 * we don't want an extra ';' after the "return" because that will cause
958 * some compilers to complain about unreachable statements.
959 */
960#ifndef yyterminate
961#define yyterminate() return YY_NULL
962#endif
963
964/* Number of entries by which start-condition stack grows. */
965#ifndef YY_START_STACK_INCR
966#define YY_START_STACK_INCR 25
967#endif
968
969/* Report a fatal error. */
970#ifndef YY_FATAL_ERROR
971#define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner)
972#endif
973
974/* end tables serialization structures and prototypes */
975
976/* Default declaration of generated scanner - a define so the user can
977 * easily add parameters.
978 */
979#ifndef YY_DECL
980#define YY_DECL_IS_OURS 1
981
982extern int vrml_v1_yylex (yyscan_t yyscanner);
983
984#define YY_DECL int vrml_v1_yylex (yyscan_t yyscanner)
985#endif /* !YY_DECL */
986
987/* Code executed at the beginning of each rule, after yytext and yyleng
988 * have been set up.
989 */
990#ifndef YY_USER_ACTION
991#define YY_USER_ACTION
992#endif
993
994/* Code executed at the end of each rule. */
995#ifndef YY_BREAK
996#define YY_BREAK break;
997#endif
998
999#define YY_RULE_SETUP \
1000 if ( yyleng > 0 ) \
1001 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
1002 (yytext[yyleng - 1] == '\n'); \
1003 YY_USER_ACTION
1004
1005/** The main scanner function which does all the work.
1006 */
1007YY_DECL
1008{
1009 register yy_state_type yy_current_state;
1010 register char *yy_cp, *yy_bp;
1011 register int yy_act;
1012 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1013
1014#line 86 "imp_vrml_v1.l"
1015
1016 G3DObject *object = NULL;
1017 G3DFace *face;
1018 G3DMaterial *material = NULL;
1019 guint32 level = 0, off, otype = 0, sep_level = 0;
1020 guint32 ohasmtrx = 0;
1021 guint32 faceidx = 0, faceidxbuf[128];
1022 guint32 matidx = 0;
1023 gint32 tmps32, i;
1024 G3DFloat matrix[16];
1025
1026#line 1027 "imp_vrml_v1.c"
1027
1028 if ( !yyg->yy_init )
1029 {
1030 yyg->yy_init = 1;
1031
1032#ifdef YY_USER_INIT
1033 YY_USER_INIT;
1034#endif
1035
1036 /* Create the reject buffer large enough to save one state per allowed character. */
1037 if ( ! yyg->yy_state_buf )
1038 yyg->yy_state_buf = (yy_state_type *)vrml_v1_yyalloc(YY_STATE_BUF_SIZE ,yyscanner);
1039 if ( ! yyg->yy_state_buf )
1040 YY_FATAL_ERROR( "out of dynamic memory in vrml_v1_yylex()" );
1041
1042 if ( ! yyg->yy_start )
1043 yyg->yy_start = 1; /* first start state */
1044
1045 if ( ! yyin )
1046 yyin = stdin;
1047
1048 if ( ! yyout )
1049 yyout = stdout;
1050
1051 if ( ! YY_CURRENT_BUFFER ) {
1052 vrml_v1_yyensure_buffer_stack (yyscanner);
1053 YY_CURRENT_BUFFER_LVALUE =
1054 vrml_v1_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
1055 }
1056
1057 vrml_v1_yy_load_buffer_state(yyscanner );
1058 }
1059
1060 while ( 1 ) /* loops until end-of-file is reached */
1061 {
1062 yy_cp = yyg->yy_c_buf_p;
1063
1064 /* Support of yytext. */
1065 *yy_cp = yyg->yy_hold_char;
1066
1067 /* yy_bp points to the position in yy_ch_buf of the start of
1068 * the current run.
1069 */
1070 yy_bp = yy_cp;
1071
1072 yy_current_state = yyg->yy_start;
1073 yy_current_state += YY_AT_BOL();
1074
1075 yyg->yy_state_ptr = yyg->yy_state_buf;
1076 *yyg->yy_state_ptr++ = yy_current_state;
1077
1078yy_match:
1079 do
1080 {
1081 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
1082 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1083 {
1084 yy_current_state = (int) yy_def[yy_current_state];
1085 if ( yy_current_state >= 275 )
1086 yy_c = yy_meta[(unsigned int) yy_c];
1087 }
1088 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1089 *yyg->yy_state_ptr++ = yy_current_state;
1090 ++yy_cp;
1091 }
1092 while ( yy_base[yy_current_state] != 620 );
1093
1094yy_find_action:
1095 yy_current_state = *--yyg->yy_state_ptr;
1096 yyg->yy_lp = yy_accept[yy_current_state];
1097find_rule: /* we branch to this label when backing up */
1098 for ( ; ; ) /* until we find what rule we matched */
1099 {
1100 if ( yyg->yy_lp && yyg->yy_lp < yy_accept[yy_current_state + 1] )
1101 {
1102 yy_act = yy_acclist[yyg->yy_lp];
1103 if ( yy_act & YY_TRAILING_HEAD_MASK ||
1104 yyg->yy_looking_for_trail_begin )
1105 {
1106 if ( yy_act == yyg->yy_looking_for_trail_begin )
1107 {
1108 yyg->yy_looking_for_trail_begin = 0;
1109 yy_act &= ~YY_TRAILING_HEAD_MASK;
1110 break;
1111 }
1112 }
1113 else if ( yy_act & YY_TRAILING_MASK )
1114 {
1115 yyg->yy_looking_for_trail_begin = yy_act & ~YY_TRAILING_MASK;
1116 yyg->yy_looking_for_trail_begin |= YY_TRAILING_HEAD_MASK;
1117 }
1118 else
1119 {
1120 yyg->yy_full_match = yy_cp;
1121 yyg->yy_full_state = yyg->yy_state_ptr;
1122 yyg->yy_full_lp = yyg->yy_lp;
1123 break;
1124 }
1125 ++yyg->yy_lp;
1126 goto find_rule;
1127 }
1128 --yy_cp;
1129 yy_current_state = *--yyg->yy_state_ptr;
1130 yyg->yy_lp = yy_accept[yy_current_state];
1131 }
1132
1133 YY_DO_BEFORE_ACTION;
1134
1135do_action: /* This label is used only to access EOF actions. */
1136
1137 switch ( yy_act )
1138 { /* beginning of action switch */
1139case 1:
1140YY_RULE_SETUP
1141#line 97 "imp_vrml_v1.l"
1142{
1143 BEGIN COMMENT;
1144}
1145 YY_BREAK
1146case 2:
1147*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1148yyg->yy_c_buf_p = yy_cp = yy_bp + 5;
1149YY_DO_BEFORE_ACTION; /* set up yytext again */
1150YY_RULE_SETUP
1151#line 101 "imp_vrml_v1.l"
1152{
1153 /* magic header */
1154 #if DEBUG > 0
1155 g_debug("VRML: got header");
1156 #endif
1157 BEGIN VRMLHEADER;
1158}
1159 YY_BREAK
1160case 3:
1161YY_RULE_SETUP
1162#line 109 "imp_vrml_v1.l"
1163{
1164 #if DEBUG > 0
1165 g_debug("VRML: version %s", yytext + 1);
1166 #endif
1167}
1168 YY_BREAK
1169case 4:
1170YY_RULE_SETUP
1171#line 115 "imp_vrml_v1.l"
1172/* */
1173 YY_BREAK
1174case 5:
1175/* rule 5 can match eol */
1176YY_RULE_SETUP
1177#line 117 "imp_vrml_v1.l"
1178{
1179 BEGIN INITIAL;
1180}
1181 YY_BREAK
1182case 6:
1183YY_RULE_SETUP
1184#line 121 "imp_vrml_v1.l"
1185{
1186 #if DEBUG > 0
1187 g_debug("COMMENT: %s", yytext);
1188 #endif
1189}
1190 YY_BREAK
1191case 7:
1192/* rule 7 can match eol */
1193YY_RULE_SETUP
1194#line 127 "imp_vrml_v1.l"
1195{
1196 BEGIN INITIAL;
1197}
1198 YY_BREAK
1199case 8:
1200*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1201yyg->yy_c_buf_p = yy_cp = yy_bp + 9;
1202YY_DO_BEFORE_ACTION; /* set up yytext again */
1203YY_RULE_SETUP
1204#line 131 "imp_vrml_v1.l"
1205{
1206 vrml_dump_hier(level, "Separator");
1207 if((object == NULL) || (object->vertex_count == 0))
1208 {
1209 object = g_new0(G3DObject, 1);
1210 ((G3DModel *)yyextra)->objects = g_slist_append(
1211 ((G3DModel *)yyextra)->objects, object);
1212 sep_level = level;
1213 ohasmtrx = 0;
1214 }
1215}
1216 YY_BREAK
1217case 9:
1218/* rule 9 can match eol */
1219*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1220yyg->yy_c_buf_p = yy_cp = yy_bp + 5;
1221YY_DO_BEFORE_ACTION; /* set up yytext again */
1222YY_RULE_SETUP
1223#line 143 "imp_vrml_v1.l"
1224{
1225 vrml_dump_hier(level, "Group");
1226}
1227 YY_BREAK
1228case 10:
1229*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1230yyg->yy_c_buf_p = yy_cp = yy_bp + 8;
1231YY_DO_BEFORE_ACTION; /* set up yytext again */
1232YY_RULE_SETUP
1233#line 147 "imp_vrml_v1.l"
1234{
1235 vrml_dump_hier(level, "Material");
1236 if(object)
1237 {
1238 material = g3d_material_new();
1239 material->name = g_strdup("object material");
1240 object->materials = g_slist_append(object->materials, material);
1241 }
1242 otype = VRML_OTYPE_MAT;
1243}
1244 YY_BREAK
1245case 11:
1246/* rule 11 can match eol */
1247*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1248yyg->yy_c_buf_p = yy_cp = yy_bp + 15;
1249YY_DO_BEFORE_ACTION; /* set up yytext again */
1250YY_RULE_SETUP
1251#line 158 "imp_vrml_v1.l"
1252{
1253 vrml_dump_hier(level, "MatrixTransform");
1254 otype = VRML_OTYPE_MTRANS;
1255}
1256 YY_BREAK
1257case 12:
1258*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1259yyg->yy_c_buf_p = yy_cp = yy_bp + 11;
1260YY_DO_BEFORE_ACTION; /* set up yytext again */
1261YY_RULE_SETUP
1262#line 163 "imp_vrml_v1.l"
1263{
1264 vrml_dump_hier(level, "Coordinate3");
1265 if(!object)
1266 {
1267 object = g_new0(G3DObject, 1);
1268 object->name = g_strdup("VRML 1 object");
1269 ((G3DModel *)yyextra)->objects = g_slist_append(
1270 ((G3DModel *)yyextra)->objects, object);
1271 ohasmtrx = 0;
1272 }
1273 otype = VRML_OTYPE_COORD3;
1274}
1275 YY_BREAK
1276case 13:
1277*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1278yyg->yy_c_buf_p = yy_cp = yy_bp + 14;
1279YY_DO_BEFORE_ACTION; /* set up yytext again */
1280YY_RULE_SETUP
1281#line 176 "imp_vrml_v1.l"
1282{
1283 vrml_dump_hier(level, "IndexedFaceSet");
1284 otype = VRML_OTYPE_IDXFACESET;
1285}
1286 YY_BREAK
1287case 14:
1288*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1289yyg->yy_c_buf_p = yy_cp -= 1;
1290YY_DO_BEFORE_ACTION; /* set up yytext again */
1291YY_RULE_SETUP
1292#line 181 "imp_vrml_v1.l"
1293{
1294 #if DEBUG > 3
1295 g_debug("# (0x%04x) %s", otype, yytext);
1296 #endif
1297 if((otype & 0xFF00) == VRML_OTYPE_MAT)
1298 {
1299 if(object == NULL) continue;
1300 material = g_slist_nth_data(object->materials, matidx);
1301 if(material == NULL)
1302 {
1303 material = g3d_material_new();
1304 material->name = g_strdup_printf("material #%d", matidx);
1305 object->materials = g_slist_append(object->materials, material);
1306 }
1307 matidx ++;
1308 switch(otype)
1309 {
1310 case VRML_OTYPE_MAT_DIFFUSECOLOR:
1311 if(sscanf(yytext, "%f%f%f",
1312 &(material->r), &(material->g), &(material->b)) != 3)
1313 {
1314 #if DEBUG > 0
1315 g_debug("VRML1: failed to get ambient color");
1316 #endif
1317 }
1318 break;
1319
1320 default:
1321 #if DEBUG > 0
1322 g_debug("VRML: unhandled material property: 0x%02x (%s)",
1323 otype, yytext);
1324 #endif
1325 break;
1326 }
1327 }
1328 else if(otype == VRML_OTYPE_COORD3_POINT)
1329 {
1330 off = object->vertex_count;
1331 object->vertex_count ++;
1332 object->vertex_data = g_realloc(object->vertex_data,
1333 object->vertex_count * 3 * sizeof(G3DFloat));
1334
1335 #if DEBUG > 3
1336 g_debug("VRML: object vertex count: %d", object->vertex_count);
1337 #endif
1338
1339 if(sscanf(yytext, "%f%f%f",
1340 &(object->vertex_data[off * 3 + 0]),
1341 &(object->vertex_data[off * 3 + 1]),
1342 &(object->vertex_data[off * 3 + 2])) != 3)
1343 {
1344 g_warning("VRML: failed to read vertex (%s)\n", yytext);
1345 }
1346 else
1347 {
1348 #if DEBUG > 3
1349 if((object->vertex_data[off * 3 + 0] == 0.0) ||
1350 (object->vertex_data[off * 3 + 1] == 0.0) ||
1351 (object->vertex_data[off * 3 + 2] == 0.0))
1352 {
1353 g_debug("VRML1: 0.0: %+2.2f %+2.2f %+2.2f (%s)",
1354 object->vertex_data[off * 3 + 0],
1355 object->vertex_data[off * 3 + 1],
1356 object->vertex_data[off * 3 + 2],
1357 yytext);
1358 }
1359 #endif
1360 if(ohasmtrx)
1361 g3d_vector_transform(
1362 &(object->vertex_data[off * 3 + 0]),
1363 &(object->vertex_data[off * 3 + 1]),
1364 &(object->vertex_data[off * 3 + 2]),
1365 matrix);
1366 }
1367 }
1368 else if(otype == VRML_OTYPE_IDXFACESET_COORDIDX)
1369 {
1370 sscanf(yytext, "%i", &tmps32);
1371 if(tmps32 == -1)
1372 {
1373 if(object == NULL) continue;
1374
1375 face = g_new0(G3DFace, 1);
1376 face->material = material;
1377 if(face->material == NULL)
1378 face->material = g_slist_nth_data(
1379 object->materials, 0);
1380 if(face->material == NULL)
1381 face->material = g_slist_nth_data(
1382 ((G3DModel *)yyextra)->materials, 0);
1383 face->vertex_count = faceidx;
1384 face->vertex_indices = g_new0(guint32, face->vertex_count);
1385 for(i = 0; i < face->vertex_count; i ++)
1386 {
1387 if(faceidxbuf[i] >= object->vertex_count)
1388 {
1389 g_debug("VRML: Face: index %d >= vertex count (%d)",
1390 faceidxbuf[i], object->vertex_count);
1391 }
1392 else
1393 {
1394 face->vertex_indices[i] = faceidxbuf[i];
1395 }
1396 }
1397
1398 if(face->vertex_count >= 3)
1399 object->faces = g_slist_prepend(object->faces, face);
1400 faceidx = 0;
1401 }
1402 else
1403 {
1404 #if DEBUG > 3
1405 if(tmps32 == 0)
1406 g_debug("VRML1: faceidx 0: %s", yytext);
1407 #endif
1408 faceidxbuf[faceidx] = tmps32;
1409 faceidx ++;
1410 }
1411 }
1412 else if(otype == VRML_OTYPE_IDXFACESET_MATIDX)
1413 {
1414 i = atoi(yytext);
1415 #if DEBUG > 3
1416 g_debug("VRML1: looking for object material #%d", i);
1417 #endif
1418 material = g_slist_nth_data(object->materials, i);
1419 if(material)
1420 {
1421 #if DEBUG > 3
1422 g_debug("VRML1: got material to update");
1423 #endif
1424 face = g_slist_nth_data(object->faces, faceidx);
1425 if(face)
1426 {
1427 face->material = material;
1428 #if DEBUG > 1
1429 g_debug("VRML1: updating material of face #%d", faceidx);
1430 #endif
1431 }
1432 }
1433 faceidx ++;
1434 }
1435}
1436 YY_BREAK
1437case 15:
1438/* rule 15 can match eol */
1439YY_RULE_SETUP
1440#line 325 "imp_vrml_v1.l"
1441{
1442 if(otype == VRML_OTYPE_MTRANS_MATRIX)
1443 {
1444 if(sscanf(yytext, "%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f",
1445 &matrix[0 * 4 + 0],
1446 &matrix[0 * 4 + 1],
1447 &matrix[0 * 4 + 2],
1448 &matrix[0 * 4 + 3],
1449
1450 &matrix[1 * 4 + 0],
1451 &matrix[1 * 4 + 1],
1452 &matrix[1 * 4 + 2],
1453 &matrix[1 * 4 + 3],
1454
1455 &matrix[2 * 4 + 0],
1456 &matrix[2 * 4 + 1],
1457 &matrix[2 * 4 + 2],
1458 &matrix[2 * 4 + 3],
1459
1460 &matrix[3 * 4 + 0],
1461 &matrix[3 * 4 + 1],
1462 &matrix[3 * 4 + 2],
1463 &matrix[3 * 4 + 3]) != 16)
1464 {
1465 g_warning("VRML: failed to read matrix line (%s)", yytext);
1466 }
1467 }
1468}
1469 YY_BREAK
1470case 16:
1471/* rule 16 can match eol */
1472*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1473yyg->yy_c_buf_p = yy_cp = yy_bp + 12;
1474YY_DO_BEFORE_ACTION; /* set up yytext again */
1475YY_RULE_SETUP
1476#line 354 "imp_vrml_v1.l"
1477{
1478 otype = VRML_OTYPE_MAT_AMBIENTCOLOR;
1479}
1480 YY_BREAK
1481case 17:
1482/* rule 17 can match eol */
1483*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1484yyg->yy_c_buf_p = yy_cp = yy_bp + 12;
1485YY_DO_BEFORE_ACTION; /* set up yytext again */
1486YY_RULE_SETUP
1487#line 358 "imp_vrml_v1.l"
1488{
1489 otype = VRML_OTYPE_MAT_DIFFUSECOLOR;
1490}
1491 YY_BREAK
1492case 18:
1493/* rule 18 can match eol */
1494*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1495yyg->yy_c_buf_p = yy_cp = yy_bp + 13;
1496YY_DO_BEFORE_ACTION; /* set up yytext again */
1497YY_RULE_SETUP
1498#line 362 "imp_vrml_v1.l"
1499{
1500 otype = VRML_OTYPE_MAT_SPECULARCOLOR;
1501}
1502 YY_BREAK
1503case 19:
1504/* rule 19 can match eol */
1505*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1506yyg->yy_c_buf_p = yy_cp = yy_bp + 13;
1507YY_DO_BEFORE_ACTION; /* set up yytext again */
1508YY_RULE_SETUP
1509#line 366 "imp_vrml_v1.l"
1510{
1511 otype = VRML_OTYPE_MAT_EMISSIVECOLOR;
1512}
1513 YY_BREAK
1514case 20:
1515/* rule 20 can match eol */
1516*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1517yyg->yy_c_buf_p = yy_cp = yy_bp + 9;
1518YY_DO_BEFORE_ACTION; /* set up yytext again */
1519YY_RULE_SETUP
1520#line 370 "imp_vrml_v1.l"
1521{
1522 otype = VRML_OTYPE_MAT_SHININESS;
1523}
1524 YY_BREAK
1525case 21:
1526/* rule 21 can match eol */
1527*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1528yyg->yy_c_buf_p = yy_cp = yy_bp + 12;
1529YY_DO_BEFORE_ACTION; /* set up yytext again */
1530YY_RULE_SETUP
1531#line 374 "imp_vrml_v1.l"
1532{
1533 otype = VRML_OTYPE_MAT_TRANSPARENCY;
1534}
1535 YY_BREAK
1536case 22:
1537/* rule 22 can match eol */
1538*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1539yyg->yy_c_buf_p = yy_cp = yy_bp + 5;
1540YY_DO_BEFORE_ACTION; /* set up yytext again */
1541YY_RULE_SETUP
1542#line 378 "imp_vrml_v1.l"
1543{
1544 otype = VRML_OTYPE_COORD3_POINT;
1545}
1546 YY_BREAK
1547case 23:
1548/* rule 23 can match eol */
1549*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1550yyg->yy_c_buf_p = yy_cp = yy_bp + 10;
1551YY_DO_BEFORE_ACTION; /* set up yytext again */
1552YY_RULE_SETUP
1553#line 382 "imp_vrml_v1.l"
1554{
1555 if(otype == VRML_OTYPE_IDXFACESET)
1556 otype = VRML_OTYPE_IDXFACESET_COORDIDX;
1557}
1558 YY_BREAK
1559case 24:
1560/* rule 24 can match eol */
1561*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1562yyg->yy_c_buf_p = yy_cp = yy_bp + 13;
1563YY_DO_BEFORE_ACTION; /* set up yytext again */
1564YY_RULE_SETUP
1565#line 387 "imp_vrml_v1.l"
1566{
1567 #if DEBUG > 0
1568 g_debug("VRML1: materialIndex");
1569 #endif
1570 /*if(otype == VRML_OTYPE_IDXFACESET)*/
1571 otype = VRML_OTYPE_IDXFACESET_MATIDX;
1572}
1573 YY_BREAK
1574case 25:
1575YY_RULE_SETUP
1576#line 395 "imp_vrml_v1.l"
1577{
1578 if(otype == VRML_OTYPE_MTRANS)
1579 {
1580 otype = VRML_OTYPE_MTRANS_MATRIX;
1581 ohasmtrx = 1;
1582 }
1583}
1584 YY_BREAK
1585case 26:
1586YY_RULE_SETUP
1587#line 403 "imp_vrml_v1.l"
1588{
1589 /* set to parent object */
1590 otype &= 0xFF00;
1591 matidx = 0;
1592 faceidx = 0;
1593}
1594 YY_BREAK
1595case 27:
1596YY_RULE_SETUP
1597#line 410 "imp_vrml_v1.l"
1598{
1599 vrml_dump_hier(level, yytext);
1600}
1601 YY_BREAK
1602case 28:
1603YY_RULE_SETUP
1604#line 414 "imp_vrml_v1.l"
1605{
1606 level ++;
1607}
1608 YY_BREAK
1609case 29:
1610YY_RULE_SETUP
1611#line 418 "imp_vrml_v1.l"
1612{
1613 #if DEBUG > 3
1614 g_debug("}");
1615 #endif
1616 level --;
1617
1618 if(material)
1619 material = NULL;
1620
1621 if(object && (sep_level == level))
1622 {
1623 object = NULL;
1624 }
1625
1626 /* reset object type */
1627 otype = 0x0000;
1628}
1629 YY_BREAK
1630case 30:
1631YY_RULE_SETUP
1632#line 436 "imp_vrml_v1.l"
1633/* */
1634 YY_BREAK
1635case 31:
1636/* rule 31 can match eol */
1637YY_RULE_SETUP
1638#line 437 "imp_vrml_v1.l"
1639/* */
1640 YY_BREAK
1641case YY_STATE_EOF(INITIAL):
1642case YY_STATE_EOF(VRMLHEADER):
1643case YY_STATE_EOF(COMMENT):
1644#line 439 "imp_vrml_v1.l"
1645{
1646 yyterminate();
1647}
1648 YY_BREAK
1649case 32:
1650YY_RULE_SETUP
1651#line 443 "imp_vrml_v1.l"
1652YY_FATAL_ERROR( "flex scanner jammed" );
1653 YY_BREAK
1654#line 1655 "imp_vrml_v1.c"
1655
1656 case YY_END_OF_BUFFER:
1657 {
1658 /* Amount of text matched not including the EOB char. */
1659 int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr) - 1;
1660
1661 /* Undo the effects of YY_DO_BEFORE_ACTION. */
1662 *yy_cp = yyg->yy_hold_char;
1663 YY_RESTORE_YY_MORE_OFFSET
1664
1665 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
1666 {
1667 /* We're scanning a new file or input source. It's
1668 * possible that this happened because the user
1669 * just pointed yyin at a new source and called
1670 * vrml_v1_yylex(). If so, then we have to assure
1671 * consistency between YY_CURRENT_BUFFER and our
1672 * globals. Here is the right place to do so, because
1673 * this is the first action (other than possibly a
1674 * back-up) that will match for the new input source.
1675 */
1676 yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1677 YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
1678 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
1679 }
1680
1681 /* Note that here we test for yy_c_buf_p "<=" to the position
1682 * of the first EOB in the buffer, since yy_c_buf_p will
1683 * already have been incremented past the NUL character
1684 * (since all states make transitions on EOB to the
1685 * end-of-buffer state). Contrast this with the test
1686 * in input().
1687 */
1688 if ( yyg->yy_c_buf_p <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
1689 { /* This was really a NUL. */
1690 yy_state_type yy_next_state;
1691
1692 yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text;
1693
1694 yy_current_state = yy_get_previous_state( yyscanner );
1695
1696 /* Okay, we're now positioned to make the NUL
1697 * transition. We couldn't have
1698 * yy_get_previous_state() go ahead and do it
1699 * for us because it doesn't know how to deal
1700 * with the possibility of jamming (and we don't
1701 * want to build jamming into it because then it
1702 * will run more slowly).
1703 */
1704
1705 yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner);
1706
1707 yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
1708
1709 if ( yy_next_state )
1710 {
1711 /* Consume the NUL. */
1712 yy_cp = ++yyg->yy_c_buf_p;
1713 yy_current_state = yy_next_state;
1714 goto yy_match;
1715 }
1716
1717 else
1718 {
1719 yy_cp = yyg->yy_c_buf_p;
1720 goto yy_find_action;
1721 }
1722 }
1723
1724 else switch ( yy_get_next_buffer( yyscanner ) )
1725 {
1726 case EOB_ACT_END_OF_FILE:
1727 {
1728 yyg->yy_did_buffer_switch_on_eof = 0;
1729
1730 if ( vrml_v1_yywrap(yyscanner ) )
1731 {
1732 /* Note: because we've taken care in
1733 * yy_get_next_buffer() to have set up
1734 * yytext, we can now set up
1735 * yy_c_buf_p so that if some total
1736 * hoser (like flex itself) wants to
1737 * call the scanner after we return the
1738 * YY_NULL, it'll still work - another
1739 * YY_NULL will get returned.
1740 */
1741 yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ;
1742
1743 yy_act = YY_STATE_EOF(YY_START);
1744 goto do_action;
1745 }
1746
1747 else
1748 {
1749 if ( ! yyg->yy_did_buffer_switch_on_eof )
1750 YY_NEW_FILE;
1751 }
1752 break;
1753 }
1754
1755 case EOB_ACT_CONTINUE_SCAN:
1756 yyg->yy_c_buf_p =
1757 yyg->yytext_ptr + yy_amount_of_matched_text;
1758
1759 yy_current_state = yy_get_previous_state( yyscanner );
1760
1761 yy_cp = yyg->yy_c_buf_p;
1762 yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
1763 goto yy_match;
1764
1765 case EOB_ACT_LAST_MATCH:
1766 yyg->yy_c_buf_p =
1767 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars];
1768
1769 yy_current_state = yy_get_previous_state( yyscanner );
1770
1771 yy_cp = yyg->yy_c_buf_p;
1772 yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
1773 goto yy_find_action;
1774 }
1775 break;
1776 }
1777
1778 default:
1779 YY_FATAL_ERROR(
1780 "fatal flex scanner internal error--no action found" );
1781 } /* end of action switch */
1782 } /* end of scanning one token */
1783} /* end of vrml_v1_yylex */
1784
1785/* yy_get_next_buffer - try to read in a new buffer
1786 *
1787 * Returns a code representing an action:
1788 * EOB_ACT_LAST_MATCH -
1789 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
1790 * EOB_ACT_END_OF_FILE - end of file
1791 */
1792static int yy_get_next_buffer (yyscan_t yyscanner)
1793{
1794 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1795 register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
1796 register char *source = yyg->yytext_ptr;
1797 register int number_to_move, i;
1798 int ret_val;
1799
1800 if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] )
1801 YY_FATAL_ERROR(
1802 "fatal flex scanner internal error--end of buffer missed" );
1803
1804 if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
1805 { /* Don't try to fill the buffer, so this is an EOF. */
1806 if ( yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1 )
1807 {
1808 /* We matched a single character, the EOB, so
1809 * treat this as a final EOF.
1810 */
1811 return EOB_ACT_END_OF_FILE;
1812 }
1813
1814 else
1815 {
1816 /* We matched some text prior to the EOB, first
1817 * process it.
1818 */
1819 return EOB_ACT_LAST_MATCH;
1820 }
1821 }
1822
1823 /* Try to read more data. */
1824
1825 /* First move last chars to start of buffer. */
1826 number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr) - 1;
1827
1828 for ( i = 0; i < number_to_move; ++i )
1829 *(dest++) = *(source++);
1830
1831 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1832 /* don't do the read, it's not guaranteed to return an EOF,
1833 * just force an EOF
1834 */
1835 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars = 0;
1836
1837 else
1838 {
1839 int num_to_read =
1840 YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
1841
1842 while ( num_to_read <= 0 )
1843 { /* Not enough room in the buffer - grow it. */
1844
1845 YY_FATAL_ERROR(
1846"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
1847
1848 }
1849
1850 if ( num_to_read > YY_READ_BUF_SIZE )
1851 num_to_read = YY_READ_BUF_SIZE;
1852
1853 /* Read in more data. */
1854 YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
1855 yyg->yy_n_chars, (size_t) num_to_read );
1856
1857 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
1858 }
1859
1860 if ( yyg->yy_n_chars == 0 )
1861 {
1862 if ( number_to_move == YY_MORE_ADJ )
1863 {
1864 ret_val = EOB_ACT_END_OF_FILE;
1865 vrml_v1_yyrestart(yyin ,yyscanner);
1866 }
1867
1868 else
1869 {
1870 ret_val = EOB_ACT_LAST_MATCH;
1871 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
1872 YY_BUFFER_EOF_PENDING;
1873 }
1874 }
1875
1876 else
1877 ret_val = EOB_ACT_CONTINUE_SCAN;
1878
1879 if ((yy_size_t) (yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
1880 /* Extend the array by 50%, plus the number we really need. */
1881 yy_size_t new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1);
1882 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) vrml_v1_yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ,yyscanner );
1883 if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1884 YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
1885 }
1886
1887 yyg->yy_n_chars += number_to_move;
1888 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR;
1889 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
1890
1891 yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
1892
1893 return ret_val;
1894}
1895
1896/* yy_get_previous_state - get the state just before the EOB char was reached */
1897
1898 static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
1899{
1900 register yy_state_type yy_current_state;
1901 register char *yy_cp;
1902 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1903
1904 yy_current_state = yyg->yy_start;
1905 yy_current_state += YY_AT_BOL();
1906
1907 yyg->yy_state_ptr = yyg->yy_state_buf;
1908 *yyg->yy_state_ptr++ = yy_current_state;
1909
1910 for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
1911 {
1912 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1913 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1914 {
1915 yy_current_state = (int) yy_def[yy_current_state];
1916 if ( yy_current_state >= 275 )
1917 yy_c = yy_meta[(unsigned int) yy_c];
1918 }
1919 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1920 *yyg->yy_state_ptr++ = yy_current_state;
1921 }
1922
1923 return yy_current_state;
1924}
1925
1926/* yy_try_NUL_trans - try to make a transition on the NUL character
1927 *
1928 * synopsis
1929 * next_state = yy_try_NUL_trans( current_state );
1930 */
1931 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner)
1932{
1933 register int yy_is_jam;
1934 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */
1935
1936 register YY_CHAR yy_c = 1;
1937 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1938 {
1939 yy_current_state = (int) yy_def[yy_current_state];
1940 if ( yy_current_state >= 275 )
1941 yy_c = yy_meta[(unsigned int) yy_c];
1942 }
1943 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1944 yy_is_jam = (yy_current_state == 274);
1945 if ( ! yy_is_jam )
1946 *yyg->yy_state_ptr++ = yy_current_state;
1947
1948 return yy_is_jam ? 0 : yy_current_state;
1949}
1950
1951 static void yyunput (int c, register char * yy_bp , yyscan_t yyscanner)
1952{
1953 register char *yy_cp;
1954 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1955
1956 yy_cp = yyg->yy_c_buf_p;
1957
1958 /* undo effects of setting up yytext */
1959 *yy_cp = yyg->yy_hold_char;
1960
1961 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
1962 { /* need to shift things up to make room */
1963 /* +2 for EOB chars. */
1964 register int number_to_move = yyg->yy_n_chars + 2;
1965 register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
1966 YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
1967 register char *source =
1968 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
1969
1970 while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1971 *--dest = *--source;
1972
1973 yy_cp += (int) (dest - source);
1974 yy_bp += (int) (dest - source);
1975 YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
1976 yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
1977
1978 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
1979 YY_FATAL_ERROR( "flex scanner push-back overflow" );
1980 }
1981
1982 *--yy_cp = (char) c;
1983
1984 yyg->yytext_ptr = yy_bp;
1985 yyg->yy_hold_char = *yy_cp;
1986 yyg->yy_c_buf_p = yy_cp;
1987}
1988
1989#ifndef YY_NO_INPUT
1990#ifdef __cplusplus
1991 static int yyinput (yyscan_t yyscanner)
1992#else
1993 static int input (yyscan_t yyscanner)
1994#endif
1995
1996{
1997 int c;
1998 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1999
2000 *yyg->yy_c_buf_p = yyg->yy_hold_char;
2001
2002 if ( *yyg->yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
2003 {
2004 /* yy_c_buf_p now points to the character we want to return.
2005 * If this occurs *before* the EOB characters, then it's a
2006 * valid NUL; if not, then we've hit the end of the buffer.
2007 */
2008 if ( yyg->yy_c_buf_p < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
2009 /* This was really a NUL. */
2010 *yyg->yy_c_buf_p = '\0';
2011
2012 else
2013 { /* need more input */
2014 int offset = yyg->yy_c_buf_p - yyg->yytext_ptr;
2015 ++yyg->yy_c_buf_p;
2016
2017 switch ( yy_get_next_buffer( yyscanner ) )
2018 {
2019 case EOB_ACT_LAST_MATCH:
2020 /* This happens because yy_g_n_b()
2021 * sees that we've accumulated a
2022 * token and flags that we need to
2023 * try matching the token before
2024 * proceeding. But for input(),
2025 * there's no matching to consider.
2026 * So convert the EOB_ACT_LAST_MATCH
2027 * to EOB_ACT_END_OF_FILE.
2028 */
2029
2030 /* Reset buffer status. */
2031 vrml_v1_yyrestart(yyin ,yyscanner);
2032
2033 /*FALLTHROUGH*/
2034
2035 case EOB_ACT_END_OF_FILE:
2036 {
2037 if ( vrml_v1_yywrap(yyscanner ) )
2038 return EOF;
2039
2040 if ( ! yyg->yy_did_buffer_switch_on_eof )
2041 YY_NEW_FILE;
2042#ifdef __cplusplus
2043 return yyinput(yyscanner);
2044#else
2045 return input(yyscanner);
2046#endif
2047 }
2048
2049 case EOB_ACT_CONTINUE_SCAN:
2050 yyg->yy_c_buf_p = yyg->yytext_ptr + offset;
2051 break;
2052 }
2053 }
2054 }
2055
2056 c = *(unsigned char *) yyg->yy_c_buf_p; /* cast for 8-bit char's */
2057 *yyg->yy_c_buf_p = '\0'; /* preserve yytext */
2058 yyg->yy_hold_char = *++yyg->yy_c_buf_p;
2059
2060 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n');
2061
2062 return c;
2063}
2064#endif /* ifndef YY_NO_INPUT */
2065
2066/** Immediately switch to a different input stream.
2067 * @param input_file A readable stream.
2068 * @param yyscanner The scanner object.
2069 * @note This function does not reset the start condition to @c INITIAL .
2070 */
2071 void vrml_v1_yyrestart (FILE * input_file , yyscan_t yyscanner)
2072{
2073 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2074
2075 if ( ! YY_CURRENT_BUFFER ){
2076 vrml_v1_yyensure_buffer_stack (yyscanner);
2077 YY_CURRENT_BUFFER_LVALUE =
2078 vrml_v1_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
2079 }
2080
2081 vrml_v1_yy_init_buffer(YY_CURRENT_BUFFER,input_file ,yyscanner);
2082 vrml_v1_yy_load_buffer_state(yyscanner );
2083}
2084
2085/** Switch to a different input buffer.
2086 * @param new_buffer The new input buffer.
2087 * @param yyscanner The scanner object.
2088 */
2089 void vrml_v1_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
2090{
2091 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2092
2093 /* TODO. We should be able to replace this entire function body
2094 * with
2095 * vrml_v1_yypop_buffer_state();
2096 * vrml_v1_yypush_buffer_state(new_buffer);
2097 */
2098 vrml_v1_yyensure_buffer_stack (yyscanner);
2099 if ( YY_CURRENT_BUFFER == new_buffer )
2100 return;
2101
2102 if ( YY_CURRENT_BUFFER )
2103 {
2104 /* Flush out information for old buffer. */
2105 *yyg->yy_c_buf_p = yyg->yy_hold_char;
2106 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
2107 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
2108 }
2109
2110 YY_CURRENT_BUFFER_LVALUE = new_buffer;
2111 vrml_v1_yy_load_buffer_state(yyscanner );
2112
2113 /* We don't actually know whether we did this switch during
2114 * EOF (vrml_v1_yywrap()) processing, but the only time this flag
2115 * is looked at is after vrml_v1_yywrap() is called, so it's safe
2116 * to go ahead and always set it.
2117 */
2118 yyg->yy_did_buffer_switch_on_eof = 1;
2119}
2120
2121static void vrml_v1_yy_load_buffer_state (yyscan_t yyscanner)
2122{
2123 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2124 yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
2125 yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
2126 yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
2127 yyg->yy_hold_char = *yyg->yy_c_buf_p;
2128}
2129
2130/** Allocate and initialize an input buffer state.
2131 * @param file A readable stream.
2132 * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
2133 * @param yyscanner The scanner object.
2134 * @return the allocated buffer state.
2135 */
2136 YY_BUFFER_STATE vrml_v1_yy_create_buffer (FILE * file, int size , yyscan_t yyscanner)
2137{
2138 YY_BUFFER_STATE b;
2139
2140 b = (YY_BUFFER_STATE) vrml_v1_yyalloc(sizeof( struct yy_buffer_state ) ,yyscanner );
2141 if ( ! b )
2142 YY_FATAL_ERROR( "out of dynamic memory in vrml_v1_yy_create_buffer()" );
2143
2144 b->yy_buf_size = size;
2145
2146 /* yy_ch_buf has to be 2 characters longer than the size given because
2147 * we need to put in 2 end-of-buffer characters.
2148 */
2149 b->yy_ch_buf = (char *) vrml_v1_yyalloc(b->yy_buf_size + 2 ,yyscanner );
2150 if ( ! b->yy_ch_buf )
2151 YY_FATAL_ERROR( "out of dynamic memory in vrml_v1_yy_create_buffer()" );
2152
2153 b->yy_is_our_buffer = 1;
2154
2155 vrml_v1_yy_init_buffer(b,file ,yyscanner);
2156
2157 return b;
2158}
2159
2160/** Destroy the buffer.
2161 * @param b a buffer created with vrml_v1_yy_create_buffer()
2162 * @param yyscanner The scanner object.
2163 */
2164 void vrml_v1_yy_delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
2165{
2166 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2167
2168 if ( ! b )
2169 return;
2170
2171 if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
2172 YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
2173
2174 if ( b->yy_is_our_buffer )
2175 vrml_v1_yyfree((void *) b->yy_ch_buf ,yyscanner );
2176
2177 vrml_v1_yyfree((void *) b ,yyscanner );
2178}
2179
2180#ifndef __cplusplus
2181extern int isatty (int );
2182#endif /* __cplusplus */
2183
2184/* Initializes or reinitializes a buffer.
2185 * This function is sometimes called more than once on the same buffer,
2186 * such as during a vrml_v1_yyrestart() or at EOF.
2187 */
2188 static void vrml_v1_yy_init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner)
2189
2190{
2191 int oerrno = errno;
2192 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2193
2194 vrml_v1_yy_flush_buffer(b ,yyscanner);
2195
2196 b->yy_input_file = file;
2197 b->yy_fill_buffer = 1;
2198
2199 /* If b is the current buffer, then vrml_v1_yy_init_buffer was _probably_
2200 * called from vrml_v1_yyrestart() or through yy_get_next_buffer.
2201 * In that case, we don't want to reset the lineno or column.
2202 */
2203 if (b != YY_CURRENT_BUFFER){
2204 b->yy_bs_lineno = 1;
2205 b->yy_bs_column = 0;
2206 }
2207
2208 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
2209
2210 errno = oerrno;
2211}
2212
2213/** Discard all buffered characters. On the next scan, YY_INPUT will be called.
2214 * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
2215 * @param yyscanner The scanner object.
2216 */
2217 void vrml_v1_yy_flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
2218{
2219 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2220 if ( ! b )
2221 return;
2222
2223 b->yy_n_chars = 0;
2224
2225 /* We always need two end-of-buffer characters. The first causes
2226 * a transition to the end-of-buffer state. The second causes
2227 * a jam in that state.
2228 */
2229 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
2230 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
2231
2232 b->yy_buf_pos = &b->yy_ch_buf[0];
2233
2234 b->yy_at_bol = 1;
2235 b->yy_buffer_status = YY_BUFFER_NEW;
2236
2237 if ( b == YY_CURRENT_BUFFER )
2238 vrml_v1_yy_load_buffer_state(yyscanner );
2239}
2240
2241/** Pushes the new state onto the stack. The new state becomes
2242 * the current state. This function will allocate the stack
2243 * if necessary.
2244 * @param new_buffer The new state.
2245 * @param yyscanner The scanner object.
2246 */
2247void vrml_v1_yypush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
2248{
2249 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2250 if (new_buffer == NULL)
2251 return;
2252
2253 vrml_v1_yyensure_buffer_stack(yyscanner);
2254
2255 /* This block is copied from vrml_v1_yy_switch_to_buffer. */
2256 if ( YY_CURRENT_BUFFER )
2257 {
2258 /* Flush out information for old buffer. */
2259 *yyg->yy_c_buf_p = yyg->yy_hold_char;
2260 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
2261 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
2262 }
2263
2264 /* Only push if top exists. Otherwise, replace top. */
2265 if (YY_CURRENT_BUFFER)
2266 yyg->yy_buffer_stack_top++;
2267 YY_CURRENT_BUFFER_LVALUE = new_buffer;
2268
2269 /* copied from vrml_v1_yy_switch_to_buffer. */
2270 vrml_v1_yy_load_buffer_state(yyscanner );
2271 yyg->yy_did_buffer_switch_on_eof = 1;
2272}
2273
2274/** Removes and deletes the top of the stack, if present.
2275 * The next element becomes the new top.
2276 * @param yyscanner The scanner object.
2277 */
2278void vrml_v1_yypop_buffer_state (yyscan_t yyscanner)
2279{
2280 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2281 if (!YY_CURRENT_BUFFER)
2282 return;
2283
2284 vrml_v1_yy_delete_buffer(YY_CURRENT_BUFFER ,yyscanner);
2285 YY_CURRENT_BUFFER_LVALUE = NULL;
2286 if (yyg->yy_buffer_stack_top > 0)
2287 --yyg->yy_buffer_stack_top;
2288
2289 if (YY_CURRENT_BUFFER) {
2290 vrml_v1_yy_load_buffer_state(yyscanner );
2291 yyg->yy_did_buffer_switch_on_eof = 1;
2292 }
2293}
2294
2295/* Allocates the stack if it does not exist.
2296 * Guarantees space for at least one push.
2297 */
2298static void vrml_v1_yyensure_buffer_stack (yyscan_t yyscanner)
2299{
2300 int num_to_alloc;
2301 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2302
2303 if (!yyg->yy_buffer_stack) {
2304
2305 /* First allocation is just for 2 elements, since we don't know if this
2306 * scanner will even need a stack. We use 2 instead of 1 to avoid an
2307 * immediate realloc on the next call.
2308 */
2309 num_to_alloc = 1;
2310 yyg->yy_buffer_stack = (struct yy_buffer_state**)vrml_v1_yyalloc
2311 (num_to_alloc * sizeof(struct yy_buffer_state*)
2312 , yyscanner);
2313 if ( ! yyg->yy_buffer_stack )
2314 YY_FATAL_ERROR( "out of dynamic memory in vrml_v1_yyensure_buffer_stack()" );
2315
2316 memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state*));
2317
2318 yyg->yy_buffer_stack_max = num_to_alloc;
2319 yyg->yy_buffer_stack_top = 0;
2320 return;
2321 }
2322
2323 if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1){
2324
2325 /* Increase the buffer to prepare for a possible push. */
2326 int grow_size = 8 /* arbitrary grow size */;
2327
2328 num_to_alloc = yyg->yy_buffer_stack_max + grow_size;
2329 yyg->yy_buffer_stack = (struct yy_buffer_state**)vrml_v1_yyrealloc
2330 (yyg->yy_buffer_stack,
2331 num_to_alloc * sizeof(struct yy_buffer_state*)
2332 , yyscanner);
2333 if ( ! yyg->yy_buffer_stack )
2334 YY_FATAL_ERROR( "out of dynamic memory in vrml_v1_yyensure_buffer_stack()" );
2335
2336 /* zero only the new slots.*/
2337 memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size * sizeof(struct yy_buffer_state*));
2338 yyg->yy_buffer_stack_max = num_to_alloc;
2339 }
2340}
2341
2342/** Setup the input buffer state to scan directly from a user-specified character buffer.
2343 * @param base the character buffer
2344 * @param size the size in bytes of the character buffer
2345 * @param yyscanner The scanner object.
2346 * @return the newly allocated buffer state object.
2347 */
2348YY_BUFFER_STATE vrml_v1_yy_scan_buffer (char * base, yy_size_t size , yyscan_t yyscanner)
2349{
2350 YY_BUFFER_STATE b;
2351
2352 if ( size < 2 ||
2353 base[size-2] != YY_END_OF_BUFFER_CHAR ||
2354 base[size-1] != YY_END_OF_BUFFER_CHAR )
2355 /* They forgot to leave room for the EOB's. */
2356 return 0;
2357
2358 b = (YY_BUFFER_STATE) vrml_v1_yyalloc(sizeof( struct yy_buffer_state ) ,yyscanner );
2359 if ( ! b )
2360 YY_FATAL_ERROR( "out of dynamic memory in vrml_v1_yy_scan_buffer()" );
2361
2362 b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
2363 b->yy_buf_pos = b->yy_ch_buf = base;
2364 b->yy_is_our_buffer = 0;
2365 b->yy_input_file = 0;
2366 b->yy_n_chars = b->yy_buf_size;
2367 b->yy_is_interactive = 0;
2368 b->yy_at_bol = 1;
2369 b->yy_fill_buffer = 0;
2370 b->yy_buffer_status = YY_BUFFER_NEW;
2371
2372 vrml_v1_yy_switch_to_buffer(b ,yyscanner );
2373
2374 return b;
2375}
2376
2377/** Setup the input buffer state to scan a string. The next call to vrml_v1_yylex() will
2378 * scan from a @e copy of @a str.
2379 * @param yystr a NUL-terminated string to scan
2380 * @param yyscanner The scanner object.
2381 * @return the newly allocated buffer state object.
2382 * @note If you want to scan bytes that may contain NUL values, then use
2383 * vrml_v1_yy_scan_bytes() instead.
2384 */
2385YY_BUFFER_STATE vrml_v1_yy_scan_string (yyconst char * yystr , yyscan_t yyscanner)
2386{
2387
2388 return vrml_v1_yy_scan_bytes(yystr,strlen(yystr) ,yyscanner);
2389}
2390
2391/** Setup the input buffer state to scan the given bytes. The next call to vrml_v1_yylex() will
2392 * scan from a @e copy of @a bytes.
2393 * @param bytes the byte buffer to scan
2394 * @param len the number of bytes in the buffer pointed to by @a bytes.
2395 * @param yyscanner The scanner object.
2396 * @return the newly allocated buffer state object.
2397 */
2398YY_BUFFER_STATE vrml_v1_yy_scan_bytes (yyconst char * yybytes, int _yybytes_len , yyscan_t yyscanner)
2399{
2400 YY_BUFFER_STATE b;
2401 char *buf;
2402 yy_size_t n;
2403 int i;
2404
2405 /* Get memory for full buffer, including space for trailing EOB's. */
2406 n = _yybytes_len + 2;
2407 buf = (char *) vrml_v1_yyalloc(n ,yyscanner );
2408 if ( ! buf )
2409 YY_FATAL_ERROR( "out of dynamic memory in vrml_v1_yy_scan_bytes()" );
2410
2411 for ( i = 0; i < _yybytes_len; ++i )
2412 buf[i] = yybytes[i];
2413
2414 buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
2415
2416 b = vrml_v1_yy_scan_buffer(buf,n ,yyscanner);
2417 if ( ! b )
2418 YY_FATAL_ERROR( "bad buffer in vrml_v1_yy_scan_bytes()" );
2419
2420 /* It's okay to grow etc. this buffer, and we should throw it
2421 * away when we're done.
2422 */
2423 b->yy_is_our_buffer = 1;
2424
2425 return b;
2426}
2427
2428#ifndef YY_EXIT_FAILURE
2429#define YY_EXIT_FAILURE 2
2430#endif
2431
2432static void yy_fatal_error (yyconst char* msg , yyscan_t yyscanner)
2433{
2434 (void) fprintf( stderr, "%s\n", msg );
2435 exit( YY_EXIT_FAILURE );
2436}
2437
2438/* Redefine yyless() so it works in section 3 code. */
2439
2440#undef yyless
2441#define yyless(n) \
2442 do \
2443 { \
2444 /* Undo effects of setting up yytext. */ \
2445 int yyless_macro_arg = (n); \
2446 YY_LESS_LINENO(yyless_macro_arg);\
2447 yytext[yyleng] = yyg->yy_hold_char; \
2448 yyg->yy_c_buf_p = yytext + yyless_macro_arg; \
2449 yyg->yy_hold_char = *yyg->yy_c_buf_p; \
2450 *yyg->yy_c_buf_p = '\0'; \
2451 yyleng = yyless_macro_arg; \
2452 } \
2453 while ( 0 )
2454
2455/* Accessor methods (get/set functions) to struct members. */
2456
2457/** Get the user-defined data for this scanner.
2458 * @param yyscanner The scanner object.
2459 */
2460YY_EXTRA_TYPE vrml_v1_yyget_extra (yyscan_t yyscanner)
2461{
2462 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2463 return yyextra;
2464}
2465
2466/** Get the current line number.
2467 * @param yyscanner The scanner object.
2468 */
2469int vrml_v1_yyget_lineno (yyscan_t yyscanner)
2470{
2471 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2472
2473 if (! YY_CURRENT_BUFFER)
2474 return 0;
2475
2476 return yylineno;
2477}
2478
2479/** Get the current column number.
2480 * @param yyscanner The scanner object.
2481 */
2482int vrml_v1_yyget_column (yyscan_t yyscanner)
2483{
2484 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2485
2486 if (! YY_CURRENT_BUFFER)
2487 return 0;
2488
2489 return yycolumn;
2490}
2491
2492/** Get the input stream.
2493 * @param yyscanner The scanner object.
2494 */
2495FILE *vrml_v1_yyget_in (yyscan_t yyscanner)
2496{
2497 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2498 return yyin;
2499}
2500
2501/** Get the output stream.
2502 * @param yyscanner The scanner object.
2503 */
2504FILE *vrml_v1_yyget_out (yyscan_t yyscanner)
2505{
2506 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2507 return yyout;
2508}
2509
2510/** Get the length of the current token.
2511 * @param yyscanner The scanner object.
2512 */
2513int vrml_v1_yyget_leng (yyscan_t yyscanner)
2514{
2515 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2516 return yyleng;
2517}
2518
2519/** Get the current token.
2520 * @param yyscanner The scanner object.
2521 */
2522
2523char *vrml_v1_yyget_text (yyscan_t yyscanner)
2524{
2525 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2526 return yytext;
2527}
2528
2529/** Set the user-defined data. This data is never touched by the scanner.
2530 * @param user_defined The data to be associated with this scanner.
2531 * @param yyscanner The scanner object.
2532 */
2533void vrml_v1_yyset_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner)
2534{
2535 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2536 yyextra = user_defined ;
2537}
2538
2539/** Set the current line number.
2540 * @param line_number
2541 * @param yyscanner The scanner object.
2542 */
2543void vrml_v1_yyset_lineno (int line_number , yyscan_t yyscanner)
2544{
2545 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2546
2547 /* lineno is only valid if an input buffer exists. */
2548 if (! YY_CURRENT_BUFFER )
2549 yy_fatal_error( "vrml_v1_yyset_lineno called with no buffer" , yyscanner);
2550
2551 yylineno = line_number;
2552}
2553
2554/** Set the current column.
2555 * @param line_number
2556 * @param yyscanner The scanner object.
2557 */
2558void vrml_v1_yyset_column (int column_no , yyscan_t yyscanner)
2559{
2560 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2561
2562 /* column is only valid if an input buffer exists. */
2563 if (! YY_CURRENT_BUFFER )
2564 yy_fatal_error( "vrml_v1_yyset_column called with no buffer" , yyscanner);
2565
2566 yycolumn = column_no;
2567}
2568
2569/** Set the input stream. This does not discard the current
2570 * input buffer.
2571 * @param in_str A readable stream.
2572 * @param yyscanner The scanner object.
2573 * @see vrml_v1_yy_switch_to_buffer
2574 */
2575void vrml_v1_yyset_in (FILE * in_str , yyscan_t yyscanner)
2576{
2577 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2578 yyin = in_str ;
2579}
2580
2581void vrml_v1_yyset_out (FILE * out_str , yyscan_t yyscanner)
2582{
2583 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2584 yyout = out_str ;
2585}
2586
2587int vrml_v1_yyget_debug (yyscan_t yyscanner)
2588{
2589 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2590 return yy_flex_debug;
2591}
2592
2593void vrml_v1_yyset_debug (int bdebug , yyscan_t yyscanner)
2594{
2595 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2596 yy_flex_debug = bdebug ;
2597}
2598
2599/* Accessor methods for yylval and yylloc */
2600
2601/* User-visible API */
2602
2603/* vrml_v1_yylex_init is special because it creates the scanner itself, so it is
2604 * the ONLY reentrant function that doesn't take the scanner as the last argument.
2605 * That's why we explicitly handle the declaration, instead of using our macros.
2606 */
2607
2608int vrml_v1_yylex_init(yyscan_t* ptr_yy_globals)
2609
2610{
2611 if (ptr_yy_globals == NULL){
2612 errno = EINVAL;
2613 return 1;
2614 }
2615
2616 *ptr_yy_globals = (yyscan_t) vrml_v1_yyalloc ( sizeof( struct yyguts_t ), NULL );
2617
2618 if (*ptr_yy_globals == NULL){
2619 errno = ENOMEM;
2620 return 1;
2621 }
2622
2623 /* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for releases. */
2624 memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));
2625
2626 return yy_init_globals ( *ptr_yy_globals );
2627}
2628
2629/* vrml_v1_yylex_init_extra has the same functionality as vrml_v1_yylex_init, but follows the
2630 * convention of taking the scanner as the last argument. Note however, that
2631 * this is a *pointer* to a scanner, as it will be allocated by this call (and
2632 * is the reason, too, why this function also must handle its own declaration).
2633 * The user defined value in the first argument will be available to vrml_v1_yyalloc in
2634 * the yyextra field.
2635 */
2636
2637int vrml_v1_yylex_init_extra(YY_EXTRA_TYPE yy_user_defined,yyscan_t* ptr_yy_globals )
2638
2639{
2640 struct yyguts_t dummy_yyguts;
2641
2642 vrml_v1_yyset_extra (yy_user_defined, &dummy_yyguts);
2643
2644 if (ptr_yy_globals == NULL){
2645 errno = EINVAL;
2646 return 1;
2647 }
2648
2649 *ptr_yy_globals = (yyscan_t) vrml_v1_yyalloc ( sizeof( struct yyguts_t ), &dummy_yyguts );
2650
2651 if (*ptr_yy_globals == NULL){
2652 errno = ENOMEM;
2653 return 1;
2654 }
2655
2656 /* By setting to 0xAA, we expose bugs in
2657 yy_init_globals. Leave at 0x00 for releases. */
2658 memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));
2659
2660 vrml_v1_yyset_extra (yy_user_defined, *ptr_yy_globals);
2661
2662 return yy_init_globals ( *ptr_yy_globals );
2663}
2664
2665static int yy_init_globals (yyscan_t yyscanner)
2666{
2667 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2668 /* Initialization is the same as for the non-reentrant scanner.
2669 * This function is called from vrml_v1_yylex_destroy(), so don't allocate here.
2670 */
2671
2672 yyg->yy_buffer_stack = 0;
2673 yyg->yy_buffer_stack_top = 0;
2674 yyg->yy_buffer_stack_max = 0;
2675 yyg->yy_c_buf_p = (char *) 0;
2676 yyg->yy_init = 0;
2677 yyg->yy_start = 0;
2678
2679 yyg->yy_start_stack_ptr = 0;
2680 yyg->yy_start_stack_depth = 0;
2681 yyg->yy_start_stack = NULL;
2682
2683 yyg->yy_state_buf = 0;
2684 yyg->yy_state_ptr = 0;
2685 yyg->yy_full_match = 0;
2686 yyg->yy_lp = 0;
2687
2688/* Defined in main.c */
2689#ifdef YY_STDINIT
2690 yyin = stdin;
2691 yyout = stdout;
2692#else
2693 yyin = (FILE *) 0;
2694 yyout = (FILE *) 0;
2695#endif
2696
2697 /* For future reference: Set errno on error, since we are called by
2698 * vrml_v1_yylex_init()
2699 */
2700 return 0;
2701}
2702
2703/* vrml_v1_yylex_destroy is for both reentrant and non-reentrant scanners. */
2704int vrml_v1_yylex_destroy (yyscan_t yyscanner)
2705{
2706 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2707
2708 /* Pop the buffer stack, destroying each element. */
2709 while(YY_CURRENT_BUFFER){
2710 vrml_v1_yy_delete_buffer(YY_CURRENT_BUFFER ,yyscanner );
2711 YY_CURRENT_BUFFER_LVALUE = NULL;
2712 vrml_v1_yypop_buffer_state(yyscanner);
2713 }
2714
2715 /* Destroy the stack itself. */
2716 vrml_v1_yyfree(yyg->yy_buffer_stack ,yyscanner);
2717 yyg->yy_buffer_stack = NULL;
2718
2719 /* Destroy the start condition stack. */
2720 vrml_v1_yyfree(yyg->yy_start_stack ,yyscanner );
2721 yyg->yy_start_stack = NULL;
2722
2723 vrml_v1_yyfree ( yyg->yy_state_buf , yyscanner);
2724 yyg->yy_state_buf = NULL;
2725
2726 /* Reset the globals. This is important in a non-reentrant scanner so the next time
2727 * vrml_v1_yylex() is called, initialization will occur. */
2728 yy_init_globals( yyscanner);
2729
2730 /* Destroy the main struct (reentrant only). */
2731 vrml_v1_yyfree ( yyscanner , yyscanner );
2732 yyscanner = NULL;
2733 return 0;
2734}
2735
2736/*
2737 * Internal utility routines.
2738 */
2739
2740#ifndef yytext_ptr
2741static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner)
2742{
2743 register int i;
2744 for ( i = 0; i < n; ++i )
2745 s1[i] = s2[i];
2746}
2747#endif
2748
2749#ifdef YY_NEED_STRLEN
2750static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner)
2751{
2752 register int n;
2753 for ( n = 0; s[n]; ++n )
2754 ;
2755
2756 return n;
2757}
2758#endif
2759
2760void *vrml_v1_yyalloc (yy_size_t size , yyscan_t yyscanner)
2761{
2762 return (void *) malloc( size );
2763}
2764
2765void *vrml_v1_yyrealloc (void * ptr, yy_size_t size , yyscan_t yyscanner)
2766{
2767 /* The cast to (char *) in the following accommodates both
2768 * implementations that use char* generic pointers, and those
2769 * that use void* generic pointers. It works with the latter
2770 * because both ANSI C and C++ allow castless assignment from
2771 * any pointer type to void*, and deal with argument conversions
2772 * as though doing an assignment.
2773 */
2774 return (void *) realloc( (char *) ptr, size );
2775}
2776
2777void vrml_v1_yyfree (void * ptr , yyscan_t yyscanner)
2778{
2779 free( (char *) ptr ); /* see vrml_v1_yyrealloc() for (char *) cast */
2780}
2781
2782#define YYTABLES_NAME "yytables"
2783
2784#line 443 "imp_vrml_v1.l"
2785
2786
2787
2788
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/imp_vrml_v1.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/imp_vrml_v1.h
new file mode 100644
index 0000000..404f8f6
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/imp_vrml_v1.h
@@ -0,0 +1,356 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef vrml_v1_yyHEADER_H
23#define vrml_v1_yyHEADER_H 1
24#define vrml_v1_yyIN_HEADER 1
25
26#line 6 "imp_vrml_v1.h"
27
28#line 8 "imp_vrml_v1.h"
29
30#define YY_INT_ALIGNED short int
31
32/* A lexical scanner generated by flex */
33
34#define FLEX_SCANNER
35#define YY_FLEX_MAJOR_VERSION 2
36#define YY_FLEX_MINOR_VERSION 5
37#define YY_FLEX_SUBMINOR_VERSION 35
38#if YY_FLEX_SUBMINOR_VERSION > 0
39#define FLEX_BETA
40#endif
41
42/* First, we deal with platform-specific or compiler-specific issues. */
43
44/* begin standard C headers. */
45#include <stdio.h>
46#include <string.h>
47#include <errno.h>
48#include <stdlib.h>
49
50/* end standard C headers. */
51
52/* flex integer type definitions */
53
54#ifndef FLEXINT_H
55#define FLEXINT_H
56
57/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
58
59#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
60
61/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
62 * if you want the limit (max/min) macros for int types.
63 */
64#ifndef __STDC_LIMIT_MACROS
65#define __STDC_LIMIT_MACROS 1
66#endif
67
68#include <inttypes.h>
69typedef int8_t flex_int8_t;
70typedef uint8_t flex_uint8_t;
71typedef int16_t flex_int16_t;
72typedef uint16_t flex_uint16_t;
73typedef int32_t flex_int32_t;
74typedef uint32_t flex_uint32_t;
75#else
76typedef signed char flex_int8_t;
77typedef short int flex_int16_t;
78typedef int flex_int32_t;
79typedef unsigned char flex_uint8_t;
80typedef unsigned short int flex_uint16_t;
81typedef unsigned int flex_uint32_t;
82
83/* Limits of integral types. */
84#ifndef INT8_MIN
85#define INT8_MIN (-128)
86#endif
87#ifndef INT16_MIN
88#define INT16_MIN (-32767-1)
89#endif
90#ifndef INT32_MIN
91#define INT32_MIN (-2147483647-1)
92#endif
93#ifndef INT8_MAX
94#define INT8_MAX (127)
95#endif
96#ifndef INT16_MAX
97#define INT16_MAX (32767)
98#endif
99#ifndef INT32_MAX
100#define INT32_MAX (2147483647)
101#endif
102#ifndef UINT8_MAX
103#define UINT8_MAX (255U)
104#endif
105#ifndef UINT16_MAX
106#define UINT16_MAX (65535U)
107#endif
108#ifndef UINT32_MAX
109#define UINT32_MAX (4294967295U)
110#endif
111
112#endif /* ! C99 */
113
114#endif /* ! FLEXINT_H */
115
116#ifdef __cplusplus
117
118/* The "const" storage-class-modifier is valid. */
119#define YY_USE_CONST
120
121#else /* ! __cplusplus */
122
123/* C99 requires __STDC__ to be defined as 1. */
124#if defined (__STDC__)
125
126#define YY_USE_CONST
127
128#endif /* defined (__STDC__) */
129#endif /* ! __cplusplus */
130
131#ifdef YY_USE_CONST
132#define yyconst const
133#else
134#define yyconst
135#endif
136
137/* An opaque pointer. */
138#ifndef YY_TYPEDEF_YY_SCANNER_T
139#define YY_TYPEDEF_YY_SCANNER_T
140typedef void* yyscan_t;
141#endif
142
143/* For convenience, these vars (plus the bison vars far below)
144 are macros in the reentrant scanner. */
145#define yyin yyg->yyin_r
146#define yyout yyg->yyout_r
147#define yyextra yyg->yyextra_r
148#define yyleng yyg->yyleng_r
149#define yytext yyg->yytext_r
150#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
151#define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
152#define yy_flex_debug yyg->yy_flex_debug_r
153
154/* Size of default input buffer. */
155#ifndef YY_BUF_SIZE
156#define YY_BUF_SIZE 16384
157#endif
158
159#ifndef YY_TYPEDEF_YY_BUFFER_STATE
160#define YY_TYPEDEF_YY_BUFFER_STATE
161typedef struct yy_buffer_state *YY_BUFFER_STATE;
162#endif
163
164#ifndef YY_TYPEDEF_YY_SIZE_T
165#define YY_TYPEDEF_YY_SIZE_T
166typedef size_t yy_size_t;
167#endif
168
169#ifndef YY_STRUCT_YY_BUFFER_STATE
170#define YY_STRUCT_YY_BUFFER_STATE
171struct yy_buffer_state
172 {
173 FILE *yy_input_file;
174
175 char *yy_ch_buf; /* input buffer */
176 char *yy_buf_pos; /* current position in input buffer */
177
178 /* Size of input buffer in bytes, not including room for EOB
179 * characters.
180 */
181 yy_size_t yy_buf_size;
182
183 /* Number of characters read into yy_ch_buf, not including EOB
184 * characters.
185 */
186 int yy_n_chars;
187
188 /* Whether we "own" the buffer - i.e., we know we created it,
189 * and can realloc() it to grow it, and should free() it to
190 * delete it.
191 */
192 int yy_is_our_buffer;
193
194 /* Whether this is an "interactive" input source; if so, and
195 * if we're using stdio for input, then we want to use getc()
196 * instead of fread(), to make sure we stop fetching input after
197 * each newline.
198 */
199 int yy_is_interactive;
200
201 /* Whether we're considered to be at the beginning of a line.
202 * If so, '^' rules will be active on the next match, otherwise
203 * not.
204 */
205 int yy_at_bol;
206
207 int yy_bs_lineno; /**< The line count. */
208 int yy_bs_column; /**< The column count. */
209
210 /* Whether to try to fill the input buffer when we reach the
211 * end of it.
212 */
213 int yy_fill_buffer;
214
215 int yy_buffer_status;
216
217 };
218#endif /* !YY_STRUCT_YY_BUFFER_STATE */
219
220void vrml_v1_yyrestart (FILE *input_file ,yyscan_t yyscanner );
221void vrml_v1_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
222YY_BUFFER_STATE vrml_v1_yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner );
223void vrml_v1_yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
224void vrml_v1_yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
225void vrml_v1_yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
226void vrml_v1_yypop_buffer_state (yyscan_t yyscanner );
227
228YY_BUFFER_STATE vrml_v1_yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
229YY_BUFFER_STATE vrml_v1_yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
230YY_BUFFER_STATE vrml_v1_yy_scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner );
231
232void *vrml_v1_yyalloc (yy_size_t ,yyscan_t yyscanner );
233void *vrml_v1_yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
234void vrml_v1_yyfree (void * ,yyscan_t yyscanner );
235
236/* Begin user sect3 */
237
238#define yytext_ptr yytext_r
239
240#ifdef YY_HEADER_EXPORT_START_CONDITIONS
241#define INITIAL 0
242#define VRMLHEADER 1
243#define COMMENT 2
244
245#endif
246
247#ifndef YY_NO_UNISTD_H
248/* Special case for "unistd.h", since it is non-ANSI. We include it way
249 * down here because we want the user's section 1 to have been scanned first.
250 * The user has a chance to override it with an option.
251 */
252#include <unistd.h>
253#endif
254
255#ifndef YY_EXTRA_TYPE
256#define YY_EXTRA_TYPE void *
257#endif
258
259int vrml_v1_yylex_init (yyscan_t* scanner);
260
261int vrml_v1_yylex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner);
262
263/* Accessor methods to globals.
264 These are made visible to non-reentrant scanners for convenience. */
265
266int vrml_v1_yylex_destroy (yyscan_t yyscanner );
267
268int vrml_v1_yyget_debug (yyscan_t yyscanner );
269
270void vrml_v1_yyset_debug (int debug_flag ,yyscan_t yyscanner );
271
272YY_EXTRA_TYPE vrml_v1_yyget_extra (yyscan_t yyscanner );
273
274void vrml_v1_yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
275
276FILE *vrml_v1_yyget_in (yyscan_t yyscanner );
277
278void vrml_v1_yyset_in (FILE * in_str ,yyscan_t yyscanner );
279
280FILE *vrml_v1_yyget_out (yyscan_t yyscanner );
281
282void vrml_v1_yyset_out (FILE * out_str ,yyscan_t yyscanner );
283
284int vrml_v1_yyget_leng (yyscan_t yyscanner );
285
286char *vrml_v1_yyget_text (yyscan_t yyscanner );
287
288int vrml_v1_yyget_lineno (yyscan_t yyscanner );
289
290void vrml_v1_yyset_lineno (int line_number ,yyscan_t yyscanner );
291
292/* Macros after this point can all be overridden by user definitions in
293 * section 1.
294 */
295
296#ifndef YY_SKIP_YYWRAP
297#ifdef __cplusplus
298extern "C" int vrml_v1_yywrap (yyscan_t yyscanner );
299#else
300extern int vrml_v1_yywrap (yyscan_t yyscanner );
301#endif
302#endif
303
304#ifndef yytext_ptr
305static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
306#endif
307
308#ifdef YY_NEED_STRLEN
309static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
310#endif
311
312#ifndef YY_NO_INPUT
313
314#endif
315
316/* Amount of stuff to slurp up with each read. */
317#ifndef YY_READ_BUF_SIZE
318#define YY_READ_BUF_SIZE 8192
319#endif
320
321/* Number of entries by which start-condition stack grows. */
322#ifndef YY_START_STACK_INCR
323#define YY_START_STACK_INCR 25
324#endif
325
326/* Default declaration of generated scanner - a define so the user can
327 * easily add parameters.
328 */
329#ifndef YY_DECL
330#define YY_DECL_IS_OURS 1
331
332extern int vrml_v1_yylex (yyscan_t yyscanner);
333
334#define YY_DECL int vrml_v1_yylex (yyscan_t yyscanner)
335#endif /* !YY_DECL */
336
337/* yy_get_previous_state - get the state just before the EOB char was reached */
338
339#undef YY_NEW_FILE
340#undef YY_FLUSH_BUFFER
341#undef yy_set_bol
342#undef yy_new_buffer
343#undef yy_set_interactive
344#undef YY_DO_BEFORE_ACTION
345
346#ifdef YY_DECL_IS_OURS
347#undef YY_DECL_IS_OURS
348#undef YY_DECL
349#endif
350
351#line 446 "imp_vrml_v1.l"
352
353
354#line 334 "imp_vrml_v1.h"
355#undef vrml_v1_yyIN_HEADER
356#endif /* vrml_v1_yyHEADER_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/Makefile
new file mode 100644
index 0000000..a0d2345
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/Makefile
@@ -0,0 +1,518 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_vrml2/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_vrml2
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_vrml2_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_vrml2_la_OBJECTS = imp_vrml2.lo imp_vrml_read.lo \
59 imp_vrml2_types.lo
60imp_vrml2_la_OBJECTS = $(am_imp_vrml2_la_OBJECTS)
61#am_imp_vrml2_la_rpath = -rpath $(pluginimpdir)
62DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
63depcomp = $(SHELL) $(top_srcdir)/config/depcomp
64am__depfiles_maybe = depfiles
65COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
66 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
67LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
68 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
69 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
70CCLD = $(CC)
71LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
72 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
73 $(LDFLAGS) -o $@
74SOURCES = $(imp_vrml2_la_SOURCES)
75DIST_SOURCES = $(imp_vrml2_la_SOURCES)
76ETAGS = etags
77CTAGS = ctags
78DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
79ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
80AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
81AR = ar
82AS = as
83AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
84AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
85AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
86AWK = gawk
87CC = gcc
88CCDEPMODE = depmode=gcc3
89CFLAGS = -g -O2
90CPP = gcc -E
91CPPFLAGS =
92CXX = g++
93CXXCPP = g++ -E
94CXXDEPMODE = depmode=gcc3
95CXXFLAGS = -g -O2
96CYGPATH_W = echo
97DBG_CFLAGS = -O2
98DEBUG = 0
99DEFS = -DHAVE_CONFIG_H
100DEPDIR = .deps
101DLLTOOL = dlltool
102ECHO = echo
103ECHO_C =
104ECHO_N = -n
105ECHO_T =
106EGREP = /bin/grep -E
107EXEEXT =
108F77 =
109FFLAGS =
110GDKPIXBUF_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
111GDKPIXBUF_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
112GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
113GLIB_GENMARSHAL = glib-genmarshal
114GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
115GLIB_MKENUMS = glib-mkenums
116GOBJECT_QUERY = gobject-query
117GREP = /bin/grep
118GTKDOC_CHECK = /usr/bin/gtkdoc-check
119GTK_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
120GTK_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
121HTML_DIR = ${datadir}/gtk-doc/html
122INSTALL = /usr/bin/install -c
123INSTALL_DATA = ${INSTALL} -m 644
124INSTALL_PROGRAM = ${INSTALL}
125INSTALL_SCRIPT = ${INSTALL}
126INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
127LDFLAGS =
128LEX = flex
129LEXLIB = -lfl
130LEX_OUTPUT_ROOT = lex.yy
131LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
132LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
133LIBOBJS =
134LIBS = -lm
135LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
136LIBXML2_CFLAGS = -I/usr/include/libxml2
137LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
138LN_S = ln -s
139LTLIBOBJS =
140LTVERSION = 0:8:0
141MAGIC_LIBS = -lmagic
142MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
143MATH_LIBS = -lm
144MKDIR_P = /bin/mkdir -p
145OBJDUMP = objdump
146OBJEXT = o
147PACKAGE = libg3d
148PACKAGE_BUGREPORT =
149PACKAGE_NAME =
150PACKAGE_STRING =
151PACKAGE_TARNAME =
152PACKAGE_VERSION =
153PATH_SEPARATOR = :
154PKG_CONFIG = /usr/bin/pkg-config
155PLUGINS_LDFLAGS = -avoid-version -export-dynamic
156RANLIB = ranlib
157SET_MAKE =
158SHELL = /bin/bash
159STRIP = strip
160VERSION = 0.0.8
161XML2_CONFIG = /usr/bin/xml2-config
162XML_CPPFLAGS = -I/usr/include/libxml2
163XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
164Z_CFLAGS =
165Z_LIBS = -lz
166abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2
167abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2
168abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
170ac_ct_CC = gcc
171ac_ct_CXX = g++
172ac_ct_F77 =
173am__include = include
174am__leading_dot = .
175am__quote =
176am__tar = ${AMTAR} chof - "$$tardir"
177am__untar = ${AMTAR} xf -
178bindir = ${exec_prefix}/bin
179build = x86_64-unknown-linux-gnu
180build_alias =
181build_cpu = x86_64
182build_os = linux-gnu
183build_vendor = unknown
184builddir = .
185datadir = ${datarootdir}
186datarootdir = ${prefix}/share
187docdir = ${datarootdir}/doc/${PACKAGE}
188dvidir = ${docdir}
189exec_prefix = ${prefix}
190host = x86_64-unknown-linux-gnu
191host_alias =
192host_cpu = x86_64
193host_os = linux-gnu
194host_vendor = unknown
195htmldir = ${docdir}
196includedir = ${prefix}/include
197infodir = ${datarootdir}/info
198install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
199libdir = ${exec_prefix}/lib
200libexecdir = ${exec_prefix}/libexec
201localedir = ${datarootdir}/locale
202localstatedir = ${prefix}/var
203mandir = ${datarootdir}/man
204mkdir_p = /bin/mkdir -p
205oldincludedir = /usr/include
206pdfdir = ${docdir}
207prefix = /usr/local
208program_transform_name = s,x,x,
209psdir = ${docdir}
210sbindir = ${exec_prefix}/sbin
211sharedstatedir = ${prefix}/com
212srcdir = .
213sysconfdir = ${prefix}/etc
214target_alias =
215top_builddir = ../../..
216top_srcdir = ../../..
217pluginimpdir = $(pkglibdir)/plugins/import
218#pluginimp_LTLIBRARIES = imp_vrml2.la
219AM_CFLAGS = \
220 -Wall -ansi -pedantic \
221 -DG_LOG_DOMAIN=\"LibG3D\" \
222 -O2 -DDEBUG=0 \
223 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
224
225INCLUDES = -I$(top_srcdir)/include
226AM_LDFLAGS = \
227 -no-undefined -module \
228 -avoid-version -export-dynamic
229
230imp_vrml2_la_SOURCES = imp_vrml2.c imp_vrml2.h \
231 imp_vrml_read.c imp_vrml_read.h \
232 imp_vrml_types.h \
233 imp_vrml2_types.c imp_vrml2_types.h \
234 imp_vrml2_nodes.h
235
236imp_vrml2_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
237all: all-am
238
239.SUFFIXES:
240.SUFFIXES: .c .lo .o .obj
241$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
242 @for dep in $?; do \
243 case '$(am__configure_deps)' in \
244 *$$dep*) \
245 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
246 && exit 0; \
247 exit 1;; \
248 esac; \
249 done; \
250 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_vrml2/Makefile'; \
251 cd $(top_srcdir) && \
252 $(AUTOMAKE) --gnu plugins/import/imp_vrml2/Makefile
253.PRECIOUS: Makefile
254Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
255 @case '$?' in \
256 *config.status*) \
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
258 *) \
259 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
260 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
261 esac;
262
263$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265
266$(top_srcdir)/configure: $(am__configure_deps)
267 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
268$(ACLOCAL_M4): $(am__aclocal_m4_deps)
269 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
270install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
271 @$(NORMAL_INSTALL)
272 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
273 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
274 if test -f $$p; then \
275 f=$(am__strip_dir) \
276 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
277 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
278 else :; fi; \
279 done
280
281uninstall-pluginimpLTLIBRARIES:
282 @$(NORMAL_UNINSTALL)
283 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
284 p=$(am__strip_dir) \
285 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
286 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
287 done
288
289clean-pluginimpLTLIBRARIES:
290 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
291 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
292 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
293 test "$$dir" != "$$p" || dir=.; \
294 echo "rm -f \"$${dir}/so_locations\""; \
295 rm -f "$${dir}/so_locations"; \
296 done
297imp_vrml2.la: $(imp_vrml2_la_OBJECTS) $(imp_vrml2_la_DEPENDENCIES)
298 $(LINK) $(am_imp_vrml2_la_rpath) $(imp_vrml2_la_OBJECTS) $(imp_vrml2_la_LIBADD) $(LIBS)
299
300mostlyclean-compile:
301 -rm -f *.$(OBJEXT)
302
303distclean-compile:
304 -rm -f *.tab.c
305
306include ./$(DEPDIR)/imp_vrml2.Plo
307include ./$(DEPDIR)/imp_vrml2_types.Plo
308include ./$(DEPDIR)/imp_vrml_read.Plo
309
310.c.o:
311 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
312 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
313# source='$<' object='$@' libtool=no \
314# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
315# $(COMPILE) -c $<
316
317.c.obj:
318 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
319 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
320# source='$<' object='$@' libtool=no \
321# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
322# $(COMPILE) -c `$(CYGPATH_W) '$<'`
323
324.c.lo:
325 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
326 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
327# source='$<' object='$@' libtool=yes \
328# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
329# $(LTCOMPILE) -c -o $@ $<
330
331mostlyclean-libtool:
332 -rm -f *.lo
333
334clean-libtool:
335 -rm -rf .libs _libs
336
337ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
338 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
339 unique=`for i in $$list; do \
340 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
341 done | \
342 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
343 END { if (nonempty) { for (i in files) print i; }; }'`; \
344 mkid -fID $$unique
345tags: TAGS
346
347TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
348 $(TAGS_FILES) $(LISP)
349 tags=; \
350 here=`pwd`; \
351 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
352 unique=`for i in $$list; do \
353 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
354 done | \
355 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
356 END { if (nonempty) { for (i in files) print i; }; }'`; \
357 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
358 test -n "$$unique" || unique=$$empty_fix; \
359 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
360 $$tags $$unique; \
361 fi
362ctags: CTAGS
363CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
364 $(TAGS_FILES) $(LISP)
365 tags=; \
366 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
367 unique=`for i in $$list; do \
368 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
369 done | \
370 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
371 END { if (nonempty) { for (i in files) print i; }; }'`; \
372 test -z "$(CTAGS_ARGS)$$tags$$unique" \
373 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
374 $$tags $$unique
375
376GTAGS:
377 here=`$(am__cd) $(top_builddir) && pwd` \
378 && cd $(top_srcdir) \
379 && gtags -i $(GTAGS_ARGS) $$here
380
381distclean-tags:
382 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
383
384distdir: $(DISTFILES)
385 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
386 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
387 list='$(DISTFILES)'; \
388 dist_files=`for file in $$list; do echo $$file; done | \
389 sed -e "s|^$$srcdirstrip/||;t" \
390 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
391 case $$dist_files in \
392 */*) $(MKDIR_P) `echo "$$dist_files" | \
393 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
394 sort -u` ;; \
395 esac; \
396 for file in $$dist_files; do \
397 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
398 if test -d $$d/$$file; then \
399 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
400 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
401 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
402 fi; \
403 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
404 else \
405 test -f $(distdir)/$$file \
406 || cp -p $$d/$$file $(distdir)/$$file \
407 || exit 1; \
408 fi; \
409 done
410check-am: all-am
411check: check-am
412all-am: Makefile $(LTLIBRARIES)
413installdirs:
414 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
415 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
416 done
417install: install-am
418install-exec: install-exec-am
419install-data: install-data-am
420uninstall: uninstall-am
421
422install-am: all-am
423 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
424
425installcheck: installcheck-am
426install-strip:
427 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
428 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
429 `test -z '$(STRIP)' || \
430 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
431mostlyclean-generic:
432
433clean-generic:
434
435distclean-generic:
436 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
437
438maintainer-clean-generic:
439 @echo "This command is intended for maintainers to use"
440 @echo "it deletes files that may require special tools to rebuild."
441clean: clean-am
442
443clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
444 mostlyclean-am
445
446distclean: distclean-am
447 -rm -rf ./$(DEPDIR)
448 -rm -f Makefile
449distclean-am: clean-am distclean-compile distclean-generic \
450 distclean-tags
451
452dvi: dvi-am
453
454dvi-am:
455
456html: html-am
457
458info: info-am
459
460info-am:
461
462install-data-am: install-pluginimpLTLIBRARIES
463
464install-dvi: install-dvi-am
465
466install-exec-am:
467
468install-html: install-html-am
469
470install-info: install-info-am
471
472install-man:
473
474install-pdf: install-pdf-am
475
476install-ps: install-ps-am
477
478installcheck-am:
479
480maintainer-clean: maintainer-clean-am
481 -rm -rf ./$(DEPDIR)
482 -rm -f Makefile
483maintainer-clean-am: distclean-am maintainer-clean-generic
484
485mostlyclean: mostlyclean-am
486
487mostlyclean-am: mostlyclean-compile mostlyclean-generic \
488 mostlyclean-libtool
489
490pdf: pdf-am
491
492pdf-am:
493
494ps: ps-am
495
496ps-am:
497
498uninstall-am: uninstall-pluginimpLTLIBRARIES
499
500.MAKE: install-am install-strip
501
502.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
503 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
504 distclean-compile distclean-generic distclean-libtool \
505 distclean-tags distdir dvi dvi-am html html-am info info-am \
506 install install-am install-data install-data-am install-dvi \
507 install-dvi-am install-exec install-exec-am install-html \
508 install-html-am install-info install-info-am install-man \
509 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
510 install-ps install-ps-am install-strip installcheck \
511 installcheck-am installdirs maintainer-clean \
512 maintainer-clean-generic mostlyclean mostlyclean-compile \
513 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
514 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
515
516# Tell versions [3.59,3.63) of GNU make to not export all variables.
517# Otherwise a system limit (for SysV at least) may be exceeded.
518.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/Makefile.am
new file mode 100644
index 0000000..981cc62
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/Makefile.am
@@ -0,0 +1,26 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if EXPERIMENTAL
4pluginimp_LTLIBRARIES = imp_vrml2.la
5endif
6
7AM_CFLAGS = \
8 -Wall -ansi -pedantic \
9 -DG_LOG_DOMAIN=\"LibG3D\" \
10 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
11 @GLIB_CFLAGS@
12
13INCLUDES = -I$(top_srcdir)/include
14
15AM_LDFLAGS = \
16 -no-undefined -module \
17 @PLUGINS_LDFLAGS@
18
19LIBTOOL += --quiet
20
21imp_vrml2_la_SOURCES = imp_vrml2.c imp_vrml2.h \
22 imp_vrml_read.c imp_vrml_read.h \
23 imp_vrml_types.h \
24 imp_vrml2_types.c imp_vrml2_types.h \
25 imp_vrml2_nodes.h
26imp_vrml2_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/Makefile.in
new file mode 100644
index 0000000..5c08daa
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/Makefile.in
@@ -0,0 +1,518 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_vrml2
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_vrml2_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_vrml2_la_OBJECTS = imp_vrml2.lo imp_vrml_read.lo \
59 imp_vrml2_types.lo
60imp_vrml2_la_OBJECTS = $(am_imp_vrml2_la_OBJECTS)
61@EXPERIMENTAL_TRUE@am_imp_vrml2_la_rpath = -rpath $(pluginimpdir)
62DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
63depcomp = $(SHELL) $(top_srcdir)/config/depcomp
64am__depfiles_maybe = depfiles
65COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
66 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
67LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
68 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
69 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
70CCLD = $(CC)
71LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
72 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
73 $(LDFLAGS) -o $@
74SOURCES = $(imp_vrml2_la_SOURCES)
75DIST_SOURCES = $(imp_vrml2_la_SOURCES)
76ETAGS = etags
77CTAGS = ctags
78DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
79ACLOCAL = @ACLOCAL@
80AMTAR = @AMTAR@
81AR = @AR@
82AS = @AS@
83AUTOCONF = @AUTOCONF@
84AUTOHEADER = @AUTOHEADER@
85AUTOMAKE = @AUTOMAKE@
86AWK = @AWK@
87CC = @CC@
88CCDEPMODE = @CCDEPMODE@
89CFLAGS = @CFLAGS@
90CPP = @CPP@
91CPPFLAGS = @CPPFLAGS@
92CXX = @CXX@
93CXXCPP = @CXXCPP@
94CXXDEPMODE = @CXXDEPMODE@
95CXXFLAGS = @CXXFLAGS@
96CYGPATH_W = @CYGPATH_W@
97DBG_CFLAGS = @DBG_CFLAGS@
98DEBUG = @DEBUG@
99DEFS = @DEFS@
100DEPDIR = @DEPDIR@
101DLLTOOL = @DLLTOOL@
102ECHO = @ECHO@
103ECHO_C = @ECHO_C@
104ECHO_N = @ECHO_N@
105ECHO_T = @ECHO_T@
106EGREP = @EGREP@
107EXEEXT = @EXEEXT@
108F77 = @F77@
109FFLAGS = @FFLAGS@
110GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
111GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
112GLIB_CFLAGS = @GLIB_CFLAGS@
113GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
114GLIB_LIBS = @GLIB_LIBS@
115GLIB_MKENUMS = @GLIB_MKENUMS@
116GOBJECT_QUERY = @GOBJECT_QUERY@
117GREP = @GREP@
118GTKDOC_CHECK = @GTKDOC_CHECK@
119GTK_CFLAGS = @GTK_CFLAGS@
120GTK_LIBS = @GTK_LIBS@
121HTML_DIR = @HTML_DIR@
122INSTALL = @INSTALL@
123INSTALL_DATA = @INSTALL_DATA@
124INSTALL_PROGRAM = @INSTALL_PROGRAM@
125INSTALL_SCRIPT = @INSTALL_SCRIPT@
126INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
127LDFLAGS = @LDFLAGS@
128LEX = @LEX@
129LEXLIB = @LEXLIB@
130LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
131LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
132LIBGSF_LIBS = @LIBGSF_LIBS@
133LIBOBJS = @LIBOBJS@
134LIBS = @LIBS@
135LIBTOOL = @LIBTOOL@ --quiet
136LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
137LIBXML2_LIBS = @LIBXML2_LIBS@
138LN_S = @LN_S@
139LTLIBOBJS = @LTLIBOBJS@
140LTVERSION = @LTVERSION@
141MAGIC_LIBS = @MAGIC_LIBS@
142MAKEINFO = @MAKEINFO@
143MATH_LIBS = @MATH_LIBS@
144MKDIR_P = @MKDIR_P@
145OBJDUMP = @OBJDUMP@
146OBJEXT = @OBJEXT@
147PACKAGE = @PACKAGE@
148PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
149PACKAGE_NAME = @PACKAGE_NAME@
150PACKAGE_STRING = @PACKAGE_STRING@
151PACKAGE_TARNAME = @PACKAGE_TARNAME@
152PACKAGE_VERSION = @PACKAGE_VERSION@
153PATH_SEPARATOR = @PATH_SEPARATOR@
154PKG_CONFIG = @PKG_CONFIG@
155PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
156RANLIB = @RANLIB@
157SET_MAKE = @SET_MAKE@
158SHELL = @SHELL@
159STRIP = @STRIP@
160VERSION = @VERSION@
161XML2_CONFIG = @XML2_CONFIG@
162XML_CPPFLAGS = @XML_CPPFLAGS@
163XML_LIBS = @XML_LIBS@
164Z_CFLAGS = @Z_CFLAGS@
165Z_LIBS = @Z_LIBS@
166abs_builddir = @abs_builddir@
167abs_srcdir = @abs_srcdir@
168abs_top_builddir = @abs_top_builddir@
169abs_top_srcdir = @abs_top_srcdir@
170ac_ct_CC = @ac_ct_CC@
171ac_ct_CXX = @ac_ct_CXX@
172ac_ct_F77 = @ac_ct_F77@
173am__include = @am__include@
174am__leading_dot = @am__leading_dot@
175am__quote = @am__quote@
176am__tar = @am__tar@
177am__untar = @am__untar@
178bindir = @bindir@
179build = @build@
180build_alias = @build_alias@
181build_cpu = @build_cpu@
182build_os = @build_os@
183build_vendor = @build_vendor@
184builddir = @builddir@
185datadir = @datadir@
186datarootdir = @datarootdir@
187docdir = @docdir@
188dvidir = @dvidir@
189exec_prefix = @exec_prefix@
190host = @host@
191host_alias = @host_alias@
192host_cpu = @host_cpu@
193host_os = @host_os@
194host_vendor = @host_vendor@
195htmldir = @htmldir@
196includedir = @includedir@
197infodir = @infodir@
198install_sh = @install_sh@
199libdir = @libdir@
200libexecdir = @libexecdir@
201localedir = @localedir@
202localstatedir = @localstatedir@
203mandir = @mandir@
204mkdir_p = @mkdir_p@
205oldincludedir = @oldincludedir@
206pdfdir = @pdfdir@
207prefix = @prefix@
208program_transform_name = @program_transform_name@
209psdir = @psdir@
210sbindir = @sbindir@
211sharedstatedir = @sharedstatedir@
212srcdir = @srcdir@
213sysconfdir = @sysconfdir@
214target_alias = @target_alias@
215top_builddir = @top_builddir@
216top_srcdir = @top_srcdir@
217pluginimpdir = $(pkglibdir)/plugins/import
218@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_vrml2.la
219AM_CFLAGS = \
220 -Wall -ansi -pedantic \
221 -DG_LOG_DOMAIN=\"LibG3D\" \
222 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
223 @GLIB_CFLAGS@
224
225INCLUDES = -I$(top_srcdir)/include
226AM_LDFLAGS = \
227 -no-undefined -module \
228 @PLUGINS_LDFLAGS@
229
230imp_vrml2_la_SOURCES = imp_vrml2.c imp_vrml2.h \
231 imp_vrml_read.c imp_vrml_read.h \
232 imp_vrml_types.h \
233 imp_vrml2_types.c imp_vrml2_types.h \
234 imp_vrml2_nodes.h
235
236imp_vrml2_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
237all: all-am
238
239.SUFFIXES:
240.SUFFIXES: .c .lo .o .obj
241$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
242 @for dep in $?; do \
243 case '$(am__configure_deps)' in \
244 *$$dep*) \
245 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
246 && exit 0; \
247 exit 1;; \
248 esac; \
249 done; \
250 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_vrml2/Makefile'; \
251 cd $(top_srcdir) && \
252 $(AUTOMAKE) --gnu plugins/import/imp_vrml2/Makefile
253.PRECIOUS: Makefile
254Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
255 @case '$?' in \
256 *config.status*) \
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
258 *) \
259 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
260 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
261 esac;
262
263$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265
266$(top_srcdir)/configure: $(am__configure_deps)
267 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
268$(ACLOCAL_M4): $(am__aclocal_m4_deps)
269 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
270install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
271 @$(NORMAL_INSTALL)
272 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
273 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
274 if test -f $$p; then \
275 f=$(am__strip_dir) \
276 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
277 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
278 else :; fi; \
279 done
280
281uninstall-pluginimpLTLIBRARIES:
282 @$(NORMAL_UNINSTALL)
283 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
284 p=$(am__strip_dir) \
285 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
286 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
287 done
288
289clean-pluginimpLTLIBRARIES:
290 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
291 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
292 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
293 test "$$dir" != "$$p" || dir=.; \
294 echo "rm -f \"$${dir}/so_locations\""; \
295 rm -f "$${dir}/so_locations"; \
296 done
297imp_vrml2.la: $(imp_vrml2_la_OBJECTS) $(imp_vrml2_la_DEPENDENCIES)
298 $(LINK) $(am_imp_vrml2_la_rpath) $(imp_vrml2_la_OBJECTS) $(imp_vrml2_la_LIBADD) $(LIBS)
299
300mostlyclean-compile:
301 -rm -f *.$(OBJEXT)
302
303distclean-compile:
304 -rm -f *.tab.c
305
306@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_vrml2.Plo@am__quote@
307@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_vrml2_types.Plo@am__quote@
308@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_vrml_read.Plo@am__quote@
309
310.c.o:
311@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
312@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
313@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
314@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
315@am__fastdepCC_FALSE@ $(COMPILE) -c $<
316
317.c.obj:
318@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
319@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
320@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
321@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
322@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
323
324.c.lo:
325@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
326@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
327@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
328@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
329@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
330
331mostlyclean-libtool:
332 -rm -f *.lo
333
334clean-libtool:
335 -rm -rf .libs _libs
336
337ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
338 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
339 unique=`for i in $$list; do \
340 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
341 done | \
342 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
343 END { if (nonempty) { for (i in files) print i; }; }'`; \
344 mkid -fID $$unique
345tags: TAGS
346
347TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
348 $(TAGS_FILES) $(LISP)
349 tags=; \
350 here=`pwd`; \
351 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
352 unique=`for i in $$list; do \
353 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
354 done | \
355 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
356 END { if (nonempty) { for (i in files) print i; }; }'`; \
357 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
358 test -n "$$unique" || unique=$$empty_fix; \
359 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
360 $$tags $$unique; \
361 fi
362ctags: CTAGS
363CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
364 $(TAGS_FILES) $(LISP)
365 tags=; \
366 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
367 unique=`for i in $$list; do \
368 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
369 done | \
370 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
371 END { if (nonempty) { for (i in files) print i; }; }'`; \
372 test -z "$(CTAGS_ARGS)$$tags$$unique" \
373 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
374 $$tags $$unique
375
376GTAGS:
377 here=`$(am__cd) $(top_builddir) && pwd` \
378 && cd $(top_srcdir) \
379 && gtags -i $(GTAGS_ARGS) $$here
380
381distclean-tags:
382 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
383
384distdir: $(DISTFILES)
385 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
386 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
387 list='$(DISTFILES)'; \
388 dist_files=`for file in $$list; do echo $$file; done | \
389 sed -e "s|^$$srcdirstrip/||;t" \
390 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
391 case $$dist_files in \
392 */*) $(MKDIR_P) `echo "$$dist_files" | \
393 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
394 sort -u` ;; \
395 esac; \
396 for file in $$dist_files; do \
397 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
398 if test -d $$d/$$file; then \
399 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
400 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
401 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
402 fi; \
403 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
404 else \
405 test -f $(distdir)/$$file \
406 || cp -p $$d/$$file $(distdir)/$$file \
407 || exit 1; \
408 fi; \
409 done
410check-am: all-am
411check: check-am
412all-am: Makefile $(LTLIBRARIES)
413installdirs:
414 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
415 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
416 done
417install: install-am
418install-exec: install-exec-am
419install-data: install-data-am
420uninstall: uninstall-am
421
422install-am: all-am
423 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
424
425installcheck: installcheck-am
426install-strip:
427 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
428 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
429 `test -z '$(STRIP)' || \
430 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
431mostlyclean-generic:
432
433clean-generic:
434
435distclean-generic:
436 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
437
438maintainer-clean-generic:
439 @echo "This command is intended for maintainers to use"
440 @echo "it deletes files that may require special tools to rebuild."
441clean: clean-am
442
443clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
444 mostlyclean-am
445
446distclean: distclean-am
447 -rm -rf ./$(DEPDIR)
448 -rm -f Makefile
449distclean-am: clean-am distclean-compile distclean-generic \
450 distclean-tags
451
452dvi: dvi-am
453
454dvi-am:
455
456html: html-am
457
458info: info-am
459
460info-am:
461
462install-data-am: install-pluginimpLTLIBRARIES
463
464install-dvi: install-dvi-am
465
466install-exec-am:
467
468install-html: install-html-am
469
470install-info: install-info-am
471
472install-man:
473
474install-pdf: install-pdf-am
475
476install-ps: install-ps-am
477
478installcheck-am:
479
480maintainer-clean: maintainer-clean-am
481 -rm -rf ./$(DEPDIR)
482 -rm -f Makefile
483maintainer-clean-am: distclean-am maintainer-clean-generic
484
485mostlyclean: mostlyclean-am
486
487mostlyclean-am: mostlyclean-compile mostlyclean-generic \
488 mostlyclean-libtool
489
490pdf: pdf-am
491
492pdf-am:
493
494ps: ps-am
495
496ps-am:
497
498uninstall-am: uninstall-pluginimpLTLIBRARIES
499
500.MAKE: install-am install-strip
501
502.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
503 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
504 distclean-compile distclean-generic distclean-libtool \
505 distclean-tags distdir dvi dvi-am html html-am info info-am \
506 install install-am install-data install-data-am install-dvi \
507 install-dvi-am install-exec install-exec-am install-html \
508 install-html-am install-info install-info-am install-man \
509 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
510 install-ps install-ps-am install-strip installcheck \
511 installcheck-am installdirs maintainer-clean \
512 maintainer-clean-generic mostlyclean mostlyclean-compile \
513 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
514 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
515
516# Tell versions [3.59,3.63) of GNU make to not export all variables.
517# Otherwise a system limit (for SysV at least) may be exceeded.
518.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2.c
new file mode 100644
index 0000000..f295175
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2.c
@@ -0,0 +1,82 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23/*
24 * an experiment to parse VRML without flex, version 2 is tried as a starter,
25 * v1 and Inventor stuff will be added if successful.
26 */
27
28#include <stdlib.h>
29#include <string.h>
30#include <locale.h>
31
32#include <g3d/types.h>
33#include <g3d/stream.h>
34
35#include "imp_vrml2.h"
36#include "imp_vrml_read.h"
37
38EAPI
39gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
40 G3DModel *model, gpointer user_data)
41{
42 gchar buf[128];
43 gboolean retval;
44 VrmlReader *reader;
45
46 setlocale(LC_NUMERIC, "C");
47
48 buf[127] = '\0';
49 g3d_stream_read_line(stream, buf, 127);
50 if(strncmp(buf, "#VRML V2.0 utf8", 15) != 0) {
51 g_warning("%s is not a valid VRML 2.0 UTF-8 stream", stream->uri);
52 return FALSE;
53 }
54
55 reader = g_new0(VrmlReader, 1);
56 reader->max_bufsize = 2048;
57 reader->buffer = g_new0(gchar, reader->max_bufsize);
58 reader->bufp = reader->buffer;
59 reader->line = 2;
60 reader->stream = stream;
61 reader->model = model;
62
63 retval = vrml_read_global(reader);
64
65 g_free(reader);
66
67 return retval;
68}
69
70EAPI
71gchar *plugin_description(void)
72{
73 return g_strdup("VRML v2 models.");
74}
75
76EAPI
77gchar **plugin_extensions(void)
78{
79 return g_strsplit("wrl", ":", 0);
80}
81
82/*****************************************************************************/
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2.h
new file mode 100644
index 0000000..4946d6b
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2.h
@@ -0,0 +1,42 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_VRML2_H
23#define _IMP_VRML2_H
24
25#include <glib.h>
26
27#include <g3d/types.h>
28#include <g3d/stream.h>
29
30typedef struct {
31 G3DStream *stream;
32 gchar *buffer;
33 gchar *bufp;
34 gsize bufsize;
35 gsize max_bufsize;
36 guint32 line;
37
38 G3DModel *model;
39 G3DObject *object;
40} VrmlReader;
41
42#endif
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2_nodes.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2_nodes.h
new file mode 100644
index 0000000..837c728
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2_nodes.h
@@ -0,0 +1,42 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_VRML2_NODES_H
23#define _IMP_VRML2_NODES_H
24
25#include "imp_vrml_types.h"
26
27static VrmlNodeDef vrml2_nodes[] = {
28 { "Appearence", NULL },
29 { "Background", NULL },
30 { "Color", NULL },
31 { "Coordinate", NULL },
32 { "IndexedFaceSet", NULL },
33 { "Material", NULL },
34 { "Normal", NULL },
35 { "Shape", NULL },
36 { "Transform", NULL },
37 { "Viewpoint", NULL },
38
39 { NULL, NULL }
40};
41
42#endif
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2_types.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2_types.c
new file mode 100644
index 0000000..3c10bf2
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2_types.c
@@ -0,0 +1,78 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <string.h>
23
24#include "imp_vrml_types.h"
25#include "imp_vrml_read.h"
26
27VrmlType vrml2_type_cb__float3(VrmlReader *reader)
28{
29 if(!vrml_read_skip_ws(reader))
30 return T_UNKNOWN;
31 if(*(reader->bufp) == '[')
32 return T_LIST_FLOAT3;
33 return T_FLOAT3;
34}
35
36VrmlType vrml2_type_cb__int(VrmlReader *reader)
37{
38 if(!vrml_read_skip_ws(reader))
39 return T_UNKNOWN;
40 if(*(reader->bufp) == '[')
41 return T_LIST_INT;
42 return T_INT;
43}
44
45VrmlType vrml2_type_cb_field(VrmlReader *reader)
46{
47 gchar *id;
48 VrmlType t = T_UNKNOWN;
49
50 id = vrml_read_id(reader);
51 if(!id) {
52 g_warning("VRML: vrml2_type_cb_field: failed to read id");
53 return T_UNKNOWN;
54 }
55 if(strcmp(id, "SFFloat") == 0)
56 t = T_TOKEN2; /* data 0 */
57
58 g_free(id);
59 return t;
60}
61
62VrmlType vrml2_type_cb_children(VrmlReader *reader)
63{
64 if(!vrml_read_skip_ws(reader))
65 return T_UNKNOWN;
66 if(*(reader->bufp) == '[')
67 return T_LIST_OBJECT;
68 return T_OBJECT;
69}
70
71VrmlType vrml2_type_cb_color(VrmlReader *reader)
72{
73 if(!vrml_read_skip_ws(reader))
74 return T_UNKNOWN;
75 if(*(reader->bufp) == '[')
76 return T_LIST_FLOAT3;
77 return T_OBJECT;
78}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2_types.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2_types.h
new file mode 100644
index 0000000..a4747ec
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2_types.h
@@ -0,0 +1,103 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_VRML2_TYPES_H
23#define _IMP_VRML2_TYPES_H
24
25#include "imp_vrml2.h"
26#include "imp_vrml_types.h"
27
28/* list or not list */
29VrmlType vrml2_type_cb__float3(VrmlReader *reader);
30VrmlType vrml2_type_cb__int(VrmlReader *reader);
31
32VrmlType vrml2_type_cb_field(VrmlReader *reader);
33VrmlType vrml2_type_cb_children(VrmlReader *reader);
34VrmlType vrml2_type_cb_color(VrmlReader *reader);
35
36static VrmlTypeDef vrml2_types[] = {
37 { "ambientIntensity", T_FLOAT, NULL },
38 { "appearance", T_OBJECT, NULL },
39 { "autoOffset", T_BOOLEAN, NULL },
40 { "ccw", T_BOOLEAN, NULL },
41 { "center", T_FLOAT_X, NULL },
42 { "children", T_UNKNOWN, vrml2_type_cb_children },
43 { "color", T_UNKNOWN, vrml2_type_cb_color },
44 { "colorIndex", T_LIST_INT, vrml2_type_cb__int },
45 { "colorPerVertex", T_BOOLEAN, NULL },
46 { "convex", T_BOOLEAN, NULL },
47 { "coord", T_OBJECT, NULL },
48 { "coordIndex", T_LIST_INT, NULL },
49 { "creaseAngle", T_FLOAT, NULL },
50 { "cycleInterval", T_INT, NULL },
51 { "description", T_STRING, NULL },
52 { "diffuseColor", T_FLOAT3, NULL },
53 { "emissiveColor", T_FLOAT3, NULL },
54 { "eventIn", T_TOKEN2, NULL },
55 { "eventOut", T_TOKEN2, NULL },
56 { "field", T_UNKNOWN, vrml2_type_cb_field },
57 { "fieldOfView", T_FLOAT, NULL },
58 { "geometry", T_OBJECT, NULL },
59 { "groundAngle", T_LIST_FLOAT2, NULL },
60 { "groundColor", T_LIST_FLOAT3, NULL },
61 { "height", T_FLOAT, NULL },
62 { "info", T_LIST_STRING, NULL },
63 { "key", T_LIST_FLOAT, NULL },
64 { "keyValue", T_LIST_FLOAT4, NULL },
65 { "material", T_OBJECT, NULL },
66 { "maxPosition", T_FLOAT_X, NULL },
67 { "minPosition", T_FLOAT_X, NULL },
68 { "normal", T_OBJECT, NULL },
69 { "normalIndex", T_LIST_INT, NULL },
70 { "normalPerVertex", T_BOOLEAN, NULL },
71 { "offset", T_FLOAT_X, NULL },
72 { "orientation", T_FLOAT4, NULL },
73 { "parameter", T_STRING, NULL },
74 { "point", T_LIST_FLOAT_X, NULL },
75 { "position", T_FLOAT3, NULL },
76 { "radius", T_FLOAT, NULL },
77 { "repeatS", T_BOOLEAN, NULL },
78 { "repeatT", T_BOOLEAN, NULL },
79 { "rotation", T_FLOAT_X, NULL },
80 { "scale", T_FLOAT_X, NULL },
81 { "scaleOrientation", T_FLOAT_X, NULL },
82 { "shininess", T_FLOAT, NULL },
83 { "size", T_FLOAT3, NULL },
84 { "skyAngle", T_LIST_FLOAT2, NULL },
85 { "skyColor", T_LIST_FLOAT3, vrml2_type_cb__float3 },
86 { "solid", T_BOOLEAN, NULL },
87 { "specularColor", T_FLOAT3, NULL },
88 { "startTime", T_INT, NULL },
89 { "stopTime", T_INT, NULL },
90 { "texCoord", T_OBJECT, NULL },
91 { "texCoordIndex", T_LIST_INT, NULL },
92 { "texture", T_OBJECT, NULL },
93 { "textureTransform", T_OBJECT, NULL },
94 { "translation", T_FLOAT3, NULL },
95 { "transparency", T_FLOAT, NULL },
96 { "type", T_STRING, NULL },
97 { "url", T_STRING, NULL },
98 { "vector", T_LIST_FLOAT3, NULL },
99
100 { NULL, T_UNKNOWN }
101};
102
103#endif /* _IMP_VRML2_TYPES_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml_read.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml_read.c
new file mode 100644
index 0000000..580c5cd
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml_read.c
@@ -0,0 +1,647 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <string.h>
23#include <stdlib.h>
24
25#include "imp_vrml_types.h"
26#include "imp_vrml_read.h"
27
28#include "imp_vrml2_nodes.h"
29#include "imp_vrml2_types.h"
30
31gboolean vrml_read_check_buffer(VrmlReader *reader)
32{
33 if(reader->bufsize > 0)
34 return TRUE;
35 if(g3d_stream_eof(reader->stream))
36 return FALSE;
37 memset(reader->buffer, '\0', reader->max_bufsize);
38 g3d_stream_read_line(reader->stream, reader->buffer,
39 reader->max_bufsize - 1);
40 reader->line ++;
41 reader->bufsize = strlen(reader->buffer);
42 reader->bufp = reader->buffer;
43 return (reader->bufsize > 0);
44}
45
46gboolean vrml_read_skip_ws(VrmlReader *reader)
47{
48 if(!vrml_read_check_buffer(reader))
49 return FALSE;
50 while(g_ascii_isspace(*(reader->bufp))) {
51 vrml_read_dec(reader);
52 if(!vrml_read_check_buffer(reader))
53 return FALSE;
54 }
55 return TRUE;
56}
57
58gchar *vrml_read_token(VrmlReader *reader)
59{
60 gchar *s = NULL;
61 gsize len = 0;
62
63 if(!vrml_read_skip_ws(reader))
64 return NULL;
65 while(vrml_read_check_buffer(reader) &&
66 !g_ascii_isspace(*(reader->bufp)) &&
67 (*(reader->bufp) != ',')) {
68 len ++;
69 s = g_realloc(s, (len + 1) * sizeof(gchar));
70 s[len - 1] = *(reader->bufp);
71 s[len - 0] = '\0';
72 vrml_read_dec(reader);
73 }
74#if DEBUG > 3
75 g_debug("token: %s", s);
76#endif
77 return s;
78}
79
80gchar *vrml_read_numeric(VrmlReader *reader)
81{
82 gchar *s = NULL;
83 gsize len = 0;
84 gboolean first = TRUE;
85
86 if(!vrml_read_skip_ws(reader))
87 return NULL;
88 while(vrml_read_check_buffer(reader) &&
89 (g_ascii_isdigit(*(reader->bufp)) ||
90 strchr(".-e", *(reader->bufp)))) {
91
92 if(first) {
93 if(*(reader->bufp) == 'e')
94 return NULL;
95 first = FALSE;
96 }
97
98 len ++;
99 s = g_realloc(s, (len + 1) * sizeof(gchar));
100 s[len - 1] = *(reader->bufp);
101 s[len - 0] = '\0';
102 vrml_read_dec(reader);
103 }
104#if DEBUG > 3
105 g_debug("numeric: %s", s);
106#endif
107 return s;
108}
109
110gchar *vrml_read_id(VrmlReader *reader)
111{
112 gchar *buf;
113 gsize bufsize;
114
115 if(!vrml_read_skip_ws(reader))
116 return NULL;
117 if(!vrml_read_check_buffer(reader))
118 return NULL;
119 bufsize = 2;
120 buf = g_new(gchar, 2 * sizeof(gchar));
121 buf[0] = *(reader->bufp);
122 buf[1] = '\0';
123 if(!(g_ascii_isalpha(buf[0]) || strchr("_", buf[0]))) {
124 g_free(buf);
125 return NULL;
126 }
127 vrml_read_dec(reader);
128 if(!vrml_read_check_buffer(reader))
129 return buf;
130 while(g_ascii_isalnum(*(reader->bufp)) || strchr("_.", *(reader->bufp))) {
131 bufsize ++;
132 buf = g_realloc(buf, bufsize * sizeof(gchar));
133 buf[bufsize - 2] = *(reader->bufp);
134 buf[bufsize - 1] = '\0';
135 vrml_read_dec(reader);
136 if(!vrml_read_check_buffer(reader))
137 return buf;
138 }
139 return buf;
140}
141
142gchar *vrml_read_string(VrmlReader *reader)
143{
144 gchar *buf = NULL;
145 gsize bufsize = 0;
146
147 if(!vrml_read_check_buffer(reader))
148 return NULL;
149 while(*(reader->bufp) != '"') {
150 bufsize ++;
151 buf = g_realloc(buf, (bufsize + 1) * sizeof(gchar));
152 buf[bufsize - 1] = *(reader->bufp);
153 buf[bufsize] = '\0';
154 vrml_read_dec(reader);
155 if(!vrml_read_check_buffer(reader))
156 return buf;
157 }
158 vrml_read_dec(reader);
159 return buf;
160}
161
162gboolean vrml_read_skip_unknown(VrmlReader *reader)
163{
164 gchar c, *s;
165#if DEBUG > 0
166 g_debug("vrml: skipping unknown stuff in line %d", reader->line);
167#endif
168
169 while(vrml_read_check_buffer(reader)) {
170 c = *(reader->bufp);
171 vrml_read_dec(reader);
172 switch(c) {
173 case '"':
174 s = vrml_read_string(reader);
175 if(s) {
176 g_debug("found string '%s'", s);
177 g_free(s);
178 }
179 break;
180 case '{':
181 case '[':
182 vrml_read_skip_unknown(reader);
183 break;
184 case '}':
185 case ']':
186 return TRUE;
187 break;
188 default:
189 break;
190 }
191 }
192 return FALSE;
193}
194
195gchar *vrml_read_nodeid(VrmlReader *reader)
196{
197 gchar *id;
198 id = vrml_read_id(reader);
199 if(id == NULL)
200 return NULL;
201 if(!g_ascii_isupper(id[0])) {
202 g_free(id);
203 return NULL;
204 }
205 return id;
206}
207
208gboolean vrml_read_expect(VrmlReader *reader, const gchar c)
209{
210 gchar b;
211 if(!vrml_read_skip_ws(reader))
212 return FALSE;
213 if(!vrml_read_check_buffer(reader))
214 return FALSE;
215 b = *(reader->bufp);
216 vrml_read_dec(reader);
217 return (b == c);
218}
219
220gboolean vrml_read_list(VrmlReader *reader, vrml_read_list_item_callback cb,
221 gpointer user_data)
222{
223 if(!vrml_read_expect(reader, '['))
224 return FALSE;
225
226 while(vrml_read_skip_ws(reader)) {
227 if(*(reader->bufp) == ']') {
228 vrml_read_dec(reader);
229 return TRUE;
230 }
231 if(!cb(reader, user_data))
232 return FALSE;
233
234 if(!vrml_read_skip_ws(reader))
235 return FALSE;
236 if(*(reader->bufp) == ',')
237 vrml_read_dec(reader);
238 }
239 /* should not be reached */
240 return vrml_read_expect(reader, ']');
241}
242
243/*****************************************************************************/
244
245static VrmlObject *vrml_lookup_object(VrmlReader *reader, const gchar *id)
246{
247 VrmlObject *object;
248
249 object = g_new0(VrmlObject, 1);
250 object->defid = g_strdup(id);
251 object->name = g_strdup("object from library");
252
253 return object;
254}
255
256static gboolean vrml_read_float_n(VrmlReader *reader, G3DFloat *a, guint32 n)
257{
258 gint i;
259 gchar *s;
260
261 for(i = 0; i < n; i ++) {
262 s = vrml_read_numeric(reader);
263 if(s) {
264 a[i] = atof(s);
265 g_free(s);
266 } else
267 return FALSE;
268 }
269 return TRUE;
270}
271
272static gboolean vrml_read_token_n(VrmlReader *reader, VrmlProperty *property,
273 guint32 n)
274{
275 gchar *token;
276 gint32 i;
277
278 for(i = 0; i < n; i ++) {
279 token = vrml_read_token(reader);
280#if DEBUG > 2
281 g_debug("Token: %s", token);
282#endif
283 g_free(token);
284 }
285
286 return TRUE;
287}
288
289/* property list callbacks */
290
291gboolean vrml_read_list_object_cb(VrmlReader *reader, gpointer data)
292{
293 VrmlProperty *property = data;
294
295 property->n_items ++;
296 property->v_object = g_realloc(property->v_object,
297 property->n_items * sizeof(VrmlObject *));
298 property->v_object[property->n_items - 1] =
299 vrml_read_object(reader, property->level + 1);
300 return (property->v_object[property->n_items - 1] != NULL);
301}
302
303gboolean vrml_read_list_string_cb(VrmlReader *reader, gpointer data)
304{
305 VrmlProperty *property = data;
306
307 if(!vrml_read_expect(reader, '"'))
308 return FALSE;
309
310 property->n_items ++;
311 property->v_str = g_realloc(property->v_str,
312 property->n_items * sizeof(gchar *));
313 property->v_str[property->n_items - 1] =
314 vrml_read_string(reader);
315 return TRUE;
316}
317
318gboolean vrml_read_list_int_cb(VrmlReader *reader, gpointer data)
319{
320 VrmlProperty *property = data;
321 gchar *s;
322
323 s = vrml_read_numeric(reader);
324 if(s) {
325 property->n_items ++;
326 property->v_int = g_realloc(property->v_int,
327 property->n_items * sizeof(gint32));
328 property->v_int[property->n_items - 1] = atoi(s);
329 g_free(s);
330 return TRUE;
331 }
332 return FALSE;
333}
334
335gboolean vrml_read_list_float_cb(VrmlReader *reader, gpointer data)
336{
337 VrmlProperty *property = data;
338
339 property->n_items ++;
340 property->v_float = g_realloc(property->v_float,
341 property->n_items * sizeof(G3DFloat));
342 return vrml_read_float_n(reader,
343 property->v_float + (property->n_items - 1), 1);
344}
345
346gboolean vrml_read_list_float2_cb(VrmlReader *reader, gpointer data)
347{
348 VrmlProperty *property = data;
349
350 property->n_items += 2;
351 property->v_float = g_realloc(property->v_float,
352 property->n_items * sizeof(G3DFloat));
353 return vrml_read_float_n(reader,
354 property->v_float + (property->n_items - 2), 2);
355}
356
357gboolean vrml_read_list_float3_cb(VrmlReader *reader, gpointer data)
358{
359 VrmlProperty *property = data;
360
361 property->n_items += 3;
362 property->v_float = g_realloc(property->v_float,
363 property->n_items * sizeof(G3DFloat));
364 return vrml_read_float_n(reader,
365 property->v_float + (property->n_items - 3), 3);
366}
367
368gboolean vrml_read_list_float4_cb(VrmlReader *reader, gpointer data)
369{
370 VrmlProperty *property = data;
371
372 property->n_items += 4;
373 property->v_float = g_realloc(property->v_float,
374 property->n_items * sizeof(G3DFloat));
375 return vrml_read_float_n(reader,
376 property->v_float + (property->n_items - 4), 4);
377}
378
379gboolean vrml_read_list_floatx_cb(VrmlReader *reader, gpointer data)
380{
381 VrmlProperty *property = data;
382 gchar *s;
383
384 s = vrml_read_numeric(reader);
385 while(s) {
386 property->n_items ++;
387 property->v_float = g_realloc(property->v_float,
388 property->n_items * sizeof(G3DFloat));
389 property->v_float[property->n_items - 1] = atof(s);
390 g_free(s);
391 s = vrml_read_numeric(reader);
392 }
393 return TRUE;
394}
395
396/* property reader */
397
398VrmlProperty *vrml_read_property(VrmlReader *reader, guint32 level)
399{
400 VrmlProperty *property;
401 VrmlTypeDef *type = NULL;
402 gint i;
403 gchar *id, *s;
404
405 id = vrml_read_id(reader);
406 if(id == NULL)
407 return NULL;
408
409 /* look up object */
410 for(i = 0; vrml2_types[i].name != NULL; i ++)
411 if(strcmp(id, vrml2_types[i].name) == 0) {
412 type = &(vrml2_types[i]);
413 break;
414 }
415 if(type == NULL) {
416 g_warning("VRML: unknown type %s in line %d", id, reader->line);
417 return NULL;
418 }
419 property = g_new0(VrmlProperty, 1);
420 property->name = id;
421 if(type->detect != NULL)
422 property->id = type->detect(reader);
423 else
424 property->id = type->id;
425 property->level = level;
426
427#if DEBUG > 0
428 g_debug("\\%sproperty '%s', type %d",
429 vrml_read_padding + strlen(vrml_read_padding) - 1 - level,
430 id, property->id);
431#endif
432
433 switch(property->id) {
434 case T_OBJECT:
435 property->n_items = 1;
436 property->v_object = g_new0(VrmlObject *, 1);
437 property->v_object[0] = vrml_read_object(reader, level + 1);
438 break;
439 case T_TOKEN2:
440 vrml_read_token_n(reader, property, 2);
441 break;
442 case T_TOKEN3:
443 vrml_read_token_n(reader, property, 3);
444 break;
445 case T_STRING:
446 property->n_items = 1;
447 if(!vrml_read_expect(reader, '"'))
448 return FALSE;
449 property->v_str = g_new0(gchar *, 1);
450 property->v_str[0] = vrml_read_string(reader);
451 break;
452 case T_BOOLEAN:
453 s = vrml_read_token(reader);
454 if(s) {
455 if(strcmp(s, "TRUE") == 0)
456 property->v_boolean = TRUE;
457 g_free(s);
458 }
459 break;
460 case T_INT:
461 s = vrml_read_numeric(reader);
462 if(s) {
463 property->n_items = 1;
464 property->v_int = g_new0(gint32, 1);
465 property->v_int[0] = atoi(s);
466 g_free(s);
467 }
468 break;
469 case T_FLOAT:
470 property->n_items = 1;
471 property->v_float = g_new0(G3DFloat, 1);
472 vrml_read_float_n(reader, property->v_float, 1);
473 break;
474 case T_FLOAT2:
475 property->n_items = 2;
476 property->v_float = g_new0(G3DFloat, 2);
477 vrml_read_float_n(reader, property->v_float, 2);
478 break;
479 case T_FLOAT3:
480 property->n_items = 3;
481 property->v_float = g_new0(G3DFloat, 3);
482 vrml_read_float_n(reader, property->v_float, 3);
483 break;
484 case T_FLOAT4:
485 property->n_items = 4;
486 property->v_float = g_new0(G3DFloat, 4);
487 vrml_read_float_n(reader, property->v_float, 4);
488 break;
489 case T_FLOAT_X:
490 s = vrml_read_numeric(reader);
491 while(s) {
492 property->n_items ++;
493 property->v_float = g_realloc(property->v_float,
494 property->n_items * sizeof(G3DFloat));
495 property->v_float[property->n_items - 1] = atof(s);
496#if DEBUG > 2
497 g_debug("T_FLOAT_X: %i: %.2f", property->n_items,
498 property->v_float[property->n_items - 1]);
499#endif
500 g_free(s);
501 s = vrml_read_numeric(reader);
502 }
503 break;
504 case T_LIST_OBJECT:
505 vrml_read_list(reader, vrml_read_list_object_cb, property);
506 break;
507 case T_LIST_STRING:
508 vrml_read_list(reader, vrml_read_list_string_cb, property);
509 break;
510 case T_LIST_INT:
511 vrml_read_list(reader, vrml_read_list_int_cb, property);
512 break;
513 case T_LIST_FLOAT:
514 vrml_read_list(reader, vrml_read_list_float_cb, property);
515 break;
516 case T_LIST_FLOAT2:
517 vrml_read_list(reader, vrml_read_list_float2_cb, property);
518 break;
519 case T_LIST_FLOAT3:
520 vrml_read_list(reader, vrml_read_list_float3_cb, property);
521 break;
522 case T_LIST_FLOAT4:
523 vrml_read_list(reader, vrml_read_list_float4_cb, property);
524 break;
525 case T_LIST_FLOAT_X:
526 vrml_read_list(reader, vrml_read_list_floatx_cb, property);
527 break;
528
529 default:
530 g_free(property->name);
531 g_free(property);
532 return NULL;
533 break;
534 }
535
536 return property;
537}
538
539static VrmlObject *vrml_read_route_object(VrmlReader *reader, guint32 level)
540{
541 VrmlObject *object;
542 gchar *id;
543#if DEBUG > 2
544 g_debug("ROUTE object");
545#endif
546 id = vrml_read_id(reader); /* source */
547 if(id == NULL) {
548 g_warning("ROUTE: could not get source");
549 return NULL;
550 }
551 g_free(id);
552 id = vrml_read_id(reader); /* TO */
553 if(id == NULL) {
554 g_warning("ROUTE: could not get TO");
555 return NULL;
556 }
557 g_free(id);
558 id = vrml_read_id(reader); /* destination */
559 if(id == NULL) {
560 g_warning("ROUTE: could not get destination");
561 return NULL;
562 }
563 g_free(id);
564 object = g_new0(VrmlObject, 1);
565 object->name = g_strdup("ROUTE object");
566 object->level = level;
567 return object;
568}
569
570VrmlObject *vrml_read_object(VrmlReader *reader, guint32 level)
571{
572 VrmlObject *object;
573 VrmlProperty *property;
574 gchar *id, *defid = NULL;
575 gboolean define = FALSE;
576
577 id = vrml_read_id(reader);
578 if(id == NULL)
579 return NULL;
580 if(strcmp(id, "NULL") == 0) {
581 return NULL;
582 } else if(strcmp(id, "DEF") == 0) {
583 define = TRUE;
584 defid = vrml_read_id(reader);
585 if(defid == NULL)
586 return NULL;
587 id = vrml_read_id(reader);
588 if(id == NULL)
589 return NULL;
590 } else if(strcmp(id, "USE") == 0) {
591 defid = vrml_read_id(reader);
592#if DEBUG > 2
593 g_debug("looking up '%s'", defid);
594#endif
595 return vrml_lookup_object(reader, defid);
596 } else if(strcmp(id, "ROUTE") == 0) {
597 return vrml_read_route_object(reader, level);
598 }
599
600 if(!vrml_read_expect(reader, '{')) {
601 g_warning("vrml_read_object: expected '{' in line %d", reader->line);
602 g_free(id);
603 if(defid)
604 g_free(defid);
605 return FALSE;
606 }
607#if DEBUG > 0
608 g_debug("\\%sobject '%s'",
609 vrml_read_padding + strlen(vrml_read_padding) - 1 - level,
610 id);
611#endif
612
613 object = g_new0(VrmlObject, 1);
614 object->name = id;
615 object->defid = defid;
616 object->define = define;
617 object->level = level;
618
619 /* read properties */
620 while(vrml_read_skip_ws(reader)) {
621#if DEBUG > 2
622 g_debug("O: '%c'", *(reader->bufp));
623#endif
624 if(*(reader->bufp) == '}') {
625 vrml_read_dec(reader);
626 return object;
627 }
628 property = vrml_read_property(reader, level + 1);
629 if(property != NULL)
630 object->properties = g_slist_append(object->properties, property);
631 else {
632 vrml_read_skip_unknown(reader);
633 return object;
634 }
635 }
636 vrml_read_expect(reader, '}');
637 return object;
638}
639
640gboolean vrml_read_global(VrmlReader *reader)
641{
642 while(vrml_read_skip_ws(reader)) {
643 if(!vrml_read_object(reader, 0))
644 return FALSE;
645 }
646 return TRUE;
647}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml_read.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml_read.h
new file mode 100644
index 0000000..691eb57
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml_read.h
@@ -0,0 +1,56 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_VRML_READ_H
23#define _IMP_VRML_READ_H
24
25#include "imp_vrml2.h"
26#include "imp_vrml_types.h"
27
28typedef gboolean (* vrml_read_list_item_callback)(VrmlReader *reader,
29 gpointer user_data);
30
31gboolean vrml_read_global(VrmlReader *reader);
32gboolean vrml_read_check_buffer(VrmlReader *reader);
33gboolean vrml_read_skip_ws(VrmlReader *reader);
34gboolean vrml_read_skip_unknown(VrmlReader *reader);
35gboolean vrml_read_expect(VrmlReader *reader, const gchar c);
36gboolean vrml_read_list(VrmlReader *reader, vrml_read_list_item_callback cb,
37 gpointer user_data);
38
39gchar *vrml_read_token(VrmlReader *reader);
40gchar *vrml_read_numeric(VrmlReader *reader);
41gchar *vrml_read_id(VrmlReader *reader);
42gchar *vrml_read_nodeid(VrmlReader *reader);
43gchar *vrml_read_string(VrmlReader *reader);
44
45VrmlProperty *vrml_read_property(VrmlReader *reader, guint32 level);
46VrmlObject *vrml_read_object(VrmlReader *reader, guint32 level);
47
48static inline void vrml_read_dec(VrmlReader *reader)
49{
50 reader->bufp ++;
51 reader->bufsize --;
52}
53
54static gchar vrml_read_padding[] = " ";
55
56#endif /* _IMP_VRML_READ_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml_types.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml_types.h
new file mode 100644
index 0000000..6ca2327
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml_types.h
@@ -0,0 +1,88 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_VRML_TYPES_H
23#define _IMP_VRML_TYPES_H
24
25#include "imp_vrml2.h"
26
27typedef enum {
28 T_UNKNOWN = 0,
29 T_SPECIAL,
30 T_OBJECT,
31 T_TOKEN2,
32 T_TOKEN3,
33 T_STRING,
34 T_BOOLEAN,
35 T_INT,
36 T_FLOAT,
37 T_FLOAT2,
38 T_FLOAT3,
39 T_FLOAT4,
40 T_FLOAT_X,
41 T_LIST_OBJECT,
42 T_LIST_STRING,
43 T_LIST_INT,
44 T_LIST_FLOAT,
45 T_LIST_FLOAT2,
46 T_LIST_FLOAT3,
47 T_LIST_FLOAT4,
48 T_LIST_FLOAT_X,
49 N_TYPES
50} VrmlType;
51
52typedef struct {
53 gchar *name;
54 gchar *defid;
55 gboolean define;
56 guint32 level;
57 GSList *properties;
58} VrmlObject;
59
60typedef struct {
61 gchar *name;
62 VrmlType id;
63
64 gsize n_items;
65 VrmlObject **v_object;
66 gchar **v_str;
67 G3DFloat *v_float;
68 gint32 *v_int;
69 gboolean v_boolean;
70 guint32 level;
71} VrmlProperty;
72
73typedef VrmlType (* VrmlTypeDetect)(VrmlReader *reader);
74
75typedef struct {
76 const gchar *name;
77 VrmlType id;
78 VrmlTypeDetect detect;
79} VrmlTypeDef;
80
81typedef gboolean (* VrmlNodeCallback)(VrmlReader *reader, VrmlObject *object);
82
83typedef struct {
84 const gchar *name;
85 VrmlNodeCallback callback;
86} VrmlNodeDef;
87
88#endif /* _IMP_VRML_TYPES_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/programs/Makefile b/src/others/mimesh/libg3d-0.0.8/programs/Makefile
new file mode 100644
index 0000000..ea3fdb5
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/programs/Makefile
@@ -0,0 +1,497 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# programs/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35bin_PROGRAMS = g3d-stat$(EXEEXT)
36subdir = programs
37DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
38ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
39am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
40 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
41 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
42 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
43 $(top_srcdir)/configure.in
44am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
45 $(ACLOCAL_M4)
46mkinstalldirs = $(install_sh) -d
47CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
48CONFIG_CLEAN_FILES =
49am__installdirs = "$(DESTDIR)$(bindir)"
50binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
51PROGRAMS = $(bin_PROGRAMS)
52am_g3d_stat_OBJECTS = g3d-stat.$(OBJEXT)
53g3d_stat_OBJECTS = $(am_g3d_stat_OBJECTS)
54DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
55depcomp = $(SHELL) $(top_srcdir)/config/depcomp
56am__depfiles_maybe = depfiles
57COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
58 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
59LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
60 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
61 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
62CCLD = $(CC)
63LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
64 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
65 $(LDFLAGS) -o $@
66SOURCES = $(g3d_stat_SOURCES)
67DIST_SOURCES = $(g3d_stat_SOURCES)
68ETAGS = etags
69CTAGS = ctags
70DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
71ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
72AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
73AR = ar
74AS = as
75AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
76AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
77AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
78AWK = gawk
79CC = gcc
80CCDEPMODE = depmode=gcc3
81CFLAGS = -g -O2
82CPP = gcc -E
83CPPFLAGS =
84CXX = g++
85CXXCPP = g++ -E
86CXXDEPMODE = depmode=gcc3
87CXXFLAGS = -g -O2
88CYGPATH_W = echo
89DBG_CFLAGS = -O2
90DEBUG = 0
91DEFS = -DHAVE_CONFIG_H
92DEPDIR = .deps
93DLLTOOL = dlltool
94ECHO = echo
95ECHO_C =
96ECHO_N = -n
97ECHO_T =
98EGREP = /bin/grep -E
99EXEEXT =
100F77 =
101FFLAGS =
102GDKPIXBUF_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
103GDKPIXBUF_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
104GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
105GLIB_GENMARSHAL = glib-genmarshal
106GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
107GLIB_MKENUMS = glib-mkenums
108GOBJECT_QUERY = gobject-query
109GREP = /bin/grep
110GTKDOC_CHECK = /usr/bin/gtkdoc-check
111GTK_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
112GTK_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
113HTML_DIR = ${datadir}/gtk-doc/html
114INSTALL = /usr/bin/install -c
115INSTALL_DATA = ${INSTALL} -m 644
116INSTALL_PROGRAM = ${INSTALL}
117INSTALL_SCRIPT = ${INSTALL}
118INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
119LDFLAGS =
120LEX = flex
121LEXLIB = -lfl
122LEX_OUTPUT_ROOT = lex.yy
123LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
124LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
125LIBOBJS =
126LIBS = -lm
127LIBTOOL = $(SHELL) $(top_builddir)/libtool
128LIBXML2_CFLAGS = -I/usr/include/libxml2
129LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
130LN_S = ln -s
131LTLIBOBJS =
132LTVERSION = 0:8:0
133MAGIC_LIBS = -lmagic
134MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
135MATH_LIBS = -lm
136MKDIR_P = /bin/mkdir -p
137OBJDUMP = objdump
138OBJEXT = o
139PACKAGE = libg3d
140PACKAGE_BUGREPORT =
141PACKAGE_NAME =
142PACKAGE_STRING =
143PACKAGE_TARNAME =
144PACKAGE_VERSION =
145PATH_SEPARATOR = :
146PKG_CONFIG = /usr/bin/pkg-config
147PLUGINS_LDFLAGS = -avoid-version -export-dynamic
148RANLIB = ranlib
149SET_MAKE =
150SHELL = /bin/bash
151STRIP = strip
152VERSION = 0.0.8
153XML2_CONFIG = /usr/bin/xml2-config
154XML_CPPFLAGS = -I/usr/include/libxml2
155XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
156Z_CFLAGS =
157Z_LIBS = -lz
158abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/programs
159abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/programs
160abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
161abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
162ac_ct_CC = gcc
163ac_ct_CXX = g++
164ac_ct_F77 =
165am__include = include
166am__leading_dot = .
167am__quote =
168am__tar = ${AMTAR} chof - "$$tardir"
169am__untar = ${AMTAR} xf -
170bindir = ${exec_prefix}/bin
171build = x86_64-unknown-linux-gnu
172build_alias =
173build_cpu = x86_64
174build_os = linux-gnu
175build_vendor = unknown
176builddir = .
177datadir = ${datarootdir}
178datarootdir = ${prefix}/share
179docdir = ${datarootdir}/doc/${PACKAGE}
180dvidir = ${docdir}
181exec_prefix = ${prefix}
182host = x86_64-unknown-linux-gnu
183host_alias =
184host_cpu = x86_64
185host_os = linux-gnu
186host_vendor = unknown
187htmldir = ${docdir}
188includedir = ${prefix}/include
189infodir = ${datarootdir}/info
190install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
191libdir = ${exec_prefix}/lib
192libexecdir = ${exec_prefix}/libexec
193localedir = ${datarootdir}/locale
194localstatedir = ${prefix}/var
195mandir = ${datarootdir}/man
196mkdir_p = /bin/mkdir -p
197oldincludedir = /usr/include
198pdfdir = ${docdir}
199prefix = /usr/local
200program_transform_name = s,x,x,
201psdir = ${docdir}
202sbindir = ${exec_prefix}/sbin
203sharedstatedir = ${prefix}/com
204srcdir = .
205sysconfdir = ${prefix}/etc
206target_alias =
207top_builddir = ..
208top_srcdir = ..
209AM_CFLAGS = \
210 -Wall -ansi -pedantic \
211 -I$(top_srcdir)/include \
212 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
213
214g3d_stat_SOURCES = g3d-stat.c
215g3d_stat_DEPENDENCIES = ../src/libg3d.la
216g3d_stat_LDADD = ../src/libg3d.la -lm -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 -lmagic
217all: all-am
218
219.SUFFIXES:
220.SUFFIXES: .c .lo .o .obj
221$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
222 @for dep in $?; do \
223 case '$(am__configure_deps)' in \
224 *$$dep*) \
225 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
226 && exit 0; \
227 exit 1;; \
228 esac; \
229 done; \
230 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu programs/Makefile'; \
231 cd $(top_srcdir) && \
232 $(AUTOMAKE) --gnu programs/Makefile
233.PRECIOUS: Makefile
234Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
235 @case '$?' in \
236 *config.status*) \
237 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
238 *) \
239 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
240 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
241 esac;
242
243$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
244 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
245
246$(top_srcdir)/configure: $(am__configure_deps)
247 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
248$(ACLOCAL_M4): $(am__aclocal_m4_deps)
249 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
250install-binPROGRAMS: $(bin_PROGRAMS)
251 @$(NORMAL_INSTALL)
252 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
253 @list='$(bin_PROGRAMS)'; for p in $$list; do \
254 p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
255 if test -f $$p \
256 || test -f $$p1 \
257 ; then \
258 f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
259 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
260 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
261 else :; fi; \
262 done
263
264uninstall-binPROGRAMS:
265 @$(NORMAL_UNINSTALL)
266 @list='$(bin_PROGRAMS)'; for p in $$list; do \
267 f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
268 echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
269 rm -f "$(DESTDIR)$(bindir)/$$f"; \
270 done
271
272clean-binPROGRAMS:
273 @list='$(bin_PROGRAMS)'; for p in $$list; do \
274 f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
275 echo " rm -f $$p $$f"; \
276 rm -f $$p $$f ; \
277 done
278g3d-stat$(EXEEXT): $(g3d_stat_OBJECTS) $(g3d_stat_DEPENDENCIES)
279 @rm -f g3d-stat$(EXEEXT)
280 $(LINK) $(g3d_stat_OBJECTS) $(g3d_stat_LDADD) $(LIBS)
281
282mostlyclean-compile:
283 -rm -f *.$(OBJEXT)
284
285distclean-compile:
286 -rm -f *.tab.c
287
288include ./$(DEPDIR)/g3d-stat.Po
289
290.c.o:
291 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
292 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
293# source='$<' object='$@' libtool=no \
294# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
295# $(COMPILE) -c $<
296
297.c.obj:
298 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
299 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
300# source='$<' object='$@' libtool=no \
301# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
302# $(COMPILE) -c `$(CYGPATH_W) '$<'`
303
304.c.lo:
305 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
306 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
307# source='$<' object='$@' libtool=yes \
308# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
309# $(LTCOMPILE) -c -o $@ $<
310
311mostlyclean-libtool:
312 -rm -f *.lo
313
314clean-libtool:
315 -rm -rf .libs _libs
316
317ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
318 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
319 unique=`for i in $$list; do \
320 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
321 done | \
322 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
323 END { if (nonempty) { for (i in files) print i; }; }'`; \
324 mkid -fID $$unique
325tags: TAGS
326
327TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
328 $(TAGS_FILES) $(LISP)
329 tags=; \
330 here=`pwd`; \
331 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
332 unique=`for i in $$list; do \
333 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
334 done | \
335 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
336 END { if (nonempty) { for (i in files) print i; }; }'`; \
337 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
338 test -n "$$unique" || unique=$$empty_fix; \
339 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
340 $$tags $$unique; \
341 fi
342ctags: CTAGS
343CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
344 $(TAGS_FILES) $(LISP)
345 tags=; \
346 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
347 unique=`for i in $$list; do \
348 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
349 done | \
350 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
351 END { if (nonempty) { for (i in files) print i; }; }'`; \
352 test -z "$(CTAGS_ARGS)$$tags$$unique" \
353 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
354 $$tags $$unique
355
356GTAGS:
357 here=`$(am__cd) $(top_builddir) && pwd` \
358 && cd $(top_srcdir) \
359 && gtags -i $(GTAGS_ARGS) $$here
360
361distclean-tags:
362 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
363
364distdir: $(DISTFILES)
365 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
366 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
367 list='$(DISTFILES)'; \
368 dist_files=`for file in $$list; do echo $$file; done | \
369 sed -e "s|^$$srcdirstrip/||;t" \
370 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
371 case $$dist_files in \
372 */*) $(MKDIR_P) `echo "$$dist_files" | \
373 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
374 sort -u` ;; \
375 esac; \
376 for file in $$dist_files; do \
377 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
378 if test -d $$d/$$file; then \
379 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
380 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
381 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
382 fi; \
383 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
384 else \
385 test -f $(distdir)/$$file \
386 || cp -p $$d/$$file $(distdir)/$$file \
387 || exit 1; \
388 fi; \
389 done
390check-am: all-am
391check: check-am
392all-am: Makefile $(PROGRAMS)
393installdirs:
394 for dir in "$(DESTDIR)$(bindir)"; do \
395 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
396 done
397install: install-am
398install-exec: install-exec-am
399install-data: install-data-am
400uninstall: uninstall-am
401
402install-am: all-am
403 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
404
405installcheck: installcheck-am
406install-strip:
407 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
408 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
409 `test -z '$(STRIP)' || \
410 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
411mostlyclean-generic:
412
413clean-generic:
414
415distclean-generic:
416 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
417
418maintainer-clean-generic:
419 @echo "This command is intended for maintainers to use"
420 @echo "it deletes files that may require special tools to rebuild."
421clean: clean-am
422
423clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
424
425distclean: distclean-am
426 -rm -rf ./$(DEPDIR)
427 -rm -f Makefile
428distclean-am: clean-am distclean-compile distclean-generic \
429 distclean-tags
430
431dvi: dvi-am
432
433dvi-am:
434
435html: html-am
436
437info: info-am
438
439info-am:
440
441install-data-am:
442
443install-dvi: install-dvi-am
444
445install-exec-am: install-binPROGRAMS
446
447install-html: install-html-am
448
449install-info: install-info-am
450
451install-man:
452
453install-pdf: install-pdf-am
454
455install-ps: install-ps-am
456
457installcheck-am:
458
459maintainer-clean: maintainer-clean-am
460 -rm -rf ./$(DEPDIR)
461 -rm -f Makefile
462maintainer-clean-am: distclean-am maintainer-clean-generic
463
464mostlyclean: mostlyclean-am
465
466mostlyclean-am: mostlyclean-compile mostlyclean-generic \
467 mostlyclean-libtool
468
469pdf: pdf-am
470
471pdf-am:
472
473ps: ps-am
474
475ps-am:
476
477uninstall-am: uninstall-binPROGRAMS
478
479.MAKE: install-am install-strip
480
481.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
482 clean-generic clean-libtool ctags distclean distclean-compile \
483 distclean-generic distclean-libtool distclean-tags distdir dvi \
484 dvi-am html html-am info info-am install install-am \
485 install-binPROGRAMS install-data install-data-am install-dvi \
486 install-dvi-am install-exec install-exec-am install-html \
487 install-html-am install-info install-info-am install-man \
488 install-pdf install-pdf-am install-ps install-ps-am \
489 install-strip installcheck installcheck-am installdirs \
490 maintainer-clean maintainer-clean-generic mostlyclean \
491 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
492 pdf pdf-am ps ps-am tags uninstall uninstall-am \
493 uninstall-binPROGRAMS
494
495# Tell versions [3.59,3.63) of GNU make to not export all variables.
496# Otherwise a system limit (for SysV at least) may be exceeded.
497.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/programs/Makefile.am b/src/others/mimesh/libg3d-0.0.8/programs/Makefile.am
new file mode 100644
index 0000000..28775f3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/programs/Makefile.am
@@ -0,0 +1,10 @@
1bin_PROGRAMS = g3d-stat
2
3AM_CFLAGS = \
4 -Wall -ansi -pedantic \
5 -I$(top_srcdir)/include \
6 @GLIB_CFLAGS@
7
8g3d_stat_SOURCES = g3d-stat.c
9g3d_stat_DEPENDENCIES =../src/libg3d.la
10g3d_stat_LDADD = ../src/libg3d.la -lm @GLIB_LIBS@ @MAGIC_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/programs/Makefile.in b/src/others/mimesh/libg3d-0.0.8/programs/Makefile.in
new file mode 100644
index 0000000..1655792
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/programs/Makefile.in
@@ -0,0 +1,497 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35bin_PROGRAMS = g3d-stat$(EXEEXT)
36subdir = programs
37DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
38ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
39am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
40 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
41 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
42 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
43 $(top_srcdir)/configure.in
44am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
45 $(ACLOCAL_M4)
46mkinstalldirs = $(install_sh) -d
47CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
48CONFIG_CLEAN_FILES =
49am__installdirs = "$(DESTDIR)$(bindir)"
50binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
51PROGRAMS = $(bin_PROGRAMS)
52am_g3d_stat_OBJECTS = g3d-stat.$(OBJEXT)
53g3d_stat_OBJECTS = $(am_g3d_stat_OBJECTS)
54DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
55depcomp = $(SHELL) $(top_srcdir)/config/depcomp
56am__depfiles_maybe = depfiles
57COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
58 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
59LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
60 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
61 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
62CCLD = $(CC)
63LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
64 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
65 $(LDFLAGS) -o $@
66SOURCES = $(g3d_stat_SOURCES)
67DIST_SOURCES = $(g3d_stat_SOURCES)
68ETAGS = etags
69CTAGS = ctags
70DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
71ACLOCAL = @ACLOCAL@
72AMTAR = @AMTAR@
73AR = @AR@
74AS = @AS@
75AUTOCONF = @AUTOCONF@
76AUTOHEADER = @AUTOHEADER@
77AUTOMAKE = @AUTOMAKE@
78AWK = @AWK@
79CC = @CC@
80CCDEPMODE = @CCDEPMODE@
81CFLAGS = @CFLAGS@
82CPP = @CPP@
83CPPFLAGS = @CPPFLAGS@
84CXX = @CXX@
85CXXCPP = @CXXCPP@
86CXXDEPMODE = @CXXDEPMODE@
87CXXFLAGS = @CXXFLAGS@
88CYGPATH_W = @CYGPATH_W@
89DBG_CFLAGS = @DBG_CFLAGS@
90DEBUG = @DEBUG@
91DEFS = @DEFS@
92DEPDIR = @DEPDIR@
93DLLTOOL = @DLLTOOL@
94ECHO = @ECHO@
95ECHO_C = @ECHO_C@
96ECHO_N = @ECHO_N@
97ECHO_T = @ECHO_T@
98EGREP = @EGREP@
99EXEEXT = @EXEEXT@
100F77 = @F77@
101FFLAGS = @FFLAGS@
102GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
103GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
104GLIB_CFLAGS = @GLIB_CFLAGS@
105GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
106GLIB_LIBS = @GLIB_LIBS@
107GLIB_MKENUMS = @GLIB_MKENUMS@
108GOBJECT_QUERY = @GOBJECT_QUERY@
109GREP = @GREP@
110GTKDOC_CHECK = @GTKDOC_CHECK@
111GTK_CFLAGS = @GTK_CFLAGS@
112GTK_LIBS = @GTK_LIBS@
113HTML_DIR = @HTML_DIR@
114INSTALL = @INSTALL@
115INSTALL_DATA = @INSTALL_DATA@
116INSTALL_PROGRAM = @INSTALL_PROGRAM@
117INSTALL_SCRIPT = @INSTALL_SCRIPT@
118INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
119LDFLAGS = @LDFLAGS@
120LEX = @LEX@
121LEXLIB = @LEXLIB@
122LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
123LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
124LIBGSF_LIBS = @LIBGSF_LIBS@
125LIBOBJS = @LIBOBJS@
126LIBS = @LIBS@
127LIBTOOL = @LIBTOOL@
128LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
129LIBXML2_LIBS = @LIBXML2_LIBS@
130LN_S = @LN_S@
131LTLIBOBJS = @LTLIBOBJS@
132LTVERSION = @LTVERSION@
133MAGIC_LIBS = @MAGIC_LIBS@
134MAKEINFO = @MAKEINFO@
135MATH_LIBS = @MATH_LIBS@
136MKDIR_P = @MKDIR_P@
137OBJDUMP = @OBJDUMP@
138OBJEXT = @OBJEXT@
139PACKAGE = @PACKAGE@
140PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
141PACKAGE_NAME = @PACKAGE_NAME@
142PACKAGE_STRING = @PACKAGE_STRING@
143PACKAGE_TARNAME = @PACKAGE_TARNAME@
144PACKAGE_VERSION = @PACKAGE_VERSION@
145PATH_SEPARATOR = @PATH_SEPARATOR@
146PKG_CONFIG = @PKG_CONFIG@
147PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
148RANLIB = @RANLIB@
149SET_MAKE = @SET_MAKE@
150SHELL = @SHELL@
151STRIP = @STRIP@
152VERSION = @VERSION@
153XML2_CONFIG = @XML2_CONFIG@
154XML_CPPFLAGS = @XML_CPPFLAGS@
155XML_LIBS = @XML_LIBS@
156Z_CFLAGS = @Z_CFLAGS@
157Z_LIBS = @Z_LIBS@
158abs_builddir = @abs_builddir@
159abs_srcdir = @abs_srcdir@
160abs_top_builddir = @abs_top_builddir@
161abs_top_srcdir = @abs_top_srcdir@
162ac_ct_CC = @ac_ct_CC@
163ac_ct_CXX = @ac_ct_CXX@
164ac_ct_F77 = @ac_ct_F77@
165am__include = @am__include@
166am__leading_dot = @am__leading_dot@
167am__quote = @am__quote@
168am__tar = @am__tar@
169am__untar = @am__untar@
170bindir = @bindir@
171build = @build@
172build_alias = @build_alias@
173build_cpu = @build_cpu@
174build_os = @build_os@
175build_vendor = @build_vendor@
176builddir = @builddir@
177datadir = @datadir@
178datarootdir = @datarootdir@
179docdir = @docdir@
180dvidir = @dvidir@
181exec_prefix = @exec_prefix@
182host = @host@
183host_alias = @host_alias@
184host_cpu = @host_cpu@
185host_os = @host_os@
186host_vendor = @host_vendor@
187htmldir = @htmldir@
188includedir = @includedir@
189infodir = @infodir@
190install_sh = @install_sh@
191libdir = @libdir@
192libexecdir = @libexecdir@
193localedir = @localedir@
194localstatedir = @localstatedir@
195mandir = @mandir@
196mkdir_p = @mkdir_p@
197oldincludedir = @oldincludedir@
198pdfdir = @pdfdir@
199prefix = @prefix@
200program_transform_name = @program_transform_name@
201psdir = @psdir@
202sbindir = @sbindir@
203sharedstatedir = @sharedstatedir@
204srcdir = @srcdir@
205sysconfdir = @sysconfdir@
206target_alias = @target_alias@
207top_builddir = @top_builddir@
208top_srcdir = @top_srcdir@
209AM_CFLAGS = \
210 -Wall -ansi -pedantic \
211 -I$(top_srcdir)/include \
212 @GLIB_CFLAGS@
213
214g3d_stat_SOURCES = g3d-stat.c
215g3d_stat_DEPENDENCIES = ../src/libg3d.la
216g3d_stat_LDADD = ../src/libg3d.la -lm @GLIB_LIBS@ @MAGIC_LIBS@
217all: all-am
218
219.SUFFIXES:
220.SUFFIXES: .c .lo .o .obj
221$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
222 @for dep in $?; do \
223 case '$(am__configure_deps)' in \
224 *$$dep*) \
225 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
226 && exit 0; \
227 exit 1;; \
228 esac; \
229 done; \
230 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu programs/Makefile'; \
231 cd $(top_srcdir) && \
232 $(AUTOMAKE) --gnu programs/Makefile
233.PRECIOUS: Makefile
234Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
235 @case '$?' in \
236 *config.status*) \
237 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
238 *) \
239 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
240 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
241 esac;
242
243$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
244 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
245
246$(top_srcdir)/configure: $(am__configure_deps)
247 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
248$(ACLOCAL_M4): $(am__aclocal_m4_deps)
249 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
250install-binPROGRAMS: $(bin_PROGRAMS)
251 @$(NORMAL_INSTALL)
252 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
253 @list='$(bin_PROGRAMS)'; for p in $$list; do \
254 p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
255 if test -f $$p \
256 || test -f $$p1 \
257 ; then \
258 f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
259 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
260 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
261 else :; fi; \
262 done
263
264uninstall-binPROGRAMS:
265 @$(NORMAL_UNINSTALL)
266 @list='$(bin_PROGRAMS)'; for p in $$list; do \
267 f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
268 echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
269 rm -f "$(DESTDIR)$(bindir)/$$f"; \
270 done
271
272clean-binPROGRAMS:
273 @list='$(bin_PROGRAMS)'; for p in $$list; do \
274 f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
275 echo " rm -f $$p $$f"; \
276 rm -f $$p $$f ; \
277 done
278g3d-stat$(EXEEXT): $(g3d_stat_OBJECTS) $(g3d_stat_DEPENDENCIES)
279 @rm -f g3d-stat$(EXEEXT)
280 $(LINK) $(g3d_stat_OBJECTS) $(g3d_stat_LDADD) $(LIBS)
281
282mostlyclean-compile:
283 -rm -f *.$(OBJEXT)
284
285distclean-compile:
286 -rm -f *.tab.c
287
288@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g3d-stat.Po@am__quote@
289
290.c.o:
291@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
292@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
293@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
294@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
295@am__fastdepCC_FALSE@ $(COMPILE) -c $<
296
297.c.obj:
298@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
299@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
300@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
301@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
302@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
303
304.c.lo:
305@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
306@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
307@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
308@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
309@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
310
311mostlyclean-libtool:
312 -rm -f *.lo
313
314clean-libtool:
315 -rm -rf .libs _libs
316
317ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
318 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
319 unique=`for i in $$list; do \
320 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
321 done | \
322 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
323 END { if (nonempty) { for (i in files) print i; }; }'`; \
324 mkid -fID $$unique
325tags: TAGS
326
327TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
328 $(TAGS_FILES) $(LISP)
329 tags=; \
330 here=`pwd`; \
331 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
332 unique=`for i in $$list; do \
333 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
334 done | \
335 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
336 END { if (nonempty) { for (i in files) print i; }; }'`; \
337 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
338 test -n "$$unique" || unique=$$empty_fix; \
339 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
340 $$tags $$unique; \
341 fi
342ctags: CTAGS
343CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
344 $(TAGS_FILES) $(LISP)
345 tags=; \
346 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
347 unique=`for i in $$list; do \
348 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
349 done | \
350 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
351 END { if (nonempty) { for (i in files) print i; }; }'`; \
352 test -z "$(CTAGS_ARGS)$$tags$$unique" \
353 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
354 $$tags $$unique
355
356GTAGS:
357 here=`$(am__cd) $(top_builddir) && pwd` \
358 && cd $(top_srcdir) \
359 && gtags -i $(GTAGS_ARGS) $$here
360
361distclean-tags:
362 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
363
364distdir: $(DISTFILES)
365 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
366 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
367 list='$(DISTFILES)'; \
368 dist_files=`for file in $$list; do echo $$file; done | \
369 sed -e "s|^$$srcdirstrip/||;t" \
370 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
371 case $$dist_files in \
372 */*) $(MKDIR_P) `echo "$$dist_files" | \
373 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
374 sort -u` ;; \
375 esac; \
376 for file in $$dist_files; do \
377 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
378 if test -d $$d/$$file; then \
379 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
380 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
381 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
382 fi; \
383 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
384 else \
385 test -f $(distdir)/$$file \
386 || cp -p $$d/$$file $(distdir)/$$file \
387 || exit 1; \
388 fi; \
389 done
390check-am: all-am
391check: check-am
392all-am: Makefile $(PROGRAMS)
393installdirs:
394 for dir in "$(DESTDIR)$(bindir)"; do \
395 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
396 done
397install: install-am
398install-exec: install-exec-am
399install-data: install-data-am
400uninstall: uninstall-am
401
402install-am: all-am
403 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
404
405installcheck: installcheck-am
406install-strip:
407 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
408 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
409 `test -z '$(STRIP)' || \
410 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
411mostlyclean-generic:
412
413clean-generic:
414
415distclean-generic:
416 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
417
418maintainer-clean-generic:
419 @echo "This command is intended for maintainers to use"
420 @echo "it deletes files that may require special tools to rebuild."
421clean: clean-am
422
423clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
424
425distclean: distclean-am
426 -rm -rf ./$(DEPDIR)
427 -rm -f Makefile
428distclean-am: clean-am distclean-compile distclean-generic \
429 distclean-tags
430
431dvi: dvi-am
432
433dvi-am:
434
435html: html-am
436
437info: info-am
438
439info-am:
440
441install-data-am:
442
443install-dvi: install-dvi-am
444
445install-exec-am: install-binPROGRAMS
446
447install-html: install-html-am
448
449install-info: install-info-am
450
451install-man:
452
453install-pdf: install-pdf-am
454
455install-ps: install-ps-am
456
457installcheck-am:
458
459maintainer-clean: maintainer-clean-am
460 -rm -rf ./$(DEPDIR)
461 -rm -f Makefile
462maintainer-clean-am: distclean-am maintainer-clean-generic
463
464mostlyclean: mostlyclean-am
465
466mostlyclean-am: mostlyclean-compile mostlyclean-generic \
467 mostlyclean-libtool
468
469pdf: pdf-am
470
471pdf-am:
472
473ps: ps-am
474
475ps-am:
476
477uninstall-am: uninstall-binPROGRAMS
478
479.MAKE: install-am install-strip
480
481.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
482 clean-generic clean-libtool ctags distclean distclean-compile \
483 distclean-generic distclean-libtool distclean-tags distdir dvi \
484 dvi-am html html-am info info-am install install-am \
485 install-binPROGRAMS install-data install-data-am install-dvi \
486 install-dvi-am install-exec install-exec-am install-html \
487 install-html-am install-info install-info-am install-man \
488 install-pdf install-pdf-am install-ps install-ps-am \
489 install-strip installcheck installcheck-am installdirs \
490 maintainer-clean maintainer-clean-generic mostlyclean \
491 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
492 pdf pdf-am ps ps-am tags uninstall uninstall-am \
493 uninstall-binPROGRAMS
494
495# Tell versions [3.59,3.63) of GNU make to not export all variables.
496# Otherwise a system limit (for SysV at least) may be exceeded.
497.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/programs/g3d-stat.c b/src/others/mimesh/libg3d-0.0.8/programs/g3d-stat.c
new file mode 100644
index 0000000..af04835
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/programs/g3d-stat.c
@@ -0,0 +1,324 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <stdio.h>
23#include <stdlib.h>
24#include <string.h>
25#include <signal.h>
26#include <g3d/g3d.h>
27#include <g3d/plugins.h>
28
29typedef struct {
30 guint32 n_objects;
31 guint32 n_vertices;
32 guint32 n_faces;
33 guint32 n_textures;
34} FileStats;
35
36typedef struct {
37 guint32 n_success;
38 guint32 n_failure;
39 GSList *no_objects;
40 GSList *no_faces;
41 GSList *no_vertices;
42} PluginStats;
43
44typedef struct {
45 G3DContext *context;
46 gboolean use_color;
47 FILE *ftree;
48} Config;
49
50static gboolean quit = FALSE;
51
52static void show_help(void);
53static Config *get_config(gint *argc, gchar ***argv);
54static gboolean dir_stat(Config *config, const char *dirname);
55static gboolean file_stat(Config *config, const char *filename,
56 gboolean detailed, FileStats *stats, gchar **plugin_used);
57
58static void sighandler(int signal)
59{
60 quit = TRUE;
61 fprintf(stderr, "signal %d received, quitting\n", signal);
62}
63
64static void _g_print(const gchar *str)
65{
66#if 0
67 fputs(str, stderr);
68#endif
69}
70
71#define ANSI_RESET "\033[0m"
72#define ANSI_GREEN "\033[32m"
73#define ANSI_RED "\033[31m"
74
75static void log_handler(const gchar *log_domain, GLogLevelFlags log_level,
76 const gchar *message, gpointer user_data)
77{
78 Config *config = user_data;
79
80 if(message[0] == '\\') {
81 if(config->use_color)
82 fprintf(config->ftree, ANSI_GREEN "%s\n" ANSI_RESET, message + 1);
83 else
84 fprintf(config->ftree, "%s\n", message + 1);
85 } else if(message[0] == '|') {
86 printf("%s\n", message + 1);
87 } else {
88 if(config->use_color)
89 printf(ANSI_RED "%s\n" ANSI_RESET, message);
90 else
91 printf("%s\n", message);
92 }
93}
94
95int main(int argc, char **argv)
96{
97 Config *config;
98
99 signal(SIGINT, sighandler);
100#ifdef SIGQUIT
101 signal(SIGQUIT, sighandler);
102#endif
103
104 config = get_config(&argc, &argv);
105
106 if(argc < 1) {
107 show_help();
108 exit(EXIT_FAILURE);
109 }
110
111 g_set_print_handler(_g_print);
112 g_set_printerr_handler(_g_print);
113 g_log_set_handler("LibG3D", G_LOG_LEVEL_MASK, log_handler, config);
114
115 config->context = g3d_context_new();
116
117 if(g_file_test(argv[0], G_FILE_TEST_IS_DIR)) {
118 return dir_stat(config, argv[0]);
119 }
120 else {
121 return file_stat(config, argv[0], TRUE, NULL, NULL);
122 }
123}
124
125static Config *get_config(gint *argc, gchar ***argv)
126{
127 Config *config;
128 guint32 skip = 1; /* skip program name by default */
129 gint32 i;
130 gchar *opt;
131
132 config = g_new0(Config, 1);
133 config->use_color = TRUE;
134 config->ftree = stdout;
135
136 for(i = 1; i < *argc; i ++) {
137 if(strncmp((*argv)[i], "--", 2) != 0)
138 break;
139 skip ++;
140 opt = (*argv)[i] + 2;
141 if(strcmp(opt, "help") == 0) {
142 show_help();
143 exit(EXIT_FAILURE);
144 } else if(strcmp(opt, "nocolor") == 0) {
145 config->use_color = FALSE;
146 } else if(strncmp(opt, "tree=", 5) == 0) {
147 config->use_color = FALSE;
148 config->ftree = fopen(opt + 5, "w");
149 if(config->ftree == NULL) {
150 perror("error opening tree output file");
151 exit(EXIT_FAILURE);
152 }
153 }
154 }
155
156 *argc -= skip;
157 *argv = &((*argv)[skip]);
158
159 return config;
160}
161
162static void show_help(void)
163{
164 fprintf(stderr,
165 "usage: g3d-stat [<option> ...] (file|directory)\n"
166 "\n"
167 "options:\n"
168 " --help show this message\n"
169 " --nocolor disable ANSI color output\n"
170 " --tree=<filename> redirect tree output to file <filename>\n"
171 );
172}
173
174static gboolean dir_stat_1(Config *config, const char *dirname,
175 GHashTable *plugins)
176{
177 GDir *dir;
178 FileStats *fstats;
179 PluginStats *pstats;
180 const gchar *fname;
181 gchar *filename, *plugin_used;
182 gboolean retval;
183
184 dir = g_dir_open(dirname, 0, NULL);
185 g_return_val_if_fail(dir != NULL, FALSE);
186 while((fname = g_dir_read_name(dir)) != NULL) {
187 filename = g_strdup_printf("%s%c%s",
188 dirname, G_DIR_SEPARATOR, fname);
189 if(quit)
190 return FALSE;
191 if(g_file_test(filename, G_FILE_TEST_IS_DIR))
192 dir_stat_1(config, filename, plugins);
193 else {
194 fstats = g_new0(FileStats, 1);
195 plugin_used = NULL;
196 fprintf(stderr, "*** DEBUG: %s\n", filename);
197 retval = file_stat(config, filename, FALSE, fstats, &plugin_used);
198 if(plugin_used) {
199 pstats = g_hash_table_lookup(plugins, plugin_used);
200 if(pstats)
201 g_free(plugin_used);
202 else {
203 pstats = g_new0(PluginStats, 1);
204 g_hash_table_insert(plugins, plugin_used, pstats);
205 }
206
207 /* update pstats for plugin */
208 if(retval)
209 pstats->n_success ++;
210 else
211 pstats->n_failure ++;
212
213 if(fstats->n_objects == 0)
214 pstats->no_objects = g_slist_append(pstats->no_objects,
215 g_strdup(filename));
216 else if(fstats->n_vertices == 0)
217 pstats->no_vertices = g_slist_append(pstats->no_vertices,
218 g_strdup(filename));
219 else if(fstats->n_faces == 0)
220 pstats->no_faces = g_slist_append(pstats->no_faces,
221 g_strdup(filename));
222 } /* plugin_used */
223 g_free(fstats);
224 } /* !directory */
225 g_free(filename);
226 }
227 g_dir_close(dir);
228 return TRUE;
229}
230
231static void output_plugin_stats(gpointer key, gpointer value, gpointer data)
232{
233 gchar *name = (gchar *)key;
234 PluginStats *pstats = (PluginStats *)value;
235 GSList *item;
236
237 printf("%s:\n"
238 " num success: %d\n"
239 " num failure: %d\n"
240 " num no objects: %d\n",
241 name, pstats->n_success, pstats->n_failure,
242 g_slist_length(pstats->no_objects));
243 for(item = pstats->no_objects; item != NULL; item = item->next)
244 printf(" %s\n", (gchar *)item->data);
245 printf(" num no vertices: %d\n", g_slist_length(pstats->no_vertices));
246 for(item = pstats->no_vertices; item != NULL; item = item->next)
247 printf(" %s\n", (gchar *)item->data);
248 printf(" num no faces: %d\n", g_slist_length(pstats->no_faces));
249 for(item = pstats->no_faces; item != NULL; item = item->next)
250 printf(" %s\n", (gchar *)item->data);
251}
252
253static gboolean dir_stat(Config *config, const char *dirname)
254{
255 GHashTable *plugins;
256
257 plugins = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free);
258
259 dir_stat_1(config, dirname, plugins);
260
261 /* output statistics */
262 g_hash_table_foreach(plugins, output_plugin_stats, NULL);
263
264 g_hash_table_destroy(plugins);
265
266 return TRUE;
267}
268
269static gboolean objects_stat(GSList *objects, gboolean detailed,
270 FileStats *stats, guint32 indent)
271{
272 GSList *item;
273 G3DObject *object;
274 gchar *istr;
275
276 if(stats)
277 stats->n_objects += g_slist_length(objects);
278
279 for(item = objects; item != NULL; item = item->next) {
280 object = (G3DObject *)item->data;
281 g_return_val_if_fail(object != NULL, FALSE);
282
283 if(stats) {
284 stats->n_vertices += object->vertex_count;
285 stats->n_faces += g_slist_length(object->faces);
286 }
287
288 if(detailed) {
289 istr = g_strnfill(indent * 2, ' ');
290 printf("%sobject name: %s\n"
291 "%sobject num vertices: %d\n"
292 "%sobject num faces: %d\n"
293 "%sobject num subobjects: %d\n",
294 istr, object->name,
295 istr, object->vertex_count,
296 istr, g_slist_length(object->faces),
297 istr, g_slist_length(object->objects));
298 g_free(istr);
299 }
300
301 objects_stat(object->objects, detailed, stats, indent + 1);
302 }
303
304 return TRUE;
305}
306
307static gboolean file_stat(Config *config, const char *filename,
308 gboolean detailed, FileStats *stats, gchar **plugin_used)
309{
310 G3DModel *model;
311
312 model = g3d_model_load(config->context, filename);
313 if(model == NULL) {
314 return FALSE;
315 }
316
317 objects_stat(model->objects, detailed, stats, 0);
318 if(plugin_used && model->plugin)
319 *plugin_used = g_strdup(model->plugin->name);
320
321 g3d_model_free(model);
322
323 return TRUE;
324}
diff --git a/src/others/mimesh/libg3d-0.0.8/src/Makefile b/src/others/mimesh/libg3d-0.0.8/src/Makefile
new file mode 100644
index 0000000..429f44f
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/src/Makefile
@@ -0,0 +1,691 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# src/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35am__append_1 = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
36am__append_2 = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
37am__append_3 = stream_gsf.c stream_gsf_class.c stream_gsf_class.h
38am__append_4 =
39am__append_5 = -lz
40am__append_6 = stream_zlib.c
41subdir = src
42DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
43ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
44am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
45 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
46 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
47 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
48 $(top_srcdir)/configure.in
49am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
50 $(ACLOCAL_M4)
51mkinstalldirs = $(install_sh) -d
52CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
53CONFIG_CLEAN_FILES =
54am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
55am__vpath_adj = case $$p in \
56 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
57 *) f=$$p;; \
58 esac;
59am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
60am__installdirs = "$(DESTDIR)$(libdir)"
61libLTLIBRARIES_INSTALL = $(INSTALL)
62LTLIBRARIES = $(lib_LTLIBRARIES)
63am__DEPENDENCIES_1 =
64libg3d_la_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
65am__libg3d_la_SOURCES_DIST = context.c plugins.c model.c object.c \
66 face.c material.c texture.c stream.c stream_read.c \
67 stream_file.c stream_buffer.c read.c iff.c primitive.c \
68 vector.c matrix.c quat.c stream_gsf.c stream_gsf_class.c \
69 stream_gsf_class.h stream_zlib.c
70am__objects_1 = libg3d_la-stream_gsf.lo \
71 libg3d_la-stream_gsf_class.lo
72am__objects_2 = libg3d_la-stream_zlib.lo
73am_libg3d_la_OBJECTS = libg3d_la-context.lo libg3d_la-plugins.lo \
74 libg3d_la-model.lo libg3d_la-object.lo libg3d_la-face.lo \
75 libg3d_la-material.lo libg3d_la-texture.lo libg3d_la-stream.lo \
76 libg3d_la-stream_read.lo libg3d_la-stream_file.lo \
77 libg3d_la-stream_buffer.lo libg3d_la-read.lo libg3d_la-iff.lo \
78 libg3d_la-primitive.lo libg3d_la-vector.lo libg3d_la-matrix.lo \
79 libg3d_la-quat.lo $(am__objects_1) $(am__objects_2)
80libg3d_la_OBJECTS = $(am_libg3d_la_OBJECTS)
81libg3d_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
82 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libg3d_la_CFLAGS) \
83 $(CFLAGS) $(libg3d_la_LDFLAGS) $(LDFLAGS) -o $@
84DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
85depcomp = $(SHELL) $(top_srcdir)/config/depcomp
86am__depfiles_maybe = depfiles
87COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
88 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
89LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
90 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
91 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
92CCLD = $(CC)
93LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
94 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
95 $(LDFLAGS) -o $@
96SOURCES = $(libg3d_la_SOURCES)
97DIST_SOURCES = $(am__libg3d_la_SOURCES_DIST)
98ETAGS = etags
99CTAGS = ctags
100DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
101ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
102AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
103AR = ar
104AS = as
105AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
106AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
107AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
108AWK = gawk
109CC = gcc
110CCDEPMODE = depmode=gcc3
111CFLAGS = -g -O2
112CPP = gcc -E
113CPPFLAGS =
114CXX = g++
115CXXCPP = g++ -E
116CXXDEPMODE = depmode=gcc3
117CXXFLAGS = -g -O2
118CYGPATH_W = echo
119DBG_CFLAGS = -O2
120DEBUG = 0
121DEFS = -DHAVE_CONFIG_H
122DEPDIR = .deps
123DLLTOOL = dlltool
124ECHO = echo
125ECHO_C =
126ECHO_N = -n
127ECHO_T =
128EGREP = /bin/grep -E
129EXEEXT =
130F77 =
131FFLAGS =
132GDKPIXBUF_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
133GDKPIXBUF_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
134GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
135GLIB_GENMARSHAL = glib-genmarshal
136GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
137GLIB_MKENUMS = glib-mkenums
138GOBJECT_QUERY = gobject-query
139GREP = /bin/grep
140GTKDOC_CHECK = /usr/bin/gtkdoc-check
141GTK_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
142GTK_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
143HTML_DIR = ${datadir}/gtk-doc/html
144INSTALL = /usr/bin/install -c
145INSTALL_DATA = ${INSTALL} -m 644
146INSTALL_PROGRAM = ${INSTALL}
147INSTALL_SCRIPT = ${INSTALL}
148INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
149LDFLAGS =
150LEX = flex
151LEXLIB = -lfl
152LEX_OUTPUT_ROOT = lex.yy
153LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
154LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
155LIBOBJS =
156LIBS = -lm
157LIBTOOL = $(SHELL) $(top_builddir)/libtool
158LIBXML2_CFLAGS = -I/usr/include/libxml2
159LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
160LN_S = ln -s
161LTLIBOBJS =
162LTVERSION = 0:8:0
163MAGIC_LIBS = -lmagic
164MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
165MATH_LIBS = -lm
166MKDIR_P = /bin/mkdir -p
167OBJDUMP = objdump
168OBJEXT = o
169PACKAGE = libg3d
170PACKAGE_BUGREPORT =
171PACKAGE_NAME =
172PACKAGE_STRING =
173PACKAGE_TARNAME =
174PACKAGE_VERSION =
175PATH_SEPARATOR = :
176PKG_CONFIG = /usr/bin/pkg-config
177PLUGINS_LDFLAGS = -avoid-version -export-dynamic
178RANLIB = ranlib
179SET_MAKE =
180SHELL = /bin/bash
181STRIP = strip
182VERSION = 0.0.8
183XML2_CONFIG = /usr/bin/xml2-config
184XML_CPPFLAGS = -I/usr/include/libxml2
185XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
186Z_CFLAGS =
187Z_LIBS = -lz
188abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/src
189abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/src
190abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
191abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
192ac_ct_CC = gcc
193ac_ct_CXX = g++
194ac_ct_F77 =
195am__include = include
196am__leading_dot = .
197am__quote =
198am__tar = ${AMTAR} chof - "$$tardir"
199am__untar = ${AMTAR} xf -
200bindir = ${exec_prefix}/bin
201build = x86_64-unknown-linux-gnu
202build_alias =
203build_cpu = x86_64
204build_os = linux-gnu
205build_vendor = unknown
206builddir = .
207datadir = ${datarootdir}
208datarootdir = ${prefix}/share
209docdir = ${datarootdir}/doc/${PACKAGE}
210dvidir = ${docdir}
211exec_prefix = ${prefix}
212host = x86_64-unknown-linux-gnu
213host_alias =
214host_cpu = x86_64
215host_os = linux-gnu
216host_vendor = unknown
217htmldir = ${docdir}
218includedir = ${prefix}/include
219infodir = ${datarootdir}/info
220install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
221libdir = ${exec_prefix}/lib
222libexecdir = ${exec_prefix}/libexec
223localedir = ${datarootdir}/locale
224localstatedir = ${prefix}/var
225mandir = ${datarootdir}/man
226mkdir_p = /bin/mkdir -p
227oldincludedir = /usr/include
228pdfdir = ${docdir}
229prefix = /usr/local
230program_transform_name = s,x,x,
231psdir = ${docdir}
232sbindir = ${exec_prefix}/sbin
233sharedstatedir = ${prefix}/com
234srcdir = .
235sysconfdir = ${prefix}/etc
236target_alias =
237top_builddir = ..
238top_srcdir = ..
239lib_LTLIBRARIES = libg3d.la
240libg3d_la_SOURCES = context.c plugins.c model.c object.c face.c \
241 material.c texture.c stream.c stream_read.c stream_file.c \
242 stream_buffer.c read.c iff.c primitive.c vector.c matrix.c \
243 quat.c $(am__append_3) $(am__append_6)
244INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include
245libg3d_la_CFLAGS = -Wall -ansi -pedantic -fstrict-aliasing \
246 -Wstrict-aliasing -DG_LOG_DOMAIN=\"LibG3D\" -O2 \
247 -DDEBUG=0 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include $(am__append_1) $(am__append_4)
248libg3d_la_LDFLAGS = \
249 -no-undefined -version-info 0:8:0
250
251libg3d_la_LIBADD = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 -lmagic -lm \
252 $(am__append_2) $(am__append_5)
253all: all-am
254
255.SUFFIXES:
256.SUFFIXES: .c .lo .o .obj
257$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
258 @for dep in $?; do \
259 case '$(am__configure_deps)' in \
260 *$$dep*) \
261 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
262 && exit 0; \
263 exit 1;; \
264 esac; \
265 done; \
266 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
267 cd $(top_srcdir) && \
268 $(AUTOMAKE) --gnu src/Makefile
269.PRECIOUS: Makefile
270Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
271 @case '$?' in \
272 *config.status*) \
273 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
274 *) \
275 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
276 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
277 esac;
278
279$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
280 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
281
282$(top_srcdir)/configure: $(am__configure_deps)
283 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
284$(ACLOCAL_M4): $(am__aclocal_m4_deps)
285 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
286install-libLTLIBRARIES: $(lib_LTLIBRARIES)
287 @$(NORMAL_INSTALL)
288 test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
289 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
290 if test -f $$p; then \
291 f=$(am__strip_dir) \
292 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
293 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
294 else :; fi; \
295 done
296
297uninstall-libLTLIBRARIES:
298 @$(NORMAL_UNINSTALL)
299 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
300 p=$(am__strip_dir) \
301 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
302 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
303 done
304
305clean-libLTLIBRARIES:
306 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
307 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
308 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
309 test "$$dir" != "$$p" || dir=.; \
310 echo "rm -f \"$${dir}/so_locations\""; \
311 rm -f "$${dir}/so_locations"; \
312 done
313libg3d.la: $(libg3d_la_OBJECTS) $(libg3d_la_DEPENDENCIES)
314 $(libg3d_la_LINK) -rpath $(libdir) $(libg3d_la_OBJECTS) $(libg3d_la_LIBADD) $(LIBS)
315
316mostlyclean-compile:
317 -rm -f *.$(OBJEXT)
318
319distclean-compile:
320 -rm -f *.tab.c
321
322include ./$(DEPDIR)/libg3d_la-context.Plo
323include ./$(DEPDIR)/libg3d_la-face.Plo
324include ./$(DEPDIR)/libg3d_la-iff.Plo
325include ./$(DEPDIR)/libg3d_la-material.Plo
326include ./$(DEPDIR)/libg3d_la-matrix.Plo
327include ./$(DEPDIR)/libg3d_la-model.Plo
328include ./$(DEPDIR)/libg3d_la-object.Plo
329include ./$(DEPDIR)/libg3d_la-plugins.Plo
330include ./$(DEPDIR)/libg3d_la-primitive.Plo
331include ./$(DEPDIR)/libg3d_la-quat.Plo
332include ./$(DEPDIR)/libg3d_la-read.Plo
333include ./$(DEPDIR)/libg3d_la-stream.Plo
334include ./$(DEPDIR)/libg3d_la-stream_buffer.Plo
335include ./$(DEPDIR)/libg3d_la-stream_file.Plo
336include ./$(DEPDIR)/libg3d_la-stream_gsf.Plo
337include ./$(DEPDIR)/libg3d_la-stream_gsf_class.Plo
338include ./$(DEPDIR)/libg3d_la-stream_read.Plo
339include ./$(DEPDIR)/libg3d_la-stream_zlib.Plo
340include ./$(DEPDIR)/libg3d_la-texture.Plo
341include ./$(DEPDIR)/libg3d_la-vector.Plo
342
343.c.o:
344 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
345 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
346# source='$<' object='$@' libtool=no \
347# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
348# $(COMPILE) -c $<
349
350.c.obj:
351 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
352 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
353# source='$<' object='$@' libtool=no \
354# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
355# $(COMPILE) -c `$(CYGPATH_W) '$<'`
356
357.c.lo:
358 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
359 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
360# source='$<' object='$@' libtool=yes \
361# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
362# $(LTCOMPILE) -c -o $@ $<
363
364libg3d_la-context.lo: context.c
365 $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-context.lo -MD -MP -MF $(DEPDIR)/libg3d_la-context.Tpo -c -o libg3d_la-context.lo `test -f 'context.c' || echo '$(srcdir)/'`context.c
366 mv -f $(DEPDIR)/libg3d_la-context.Tpo $(DEPDIR)/libg3d_la-context.Plo
367# source='context.c' object='libg3d_la-context.lo' libtool=yes \
368# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
369# $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-context.lo `test -f 'context.c' || echo '$(srcdir)/'`context.c
370
371libg3d_la-plugins.lo: plugins.c
372 $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-plugins.lo -MD -MP -MF $(DEPDIR)/libg3d_la-plugins.Tpo -c -o libg3d_la-plugins.lo `test -f 'plugins.c' || echo '$(srcdir)/'`plugins.c
373 mv -f $(DEPDIR)/libg3d_la-plugins.Tpo $(DEPDIR)/libg3d_la-plugins.Plo
374# source='plugins.c' object='libg3d_la-plugins.lo' libtool=yes \
375# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
376# $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-plugins.lo `test -f 'plugins.c' || echo '$(srcdir)/'`plugins.c
377
378libg3d_la-model.lo: model.c
379 $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-model.lo -MD -MP -MF $(DEPDIR)/libg3d_la-model.Tpo -c -o libg3d_la-model.lo `test -f 'model.c' || echo '$(srcdir)/'`model.c
380 mv -f $(DEPDIR)/libg3d_la-model.Tpo $(DEPDIR)/libg3d_la-model.Plo
381# source='model.c' object='libg3d_la-model.lo' libtool=yes \
382# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
383# $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-model.lo `test -f 'model.c' || echo '$(srcdir)/'`model.c
384
385libg3d_la-object.lo: object.c
386 $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-object.lo -MD -MP -MF $(DEPDIR)/libg3d_la-object.Tpo -c -o libg3d_la-object.lo `test -f 'object.c' || echo '$(srcdir)/'`object.c
387 mv -f $(DEPDIR)/libg3d_la-object.Tpo $(DEPDIR)/libg3d_la-object.Plo
388# source='object.c' object='libg3d_la-object.lo' libtool=yes \
389# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
390# $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-object.lo `test -f 'object.c' || echo '$(srcdir)/'`object.c
391
392libg3d_la-face.lo: face.c
393 $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-face.lo -MD -MP -MF $(DEPDIR)/libg3d_la-face.Tpo -c -o libg3d_la-face.lo `test -f 'face.c' || echo '$(srcdir)/'`face.c
394 mv -f $(DEPDIR)/libg3d_la-face.Tpo $(DEPDIR)/libg3d_la-face.Plo
395# source='face.c' object='libg3d_la-face.lo' libtool=yes \
396# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
397# $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-face.lo `test -f 'face.c' || echo '$(srcdir)/'`face.c
398
399libg3d_la-material.lo: material.c
400 $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-material.lo -MD -MP -MF $(DEPDIR)/libg3d_la-material.Tpo -c -o libg3d_la-material.lo `test -f 'material.c' || echo '$(srcdir)/'`material.c
401 mv -f $(DEPDIR)/libg3d_la-material.Tpo $(DEPDIR)/libg3d_la-material.Plo
402# source='material.c' object='libg3d_la-material.lo' libtool=yes \
403# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
404# $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-material.lo `test -f 'material.c' || echo '$(srcdir)/'`material.c
405
406libg3d_la-texture.lo: texture.c
407 $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-texture.lo -MD -MP -MF $(DEPDIR)/libg3d_la-texture.Tpo -c -o libg3d_la-texture.lo `test -f 'texture.c' || echo '$(srcdir)/'`texture.c
408 mv -f $(DEPDIR)/libg3d_la-texture.Tpo $(DEPDIR)/libg3d_la-texture.Plo
409# source='texture.c' object='libg3d_la-texture.lo' libtool=yes \
410# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
411# $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-texture.lo `test -f 'texture.c' || echo '$(srcdir)/'`texture.c
412
413libg3d_la-stream.lo: stream.c
414 $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-stream.lo -MD -MP -MF $(DEPDIR)/libg3d_la-stream.Tpo -c -o libg3d_la-stream.lo `test -f 'stream.c' || echo '$(srcdir)/'`stream.c
415 mv -f $(DEPDIR)/libg3d_la-stream.Tpo $(DEPDIR)/libg3d_la-stream.Plo
416# source='stream.c' object='libg3d_la-stream.lo' libtool=yes \
417# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
418# $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-stream.lo `test -f 'stream.c' || echo '$(srcdir)/'`stream.c
419
420libg3d_la-stream_read.lo: stream_read.c
421 $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-stream_read.lo -MD -MP -MF $(DEPDIR)/libg3d_la-stream_read.Tpo -c -o libg3d_la-stream_read.lo `test -f 'stream_read.c' || echo '$(srcdir)/'`stream_read.c
422 mv -f $(DEPDIR)/libg3d_la-stream_read.Tpo $(DEPDIR)/libg3d_la-stream_read.Plo
423# source='stream_read.c' object='libg3d_la-stream_read.lo' libtool=yes \
424# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
425# $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-stream_read.lo `test -f 'stream_read.c' || echo '$(srcdir)/'`stream_read.c
426
427libg3d_la-stream_file.lo: stream_file.c
428 $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-stream_file.lo -MD -MP -MF $(DEPDIR)/libg3d_la-stream_file.Tpo -c -o libg3d_la-stream_file.lo `test -f 'stream_file.c' || echo '$(srcdir)/'`stream_file.c
429 mv -f $(DEPDIR)/libg3d_la-stream_file.Tpo $(DEPDIR)/libg3d_la-stream_file.Plo
430# source='stream_file.c' object='libg3d_la-stream_file.lo' libtool=yes \
431# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
432# $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-stream_file.lo `test -f 'stream_file.c' || echo '$(srcdir)/'`stream_file.c
433
434libg3d_la-stream_buffer.lo: stream_buffer.c
435 $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-stream_buffer.lo -MD -MP -MF $(DEPDIR)/libg3d_la-stream_buffer.Tpo -c -o libg3d_la-stream_buffer.lo `test -f 'stream_buffer.c' || echo '$(srcdir)/'`stream_buffer.c
436 mv -f $(DEPDIR)/libg3d_la-stream_buffer.Tpo $(DEPDIR)/libg3d_la-stream_buffer.Plo
437# source='stream_buffer.c' object='libg3d_la-stream_buffer.lo' libtool=yes \
438# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
439# $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-stream_buffer.lo `test -f 'stream_buffer.c' || echo '$(srcdir)/'`stream_buffer.c
440
441libg3d_la-read.lo: read.c
442 $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-read.lo -MD -MP -MF $(DEPDIR)/libg3d_la-read.Tpo -c -o libg3d_la-read.lo `test -f 'read.c' || echo '$(srcdir)/'`read.c
443 mv -f $(DEPDIR)/libg3d_la-read.Tpo $(DEPDIR)/libg3d_la-read.Plo
444# source='read.c' object='libg3d_la-read.lo' libtool=yes \
445# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
446# $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-read.lo `test -f 'read.c' || echo '$(srcdir)/'`read.c
447
448libg3d_la-iff.lo: iff.c
449 $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-iff.lo -MD -MP -MF $(DEPDIR)/libg3d_la-iff.Tpo -c -o libg3d_la-iff.lo `test -f 'iff.c' || echo '$(srcdir)/'`iff.c
450 mv -f $(DEPDIR)/libg3d_la-iff.Tpo $(DEPDIR)/libg3d_la-iff.Plo
451# source='iff.c' object='libg3d_la-iff.lo' libtool=yes \
452# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
453# $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-iff.lo `test -f 'iff.c' || echo '$(srcdir)/'`iff.c
454
455libg3d_la-primitive.lo: primitive.c
456 $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-primitive.lo -MD -MP -MF $(DEPDIR)/libg3d_la-primitive.Tpo -c -o libg3d_la-primitive.lo `test -f 'primitive.c' || echo '$(srcdir)/'`primitive.c
457 mv -f $(DEPDIR)/libg3d_la-primitive.Tpo $(DEPDIR)/libg3d_la-primitive.Plo
458# source='primitive.c' object='libg3d_la-primitive.lo' libtool=yes \
459# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
460# $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-primitive.lo `test -f 'primitive.c' || echo '$(srcdir)/'`primitive.c
461
462libg3d_la-vector.lo: vector.c
463 $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-vector.lo -MD -MP -MF $(DEPDIR)/libg3d_la-vector.Tpo -c -o libg3d_la-vector.lo `test -f 'vector.c' || echo '$(srcdir)/'`vector.c
464 mv -f $(DEPDIR)/libg3d_la-vector.Tpo $(DEPDIR)/libg3d_la-vector.Plo
465# source='vector.c' object='libg3d_la-vector.lo' libtool=yes \
466# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
467# $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-vector.lo `test -f 'vector.c' || echo '$(srcdir)/'`vector.c
468
469libg3d_la-matrix.lo: matrix.c
470 $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-matrix.lo -MD -MP -MF $(DEPDIR)/libg3d_la-matrix.Tpo -c -o libg3d_la-matrix.lo `test -f 'matrix.c' || echo '$(srcdir)/'`matrix.c
471 mv -f $(DEPDIR)/libg3d_la-matrix.Tpo $(DEPDIR)/libg3d_la-matrix.Plo
472# source='matrix.c' object='libg3d_la-matrix.lo' libtool=yes \
473# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
474# $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-matrix.lo `test -f 'matrix.c' || echo '$(srcdir)/'`matrix.c
475
476libg3d_la-quat.lo: quat.c
477 $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-quat.lo -MD -MP -MF $(DEPDIR)/libg3d_la-quat.Tpo -c -o libg3d_la-quat.lo `test -f 'quat.c' || echo '$(srcdir)/'`quat.c
478 mv -f $(DEPDIR)/libg3d_la-quat.Tpo $(DEPDIR)/libg3d_la-quat.Plo
479# source='quat.c' object='libg3d_la-quat.lo' libtool=yes \
480# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
481# $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-quat.lo `test -f 'quat.c' || echo '$(srcdir)/'`quat.c
482
483libg3d_la-stream_gsf.lo: stream_gsf.c
484 $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-stream_gsf.lo -MD -MP -MF $(DEPDIR)/libg3d_la-stream_gsf.Tpo -c -o libg3d_la-stream_gsf.lo `test -f 'stream_gsf.c' || echo '$(srcdir)/'`stream_gsf.c
485 mv -f $(DEPDIR)/libg3d_la-stream_gsf.Tpo $(DEPDIR)/libg3d_la-stream_gsf.Plo
486# source='stream_gsf.c' object='libg3d_la-stream_gsf.lo' libtool=yes \
487# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
488# $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-stream_gsf.lo `test -f 'stream_gsf.c' || echo '$(srcdir)/'`stream_gsf.c
489
490libg3d_la-stream_gsf_class.lo: stream_gsf_class.c
491 $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-stream_gsf_class.lo -MD -MP -MF $(DEPDIR)/libg3d_la-stream_gsf_class.Tpo -c -o libg3d_la-stream_gsf_class.lo `test -f 'stream_gsf_class.c' || echo '$(srcdir)/'`stream_gsf_class.c
492 mv -f $(DEPDIR)/libg3d_la-stream_gsf_class.Tpo $(DEPDIR)/libg3d_la-stream_gsf_class.Plo
493# source='stream_gsf_class.c' object='libg3d_la-stream_gsf_class.lo' libtool=yes \
494# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
495# $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-stream_gsf_class.lo `test -f 'stream_gsf_class.c' || echo '$(srcdir)/'`stream_gsf_class.c
496
497libg3d_la-stream_zlib.lo: stream_zlib.c
498 $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-stream_zlib.lo -MD -MP -MF $(DEPDIR)/libg3d_la-stream_zlib.Tpo -c -o libg3d_la-stream_zlib.lo `test -f 'stream_zlib.c' || echo '$(srcdir)/'`stream_zlib.c
499 mv -f $(DEPDIR)/libg3d_la-stream_zlib.Tpo $(DEPDIR)/libg3d_la-stream_zlib.Plo
500# source='stream_zlib.c' object='libg3d_la-stream_zlib.lo' libtool=yes \
501# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
502# $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-stream_zlib.lo `test -f 'stream_zlib.c' || echo '$(srcdir)/'`stream_zlib.c
503
504mostlyclean-libtool:
505 -rm -f *.lo
506
507clean-libtool:
508 -rm -rf .libs _libs
509
510ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
511 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
512 unique=`for i in $$list; do \
513 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
514 done | \
515 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
516 END { if (nonempty) { for (i in files) print i; }; }'`; \
517 mkid -fID $$unique
518tags: TAGS
519
520TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
521 $(TAGS_FILES) $(LISP)
522 tags=; \
523 here=`pwd`; \
524 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
525 unique=`for i in $$list; do \
526 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
527 done | \
528 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
529 END { if (nonempty) { for (i in files) print i; }; }'`; \
530 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
531 test -n "$$unique" || unique=$$empty_fix; \
532 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
533 $$tags $$unique; \
534 fi
535ctags: CTAGS
536CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
537 $(TAGS_FILES) $(LISP)
538 tags=; \
539 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
540 unique=`for i in $$list; do \
541 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
542 done | \
543 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
544 END { if (nonempty) { for (i in files) print i; }; }'`; \
545 test -z "$(CTAGS_ARGS)$$tags$$unique" \
546 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
547 $$tags $$unique
548
549GTAGS:
550 here=`$(am__cd) $(top_builddir) && pwd` \
551 && cd $(top_srcdir) \
552 && gtags -i $(GTAGS_ARGS) $$here
553
554distclean-tags:
555 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
556
557distdir: $(DISTFILES)
558 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
559 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
560 list='$(DISTFILES)'; \
561 dist_files=`for file in $$list; do echo $$file; done | \
562 sed -e "s|^$$srcdirstrip/||;t" \
563 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
564 case $$dist_files in \
565 */*) $(MKDIR_P) `echo "$$dist_files" | \
566 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
567 sort -u` ;; \
568 esac; \
569 for file in $$dist_files; do \
570 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
571 if test -d $$d/$$file; then \
572 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
573 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
574 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
575 fi; \
576 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
577 else \
578 test -f $(distdir)/$$file \
579 || cp -p $$d/$$file $(distdir)/$$file \
580 || exit 1; \
581 fi; \
582 done
583check-am: all-am
584check: check-am
585all-am: Makefile $(LTLIBRARIES)
586installdirs:
587 for dir in "$(DESTDIR)$(libdir)"; do \
588 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
589 done
590install: install-am
591install-exec: install-exec-am
592install-data: install-data-am
593uninstall: uninstall-am
594
595install-am: all-am
596 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
597
598installcheck: installcheck-am
599install-strip:
600 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
601 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
602 `test -z '$(STRIP)' || \
603 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
604mostlyclean-generic:
605
606clean-generic:
607
608distclean-generic:
609 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
610
611maintainer-clean-generic:
612 @echo "This command is intended for maintainers to use"
613 @echo "it deletes files that may require special tools to rebuild."
614clean: clean-am
615
616clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
617 mostlyclean-am
618
619distclean: distclean-am
620 -rm -rf ./$(DEPDIR)
621 -rm -f Makefile
622distclean-am: clean-am distclean-compile distclean-generic \
623 distclean-tags
624
625dvi: dvi-am
626
627dvi-am:
628
629html: html-am
630
631info: info-am
632
633info-am:
634
635install-data-am:
636
637install-dvi: install-dvi-am
638
639install-exec-am: install-libLTLIBRARIES
640
641install-html: install-html-am
642
643install-info: install-info-am
644
645install-man:
646
647install-pdf: install-pdf-am
648
649install-ps: install-ps-am
650
651installcheck-am:
652
653maintainer-clean: maintainer-clean-am
654 -rm -rf ./$(DEPDIR)
655 -rm -f Makefile
656maintainer-clean-am: distclean-am maintainer-clean-generic
657
658mostlyclean: mostlyclean-am
659
660mostlyclean-am: mostlyclean-compile mostlyclean-generic \
661 mostlyclean-libtool
662
663pdf: pdf-am
664
665pdf-am:
666
667ps: ps-am
668
669ps-am:
670
671uninstall-am: uninstall-libLTLIBRARIES
672
673.MAKE: install-am install-strip
674
675.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
676 clean-libLTLIBRARIES clean-libtool ctags distclean \
677 distclean-compile distclean-generic distclean-libtool \
678 distclean-tags distdir dvi dvi-am html html-am info info-am \
679 install install-am install-data install-data-am install-dvi \
680 install-dvi-am install-exec install-exec-am install-html \
681 install-html-am install-info install-info-am \
682 install-libLTLIBRARIES install-man install-pdf install-pdf-am \
683 install-ps install-ps-am install-strip installcheck \
684 installcheck-am installdirs maintainer-clean \
685 maintainer-clean-generic mostlyclean mostlyclean-compile \
686 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
687 tags uninstall uninstall-am uninstall-libLTLIBRARIES
688
689# Tell versions [3.59,3.63) of GNU make to not export all variables.
690# Otherwise a system limit (for SysV at least) may be exceeded.
691.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/src/Makefile.am b/src/others/mimesh/libg3d-0.0.8/src/Makefile.am
new file mode 100644
index 0000000..98f8944
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/src/Makefile.am
@@ -0,0 +1,45 @@
1lib_LTLIBRARIES = libg3d.la
2
3libg3d_la_SOURCES = \
4 context.c \
5 plugins.c \
6 model.c \
7 object.c \
8 face.c \
9 material.c \
10 texture.c \
11 stream.c stream_read.c stream_file.c stream_buffer.c \
12 read.c \
13 iff.c \
14 primitive.c \
15 vector.c \
16 matrix.c \
17 quat.c
18
19INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include
20
21libg3d_la_CFLAGS = \
22 -Wall -ansi -pedantic \
23 -fstrict-aliasing -Wstrict-aliasing \
24 -DG_LOG_DOMAIN=\"LibG3D\" \
25 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
26 @GLIB_CFLAGS@
27
28libg3d_la_LDFLAGS = \
29 -no-undefined -version-info @LTVERSION@
30
31libg3d_la_LIBADD = \
32 @GLIB_LIBS@ \
33 @MAGIC_LIBS@ \
34 @MATH_LIBS@
35
36if HAVE_LIBGSF
37libg3d_la_CFLAGS += @LIBGSF_CFLAGS@
38libg3d_la_LIBADD += @LIBGSF_LIBS@
39libg3d_la_SOURCES += stream_gsf.c stream_gsf_class.c stream_gsf_class.h
40endif
41if HAVE_ZLIB
42libg3d_la_CFLAGS += @Z_CFLAGS@
43libg3d_la_LIBADD += @Z_LIBS@
44libg3d_la_SOURCES += stream_zlib.c
45endif
diff --git a/src/others/mimesh/libg3d-0.0.8/src/Makefile.in b/src/others/mimesh/libg3d-0.0.8/src/Makefile.in
new file mode 100644
index 0000000..196ddbd
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/src/Makefile.in
@@ -0,0 +1,691 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35@HAVE_LIBGSF_TRUE@am__append_1 = @LIBGSF_CFLAGS@
36@HAVE_LIBGSF_TRUE@am__append_2 = @LIBGSF_LIBS@
37@HAVE_LIBGSF_TRUE@am__append_3 = stream_gsf.c stream_gsf_class.c stream_gsf_class.h
38@HAVE_ZLIB_TRUE@am__append_4 = @Z_CFLAGS@
39@HAVE_ZLIB_TRUE@am__append_5 = @Z_LIBS@
40@HAVE_ZLIB_TRUE@am__append_6 = stream_zlib.c
41subdir = src
42DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
43ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
44am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
45 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
46 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
47 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
48 $(top_srcdir)/configure.in
49am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
50 $(ACLOCAL_M4)
51mkinstalldirs = $(install_sh) -d
52CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
53CONFIG_CLEAN_FILES =
54am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
55am__vpath_adj = case $$p in \
56 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
57 *) f=$$p;; \
58 esac;
59am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
60am__installdirs = "$(DESTDIR)$(libdir)"
61libLTLIBRARIES_INSTALL = $(INSTALL)
62LTLIBRARIES = $(lib_LTLIBRARIES)
63am__DEPENDENCIES_1 =
64libg3d_la_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
65am__libg3d_la_SOURCES_DIST = context.c plugins.c model.c object.c \
66 face.c material.c texture.c stream.c stream_read.c \
67 stream_file.c stream_buffer.c read.c iff.c primitive.c \
68 vector.c matrix.c quat.c stream_gsf.c stream_gsf_class.c \
69 stream_gsf_class.h stream_zlib.c
70@HAVE_LIBGSF_TRUE@am__objects_1 = libg3d_la-stream_gsf.lo \
71@HAVE_LIBGSF_TRUE@ libg3d_la-stream_gsf_class.lo
72@HAVE_ZLIB_TRUE@am__objects_2 = libg3d_la-stream_zlib.lo
73am_libg3d_la_OBJECTS = libg3d_la-context.lo libg3d_la-plugins.lo \
74 libg3d_la-model.lo libg3d_la-object.lo libg3d_la-face.lo \
75 libg3d_la-material.lo libg3d_la-texture.lo libg3d_la-stream.lo \
76 libg3d_la-stream_read.lo libg3d_la-stream_file.lo \
77 libg3d_la-stream_buffer.lo libg3d_la-read.lo libg3d_la-iff.lo \
78 libg3d_la-primitive.lo libg3d_la-vector.lo libg3d_la-matrix.lo \
79 libg3d_la-quat.lo $(am__objects_1) $(am__objects_2)
80libg3d_la_OBJECTS = $(am_libg3d_la_OBJECTS)
81libg3d_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
82 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libg3d_la_CFLAGS) \
83 $(CFLAGS) $(libg3d_la_LDFLAGS) $(LDFLAGS) -o $@
84DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
85depcomp = $(SHELL) $(top_srcdir)/config/depcomp
86am__depfiles_maybe = depfiles
87COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
88 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
89LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
90 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
91 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
92CCLD = $(CC)
93LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
94 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
95 $(LDFLAGS) -o $@
96SOURCES = $(libg3d_la_SOURCES)
97DIST_SOURCES = $(am__libg3d_la_SOURCES_DIST)
98ETAGS = etags
99CTAGS = ctags
100DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
101ACLOCAL = @ACLOCAL@
102AMTAR = @AMTAR@
103AR = @AR@
104AS = @AS@
105AUTOCONF = @AUTOCONF@
106AUTOHEADER = @AUTOHEADER@
107AUTOMAKE = @AUTOMAKE@
108AWK = @AWK@
109CC = @CC@
110CCDEPMODE = @CCDEPMODE@
111CFLAGS = @CFLAGS@
112CPP = @CPP@
113CPPFLAGS = @CPPFLAGS@
114CXX = @CXX@
115CXXCPP = @CXXCPP@
116CXXDEPMODE = @CXXDEPMODE@
117CXXFLAGS = @CXXFLAGS@
118CYGPATH_W = @CYGPATH_W@
119DBG_CFLAGS = @DBG_CFLAGS@
120DEBUG = @DEBUG@
121DEFS = @DEFS@
122DEPDIR = @DEPDIR@
123DLLTOOL = @DLLTOOL@
124ECHO = @ECHO@
125ECHO_C = @ECHO_C@
126ECHO_N = @ECHO_N@
127ECHO_T = @ECHO_T@
128EGREP = @EGREP@
129EXEEXT = @EXEEXT@
130F77 = @F77@
131FFLAGS = @FFLAGS@
132GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
133GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
134GLIB_CFLAGS = @GLIB_CFLAGS@
135GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
136GLIB_LIBS = @GLIB_LIBS@
137GLIB_MKENUMS = @GLIB_MKENUMS@
138GOBJECT_QUERY = @GOBJECT_QUERY@
139GREP = @GREP@
140GTKDOC_CHECK = @GTKDOC_CHECK@
141GTK_CFLAGS = @GTK_CFLAGS@
142GTK_LIBS = @GTK_LIBS@
143HTML_DIR = @HTML_DIR@
144INSTALL = @INSTALL@
145INSTALL_DATA = @INSTALL_DATA@
146INSTALL_PROGRAM = @INSTALL_PROGRAM@
147INSTALL_SCRIPT = @INSTALL_SCRIPT@
148INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
149LDFLAGS = @LDFLAGS@
150LEX = @LEX@
151LEXLIB = @LEXLIB@
152LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
153LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
154LIBGSF_LIBS = @LIBGSF_LIBS@
155LIBOBJS = @LIBOBJS@
156LIBS = @LIBS@
157LIBTOOL = @LIBTOOL@
158LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
159LIBXML2_LIBS = @LIBXML2_LIBS@
160LN_S = @LN_S@
161LTLIBOBJS = @LTLIBOBJS@
162LTVERSION = @LTVERSION@
163MAGIC_LIBS = @MAGIC_LIBS@
164MAKEINFO = @MAKEINFO@
165MATH_LIBS = @MATH_LIBS@
166MKDIR_P = @MKDIR_P@
167OBJDUMP = @OBJDUMP@
168OBJEXT = @OBJEXT@
169PACKAGE = @PACKAGE@
170PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
171PACKAGE_NAME = @PACKAGE_NAME@
172PACKAGE_STRING = @PACKAGE_STRING@
173PACKAGE_TARNAME = @PACKAGE_TARNAME@
174PACKAGE_VERSION = @PACKAGE_VERSION@
175PATH_SEPARATOR = @PATH_SEPARATOR@
176PKG_CONFIG = @PKG_CONFIG@
177PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
178RANLIB = @RANLIB@
179SET_MAKE = @SET_MAKE@
180SHELL = @SHELL@
181STRIP = @STRIP@
182VERSION = @VERSION@
183XML2_CONFIG = @XML2_CONFIG@
184XML_CPPFLAGS = @XML_CPPFLAGS@
185XML_LIBS = @XML_LIBS@
186Z_CFLAGS = @Z_CFLAGS@
187Z_LIBS = @Z_LIBS@
188abs_builddir = @abs_builddir@
189abs_srcdir = @abs_srcdir@
190abs_top_builddir = @abs_top_builddir@
191abs_top_srcdir = @abs_top_srcdir@
192ac_ct_CC = @ac_ct_CC@
193ac_ct_CXX = @ac_ct_CXX@
194ac_ct_F77 = @ac_ct_F77@
195am__include = @am__include@
196am__leading_dot = @am__leading_dot@
197am__quote = @am__quote@
198am__tar = @am__tar@
199am__untar = @am__untar@
200bindir = @bindir@
201build = @build@
202build_alias = @build_alias@
203build_cpu = @build_cpu@
204build_os = @build_os@
205build_vendor = @build_vendor@
206builddir = @builddir@
207datadir = @datadir@
208datarootdir = @datarootdir@
209docdir = @docdir@
210dvidir = @dvidir@
211exec_prefix = @exec_prefix@
212host = @host@
213host_alias = @host_alias@
214host_cpu = @host_cpu@
215host_os = @host_os@
216host_vendor = @host_vendor@
217htmldir = @htmldir@
218includedir = @includedir@
219infodir = @infodir@
220install_sh = @install_sh@
221libdir = @libdir@
222libexecdir = @libexecdir@
223localedir = @localedir@
224localstatedir = @localstatedir@
225mandir = @mandir@
226mkdir_p = @mkdir_p@
227oldincludedir = @oldincludedir@
228pdfdir = @pdfdir@
229prefix = @prefix@
230program_transform_name = @program_transform_name@
231psdir = @psdir@
232sbindir = @sbindir@
233sharedstatedir = @sharedstatedir@
234srcdir = @srcdir@
235sysconfdir = @sysconfdir@
236target_alias = @target_alias@
237top_builddir = @top_builddir@
238top_srcdir = @top_srcdir@
239lib_LTLIBRARIES = libg3d.la
240libg3d_la_SOURCES = context.c plugins.c model.c object.c face.c \
241 material.c texture.c stream.c stream_read.c stream_file.c \
242 stream_buffer.c read.c iff.c primitive.c vector.c matrix.c \
243 quat.c $(am__append_3) $(am__append_6)
244INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include
245libg3d_la_CFLAGS = -Wall -ansi -pedantic -fstrict-aliasing \
246 -Wstrict-aliasing -DG_LOG_DOMAIN=\"LibG3D\" @DBG_CFLAGS@ \
247 -DDEBUG=@DEBUG@ @GLIB_CFLAGS@ $(am__append_1) $(am__append_4)
248libg3d_la_LDFLAGS = \
249 -no-undefined -version-info @LTVERSION@
250
251libg3d_la_LIBADD = @GLIB_LIBS@ @MAGIC_LIBS@ @MATH_LIBS@ \
252 $(am__append_2) $(am__append_5)
253all: all-am
254
255.SUFFIXES:
256.SUFFIXES: .c .lo .o .obj
257$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
258 @for dep in $?; do \
259 case '$(am__configure_deps)' in \
260 *$$dep*) \
261 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
262 && exit 0; \
263 exit 1;; \
264 esac; \
265 done; \
266 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
267 cd $(top_srcdir) && \
268 $(AUTOMAKE) --gnu src/Makefile
269.PRECIOUS: Makefile
270Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
271 @case '$?' in \
272 *config.status*) \
273 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
274 *) \
275 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
276 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
277 esac;
278
279$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
280 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
281
282$(top_srcdir)/configure: $(am__configure_deps)
283 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
284$(ACLOCAL_M4): $(am__aclocal_m4_deps)
285 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
286install-libLTLIBRARIES: $(lib_LTLIBRARIES)
287 @$(NORMAL_INSTALL)
288 test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
289 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
290 if test -f $$p; then \
291 f=$(am__strip_dir) \
292 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
293 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
294 else :; fi; \
295 done
296
297uninstall-libLTLIBRARIES:
298 @$(NORMAL_UNINSTALL)
299 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
300 p=$(am__strip_dir) \
301 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
302 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
303 done
304
305clean-libLTLIBRARIES:
306 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
307 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
308 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
309 test "$$dir" != "$$p" || dir=.; \
310 echo "rm -f \"$${dir}/so_locations\""; \
311 rm -f "$${dir}/so_locations"; \
312 done
313libg3d.la: $(libg3d_la_OBJECTS) $(libg3d_la_DEPENDENCIES)
314 $(libg3d_la_LINK) -rpath $(libdir) $(libg3d_la_OBJECTS) $(libg3d_la_LIBADD) $(LIBS)
315
316mostlyclean-compile:
317 -rm -f *.$(OBJEXT)
318
319distclean-compile:
320 -rm -f *.tab.c
321
322@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libg3d_la-context.Plo@am__quote@
323@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libg3d_la-face.Plo@am__quote@
324@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libg3d_la-iff.Plo@am__quote@
325@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libg3d_la-material.Plo@am__quote@
326@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libg3d_la-matrix.Plo@am__quote@
327@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libg3d_la-model.Plo@am__quote@
328@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libg3d_la-object.Plo@am__quote@
329@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libg3d_la-plugins.Plo@am__quote@
330@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libg3d_la-primitive.Plo@am__quote@
331@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libg3d_la-quat.Plo@am__quote@
332@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libg3d_la-read.Plo@am__quote@
333@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libg3d_la-stream.Plo@am__quote@
334@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libg3d_la-stream_buffer.Plo@am__quote@
335@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libg3d_la-stream_file.Plo@am__quote@
336@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libg3d_la-stream_gsf.Plo@am__quote@
337@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libg3d_la-stream_gsf_class.Plo@am__quote@
338@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libg3d_la-stream_read.Plo@am__quote@
339@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libg3d_la-stream_zlib.Plo@am__quote@
340@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libg3d_la-texture.Plo@am__quote@
341@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libg3d_la-vector.Plo@am__quote@
342
343.c.o:
344@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
345@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
346@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
347@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
348@am__fastdepCC_FALSE@ $(COMPILE) -c $<
349
350.c.obj:
351@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
352@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
353@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
354@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
355@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
356
357.c.lo:
358@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
359@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
360@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
361@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
362@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
363
364libg3d_la-context.lo: context.c
365@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-context.lo -MD -MP -MF $(DEPDIR)/libg3d_la-context.Tpo -c -o libg3d_la-context.lo `test -f 'context.c' || echo '$(srcdir)/'`context.c
366@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libg3d_la-context.Tpo $(DEPDIR)/libg3d_la-context.Plo
367@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='context.c' object='libg3d_la-context.lo' libtool=yes @AMDEPBACKSLASH@
368@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
369@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-context.lo `test -f 'context.c' || echo '$(srcdir)/'`context.c
370
371libg3d_la-plugins.lo: plugins.c
372@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-plugins.lo -MD -MP -MF $(DEPDIR)/libg3d_la-plugins.Tpo -c -o libg3d_la-plugins.lo `test -f 'plugins.c' || echo '$(srcdir)/'`plugins.c
373@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libg3d_la-plugins.Tpo $(DEPDIR)/libg3d_la-plugins.Plo
374@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='plugins.c' object='libg3d_la-plugins.lo' libtool=yes @AMDEPBACKSLASH@
375@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
376@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-plugins.lo `test -f 'plugins.c' || echo '$(srcdir)/'`plugins.c
377
378libg3d_la-model.lo: model.c
379@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-model.lo -MD -MP -MF $(DEPDIR)/libg3d_la-model.Tpo -c -o libg3d_la-model.lo `test -f 'model.c' || echo '$(srcdir)/'`model.c
380@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libg3d_la-model.Tpo $(DEPDIR)/libg3d_la-model.Plo
381@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='model.c' object='libg3d_la-model.lo' libtool=yes @AMDEPBACKSLASH@
382@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
383@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-model.lo `test -f 'model.c' || echo '$(srcdir)/'`model.c
384
385libg3d_la-object.lo: object.c
386@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-object.lo -MD -MP -MF $(DEPDIR)/libg3d_la-object.Tpo -c -o libg3d_la-object.lo `test -f 'object.c' || echo '$(srcdir)/'`object.c
387@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libg3d_la-object.Tpo $(DEPDIR)/libg3d_la-object.Plo
388@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='object.c' object='libg3d_la-object.lo' libtool=yes @AMDEPBACKSLASH@
389@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
390@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-object.lo `test -f 'object.c' || echo '$(srcdir)/'`object.c
391
392libg3d_la-face.lo: face.c
393@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-face.lo -MD -MP -MF $(DEPDIR)/libg3d_la-face.Tpo -c -o libg3d_la-face.lo `test -f 'face.c' || echo '$(srcdir)/'`face.c
394@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libg3d_la-face.Tpo $(DEPDIR)/libg3d_la-face.Plo
395@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='face.c' object='libg3d_la-face.lo' libtool=yes @AMDEPBACKSLASH@
396@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
397@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-face.lo `test -f 'face.c' || echo '$(srcdir)/'`face.c
398
399libg3d_la-material.lo: material.c
400@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-material.lo -MD -MP -MF $(DEPDIR)/libg3d_la-material.Tpo -c -o libg3d_la-material.lo `test -f 'material.c' || echo '$(srcdir)/'`material.c
401@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libg3d_la-material.Tpo $(DEPDIR)/libg3d_la-material.Plo
402@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='material.c' object='libg3d_la-material.lo' libtool=yes @AMDEPBACKSLASH@
403@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
404@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-material.lo `test -f 'material.c' || echo '$(srcdir)/'`material.c
405
406libg3d_la-texture.lo: texture.c
407@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-texture.lo -MD -MP -MF $(DEPDIR)/libg3d_la-texture.Tpo -c -o libg3d_la-texture.lo `test -f 'texture.c' || echo '$(srcdir)/'`texture.c
408@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libg3d_la-texture.Tpo $(DEPDIR)/libg3d_la-texture.Plo
409@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='texture.c' object='libg3d_la-texture.lo' libtool=yes @AMDEPBACKSLASH@
410@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
411@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-texture.lo `test -f 'texture.c' || echo '$(srcdir)/'`texture.c
412
413libg3d_la-stream.lo: stream.c
414@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-stream.lo -MD -MP -MF $(DEPDIR)/libg3d_la-stream.Tpo -c -o libg3d_la-stream.lo `test -f 'stream.c' || echo '$(srcdir)/'`stream.c
415@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libg3d_la-stream.Tpo $(DEPDIR)/libg3d_la-stream.Plo
416@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='stream.c' object='libg3d_la-stream.lo' libtool=yes @AMDEPBACKSLASH@
417@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
418@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-stream.lo `test -f 'stream.c' || echo '$(srcdir)/'`stream.c
419
420libg3d_la-stream_read.lo: stream_read.c
421@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-stream_read.lo -MD -MP -MF $(DEPDIR)/libg3d_la-stream_read.Tpo -c -o libg3d_la-stream_read.lo `test -f 'stream_read.c' || echo '$(srcdir)/'`stream_read.c
422@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libg3d_la-stream_read.Tpo $(DEPDIR)/libg3d_la-stream_read.Plo
423@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='stream_read.c' object='libg3d_la-stream_read.lo' libtool=yes @AMDEPBACKSLASH@
424@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
425@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-stream_read.lo `test -f 'stream_read.c' || echo '$(srcdir)/'`stream_read.c
426
427libg3d_la-stream_file.lo: stream_file.c
428@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-stream_file.lo -MD -MP -MF $(DEPDIR)/libg3d_la-stream_file.Tpo -c -o libg3d_la-stream_file.lo `test -f 'stream_file.c' || echo '$(srcdir)/'`stream_file.c
429@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libg3d_la-stream_file.Tpo $(DEPDIR)/libg3d_la-stream_file.Plo
430@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='stream_file.c' object='libg3d_la-stream_file.lo' libtool=yes @AMDEPBACKSLASH@
431@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
432@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-stream_file.lo `test -f 'stream_file.c' || echo '$(srcdir)/'`stream_file.c
433
434libg3d_la-stream_buffer.lo: stream_buffer.c
435@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-stream_buffer.lo -MD -MP -MF $(DEPDIR)/libg3d_la-stream_buffer.Tpo -c -o libg3d_la-stream_buffer.lo `test -f 'stream_buffer.c' || echo '$(srcdir)/'`stream_buffer.c
436@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libg3d_la-stream_buffer.Tpo $(DEPDIR)/libg3d_la-stream_buffer.Plo
437@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='stream_buffer.c' object='libg3d_la-stream_buffer.lo' libtool=yes @AMDEPBACKSLASH@
438@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
439@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-stream_buffer.lo `test -f 'stream_buffer.c' || echo '$(srcdir)/'`stream_buffer.c
440
441libg3d_la-read.lo: read.c
442@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-read.lo -MD -MP -MF $(DEPDIR)/libg3d_la-read.Tpo -c -o libg3d_la-read.lo `test -f 'read.c' || echo '$(srcdir)/'`read.c
443@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libg3d_la-read.Tpo $(DEPDIR)/libg3d_la-read.Plo
444@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='read.c' object='libg3d_la-read.lo' libtool=yes @AMDEPBACKSLASH@
445@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
446@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-read.lo `test -f 'read.c' || echo '$(srcdir)/'`read.c
447
448libg3d_la-iff.lo: iff.c
449@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-iff.lo -MD -MP -MF $(DEPDIR)/libg3d_la-iff.Tpo -c -o libg3d_la-iff.lo `test -f 'iff.c' || echo '$(srcdir)/'`iff.c
450@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libg3d_la-iff.Tpo $(DEPDIR)/libg3d_la-iff.Plo
451@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='iff.c' object='libg3d_la-iff.lo' libtool=yes @AMDEPBACKSLASH@
452@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
453@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-iff.lo `test -f 'iff.c' || echo '$(srcdir)/'`iff.c
454
455libg3d_la-primitive.lo: primitive.c
456@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-primitive.lo -MD -MP -MF $(DEPDIR)/libg3d_la-primitive.Tpo -c -o libg3d_la-primitive.lo `test -f 'primitive.c' || echo '$(srcdir)/'`primitive.c
457@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libg3d_la-primitive.Tpo $(DEPDIR)/libg3d_la-primitive.Plo
458@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='primitive.c' object='libg3d_la-primitive.lo' libtool=yes @AMDEPBACKSLASH@
459@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
460@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-primitive.lo `test -f 'primitive.c' || echo '$(srcdir)/'`primitive.c
461
462libg3d_la-vector.lo: vector.c
463@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-vector.lo -MD -MP -MF $(DEPDIR)/libg3d_la-vector.Tpo -c -o libg3d_la-vector.lo `test -f 'vector.c' || echo '$(srcdir)/'`vector.c
464@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libg3d_la-vector.Tpo $(DEPDIR)/libg3d_la-vector.Plo
465@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='vector.c' object='libg3d_la-vector.lo' libtool=yes @AMDEPBACKSLASH@
466@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
467@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-vector.lo `test -f 'vector.c' || echo '$(srcdir)/'`vector.c
468
469libg3d_la-matrix.lo: matrix.c
470@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-matrix.lo -MD -MP -MF $(DEPDIR)/libg3d_la-matrix.Tpo -c -o libg3d_la-matrix.lo `test -f 'matrix.c' || echo '$(srcdir)/'`matrix.c
471@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libg3d_la-matrix.Tpo $(DEPDIR)/libg3d_la-matrix.Plo
472@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='matrix.c' object='libg3d_la-matrix.lo' libtool=yes @AMDEPBACKSLASH@
473@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
474@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-matrix.lo `test -f 'matrix.c' || echo '$(srcdir)/'`matrix.c
475
476libg3d_la-quat.lo: quat.c
477@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-quat.lo -MD -MP -MF $(DEPDIR)/libg3d_la-quat.Tpo -c -o libg3d_la-quat.lo `test -f 'quat.c' || echo '$(srcdir)/'`quat.c
478@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libg3d_la-quat.Tpo $(DEPDIR)/libg3d_la-quat.Plo
479@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='quat.c' object='libg3d_la-quat.lo' libtool=yes @AMDEPBACKSLASH@
480@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
481@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-quat.lo `test -f 'quat.c' || echo '$(srcdir)/'`quat.c
482
483libg3d_la-stream_gsf.lo: stream_gsf.c
484@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-stream_gsf.lo -MD -MP -MF $(DEPDIR)/libg3d_la-stream_gsf.Tpo -c -o libg3d_la-stream_gsf.lo `test -f 'stream_gsf.c' || echo '$(srcdir)/'`stream_gsf.c
485@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libg3d_la-stream_gsf.Tpo $(DEPDIR)/libg3d_la-stream_gsf.Plo
486@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='stream_gsf.c' object='libg3d_la-stream_gsf.lo' libtool=yes @AMDEPBACKSLASH@
487@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
488@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-stream_gsf.lo `test -f 'stream_gsf.c' || echo '$(srcdir)/'`stream_gsf.c
489
490libg3d_la-stream_gsf_class.lo: stream_gsf_class.c
491@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-stream_gsf_class.lo -MD -MP -MF $(DEPDIR)/libg3d_la-stream_gsf_class.Tpo -c -o libg3d_la-stream_gsf_class.lo `test -f 'stream_gsf_class.c' || echo '$(srcdir)/'`stream_gsf_class.c
492@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libg3d_la-stream_gsf_class.Tpo $(DEPDIR)/libg3d_la-stream_gsf_class.Plo
493@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='stream_gsf_class.c' object='libg3d_la-stream_gsf_class.lo' libtool=yes @AMDEPBACKSLASH@
494@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
495@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-stream_gsf_class.lo `test -f 'stream_gsf_class.c' || echo '$(srcdir)/'`stream_gsf_class.c
496
497libg3d_la-stream_zlib.lo: stream_zlib.c
498@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -MT libg3d_la-stream_zlib.lo -MD -MP -MF $(DEPDIR)/libg3d_la-stream_zlib.Tpo -c -o libg3d_la-stream_zlib.lo `test -f 'stream_zlib.c' || echo '$(srcdir)/'`stream_zlib.c
499@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libg3d_la-stream_zlib.Tpo $(DEPDIR)/libg3d_la-stream_zlib.Plo
500@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='stream_zlib.c' object='libg3d_la-stream_zlib.lo' libtool=yes @AMDEPBACKSLASH@
501@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
502@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libg3d_la_CFLAGS) $(CFLAGS) -c -o libg3d_la-stream_zlib.lo `test -f 'stream_zlib.c' || echo '$(srcdir)/'`stream_zlib.c
503
504mostlyclean-libtool:
505 -rm -f *.lo
506
507clean-libtool:
508 -rm -rf .libs _libs
509
510ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
511 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
512 unique=`for i in $$list; do \
513 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
514 done | \
515 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
516 END { if (nonempty) { for (i in files) print i; }; }'`; \
517 mkid -fID $$unique
518tags: TAGS
519
520TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
521 $(TAGS_FILES) $(LISP)
522 tags=; \
523 here=`pwd`; \
524 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
525 unique=`for i in $$list; do \
526 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
527 done | \
528 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
529 END { if (nonempty) { for (i in files) print i; }; }'`; \
530 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
531 test -n "$$unique" || unique=$$empty_fix; \
532 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
533 $$tags $$unique; \
534 fi
535ctags: CTAGS
536CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
537 $(TAGS_FILES) $(LISP)
538 tags=; \
539 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
540 unique=`for i in $$list; do \
541 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
542 done | \
543 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
544 END { if (nonempty) { for (i in files) print i; }; }'`; \
545 test -z "$(CTAGS_ARGS)$$tags$$unique" \
546 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
547 $$tags $$unique
548
549GTAGS:
550 here=`$(am__cd) $(top_builddir) && pwd` \
551 && cd $(top_srcdir) \
552 && gtags -i $(GTAGS_ARGS) $$here
553
554distclean-tags:
555 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
556
557distdir: $(DISTFILES)
558 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
559 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
560 list='$(DISTFILES)'; \
561 dist_files=`for file in $$list; do echo $$file; done | \
562 sed -e "s|^$$srcdirstrip/||;t" \
563 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
564 case $$dist_files in \
565 */*) $(MKDIR_P) `echo "$$dist_files" | \
566 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
567 sort -u` ;; \
568 esac; \
569 for file in $$dist_files; do \
570 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
571 if test -d $$d/$$file; then \
572 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
573 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
574 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
575 fi; \
576 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
577 else \
578 test -f $(distdir)/$$file \
579 || cp -p $$d/$$file $(distdir)/$$file \
580 || exit 1; \
581 fi; \
582 done
583check-am: all-am
584check: check-am
585all-am: Makefile $(LTLIBRARIES)
586installdirs:
587 for dir in "$(DESTDIR)$(libdir)"; do \
588 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
589 done
590install: install-am
591install-exec: install-exec-am
592install-data: install-data-am
593uninstall: uninstall-am
594
595install-am: all-am
596 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
597
598installcheck: installcheck-am
599install-strip:
600 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
601 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
602 `test -z '$(STRIP)' || \
603 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
604mostlyclean-generic:
605
606clean-generic:
607
608distclean-generic:
609 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
610
611maintainer-clean-generic:
612 @echo "This command is intended for maintainers to use"
613 @echo "it deletes files that may require special tools to rebuild."
614clean: clean-am
615
616clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
617 mostlyclean-am
618
619distclean: distclean-am
620 -rm -rf ./$(DEPDIR)
621 -rm -f Makefile
622distclean-am: clean-am distclean-compile distclean-generic \
623 distclean-tags
624
625dvi: dvi-am
626
627dvi-am:
628
629html: html-am
630
631info: info-am
632
633info-am:
634
635install-data-am:
636
637install-dvi: install-dvi-am
638
639install-exec-am: install-libLTLIBRARIES
640
641install-html: install-html-am
642
643install-info: install-info-am
644
645install-man:
646
647install-pdf: install-pdf-am
648
649install-ps: install-ps-am
650
651installcheck-am:
652
653maintainer-clean: maintainer-clean-am
654 -rm -rf ./$(DEPDIR)
655 -rm -f Makefile
656maintainer-clean-am: distclean-am maintainer-clean-generic
657
658mostlyclean: mostlyclean-am
659
660mostlyclean-am: mostlyclean-compile mostlyclean-generic \
661 mostlyclean-libtool
662
663pdf: pdf-am
664
665pdf-am:
666
667ps: ps-am
668
669ps-am:
670
671uninstall-am: uninstall-libLTLIBRARIES
672
673.MAKE: install-am install-strip
674
675.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
676 clean-libLTLIBRARIES clean-libtool ctags distclean \
677 distclean-compile distclean-generic distclean-libtool \
678 distclean-tags distdir dvi dvi-am html html-am info info-am \
679 install install-am install-data install-data-am install-dvi \
680 install-dvi-am install-exec install-exec-am install-html \
681 install-html-am install-info install-info-am \
682 install-libLTLIBRARIES install-man install-pdf install-pdf-am \
683 install-ps install-ps-am install-strip installcheck \
684 installcheck-am installdirs maintainer-clean \
685 maintainer-clean-generic mostlyclean mostlyclean-compile \
686 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
687 tags uninstall uninstall-am uninstall-libLTLIBRARIES
688
689# Tell versions [3.59,3.63) of GNU make to not export all variables.
690# Otherwise a system limit (for SysV at least) may be exceeded.
691.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/src/context.c b/src/others/mimesh/libg3d-0.0.8/src/context.c
new file mode 100644
index 0000000..81bbfad
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/src/context.c
@@ -0,0 +1,119 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <g3d/config.h>
24
25#ifdef HAVE_LIBGSF
26# include <gsf/gsf-utils.h>
27#endif
28
29#include <g3d/types.h>
30#include <g3d/plugins.h>
31
32EAPI
33G3DContext *g3d_context_new(void)
34{
35 G3DContext *context;
36
37 context = g_new0(G3DContext, 1);
38#ifdef HAVE_LIBGSF
39 gsf_init();
40#endif
41
42 g3d_plugins_init(context);
43
44 return context;
45}
46
47EAPI
48void g3d_context_free(G3DContext *context)
49{
50 g3d_plugins_cleanup(context);
51 if (context->modelCache)
52 g_hash_table_destroy(context->modelCache);
53#ifdef HAVE_LIBGSF
54 gsf_shutdown();
55#endif
56
57 g_free(context);
58}
59
60/* callback wrappers - to be called from libg3d plugins */
61
62EAPI
63gboolean g3d_context_set_bgcolor(G3DContext *context,
64 G3DFloat r, G3DFloat g, G3DFloat b, G3DFloat a)
65{
66 if(context->set_bgcolor_func)
67 return context->set_bgcolor_func(r, g, b, a,
68 context->set_bgcolor_data);
69 else
70 return FALSE;
71}
72
73EAPI
74gboolean g3d_context_update_interface(G3DContext *context)
75{
76 if(context->update_interface_func)
77 return context->update_interface_func(context->update_interface_data);
78 else
79 return FALSE;
80}
81
82EAPI
83gboolean g3d_context_update_progress_bar(G3DContext *context,
84 G3DFloat percentage, gboolean visibility)
85{
86 if(context->update_progress_bar_func)
87 return context->update_progress_bar_func(
88 percentage, visibility,
89 context->update_progress_bar_data);
90 else
91 return FALSE;
92}
93
94/* set callback functions - to be called from client program */
95
96EAPI
97void g3d_context_set_set_bgcolor_func(G3DContext *context,
98 G3DSetBgColorFunc func, gpointer user_data)
99{
100 context->set_bgcolor_func = func;
101 context->set_bgcolor_data = user_data;
102}
103
104EAPI
105void g3d_context_set_update_interface_func(G3DContext *context,
106 G3DUpdateInterfaceFunc func, gpointer user_data)
107{
108 context->update_interface_func = func;
109 context->update_interface_data = user_data;
110}
111
112EAPI
113void g3d_context_set_update_progress_bar_func(G3DContext *context,
114 G3DUpdateProgressBarFunc func, gpointer user_data)
115{
116 context->update_progress_bar_func = func;
117 context->update_progress_bar_data = user_data;
118}
119
diff --git a/src/others/mimesh/libg3d-0.0.8/src/face.c b/src/others/mimesh/libg3d-0.0.8/src/face.c
new file mode 100644
index 0000000..1b796bb
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/src/face.c
@@ -0,0 +1,57 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <g3d/types.h>
24#include <g3d/vector.h>
25
26#define VERTEX_ITEM(a, b) \
27 object->vertex_data[face->vertex_indices[a] * 3 + (b)]
28
29EAPI
30void g3d_face_free(G3DFace *face)
31{
32 if(face->vertex_indices)
33 g_free(face->vertex_indices);
34 g_free(face);
35}
36
37EAPI
38gboolean g3d_face_get_normal(G3DFace *face, G3DObject *object,
39 G3DVector *nx, G3DVector *ny, G3DVector *nz)
40{
41 guint32 n = face->vertex_count - 1;
42
43 return g3d_vector_normal(
44 /* ax, ay, az */
45 VERTEX_ITEM(1, 0) - VERTEX_ITEM(0, 0),
46 VERTEX_ITEM(1, 1) - VERTEX_ITEM(0, 1),
47 VERTEX_ITEM(1, 2) - VERTEX_ITEM(0, 2),
48 /* bx, by, bz */
49 VERTEX_ITEM(n, 0) - VERTEX_ITEM(0, 0),
50 VERTEX_ITEM(n, 1) - VERTEX_ITEM(0, 1),
51 VERTEX_ITEM(n, 2) - VERTEX_ITEM(0, 2),
52 /* nx, ny, nz */
53 nx, ny, nz);
54}
55
56#undef VERTEX_ITEM
57
diff --git a/src/others/mimesh/libg3d-0.0.8/src/iff.c b/src/others/mimesh/libg3d-0.0.8/src/iff.c
new file mode 100644
index 0000000..763d0c5
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/src/iff.c
@@ -0,0 +1,459 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <g3d/config.h>
24
25#include <stdio.h>
26#include <string.h>
27#include <g3d/stream.h>
28#include <g3d/read.h>
29#include <g3d/iff.h>
30#include <g3d/context.h>
31#include <g3d/debug.h>
32
33EAPI
34gboolean g3d_iff_check(G3DStream *stream, guint32 *id, gsize *len)
35{
36 guint32 magic, form_bytes;
37
38 magic = g3d_stream_read_int32_be(stream);
39 if((magic != G3D_IFF_MKID('F','O','R','M')) &&
40 (magic != G3D_IFF_MKID('F','O','R','4'))) {
41 g_warning("IFF: %s is not a valid IFF stream", stream->uri);
42 return FALSE;
43 }
44 form_bytes = g3d_stream_read_int32_be(stream);
45 *id = g3d_stream_read_int32_be(stream);
46 *len = form_bytes - 4;
47 return TRUE;
48}
49
50#ifndef G3D_DISABLE_DEPRECATED
51FILE *g3d_iff_open(const gchar *filename, guint32 *id, guint32 *len)
52{
53 FILE *f;
54 guint32 form_bytes, magic;
55
56 f = fopen(filename, "r");
57 if(f == NULL)
58 {
59 g_critical("can't open file '%s'", filename);
60 return NULL;
61 }
62
63 magic = g3d_read_int32_be(f);
64 if((magic != G3D_IFF_MKID('F','O','R','M')) &&
65 (magic != G3D_IFF_MKID('F','O','R','4')))
66 {
67 g_critical("file %s is not an IFF file", filename);
68 fclose(f);
69 return NULL;
70 }
71
72 form_bytes = g3d_read_int32_be(f);
73 *id = g3d_read_int32_be(f);
74 form_bytes -= 4;
75 *len = form_bytes;
76
77 return f;
78}
79#endif /* !G3D_DISABLE_DEPRECATED */
80
81EAPI
82gsize g3d_iff_read_chunk(G3DStream *stream, guint32 *id, gsize *len,
83 guint32 flags)
84{
85 *id = g3d_stream_read_int32_be(stream);
86 if(flags & G3D_IFF_LEN16) {
87 *len = (flags & G3D_IFF_LE) ?
88 g3d_stream_read_int16_le(stream) :
89 g3d_stream_read_int16_be(stream);
90 return 6 + *len + (*len % 2);
91 } else {
92 *len = (flags & G3D_IFF_LE) ?
93 g3d_stream_read_int32_le(stream) :
94 g3d_stream_read_int32_be(stream);
95 return 8 + *len + (*len % 2);
96 }
97}
98
99#ifndef G3D_DISABLE_DEPRECATED
100int g3d_iff_readchunk(FILE *f, guint32 *id, guint32 *len, guint32 flags)
101{
102 *id = g3d_read_int32_be(f);
103 if(flags & G3D_IFF_LEN16)
104 {
105 *len = (flags & G3D_IFF_LE) ?
106 g3d_read_int16_le(f) : g3d_read_int16_be(f);
107 return 6 + *len + (*len % 2);
108 }
109 else
110 {
111 *len = (flags & G3D_IFF_LE) ?
112 g3d_read_int32_le(f) : g3d_read_int32_be(f);
113 return 8 + *len + (*len % 2);
114 }
115}
116#endif /* G3D_DISABLE_DEPRECATED */
117
118EAPI
119gchar *g3d_iff_id_to_text(guint32 id)
120{
121 gchar *tid;
122
123 tid = g_new0(gchar, 5);
124
125 tid[0] = (id >> 24) & 0xFF;
126 tid[1] = (id >> 16) & 0xFF;
127 tid[2] = (id >> 8) & 0xFF;
128 tid[3] = id & 0xFF;
129
130 return tid;
131}
132
133EAPI
134gboolean g3d_iff_chunk_matches(guint32 id, gchar *tid)
135{
136 if(((id >> 24) & 0xFF) != tid[0]) return FALSE;
137 if(((id >> 16) & 0xFF) != tid[1]) return FALSE;
138 if(((id >> 8) & 0xFF) != tid[2]) return FALSE;
139 return (id & 0xFF) == tid[3];
140}
141
142EAPI
143G3DIffChunkInfo *g3d_iff_get_chunk_info(G3DIffChunkInfo *chunks,
144 guint32 chunk_id)
145{
146 guint32 i = 0;
147
148 while(chunks[i].id && !g3d_iff_chunk_matches(chunk_id, chunks[i].id))
149 i ++;
150
151 if(chunks[i].id)
152 return &(chunks[i]);
153
154 return NULL;
155}
156
157EAPI
158void g3d_iff_debug_chunk(G3DIffChunkInfo *info, guint32 chunk_id,
159 guint32 chunk_len, gchar chunk_type, guint32 pos, guint32 level)
160{
161 gchar *tid;
162 gchar *padding = " ";
163
164 tid = g3d_iff_id_to_text(chunk_id);
165 g_debug("\\%s(%d)[%s][%c%c%c] %s (%d) @ 0x%08x - %d bytes left",
166 padding + (strlen(padding) - level), level,
167 tid,
168 chunk_type,
169 info->container ? 'c' : ' ',
170 info->callback ? 'f' : ' ',
171 info->description,
172 chunk_len,
173 pos,
174 chunk_len);
175 g_free(tid);
176}
177
178static goffset g3d_iff_pos(G3DIffGlobal *global)
179{
180 if(global->stream)
181 return g3d_stream_tell(global->stream);
182 else
183#ifndef G_DISABLE_DEPRECATED
184 return ftell(global->f);
185#else
186 return -1;
187#endif
188}
189
190EAPI
191gpointer g3d_iff_handle_chunk(G3DIffGlobal *global, G3DIffLocal *plocal,
192 G3DIffChunkInfo *chunks, guint32 flags)
193{
194 gpointer object = NULL;
195 guint32 chunk_id;
196 gsize chunk_len;
197 G3DIffLocal *sublocal;
198 G3DIffChunkInfo *info;
199
200 /* read info for one chunk */
201 if(global->stream)
202 g3d_iff_read_chunk(global->stream, &chunk_id, &chunk_len, 0);
203 else
204#ifndef G3D_DISABLE_DEPRECATED
205 {
206 guint32 chunk_len32;
207 g3d_iff_readchunk(global->f, &chunk_id, &chunk_len32, 0);
208 chunk_len = chunk_len32;
209 }
210#else
211 return NULL;
212#endif
213
214 plocal->nb -= 8;
215
216 sublocal = g_new0(G3DIffLocal, 1);
217 sublocal->parent_id = plocal->id;
218 sublocal->id = chunk_id;
219 sublocal->object = plocal->object;
220 sublocal->level = plocal->level + 1;
221 sublocal->nb = ((guint32)chunk_len);
222 plocal->nb -= sublocal->nb;
223
224 /* call function */
225 info = g3d_iff_get_chunk_info(chunks, chunk_id);
226 if(info)
227 {
228 g3d_iff_debug_chunk(info, chunk_id, chunk_len, 'X',
229 (guint32)g3d_iff_pos(global) - 8, plocal->level);
230
231 if(info->callback)
232 info->callback(global, sublocal);
233
234 if(sublocal->nb > 0) {
235 if(global->stream) {
236 g3d_stream_skip(global->stream, sublocal->nb);
237 } else {
238#ifndef G_DISABLE_DEPRECATED
239 fseek(global->f, sublocal->nb, SEEK_CUR);
240#else
241 return NULL;
242#endif
243 }
244 }
245 }
246
247 object = sublocal->level_object;
248 g_free(sublocal);
249
250 return object;
251}
252
253EAPI
254gboolean g3d_iff_read_ctnr(G3DIffGlobal *global, G3DIffLocal *local,
255 G3DIffChunkInfo *chunks, guint32 flags)
256{
257 G3DIffLocal *sublocal;
258 G3DIffChunkInfo *info;
259 guint32 chunk_id, chunk_mod, chunk_type;
260 gsize chunk_len;
261 gchar *tid;
262 gpointer level_object;
263#ifndef G3D_DISABLE_DEPRECATED
264 long int fpos;
265#endif
266
267 level_object = NULL;
268
269#ifndef G3D_DISABLE_DEPRECATED
270 if(global->max_fpos == 0)
271 global->max_fpos = local->nb + 12;
272#endif
273 while(local->nb >= ((flags & G3D_IFF_LEN16) ? 6 : 8))
274 {
275 chunk_id = 0;
276
277 if(global->stream)
278 g3d_iff_read_chunk(global->stream, &chunk_id, &chunk_len, flags);
279 else
280#ifndef G3D_DISABLE_DEPRECATED
281 {
282 guint32 chunk_len32 = ((guint32)chunk_len);
283 g3d_iff_readchunk(global->f, &chunk_id, &chunk_len32, flags);
284 chunk_len = chunk_len32;
285 }
286#else
287 return FALSE;
288#endif
289 local->nb -= ((flags & G3D_IFF_LEN16) ? 6 : 8);
290
291 chunk_mod = flags & 0x0F;
292 if(chunk_mod == 0) {
293 g_warning("[IFF] mod = 0 (flags: 0x%02X\n)", flags);
294 chunk_mod = 2;
295 }
296 chunk_type = ' ';
297
298 /* handle special chunks */
299 switch(chunk_id)
300 {
301 case 0:
302 case 0xFFFFFFFF:
303 g_warning(
304 "[IFF] got invalid ID, skipping %d bytes @ 0x%08x",
305 local->nb, (guint32)g3d_iff_pos(global));
306
307 /* skip rest of parent chunk */
308 if(local->nb > 0)
309 {
310 fseek(global->f, local->nb, SEEK_CUR);
311 local->nb = 0;
312 }
313 return FALSE;
314 break;
315
316 case G3D_IFF_MKID('F','O','R','4'):
317 if(global->stream)
318 chunk_id = g3d_stream_read_int32_be(global->stream);
319 else
320#ifndef G3D_DISABLE_DEPRECATED
321 chunk_id = g3d_read_int32_be(global->f);
322#else
323 return FALSE;
324#endif
325 chunk_len -= 4;
326 chunk_mod = 4;
327 chunk_type = 'F';
328 local->nb -= 4;
329 break;
330
331 case G3D_IFF_MKID('L','I','S','4'):
332 if(global->stream)
333 chunk_id = g3d_stream_read_int32_be(global->stream);
334 else
335#ifndef G3D_DISABLE_DEPRECATED
336 chunk_id = g3d_read_int32_be(global->f);
337#else
338 return FALSE;
339#endif
340 chunk_len -= 4;
341 chunk_mod = 4;
342 chunk_type = 'L';
343 local->nb -= 4;
344 break;
345
346 default:
347 break;
348 }
349
350 info = g3d_iff_get_chunk_info(chunks, chunk_id);
351
352 if(info) {
353 g3d_iff_debug_chunk(info, chunk_id, chunk_len, chunk_type,
354 (guint32)g3d_iff_pos(global) - ((chunk_type == ' ') ? 8 : 12),
355 local->level);
356
357 sublocal = g_new0(G3DIffLocal, 1);
358 sublocal->parent_id = local->id;
359 sublocal->id = chunk_id;
360 sublocal->object = local->object;
361 sublocal->level = local->level + 1;
362 sublocal->level_object = level_object;
363 sublocal->nb = ((guint32)chunk_len);
364
365 if(info->callback)
366 info->callback(global, sublocal);
367
368 if(info->container) {
369 /* LWO has 16 bit length in subchunks */
370 if(flags & G3D_IFF_SUBCHUNK_LEN16)
371 g3d_iff_read_ctnr(global, sublocal, chunks,
372 flags | G3D_IFF_LEN16);
373 else
374 g3d_iff_read_ctnr(global, sublocal, chunks, flags);
375 }
376
377 if(info->container && info->callback) {
378 sublocal->finalize = TRUE;
379 info->callback(global, sublocal);
380 }
381
382 if(sublocal->nb > 0) {
383 if(global->stream) {
384 g3d_stream_skip(global->stream, sublocal->nb);
385 } else {
386#ifndef G3D_DISABLE_DEPRECATED
387 fseek(global->f, sublocal->nb, SEEK_CUR);
388#else
389 return FALSE;
390#endif
391 }
392 }
393 level_object = sublocal->level_object;
394
395 g_free(sublocal);
396 } else {
397 tid = g3d_iff_id_to_text(chunk_id);
398 g_warning("[IFF] unknown chunk type \"%s\" (%d) @ 0x%08x",
399 tid, (guint32)chunk_len, (guint32)g3d_iff_pos(global) - 8);
400 g_free(tid);
401 if(global->stream)
402 g3d_stream_skip(global->stream, chunk_len);
403 else
404#ifndef G3D_DISABLE_DEPRECATED
405 fseek(global->f, chunk_len, SEEK_CUR);
406#else
407 return FALSE;
408#endif
409 }
410
411 local->nb -= chunk_len;
412
413 if(chunk_len % chunk_mod) {
414 if(global->stream)
415 g3d_stream_skip(global->stream,
416 chunk_mod - (chunk_len % chunk_mod));
417 else
418#ifndef G3D_DISABLE_DEPRECATED
419 fseek(global->f,
420 chunk_mod - (chunk_len % chunk_mod), SEEK_CUR);
421#else
422 return FALSE;
423#endif
424 local->nb -= (chunk_mod - (chunk_len % chunk_mod));
425 }
426
427 if(global->stream) {
428 g3d_context_update_progress_bar(global->context,
429 (G3DFloat)g3d_stream_tell(global->stream) /
430 (G3DFloat)g3d_stream_size(global->stream), TRUE);
431 }
432#ifndef G3D_DISABLE_DEPRECATED
433 else {
434 fpos = ftell(global->f);
435 g3d_context_update_progress_bar(global->context,
436 ((G3DFloat)fpos / (G3DFloat)global->max_fpos), TRUE);
437 }
438#endif
439 } /* nb >= 8/6 */
440
441 if(local->nb > 0)
442 {
443 g_warning("[IFF] skipping %d bytes at the end of chunk",
444 local->nb);
445 if(global->stream) {
446 g3d_stream_skip(global->stream, local->nb);
447 } else {
448#ifndef G3D_DISABLE_DEPRECATED
449 fseek(global->f, local->nb, SEEK_CUR);
450#else
451 return FALSE;
452#endif
453 }
454 local->nb = 0;
455 }
456
457 return TRUE;
458}
459
diff --git a/src/others/mimesh/libg3d-0.0.8/src/material.c b/src/others/mimesh/libg3d-0.0.8/src/material.c
new file mode 100644
index 0000000..7d351a9
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/src/material.c
@@ -0,0 +1,42 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <g3d/types.h>
24
25EAPI
26G3DMaterial *g3d_material_new(void)
27{
28 G3DMaterial *new;
29
30 new = g_new0(G3DMaterial, 1);
31
32 new->r = new->g = new->b = 0.7;
33 new->a = 1.0;
34
35 return new;
36}
37
38EAPI
39void g3d_material_free(G3DMaterial *material)
40{
41 g_free(material);
42}
diff --git a/src/others/mimesh/libg3d-0.0.8/src/matrix.c b/src/others/mimesh/libg3d-0.0.8/src/matrix.c
new file mode 100644
index 0000000..b2b8815
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/src/matrix.c
@@ -0,0 +1,263 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24#include <math.h>
25#include <glib.h>
26#include <g3d/vector.h>
27
28EAPI
29gboolean g3d_matrix_identity(G3DMatrix *matrix)
30{
31 static G3DMatrix identity[16] = {
32 1.0, 0.0, 0.0, 0.0,
33 0.0, 1.0, 0.0, 0.0,
34 0.0, 0.0, 1.0, 0.0,
35 0.0, 0.0, 0.0, 1.0 };
36
37 memcpy(matrix, identity, sizeof(G3DMatrix) * 16);
38 return TRUE;
39}
40
41EAPI
42gboolean g3d_matrix_multiply(G3DMatrix *m1, G3DMatrix *m2, G3DMatrix *rm)
43{
44 guint32 i, j;
45 G3DMatrix matrix[16];
46
47 for(i = 0; i < 4; i ++)
48 for(j = 0; j < 4; j ++)
49#if 0
50 matrix[i * 4 + j] =
51 m2[0 * 4 + j] * m1[i * 4 + 0] +
52 m2[1 * 4 + j] * m1[i * 4 + 1] +
53 m2[2 * 4 + j] * m1[i * 4 + 2] +
54 m2[3 * 4 + j] * m1[i * 4 + 3];
55#else
56 matrix[j * 4 + i] =
57 m2[j * 4 + 0] * m1[0 * 4 + i] +
58 m2[j * 4 + 1] * m1[1 * 4 + i] +
59 m2[j * 4 + 2] * m1[2 * 4 + i] +
60 m2[j * 4 + 3] * m1[3 * 4 + i];
61#endif
62
63 memcpy(rm, matrix, 16 * sizeof(G3DMatrix));
64 return TRUE;
65}
66
67EAPI
68gboolean g3d_matrix_rotate(G3DFloat angle, G3DVector ax, G3DVector ay,
69 G3DVector az, G3DMatrix *rm)
70{
71 g3d_vector_unify(&ax, &ay, &az);
72 g3d_matrix_identity(rm);
73
74#if 0
75 rm[0 * 4 + 0] = cos(angle) + (ax * ax) * (1 - cos(angle));
76 rm[0 * 4 + 1] = ax * ay * (1 - cos(angle)) - az * sin(angle);
77 rm[0 * 4 + 2] = ax * az * (1 - cos(angle)) + ay * sin(angle);
78
79 rm[1 * 4 + 0] = ay * ax * (1 - cos(angle)) + az * sin(angle);
80 rm[1 * 4 + 1] = cos(angle) + (ay * ay) * (1 - cos(angle));
81 rm[1 * 4 + 2] = ay * az * (1 - cos(angle)) - ax * sin(angle);
82
83 rm[2 * 4 + 0] = az * ax * (1 - cos(angle)) - ay * sin(angle);
84 rm[2 * 4 + 1] = az * ay * (1 - cos(angle)) + ax * sin(angle);
85 rm[2 * 4 + 2] = cos(angle) + (az * az) * (1 - cos(angle));
86#else
87 rm[0 * 4 + 0] = cos(angle) + (ax * ax) * (1 - cos(angle));
88 rm[1 * 4 + 0] = ax * ay * (1 - cos(angle)) - az * sin(angle);
89 rm[2 * 4 + 0] = ax * az * (1 - cos(angle)) + ay * sin(angle);
90
91 rm[0 * 4 + 1] = ay * ax * (1 - cos(angle)) + az * sin(angle);
92 rm[1 * 4 + 1] = cos(angle) + (ay * ay) * (1 - cos(angle));
93 rm[2 * 4 + 1] = ay * az * (1 - cos(angle)) - ax * sin(angle);
94
95 rm[0 * 4 + 2] = az * ax * (1 - cos(angle)) - ay * sin(angle);
96 rm[1 * 4 + 2] = az * ay * (1 - cos(angle)) + ax * sin(angle);
97 rm[2 * 4 + 2] = cos(angle) + (az * az) * (1 - cos(angle));
98#endif
99
100 return TRUE;
101}
102
103EAPI
104gboolean g3d_matrix_rotate_xyz(G3DFloat rx, G3DFloat ry, G3DFloat rz,
105 G3DMatrix *rm)
106{
107 G3DMatrix matrix[16];
108
109 g3d_matrix_identity(rm);
110
111 g3d_matrix_rotate(rx, 1.0, 0.0, 0.0, matrix);
112 g3d_matrix_multiply(matrix, rm, rm);
113
114 g3d_matrix_rotate(ry, 0.0, 1.0, 0.0, matrix);
115 g3d_matrix_multiply(matrix, rm, rm);
116
117 g3d_matrix_rotate(rz, 0.0, 0.0, 1.0, matrix);
118 g3d_matrix_multiply(matrix, rm, rm);
119
120 return TRUE;
121}
122
123EAPI
124gboolean g3d_matrix_translate(G3DVector x, G3DVector y, G3DVector z,
125 G3DMatrix *rm)
126{
127 guint32 i;
128
129#if 0
130 for(i = 0; i < 4; i ++)
131 rm[i * 4 + 3] =
132 rm[i * 4 + 0] * x +
133 rm[i * 4 + 1] * y +
134 rm[i * 4 + 2] * z +
135 rm[i * 4 + 3];
136#else
137 for(i = 0; i < 4; i ++)
138 rm[3 * 4 + i] =
139 rm[0 * 4 + i] * x +
140 rm[1 * 4 + i] * y +
141 rm[2 * 4 + i] * z +
142 rm[3 * 4 + i];
143#endif
144 return TRUE;
145}
146
147EAPI
148gboolean g3d_matrix_scale(G3DVector x, G3DVector y, G3DVector z, G3DMatrix *rm)
149{
150 G3DMatrix sm[16];
151
152 g3d_matrix_identity(sm);
153 sm[0] = x;
154 sm[5] = y;
155 sm[10] = z;
156
157 g3d_matrix_multiply(rm, sm, rm);
158
159 return TRUE;
160}
161
162EAPI
163gboolean g3d_matrix_transpose(G3DMatrix *matrix)
164{
165 G3DMatrix tmp[16];
166 gint32 i, j;
167
168 memcpy(tmp, matrix, 16 * sizeof(G3DMatrix));
169
170 for(i = 0; i < 4; i ++)
171 for(j = 0; j < 4; j ++)
172 matrix[i * 4 + j] = tmp[j * 4 + i];
173
174 return TRUE;
175}
176
177static G3DFloat det2x2(G3DFloat a1, G3DFloat a2, G3DFloat b1, G3DFloat b2)
178{
179 return a1 * b2 - a2 * b1;
180}
181
182static G3DFloat det3x3(G3DFloat a1, G3DFloat a2, G3DFloat a3,
183 G3DFloat b1, G3DFloat b2, G3DFloat b3,
184 G3DFloat c1, G3DFloat c2, G3DFloat c3)
185{
186 return
187 a1 * det2x2(b2, b3, c2, c3) -
188 b1 * det2x2(a2, a3, c2, c3) +
189 c1 * det2x2(a2, a3, b2, b3);
190}
191
192EAPI
193G3DFloat g3d_matrix_determinant(G3DMatrix *matrix)
194{
195 G3DFloat a1, a2, a3, a4;
196 G3DFloat b1, b2, b3, b4;
197 G3DFloat c1, c2, c3, c4;
198 G3DFloat d1, d2, d3, d4;
199#if 0
200 a1 = matrix[0 * 4 + 0];
201 a2 = matrix[0 * 4 + 1];
202 a3 = matrix[0 * 4 + 2];
203 a4 = matrix[0 * 4 + 3];
204
205 b1 = matrix[1 * 4 + 0];
206 b2 = matrix[1 * 4 + 1];
207 b3 = matrix[1 * 4 + 2];
208 b4 = matrix[1 * 4 + 3];
209
210 c1 = matrix[2 * 4 + 0];
211 c2 = matrix[2 * 4 + 1];
212 c3 = matrix[2 * 4 + 2];
213 c4 = matrix[2 * 4 + 3];
214
215 d1 = matrix[3 * 4 + 0];
216 d2 = matrix[3 * 4 + 1];
217 d3 = matrix[3 * 4 + 2];
218 d4 = matrix[3 * 4 + 3];
219#else
220 a1 = matrix[0 * 4 + 0];
221 b1 = matrix[0 * 4 + 1];
222 c1 = matrix[0 * 4 + 2];
223 d1 = matrix[0 * 4 + 3];
224
225 a2 = matrix[1 * 4 + 0];
226 b2 = matrix[1 * 4 + 1];
227 c2 = matrix[1 * 4 + 2];
228 d2 = matrix[1 * 4 + 3];
229
230 a3 = matrix[2 * 4 + 0];
231 b3 = matrix[2 * 4 + 1];
232 c3 = matrix[2 * 4 + 2];
233 d3 = matrix[2 * 4 + 3];
234
235 a4 = matrix[3 * 4 + 0];
236 b4 = matrix[3 * 4 + 1];
237 c4 = matrix[3 * 4 + 2];
238 d4 = matrix[3 * 4 + 3];
239#endif
240 return
241 a1 * det3x3(b2, b3, b4, c2, c3, c4, d2, d3, d4) -
242 b1 * det3x3(a2, a3, a4, c2, c3, c4, d2, d3, d4) +
243 c1 * det3x3(a2, a3, a4, b2, b3, b4, d2, d3, d4) -
244 d1 * det3x3(a2, a3, a4, b2, b3, b4, c2, c3, c4);
245}
246
247gboolean g3d_matrix_dump(G3DMatrix *matrix)
248{
249#if DEBUG > 0
250 gint32 row;
251
252 for(row = 0; row < 4; row ++)
253 {
254 g_debug("[Matrix] % 2.2f % 2.2f % 2.2f % 2.2f",
255 matrix[0 * 4 + row], matrix[1 * 4 + row],
256 matrix[2 * 4 + row], matrix[3 * 4 + row]);
257 }
258
259 return TRUE;
260#else
261 return FALSE;
262#endif
263}
diff --git a/src/others/mimesh/libg3d-0.0.8/src/model.c b/src/others/mimesh/libg3d-0.0.8/src/model.c
new file mode 100644
index 0000000..39cdc79
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/src/model.c
@@ -0,0 +1,406 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24
25#include <g3d/types.h>
26#include <g3d/context.h>
27#include <g3d/model.h>
28#include <g3d/object.h>
29#include <g3d/material.h>
30#include <g3d/plugins.h>
31
32EAPI
33G3DModel *g3d_model_new(void)
34{
35 G3DModel *model;
36
37 model = g_new0(G3DModel, 1);
38
39 return model;
40}
41
42static gdouble objects_max_radius(GSList *objects)
43{
44 G3DObject *object;
45 GSList *oitem;
46 gdouble radius, max_rad = 0.0;
47
48 oitem = objects;
49 while(oitem)
50 {
51 object = (G3DObject *)oitem->data;
52 radius = g3d_object_radius(object);
53 if(radius > max_rad)
54 max_rad = radius;
55
56 radius = objects_max_radius(object->objects);
57 if(radius > max_rad)
58 max_rad = radius;
59
60 oitem = oitem->next;
61 }
62
63 return max_rad;
64}
65
66static void objects_post_load(GSList *objects, gdouble max_rad, guint32 flags)
67{
68 G3DObject *object;
69 GSList *oitem;
70
71 oitem = objects;
72 while(oitem)
73 {
74 object = (G3DObject *)oitem->data;
75
76 if(flags & G3D_MODEL_SCALE)
77 g3d_object_scale(object, (0.5 / max_rad)); /* For non real meshes, 1.0 works about right. Trying 0.5 for real meshes. */
78
79 if(flags & G3D_MODEL_OPTIMIZE)
80 g3d_object_optimize(object);
81
82 objects_post_load(object->objects, max_rad, flags);
83
84 oitem = oitem->next;
85 }
86}
87
88static gboolean objects_check(GSList *objects)
89{
90 G3DFace *face;
91 G3DObject *object;
92 GSList *fitem, *oitem;
93 guint32 i, no = 0, nf;
94
95 for(oitem = objects; oitem != NULL; oitem = oitem->next) {
96 object = (G3DObject *)oitem->data;
97
98 for(nf = 0, fitem = object->faces; fitem != NULL;
99 fitem = fitem->next, nf ++) {
100 face = (G3DFace *)fitem->data;
101
102 if(face->material == NULL) {
103 g_warning("g3d_object_check: face->material is NULL"
104 " (o: %d, %s; f: %d)",
105 no, object->name ? object->name : "(unnamed)", nf);
106 return FALSE;
107 }
108
109 if(face->vertex_count < 3) {
110 g_warning("g3d_object_check: face->num_vertices < 3 (%d)"
111 " (o: %d, %s; f: %d)", face->vertex_count,
112 no, object->name ? object->name : "(unnamed)", nf);
113 return FALSE;
114 }
115
116 for(i = 0; i < face->vertex_count; i ++)
117 if(face->vertex_indices[i] >= object->vertex_count) {
118 g_warning("g3d_object_check: "
119 "vertex_indices[%d] >= vertex_count (%d >= %d)"
120 " (o: %d, %s; f: %d)",
121 i, face->vertex_indices[i], object->vertex_count,
122 no, object->name ? object->name : "(unnamed)", nf);
123 return FALSE;
124 }
125 } /* (fitem) */
126
127 if(objects_check(object->objects) == FALSE)
128 return FALSE;
129 } /* (oitem) */
130 return TRUE;
131
132}
133
134EAPI
135gboolean g3d_model_check(G3DModel *model)
136{
137 return objects_check(model->objects);
138}
139
140EAPI
141G3DModel *g3d_model_load_full(G3DContext *context, const gchar *filename,
142 guint32 flags)
143{
144 G3DModel *model;
145 gdouble max_rad;
146
147 /* create hash table if it does not exist yet */
148 if(context->modelCache == NULL)
149 context->modelCache = g_hash_table_new(g_str_hash, g_str_equal);
150
151 /* if already loaded, return cached model */
152 model = g_hash_table_lookup(context->modelCache, filename);
153 if(model != NULL)
154 {
155 model->refCount++;
156 return model;
157 }
158
159 model = g3d_model_new();
160
161 g3d_context_update_progress_bar(context, 0.0, TRUE);
162
163 if(g3d_plugins_load_model(context, filename, model))
164 {
165 model->refCount = 1;
166 model->context = context;
167 /* save filename */
168 if(model->filename == NULL)
169 model->filename = g_strdup(filename);
170 g_hash_table_insert(context->modelCache, (gpointer) model->filename, model);
171 g3d_context_update_progress_bar(context, 0.0, FALSE);
172
173 /* check model */
174 if(!(flags & G3D_MODEL_NOCHECK))
175 if(!g3d_model_check(model))
176 {
177 g3d_model_free(model);
178 return NULL;
179 }
180
181 /* center model */
182 if(flags & G3D_MODEL_CENTER)
183 g3d_model_center(model);
184
185 /* get maximum radius of all objects */
186 max_rad = objects_max_radius(model->objects);
187
188 /* scale and optimize objects */
189 objects_post_load(model->objects, max_rad, flags);
190
191 return model;
192 }
193 else
194 {
195 g3d_context_update_progress_bar(context, 0.0, FALSE);
196 g3d_model_free(model);
197 }
198
199 return NULL;
200
201}
202
203EAPI
204G3DModel *g3d_model_load(G3DContext *context, const gchar *filename)
205{
206 return g3d_model_load_full(context, filename,
207 G3D_MODEL_SCALE | G3D_MODEL_CENTER | G3D_MODEL_OPTIMIZE);
208}
209
210static void objects_max_extension(GSList *objects,
211 gdouble *min_x, gdouble *min_y, gdouble *min_z,
212 gdouble *max_x, gdouble *max_y, gdouble *max_z)
213{
214 GSList *oitem;
215 G3DObject *object;
216 guint32 i;
217
218 oitem = objects;
219 while(oitem)
220 {
221 object = (G3DObject *)oitem->data;
222 for(i = 0; i < object->vertex_count; i ++)
223 {
224 if(object->vertex_data[i * 3 + 0] < *min_x)
225 *min_x = object->vertex_data[i * 3 + 0];
226 if(object->vertex_data[i * 3 + 1] < *min_y)
227 *min_y = object->vertex_data[i * 3 + 1];
228 if(object->vertex_data[i * 3 + 2] < *min_z)
229 *min_z = object->vertex_data[i * 3 + 2];
230
231 if(object->vertex_data[i * 3 + 0] > *max_x)
232 *max_x = object->vertex_data[i * 3 + 0];
233 if(object->vertex_data[i * 3 + 1] > *max_y)
234 *max_y = object->vertex_data[i * 3 + 1];
235 if(object->vertex_data[i * 3 + 2] > *max_z)
236 *max_z = object->vertex_data[i * 3 + 2];
237 }
238
239 objects_max_extension(object->objects,
240 min_x, min_y, min_z, max_x, max_y, max_z);
241
242 oitem = oitem->next;
243 }
244}
245
246static void objects_move(GSList *objects,
247 gdouble off_x, gdouble off_y, gdouble off_z)
248{
249 GSList *oitem;
250 G3DObject *object;
251 guint32 i;
252
253 oitem = objects;
254 while(oitem)
255 {
256 object = (G3DObject *)oitem->data;
257 for(i = 0; i < object->vertex_count; i ++)
258 {
259 object->vertex_data[i * 3 + 0] -= off_x;
260 object->vertex_data[i * 3 + 1] -= off_y;
261 object->vertex_data[i * 3 + 2] -= off_z;
262 }
263
264 objects_move(object->objects, off_x, off_y, off_z);
265
266 oitem = oitem->next;
267 }
268}
269
270EAPI
271gboolean g3d_model_center(G3DModel *model)
272{
273 gdouble min_x = 10.0e99, min_y = 10.0e99, min_z = 10.0e99;
274 gdouble max_x = -9.9e99, max_y = -9.9e99, max_z = -9.9e99;
275 gdouble off_x, off_y, off_z;
276
277 /* determine maximum extension */
278 objects_max_extension(model->objects,
279 &min_x, &min_y, &min_z, &max_x, &max_y, &max_z);
280
281 /* move model */
282 off_x = max_x - ((max_x - min_x) / 2.0);
283 off_y = max_y - ((max_y - min_y) / 2.0);
284 off_z = max_z - ((max_z - min_z) / 2.0);
285
286 objects_move(model->objects, off_x, off_y, off_z);
287
288 return TRUE;
289}
290
291static gboolean remove_teximg(gpointer key, gpointer value, gpointer data)
292{
293 G3DImage *image;
294
295 image = (G3DImage *)value;
296 if(image->name)
297 g_free(image->name);
298 if(image->pixeldata)
299 g_free(image->pixeldata);
300 g_free(image);
301
302 g_free(key);
303
304 return TRUE;
305}
306
307static void objects_clear(GSList *objects)
308{
309 GSList *list, *next;
310 G3DObject *object;
311
312 list = objects;
313 while(list)
314 {
315 object = (G3DObject*)list->data;
316 objects_clear(object->objects);
317 g3d_object_free(object);
318 next = list->next;
319 g_slist_free_1(list);
320 list = next;
321 }
322}
323
324EAPI
325void g3d_model_clear(G3DModel *model)
326{
327 GSList *list, *next;
328 G3DMaterial *mat;
329
330 /* lights */
331 /* TODO */
332
333 /* objects */
334 objects_clear(model->objects);
335 model->objects = NULL;
336
337 /* materials */
338 list = model->materials;
339 while(list)
340 {
341 mat = (G3DMaterial*)list->data;
342 g3d_material_free(mat);
343 next = list->next;
344 g_slist_free_1(list);
345 list = next;
346 }
347 model->materials = NULL;
348
349 if(model->tex_images)
350 {
351 g_hash_table_foreach_remove(model->tex_images, remove_teximg, NULL);
352 }
353}
354
355EAPI
356void g3d_model_free(G3DModel *model)
357{
358 model->refCount--;
359 if (0 == model->refCount)
360 {
361 g_hash_table_remove(model->context->modelCache, model->filename);
362 g3d_model_clear(model);
363 if(model->filename)
364 g_free(model->filename);
365 g_free(model);
366 }
367}
368
369static G3DObject *objects_get_by_name(GSList *objects, const gchar *name)
370{
371 GSList *olist;
372 G3DObject *object;
373
374 olist = objects;
375 while(olist)
376 {
377 object = (G3DObject *)olist->data;
378
379 if((object->name != NULL) && (strcmp(object->name, name) == 0))
380 return object;
381
382 object = objects_get_by_name(object->objects, name);
383 if(object != NULL)
384 return object;
385
386 olist = olist->next;
387 }
388 return NULL;
389}
390
391EAPI
392G3DObject *g3d_model_get_object_by_name(G3DModel *model, const gchar *name)
393{
394 return objects_get_by_name(model->objects, name);
395}
396
397EAPI
398gboolean g3d_model_transform(G3DModel *model, G3DMatrix *matrix)
399{
400 GSList *oitem;
401
402 for(oitem = model->objects; oitem != NULL; oitem = oitem->next)
403 g3d_object_transform(oitem->data, matrix);
404 return TRUE;
405}
406
diff --git a/src/others/mimesh/libg3d-0.0.8/src/object.c b/src/others/mimesh/libg3d-0.0.8/src/object.c
new file mode 100644
index 0000000..7fc3df1
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/src/object.c
@@ -0,0 +1,400 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24#include <math.h>
25
26#include <g3d/types.h>
27#include <g3d/vector.h>
28#include <g3d/matrix.h>
29#include <g3d/face.h>
30#include <g3d/texture.h>
31#include <g3d/object.h>
32
33EAPI
34void g3d_object_free(G3DObject *object)
35{
36 GSList *slist, *snext;
37 G3DMaterial *mat;
38 G3DFace *face;
39
40 if(object->name != NULL)
41 g_free(object->name);
42
43 /* materials */
44 slist = object->materials;
45 while(slist != NULL)
46 {
47 mat = (G3DMaterial*)slist->data;
48 snext = slist->next;
49 g_slist_free_1(slist);
50 slist = snext;
51 }
52
53 /* faces */
54 slist = object->faces;
55 while(slist != NULL)
56 {
57 face = (G3DFace*)slist->data;
58 g3d_face_free(face);
59 snext = slist->next;
60 g_slist_free_1(slist);
61 slist = snext;
62 }
63
64 /* vertices */
65 if(object->vertex_data != NULL) g_free(object->vertex_data);
66 if(object->tex_vertex_data != NULL) g_free(object->tex_vertex_data);
67 if(object->_normals != NULL) g_free(object->_normals);
68 if(object->_indices != NULL) g_free(object->_indices);
69 if(object->_materials != NULL) g_free(object->_materials);
70 if(object->_flags != NULL) g_free(object->_flags);
71
72 g_free(object);
73}
74
75EAPI
76gdouble g3d_object_radius(G3DObject *object)
77{
78 guint32 i;
79 gdouble max_radius = 0.0, r;
80 G3DVector *v;
81
82 for(i = 0; i < object->vertex_count; i ++)
83 {
84 v = &object->vertex_data[i * 3];
85 r = v[0] * v[0] + v[1] * v[1] + v[2] * v[2];
86 if(r > max_radius)
87 max_radius = r;
88 }
89
90 return sqrt(max_radius);
91}
92
93EAPI
94gboolean g3d_object_scale(G3DObject *object, G3DFloat scale)
95{
96 guint32 i;
97 G3DMatrix *matrix;
98
99 for(i = 0; i < object->vertex_count; i ++)
100 {
101 object->vertex_data[i * 3 + 0] *= scale;
102 object->vertex_data[i * 3 + 1] *= scale;
103 object->vertex_data[i * 3 + 2] *= scale;
104 }
105
106 if(object->transformation)
107 {
108 matrix = object->transformation->matrix;
109 g3d_matrix_translate(
110 - (matrix[12] - (matrix[12] * scale)),
111 - (matrix[13] - (matrix[13] * scale)),
112 - (matrix[14] - (matrix[14] * scale)),
113 matrix);
114 }
115
116 return TRUE;
117}
118
119EAPI
120gboolean g3d_object_transform_normals(G3DObject *object, G3DMatrix *matrix)
121{
122 gint32 i;
123 G3DFace *face;
124 GSList *fitem;
125
126 fitem = object->faces;
127 while(fitem)
128 {
129 face = (G3DFace *)fitem->data;
130
131 if(face->flags & G3D_FLAG_FAC_NORMALS)
132 {
133 for(i = 0; i < face->vertex_count; i ++)
134 {
135 g3d_vector_transform(
136 &(face->normals[i * 3 + 0]),
137 &(face->normals[i * 3 + 1]),
138 &(face->normals[i * 3 + 2]),
139 matrix);
140 g3d_vector_unify(
141 &(face->normals[i * 3 + 0]),
142 &(face->normals[i * 3 + 1]),
143 &(face->normals[i * 3 + 2]));
144 }
145 }
146
147 fitem = fitem->next;
148 }
149 return TRUE;
150}
151
152#define G3D_OBJECT_TRANSFORM_NORMALS 0
153
154EAPI
155gboolean g3d_object_transform(G3DObject *object, G3DMatrix *matrix)
156{
157 guint32 i;
158 GSList *oitem;
159
160 /* transform vertices */
161 for(i = 0; i < object->vertex_count; i ++)
162 {
163 g3d_vector_transform(
164 &(object->vertex_data[i * 3 + 0]),
165 &(object->vertex_data[i * 3 + 1]),
166 &(object->vertex_data[i * 3 + 2]),
167 matrix);
168 }
169
170#if G3D_OBJECT_TRANSFORM_NORMALS
171 g3d_object_transform_normals(object, matrix);
172#endif
173
174 /* transform sub-objects */
175 for(oitem = object->objects; oitem != NULL; oitem = oitem->next)
176 g3d_object_transform((G3DObject *)oitem->data, matrix);
177
178 return TRUE;
179}
180
181EAPI
182G3DObject *g3d_object_duplicate(G3DObject *object)
183{
184 G3DObject *new, *sub, *newsub;
185 G3DFace *face, *oface;
186 GSList *litem;
187
188 new = g_new0(G3DObject, 1);
189
190 /* name */
191 if(object->name)
192 new->name = g_strdup(object->name);
193
194 /* vertices */
195 new->vertex_count = object->vertex_count;
196 new->vertex_data = g3d_vector_new(3, new->vertex_count);
197 memcpy(new->vertex_data, object->vertex_data,
198 new->vertex_count * 3 * sizeof(G3DVector));
199
200 /* texture stuff */
201 /* TODO: implement? */
202
203 /* faces */
204 for(litem = object->faces; litem != NULL; litem = litem->next) {
205 oface = litem->data;
206
207 face = g_new0(G3DFace, 1);
208 face->material = oface->material;
209 face->vertex_count = oface->vertex_count;
210 face->vertex_indices = g_new0(guint32, face->vertex_count);
211 memcpy(face->vertex_indices, oface->vertex_indices,
212 face->vertex_count * sizeof(guint32));
213 face->flags = oface->flags;
214 if(face->flags & G3D_FLAG_FAC_NORMALS)
215 {
216 face->normals = g3d_vector_new(3, face->vertex_count);
217 memcpy(face->normals, oface->normals,
218 face->vertex_count * 3 * sizeof(G3DVector));
219 }
220 if(face->flags & G3D_FLAG_FAC_TEXMAP)
221 {
222 face->tex_image = oface->tex_image;
223 face->tex_vertex_count = oface->tex_vertex_count;
224 face->tex_vertex_data = g3d_vector_new(2, face->tex_vertex_count);
225 memcpy(face->tex_vertex_data, oface->tex_vertex_data,
226 face->tex_vertex_count * 2 * sizeof(G3DVector));
227 }
228
229 new->faces = g_slist_prepend(new->faces, face);
230 }
231
232 /* sub-objects */
233 for(litem = object->objects; litem != NULL; litem = litem->next) {
234 sub = litem->data;
235 newsub = g3d_object_duplicate(sub);
236 new->objects = g_slist_append(new->objects, newsub);
237 }
238
239 return new;
240}
241
242EAPI
243gboolean g3d_object_merge(G3DObject *o1, G3DObject *o2)
244{
245 G3DFace *face;
246 GSList *fitem;
247 guint32 i, voff, foff = 0;
248
249 /* copy vertices */
250 voff = o1->vertex_count;
251 o1->vertex_count += o2->vertex_count;
252
253 o1->vertex_data = g_realloc(o1->vertex_data,
254 o1->vertex_count * 3 * sizeof(G3DVector));
255
256 memcpy(o1->vertex_data + voff * 3, o2->vertex_data,
257 o2->vertex_count * 3 * sizeof(G3DVector));
258
259 /* attach faces to first object */
260 fitem = o2->faces;
261 while(fitem)
262 {
263 face = (G3DFace *)fitem->data;
264 foff ++;
265
266 if(face->vertex_count > 100)
267 {
268 g_warning("face->vertex_count > 100: %d (%dth)",
269 face->vertex_count, foff);
270 }
271
272 for(i = 0; i < face->vertex_count; i ++)
273 face->vertex_indices[i] += voff;
274
275 o1->faces = g_slist_prepend(o1->faces, face);
276
277 fitem = fitem->next;
278 }
279
280 /* FIXME: clean up o2 or copy faces */
281
282 return TRUE;
283}
284
285EAPI
286gboolean g3d_object_smooth(G3DObject *object)
287{
288 /* FIXME: implement */
289 return FALSE;
290}
291
292EAPI
293gboolean g3d_object_optimize(G3DObject *object)
294{
295 G3DFace *face;
296 guint32 index = 0, i, j;
297 GSList *fitem;
298 G3DVector nx, ny, nz, su = 1.0, sv = 1.0;
299
300 /* count number of faces (optimized) */
301 object->_num_faces = 0;
302 fitem = object->faces;
303 while(fitem)
304 {
305 face = (G3DFace *)fitem->data;
306 object->_num_faces += face->vertex_count - 2;
307
308 fitem = fitem->next;
309 }
310
311 object->_normals = g3d_vector_new(3, 3 * object->_num_faces);
312 object->_materials = g_new0(G3DMaterial *, object->_num_faces);
313 object->_flags = g_new0(guint32, object->_num_faces);
314 object->_indices = g_new0(guint32, object->_num_faces * 3);
315 object->_tex_images = g_new0(guint32, object->_num_faces);
316 object->_tex_coords = g3d_vector_new(2, object->_num_faces * 3);
317
318 /* copy faces */
319 fitem = object->faces;
320 while(fitem)
321 {
322 face = (G3DFace *)fitem->data;
323
324 /* generate default normal for face */
325 if(!(face->flags & G3D_FLAG_FAC_NORMALS))
326 {
327 if(!g3d_face_get_normal(face, object, &nx, &ny, &nz))
328 {
329 fitem = fitem->next;
330 object->_num_faces -= face->vertex_count - 2;
331 }
332
333 g3d_vector_unify(&nx, &ny, &nz);
334 }
335
336 for(i = 0; i < (face->vertex_count - 2); i ++)
337 {
338 object->_materials[index] = face->material;
339 object->_flags[index] = face->flags;
340
341 if(face->flags & G3D_FLAG_FAC_TEXMAP)
342 {
343#if 0
344 g3d_texture_prepare(face->tex_image);
345#endif
346 object->_tex_images[index] = face->tex_image->tex_id;
347 su = face->tex_image->tex_scale_u;
348 sv = face->tex_image->tex_scale_v;
349 }
350
351 for(j = 0; j < 3; j ++)
352 {
353 /* vertex stuff */
354 if(j == 0)
355 object->_indices[index * 3] = face->vertex_indices[0];
356 else
357 object->_indices[index * 3+j] = face->vertex_indices[i+j];
358
359 /* normal stuff */
360 if(face->flags & G3D_FLAG_FAC_NORMALS)
361 {
362 object->_normals[(index * 3 + j) * 3 + 0] =
363 face->normals[(i + j) * 3 + 0];
364 object->_normals[(index * 3 + j) * 3 + 1] =
365 face->normals[(i + j) * 3 + 1];
366 object->_normals[(index * 3 + j) * 3 + 2] =
367 face->normals[(i + j) * 3 + 2];
368 }
369 else
370 {
371 object->_normals[(index * 3 + j) * 3 + 0] = nx;
372 object->_normals[(index * 3 + j) * 3 + 1] = ny;
373 object->_normals[(index * 3 + j) * 3 + 2] = nz;
374 }
375
376 /* texture stuff */
377 if(face->flags & G3D_FLAG_FAC_TEXMAP)
378 {
379 /* u */
380 object->_tex_coords[(index * 3 + j) * 2 + 0] = su *
381 ((j == 0) ?
382 face->tex_vertex_data[0] :
383 face->tex_vertex_data[(i + j) * 2 + 0]);
384 /* v */
385 object->_tex_coords[(index * 3 + j) * 2 + 1] = sv *
386 ((j == 0) ?
387 face->tex_vertex_data[1] :
388 face->tex_vertex_data[(i + j) * 2 + 1]);
389 }
390 } /* j: 0 < 3 */
391
392 index ++;
393 } /* i: 0 < vertex_count - 2 */
394
395 fitem = fitem->next;
396 } /* while(fitem) */
397
398 return TRUE;
399}
400
diff --git a/src/others/mimesh/libg3d-0.0.8/src/plugins.c b/src/others/mimesh/libg3d-0.0.8/src/plugins.c
new file mode 100644
index 0000000..740347f
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/src/plugins.c
@@ -0,0 +1,560 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdlib.h>
24#include <sys/param.h> /* PATH_MAX */
25
26#include <string.h>
27#include <unistd.h>
28
29#include <g3d/config.h>
30#include <g3d/stream.h>
31#include <g3d/types.h>
32#include <g3d/plugins.h>
33
34#include <curl/curl.h>
35
36static void plugins_free_plugin(G3DPlugin *plugin)
37{
38 if(plugin->name)
39 g_free(plugin->name);
40 if(plugin->path)
41 g_free(plugin->path);
42 if(plugin->extensions)
43 g_strfreev(plugin->extensions);
44
45 if(plugin->module)
46 g_module_close(plugin->module);
47
48 g_free(plugin);
49}
50
51#define PLUGIN_GET_SYMBOL(symbol, pointer) \
52 do { \
53 if(g_module_symbol(plugin->module, symbol, \
54 (gpointer *)&(pointer)) != TRUE) \
55 pointer = NULL; \
56 } while(0);
57
58static gboolean plugins_loaddirectory(G3DContext *context,
59 const gchar *dirname)
60{
61 GDir *plugindir;
62 G3DPlugin *plugin;
63 gchar **ext, **exts;
64 gchar *path;
65 const gchar *filename;
66 guint32 type = G3D_PLUGIN_UNKNOWN;
67
68 plugindir = g_dir_open(dirname, 0, NULL);
69 if(!plugindir)
70 return FALSE;
71
72 while((filename = g_dir_read_name(plugindir)) != NULL) {
73#ifdef G_OS_WIN32
74 if(g_strcasecmp(filename + strlen(filename) - 4, ".dll") == 0) {
75#else
76/* if(g_strcasecmp(filename + strlen(filename) - 3, ".la") == 0) { */
77 if(g_strcasecmp(filename + strlen(filename) - 3, ".so") == 0) {
78#endif
79 plugin = g_new0(G3DPlugin, 1);
80
81 plugin->name = g_strdup(filename);
82 plugin->path = g_strdup(dirname);
83
84 path = g_strdup_printf("%s%c%s", dirname, G_DIR_SEPARATOR, filename);
85
86 g_warning("libg3d: plugins: loading %s", path);
87 plugin->module = g_module_open(path, 0);
88 if(plugin->module == NULL) {
89 g_warning("libg3d: plugins: failed to load %s: %s", path, g_module_error());
90
91 plugins_free_plugin(plugin);
92 } else {
93 PLUGIN_GET_SYMBOL("plugin_extensions", plugin->ext_func);
94 PLUGIN_GET_SYMBOL("plugin_description", plugin->desc_func);
95 PLUGIN_GET_SYMBOL("plugin_init", plugin->init_func);
96 PLUGIN_GET_SYMBOL("plugin_cleanup", plugin->cleanup_func);
97 PLUGIN_GET_SYMBOL("plugin_load_model_from_stream",
98 plugin->loadmodelstream_func);
99 PLUGIN_GET_SYMBOL("plugin_load_image_from_stream",
100 plugin->loadimagestream_func);
101
102 if (plugin->loadimagestream_func)
103 type = G3D_PLUGIN_IMAGE;
104 if (plugin->loadmodelstream_func)
105 type = G3D_PLUGIN_IMPORT;
106 plugin->type = type;
107
108 /* append plugin to list */
109 context->plugins = g_slist_append(context->plugins, plugin);
110
111 /* handle managed extensions */
112 if(plugin->ext_func) {
113 ext = exts = plugin->ext_func(context);
114 while(*ext != NULL) {
115 if(plugin->type == G3D_PLUGIN_IMAGE)
116 g_hash_table_insert(context->exts_image,
117 *ext, plugin);
118 else if(plugin->type == G3D_PLUGIN_IMPORT)
119 g_hash_table_insert(context->exts_import,
120 *ext, plugin);
121
122 ext ++;
123 }
124 plugin->extensions = exts;
125 }
126
127 /* init plugin if possible */
128 if(plugin->init_func)
129 {
130 plugin->user_data = plugin->init_func(context);
131 }
132
133 } /* plugin->module != NULL */
134
135 g_free(path);
136 } /* .la file */
137
138 } /* while g_dir_read_name(...) */
139
140 g_dir_close(plugindir);
141
142 return TRUE;
143}
144
145#undef PLUGIN_GET_SYMBOL
146
147#ifdef USE_LIBMAGIC
148
149static gboolean plugins_magic_init(G3DContext *context)
150{
151 context->magic_cookie = magic_open(
152 MAGIC_SYMLINK
153#if 0
154 | MAGIC_CHECK
155#endif
156#if DEBUG > 2
157 | MAGIC_DEBUG
158#endif
159 );
160
161#if DEBUG > 0
162 g_debug("checking and loading %s", MAGIC_FILENAME);
163#endif
164
165 if(context->magic_cookie == NULL) {
166 g_warning("magic_open() failed");
167 return FALSE;
168 }
169
170 if(magic_load(context->magic_cookie, MAGIC_FILENAME) != 0) {
171 g_warning("magic_load() failed: %s (%d)",
172 magic_error(context->magic_cookie),
173 magic_errno(context->magic_cookie));
174 magic_close(context->magic_cookie);
175 context->magic_cookie = NULL;
176 return FALSE;
177 }
178
179 return TRUE;
180}
181
182static void plugins_magic_cleanup(G3DContext *context)
183{
184 if(context->magic_cookie != NULL)
185 magic_close(context->magic_cookie);
186 context->magic_cookie = NULL;
187}
188
189static G3DPlugin *plugins_magic_lookup(G3DContext *context,
190 const gchar *filename)
191{
192 gchar *name;
193 const gchar *type;
194 GSList *item;
195 G3DPlugin *tp, *plugin = NULL;
196
197 if(context->magic_cookie == NULL)
198 return NULL;
199
200 type = magic_file(context->magic_cookie, filename);
201 if((type == NULL) || (strlen(type) == 0))
202 return NULL;
203
204 name = g_strdup_printf("imp_%s.la", type);
205 for(item = context->plugins; item != NULL; item = item->next) {
206 tp = (G3DPlugin *)item->data;
207 if(tp->type != G3D_PLUGIN_IMPORT)
208 continue;
209
210 if(strcmp(name, tp->name) == 0)
211 plugin = tp;
212 }
213 g_free(name);
214
215#if DEBUG > 0
216 if(plugin != NULL)
217 g_debug("libmagic detected plugin %s for %s",
218 plugin->name, filename);
219#endif
220
221 return plugin;
222}
223
224#endif /* USE_LIBMAGIC */
225
226EAPI
227gboolean g3d_plugins_init(G3DContext *context)
228{
229 context->exts_import = g_hash_table_new(g_str_hash, g_str_equal);
230 context->exts_image = g_hash_table_new(g_str_hash, g_str_equal);
231
232#ifdef G_OS_WIN32
233 plugins_loaddirectory(context, "plugins");
234#else
235 plugins_loaddirectory(context, PLUGIN_DIR);
236#endif
237
238#ifdef USE_LIBMAGIC
239 plugins_magic_init(context);
240#endif
241
242 return TRUE;
243}
244
245/**
246 * g3d_plugins_cleanup:
247 * @context: an initialized context
248 *
249 * Tries to free any memory allocated during g3d_plugins_init.
250 */
251
252EAPI
253void g3d_plugins_cleanup(G3DContext *context)
254{
255 GSList *plist;
256 G3DPlugin *plugin;
257 gchar **pext;
258
259#ifdef USE_LIBMAGIC
260 plugins_magic_cleanup(context);
261#endif
262
263 plist = context->plugins;
264 while(plist)
265 {
266 plugin = (G3DPlugin *)plist->data;
267
268#if DEBUG > 2
269 g_debug("cleaning up plugin '%s'", plugin->name);
270#endif
271
272 /* cleanup plugin-specific data */
273 if(plugin->cleanup_func)
274 plugin->cleanup_func(plugin->user_data);
275
276 /* remove extensions from hash tables */
277 pext = plugin->extensions;
278 while(*pext)
279 {
280 if(plugin->type == G3D_PLUGIN_IMAGE)
281 g_hash_table_remove(context->exts_image, *pext);
282 else if(plugin->type == G3D_PLUGIN_IMPORT)
283 g_hash_table_remove(context->exts_import, *pext);
284
285 pext ++;
286 }
287
288 /* cleanup struct data */
289 plugins_free_plugin(plugin);
290
291 /* free list item */
292 plist = g_slist_remove(plist, plugin);
293 }
294
295 /* remove hash tables */
296 g_hash_table_destroy(context->exts_image);
297 g_hash_table_destroy(context->exts_import);
298}
299
300gchar *g3d_plugins_get_filetype(const gchar *filename)
301{
302 gchar *ext, *lcext;
303
304 ext = strrchr(filename, '.');
305 if(ext == NULL) {
306 g_warning("can't determine file type: %s", filename);
307 return NULL;
308 }
309 ext ++;
310 if(strlen(ext) == 0) {
311 g_warning("zero length file extension: %s", filename);
312 return NULL;
313 }
314
315 lcext = g_strdup(ext);
316 g_strdown(lcext);
317
318 return lcext;
319}
320
321static G3DPlugin *get_plugin_for_type(G3DContext *context,
322 const gchar *filename)
323{
324 G3DPlugin *plugin = NULL;
325 gchar *lcext;
326
327#ifdef USE_LIBMAGIC
328 plugin = plugins_magic_lookup(context, filename);
329#endif
330
331 if(plugin == NULL)
332 {
333 /* try to get type by extension */
334 lcext = g3d_plugins_get_filetype(filename);
335 if(lcext == NULL)
336 return NULL;
337
338 plugin = g_hash_table_lookup(context->exts_import, lcext);
339
340 g_free(lcext);
341 }
342
343 if(plugin == NULL)
344 {
345 g_warning("no handler for file '%s' found", filename);
346 return NULL;
347 }
348
349 return plugin;
350}
351
352struct httpBuffer
353{
354 void *buffer;
355 size_t size;
356 size_t max;
357};
358
359static size_t curlWrite(void *ptr, size_t size, size_t nmemb, void *userData)
360{
361 struct httpBuffer *result = (struct httpBuffer *) userData;
362 size_t bytes = size * nmemb;
363
364 if ((result->size + bytes) > result->max)
365 {
366 result->max += bytes;
367 result->buffer = realloc(result->buffer, result->max);
368 }
369 if (result->buffer)
370 {
371 memcpy(result->buffer + result->size, ptr, bytes);
372 result->size += bytes;
373 }
374 else
375 g_warning("curlWrite() ran out of memory.");
376
377 return nmemb;
378}
379
380EAPI
381gboolean g3d_plugins_load_model(G3DContext *context, const gchar *filename,
382 G3DModel *model)
383{
384 G3DPlugin *plugin = NULL;
385 G3DStream *stream;
386 gboolean retval = FALSE;
387
388 plugin = get_plugin_for_type(context, filename);
389 if(plugin == NULL)
390 return FALSE;
391
392 if (strncmp(filename, "http://", 6) == 0)
393 {
394 struct httpBuffer result;
395#if 0
396 char curlErrorBuffer[CURL_ERROR_SIZE];
397 CURLcode curlSuccess;
398 long httpStatus = 499;
399 CURL* curlp = curl_easy_init();
400
401 result.size = 0;
402 result.max = 0;
403 result.buffer = NULL;
404
405 curl_easy_setopt(curlp, CURLOPT_NOSIGNAL, 1); /* don't use SIGALRM for timeouts */
406 curl_easy_setopt(curlp, CURLOPT_TIMEOUT, 30); /* seconds */
407 curl_easy_setopt(curlp, CURLOPT_WRITEFUNCTION, curlWrite);
408 curl_easy_setopt(curlp, CURLOPT_WRITEDATA, &result);
409 curl_easy_setopt(curlp, CURLOPT_URL, filename);
410 curl_easy_setopt(curlp, CURLOPT_ERRORBUFFER, curlErrorBuffer);
411 curl_easy_setopt(curlp, CURLOPT_FAILONERROR, 1);
412
413 curlSuccess = curl_easy_perform(curlp);
414 curl_easy_getinfo(curlp, CURLINFO_RESPONSE_CODE, &httpStatus);
415 if (curlSuccess != 0)
416 g_warning("CURL ERROR (HTTP Status %ld): %s", httpStatus, curlErrorBuffer);
417 else if (httpStatus != 200)
418 g_warning("HTTP Error %ld, but no Curl error.", httpStatus);
419 else
420 g_debug("CURL got the file %s", filename);
421
422 stream = g3d_stream_from_buffer(result.buffer, result.size, filename, FALSE);
423 if(stream)
424 {
425 model->stream = stream;
426 retval = plugin->loadmodelstream_func(context, stream, model, plugin->user_data);
427 g3d_stream_close(stream);
428 }
429 else
430 g_warning("failed to open '%s'", filename);
431
432 curl_easy_cleanup(curlp);
433 if (result.buffer)
434 free(result.buffer);
435#endif
436 }
437 else /* It's a file. */
438 {
439 gchar *basename, *dirname;
440 gchar *olddir;
441
442 basename = g_path_get_basename(filename);
443 dirname = g_path_get_dirname(filename);
444
445 olddir = g_get_current_dir();
446 /* TODO: since glib 2.8 there is a g_chdir() wrapper, use it if
447 * for some reason a glib >= 2.8 is required */
448 chdir(dirname);
449
450 if(plugin->loadmodelstream_func != NULL) {
451 /* try to load the model via the more generic G3DStream interface */
452 stream = g3d_stream_open_file(basename, "rb");
453 if(stream) {
454 model->stream = stream;
455 retval = plugin->loadmodelstream_func(context, stream, model,
456 plugin->user_data);
457 g3d_stream_close(stream);
458 }
459 else {
460 g_warning("failed to open '%s'", basename);
461 }
462 }
463 else
464 g_warning("No plugin_load_model_from_stream() for '%s'", basename);
465 g_free(basename);
466 g_free(dirname);
467
468 chdir(olddir);
469 g_free(olddir);
470 }
471
472 if(retval)
473 model->plugin = plugin;
474
475 return retval;
476}
477
478EAPI
479gboolean g3d_plugins_load_model_from_stream(G3DContext *context,
480 G3DStream *stream, G3DModel *model)
481{
482 G3DPlugin *plugin = NULL;
483
484/* g_return_val_if_fail(stream != NULL, FALSE); */
485
486 plugin = get_plugin_for_type(context, stream->uri);
487 if(plugin == NULL)
488 return FALSE;
489
490 if((plugin->loadmodelstream_func != NULL) && plugin->loadmodelstream_func(
491 context, stream, model, plugin->user_data)) {
492 model->plugin = plugin;
493 return TRUE;
494 }
495 return FALSE;
496}
497
498EAPI
499gboolean g3d_plugins_load_image_from_stream(G3DContext *context,
500 G3DStream *stream, G3DImage *image)
501{
502 G3DPlugin *plugin;
503 gchar *lcext;
504
505 lcext = g3d_plugins_get_filetype(stream->uri);
506 if(lcext == NULL)
507 return FALSE;
508
509 plugin = g_hash_table_lookup(context->exts_image, lcext);
510 if(plugin == NULL) {
511 g_warning("no handler for filetype '.%s' found", lcext);
512 g_free(lcext);
513 return FALSE;
514 }
515 g_free(lcext);
516
517 if(plugin->loadimagestream_func == NULL) {
518 g_warning("can't find symbol 'plugin_load_image_from_stream' in %s",
519 plugin->name);
520 return FALSE;
521 }
522
523 return plugin->loadimagestream_func(context, stream, image,
524 plugin->user_data);
525}
526
527struct plugins_ext_list {
528 guint32 pos;
529 gchar **list;
530};
531
532static void plugins_list_ext(gpointer key, gpointer value, gpointer user_data)
533{
534 struct plugins_ext_list *data;
535
536 data = (struct plugins_ext_list *)user_data;
537
538 data->list[data->pos] = g_strdup(key);
539 data->pos ++;
540}
541
542EAPI
543gchar **g3d_plugins_get_image_extensions(G3DContext *context)
544{
545 gchar **list;
546 guint32 n;
547 struct plugins_ext_list data;
548
549 n = g_hash_table_size(context->exts_image);
550 list = g_new0(gchar *, n + 1);
551
552 data.pos = 0;
553 data.list = list;
554
555 /* fill extension list */
556 g_hash_table_foreach(context->exts_image, plugins_list_ext, &data);
557
558 return list;
559}
560
diff --git a/src/others/mimesh/libg3d-0.0.8/src/primitive.c b/src/others/mimesh/libg3d-0.0.8/src/primitive.c
new file mode 100644
index 0000000..53b9c5b
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/src/primitive.c
@@ -0,0 +1,743 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <math.h>
24#include <string.h>
25
26#ifndef M_PI
27# define M_PI 3.14159265358979323846
28#endif
29
30#include <g3d/types.h>
31#include <g3d/vector.h>
32#include <g3d/primitive.h>
33#include <g3d/face.h>
34
35EAPI
36G3DObject *g3d_primitive_cube(G3DFloat width, G3DFloat height, G3DFloat depth,
37 G3DMaterial *material)
38{
39 g_warning("g3d_primitive_cube is deprecated - please update your "
40 "sources to use g3d_primitive_box instead");
41 return g3d_primitive_box(width, height, depth, material);
42}
43
44EAPI
45G3DObject *g3d_primitive_box(G3DFloat width, G3DFloat height, G3DFloat depth,
46 G3DMaterial *material)
47{
48 G3DObject *object;
49 G3DFace *face;
50 G3DVector nx, ny, nz;
51 gint32 faces[6][4] = {
52 { 0, 1, 2, 3 },
53 { 4, 5, 6, 7 },
54 { 0, 1, 5, 4 },
55 { 2, 3, 7, 6 },
56 { 1, 2, 6, 5 },
57 { 0, 4, 7, 3 }};
58 gint32 i, j;
59
60 object = g_new0(G3DObject, 1);
61
62 object->vertex_count = 8;
63 object->vertex_data = g3d_vector_new(3, object->vertex_count);
64
65 object->vertex_data[0 * 3 + 0] = -(width / 2);
66 object->vertex_data[0 * 3 + 1] = -(height / 2);
67 object->vertex_data[0 * 3 + 2] = -(depth / 2);
68
69 object->vertex_data[1 * 3 + 0] = -(width / 2);
70 object->vertex_data[1 * 3 + 1] = -(height / 2);
71 object->vertex_data[1 * 3 + 2] = (depth / 2);
72
73 object->vertex_data[2 * 3 + 0] = (width / 2);
74 object->vertex_data[2 * 3 + 1] = -(height / 2);
75 object->vertex_data[2 * 3 + 2] = (depth / 2);
76
77 object->vertex_data[3 * 3 + 0] = (width / 2);
78 object->vertex_data[3 * 3 + 1] = -(height / 2);
79 object->vertex_data[3 * 3 + 2] = -(depth / 2);
80
81 object->vertex_data[4 * 3 + 0] = -(width / 2);
82 object->vertex_data[4 * 3 + 1] = (height / 2);
83 object->vertex_data[4 * 3 + 2] = -(depth / 2);
84
85 object->vertex_data[5 * 3 + 0] = -(width / 2);
86 object->vertex_data[5 * 3 + 1] = (height / 2);
87 object->vertex_data[5 * 3 + 2] = (depth / 2);
88
89 object->vertex_data[6 * 3 + 0] = (width / 2);
90 object->vertex_data[6 * 3 + 1] = (height / 2);
91 object->vertex_data[6 * 3 + 2] = (depth / 2);
92
93 object->vertex_data[7 * 3 + 0] = (width / 2);
94 object->vertex_data[7 * 3 + 1] = (height / 2);
95 object->vertex_data[7 * 3 + 2] = -(depth / 2);
96
97 for(i = 0; i < 6; i ++) {
98 face = g_new0(G3DFace, 1);
99 face->vertex_count = 4;
100 face->vertex_indices = g_new0(guint32, 4);
101 face->normals = g3d_vector_new(3, 4);
102 face->tex_vertex_count = 4;
103 face->tex_vertex_data = g3d_vector_new(2, 4);
104 for(j = 0; j < 4; j ++) {
105 face->vertex_indices[j] = faces[i][j];
106 }
107
108 /* add normals */
109 g3d_face_get_normal(face, object, &nx, &ny, &nz);
110 for(j = 0; j < 4; j ++) {
111 face->normals[j * 3 + 0] = nx;
112 face->normals[j * 3 + 1] = ny;
113 face->normals[j * 3 + 2] = nz;
114 }
115
116 face->flags |= G3D_FLAG_FAC_NORMALS;
117
118 /* add default texture coordinates */
119 face->tex_vertex_data[0 * 2 + 0] = 0;
120 face->tex_vertex_data[0 * 2 + 1] = 0;
121 face->tex_vertex_data[1 * 2 + 0] = 1;
122 face->tex_vertex_data[1 * 2 + 1] = 0;
123 face->tex_vertex_data[2 * 2 + 0] = 1;
124 face->tex_vertex_data[2 * 2 + 1] = 1;
125 face->tex_vertex_data[3 * 2 + 0] = 0;
126 face->tex_vertex_data[3 * 2 + 1] = 1;
127
128 face->material = material;
129 object->faces = g_slist_append(object->faces, face);
130 }
131
132 return object;
133}
134
135EAPI
136G3DObject *g3d_primitive_cylinder(G3DFloat radius, G3DFloat height,
137 guint32 sides, gboolean top, gboolean bottom, G3DMaterial *material)
138{
139 G3DObject *object;
140 G3DFace *face;
141 guint32 i;
142
143 if(sides < 3)
144 return NULL;
145
146 object = g_new0(G3DObject, 1);
147
148 /* vertices */
149 object->vertex_count = sides * 2 + 2;
150 object->vertex_data = g3d_vector_new(3, object->vertex_count);
151
152 /* 2 rings */
153 for(i = 0; i < sides; i ++)
154 {
155 object->vertex_data[i * 3 + 0] =
156 object->vertex_data[(sides + i) * 3 + 0] =
157 radius * cos(M_PI * 2 * i / sides);
158 object->vertex_data[i * 3 + 1] =
159 object->vertex_data[(sides + i) * 3 + 1] =
160 radius * sin(M_PI * 2 * i / sides);
161
162 object->vertex_data[i * 3 + 2] = 0.0;
163 object->vertex_data[(sides + i) * 3 + 2] = height;
164 }
165
166 /* center top & bottom */
167 object->vertex_data[sides * 2 * 3 + 0] = 0.0;
168 object->vertex_data[sides * 2 * 3 + 1] = 0.0;
169 object->vertex_data[sides * 2 * 3 + 2] = 0.0;
170
171 object->vertex_data[sides * 2 * 3 + 3] = 0.0;
172 object->vertex_data[sides * 2 * 3 + 4] = 0.0;
173 object->vertex_data[sides * 2 * 3 + 5] = height;
174
175 /* ring faces */
176 for(i = 0; i < sides; i ++)
177 {
178 face = g_new0(G3DFace, 1);
179 face->material = material;
180 face->vertex_count = 4;
181 face->vertex_indices = g_new0(guint32, 4);
182
183 face->vertex_indices[0] = i;
184 face->vertex_indices[1] = i + sides;
185
186 if(i == (sides - 1))
187 {
188 face->vertex_indices[2] = sides;
189 face->vertex_indices[3] = 0;
190 }
191 else
192 {
193 face->vertex_indices[2] = i + sides + 1;
194 face->vertex_indices[3] = i + 1;
195 }
196
197 /* normals */
198 face->flags |= G3D_FLAG_FAC_NORMALS;
199 face->normals = g3d_vector_new(3, 4);
200
201 face->normals[0 * 3 + 0] =
202 face->normals[1 * 3 + 0] =
203 object->vertex_data[i * 3 + 0];
204 face->normals[0 * 3 + 1] =
205 face->normals[1 * 3 + 1] =
206 object->vertex_data[i * 3 + 1];
207 face->normals[0 * 3 + 2] = 0.0;
208 face->normals[1 * 3 + 2] = 0.0;
209
210 g3d_vector_unify(
211 &(face->normals[0 * 3 + 0]),
212 &(face->normals[0 * 3 + 1]),
213 &(face->normals[0 * 3 + 2]));
214 g3d_vector_unify(
215 &(face->normals[1 * 3 + 0]),
216 &(face->normals[1 * 3 + 1]),
217 &(face->normals[1 * 3 + 2]));
218
219 face->normals[2 * 3 + 0] =
220 face->normals[3 * 3 + 0] =
221 object->vertex_data[face->vertex_indices[2] * 3 + 0];
222 face->normals[2 * 3 + 1] =
223 face->normals[3 * 3 + 1] =
224 object->vertex_data[face->vertex_indices[2] * 3 + 1];
225 face->normals[2 * 3 + 2] = 0.0;
226 face->normals[3 * 3 + 2] = 0.0;
227
228 g3d_vector_unify(
229 &(face->normals[2 * 3 + 0]),
230 &(face->normals[2 * 3 + 1]),
231 &(face->normals[2 * 3 + 2]));
232 g3d_vector_unify(
233 &(face->normals[3 * 3 + 0]),
234 &(face->normals[3 * 3 + 1]),
235 &(face->normals[3 * 3 + 2]));
236
237 object->faces = g_slist_append(object->faces, face);
238 }
239
240 if(top)
241 {
242 for(i = 0; i < sides; i ++)
243 {
244 face = g_new0(G3DFace, 1);
245 face->material = material;
246 face->vertex_count = 3;
247 face->vertex_indices = g_new0(guint32, 3);
248
249 face->vertex_indices[0] = sides + i;
250 face->vertex_indices[1] = sides * 2 + 1; /* top center */
251 if(i == (sides - 1))
252 face->vertex_indices[2] = sides;
253 else
254 face->vertex_indices[2] = sides + i + 1;
255
256 object->faces = g_slist_append(object->faces, face);
257 }
258 }
259
260 if(bottom)
261 {
262 for(i = 0; i < sides; i ++)
263 {
264 face = g_new0(G3DFace, 1);
265 face->material = material;
266 face->vertex_count = 3;
267 face->vertex_indices = g_new0(guint32, 3);
268
269 face->vertex_indices[0] = i;
270 face->vertex_indices[1] = sides * 2; /* bottom center */
271 if(i == (sides - 1))
272 face->vertex_indices[2] = 0;
273 else
274 face->vertex_indices[2] = i + 1;
275
276 object->faces = g_slist_append(object->faces, face);
277 }
278 }
279
280 return object;
281}
282
283EAPI
284G3DObject *g3d_primitive_tube(G3DFloat r_in, G3DFloat r_out, G3DFloat height,
285 guint32 sides, gboolean top, gboolean bottom, G3DMaterial *material)
286{
287 G3DObject *object;
288 G3DFace *face;
289 guint32 i, j;
290
291 if(sides < 3)
292 return NULL;
293
294 object = g_new0(G3DObject, 1);
295
296 /* vertices */
297 object->vertex_count = sides * 4;
298 object->vertex_data = g3d_vector_new(3, object->vertex_count);
299
300 /*
301 * outer lower 0
302 * outer upper sides
303 * inner lower sides * 2
304 * inner upper sides * 3
305 */
306
307 /* 4 rings */
308 for(i = 0; i < sides; i ++)
309 {
310 /* outer rings */
311 object->vertex_data[i * 3 + 0] =
312 object->vertex_data[(sides + i) * 3 + 0] =
313 r_out * cos(M_PI * 2 * i / sides);
314 object->vertex_data[i * 3 + 1] =
315 object->vertex_data[(sides + i) * 3 + 1] =
316 r_out * sin(M_PI * 2 * i / sides);
317
318 object->vertex_data[i * 3 + 2] = 0.0;
319 object->vertex_data[(sides + i) * 3 + 2] = height;
320
321 /* inner rings */
322 object->vertex_data[(sides * 2 + i) * 3 + 0] =
323 object->vertex_data[(sides * 3 + i) * 3 + 0] =
324 r_in * cos(M_PI * 2 * i / sides);
325 object->vertex_data[(sides * 2 + i) * 3 + 1] =
326 object->vertex_data[(sides * 3 + i) * 3 + 1] =
327 r_in * sin(M_PI * 2 * i / sides);
328
329 object->vertex_data[(sides * 2 + i) * 3 + 2] = 0.0;
330 object->vertex_data[(sides * 3 + i) * 3 + 2] = height;
331 }
332
333 /* ring faces */
334 for(i = 0; i < sides; i ++)
335 {
336 /* outer and inner faces */
337 for(j = 0; j < 2; j ++)
338 {
339 face = g_new0(G3DFace, 1);
340 face->material = material;
341 face->vertex_count = 4;
342 face->vertex_indices = g_new0(guint32, 4);
343
344 face->vertex_indices[0] = i + sides * (j * 2 + 0);
345 face->vertex_indices[1] = i + sides * (j * 2 + 1);
346
347 if(i == (sides - 1))
348 {
349 face->vertex_indices[2] = sides * (j * 2 + 1);
350 face->vertex_indices[3] = sides * (j * 2 + 0);
351 }
352 else
353 {
354 face->vertex_indices[2] = i + sides * (j * 2 + 1) + 1;
355 face->vertex_indices[3] = i + sides * (j * 2 + 0) + 1;
356 }
357
358 /* normals */
359 face->flags |= G3D_FLAG_FAC_NORMALS;
360 face->normals = g3d_vector_new(3, 4);
361
362 face->normals[0 * 3 + 0] =
363 face->normals[1 * 3 + 0] =
364 object->vertex_data[face->vertex_indices[0] * 3 + 0] *
365 (j ? -1 : 1);
366 face->normals[0 * 3 + 1] =
367 face->normals[1 * 3 + 1] =
368 object->vertex_data[face->vertex_indices[0] * 3 + 1] *
369 (j ? -1 : 1);
370 face->normals[0 * 3 + 2] = 0.0;
371 face->normals[1 * 3 + 2] = 0.0;
372
373 g3d_vector_unify(
374 &(face->normals[0 * 3 + 0]),
375 &(face->normals[0 * 3 + 1]),
376 &(face->normals[0 * 3 + 2]));
377 g3d_vector_unify(
378 &(face->normals[1 * 3 + 0]),
379 &(face->normals[1 * 3 + 1]),
380 &(face->normals[1 * 3 + 2]));
381
382 face->normals[2 * 3 + 0] =
383 face->normals[3 * 3 + 0] =
384 object->vertex_data[face->vertex_indices[2] * 3 + 0] *
385 (j ? -1 : 1);
386 face->normals[2 * 3 + 1] =
387 face->normals[3 * 3 + 1] =
388 object->vertex_data[face->vertex_indices[2] * 3 + 1] *
389 (j ? -1 : 1);
390 face->normals[2 * 3 + 2] = 0.0;
391 face->normals[3 * 3 + 2] = 0.0;
392
393 g3d_vector_unify(
394 &(face->normals[2 * 3 + 0]),
395 &(face->normals[2 * 3 + 1]),
396 &(face->normals[2 * 3 + 2]));
397 g3d_vector_unify(
398 &(face->normals[3 * 3 + 0]),
399 &(face->normals[3 * 3 + 1]),
400 &(face->normals[3 * 3 + 2]));
401
402 object->faces = g_slist_append(object->faces, face);
403 }
404 }
405
406 /* top/bottom faces if requested */
407 for(i = 0; i < sides; i ++)
408 {
409 for(j = (bottom ? 0 : 1); j < (top ? 2 : 1); j ++)
410 {
411 face = g_new0(G3DFace, 1);
412 face->material = material;
413 face->vertex_count = 4;
414 face->vertex_indices = g_new0(guint32, 4);
415
416 face->vertex_indices[0] = sides * (2 + j) + i; /* inner */
417 face->vertex_indices[1] = sides * (0 + j) + i; /* outer */
418
419 if(i == (sides - 1))
420 {
421 face->vertex_indices[2] = sides * (0 + j); /* outer first */
422 face->vertex_indices[3] = sides * (2 + j); /* inner first */
423 }
424 else
425 {
426 face->vertex_indices[2] = sides * (0 + j) + i + 1;
427 face->vertex_indices[3] = sides * (2 + j) + i + 1;
428 }
429
430 object->faces = g_slist_append(object->faces, face);
431 }
432 }
433
434 return object;
435}
436
437EAPI
438G3DObject *g3d_primitive_sphere(G3DFloat radius, guint32 vseg, guint32 hseg,
439 G3DMaterial *material)
440{
441 G3DObject *object;
442 G3DFace *face;
443 GSList *flist;
444 gint32 sh, sv, i;
445 gdouble x, y, z, u;
446
447 g_return_val_if_fail(vseg >= 2, NULL);
448 g_return_val_if_fail(hseg >= 3, NULL);
449
450 object = g_new0(G3DObject, 1);
451 object->vertex_count = (vseg - 1) * hseg + 2;
452 object->vertex_data = g3d_vector_new(3, object->vertex_count);
453
454 for(sv = 1; sv < vseg; sv ++)
455 {
456 y = radius * cos(M_PI * sv / vseg);
457 u = radius * sin(M_PI * sv / vseg);
458 for(sh = 0; sh < hseg; sh ++)
459 {
460 x = radius * cos(M_PI * 2 * sh / hseg) * u;
461 z = radius * sin(M_PI * 2 * sh / hseg) * u;
462
463 object->vertex_data[((sv - 1) * hseg + sh) * 3 + 0] = x;
464 object->vertex_data[((sv - 1) * hseg + sh) * 3 + 1] = y;
465 object->vertex_data[((sv - 1) * hseg + sh) * 3 + 2] = z;
466
467 if(sv > 1)
468 {
469 /* first triangle */
470 face = g_new0(G3DFace, 1);
471 face->material = material;
472 face->vertex_count = 3;
473 face->vertex_indices = g_new0(guint32, 3);
474 face->vertex_indices[0] = (sv - 1) * hseg + sh;
475 face->vertex_indices[1] = (sh == (hseg - 1)) ?
476 (sv - 1) * hseg :
477 (sv - 1) * hseg + sh + 1;
478 face->vertex_indices[2] = (sv - 2) * hseg + sh;
479 object->faces = g_slist_append(object->faces, face);
480
481 /* second triangle */
482 face = g_new0(G3DFace, 1);
483 face->material = material;
484 face->vertex_count = 3;
485 face->vertex_indices = g_new0(guint32, 3);
486 face->vertex_indices[0] = (sv - 2) * hseg + sh;
487 face->vertex_indices[1] = (sh == (hseg - 1)) ?
488 (sv - 1) * hseg :
489 (sv - 1) * hseg + sh + 1;
490 face->vertex_indices[2] = (sh == (hseg - 1)) ?
491 (sv - 2) * hseg :
492 (sv - 2) * hseg + sh + 1;
493 object->faces = g_slist_append(object->faces, face);
494 } /* sv > 1 */
495 } /* hseg */
496 } /* vseg */
497
498 object->vertex_data[(object->vertex_count - 1) * 3 + 0] = 0;
499 object->vertex_data[(object->vertex_count - 1) * 3 + 1] = radius;
500 object->vertex_data[(object->vertex_count - 1) * 3 + 2] = 0;
501
502 object->vertex_data[(object->vertex_count - 2) * 3 + 0] = 0;
503 object->vertex_data[(object->vertex_count - 2) * 3 + 1] = -radius;
504 object->vertex_data[(object->vertex_count - 2) * 3 + 2] = 0;
505
506 for(sh = 0; sh < hseg; sh ++)
507 {
508 /* top */
509 face = g_new0(G3DFace, 1);
510 face->material = material;
511 face->vertex_count = 3;
512 face->vertex_indices = g_new0(guint32, 3);
513
514 face->vertex_indices[0] = object->vertex_count - 1;
515 face->vertex_indices[1] = sh;
516 face->vertex_indices[2] = (sh == (hseg - 1)) ? 0 : sh + 1;
517
518 object->faces = g_slist_append(object->faces, face);
519
520 /* bottom */
521 face = g_new0(G3DFace, 1);
522 face->material = material;
523 face->vertex_count = 3;
524 face->vertex_indices = g_new0(guint32, 3);
525
526 face->vertex_indices[2] = object->vertex_count - 2;
527 face->vertex_indices[1] = (vseg - 2) * hseg + sh;
528 face->vertex_indices[0] = (sh == (hseg - 1)) ?
529 (vseg - 2) * hseg :
530 (vseg - 2) * hseg + sh + 1;
531
532 object->faces = g_slist_append(object->faces, face);
533 }
534
535 /* generate normals */
536 flist = object->faces;
537 while(flist)
538 {
539 face = (G3DFace *)flist->data;
540 face->flags |= G3D_FLAG_FAC_NORMALS;
541 face->normals = g3d_vector_new(3, face->vertex_count);
542 for(i = 0; i < face->vertex_count; i ++)
543 {
544 face->normals[i * 3 + 0] =
545 - object->vertex_data[face->vertex_indices[i] * 3 + 0];
546 face->normals[i * 3 + 1] =
547 - object->vertex_data[face->vertex_indices[i] * 3 + 1];
548 face->normals[i * 3 + 2] =
549 - object->vertex_data[face->vertex_indices[i] * 3 + 2];
550
551 g3d_vector_unify(
552 &(face->normals[i * 3 + 0]),
553 &(face->normals[i * 3 + 1]),
554 &(face->normals[i * 3 + 2]));
555 }
556
557 flist = flist->next;
558 }
559
560 return object;
561}
562
563/* vdata: 2-dimensional coordinates: vcnt * 2 * gdouble */
564EAPI
565G3DObject *g3d_primitive_box_strip_2d(guint32 vcnt, gdouble *vdata,
566 gdouble height, gdouble width, G3DMaterial *material)
567{
568 G3DObject *object;
569 G3DFace *face;
570 gint32 i, index;
571 G3DVector *normals, normal[3];
572 G3DFloat r;
573
574 /* create object & helpers */
575 object = g_new0(G3DObject, 1);
576 normals = g3d_vector_new(3, vcnt);
577 object->vertex_count = vcnt * 4;
578 object->vertex_data = g3d_vector_new(3, object->vertex_count);
579
580 /* generate normals */
581 for(i = 0; i < vcnt; i ++) {
582 /* normal data */
583 g3d_vector_normal(
584 /* vector 1 */
585 vdata[(i + 1) * 2 + 0] - vdata[i * 2 + 0],
586 0.0,
587 vdata[(i + 1) * 2 + 1] - vdata[i * 2 + 1],
588 /* vector 2 */
589 0.0, 1.0, 0.0,
590 /* resulting vector */
591 &(normals[i * 3 + 0]),
592 &(normals[i * 3 + 1]),
593 &(normals[i * 3 + 2]));
594 g3d_vector_unify(
595 &(normals[i * 3 + 0]),
596 &(normals[i * 3 + 1]),
597 &(normals[i * 3 + 2]));
598 }
599
600 /* radius */
601 r = width / 2.0;
602
603 /* generate vertices */
604 for(i = 0; i < vcnt; i ++) {
605 /* average normal for vertex */
606 if(i == 0) {
607 normal[0] = normals[i * 3 + 0];
608 normal[1] = normals[i * 3 + 1];
609 normal[2] = normals[i * 3 + 2];
610 } else {
611 normal[0] = (normals[i * 3 + 0] + normals[(i - 1) * 3 + 0]) / 2.0;
612 normal[1] = (normals[i * 3 + 1] + normals[(i - 1) * 3 + 1]) / 2.0;
613 normal[2] = (normals[i * 3 + 2] + normals[(i - 1) * 3 + 2]) / 2.0;
614 g3d_vector_unify(&(normals[0]), &(normals[1]), &(normals[2]));
615 }
616
617 /* vertex data */
618 /* v0 */
619 index = i * 4;
620 object->vertex_data[index * 3 + 0] = vdata[i * 2 + 0] + normals[0] * r;
621 object->vertex_data[index * 3 + 1] = height;
622 object->vertex_data[index * 3 + 2] = vdata[i * 2 + 1] + normals[2] * r;
623 /* v1 */
624 index ++;
625 object->vertex_data[index * 3 + 0] = vdata[i * 2 + 0] - normals[0] * r;
626 object->vertex_data[index * 3 + 1] = height;
627 object->vertex_data[index * 3 + 2] = vdata[i * 2 + 1] - normals[2] * r;
628 /* v2 */
629 index ++;
630 object->vertex_data[index * 3 + 0] = vdata[i * 2 + 0] - normals[0] * r;
631 object->vertex_data[index * 3 + 1] = 0.0;
632 object->vertex_data[index * 3 + 2] = vdata[i * 2 + 1] - normals[2] * r;
633 /* v3 */
634 index ++;
635 object->vertex_data[index * 3 + 0] = vdata[i * 2 + 0] + normals[0] * r;
636 object->vertex_data[index * 3 + 1] = 0.0;
637 object->vertex_data[index * 3 + 2] = vdata[i * 2 + 1] + normals[2] * r;
638
639 if(i > 0) {
640 /* generate faces */
641 /* upper face */
642 face = g_new0(G3DFace, 1);
643 face->material = material;
644 face->vertex_count = 4;
645 face->vertex_indices = g_new0(guint32, 4);
646 face->vertex_indices[0] = (i * 4) + 0;
647 face->vertex_indices[1] = (i * 4) + 1;
648 face->vertex_indices[2] = (i * 4) - 3;
649 face->vertex_indices[3] = (i * 4) - 4;
650 object->faces = g_slist_prepend(object->faces, face);
651 /* lower face */
652 face = g_new0(G3DFace, 1);
653 face->material = material;
654 face->vertex_count = 4;
655 face->vertex_indices = g_new0(guint32, 4);
656 face->vertex_indices[0] = (i * 4) + 3;
657 face->vertex_indices[1] = (i * 4) - 1;
658 face->vertex_indices[2] = (i * 4) - 2;
659 face->vertex_indices[3] = (i * 4) + 2;
660 object->faces = g_slist_prepend(object->faces, face);
661 /* "front" face */
662 face = g_new0(G3DFace, 1);
663 face->material = material;
664 face->vertex_count = 4;
665 face->vertex_indices = g_new0(guint32, 4);
666 face->vertex_indices[0] = (i * 4) + 1;
667 face->vertex_indices[1] = (i * 4) + 2;
668 face->vertex_indices[2] = (i * 4) - 2;
669 face->vertex_indices[3] = (i * 4) - 3;
670 object->faces = g_slist_prepend(object->faces, face);
671 /* "back" face */
672 face = g_new0(G3DFace, 1);
673 face->material = material;
674 face->vertex_count = 4;
675 face->vertex_indices = g_new0(guint32, 4);
676 face->vertex_indices[0] = (i * 4) - 4;
677 face->vertex_indices[1] = (i * 4) - 1;
678 face->vertex_indices[2] = (i * 4) + 3;
679 face->vertex_indices[3] = (i * 4) + 0;
680 object->faces = g_slist_prepend(object->faces, face);
681 }
682 }
683 /* clean up */
684 g_free(normals);
685
686 return object;
687}
688
689EAPI
690G3DObject *g3d_primitive_mesh(guint32 m, guint32 n, gboolean wrap_m,
691 gboolean wrap_n, G3DMaterial *material)
692{
693 G3DObject *object;
694 G3DFace *face;
695 gint32 x, y;
696
697 object = g_new0(G3DObject, 1);
698 object->vertex_count = m * n;
699 object->vertex_data = g3d_vector_new(3, object->vertex_count);
700
701 for(y = 0; y < (n - 1); y ++) {
702 for(x = 0; x < (m - 1); x ++) {
703 face = g3d_face_new_tri(material,
704 y * m + x, y * m + x + 1, (y + 1) * m + x);
705 object->faces = g_slist_prepend(object->faces, face);
706
707 face = g3d_face_new_tri(material,
708 (y + 1) * m + x, y * m + x + 1, (y + 1) * m + x + 1);
709 object->faces = g_slist_prepend(object->faces, face);
710 }
711 if(wrap_n) {
712 face = g3d_face_new_tri(material,
713 (y + 1) * m - 1, y * m, (y + 2) * m - 1);
714 object->faces = g_slist_prepend(object->faces, face);
715
716 face = g3d_face_new_tri(material,
717 (y + 2) * m - 1, y * m, (y + 1) * m);
718 object->faces = g_slist_prepend(object->faces, face);
719 }
720 }
721 if(wrap_m) {
722 for(x = 0; x < (m - 1); x ++) {
723 face = g3d_face_new_tri(material,
724 (n - 1) * m + x, (n - 1) * m + x + 1, x);
725 object->faces = g_slist_prepend(object->faces, face);
726
727 face = g3d_face_new_tri(material,
728 x, (n - 1) * m + x + 1, x + 1);
729 object->faces = g_slist_prepend(object->faces, face);
730 }
731 if(wrap_n) {
732 face = g3d_face_new_tri(material,
733 n * m - 1, (n - 1) * m, m - 1);
734 object->faces = g_slist_prepend(object->faces, face);
735
736 face = g3d_face_new_tri(material,
737 m - 1, (n - 1) * m, 0);
738 object->faces = g_slist_prepend(object->faces, face);
739 }
740 }
741 return object;
742}
743
diff --git a/src/others/mimesh/libg3d-0.0.8/src/quat.c b/src/others/mimesh/libg3d-0.0.8/src/quat.c
new file mode 100644
index 0000000..384b956
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/src/quat.c
@@ -0,0 +1,176 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23/*
24 * some parts based on "trackball.c"
25 *
26 * (c) Copyright 1993, 1994, Silicon Graphics, Inc.
27 * ALL RIGHTS RESERVED
28 * Permission to use, copy, modify, and distribute this software for
29 * any purpose and without fee is hereby granted, provided that the above
30 * copyright notice appear in all copies and that both the copyright notice
31 * and this permission notice appear in supporting documentation, and that
32 * the name of Silicon Graphics, Inc. not be used in advertising
33 * or publicity pertaining to distribution of the software without specific,
34 * written prior permission.
35 */
36
37#include <math.h>
38
39#include <g3d/types.h>
40#include <g3d/vector.h>
41#include <g3d/matrix.h>
42
43EAPI
44gboolean g3d_quat_rotate(G3DQuat *q, G3DVector *axis, G3DFloat angle)
45{
46 gint32 i;
47
48 g3d_vector_unify(axis + 0, axis + 1, axis + 2);
49 for(i = 0; i < 3; i ++)
50 q[i] = axis[i] * sin(angle / 2.0);
51 q[3] = cos(angle / 2.0);
52
53 return TRUE;
54}
55
56EAPI
57gboolean g3d_quat_normalize(G3DQuat *q)
58{
59 gint32 i;
60 G3DDouble div = 0;
61
62 for(i = 0; i < 4; i ++)
63 div += (q[i] * q[i]);
64 for(i = 0; i < 4; i ++)
65 q[i] /= div;
66
67 return TRUE;
68}
69
70EAPI
71gboolean g3d_quat_add(G3DQuat *qr, G3DQuat *q1, G3DQuat *q2)
72{
73 gint32 i;
74 G3DQuat tr[4], t1[4], t2[4], t3[4];
75
76 for(i = 0; i < 3; i ++)
77 t1[i] = q1[i] * q2[3];
78 for(i = 0; i < 3; i ++)
79 t2[i] = q2[i] * q1[3];
80 g3d_vector_normal(q2[0], q2[1], q2[2], q1[0], q1[1], q1[2],
81 t3, t3 + 1, t3 + 2);
82 for(i = 0; i < 3; i ++)
83 tr[i] = t1[i] + t2[i] + t3[i];
84 tr[3] = q1[3] * q2[3] -
85 (q1[0] * q2[0] + q1[1] * q2[1] + q1[2] * q2[2]);
86 for(i = 0; i < 4; i ++)
87 qr[i] = tr[i];
88
89 return TRUE;
90}
91
92static inline G3DVector trackball_projection(G3DVector x, G3DVector y,
93 G3DFloat r)
94{
95 G3DDouble d, t;
96
97 d = sqrt(x * x + y * y);
98 if(d < (r * 0.70710678118654752440))
99 return sqrt(r * r - d * d);
100 t = r / 1.41421356237309504880;
101 return t * t / d;
102}
103
104EAPI
105gboolean g3d_quat_trackball(G3DQuat *q, G3DFloat x1, G3DFloat y1,
106 G3DFloat x2, G3DFloat y2, G3DFloat r)
107{
108 G3DVector axis[3], z1, z2, dx, dy, dz;
109 G3DDouble angle, t;
110
111 if((x1 == x2) && (y1 == y2)) {
112 q[0] = q[1] = q[2] = 0.0;
113 q[3] = 1.0;
114 return TRUE;
115 }
116
117 z1 = trackball_projection(x1, y1, r);
118 z2 = trackball_projection(x2, y2, r);
119
120 g3d_vector_normal(x2, y2, z2, x1, y1, z1, axis, axis + 1, axis + 2);
121
122 dx = x1 - x2;
123 dy = y1 - y2;
124 dz = z1 - z2;
125 t = sqrt(dx * dx + dy * dy + dz * dz) / (2.0 * r);
126 t = CLAMP(t, -1.0, 1.0);
127 angle = 2.0 * asin(t);
128
129 return g3d_quat_rotate(q, axis, angle);
130}
131
132EAPI
133gboolean g3d_quat_to_matrix(G3DQuat *q, G3DMatrix *matrix)
134{
135 g3d_matrix_identity(matrix);
136
137 matrix[0 * 4 + 0] = 1.0 - 2.0 * (q[1] * q[1] + q[2] * q[2]);
138 matrix[0 * 4 + 1] = 2.0 * (q[0] * q[1] - q[2] * q[3]);
139 matrix[0 * 4 + 2] = 2.0 * (q[2] * q[0] + q[1] * q[3]);
140
141 matrix[1 * 4 + 0] = 2.0 * (q[0] * q[1] + q[2] * q[3]);
142 matrix[1 * 4 + 1] = 1.0 - 2.0 * (q[2] * q[2] + q[0] * q[0]);
143 matrix[1 * 4 + 2] = 2.0 * (q[1] * q[2] - q[0] * q[3]);
144
145 matrix[2 * 4 + 0] = 2.0 * (q[2] * q[0] - q[1] * q[3]);
146 matrix[2 * 4 + 1] = 2.0 * (q[1] * q[2] + q[0] * q[3]);
147 matrix[2 * 4 + 2] = 1.0 - 2.0 * (q[1] * q[1] + q[0] * q[0]);
148
149 return TRUE;
150}
151
152EAPI
153gboolean g3d_quat_to_rotation_xyz(G3DQuat *q, G3DFloat *rx, G3DFloat *ry,
154 G3DFloat *rz)
155{
156 G3DFloat t;
157
158 /* rx */
159 t = 1 - 2 * (q[1] * q[1] + q[2] * q[2]);
160 if(t != 0)
161 *rx = atan(2 * (q[0] * q[1] + q[2] * q[3]) / t);
162 else
163 *rx = 0.0;
164
165 /* ry */
166 *ry = asin(2 * (q[0] * q[2] - q[1] * q[3]));
167
168 /* rz */
169 t = 1 - 2 * (q[2] * q[2] + q[3] * q[3]);
170 if(t != 0)
171 *rz = atan(2 * (q[0] * q[3] + q[1] * q[2]) / t);
172 else
173 *rz = 0.0;
174
175 return TRUE;
176}
diff --git a/src/others/mimesh/libg3d-0.0.8/src/read.c b/src/others/mimesh/libg3d-0.0.8/src/read.c
new file mode 100644
index 0000000..7f0b9da
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/src/read.c
@@ -0,0 +1,147 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <g3d/types.h>
25
26gint32 g3d_read_int8(FILE *f)
27{
28 int c = fgetc(f);
29 if(c == EOF)
30 return 0;
31 else
32 return c;
33}
34
35gint32 g3d_read_int16_be(FILE *f)
36{
37 return (g3d_read_int8(f)<<8) | g3d_read_int8(f);
38}
39
40gint32 g3d_read_int16_le(FILE *f)
41{
42 return g3d_read_int8(f) | (g3d_read_int8(f)<<8);
43}
44
45gint32 g3d_read_int32_be(FILE *f)
46{
47 return (g3d_read_int8(f) << 24) | (g3d_read_int8(f) << 16) |
48 (g3d_read_int8(f) << 8) | g3d_read_int8(f);
49}
50
51gint32 g3d_read_int32_le(FILE *f)
52{
53 return g3d_read_int8(f) | (g3d_read_int8(f) << 8) |
54 (g3d_read_int8(f) << 16) | (g3d_read_int8(f) << 24);
55}
56
57static void g3d_read_bytes(FILE *f, guint8 *buf, gsize n)
58{
59 gint32 i;
60 for(i = 0; i < n; i ++)
61 buf[i] = g3d_read_int8(f);
62}
63
64static void g3d_read_bytes_swap(FILE *f, guint8 *buf, gsize n)
65{
66 gint32 i;
67 for(i = (n - 1); i >= 0; i --)
68 buf[i] = g3d_read_int8(f);
69}
70
71G3DFloat g3d_read_float_be(FILE *f)
72{
73 union {
74 G3DFloat f;
75 guint8 u[4];
76 } u;
77
78#if G_BYTE_ORDER == G_LITTLE_ENDIAN
79 g3d_read_bytes_swap(f, u.u, 4);
80#elif G_BYTE_ORDER == G_BIG_ENDIAN
81 g3d_read_bytes(f, u.u, 4);
82#endif
83 return u.f;
84}
85
86G3DFloat g3d_read_float_le(FILE *f)
87{
88 union {
89 G3DFloat f;
90 guint8 u[4];
91 } u;
92
93#if G_BYTE_ORDER == G_LITTLE_ENDIAN
94 g3d_read_bytes(f, u.u, 4);
95#elif G_BYTE_ORDER == G_BIG_ENDIAN
96 g3d_read_bytes_swap(f, u.u, 4);
97#endif
98 return u.f;
99}
100
101G3DDouble g3d_read_double_be(FILE *f)
102{
103 union {
104 G3DDouble d;
105 guint8 u[8];
106 } u;
107
108#if G_BYTE_ORDER == G_LITTLE_ENDIAN
109 g3d_read_bytes_swap(f, u.u, 8);
110#elif G_BYTE_ORDER == G_BIG_ENDIAN
111 g3d_read_bytes(f, u.u, 8);
112#endif
113 return u.d;
114}
115
116G3DDouble g3d_read_double_le(FILE *f)
117{
118 union {
119 G3DDouble d;
120 guint8 u[8];
121 } u;
122
123#if G_BYTE_ORDER == G_LITTLE_ENDIAN
124 g3d_read_bytes(f, u.u, 8);
125#elif G_BYTE_ORDER == G_BIG_ENDIAN
126 g3d_read_bytes_swap(f, u.u, 8);
127#endif
128 return u.d;
129}
130
131gint32 g3d_read_cstr(FILE *f, gchar *buffer, gint32 max_len)
132{
133 gint32 n = 0;
134 gchar c;
135
136 do
137 {
138 c = g3d_read_int8(f);
139 buffer[n] = c;
140 n ++;
141 }
142 while((c != 0) && (n < max_len));
143
144 buffer[max_len - 1] = '\0';
145
146 return n;
147}
diff --git a/src/others/mimesh/libg3d-0.0.8/src/stream.c b/src/others/mimesh/libg3d-0.0.8/src/stream.c
new file mode 100644
index 0000000..5f3930d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/src/stream.c
@@ -0,0 +1,171 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <g3d/stream.h>
24
25EAPI
26gboolean g3d_stream_is_seekable(G3DStream *stream)
27{
28 return (stream->flags & (1 << G3D_STREAM_SEEKABLE));
29}
30
31EAPI
32gchar *g3d_stream_get_uri(G3DStream *stream)
33{
34 return stream->uri;
35}
36
37EAPI
38gsize g3d_stream_read(G3DStream *stream, gpointer ptr, gsize size)
39{
40 if(stream->read)
41 return stream->read(ptr, size, stream->data);
42 return -1;
43}
44
45static gchar *generic_readline(G3DStream *stream, gchar *buf, gsize size)
46{
47 gint32 i;
48
49 for(i = 0; i < (size - 1); i ++) {
50 if(g3d_stream_eof(stream))
51 return NULL;
52 if(g3d_stream_read(stream, buf + i, 1) <= 0)
53 return NULL;
54 if(buf[i] == '\n') {
55 buf[i + 1] = '\0';
56 return buf;
57 }
58 }
59 buf[size - 1] = '\0';
60 return buf;
61}
62
63EAPI
64gchar *g3d_stream_read_line(G3DStream *stream, gchar *buf, gsize size)
65{
66 stream->linecount ++;
67
68 if(stream->readline)
69 return stream->readline(buf, size, stream->data);
70 else
71 return generic_readline(stream, buf, size);
72}
73
74EAPI
75gint g3d_stream_skip(G3DStream *stream, goffset offset)
76{
77/* g_return_val_if_fail(offset >= 0, -1); */
78 if(stream->seek)
79 return stream->seek(stream->data, offset, G_SEEK_CUR);
80 else {
81 goffset todo = offset;
82 gsize s;
83 guint8 *buffer = g_new0(guint8, 1024);
84 while(todo > 0) {
85 s = MIN(todo, 1024);
86 if(stream->read(buffer, s, stream->data) < s) {
87 g_free(buffer);
88 return -1;
89 }
90 offset -= s;
91 }
92 g_free(buffer);
93 return 0;
94 }
95}
96
97EAPI
98gint g3d_stream_seek(G3DStream *stream, goffset offset, GSeekType whence)
99{
100 if(stream->seek)
101 return stream->seek(stream->data, offset, whence);
102 return -1;
103}
104
105EAPI
106goffset g3d_stream_tell(G3DStream *stream)
107{
108 if(stream->tell)
109 return stream->tell(stream->data);
110 return 0;
111}
112
113EAPI
114guint32 g3d_stream_line(G3DStream *stream)
115{
116 return stream->linecount;
117}
118
119EAPI
120goffset g3d_stream_size(G3DStream *stream)
121{
122 if(stream->size)
123 return stream->size(stream->data);
124 return -1;
125}
126
127EAPI
128gboolean g3d_stream_eof(G3DStream *stream)
129{
130 if(stream->eof)
131 return stream->eof(stream->data);
132 return FALSE;
133}
134
135EAPI
136gint g3d_stream_close(G3DStream *stream)
137{
138 gint retval = 0;
139 if(stream->close)
140 retval = stream->close(stream->data);
141 g_free(stream->uri);
142 g_free(stream);
143 return retval;
144}
145
146EAPI
147G3DStream *g3d_stream_new_custom(guint32 flags, const gchar *uri,
148 G3DStreamReadFunc readfunc, G3DStreamReadLineFunc readlinefunc,
149 G3DStreamSeekFunc seekfunc, G3DStreamTellFunc tellfunc,
150 G3DStreamSizeFunc sizefunc,
151 G3DStreamEofFunc eoffunc, G3DStreamCloseFunc closefunc, gpointer data,
152 G3DStream *zip_container)
153{
154 G3DStream *stream;
155
156 stream = g_new0(G3DStream, 1);
157 stream->flags = flags;
158 stream->uri = g_strdup(uri);
159 stream->read = readfunc;
160 stream->readline = readlinefunc;
161 stream->seek = seekfunc;
162 stream->tell = tellfunc;
163 stream->size = sizefunc;
164 stream->eof = eoffunc;
165 stream->close = closefunc;
166 stream->data = data;
167 stream->zip_container = zip_container;
168
169 return stream;
170}
171
diff --git a/src/others/mimesh/libg3d-0.0.8/src/stream_buffer.c b/src/others/mimesh/libg3d-0.0.8/src/stream_buffer.c
new file mode 100644
index 0000000..1956aa7
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/src/stream_buffer.c
@@ -0,0 +1,126 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24
25#include <g3d/stream.h>
26
27typedef struct {
28 gsize size;
29 goffset offset;
30 guint8 *buffer;
31 gboolean free_buffer;
32} G3DStreamBuffer;
33
34static gsize g3d_stream_buffer_read(gpointer ptr, gsize size, gpointer data)
35{
36 G3DStreamBuffer *sbuf = (G3DStreamBuffer *)data;
37 guint8 *outbufp = (guint8 *)ptr;
38 gsize max_size;
39
40 max_size = MIN(sbuf->size - sbuf->offset, size);
41 memcpy(outbufp, sbuf->buffer + sbuf->offset, max_size);
42 sbuf->offset += max_size;
43
44 return max_size;
45}
46
47static gint g3d_stream_buffer_seek(gpointer data, goffset offset,
48 GSeekType whence)
49{
50 G3DStreamBuffer *sbuf = (G3DStreamBuffer *)data;
51 switch(whence) {
52 case G_SEEK_SET:
53 if((offset >= sbuf->size) || (offset < 0))
54 return -1;
55 sbuf->offset = offset;
56 break;
57 case G_SEEK_CUR:
58 if(((sbuf->offset + offset) >= sbuf->size) ||
59 ((sbuf->offset + offset) < 0))
60 return -1;
61 sbuf->offset += offset;
62 break;
63 case G_SEEK_END:
64 if(((sbuf->size - 1 + offset) >= sbuf->size) ||
65 ((sbuf->size - 1 + offset) < 0))
66 return -1;
67 sbuf->offset = sbuf->size - 1 + offset;
68 break;
69 }
70 return 0;
71}
72
73static goffset g3d_stream_buffer_tell(gpointer data)
74{
75 G3DStreamBuffer *sbuf = (G3DStreamBuffer *)data;
76 return sbuf->offset;
77}
78
79static goffset g3d_stream_buffer_size(gpointer data)
80{
81 G3DStreamBuffer *sbuf = (G3DStreamBuffer *)data;
82 return sbuf->size;
83}
84
85static gboolean g3d_stream_buffer_eof(gpointer data)
86{
87 G3DStreamBuffer *sbuf = (G3DStreamBuffer *)data;
88 return (sbuf->offset >= sbuf->size);
89}
90
91static gint g3d_stream_buffer_close(gpointer data)
92{
93 G3DStreamBuffer *sbuf = (G3DStreamBuffer *)data;
94 if(sbuf->free_buffer)
95 g_free(sbuf->buffer);
96 g_free(sbuf);
97 return 0;
98}
99
100EAPI
101G3DStream *g3d_stream_from_buffer(guint8 *buffer, gsize size,
102 const gchar *title, gboolean free_buffer)
103{
104 G3DStream *stream;
105 G3DStreamBuffer *sbuf;
106 guint32 flags = 0;
107 gchar *uri;
108 unsigned int usize = ((unsigned int)size);
109
110 sbuf = g_new0(G3DStreamBuffer, 1);
111 sbuf->buffer = buffer;
112 sbuf->size = size;
113 sbuf->free_buffer = free_buffer;
114 flags |= (1 << G3D_STREAM_SEEKABLE) | (1 << G3D_STREAM_READABLE);
115 uri = g_strdup_printf("buffer://0x%8p:%u/%s", buffer, usize,
116 (title ? title : "unnamed"));
117 stream = g3d_stream_new_custom(flags, uri,
118 g3d_stream_buffer_read,
119 NULL /* use generic implementation of *_read_line */,
120 g3d_stream_buffer_seek, g3d_stream_buffer_tell,
121 g3d_stream_buffer_size, g3d_stream_buffer_eof,
122 g3d_stream_buffer_close, sbuf, NULL);
123 g_free(uri);
124 return stream;
125}
126
diff --git a/src/others/mimesh/libg3d-0.0.8/src/stream_file.c b/src/others/mimesh/libg3d-0.0.8/src/stream_file.c
new file mode 100644
index 0000000..37c5f35
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/src/stream_file.c
@@ -0,0 +1,117 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <glib/gstdio.h>
25#include <g3d/stream.h>
26
27typedef struct {
28 FILE *f;
29 goffset size;
30} G3DStreamFile;
31
32static gsize g3d_stream_file_read(gpointer ptr, gsize size, gpointer data)
33{
34 G3DStreamFile *sf = (G3DStreamFile *)data;
35 return fread((void *)ptr, 1, size, sf->f);
36}
37
38static gchar *g3d_stream_file_read_line(gchar *buf, gsize size, gpointer data)
39{
40 G3DStreamFile *sf = (G3DStreamFile *)data;
41 return fgets(buf, size, sf->f);
42}
43
44static gint g3d_stream_file_seek(gpointer data, goffset offset,
45 GSeekType whence)
46{
47 G3DStreamFile *sf = (G3DStreamFile *)data;
48 int w = SEEK_SET;
49 switch(whence) {
50 case G_SEEK_SET: w = SEEK_SET; break;
51 case G_SEEK_CUR: w = SEEK_CUR; break;
52 case G_SEEK_END: w = SEEK_END; break;
53 }
54 return fseek(sf->f, offset, w);
55}
56
57static goffset g3d_stream_file_tell(gpointer data)
58{
59 G3DStreamFile *sf = (G3DStreamFile *)data;
60 return ftell(sf->f);
61}
62
63static goffset g3d_stream_file_size(gpointer data)
64{
65 G3DStreamFile *sf = (G3DStreamFile *)data;
66 return sf->size;
67}
68
69static gboolean g3d_stream_file_eof(gpointer data)
70{
71 G3DStreamFile *sf = (G3DStreamFile *)data;
72 return feof(sf->f);
73}
74
75static gint g3d_stream_file_close(gpointer data)
76{
77 G3DStreamFile *sf = (G3DStreamFile *)data;
78 FILE *f = sf->f;
79 g_free(sf);
80 return fclose(f);
81}
82
83EAPI
84G3DStream *g3d_stream_open_file(const gchar *filename, const gchar *mode)
85{
86 G3DStreamFile *sf;
87 struct stat stats;
88 guint32 flags = 0;
89
90 sf = g_new0(G3DStreamFile, 1);
91
92 /* open file; may be moved to some GLib interface */
93 sf->f = fopen(filename, mode);
94 if(sf->f == NULL) {
95 g_free(sf);
96 return NULL;
97 }
98
99 /* get file size */
100 if(g_stat(filename, &stats) != 0)
101 sf->size = -1;
102 sf->size = stats.st_size;
103
104 if(mode[0] == 'r')
105 flags |= (1 << G3D_STREAM_READABLE);
106 if(mode[0] == 'w')
107 flags |= (1 << G3D_STREAM_WRITABLE);
108
109 flags |= (1 << G3D_STREAM_SEEKABLE);
110
111 return g3d_stream_new_custom(flags, filename,
112 g3d_stream_file_read, g3d_stream_file_read_line,
113 g3d_stream_file_seek, g3d_stream_file_tell,
114 g3d_stream_file_size, g3d_stream_file_eof,
115 g3d_stream_file_close, sf, NULL);
116}
117
diff --git a/src/others/mimesh/libg3d-0.0.8/src/stream_gsf.c b/src/others/mimesh/libg3d-0.0.8/src/stream_gsf.c
new file mode 100644
index 0000000..d059a62
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/src/stream_gsf.c
@@ -0,0 +1,355 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24
25#include <gsf/gsf-input.h>
26#include <gsf/gsf-infile.h>
27#include <gsf/gsf-input-stdio.h>
28#include <gsf/gsf-input-memory.h>
29#include <gsf/gsf-input-gzip.h>
30#include <gsf/gsf-infile-msole.h>
31#include <gsf/gsf-infile-zip.h>
32
33#include <g3d/stream.h>
34
35#include "stream_gsf_class.h"
36
37typedef struct {
38 GsfInput *input_container;
39 GsfInfile *infile_msole;
40 GsfInfile *infile_zip;
41 GsfInput *input_subfile;
42 gchar *uri;
43} G3DStreamGsf;
44
45static gsize g3d_stream_gsf_read(gpointer ptr, gsize size, gpointer data)
46{
47 G3DStreamGsf *sg = (G3DStreamGsf *)data;
48 gsize n;
49
50 n = MIN(size, gsf_input_remaining(sg->input_subfile));
51 gsf_input_read(sg->input_subfile, n, (guint8 *)ptr);
52 return n;
53}
54
55static gint g3d_stream_gsf_seek(gpointer data, goffset offset,
56 GSeekType whence)
57{
58 G3DStreamGsf *sg = (G3DStreamGsf *)data;
59 return gsf_input_seek(sg->input_subfile, offset, whence);
60}
61
62static goffset g3d_stream_gsf_tell(gpointer data)
63{
64 G3DStreamGsf *sg = (G3DStreamGsf *)data;
65 return gsf_input_tell(sg->input_subfile);
66}
67
68static goffset g3d_stream_gsf_size(gpointer data)
69{
70 G3DStreamGsf *sg = (G3DStreamGsf *)data;
71 return gsf_input_size(sg->input_subfile);
72}
73
74static gboolean g3d_stream_gsf_eof(gpointer data)
75{
76 G3DStreamGsf *sg = (G3DStreamGsf *)data;
77 if(gsf_input_remaining(sg->input_subfile) <= 0)
78 return TRUE;
79 return gsf_input_eof(sg->input_subfile);
80}
81
82static gint g3d_stream_gsf_close(gpointer data)
83{
84 G3DStreamGsf *sg = (G3DStreamGsf *)data;
85 g_object_unref(sg->input_subfile);
86 if(sg->infile_msole)
87 g_object_unref(sg->infile_msole);
88 if(sg->infile_zip)
89 g_object_unref(sg->infile_zip);
90 if(sg->uri)
91 g_free(sg->uri);
92 g_object_unref(sg->input_container);
93 g_free(sg);
94 return 0;
95}
96
97/****************************************************************************/
98
99static GsfInput *stream_gsf_chdir(GsfInput *input, gchar *dirname)
100{
101 GsfInput *parent = input, *newinput = NULL;
102 gchar **dirs, **dir;
103
104 dirs = g_strsplit(dirname, "/", 0);
105 for(dir = dirs; *dir != NULL; dir ++) {
106 newinput = gsf_infile_child_by_name(GSF_INFILE(parent),
107 *dir);
108 if((newinput == NULL) || (!GSF_IS_INFILE(newinput))) {
109 g_strfreev(dirs);
110 return NULL;
111 }
112 parent = newinput;
113 }
114 g_strfreev(dirs);
115 return newinput;
116}
117
118/*****************************************************************************/
119
120EAPI
121G3DStream *g3d_stream_open_gzip_from_stream(G3DStream *stream)
122{
123 G3DStreamGsf *sg;
124 GsfInput *source;
125 GError *error = NULL;
126 guint32 flags = 0;
127
128 source = g3d_gsf_input_stream_new(stream);
129 if(source == NULL)
130 return NULL;
131
132 sg = g_new0(G3DStreamGsf, 1);
133 sg->input_container = source;
134
135 sg->input_subfile = gsf_input_gzip_new(source, &error);
136 if(error) {
137 g_warning("failed to read gzipped data from %s: %s", stream->uri,
138 error->message);
139 g_object_unref(sg->input_container);
140 g_error_free(error);
141 g_free(sg);
142 }
143
144 sg->uri = g_strdup_printf("%s#gzip@0x%08x", stream->uri,
145 (guint32)g3d_stream_tell(stream));
146
147 flags |= (1 << G3D_STREAM_READABLE);
148 flags |= (1 << G3D_STREAM_SEEKABLE);
149
150 return g3d_stream_new_custom(flags, sg->uri,
151 g3d_stream_gsf_read, NULL,
152 g3d_stream_gsf_seek, g3d_stream_gsf_tell,
153 g3d_stream_gsf_size, g3d_stream_gsf_eof,
154 g3d_stream_gsf_close, sg, NULL);
155}
156
157
158/*****************************************************************************/
159/* Zip stuff */
160
161static G3DStream *g3d_stream_open_zip_from_input(GsfInput *input,
162 const gchar *subfile) {
163 G3DStreamGsf *sg;
164 GError *error = NULL;
165 guint32 flags = 0;
166 GsfInput *input_dir;
167 gchar *basename, *dirname;
168 G3DStream *zip_stream = g3d_gsf_input_stream_get_stream(input);
169
170 sg = g_new0(G3DStreamGsf, 1);
171 sg->input_container = input;
172
173 sg->infile_zip = gsf_infile_zip_new(sg->input_container, &error);
174 if(error != NULL) {
175 g_warning("error reading ZIP data from '%s': %s",
176 gsf_input_name(input), error->message);
177 g_object_unref(sg->input_container);
178 g_error_free(error);
179 g_free(sg);
180 return NULL;
181 }
182
183 if(strchr(subfile, '/')) {
184 basename = g_path_get_basename(subfile);
185 dirname = g_path_get_dirname(subfile);
186 input_dir = stream_gsf_chdir(GSF_INPUT(sg->infile_zip), dirname);
187 sg->input_subfile = gsf_infile_child_by_name(GSF_INFILE(input_dir),
188 basename);
189 g_free(basename);
190 g_free(dirname);
191 } else {
192 sg->input_subfile = gsf_infile_child_by_name(sg->infile_zip, subfile);
193 }
194
195 if(!GSF_IS_INPUT(sg->input_subfile)) {
196 g_warning("error: %s is not an input file", subfile);
197 g_object_unref(sg->infile_zip);
198 g_object_unref(sg->input_container);
199 g_free(sg);
200 return NULL;
201 }
202
203 flags |= (1 << G3D_STREAM_READABLE);
204 flags |= (1 << G3D_STREAM_SEEKABLE);
205
206 sg->uri = g_strdup_printf("zip://%s|%s", gsf_input_name(input), subfile);
207
208 if (NULL != zip_stream->zip_container)
209 zip_stream = zip_stream->zip_container;
210
211 return g3d_stream_new_custom(flags, sg->uri,
212 g3d_stream_gsf_read, NULL,
213 g3d_stream_gsf_seek, g3d_stream_gsf_tell,
214 g3d_stream_gsf_size, g3d_stream_gsf_eof,
215 g3d_stream_gsf_close, sg, zip_stream);
216}
217
218EAPI
219G3DStream *g3d_stream_open_zip(const gchar *filename, const gchar *subfile)
220{
221 GsfInput *input;
222 GError *error = NULL;
223
224/* FIXME: This wont work if the "file" is a buffer. */
225 input = gsf_input_stdio_new(filename, &error);
226 if(error != NULL) {
227 g_warning("error opening container file '%s': %s", filename,
228 error->message);
229 g_error_free(error);
230 return NULL;
231 }
232
233 return g3d_stream_open_zip_from_input(input, subfile);
234}
235
236EAPI
237G3DStream *g3d_stream_open_zip_from_stream(G3DStream *stream,
238 const gchar *subfile)
239{
240 GsfInput *input;
241
242 input = g3d_gsf_input_stream_new(stream);
243 if(!input)
244 return NULL;
245
246 return g3d_stream_open_zip_from_input(input, subfile);
247}
248
249/*****************************************************************************/
250/* Structured File stuff */
251
252static G3DStream *g3d_stream_open_structured_file_from_input(GsfInput *input,
253 const gchar *subfile)
254{
255 G3DStreamGsf *sg;
256 GsfInput *input_gzipped, *input_tmp;
257 GError *error = NULL;
258 guint32 flags = 0;
259
260 sg = g_new0(G3DStreamGsf, 1);
261 sg->input_container = input;
262
263 sg->infile_msole = gsf_infile_msole_new(sg->input_container, &error);
264 if(error != NULL) {
265 g_warning("error reading OLE data from '%s': %s",
266 gsf_input_name(input), error->message);
267 g_object_unref(sg->input_container);
268 g_error_free(error);
269 g_free(sg);
270 return NULL;
271 }
272#if DEBUG > 2
273 g_debug("GSF: new MSOLE infile");
274#endif
275 sg->input_subfile = gsf_infile_child_by_name(sg->infile_msole, subfile);
276 if(error != NULL) {
277 g_warning("error opening contained file '%s' in '%s': %s",
278 subfile, gsf_input_name(input), error->message);
279 g_object_unref(sg->infile_msole);
280 g_object_unref(sg->input_container);
281 g_error_free(error);
282 g_free(sg);
283 return NULL;
284 }
285 if(!GSF_IS_INPUT(sg->input_subfile)) {
286 g_object_unref(sg->infile_msole);
287 g_object_unref(sg->input_container);
288 g_free(sg);
289 return NULL;
290 }
291
292 /* try to open subfile as gzipped */
293 input_gzipped = gsf_input_gzip_new(sg->input_subfile, &error);
294 if(error != NULL) {
295 /* failed to open gzip data */
296 g_error_free(error);
297 } else {
298 /* succeeded to open gzip data */
299 input_tmp = sg->input_subfile;
300 sg->input_subfile = input_gzipped;
301 g_object_unref(input_tmp);
302 }
303
304#if DEBUG > 2
305 g_debug("GSF: got subfile '%s'", subfile);
306#endif
307 flags |= (1 << G3D_STREAM_READABLE);
308 flags |= (1 << G3D_STREAM_SEEKABLE);
309
310 sg->uri = g_strdup_printf("wsf://%s/%s", gsf_input_name(input), subfile);
311 return g3d_stream_new_custom(flags, sg->uri,
312 g3d_stream_gsf_read, NULL,
313 g3d_stream_gsf_seek, g3d_stream_gsf_tell,
314 g3d_stream_gsf_size, g3d_stream_gsf_eof,
315 g3d_stream_gsf_close, sg, NULL);
316}
317
318EAPI
319G3DStream *g3d_stream_open_structured_file(const gchar *filename,
320 const gchar *subfile)
321{
322 GsfInput *container;
323 GError *error = NULL;
324
325#if DEBUG > 2
326 g_debug("GSF: Hello, World!");
327#endif
328
329 container = gsf_input_stdio_new(filename, &error);
330 if(error != NULL) {
331 g_warning("error opening structured file '%s': %s", filename,
332 error->message);
333 g_error_free(error);
334 return NULL;
335 }
336#if DEBUG > 2
337 g_debug("GSF: opened file '%s'", filename);
338#endif
339
340 return g3d_stream_open_structured_file_from_input(container, subfile);
341}
342
343EAPI
344G3DStream *g3d_stream_open_structured_file_from_stream(G3DStream *stream,
345 const gchar *subfile)
346{
347 GsfInput *input;
348
349 input = g3d_gsf_input_stream_new(stream);
350 if(!input)
351 return NULL;
352
353 return g3d_stream_open_structured_file_from_input(input, subfile);
354}
355
diff --git a/src/others/mimesh/libg3d-0.0.8/src/stream_gsf_class.c b/src/others/mimesh/libg3d-0.0.8/src/stream_gsf_class.c
new file mode 100644
index 0000000..ff127bf
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/src/stream_gsf_class.c
@@ -0,0 +1,135 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <gsf/gsf-infile.h>
23#include <gsf/gsf-infile-impl.h>
24#include <gsf/gsf-impl-utils.h>
25
26#include <g3d/types.h>
27#include <g3d/stream.h>
28
29#include "stream_gsf_class.h"
30
31static GObjectClass *parent_class;
32
33struct _G3DGsfInputStream {
34 GsfInput input;
35 G3DStream *stream;
36 guint8 *buf;
37 gsize buf_size;
38};
39
40typedef struct {
41 GsfInputClass input_class;
42} G3DGsfInputStreamClass;
43
44EAPI
45GsfInput *g3d_gsf_input_stream_new(G3DStream *stream)
46{
47 G3DGsfInputStream *g3dsf;
48
49 g3dsf = g_object_new(G3D_GSF_INPUT_STREAM_TYPE, NULL);
50 g3dsf->stream = stream;
51
52 gsf_input_set_size(GSF_INPUT(g3dsf), g3d_stream_size(stream));
53 gsf_input_set_name_from_filename(GSF_INPUT(g3dsf), stream->uri);
54
55 return GSF_INPUT(g3dsf);
56}
57
58EAPI G3DStream *g3d_gsf_input_stream_get_stream(GsfInput *input)
59{
60 G3DGsfInputStream *g3dsf = G3D_GSF_INPUT_STREAM(input);
61
62 return g3dsf->stream;
63}
64
65static void g3d_gsf_input_stream_finalize(GObject *obj)
66{
67 G3DGsfInputStream *g3dsf = G3D_GSF_INPUT_STREAM(obj);
68
69 if(g3dsf->buf)
70 g_free(g3dsf->buf);
71
72 parent_class->finalize(obj);
73}
74
75static GsfInput *g3d_gsf_input_stream_dup(GsfInput *src_input, GError **err)
76{
77 G3DGsfInputStream *g3dsf = G3D_GSF_INPUT_STREAM(src_input);
78
79 return g3d_gsf_input_stream_new(g3dsf->stream);
80}
81
82static const guint8 *g3d_gsf_input_stream_read(GsfInput *input,
83 size_t num_bytes, guint8 *buffer)
84{
85 G3DGsfInputStream *g3dsf = G3D_GSF_INPUT_STREAM(input);
86
87 if(buffer == NULL) {
88 if(g3dsf->buf_size < num_bytes) {
89 g3dsf->buf_size = num_bytes;
90 if(g3dsf->buf)
91 g_free(g3dsf->buf);
92 g3dsf->buf = g_new0(guint8, num_bytes);
93 }
94 buffer = g3dsf->buf;
95 }
96
97 g3d_stream_read(g3dsf->stream, buffer, num_bytes);
98 return buffer;
99}
100
101static gboolean g3d_gsf_input_stream_seek(GsfInput *input, gsf_off_t offset,
102 GSeekType whence)
103{
104 G3DGsfInputStream *g3dsf = G3D_GSF_INPUT_STREAM(input);
105
106 return g3d_stream_seek(g3dsf->stream, offset, whence);
107}
108
109static void g3d_gsf_input_stream_init(GObject *obj)
110{
111 G3DGsfInputStream *g3dsf = G3D_GSF_INPUT_STREAM(obj);
112
113 g3dsf->stream = NULL;
114 g3dsf->buf = NULL;
115 g3dsf->buf_size = 0;
116}
117
118static void g3d_gsf_input_stream_class_init(GObjectClass *gobject_class)
119{
120 GsfInputClass *input_class = GSF_INPUT_CLASS(gobject_class);
121
122 gobject_class->finalize = g3d_gsf_input_stream_finalize;
123 input_class->Dup = g3d_gsf_input_stream_dup;
124 input_class->Read = g3d_gsf_input_stream_read;
125 input_class->Seek = g3d_gsf_input_stream_seek;
126
127 parent_class = g_type_class_peek_parent(gobject_class);
128}
129
130GSF_CLASS(G3DGsfInputStream,
131 g3d_gsf_input_stream,
132 g3d_gsf_input_stream_class_init,
133 g3d_gsf_input_stream_init,
134 GSF_INPUT_TYPE)
135
diff --git a/src/others/mimesh/libg3d-0.0.8/src/stream_gsf_class.h b/src/others/mimesh/libg3d-0.0.8/src/stream_gsf_class.h
new file mode 100644
index 0000000..4171e62
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/src/stream_gsf_class.h
@@ -0,0 +1,53 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _STREAM_GSF_CLASS_H
23#define _STREAM_GSF_CLASS_H
24
25#include <gsf/gsf-input.h>
26#include <g3d/types.h>
27
28#ifdef __cplusplus
29extern "C" {
30#endif /* ifdef __cplusplus */
31
32
33#define G3D_GSF_INPUT_STREAM_TYPE (g3d_gsf_input_stream_get_type())
34#define G3D_GSF_INPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_CAST((o), \
35 G3D_GSF_INPUT_STREAM_TYPE, G3DGsfInputStream))
36#define G3D_IS_GSF_INPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), \
37 G3D_GSF_INPUT_STREAM_TYPE))
38
39typedef struct _G3DGsfInputStream G3DGsfInputStream;
40
41EAPI GType g3d_gsf_input_stream_get_type(void) G_GNUC_CONST;
42
43EAPI GsfInput *g3d_gsf_input_stream_new(G3DStream *stream);
44
45/* Classes be damned, I don't have time to learn this opaque class system. Maybe fix it later, or just replace it all. Pffft */
46EAPI G3DStream *g3d_gsf_input_stream_get_stream(GsfInput *input);
47
48#ifdef __cplusplus
49}
50#endif /* ifdef __cplusplus */
51
52#endif /* _STREAM_GSF_CLASS_H */
53
diff --git a/src/others/mimesh/libg3d-0.0.8/src/stream_read.c b/src/others/mimesh/libg3d-0.0.8/src/stream_read.c
new file mode 100644
index 0000000..e222378
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/src/stream_read.c
@@ -0,0 +1,152 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <g3d/types.h>
24#include <g3d/stream.h>
25
26EAPI
27gint32 g3d_stream_read_int8(G3DStream *stream)
28{
29 guint8 c;
30 if(g3d_stream_read(stream, &c, 1) != 1)
31 return 0;
32 return c;
33}
34
35EAPI
36gint32 g3d_stream_read_int16_be(G3DStream *stream)
37{
38 return (g3d_stream_read_int8(stream) << 8) | g3d_stream_read_int8(stream);
39}
40
41EAPI
42gint32 g3d_stream_read_int16_le(G3DStream *stream)
43{
44 return g3d_stream_read_int8(stream) | (g3d_stream_read_int8(stream) << 8);
45}
46
47EAPI
48gint32 g3d_stream_read_int32_be(G3DStream *stream)
49{
50 return (g3d_stream_read_int8(stream) << 24) |
51 (g3d_stream_read_int8(stream) << 16) |
52 (g3d_stream_read_int8(stream) << 8) | g3d_stream_read_int8(stream);
53}
54
55EAPI
56gint32 g3d_stream_read_int32_le(G3DStream *stream)
57{
58 return g3d_stream_read_int8(stream) | (g3d_stream_read_int8(stream) << 8) |
59 (g3d_stream_read_int8(stream) << 16) |
60 (g3d_stream_read_int8(stream) << 24);
61}
62
63static void g3d_stream_read_bytes(G3DStream *stream, guint8 *buf, gsize n)
64{
65 gint32 i;
66 for(i = 0; i < n; i ++)
67 buf[i] = g3d_stream_read_int8(stream);
68}
69
70static void g3d_stream_read_bytes_swap(G3DStream *stream, guint8 *buf, gsize n)
71{
72 gint32 i;
73 for(i = (n - 1); i >= 0; i --)
74 buf[i] = g3d_stream_read_int8(stream);
75}
76
77EAPI
78G3DFloat g3d_stream_read_float_be(G3DStream *stream)
79{
80 union {
81 G3DFloat f;
82 guint8 u[4];
83 } u;
84#if G_BYTE_ORDER == G_LITTLE_ENDIAN
85 g3d_stream_read_bytes_swap(stream, u.u, 4);
86#elif G_BYTE_ORDER == G_BIG_ENDIAN
87 g3d_stream_read_bytes(stream, u.u, 4);
88#endif
89 return u.f;
90}
91
92EAPI
93G3DFloat g3d_stream_read_float_le(G3DStream *stream)
94{
95 union {
96 G3DFloat f;
97 guint8 u[4];
98 } u;
99#if G_BYTE_ORDER == G_LITTLE_ENDIAN
100 g3d_stream_read_bytes(stream, u.u, 4);
101#elif G_BYTE_ORDER == G_BIG_ENDIAN
102 g3d_stream_read_bytes_swap(stream, u.u, 4);
103#endif
104 return u.f;
105}
106
107
108EAPI
109G3DDouble g3d_stream_read_double_be(G3DStream *stream)
110{
111 union {
112 G3DDouble f;
113 guint8 u[8];
114 } u;
115#if G_BYTE_ORDER == G_LITTLE_ENDIAN
116 g3d_stream_read_bytes_swap(stream, u.u, 8);
117#elif G_BYTE_ORDER == G_BIG_ENDIAN
118 g3d_stream_read_bytes(stream, u.u, 8);
119#endif
120 return u.f;
121}
122
123EAPI
124G3DDouble g3d_stream_read_double_le(G3DStream *stream)
125{
126 union {
127 G3DDouble f;
128 guint8 u[8];
129 } u;
130#if G_BYTE_ORDER == G_LITTLE_ENDIAN
131 g3d_stream_read_bytes(stream, u.u, 8);
132#elif G_BYTE_ORDER == G_BIG_ENDIAN
133 g3d_stream_read_bytes_swap(stream, u.u, 8);
134#endif
135 return u.f;
136}
137
138EAPI
139gint32 g3d_stream_read_cstr(G3DStream *stream, gchar *buffer, gint32 max_len)
140{
141 gint32 n = 0;
142 gchar c;
143
144 do {
145 c = g3d_stream_read_int8(stream);
146 buffer[n] = c;
147 n ++;
148 } while((c != 0) && (n < max_len));
149 buffer[max_len - 1] = '\0';
150 return n;
151}
152
diff --git a/src/others/mimesh/libg3d-0.0.8/src/stream_zlib.c b/src/others/mimesh/libg3d-0.0.8/src/stream_zlib.c
new file mode 100644
index 0000000..bfae2f5
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/src/stream_zlib.c
@@ -0,0 +1,192 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <string.h>
23
24#include <g3d/types.h>
25#include <g3d/stream.h>
26
27#include <zlib.h>
28
29typedef struct {
30 G3DStream *stream;
31 gchar *uri;
32 z_streamp zstream;
33 gsize cmp_size; /* compressed size */
34 gsize cmp_read; /* compressed bytes read */
35 goffset offset; /* offset (decompressed) */
36 guint8 *inbuf;
37 guint8 *inbufp;
38 guint8 *buffer;
39 guint8 *bufp;
40 gsize bufpages;
41 gsize bufavail;
42 gboolean eof;
43} G3DStreamZlib;
44
45#define G3D_Z_CHUNK_SIZE (128 * 1024)
46
47static gsize zlib_refill_buffer(G3DStreamZlib *sz)
48{
49 gint ret;
50
51 /* FIXME: don't read beyond inflate stream */
52 sz->zstream->avail_in = g3d_stream_read(sz->stream, sz->inbuf,
53 MIN(G3D_Z_CHUNK_SIZE, (sz->cmp_size - sz->cmp_read)));
54 sz->cmp_read += sz->zstream->avail_in;
55 sz->zstream->next_in = sz->inbuf;
56#if DEBUG > 0
57 g_debug("ZLIB: %d bytes in input buffer", sz->zstream->avail_in);
58#endif
59
60 /* clean up previous refill */
61 if(sz->buffer)
62 g_free(sz->buffer);
63 sz->buffer = NULL;
64 sz->bufp = NULL;
65 sz->bufpages = 0;
66
67 /* decompress */
68 do {
69 /* add an output page */
70 sz->buffer = g_realloc(sz->buffer, (sz->bufpages + 1) *
71 G3D_Z_CHUNK_SIZE * sizeof(guint8));
72 sz->bufp = sz->buffer + G3D_Z_CHUNK_SIZE * sz->bufpages;
73 sz->bufpages ++;
74
75 sz->zstream->avail_out = G3D_Z_CHUNK_SIZE;
76 sz->zstream->next_out = sz->bufp;
77 ret = inflate(sz->zstream, Z_NO_FLUSH);
78 switch(ret) {
79 case Z_STREAM_ERROR:
80 g_warning("stream error");
81 return 0;
82 case Z_DATA_ERROR:
83 case Z_MEM_ERROR:
84 g_warning("zlib error: %d", ret);
85 return 0;
86 }
87 sz->bufavail += (G3D_Z_CHUNK_SIZE - sz->zstream->avail_out);
88#if DEBUG > 0
89 g_debug("ZLIB: %d bytes in output buffer", sz->bufavail);
90#endif
91 } while(sz->zstream->avail_out == 0);
92
93 sz->bufp = sz->buffer;
94 return sz->bufavail;
95}
96
97static gsize g3d_stream_zlib_read(gpointer ptr, gsize size, gpointer data)
98{
99 G3DStreamZlib *sz = data;
100 gsize n = size, nc, br = 0;
101 guint8 *bufp = ptr;
102
103#if DEBUG > 3
104 g_debug("ZLIB: reading %d bytes...", n);
105#endif
106
107 while(n > 0) {
108 if(sz->bufavail == 0)
109 zlib_refill_buffer(sz);
110
111 if(sz->bufavail == 0) {
112 sz->eof = TRUE;
113 return 0;
114 }
115
116 nc = MIN(n, sz->bufavail);
117 memcpy(bufp, sz->bufp, nc);
118 sz->bufp += nc;
119 bufp += nc;
120 sz->bufavail -= nc;
121 n -= nc;
122 br += nc;
123 sz->offset += nc;
124#if DEBUG > 3
125 g_debug("ZLIB: copied %d bytes [%02x]", nc, ((guint8 *)ptr)[0]);
126#endif
127 }
128
129 return br;
130}
131
132static goffset g3d_stream_zlib_tell(gpointer data)
133{
134 G3DStreamZlib *sz = data;
135 return sz->offset;
136}
137
138static gboolean g3d_stream_zlib_eof(gpointer data)
139{
140 G3DStreamZlib *sz = data;
141 return sz->eof;
142}
143
144static gint g3d_stream_zlib_close(gpointer data)
145{
146 G3DStreamZlib *sz = data;
147
148 if(sz->inbuf)
149 g_free(sz->inbuf);
150 if(sz->buffer)
151 g_free(sz->buffer);
152
153 inflateEnd(sz->zstream);
154 g_free(sz->zstream);
155 g_free(sz->uri);
156 g_free(sz);
157 return 0;
158}
159
160/*****************************************************************************/
161
162EAPI
163G3DStream *g3d_stream_zlib_inflate_stream(G3DStream *stream, gsize cmp_size)
164{
165 G3DStreamZlib *sz;
166 guint32 flags = 0;
167 gint ret;
168
169 sz = g_new0(G3DStreamZlib, 1);
170 sz->stream = stream;
171 sz->cmp_size = cmp_size;
172 sz->zstream = g_new0(z_stream, 1);
173 ret = inflateInit(sz->zstream);
174 if(ret != Z_OK) {
175 g_warning("stream_zlib: failed to init");
176 g_free(sz->zstream);
177 g_free(sz);
178 }
179
180 sz->inbuf = g_new0(guint8, G3D_Z_CHUNK_SIZE);
181
182 flags |= (1 << G3D_STREAM_READABLE);
183 sz->uri = g_strdup_printf("%s:gzipped@0x%08x", stream->uri,
184 (guint32)g3d_stream_tell(stream));
185
186 return g3d_stream_new_custom(flags, sz->uri,
187 g3d_stream_zlib_read, NULL /* readline */,
188 NULL /* seek */, g3d_stream_zlib_tell,
189 NULL /* size */, g3d_stream_zlib_eof,
190 g3d_stream_zlib_close, sz, NULL);
191}
192
diff --git a/src/others/mimesh/libg3d-0.0.8/src/texture.c b/src/others/mimesh/libg3d-0.0.8/src/texture.c
new file mode 100644
index 0000000..8d9f471
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/src/texture.c
@@ -0,0 +1,270 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <string.h>
25#include <g3d/config.h>
26#include <g3d/types.h>
27#include <g3d/plugins.h>
28#include <g3d/stream.h>
29#include <g3d/texture.h>
30
31#ifdef G3D_DEBUG_DUMP_IMAGE
32static gboolean dump_ppm(G3DImage *image, const gchar *filename);
33#endif
34
35
36EAPI
37G3DImage *g3d_texture_load_from_stream(G3DContext *context, G3DModel *model,
38 G3DStream *stream)
39{
40 G3DImage *image;
41
42 if(model != NULL) {
43 if(model->tex_images == NULL)
44 model->tex_images = g_hash_table_new(g_str_hash, g_str_equal);
45
46 image = g_hash_table_lookup(model->tex_images, stream->uri);
47 if(image != NULL)
48 return image;
49 }
50
51 image = g_new0(G3DImage, 1);
52 image->tex_scale_u = 1.0;
53 image->tex_scale_v = 1.0;
54
55 if(g3d_plugins_load_image_from_stream(context, stream, image)) {
56 image->tex_id = g_str_hash(stream->uri);
57 if(model != NULL)
58 g_hash_table_insert(model->tex_images, g_strdup(stream->uri),
59 image);
60 return image;
61 }
62 g_free(image);
63 return NULL;
64}
65
66EAPI
67G3DImage *g3d_texture_load_cached(G3DContext *context, G3DModel *model,
68 const gchar *filename)
69{
70 G3DImage *image = NULL;
71 G3DStream *imgstream;
72#ifdef G3D_DEBUG_DUMP_IMAGE
73 gchar *basename, *ppmname;
74#endif
75
76 /* create hash table if it does not exist yet */
77 if(model->tex_images == NULL)
78 model->tex_images = g_hash_table_new(g_str_hash, g_str_equal);
79
80 /* if already loaded, return cached image */
81 image = g_hash_table_lookup(model->tex_images, filename);
82 if(image != NULL)
83 return image;
84
85 if (model->stream)
86 {
87 g_debug("texture: loading '%s' from: '%s'", filename, model->stream->uri);
88 imgstream = g3d_stream_open_zip_from_stream(model->stream->zip_container, filename);
89 image = g3d_texture_load_from_stream(context, model, imgstream);
90 }
91 if(image != NULL)
92 {
93 image->tex_id = g_str_hash(filename);
94#if 0
95 g3d_texture_prepare(image);
96#endif
97 g_hash_table_insert(model->tex_images, (gpointer)g_strdup(filename),
98 image);
99 }
100
101#ifdef G3D_DEBUG_DUMP_IMAGE
102 if(image)
103 {
104 basename = g_path_get_basename(filename);
105 ppmname = g_strdup_printf("/tmp/%s.ppm", basename);
106 dump_ppm(image, ppmname);
107 g_free(ppmname);
108 g_free(basename);
109 }
110#endif
111
112 return image;
113}
114
115EAPI
116void g3d_texture_free(G3DImage *texture)
117{
118 if(texture->name) g_free(texture->name);
119 if(texture->pixeldata) g_free(texture->pixeldata);
120 g_free(texture);
121}
122
123EAPI
124gboolean g3d_texture_prepare(G3DImage *texture)
125{
126 guint32 nw = 1, nh = 1, y;
127 guint8 *np;
128
129 while(nw < texture->width) nw *= 2;
130 while(nh < texture->height) nh *= 2;
131
132 if((nw != texture->width) || (nh != texture->height))
133 {
134 /* blow up texture image to dimensions with a power of two */
135 np = g_malloc(nw * nh * 4);
136 memset(np, 0xFF, nw * nh * 4);
137
138 /* copy image data */
139 for(y = 0; y < nh; y ++)
140 memcpy(np + ((nh - y - 1) * nw * 4),
141 texture->pixeldata +
142 (((texture->height - y - 1) % texture->height) *
143 texture->width * 4),
144 texture->width * 4);
145
146 /* calculate scaling factor */
147 texture->tex_scale_u = ((G3DFloat)texture->width / (G3DFloat)nw);
148 texture->tex_scale_v = ((G3DFloat)texture->height / (G3DFloat)nh);
149
150#if DEBUG > 0
151 g_debug("texture scaling factor for '%s' set to %.2f,%.2f",
152 texture->name, texture->tex_scale_u, texture->tex_scale_v);
153#endif
154
155 /* update image */
156 g_free(texture->pixeldata);
157 texture->pixeldata = np;
158 texture->width = nw;
159 texture->height = nh;
160
161 return TRUE;
162 }
163 return FALSE;
164}
165
166EAPI
167gboolean g3d_texture_flip_y(G3DImage *texture)
168{
169 guint8 *newpixel;
170 gint32 y;
171
172 g_return_val_if_fail(texture != NULL, FALSE);
173
174 newpixel = g_new0(guint8, texture->width * texture->height * 4);
175
176 for(y = 0; y < texture->height; y ++)
177 {
178 memcpy(
179 newpixel + (y * texture->width * 4),
180 texture->pixeldata + (
181 (texture->height - y - 1) * texture->width * 4),
182 texture->width * 4);
183 }
184
185 g_free(texture->pixeldata);
186 texture->pixeldata = newpixel;
187
188 return TRUE;
189}
190
191#ifdef G3D_DEBUG_DUMP_IMAGE
192static gboolean dump_ppm(G3DImage *image, const gchar *filename)
193{
194 FILE *f;
195 guint32 x, y;
196
197 f = fopen(filename, "w");
198 if(f == NULL)
199 {
200 g_warning("image: failed to write to '%s'", filename);
201 return FALSE;
202 }
203
204 fprintf(f, "P3\n# CREATOR: g3dviewer\n%d %d\n%d\n",
205 image->width, image->height, 255);
206
207 for(y = 0; y < image->height; y ++)
208 for(x = 0; x < image->width; x ++)
209 fprintf(f, "%d\n%d\n%d\n",
210 image->pixeldata[(y * image->width + x) * 4 + 0],
211 image->pixeldata[(y * image->width + x) * 4 + 1],
212 image->pixeldata[(y * image->width + x) * 4 + 2]);
213
214 fclose(f);
215 return TRUE;
216}
217#endif
218
219EAPI
220G3DImage *g3d_texture_merge_alpha(G3DImage *image, G3DImage *aimage)
221{
222 G3DImage *texture;
223 gint32 x, y;
224 gboolean negative;
225
226 g_return_val_if_fail(aimage != NULL, NULL);
227
228 if(image && (
229 (image->width != aimage->width) ||
230 (image->height != aimage->height)))
231 {
232 /* size doesn't match, don't do something */
233 return image;
234 }
235
236 if(image)
237 {
238 texture = image;
239 }
240 else
241 {
242 texture = g_new0(G3DImage, 1);
243 texture->tex_scale_u = 1.0;
244 texture->tex_scale_v = 1.0;
245 texture->width = aimage->width;
246 texture->height = aimage->height;
247 texture->depth = 4;
248 texture->pixeldata = g_malloc(texture->width * texture->height * 4);
249 }
250
251 /* negative map? */
252 /* FIXME: better solution? */
253 if(aimage->pixeldata[0] == 0)
254 negative = TRUE;
255 else
256 negative = FALSE;
257
258 for(y = 0; y < texture->height; y ++)
259 {
260 for(x = 0; x < texture->width; x ++)
261 {
262 texture->pixeldata[(y * image->width + x) * 4 + 3] = (negative ?
263 255 - aimage->pixeldata[(y * image->width + x) * 4 + 0] :
264 aimage->pixeldata[(y * image->width + x) * 4 + 0]);
265 }
266 }
267
268 return texture;
269}
270
diff --git a/src/others/mimesh/libg3d-0.0.8/src/vector.c b/src/others/mimesh/libg3d-0.0.8/src/vector.c
new file mode 100644
index 0000000..97b3c26
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/src/vector.c
@@ -0,0 +1,84 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <math.h>
24#include <g3d/types.h>
25
26EAPI
27gboolean g3d_vector_normal(G3DVector ax, G3DVector ay, G3DVector az,
28 G3DVector bx, G3DVector by, G3DVector bz,
29 G3DVector *nx, G3DVector *ny, G3DVector *nz)
30{
31 *nx = ay * bz - az * by;
32 *ny = az * bx - ax * bz;
33 *nz = ax * by - ay * bx;
34
35 return TRUE;
36}
37
38EAPI
39gboolean g3d_vector_unify(G3DVector *nx, G3DVector *ny, G3DVector *nz)
40{
41 G3DFloat r;
42
43 r = sqrt(*nx * *nx + *ny * *ny + *nz * *nz);
44 if(r == 0.0F)
45 *nx = *ny = *nz = 0.0F;
46 else {
47 *nx /= r;
48 *ny /= r;
49 *nz /= r;
50 }
51
52 return TRUE;
53}
54
55EAPI
56gboolean g3d_vector_transform(G3DVector *x, G3DVector *y, G3DVector *z,
57 G3DMatrix *matrix)
58{
59 G3DVector vector[4], result[4];
60 guint32 i, k;
61
62 vector[0] = *x;
63 vector[1] = *y;
64 vector[2] = *z;
65 vector[3] = 1.0;
66
67 for(i = 0; i < 4; i ++) {
68 result[i] = 0.0;
69
70 for(k = 0; k < 4; k ++)
71#if 0
72 result[i] += matrix[i * 4 + k] * vector[k];
73#else
74 result[i] += matrix[k * 4 + i] * vector[k];
75#endif
76 }
77
78 *x = result[0];
79 *y = result[1];
80 *z = result[2];
81
82 return TRUE;
83}
84
diff --git a/src/others/mimesh/libg3d-0.0.8/tests/Makefile b/src/others/mimesh/libg3d-0.0.8/tests/Makefile
new file mode 100644
index 0000000..2151058
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/tests/Makefile
@@ -0,0 +1,538 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# tests/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35noinst_PROGRAMS = test_lib$(EXEEXT) test_buf$(EXEEXT) \
36 test_imgdump$(EXEEXT) $(am__EXEEXT_1)
37#am__append_1 = test_cxx
38subdir = tests
39DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
40ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
41am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
42 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
43 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
44 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
45 $(top_srcdir)/configure.in
46am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
47 $(ACLOCAL_M4)
48mkinstalldirs = $(install_sh) -d
49CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
50CONFIG_CLEAN_FILES =
51#am__EXEEXT_1 = test_cxx$(EXEEXT)
52PROGRAMS = $(noinst_PROGRAMS)
53am_test_buf_OBJECTS = test_buf.$(OBJEXT)
54test_buf_OBJECTS = $(am_test_buf_OBJECTS)
55am_test_cxx_OBJECTS = test_cxx.$(OBJEXT)
56test_cxx_OBJECTS = $(am_test_cxx_OBJECTS)
57am_test_imgdump_OBJECTS = test_imgdump.$(OBJEXT)
58test_imgdump_OBJECTS = $(am_test_imgdump_OBJECTS)
59am_test_lib_OBJECTS = test_lib.$(OBJEXT)
60test_lib_OBJECTS = $(am_test_lib_OBJECTS)
61DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
74 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
75LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
76 --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
77 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
78CXXLD = $(CXX)
79CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
80 --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
81 $(LDFLAGS) -o $@
82SOURCES = $(test_buf_SOURCES) $(test_cxx_SOURCES) \
83 $(test_imgdump_SOURCES) $(test_lib_SOURCES)
84DIST_SOURCES = $(test_buf_SOURCES) $(test_cxx_SOURCES) \
85 $(test_imgdump_SOURCES) $(test_lib_SOURCES)
86ETAGS = etags
87CTAGS = ctags
88DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
89ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
90AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
91AR = ar
92AS = as
93AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
94AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
95AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
96AWK = gawk
97CC = gcc
98CCDEPMODE = depmode=gcc3
99CFLAGS = -g -O2
100CPP = gcc -E
101CPPFLAGS =
102CXX = g++
103CXXCPP = g++ -E
104CXXDEPMODE = depmode=gcc3
105CXXFLAGS = -g -O2
106CYGPATH_W = echo
107DBG_CFLAGS = -O2
108DEBUG = 0
109DEFS = -DHAVE_CONFIG_H
110DEPDIR = .deps
111DLLTOOL = dlltool
112ECHO = echo
113ECHO_C =
114ECHO_N = -n
115ECHO_T =
116EGREP = /bin/grep -E
117EXEEXT =
118F77 =
119FFLAGS =
120GDKPIXBUF_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
121GDKPIXBUF_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
122GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
123GLIB_GENMARSHAL = glib-genmarshal
124GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
125GLIB_MKENUMS = glib-mkenums
126GOBJECT_QUERY = gobject-query
127GREP = /bin/grep
128GTKDOC_CHECK = /usr/bin/gtkdoc-check
129GTK_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
130GTK_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
131HTML_DIR = ${datadir}/gtk-doc/html
132INSTALL = /usr/bin/install -c
133INSTALL_DATA = ${INSTALL} -m 644
134INSTALL_PROGRAM = ${INSTALL}
135INSTALL_SCRIPT = ${INSTALL}
136INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
137LDFLAGS =
138LEX = flex
139LEXLIB = -lfl
140LEX_OUTPUT_ROOT = lex.yy
141LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
142LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
143LIBOBJS =
144LIBS = -lm
145LIBTOOL = $(SHELL) $(top_builddir)/libtool
146LIBXML2_CFLAGS = -I/usr/include/libxml2
147LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
148LN_S = ln -s
149LTLIBOBJS =
150LTVERSION = 0:8:0
151MAGIC_LIBS = -lmagic
152MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
153MATH_LIBS = -lm
154MKDIR_P = /bin/mkdir -p
155OBJDUMP = objdump
156OBJEXT = o
157PACKAGE = libg3d
158PACKAGE_BUGREPORT =
159PACKAGE_NAME =
160PACKAGE_STRING =
161PACKAGE_TARNAME =
162PACKAGE_VERSION =
163PATH_SEPARATOR = :
164PKG_CONFIG = /usr/bin/pkg-config
165PLUGINS_LDFLAGS = -avoid-version -export-dynamic
166RANLIB = ranlib
167SET_MAKE =
168SHELL = /bin/bash
169STRIP = strip
170VERSION = 0.0.8
171XML2_CONFIG = /usr/bin/xml2-config
172XML_CPPFLAGS = -I/usr/include/libxml2
173XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
174Z_CFLAGS =
175Z_LIBS = -lz
176abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/tests
177abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/tests
178abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
179abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
180ac_ct_CC = gcc
181ac_ct_CXX = g++
182ac_ct_F77 =
183am__include = include
184am__leading_dot = .
185am__quote =
186am__tar = ${AMTAR} chof - "$$tardir"
187am__untar = ${AMTAR} xf -
188bindir = ${exec_prefix}/bin
189build = x86_64-unknown-linux-gnu
190build_alias =
191build_cpu = x86_64
192build_os = linux-gnu
193build_vendor = unknown
194builddir = .
195datadir = ${datarootdir}
196datarootdir = ${prefix}/share
197docdir = ${datarootdir}/doc/${PACKAGE}
198dvidir = ${docdir}
199exec_prefix = ${prefix}
200host = x86_64-unknown-linux-gnu
201host_alias =
202host_cpu = x86_64
203host_os = linux-gnu
204host_vendor = unknown
205htmldir = ${docdir}
206includedir = ${prefix}/include
207infodir = ${datarootdir}/info
208install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
209libdir = ${exec_prefix}/lib
210libexecdir = ${exec_prefix}/libexec
211localedir = ${datarootdir}/locale
212localstatedir = ${prefix}/var
213mandir = ${datarootdir}/man
214mkdir_p = /bin/mkdir -p
215oldincludedir = /usr/include
216pdfdir = ${docdir}
217prefix = /usr/local
218program_transform_name = s,x,x,
219psdir = ${docdir}
220sbindir = ${exec_prefix}/sbin
221sharedstatedir = ${prefix}/com
222srcdir = .
223sysconfdir = ${prefix}/etc
224target_alias =
225top_builddir = ..
226top_srcdir = ..
227AM_CFLAGS = \
228 -Wall -ansi -pedantic \
229 -I$(top_srcdir)/include \
230 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
231
232AM_CXXFLAGS = \
233 -Wall \
234 -I$(top_srcdir)/include \
235 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
236
237test_lib_DEPENDENCIES = ../src/libg3d.la
238test_lib_SOURCES = test_lib.c
239test_lib_LDADD = ../src/libg3d.la -lm -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 -lmagic
240test_buf_DEPENDENCIES = ../src/libg3d.la
241test_buf_SOURCES = test_buf.c
242test_buf_LDADD = ../src/libg3d.la -lm -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 -lmagic
243test_imgdump_DEPENDENCIES = ../src/libg3d.la
244test_imgdump_SOURCES = test_imgdump.c
245test_imgdump_LDADD = ../src/libg3d.la -lm -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 -lmagic
246test_cxx_DEPENDENCIES = ../src/libg3d.la
247test_cxx_SOURCES = test_cxx.cxx
248test_cxx_LDADD = ../src/libg3d.la -lm -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 -lmagic
249all: all-am
250
251.SUFFIXES:
252.SUFFIXES: .c .cxx .lo .o .obj
253$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
254 @for dep in $?; do \
255 case '$(am__configure_deps)' in \
256 *$$dep*) \
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
258 && exit 0; \
259 exit 1;; \
260 esac; \
261 done; \
262 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/Makefile'; \
263 cd $(top_srcdir) && \
264 $(AUTOMAKE) --gnu tests/Makefile
265.PRECIOUS: Makefile
266Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
267 @case '$?' in \
268 *config.status*) \
269 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
270 *) \
271 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
272 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
273 esac;
274
275$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
276 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
277
278$(top_srcdir)/configure: $(am__configure_deps)
279 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
280$(ACLOCAL_M4): $(am__aclocal_m4_deps)
281 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
282
283clean-noinstPROGRAMS:
284 @list='$(noinst_PROGRAMS)'; for p in $$list; do \
285 f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
286 echo " rm -f $$p $$f"; \
287 rm -f $$p $$f ; \
288 done
289test_buf$(EXEEXT): $(test_buf_OBJECTS) $(test_buf_DEPENDENCIES)
290 @rm -f test_buf$(EXEEXT)
291 $(LINK) $(test_buf_OBJECTS) $(test_buf_LDADD) $(LIBS)
292test_cxx$(EXEEXT): $(test_cxx_OBJECTS) $(test_cxx_DEPENDENCIES)
293 @rm -f test_cxx$(EXEEXT)
294 $(CXXLINK) $(test_cxx_OBJECTS) $(test_cxx_LDADD) $(LIBS)
295test_imgdump$(EXEEXT): $(test_imgdump_OBJECTS) $(test_imgdump_DEPENDENCIES)
296 @rm -f test_imgdump$(EXEEXT)
297 $(LINK) $(test_imgdump_OBJECTS) $(test_imgdump_LDADD) $(LIBS)
298test_lib$(EXEEXT): $(test_lib_OBJECTS) $(test_lib_DEPENDENCIES)
299 @rm -f test_lib$(EXEEXT)
300 $(LINK) $(test_lib_OBJECTS) $(test_lib_LDADD) $(LIBS)
301
302mostlyclean-compile:
303 -rm -f *.$(OBJEXT)
304
305distclean-compile:
306 -rm -f *.tab.c
307
308include ./$(DEPDIR)/test_buf.Po
309include ./$(DEPDIR)/test_cxx.Po
310include ./$(DEPDIR)/test_imgdump.Po
311include ./$(DEPDIR)/test_lib.Po
312
313.c.o:
314 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
315 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
316# source='$<' object='$@' libtool=no \
317# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
318# $(COMPILE) -c $<
319
320.c.obj:
321 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
322 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
323# source='$<' object='$@' libtool=no \
324# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
325# $(COMPILE) -c `$(CYGPATH_W) '$<'`
326
327.c.lo:
328 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
329 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
330# source='$<' object='$@' libtool=yes \
331# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
332# $(LTCOMPILE) -c -o $@ $<
333
334.cxx.o:
335 $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
336 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
337# source='$<' object='$@' libtool=no \
338# DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
339# $(CXXCOMPILE) -c -o $@ $<
340
341.cxx.obj:
342 $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
343 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
344# source='$<' object='$@' libtool=no \
345# DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
346# $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
347
348.cxx.lo:
349 $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
350 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
351# source='$<' object='$@' libtool=yes \
352# DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
353# $(LTCXXCOMPILE) -c -o $@ $<
354
355mostlyclean-libtool:
356 -rm -f *.lo
357
358clean-libtool:
359 -rm -rf .libs _libs
360
361ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
362 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
363 unique=`for i in $$list; do \
364 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
365 done | \
366 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
367 END { if (nonempty) { for (i in files) print i; }; }'`; \
368 mkid -fID $$unique
369tags: TAGS
370
371TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
372 $(TAGS_FILES) $(LISP)
373 tags=; \
374 here=`pwd`; \
375 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
376 unique=`for i in $$list; do \
377 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
378 done | \
379 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
380 END { if (nonempty) { for (i in files) print i; }; }'`; \
381 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
382 test -n "$$unique" || unique=$$empty_fix; \
383 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
384 $$tags $$unique; \
385 fi
386ctags: CTAGS
387CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
388 $(TAGS_FILES) $(LISP)
389 tags=; \
390 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
391 unique=`for i in $$list; do \
392 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
393 done | \
394 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
395 END { if (nonempty) { for (i in files) print i; }; }'`; \
396 test -z "$(CTAGS_ARGS)$$tags$$unique" \
397 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
398 $$tags $$unique
399
400GTAGS:
401 here=`$(am__cd) $(top_builddir) && pwd` \
402 && cd $(top_srcdir) \
403 && gtags -i $(GTAGS_ARGS) $$here
404
405distclean-tags:
406 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
407
408distdir: $(DISTFILES)
409 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
410 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
411 list='$(DISTFILES)'; \
412 dist_files=`for file in $$list; do echo $$file; done | \
413 sed -e "s|^$$srcdirstrip/||;t" \
414 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
415 case $$dist_files in \
416 */*) $(MKDIR_P) `echo "$$dist_files" | \
417 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
418 sort -u` ;; \
419 esac; \
420 for file in $$dist_files; do \
421 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
422 if test -d $$d/$$file; then \
423 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
424 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
425 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
426 fi; \
427 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
428 else \
429 test -f $(distdir)/$$file \
430 || cp -p $$d/$$file $(distdir)/$$file \
431 || exit 1; \
432 fi; \
433 done
434check-am: all-am
435check: check-am
436all-am: Makefile $(PROGRAMS)
437installdirs:
438install: install-am
439install-exec: install-exec-am
440install-data: install-data-am
441uninstall: uninstall-am
442
443install-am: all-am
444 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
445
446installcheck: installcheck-am
447install-strip:
448 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
449 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
450 `test -z '$(STRIP)' || \
451 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
452mostlyclean-generic:
453
454clean-generic:
455
456distclean-generic:
457 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
458
459maintainer-clean-generic:
460 @echo "This command is intended for maintainers to use"
461 @echo "it deletes files that may require special tools to rebuild."
462clean: clean-am
463
464clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \
465 mostlyclean-am
466
467distclean: distclean-am
468 -rm -rf ./$(DEPDIR)
469 -rm -f Makefile
470distclean-am: clean-am distclean-compile distclean-generic \
471 distclean-tags
472
473dvi: dvi-am
474
475dvi-am:
476
477html: html-am
478
479info: info-am
480
481info-am:
482
483install-data-am:
484
485install-dvi: install-dvi-am
486
487install-exec-am:
488
489install-html: install-html-am
490
491install-info: install-info-am
492
493install-man:
494
495install-pdf: install-pdf-am
496
497install-ps: install-ps-am
498
499installcheck-am:
500
501maintainer-clean: maintainer-clean-am
502 -rm -rf ./$(DEPDIR)
503 -rm -f Makefile
504maintainer-clean-am: distclean-am maintainer-clean-generic
505
506mostlyclean: mostlyclean-am
507
508mostlyclean-am: mostlyclean-compile mostlyclean-generic \
509 mostlyclean-libtool
510
511pdf: pdf-am
512
513pdf-am:
514
515ps: ps-am
516
517ps-am:
518
519uninstall-am:
520
521.MAKE: install-am install-strip
522
523.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
524 clean-libtool clean-noinstPROGRAMS ctags distclean \
525 distclean-compile distclean-generic distclean-libtool \
526 distclean-tags distdir dvi dvi-am html html-am info info-am \
527 install install-am install-data install-data-am install-dvi \
528 install-dvi-am install-exec install-exec-am install-html \
529 install-html-am install-info install-info-am install-man \
530 install-pdf install-pdf-am install-ps install-ps-am \
531 install-strip installcheck installcheck-am installdirs \
532 maintainer-clean maintainer-clean-generic mostlyclean \
533 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
534 pdf pdf-am ps ps-am tags uninstall uninstall-am
535
536# Tell versions [3.59,3.63) of GNU make to not export all variables.
537# Otherwise a system limit (for SysV at least) may be exceeded.
538.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/tests/Makefile.am b/src/others/mimesh/libg3d-0.0.8/tests/Makefile.am
new file mode 100644
index 0000000..21e2637
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/tests/Makefile.am
@@ -0,0 +1,32 @@
1noinst_PROGRAMS = \
2 test_lib \
3 test_buf \
4 test_imgdump
5
6if HAVE_CXX
7noinst_PROGRAMS += test_cxx
8endif
9
10AM_CFLAGS = \
11 -Wall -ansi -pedantic \
12 -I$(top_srcdir)/include \
13 @GLIB_CFLAGS@
14
15AM_CXXFLAGS = \
16 -Wall \
17 -I$(top_srcdir)/include \
18 @GLIB_CFLAGS@
19
20test_lib_DEPENDENCIES = ../src/libg3d.la
21test_lib_SOURCES = test_lib.c
22test_lib_LDADD = ../src/libg3d.la -lm @GLIB_LIBS@ @MAGIC_LIBS@
23test_buf_DEPENDENCIES = ../src/libg3d.la
24test_buf_SOURCES = test_buf.c
25test_buf_LDADD = ../src/libg3d.la -lm @GLIB_LIBS@ @MAGIC_LIBS@
26test_imgdump_DEPENDENCIES = ../src/libg3d.la
27test_imgdump_SOURCES = test_imgdump.c
28test_imgdump_LDADD = ../src/libg3d.la -lm @GLIB_LIBS@ @MAGIC_LIBS@
29test_cxx_DEPENDENCIES = ../src/libg3d.la
30test_cxx_SOURCES = test_cxx.cxx
31test_cxx_LDADD = ../src/libg3d.la -lm @GLIB_LIBS@ @MAGIC_LIBS@
32
diff --git a/src/others/mimesh/libg3d-0.0.8/tests/Makefile.in b/src/others/mimesh/libg3d-0.0.8/tests/Makefile.in
new file mode 100644
index 0000000..167ecea
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/tests/Makefile.in
@@ -0,0 +1,538 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 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
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35noinst_PROGRAMS = test_lib$(EXEEXT) test_buf$(EXEEXT) \
36 test_imgdump$(EXEEXT) $(am__EXEEXT_1)
37@HAVE_CXX_TRUE@am__append_1 = test_cxx
38subdir = tests
39DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
40ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
41am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
42 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
43 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
44 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
45 $(top_srcdir)/configure.in
46am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
47 $(ACLOCAL_M4)
48mkinstalldirs = $(install_sh) -d
49CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
50CONFIG_CLEAN_FILES =
51@HAVE_CXX_TRUE@am__EXEEXT_1 = test_cxx$(EXEEXT)
52PROGRAMS = $(noinst_PROGRAMS)
53am_test_buf_OBJECTS = test_buf.$(OBJEXT)
54test_buf_OBJECTS = $(am_test_buf_OBJECTS)
55am_test_cxx_OBJECTS = test_cxx.$(OBJEXT)
56test_cxx_OBJECTS = $(am_test_cxx_OBJECTS)
57am_test_imgdump_OBJECTS = test_imgdump.$(OBJEXT)
58test_imgdump_OBJECTS = $(am_test_imgdump_OBJECTS)
59am_test_lib_OBJECTS = test_lib.$(OBJEXT)
60test_lib_OBJECTS = $(am_test_lib_OBJECTS)
61DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
74 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
75LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
76 --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
77 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
78CXXLD = $(CXX)
79CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
80 --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
81 $(LDFLAGS) -o $@
82SOURCES = $(test_buf_SOURCES) $(test_cxx_SOURCES) \
83 $(test_imgdump_SOURCES) $(test_lib_SOURCES)
84DIST_SOURCES = $(test_buf_SOURCES) $(test_cxx_SOURCES) \
85 $(test_imgdump_SOURCES) $(test_lib_SOURCES)
86ETAGS = etags
87CTAGS = ctags
88DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
89ACLOCAL = @ACLOCAL@
90AMTAR = @AMTAR@
91AR = @AR@
92AS = @AS@
93AUTOCONF = @AUTOCONF@
94AUTOHEADER = @AUTOHEADER@
95AUTOMAKE = @AUTOMAKE@
96AWK = @AWK@
97CC = @CC@
98CCDEPMODE = @CCDEPMODE@
99CFLAGS = @CFLAGS@
100CPP = @CPP@
101CPPFLAGS = @CPPFLAGS@
102CXX = @CXX@
103CXXCPP = @CXXCPP@
104CXXDEPMODE = @CXXDEPMODE@
105CXXFLAGS = @CXXFLAGS@
106CYGPATH_W = @CYGPATH_W@
107DBG_CFLAGS = @DBG_CFLAGS@
108DEBUG = @DEBUG@
109DEFS = @DEFS@
110DEPDIR = @DEPDIR@
111DLLTOOL = @DLLTOOL@
112ECHO = @ECHO@
113ECHO_C = @ECHO_C@
114ECHO_N = @ECHO_N@
115ECHO_T = @ECHO_T@
116EGREP = @EGREP@
117EXEEXT = @EXEEXT@
118F77 = @F77@
119FFLAGS = @FFLAGS@
120GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
121GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
122GLIB_CFLAGS = @GLIB_CFLAGS@
123GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
124GLIB_LIBS = @GLIB_LIBS@
125GLIB_MKENUMS = @GLIB_MKENUMS@
126GOBJECT_QUERY = @GOBJECT_QUERY@
127GREP = @GREP@
128GTKDOC_CHECK = @GTKDOC_CHECK@
129GTK_CFLAGS = @GTK_CFLAGS@
130GTK_LIBS = @GTK_LIBS@
131HTML_DIR = @HTML_DIR@
132INSTALL = @INSTALL@
133INSTALL_DATA = @INSTALL_DATA@
134INSTALL_PROGRAM = @INSTALL_PROGRAM@
135INSTALL_SCRIPT = @INSTALL_SCRIPT@
136INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
137LDFLAGS = @LDFLAGS@
138LEX = @LEX@
139LEXLIB = @LEXLIB@
140LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
141LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
142LIBGSF_LIBS = @LIBGSF_LIBS@
143LIBOBJS = @LIBOBJS@
144LIBS = @LIBS@
145LIBTOOL = @LIBTOOL@
146LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
147LIBXML2_LIBS = @LIBXML2_LIBS@
148LN_S = @LN_S@
149LTLIBOBJS = @LTLIBOBJS@
150LTVERSION = @LTVERSION@
151MAGIC_LIBS = @MAGIC_LIBS@
152MAKEINFO = @MAKEINFO@
153MATH_LIBS = @MATH_LIBS@
154MKDIR_P = @MKDIR_P@
155OBJDUMP = @OBJDUMP@
156OBJEXT = @OBJEXT@
157PACKAGE = @PACKAGE@
158PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
159PACKAGE_NAME = @PACKAGE_NAME@
160PACKAGE_STRING = @PACKAGE_STRING@
161PACKAGE_TARNAME = @PACKAGE_TARNAME@
162PACKAGE_VERSION = @PACKAGE_VERSION@
163PATH_SEPARATOR = @PATH_SEPARATOR@
164PKG_CONFIG = @PKG_CONFIG@
165PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
166RANLIB = @RANLIB@
167SET_MAKE = @SET_MAKE@
168SHELL = @SHELL@
169STRIP = @STRIP@
170VERSION = @VERSION@
171XML2_CONFIG = @XML2_CONFIG@
172XML_CPPFLAGS = @XML_CPPFLAGS@
173XML_LIBS = @XML_LIBS@
174Z_CFLAGS = @Z_CFLAGS@
175Z_LIBS = @Z_LIBS@
176abs_builddir = @abs_builddir@
177abs_srcdir = @abs_srcdir@
178abs_top_builddir = @abs_top_builddir@
179abs_top_srcdir = @abs_top_srcdir@
180ac_ct_CC = @ac_ct_CC@
181ac_ct_CXX = @ac_ct_CXX@
182ac_ct_F77 = @ac_ct_F77@
183am__include = @am__include@
184am__leading_dot = @am__leading_dot@
185am__quote = @am__quote@
186am__tar = @am__tar@
187am__untar = @am__untar@
188bindir = @bindir@
189build = @build@
190build_alias = @build_alias@
191build_cpu = @build_cpu@
192build_os = @build_os@
193build_vendor = @build_vendor@
194builddir = @builddir@
195datadir = @datadir@
196datarootdir = @datarootdir@
197docdir = @docdir@
198dvidir = @dvidir@
199exec_prefix = @exec_prefix@
200host = @host@
201host_alias = @host_alias@
202host_cpu = @host_cpu@
203host_os = @host_os@
204host_vendor = @host_vendor@
205htmldir = @htmldir@
206includedir = @includedir@
207infodir = @infodir@
208install_sh = @install_sh@
209libdir = @libdir@
210libexecdir = @libexecdir@
211localedir = @localedir@
212localstatedir = @localstatedir@
213mandir = @mandir@
214mkdir_p = @mkdir_p@
215oldincludedir = @oldincludedir@
216pdfdir = @pdfdir@
217prefix = @prefix@
218program_transform_name = @program_transform_name@
219psdir = @psdir@
220sbindir = @sbindir@
221sharedstatedir = @sharedstatedir@
222srcdir = @srcdir@
223sysconfdir = @sysconfdir@
224target_alias = @target_alias@
225top_builddir = @top_builddir@
226top_srcdir = @top_srcdir@
227AM_CFLAGS = \
228 -Wall -ansi -pedantic \
229 -I$(top_srcdir)/include \
230 @GLIB_CFLAGS@
231
232AM_CXXFLAGS = \
233 -Wall \
234 -I$(top_srcdir)/include \
235 @GLIB_CFLAGS@
236
237test_lib_DEPENDENCIES = ../src/libg3d.la
238test_lib_SOURCES = test_lib.c
239test_lib_LDADD = ../src/libg3d.la -lm @GLIB_LIBS@ @MAGIC_LIBS@
240test_buf_DEPENDENCIES = ../src/libg3d.la
241test_buf_SOURCES = test_buf.c
242test_buf_LDADD = ../src/libg3d.la -lm @GLIB_LIBS@ @MAGIC_LIBS@
243test_imgdump_DEPENDENCIES = ../src/libg3d.la
244test_imgdump_SOURCES = test_imgdump.c
245test_imgdump_LDADD = ../src/libg3d.la -lm @GLIB_LIBS@ @MAGIC_LIBS@
246test_cxx_DEPENDENCIES = ../src/libg3d.la
247test_cxx_SOURCES = test_cxx.cxx
248test_cxx_LDADD = ../src/libg3d.la -lm @GLIB_LIBS@ @MAGIC_LIBS@
249all: all-am
250
251.SUFFIXES:
252.SUFFIXES: .c .cxx .lo .o .obj
253$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
254 @for dep in $?; do \
255 case '$(am__configure_deps)' in \
256 *$$dep*) \
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
258 && exit 0; \
259 exit 1;; \
260 esac; \
261 done; \
262 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/Makefile'; \
263 cd $(top_srcdir) && \
264 $(AUTOMAKE) --gnu tests/Makefile
265.PRECIOUS: Makefile
266Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
267 @case '$?' in \
268 *config.status*) \
269 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
270 *) \
271 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
272 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
273 esac;
274
275$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
276 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
277
278$(top_srcdir)/configure: $(am__configure_deps)
279 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
280$(ACLOCAL_M4): $(am__aclocal_m4_deps)
281 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
282
283clean-noinstPROGRAMS:
284 @list='$(noinst_PROGRAMS)'; for p in $$list; do \
285 f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
286 echo " rm -f $$p $$f"; \
287 rm -f $$p $$f ; \
288 done
289test_buf$(EXEEXT): $(test_buf_OBJECTS) $(test_buf_DEPENDENCIES)
290 @rm -f test_buf$(EXEEXT)
291 $(LINK) $(test_buf_OBJECTS) $(test_buf_LDADD) $(LIBS)
292test_cxx$(EXEEXT): $(test_cxx_OBJECTS) $(test_cxx_DEPENDENCIES)
293 @rm -f test_cxx$(EXEEXT)
294 $(CXXLINK) $(test_cxx_OBJECTS) $(test_cxx_LDADD) $(LIBS)
295test_imgdump$(EXEEXT): $(test_imgdump_OBJECTS) $(test_imgdump_DEPENDENCIES)
296 @rm -f test_imgdump$(EXEEXT)
297 $(LINK) $(test_imgdump_OBJECTS) $(test_imgdump_LDADD) $(LIBS)
298test_lib$(EXEEXT): $(test_lib_OBJECTS) $(test_lib_DEPENDENCIES)
299 @rm -f test_lib$(EXEEXT)
300 $(LINK) $(test_lib_OBJECTS) $(test_lib_LDADD) $(LIBS)
301
302mostlyclean-compile:
303 -rm -f *.$(OBJEXT)
304
305distclean-compile:
306 -rm -f *.tab.c
307
308@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_buf.Po@am__quote@
309@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_cxx.Po@am__quote@
310@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_imgdump.Po@am__quote@
311@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_lib.Po@am__quote@
312
313.c.o:
314@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
315@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
316@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
317@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
318@am__fastdepCC_FALSE@ $(COMPILE) -c $<
319
320.c.obj:
321@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
322@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
323@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
324@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
325@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
326
327.c.lo:
328@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
329@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
330@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
331@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
332@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
333
334.cxx.o:
335@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
336@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
337@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
338@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
339@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $<
340
341.cxx.obj:
342@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
343@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
344@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
345@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
346@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
347
348.cxx.lo:
349@am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
350@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
351@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
352@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
353@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $<
354
355mostlyclean-libtool:
356 -rm -f *.lo
357
358clean-libtool:
359 -rm -rf .libs _libs
360
361ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
362 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
363 unique=`for i in $$list; do \
364 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
365 done | \
366 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
367 END { if (nonempty) { for (i in files) print i; }; }'`; \
368 mkid -fID $$unique
369tags: TAGS
370
371TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
372 $(TAGS_FILES) $(LISP)
373 tags=; \
374 here=`pwd`; \
375 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
376 unique=`for i in $$list; do \
377 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
378 done | \
379 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
380 END { if (nonempty) { for (i in files) print i; }; }'`; \
381 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
382 test -n "$$unique" || unique=$$empty_fix; \
383 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
384 $$tags $$unique; \
385 fi
386ctags: CTAGS
387CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
388 $(TAGS_FILES) $(LISP)
389 tags=; \
390 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
391 unique=`for i in $$list; do \
392 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
393 done | \
394 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
395 END { if (nonempty) { for (i in files) print i; }; }'`; \
396 test -z "$(CTAGS_ARGS)$$tags$$unique" \
397 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
398 $$tags $$unique
399
400GTAGS:
401 here=`$(am__cd) $(top_builddir) && pwd` \
402 && cd $(top_srcdir) \
403 && gtags -i $(GTAGS_ARGS) $$here
404
405distclean-tags:
406 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
407
408distdir: $(DISTFILES)
409 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
410 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
411 list='$(DISTFILES)'; \
412 dist_files=`for file in $$list; do echo $$file; done | \
413 sed -e "s|^$$srcdirstrip/||;t" \
414 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
415 case $$dist_files in \
416 */*) $(MKDIR_P) `echo "$$dist_files" | \
417 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
418 sort -u` ;; \
419 esac; \
420 for file in $$dist_files; do \
421 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
422 if test -d $$d/$$file; then \
423 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
424 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
425 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
426 fi; \
427 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
428 else \
429 test -f $(distdir)/$$file \
430 || cp -p $$d/$$file $(distdir)/$$file \
431 || exit 1; \
432 fi; \
433 done
434check-am: all-am
435check: check-am
436all-am: Makefile $(PROGRAMS)
437installdirs:
438install: install-am
439install-exec: install-exec-am
440install-data: install-data-am
441uninstall: uninstall-am
442
443install-am: all-am
444 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
445
446installcheck: installcheck-am
447install-strip:
448 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
449 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
450 `test -z '$(STRIP)' || \
451 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
452mostlyclean-generic:
453
454clean-generic:
455
456distclean-generic:
457 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
458
459maintainer-clean-generic:
460 @echo "This command is intended for maintainers to use"
461 @echo "it deletes files that may require special tools to rebuild."
462clean: clean-am
463
464clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \
465 mostlyclean-am
466
467distclean: distclean-am
468 -rm -rf ./$(DEPDIR)
469 -rm -f Makefile
470distclean-am: clean-am distclean-compile distclean-generic \
471 distclean-tags
472
473dvi: dvi-am
474
475dvi-am:
476
477html: html-am
478
479info: info-am
480
481info-am:
482
483install-data-am:
484
485install-dvi: install-dvi-am
486
487install-exec-am:
488
489install-html: install-html-am
490
491install-info: install-info-am
492
493install-man:
494
495install-pdf: install-pdf-am
496
497install-ps: install-ps-am
498
499installcheck-am:
500
501maintainer-clean: maintainer-clean-am
502 -rm -rf ./$(DEPDIR)
503 -rm -f Makefile
504maintainer-clean-am: distclean-am maintainer-clean-generic
505
506mostlyclean: mostlyclean-am
507
508mostlyclean-am: mostlyclean-compile mostlyclean-generic \
509 mostlyclean-libtool
510
511pdf: pdf-am
512
513pdf-am:
514
515ps: ps-am
516
517ps-am:
518
519uninstall-am:
520
521.MAKE: install-am install-strip
522
523.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
524 clean-libtool clean-noinstPROGRAMS ctags distclean \
525 distclean-compile distclean-generic distclean-libtool \
526 distclean-tags distdir dvi dvi-am html html-am info info-am \
527 install install-am install-data install-data-am install-dvi \
528 install-dvi-am install-exec install-exec-am install-html \
529 install-html-am install-info install-info-am install-man \
530 install-pdf install-pdf-am install-ps install-ps-am \
531 install-strip installcheck installcheck-am installdirs \
532 maintainer-clean maintainer-clean-generic mostlyclean \
533 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
534 pdf pdf-am ps ps-am tags uninstall uninstall-am
535
536# Tell versions [3.59,3.63) of GNU make to not export all variables.
537# Otherwise a system limit (for SysV at least) may be exceeded.
538.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/tests/test_buf.c b/src/others/mimesh/libg3d-0.0.8/tests/test_buf.c
new file mode 100644
index 0000000..70551ba
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/tests/test_buf.c
@@ -0,0 +1,59 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <glib.h>
25#include <g3d/g3d.h>
26#include <g3d/stream.h>
27
28static guint8 test_buffer[] = {
29 0x01, 0x23, 0x45, 0x67, /* 0x01234567 MSB */
30 0x67, 0x45, 0x23, 0x01, /* 0x01234567 LSB */
31 0x00
32};
33static gsize tbsize = sizeof(test_buffer);
34
35int main(int argc, char *argv[])
36{
37 G3DStream *stream;
38 guint32 u;
39
40 stream = g3d_stream_from_buffer(test_buffer, tbsize, "testbuf", FALSE);
41
42 /* read 2 x 32-bit integer */
43 u = g3d_stream_read_int32_be(stream);
44 g_print("MSB value: 0x%08x\n", u);
45 u = g3d_stream_read_int32_le(stream);
46 g_print("LSB value: 0x%08x\n", u);
47 /* seek back 4 bytes */
48 g3d_stream_seek(stream, -4, G_SEEK_CUR);
49 u = g3d_stream_read_int32_le(stream);
50 g_print("LSB value: 0x%08x\n", u);
51 /* rewind stream */
52 g3d_stream_seek(stream, 0, G_SEEK_SET);
53 u = g3d_stream_read_int32_be(stream);
54 g_print("MSB value: 0x%08x\n", u);
55
56 g3d_stream_close(stream);
57
58 return 0;
59}
diff --git a/src/others/mimesh/libg3d-0.0.8/tests/test_cxx.cxx b/src/others/mimesh/libg3d-0.0.8/tests/test_cxx.cxx
new file mode 100644
index 0000000..f2d3001
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/tests/test_cxx.cxx
@@ -0,0 +1,40 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2008 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <iostream>
24
25#include <g3d/g3d.h>
26
27using namespace std;
28
29int main(int argc, char *argv[])
30{
31 G3DContext *context;
32
33 context = g3d_context_new();
34 if(context) {
35 cout << "got context" << endl;
36 g3d_context_free(context);
37 }
38
39 return 0;
40}
diff --git a/src/others/mimesh/libg3d-0.0.8/tests/test_imgdump.c b/src/others/mimesh/libg3d-0.0.8/tests/test_imgdump.c
new file mode 100644
index 0000000..530d20f
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/tests/test_imgdump.c
@@ -0,0 +1,72 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <stdlib.h>
25
26#include <g3d/g3d.h>
27#include <g3d/texture.h>
28
29int main(int argc, char *argv[])
30{
31 G3DContext *context;
32 G3DImage *tex;
33 FILE *ppm;
34 gchar *outfile;
35 guint32 x, y;
36
37 context = g3d_context_new();
38
39 if(argc > 1) {
40/* tex = g3d_texture_load(context, argv[1]); */
41tex = NULL;
42 if(tex != NULL) {
43 outfile = g_strdup_printf("%s.ppm", argv[1]);
44 ppm = fopen(outfile, "w");
45 if(ppm != NULL) {
46 fprintf(ppm, "P3\n%u %u\n255\n",
47 tex->width, tex->height);
48 for(y = 0; y < tex->height; y ++) {
49 for(x = 0; x < tex->width; x ++) {
50 fprintf(ppm, "%u %u %u\n",
51 tex->pixeldata[(y * tex->width + x) * 4 + 0],
52 tex->pixeldata[(y * tex->width + x) * 4 + 1],
53 tex->pixeldata[(y * tex->width + x) * 4 + 2]);
54 }
55 }
56 fclose(ppm);
57 } else {
58 fprintf(stderr, "%s: failed to write to '%s'\n",
59 argv[0], outfile);
60 }
61 g3d_texture_free(tex);
62 g_free(outfile);
63 } else {
64 fprintf(stderr, "%s: failed to load image '%s'\n",
65 argv[0], argv[1]);
66 }
67 }
68
69 g3d_context_free(context);
70
71 return EXIT_SUCCESS;
72}
diff --git a/src/others/mimesh/libg3d-0.0.8/tests/test_lib.c b/src/others/mimesh/libg3d-0.0.8/tests/test_lib.c
new file mode 100644
index 0000000..335c540
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/tests/test_lib.c
@@ -0,0 +1,99 @@
1/* $Id: test_lib.c,v 1.1.2.2 2006/01/23 17:04:37 dahms Exp $ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library 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 GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <stdlib.h>
25
26#include <g3d/g3d.h>
27
28#if 0
29#define DEBUG_MEM 1
30#endif
31
32#ifdef DEBUG_MEM
33static gpointer (*def_malloc)(gsize size) = NULL;
34
35static void break_here(gsize size)
36{
37 g_printerr("I'm here (%d bytes)\n", size);
38}
39
40static gpointer malloc_debug(gsize size)
41{
42 if(size == 84)
43 {
44 break_here(size);
45 }
46
47 return def_malloc(size);
48}
49#endif
50
51int main(int argc, char *argv[])
52{
53 G3DContext *context;
54 G3DModel *model;
55 G3DObject *object;
56 GSList *oitem;
57 guint32 i;
58
59#ifdef DEBUG_MEM
60 atexit(g_mem_profile);
61 def_malloc = glib_mem_profiler_table->malloc;
62 glib_mem_profiler_table->malloc = malloc_debug;
63 g_mem_set_vtable(glib_mem_profiler_table);
64#endif
65
66 context = g3d_context_new();
67
68 if(argc > 1)
69 {
70 model = g3d_model_load(context, argv[1]);
71
72 if(model)
73 {
74 g_print("%s: %d objects:\n", argv[1],
75 g_slist_length(model->objects));
76
77 i = 0;
78 oitem = model->objects;
79 while(oitem)
80 {
81 object = (G3DObject *)oitem->data;
82 g_print(" [%2u] %-50s (%d faces, %d mats)\n",
83 i,
84 object->name ? object->name : "(NULL)",
85 g_slist_length(object->faces),
86 g_slist_length(object->materials));
87
88 oitem = oitem->next;
89 i ++;
90 }
91
92 g3d_model_free(model);
93 }
94 }
95
96 g3d_context_free(context);
97
98 return EXIT_SUCCESS;
99}